/* ==========================================================================
   DuoVerse Routeplaner – Warm Cream & Plum Design System (Mobile-First)
   Orientiert an den UI-Mockups (#13, #15, #46, #55, #56, #58, #61)
   ========================================================================== */

:root {
  --bg-canvas: #faf5f0;
  --bg-sidebar: #f4ebe3;
  --bg-card: #fffcf9;
  --bg-subtle: #f5eee8;
  --bg-pill: #f1e5e9;
  --bg-active-nav: #eadfd7;

  --border-soft: #e7ddd4;
  --border-strong: #d5c7bc;

  --text-main: #2d2326;
  --text-secondary: #5c4e52;
  --text-muted: #847579;

  --accent: #824e63;
  --accent-hover: #6d3f52;
  --accent-soft: #f2e5ea;
  --accent-route: #7a3e65;

  --success: #4f8550;
  --success-bg: #e7f3e7;
  --warning: #b6762c;
  --warning-bg: #fdf1e1;
  --danger: #b94a5b;
  --danger-bg: #fbe9ec;
  --info: #4b7d89;
  --info-bg: #e6f2f5;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(72, 48, 56, 0.05);
  --shadow-md: 0 8px 26px rgba(72, 48, 56, 0.08);
  --shadow-lg: 0 18px 46px rgba(45, 35, 38, 0.16);

  --sidebar-width: 248px;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-canvas);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--text-muted);
}

/* ==================== LOGIN PAGE ==================== */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at top right, #f2e4ea 0%, var(--bg-canvas) 55%);
}

.login-card {
  width: 100%;
  max-width: 430px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.login-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
}

.login-brand h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.login-brand p {
  margin: 2px 0 0;
  font-size: 0.88rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-hint {
  margin: 20px 0 0;
  font-size: 0.83rem;
  text-align: center;
}

/* ==================== APP SHELL ==================== */
.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
  transition: transform 0.22s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 10px 18px;
}

.sidebar-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.sidebar-brand-title {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.15;
}

.sidebar-brand-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-main);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-btn:hover {
  background: rgba(130, 78, 99, 0.08);
}

.nav-btn.active {
  background: var(--bg-active-nav);
  color: var(--accent-hover);
  font-weight: 600;
}

.nav-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-section-label {
  margin: 18px 10px 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45, 35, 38, 0.38);
  z-index: 35;
}

/* ==================== MAIN AREA & TOPBAR ==================== */
.main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px 12px;
  background: linear-gradient(180deg, #f6ede6 0%, var(--bg-canvas) 100%);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 25;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mobile-menu-btn {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 1.25rem;
}

.topbar-title-wrap h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.topbar-subtitle {
  margin: 2px 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.date-pill,
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  font-size: 0.88rem;
  font-weight: 500;
}

.avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.content-container {
  padding: 20px 24px 36px;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
}

/* ==================== BUTTONS & INPUTS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
  white-space: nowrap;
}

.btn:hover:not(:disabled) {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-soft {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-hover);
}

.btn-soft:hover:not(:disabled) {
  background: #e9d7df;
}

.btn-danger {
  background: var(--danger-bg);
  border-color: #ebc5cc;
  color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
  background: #f6d8de;
}

.btn-sm {
  min-height: 38px;
  padding: 6px 12px;
  font-size: 0.86rem;
}

.btn-icon {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="url"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(130, 78, 99, 0.14);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* ==================== CARDS, PILLS & TABS ==================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.card-title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.pill-accent {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.pill-success {
  background: var(--success-bg);
  color: var(--success);
}

.pill-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.pill-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.pill-info {
  background: var(--info-bg);
  color: var(--info);
}

.tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--accent-soft);
  border-color: #dcc2cd;
  color: var(--accent-hover);
}

/* ==================== GRIDS & LISTS ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent-hover);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-bar .search-wrap {
  flex: 1;
  min-width: 220px;
}

/* ==================== SPLIT EDITOR & MAP ==================== */
.editor-split {
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.detail-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.collab-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.map-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-soft);
  flex-wrap: wrap;
}

.map-canvas {
  width: 100%;
  height: 520px;
  z-index: 1;
}

.map-canvas-tall {
  height: calc(100vh - 210px);
  min-height: 480px;
}

.map-canvas-mini {
  height: 250px;
}

.map-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
}

.map-summary-item {
  display: flex;
  flex-direction: column;
}

.map-summary-item strong {
  font-size: 1rem;
}

.map-summary-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Custom Leaflet Numbered Markers (Mockup Plum Style) */
.rp-marker {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-route);
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #fff;
  box-shadow: 0 3px 10px rgba(45, 35, 38, 0.35);
}

.rp-marker-place {
  background: var(--info);
}

/* ==================== STOPS TIMELINE ==================== */
.stops-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}

.stop-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-soft);
}

.stop-row.dragging {
  opacity: 0.55;
  border-style: dashed;
}

.stop-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.stop-body {
  flex: 1;
  min-width: 0;
}

.stop-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.stop-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* Verbesserte Stopp-Karte im Routen-Editor (2-Zeilen-Layout mit voller Breite für Eingabefelder) */
.stop-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.stop-card:hover {
  border-color: var(--border-strong);
}

.stop-card.dragging {
  opacity: 0.55;
  border-style: dashed;
}

.stop-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.stop-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.stop-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.stop-card-actions .btn-sm {
  min-width: 34px;
  min-height: 34px;
  padding: 4px 8px;
}

.stop-fields-row {
  display: grid;
  grid-template-columns: minmax(110px, 1.1fr) minmax(105px, 1fr) minmax(105px, 1fr);
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
}

.stop-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.stop-field label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stop-field input {
  min-height: 38px;
  padding: 6px 10px;
  font-size: 0.88rem;
  border-radius: 9px;
  background: #fff;
}

.quick-start-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* ==================== HERO HEADER (Mockups #15, #46, #58, #61) ==================== */
.detail-hero {
  background: linear-gradient(135deg, #fffcf9 0%, #f5e8ed 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.detail-hero-main {
  flex: 1;
  min-width: 260px;
}

.detail-hero h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 700;
}

.detail-hero-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.detail-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==================== COMMENTS, ACTIVITIES, PROPOSALS ==================== */
.comment-item,
.proposal-item,
.activity-item {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border-soft);
  margin-bottom: 10px;
}

.comment-item.unread {
  border-left: 4px solid var(--accent);
}

.vote-bar {
  height: 7px;
  border-radius: var(--radius-pill);
  background: #efe2e5;
  overflow: hidden;
  margin-top: 6px;
}

.vote-bar-fill {
  height: 100%;
  background: var(--success);
}

/* ==================== ALERTS & TOASTS ==================== */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #ecc6cd;
}

.alert-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid #eed2ae;
}

.alert-info {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid #c3dfe6;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #c6e2c7;
}

.toast-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}

.toast {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--text-main);
  color: #fff;
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
}

/* ==================== MODAL ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45, 35, 38, 0.45);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 720px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

/* ==================== AUTOCOMPLETE DROPDOWN ==================== */
.search-dropdown {
  position: relative;
}

.search-results-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 30;
  max-height: 260px;
  overflow-y: auto;
  margin-top: 4px;
}

.search-result-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid var(--border-soft);
  background: transparent;
  cursor: pointer;
  min-height: 44px;
}

.search-result-btn:hover {
  background: var(--bg-subtle);
}

/* ==================== RESPONSIVE (TABLET <= 960px, MOBILE <= 768px & <= 480px) ==================== */
@media (max-width: 1080px) {
  .editor-split,
  .detail-split,
  .collab-split {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop.open {
    display: block;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topbar {
    padding: 12px 14px;
  }

  .date-pill {
    display: none;
  }

  .content-container {
    padding: 14px 14px 32px;
  }

  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }

  .map-canvas {
    height: 360px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    padding: 16px;
  }

  .topbar-title-wrap h1 {
    font-size: 1.15rem;
  }

  .modal-dialog {
    padding: 16px;
  }

  .stop-fields-row {
    grid-template-columns: 1fr;
  }

  .stop-card-top {
    flex-wrap: wrap;
  }
}


/* ==================== DIREKTSTART, ZWISCHENSTOPPS & TANKEN ==================== */
.quick-nav-card {
  background: linear-gradient(135deg, #fffcf9 0%, #f6ebe6 100%);
  border: 1px solid #e2d1d7;
  margin-bottom: 18px;
}

.quick-nav-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.quick-nav-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.poi-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-soft);
}

.poi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.poi-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.poi-chip:hover,
.poi-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.poi-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  max-height: 290px;
  overflow-y: auto;
}

.poi-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-subtle);
}

.poi-item-body {
  min-width: 0;
  flex: 1;
}

.poi-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.rp-poi-marker-wrap {
  background: transparent;
  border: none;
}

.rp-poi-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  min-width: 28px;
  height: 26px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid var(--info);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

.nav-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.nav-app-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 62px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.nav-app-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  text-decoration: none;
}

.nav-app-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.nav-app-btn.primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

/* ==================== TANKEN & PREISALARME ==================== */
.fuel-hero-card {
  background: linear-gradient(135deg, #f3faf3 0%, #fffcf9 65%, #f5ece6 100%);
  border: 1px solid #c9dec9;
  margin-bottom: 16px;
}

.fuel-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.fuel-price-big {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--success);
  line-height: 1.1;
  white-space: nowrap;
}

.fuel-price-big sup {
  font-size: 0.62em;
  vertical-align: super;
}

.fuel-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}

.fuel-station-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  flex-wrap: wrap;
}

.fuel-station-card.is-cheapest {
  border-color: var(--success);
  background: #f5fbf5;
}

.fuel-station-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-hover);
  white-space: nowrap;
}

.fuel-station-card.is-cheapest .fuel-station-price {
  color: var(--success);
}

.fuel-marker-wrap {
  background: transparent;
  border: none;
}

.fuel-marker-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  min-width: 34px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
  white-space: nowrap;
}

.fuel-marker-pill.fuel-marker-cheapest {
  background: var(--success);
  transform: scale(1.08);
}

.fuel-marker-pill.fuel-marker-closed {
  background: var(--text-muted);
  opacity: 0.8;
}

.alert-rule-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  flex-wrap: wrap;
}

.alert-rule-card.is-hit {
  border-color: var(--success);
  background: var(--success-bg);
}

@media (max-width: 768px) {
  .quick-nav-row {
    grid-template-columns: 1fr;
  }

  .nav-apps-grid {
    grid-template-columns: 1fr;
  }

  .poi-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .poi-item-actions {
    width: 100%;
  }

  .poi-item-actions .btn {
    flex: 1;
  }
}


/* ==================== GOOGLE MAPS EMBED KARTE ==================== */
.gmap-embed-frame {
  width: 100%;
  min-height: 460px;
  height: 56vh;
  border: 0;
  display: block;
  background: var(--bg-subtle);
}

.gmap-embed-frame.full-height {
  min-height: 540px;
  height: calc(100vh - 250px);
}

.gmap-toolbar-search {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
  min-width: 220px;
}

.gmap-toolbar-search input {
  flex: 1;
  min-width: 180px;
}
