/* ============================================================
   SmoGo Design System — „Rhodopen"
   Natur-Palette nach Logo-Vorlage: Schiefer · Moos · Ocker ·
   Tanne · Schnee. Typografie: Nunito.
   ============================================================ */

@import url("fonts.css"); /* Nunito lokal – keine Verbindung zu Google Fonts */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --font-sans: "Nunito", "Trebuchet MS", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", SFMono-Regular, ui-monospace, "Cascadia Code",
    Consolas, monospace;

  /* Natur-Grundfarben (Logo „Wald") */
  --schiefer:      #2E3A33;   /* Fels / Text        */
  --moos:          #5E8C3A;   /* Primärfarbe        */
  --moos-dark:     #4A7230;
  --moos-light:    #86B35A;
  --ocker:         #D29B2E;   /* Sonne              */
  --ocker-dark:    #A8781A;
  --tanne:         #1C2B22;   /* dunkle Flächen     */
  --schnee:        #F2EEE4;   /* Hintergrund        */
  --schnee-deep:   #E4DECF;
  --stein:         #DDD6C6;
  --stein-dark:    #CFC7B5;
  /* Varianten „Bergsee" & „Abendlicht" als Akzente */
  --seegruen:      #3F7A7C;
  --abendrot:      #C0582F;
  --waldboden:     #4A3628;
  --silivryak:     #7B5EA7;   /* Rhodopen-Veilchen  */

  /* Semantische Palette */
  --color-bg:          var(--schnee);
  --color-bg-raised:   #FBF9F4;
  --color-bg-inset:    var(--schnee-deep);
  --color-bg-secondary:#EDE8DC;
  --color-surface:     rgba(246, 243, 235, 0.82);
  --color-border:      rgba(46, 58, 51, 0.08);
  --color-border-mid:  rgba(46, 58, 51, 0.14);

  --color-text:        var(--schiefer);
  --color-text-pri:    var(--schiefer);
  --color-text-sec:    #4B564F;
  --color-text-ter:    #7A837C;
  --color-text-inv:    #F2EEE4;

  --color-accent:      var(--moos);
  --color-accent-dark: var(--moos-dark);
  --color-accent-bg:   rgba(94, 140, 58, 0.10);
  --color-success:     #5A9A46;
  --color-warning:     var(--ocker);
  --color-danger:      var(--abendrot);
  --color-info:        var(--seegruen);
  --color-vip:         var(--silivryak);

  /* Radii — etwas weicher, wie Flusskiesel */
  --radius-sm:  10px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  30px;
  --radius-pill: 999px;

  /* Schatten mit Tannengrün statt Schwarz */
  --shadow-sm: 0 4px 12px rgba(28, 43, 34, 0.05), 0 1px 3px rgba(28, 43, 34, 0.04);
  --shadow-md: 0 12px 32px rgba(28, 43, 34, 0.08), 0 4px 12px rgba(28, 43, 34, 0.04);
  --shadow-lg: 0 20px 56px rgba(28, 43, 34, 0.12), 0 8px 24px rgba(28, 43, 34, 0.05);
  --shadow-xl: 0 32px 80px rgba(28, 43, 34, 0.18), 0 12px 36px rgba(28, 43, 34, 0.07);

  /* Transitions */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur-fast:    140ms;
  --dur-base:    260ms;
  --dur-slow:    520ms;

  --blur-glass: blur(22px) saturate(140%);
  --nav-h: 64px;

  /* Papierkorn (feines Rauschen) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.23 0 0 0 0 0.2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Höhenlinien (Topografie) */
  --topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400' viewBox='0 0 600 400' fill='none' stroke='%235E8C3A' stroke-opacity='.10' stroke-width='1.2'%3E%3Cpath d='M-20 320c60-40 110-30 160-60s80-90 150-90 110 60 170 60 110-40 160-50'/%3E%3Cpath d='M-20 350c70-30 120-20 170-45s90-80 160-80 100 50 160 55 110-30 150-40'/%3E%3Cpath d='M-20 380c70-20 130-10 180-30s100-70 170-70 100 40 150 45 100-20 140-30'/%3E%3Cpath d='M210 150c20-30 60-50 100-45s70 35 60 60-50 35-90 30-85-20-70-45z'/%3E%3Cpath d='M235 152c15-18 45-30 72-26s48 22 40 38-36 22-62 19-60-12-50-31z'/%3E%3Cpath d='M262 154c10-8 28-13 44-11s26 10 22 17-20 10-35 9-38-6-31-15z'/%3E%3Cpath d='M-20 60c80 20 140-10 200 10s100 50 180 40 150-60 260-40'/%3E%3Cpath d='M-20 30c80 20 150-15 210 5s110 45 185 35 140-55 245-35'/%3E%3C/svg%3E");
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: var(--grain);
  min-height: 100dvh;
  padding-bottom: 0;
  position: relative;
}
/* Ferne Rhodopen-Silhouette am unteren Bildrand jeder Seite */
body::before {
  content: '';
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 26vh;
  max-height: 260px;
  z-index: -1;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23E9E3D5' d='M0 190C90 160 160 120 250 128s150 60 240 52 160-90 260-96 170 66 270 70 170-58 250-62 120 20 170 30V320H0z'/%3E%3Cpath fill='%23E2DBCB' d='M0 250c110-34 190-60 300-52s170 46 270 40 180-64 290-60 150 52 250 50 200-40 330-30V320H0z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  opacity: .6;
}
img, video { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; }
::selection { background: rgba(210, 155, 46, 0.35); color: var(--tanne); }
:focus-visible { outline: 2.5px solid var(--ocker); outline-offset: 2px; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.015em; }
.display {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--schiefer);
}
.display em, .headline-1 em { font-style: normal; color: var(--moos); }
.headline-1 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.headline-2 {
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
}
.title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.body-lg  { font-size: 1.0625rem; line-height: 1.62; }
.body     { font-size: 0.9375rem; line-height: 1.58; }
.caption  { font-size: 0.8125rem; color: var(--color-text-sec); line-height: 1.45; }
.mono     { font-family: var(--font-mono); font-size: 0.85em; }
.text-sec { color: var(--color-text-sec); }
.text-inv { color: var(--color-text-inv); }

/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 60px);
}
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.stack { display: flex; flex-direction: column; }
.stack-2 { display: flex; flex-direction: column; gap: 8px; }
.stack-4 { display: flex; flex-direction: column; gap: 16px; }
.stack-6 { display: flex; flex-direction: column; gap: 24px; }

/* Topografische Höhenlinien als Flächen-Muster */
.topo-bg {
  background-image: var(--topo), var(--grain);
  background-size: 600px 400px, 160px 160px;
}
.section-raised {
  background-color: var(--color-bg-raised);
  border-top: 1px solid var(--color-border);
}
.section-forest {
  background: var(--tanne);
  color: var(--schnee);
}

/* ── Brand Logo (Sonne · Fels · Moospfad) ───────────────── */
.brand-mark { display: block; overflow: visible; }
.brand-mark .bm-sun   { fill: var(--ocker); }
.brand-mark .bm-rock  { fill: none; stroke: var(--schiefer); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .bm-path  { fill: none; stroke: var(--moos); stroke-width: 7; stroke-linecap: round; }
.brand-mark.on-dark .bm-rock { stroke: var(--schnee); }
.brand-mark.on-dark .bm-path { stroke: var(--moos-light); }
.brand-mark.on-moss .bm-rock { stroke: var(--schnee); stroke-width: 10; }
.brand-mark.on-moss .bm-path { stroke: var(--tanne); stroke-width: 8; }
.brand-word {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--schiefer);
}
.brand-word span { color: var(--moos); }
.on-dark .brand-word, .brand-word.on-dark { color: var(--schnee); }
.on-dark .brand-word span, .brand-word.on-dark span { color: var(--moos-light); }
.brand-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--moos);
  border-radius: 23%;
  box-shadow: 0 14px 32px rgba(28, 43, 34, 0.22);
}
.brand-tile .brand-mark { width: 76%; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h, 56px);
  /* Bewusst OHNE backdrop-filter: Ein Weichzeichner über gescrolltem/animiertem Inhalt muss jedes Bild neu abgetastet
     werden und flackert in Chrome/Safari (Leiste „kommt und geht“). Fast deckender Hintergrund sieht gleich aus. */
  background: rgba(246, 243, 235, 0.97);
  isolation: isolate;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  transition: background var(--dur-base), border-color var(--dur-base), box-shadow var(--dur-base);
}
.nav.scrolled {
  background: rgba(246, 243, 235, 0.98);
  box-shadow: 0 6px 24px rgba(28, 43, 34, 0.06);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 12px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--schiefer);
  text-decoration: none;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-spring);
}
.nav-logo:hover { transform: scale(1.03); text-decoration: none; }
.nav-logo svg { width: 40px; height: 30px; }
.nav-logo .brand-word span { color: var(--moos); }
.nav-logo:hover .bm-sun { animation: sunPulse 1.6s ease-in-out infinite; transform-origin: 93px 18px; }
@keyframes sunPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* Navigation über dunklen Heros (Tanne) */
.nav.nav-on-dark { background: transparent; border-bottom-color: rgba(242, 238, 228, 0.1); box-shadow: none; }
.nav.nav-on-dark .bm-rock { stroke: var(--schnee); }
.nav.nav-on-dark .bm-path { stroke: var(--moos-light); }
.nav.nav-on-dark .brand-word { color: var(--schnee); }
.nav.nav-on-dark .brand-word span { color: var(--moos-light); }
.nav.nav-on-dark .nav-links { background: rgba(242, 238, 228, 0.08); border-color: rgba(242, 238, 228, 0.12); }
.nav.nav-on-dark .nav-link:not(.active) { color: rgba(242, 238, 228, 0.85); }
.nav.nav-on-dark .nav-link:not(.active):hover { background: rgba(242, 238, 228, 0.12); color: var(--schnee); }
.nav.nav-on-dark .nav-link-download { color: var(--moos-light) !important; }
.nav.nav-on-dark .nav-search-trigger,
.nav.nav-on-dark .nav-lang-badge,
.nav.nav-on-dark .nav-mobile-app-btn { background: rgba(242, 238, 228, 0.1); border-color: rgba(242, 238, 228, 0.16); color: var(--schnee); }
.nav.nav-on-dark .nav-search-trigger kbd { background: transparent; color: rgba(242, 238, 228, 0.6); border-color: rgba(242, 238, 228, 0.2); }

/* Segmentierte Navigation (Desktop) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(46, 58, 51, 0.05);
  border: 1px solid rgba(46, 58, 51, 0.06);
  padding: 3px;
  border-radius: var(--radius-pill);
}
.nav-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-text-sec);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--schiefer);
  background: rgba(94, 140, 58, 0.10);
  text-decoration: none;
}
.nav-link.active {
  color: var(--schnee);
  background: var(--moos);
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(94, 140, 58, 0.35);
}
.nav-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ocker);
  box-shadow: 0 0 6px rgba(210, 155, 46, 0.9);
  animation: pulseLiveDot 2s infinite ease-in-out;
}
@keyframes pulseLiveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Rechte Aktionsgruppe */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Sprachumschalter */
.nav-lang-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-lang-select {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  -webkit-appearance: none;
}
.nav-lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(46, 58, 51, 0.05);
  border: 1px solid rgba(46, 58, 51, 0.08);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--schiefer);
  transition: all var(--dur-fast);
  pointer-events: none;
}
.nav-lang-wrap:hover .nav-lang-badge {
  background: rgba(94, 140, 58, 0.10);
  border-color: rgba(94, 140, 58, 0.3);
}

/* Avatar */
.nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--moos);
  color: var(--schnee);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(94, 140, 58, 0.3);
  transition: transform var(--dur-fast) var(--ease-spring);
}
.nav-user-avatar:hover { transform: scale(1.06); text-decoration: none; }

@media (max-width: 1180px) and (min-width: 769px) {
  .nav-search-trigger span, .nav-search-trigger kbd { display: none; }
  .nav-link { padding: 6px 10px; font-size: 0.82rem; }
  .nav-link-download svg { display: none; }
  .nav-logo .brand-word { display: none; }
}
@media (max-width: 940px) and (min-width: 769px) {
  .nav-link-download { display: none !important; }
}

/* ── Mobile Tab Bar ─────────────────────────────────────── */
.mobile-tab-bar { display: none; }

@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .nav-search-trigger span,
  .nav-search-trigger kbd { display: none; }
  .nav-search-trigger {
    padding: 7px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    justify-content: center;
    margin-right: 0;
  }
  .nav-logo { font-size: 1.15rem; }
  .nav-logo svg { width: 34px; height: 26px; }
  .nav-mobile-app-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(46, 58, 51, 0.1);
    background: rgba(46, 58, 51, 0.05);
    color: var(--schiefer);
    cursor: pointer;
    padding: 0;
    transition: all var(--dur-fast) var(--ease-spring);
  }
  .nav-mobile-app-btn:active { transform: scale(0.92); }
  .mobile-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(246, 243, 235, 0.98); /* ohne backdrop-filter – siehe .nav */
    isolation: isolate;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -6px 24px rgba(28, 43, 34, 0.06);
    align-items: stretch;
    justify-content: space-around;
  }
  /* kleiner Bergkamm über der Tab-Leiste */
  .mobile-tab-bar::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: -9px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 10' preserveAspectRatio='none'%3E%3Cpath fill='%23F4F1E9' fill-opacity='.9' d='M0 10 L0 7 C40 3 70 2 100 6 S160 1 200 4 S270 8 300 3 S370 5 400 7 L400 10z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
    pointer-events: none;
  }
  .mobile-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 44px;
    min-height: 44px;
    text-decoration: none;
    color: var(--color-text-ter);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: -0.005em;
    transition: color 0.15s, transform 0.15s var(--ease-spring);
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-tab-item:hover { text-decoration: none; }
  .mobile-tab-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.9;
    transition: transform 0.15s var(--ease-spring), stroke 0.15s;
  }
  .mobile-tab-item:active { transform: scale(0.92); }
  .mobile-tab-item.active { color: var(--moos); font-weight: 800; }
  .mobile-tab-item.active svg { stroke: var(--moos); transform: translateY(-1px) scale(1.06); }
  .mobile-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--ocker);
  }
  .mobile-tab-badge {
    position: absolute;
    top: 7px;
    right: calc(50% - 14px);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ocker);
    box-shadow: 0 0 6px rgba(210, 155, 46, 0.9);
  }

  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important; }
}

.page-body { padding-top: var(--nav-h, 56px); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast) var(--ease-smooth),
              background var(--dur-fast);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -0.005em;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--moos);
  color: var(--schnee);
  box-shadow: 0 4px 14px rgba(94, 140, 58, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  background: var(--moos-dark);
  box-shadow: 0 8px 22px rgba(94, 140, 58, 0.4);
  color: var(--schnee);
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(46, 58, 51, 0.07);
  color: var(--schiefer);
}
.btn-secondary:hover { background: rgba(46, 58, 51, 0.12); color: var(--schiefer); }
.btn-ghost {
  background: transparent;
  color: var(--moos-dark);
  border: 1.5px solid var(--moos);
}
.btn-ghost:hover { background: var(--color-accent-bg); }
.btn-sun {
  background: var(--ocker);
  color: var(--tanne);
  box-shadow: 0 4px 14px rgba(210, 155, 46, 0.35);
}
.btn-sun:hover { background: #DDA93F; color: var(--tanne); transform: translateY(-1px); }
.btn-sm { font-size: 0.875rem; padding: 8px 18px; }
.btn-lg { font-size: 1.1rem; padding: 16px 32px; }
.btn-icon { padding: 12px; border-radius: var(--radius-md); }

/* Social login buttons */
.btn-google {
  background: #FFFFFF;
  color: #3c4043;
  border: 1.5px solid var(--color-border-mid);
  box-shadow: var(--shadow-sm);
  width: 100%;
  font-size: 0.9375rem;
  padding: 13px 20px;
}
.btn-google:hover { box-shadow: var(--shadow-md); color: #3c4043; }
.btn-apple {
  background: var(--tanne);
  color: var(--schnee);
  width: 100%;
  font-size: 0.9375rem;
  padding: 13px 20px;
}
.btn-apple:hover { background: #111B15; color: var(--schnee); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--color-bg-raised);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.65);
  pointer-events: none;
}
.card-glass {
  background: var(--color-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-md);
}
.card-body { padding: 24px; }
.card-sm .card-body { padding: 16px; }
.card-lg .card-body { padding: 32px; }
.card-hover { transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
}
.form-input, .form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-md);
  background: #FFFDF8;
  box-shadow: inset 0 2px 5px rgba(28, 43, 34, 0.03);
  color: var(--color-text);
  font-size: 1rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
}
.form-input:focus, .form-control:focus {
  outline: none;
  border-color: var(--moos);
  box-shadow: 0 0 0 4px rgba(94, 140, 58, 0.18);
}
.form-input::placeholder, .form-control::placeholder { color: var(--color-text-ter); }
.form-helper { font-size: 0.8125rem; color: var(--color-text-sec); }
.form-error { font-size: 0.8125rem; color: var(--color-danger); font-weight: 600; }

/* ── Badges / Chips ──────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
}
.badge-blue   { background: rgba(63, 122, 124, 0.14);  color: #2C5B5D; }
.badge-green  { background: rgba(94, 140, 58, 0.14);   color: #3F6B28; }
.badge-gold   { background: rgba(210, 155, 46, 0.18);  color: #85600F; }
.badge-gray   { background: rgba(46, 58, 51, 0.08);    color: var(--color-text-sec); }
.badge-red    { background: rgba(192, 88, 47, 0.14);   color: #9A4020; }
.badge-moss   { background: var(--moos); color: var(--schnee); }

.status-approved { background: rgba(94, 140, 58, 0.16);  color: #3F6B28; }
.status-pending  { background: rgba(210, 155, 46, 0.18); color: #85600F; }
.status-rejected { background: rgba(192, 88, 47, 0.14);  color: #9A4020; }

/* ── SmoGo ID Card (Tanne mit Bergkamm) ─────────────────── */
.smogo-id-card {
  background:
    radial-gradient(circle at 84% 12%, rgba(210, 155, 46, 0.45) 0, rgba(210, 155, 46, 0) 32%),
    linear-gradient(160deg, #26392D 0%, var(--tanne) 70%);
  border-radius: var(--radius-xl);
  padding: 32px;
  color: var(--schnee);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  isolation: isolate;
}
.smogo-id-card::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 160' preserveAspectRatio='none'%3E%3Cpath fill='%232E4A36' d='M0 90C40 70 70 50 110 56s60 30 100 26 70-44 110-46 60 26 80 30V160H0z'/%3E%3Cpath fill='%23355A3C' fill-opacity='.8' d='M0 125c50-20 90-30 140-24s70 20 120 16 90-26 140-18V160H0z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  opacity: .9;
}
.smogo-id-card::after {
  content: '';
  position: absolute;
  top: 18px; right: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ocker);
  box-shadow: 0 0 40px rgba(210, 155, 46, 0.6);
  z-index: -1;
}
.smogo-id-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--moos);
  border: 3px solid rgba(242, 238, 228, 0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--schnee);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.smogo-id-number {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: rgba(242, 238, 228, 0.6);
}
.smogo-id-name {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.smogo-id-logo {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 238, 228, 0.55);
}

/* ── Notice / Alert Box ──────────────────────────────────── */
.notice-box {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  display: flex;
  gap: 12px;
}
.notice-info {
  background: rgba(63, 122, 124, 0.08);
  border: 1px solid rgba(63, 122, 124, 0.22);
  color: #24494A;
}
.notice-info .notice-icon { color: var(--seegruen); flex-shrink: 0; margin-top: 1px; }
.notice-warning {
  background: rgba(210, 155, 46, 0.10);
  border: 1px solid rgba(210, 155, 46, 0.3);
  color: #6E4E0C;
}

/* ── Hero (klassisch, für Unterseiten) ───────────────────── */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  padding-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 10%, rgba(210, 155, 46, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 20% 80%, rgba(94, 140, 58, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moos-dark);
  margin-bottom: 20px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── Rhodopen-Landschaft (Startseite) ────────────────────── */
.landscape-hero {
  --ridge-h: clamp(260px, 44vw, 580px);
  position: relative;
  min-height: min(92dvh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: calc(var(--nav-h) + clamp(32px, 7vh, 88px));
  padding-bottom: calc(var(--ridge-h) * 0.62);
  overflow: hidden;
  isolation: isolate;
  /* Tageszeit-Palette (Standard: „Wald" am Tag) */
  --sky-top: #BCD3CC;
  --sky-mid: #DCE3D2;
  --sky-low: #F4ECD8;
  --sun: var(--ocker);
  --sun-glow: rgba(210, 155, 46, 0.22);
  --ridge-1: #B7C5B0;
  --ridge-2: #8CA686;
  --ridge-3: #5E7F55;
  --ridge-4: #34503A;
  --trees: #25392B;
  --fog: rgba(250, 247, 240, 0.75);
  --hero-ink: var(--schiefer);
  --hero-ink-sec: #3F4A43;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-low) 80%);
  transition: background 1.2s ease;
}
/* Bergsee — Morgen */
[data-daytime="morning"] .landscape-hero {
  --sky-top: #B5D3D2; --sky-mid: #DDE6DA; --sky-low: #F8E9C9;
  --sun: #D9A441; --sun-glow: rgba(217, 164, 65, 0.25);
  --ridge-1: #AFC6C2; --ridge-2: #7FA3A0; --ridge-3: #4F7F7C; --ridge-4: #2F5553;
  --trees: #213B3A;
}
/* Abendlicht — Abend */
[data-daytime="evening"] .landscape-hero {
  --sky-top: #8E7B8E; --sky-mid: #E0A585; --sky-low: #F6D6A8;
  --sun: #C0582F; --sun-glow: rgba(192, 88, 47, 0.28);
  --ridge-1: #B99489; --ridge-2: #8E6A5E; --ridge-3: #654A3C; --ridge-4: #4A3628;
  --trees: #33251B;
  --fog: rgba(250, 230, 210, 0.55);
}
/* Nacht — Tanne & Sterne */
[data-daytime="night"] .landscape-hero {
  --sky-top: #0E1712; --sky-mid: #1C2B22; --sky-low: #34473B;
  --sun: #EDE6D2; --sun-glow: rgba(237, 230, 210, 0.18);
  --ridge-1: #34473B; --ridge-2: #2A3B30; --ridge-3: #213026; --ridge-4: #18241C;
  --trees: #101913;
  --fog: rgba(210, 220, 210, 0.18);
  --hero-ink: var(--schnee);
  --hero-ink-sec: rgba(242, 238, 228, 0.78);
}
.landscape-hero .display { color: var(--hero-ink); }
.landscape-hero .hero-lead { color: var(--hero-ink-sec); }
[data-daytime="night"] .landscape-hero .display em { color: var(--moos-light); }
[data-daytime="night"] .landscape-hero .hero-eyebrow { color: var(--moos-light); }
[data-daytime="night"] .landscape-hero .btn-secondary { background: rgba(242, 238, 228, 0.14); color: var(--schnee); }
[data-daytime="night"] .landscape-hero .caption { color: rgba(242, 238, 228, 0.6); }

.landscape {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.landscape .ls-sky { position: absolute; inset: 0; }
.landscape .ls-ridges {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--ridge-h);
}
.landscape .ls-ridges svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; overflow: visible; }
.landscape .ls-layer { will-change: transform; }
.landscape .ls-sun-wrap {
  position: absolute;
  top: calc(var(--nav-h) + clamp(24px, 6vh, 70px));
  right: clamp(24px, 12vw, 220px);
}
.landscape .ls-sun {
  width: clamp(64px, 8vw, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 clamp(14px, 2vw, 26px) var(--sun-glow), 0 0 80px 30px var(--sun-glow);
  transition: background 1.2s ease, box-shadow 1.2s ease;
  opacity: .95;
}
[data-daytime="night"] .landscape .ls-sun {
  background: radial-gradient(circle at 36% 36%, #FBF8EF 0, #EDE6D2 55%, #D9D0B8 100%);
  box-shadow: 0 0 60px 10px var(--sun-glow);
}
.landscape .ls-r1 { fill: var(--ridge-1); }
.landscape .ls-r2 { fill: var(--ridge-2); }
.landscape .ls-r3 { fill: var(--ridge-3); }
.landscape .ls-r4 { fill: var(--ridge-4); }
.landscape .ls-trees { fill: var(--trees); }
.landscape .ls-ground { fill: var(--color-bg); }
.landscape .ls-tower { stroke: var(--ridge-2); stroke-width: 2.2; stroke-linecap: round; fill: none; }
.landscape .ls-tower-light { fill: var(--abendrot); animation: towerBlink 2.4s ease-in-out infinite; }
@keyframes towerBlink { 0%, 60%, 100% { opacity: .25; } 70%, 90% { opacity: 1; } }
.landscape .ls-stars { opacity: 0; transition: opacity 1.2s ease; }
[data-daytime="night"] .landscape .ls-stars { opacity: 1; }
.landscape .ls-star { fill: #F2EEE4; animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }
.landscape .ls-birds { fill: none; stroke: var(--ridge-4); stroke-width: 1.6; stroke-linecap: round; animation: birds 38s linear infinite; }
[data-daytime="night"] .landscape .ls-birds { display: none; }
@keyframes birds {
  from { transform: translate(45vw, 60px); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  to   { transform: translate(105vw, -30px); opacity: 0; }
}
.landscape .ls-fog {
  fill: var(--fog);
  filter: blur(18px);
  animation: fogDrift 48s ease-in-out infinite alternate;
}
.landscape .ls-fog.slow { animation-duration: 70s; animation-direction: alternate-reverse; }
@keyframes fogDrift {
  from { transform: translateX(-6%); }
  to   { transform: translateX(6%); }
}

.hero-lead { max-width: 560px; margin-top: 20px; }
.hero-now {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 7px 14px 7px 8px;
  border-radius: var(--radius-pill);
  background: rgba(251, 249, 244, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(46, 58, 51, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--schiefer);
}
.hero-now-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ocker);
  color: var(--tanne);
}
.hero-now .sep { opacity: .35; }
.hero-now > span { white-space: nowrap; }
@media (max-width: 480px) {
  .hero-now { font-size: 0.78rem; gap: 7px; }
  .hero-now .hn-alt, .hero-now .hn-alt-sep { display: none; }
  .landscape .ls-sun-wrap { top: calc(var(--nav-h) + 10px); right: 14px; }
  .landscape .ls-sun { width: 48px; box-shadow: 0 0 0 10px var(--sun-glow), 0 0 50px 16px var(--sun-glow); }
  .landscape-hero .hero-eyebrow { padding-right: 56px; }
}
[data-daytime="night"] .hero-now { background: rgba(28, 43, 34, 0.6); color: var(--schnee); border-color: rgba(242, 238, 228, 0.12); }
[data-daytime="night"] .hero-now-icon { background: var(--schnee); }

/* Wellige Grat-Trenner zwischen Sektionen */
.ridge-divider {
  display: block;
  width: 100%;
  height: clamp(36px, 6vw, 80px);
  margin-bottom: -1px;
}
.ridge-divider path { fill: var(--color-bg-raised); }
.ridge-divider.to-forest path { fill: var(--tanne); }

/* ── Landmarken / Region ──────────────────────────────────── */
.landmark-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .landmark-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .landmark-grid { grid-template-columns: 1fr; } }
.landmark-card {
  position: relative;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base);
}
.landmark-card:hover { transform: translateY(-5px) rotate(-0.3deg); box-shadow: var(--shadow-lg); }
.landmark-art {
  height: 150px;
  display: block;
  width: 100%;
}
.landmark-body { padding: 18px 20px 22px; }
.landmark-alt {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocker-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.landmark-name { font-size: 1.15rem; font-weight: 900; margin: 4px 0 6px; letter-spacing: -0.01em; }
.landmark-desc { font-size: 0.9rem; color: var(--color-text-sec); line-height: 1.5; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 40px;
}
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(242, 238, 228, 0.07);
  border: 1px solid rgba(242, 238, 228, 0.1);
}
.stat-value { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 900; line-height: 1; letter-spacing: -0.02em; color: var(--schnee); }
.stat-value small { font-size: 0.5em; font-weight: 800; margin-left: 3px; color: var(--moos-light); }
.stat-label { margin-top: 6px; font-size: 0.85rem; font-weight: 600; color: rgba(242, 238, 228, 0.66); }

.forest-quote {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--schnee);
  max-width: 760px;
}
.forest-quote::before { content: '„'; color: var(--ocker); }
.forest-quote::after { content: '"'; color: var(--ocker); }

/* ── Feature Grid ────────────────────────────────────────── */
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 16px 16px 16px 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-icon svg { width: 25px; height: 25px; display: block; }
.feature-icon-blue   { background: rgba(63, 122, 124, 0.13); color: var(--seegruen); }
.feature-icon-green  { background: rgba(94, 140, 58, 0.14);  color: var(--moos); }
.feature-icon-gold   { background: rgba(210, 155, 46, 0.16); color: var(--ocker-dark); }
.feature-icon-purple { background: rgba(123, 94, 167, 0.13); color: var(--silivryak); }
.feature-icon-red    { background: rgba(192, 88, 47, 0.13);  color: var(--abendrot); }

/* ── Place Card ──────────────────────────────────────────── */
.place-card {
  background: var(--color-bg-raised);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-smooth);
}
.place-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.place-card-image {
  width: 100%; height: 160px;
  object-fit: cover;
  background: var(--color-bg-inset) var(--topo);
  background-size: 300px 200px;
}
.place-card-body { padding: 16px; }
.place-card-name { font-weight: 800; font-size: 0.98rem; margin-bottom: 4px; }
.place-card-addr { font-size: 0.825rem; color: var(--color-text-sec); }

/* ── Divider ─────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--color-border-mid); }
.divider-text {
  display: flex; align-items: center; gap: 16px;
  color: var(--color-text-ter); font-size: 0.8125rem; font-weight: 700;
}
.divider-text::before,
.divider-text::after { content: ''; flex: 1; border-top: 1px solid var(--color-border-mid); }

/* ── Skeleton loader ─────────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #E7E1D2 25%, #F1ECE0 50%, #E7E1D2 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* ── Toast ───────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
@media (max-width: 768px) { .toast-container { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); } }
.toast {
  background: var(--tanne);
  color: var(--schnee);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  animation: toastIn var(--dur-base) var(--ease-spring) forwards;
  pointer-events: auto;
}
.toast.error { background: var(--abendrot); }
.toast.success { background: var(--moos-dark); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.92); }
}

/* ── Footer (Tannenwald mit Bergkamm) ────────────────────── */
.footer {
  position: relative;
  background: var(--tanne);
  color: rgba(242, 238, 228, 0.66);
  padding-block: 40px 32px;
  margin-top: clamp(90px, 10vw, 130px);
  font-size: 0.875rem;
}
.footer-ridge {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(100% - 1px);
  width: 100%;
  height: clamp(70px, 11vw, 130px);
  display: block;
  pointer-events: none;
}
.footer-ridge .fr-far   { fill: #3A5242; }
.footer-ridge .fr-mid   { fill: #2A3F31; }
.footer-ridge .fr-near  { fill: var(--tanne); }
.footer a { color: rgba(242, 238, 228, 0.7); }
.footer a:hover { color: var(--schnee); text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand svg { width: 56px; height: 42px; }
.footer-logo {
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--schnee);
  line-height: 1;
}
.footer-logo span { color: var(--moos-light); }
.footer-coords {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(242, 238, 228, 0.4);
  margin-top: 4px;
}
.footer-lang-switcher {
  background: rgba(242, 238, 228, 0.06);
  color: rgba(242, 238, 228, 0.8);
  border: 1px solid rgba(242, 238, 228, 0.18);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}
.footer-lang-switcher option { color: var(--schiefer); }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(242, 238, 228, 0.1);
  font-weight: 600;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 8px;
}
.footer-aside { text-align: right; }
@media (max-width: 600px) { .footer-aside { text-align: left; margin-top: 18px; } }
.footer-greeting {
  font-weight: 800;
  color: var(--ocker);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ── Page layouts ────────────────────────────────────────── */
.login-page {
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 24px) 16px 48px;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(210, 155, 46, 0.16), transparent 60%),
    linear-gradient(180deg, #D5E0D3 0%, var(--color-bg) 70%);
}
.login-page::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400' preserveAspectRatio='none'%3E%3Cpath fill='%23B7C5B0' d='M0 170C120 120 220 90 340 104s190 70 300 60 200-110 330-112 210 80 320 84 150-40 150-40V400H0z'/%3E%3Cpath fill='%238CA686' d='M0 250c140-50 240-76 380-62s210 60 330 52 220-80 350-76 250 50 380 36V400H0z'/%3E%3Cpath fill='%23F2EEE4' d='M0 330c160-30 320-44 480-34s300 30 470 24 330-26 490-20V400H0z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.login-box {
  width: 100%;
  max-width: 440px;
  background: rgba(251, 249, 244, 0.9);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(46, 58, 51, 0.08);
  box-shadow: 0 24px 60px -12px rgba(28, 43, 34, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  padding: 40px;
  transition: transform var(--dur-base) var(--ease-smooth),
              box-shadow var(--dur-base) var(--ease-smooth);
}
@media (max-width: 480px) { .login-box { padding: 28px 22px; } }
.login-logo-wrap {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo-icon {
  width: 76px; height: 76px;
  background: var(--moos);
  border-radius: 22px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -6px rgba(28, 43, 34, 0.35);
  transition: transform 0.25s var(--ease-spring);
}
.login-logo-icon svg { width: 76%; height: auto; }
.login-logo-icon:hover { transform: scale(1.05) rotate(-2deg); }

.password-login-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-smooth);
}
.password-login-wrap.open { max-height: 450px; }

/* ── Dashboard ───────────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; } }

.activity-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}

/* ── Map container ───────────────────────────────────────── */
#map {
  width: 100%;
  height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-mid);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) { #map { height: 360px; } }
/* Karte ohne Einwilligung „Karte“: Platzhalter statt Kacheln von OpenStreetMap */
.map-locked {
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-alt, #EFEADB);
  border-radius: inherit;
  padding: 16px;
}
.map-locked-text { text-align: center; max-width: 340px; font-size: 0.9rem; color: var(--color-text-sec); }
.map-locked-text p { margin: 0 0 12px; }
/* Leaflet-Karten im Naturton */
.leaflet-container { font-family: var(--font-sans) !important; background: var(--schnee-deep) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--color-bg-raised) !important; color: var(--schiefer) !important; }
.leaflet-popup-content-wrapper { border-radius: 16px !important; box-shadow: var(--shadow-md) !important; }
.leaflet-bar a { color: var(--schiefer) !important; }

/* ── Sidebar layout ──────────────────────────────────────── */
.places-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .places-layout { grid-template-columns: 1fr; } }

/* ── Responsive nav ──────────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 6px;
  color: var(--color-text);
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Scroll-driven fade-in ───────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp var(--dur-slow) var(--ease-out) both; }
.fade-up-1 { animation-delay: 80ms; }
.fade-up-2 { animation-delay: 160ms; }
.fade-up-3 { animation-delay: 240ms; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Dev Lock Screen */
body.dev-locked .nav,
body.dev-locked .page-body,
body.dev-locked .footer {
  filter: blur(14px) saturate(120%);
  pointer-events: none;
  user-select: none;
}

.dev-lock-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(28, 43, 34, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(25px) saturate(140%);
  -webkit-backdrop-filter: blur(25px) saturate(140%);
}
.dev-lock-content {
  text-align: center;
  max-width: 420px;
  width: 90%;
  background: rgba(251, 249, 244, 0.94);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(28, 43, 34, 0.3), 0 4px 16px rgba(28, 43, 34, 0.1);
  padding: 36px 30px;
  color: var(--color-text);
  animation: modalScale 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.dev-lock-content h2 { margin-bottom: 8px; }

/* Einwilligungsdialog (Cookie-Consent) – unten, blockiert die Seite nicht */
.consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100000;
  display: flex;
  justify-content: center;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.consent-card {
  pointer-events: auto;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  background: var(--color-bg-raised);
  color: var(--color-text);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 22px 22px 18px;
  animation: consentIn 0.3s var(--ease-out) both;
}
.consent-title { font-size: 1.15rem; font-weight: 800; margin: 0 0 6px; }
.consent-text { font-size: 0.9rem; line-height: 1.5; color: var(--color-text-sec); margin: 0 0 14px; }
.consent-text a { color: var(--moos-dark); text-decoration: underline; font-weight: 700; }
.consent-details { display: grid; gap: 10px; margin-bottom: 16px; }
.consent-details[hidden] { display: none; }
.consent-option {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  cursor: pointer;
}
.consent-option-text { display: grid; gap: 2px; font-size: 0.85rem; color: var(--color-text-sec); }
.consent-option-text strong { color: var(--color-text); font-size: 0.95rem; }
.consent-switch { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--moos); cursor: pointer; }
.consent-switch:disabled { cursor: not-allowed; opacity: 0.7; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions .btn { flex: 1 1 180px; justify-content: center; }
@keyframes consentIn {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .consent-card { animation: none; } }

@keyframes modalScale {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Tabelle ─────────────────────────────────────────────── */
.table-hig-wrap {
  background: var(--color-bg-raised);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  overflow-x: auto;
}
.table-hig {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}
.table-hig th {
  padding: 14px 18px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-sec);
  background: rgba(46, 58, 51, 0.03);
  border-bottom: 1px solid var(--color-border-mid);
}
.table-hig td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: middle;
}
.table-hig tbody tr { transition: background var(--dur-fast) var(--ease-smooth); }
.table-hig tbody tr:hover { background: rgba(94, 140, 58, 0.05); }
.table-hig tbody tr:last-child td { border-bottom: none; }

/* ── Segmented Control ───────────────────────────────────── */
.segmented-control {
  display: inline-flex;
  background: rgba(46, 58, 51, 0.06);
  border-radius: 14px;
  padding: 3px;
  gap: 2px;
}
.segmented-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-text-sec);
  border-radius: 11px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-smooth);
  text-decoration: none;
}
.segmented-item:hover { color: var(--color-text); text-decoration: none; }
.segmented-item.active {
  background: var(--color-bg-raised);
  color: var(--moos-dark);
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(28, 43, 34, 0.1);
}
.segmented-item svg { width: 15px; height: 15px; }

/* ── Transit ─────────────────────────────────────────────── */
.transit-shell {
  background: var(--color-bg-raised);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: 24px;
}
.transit-pill-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-sec);
  background: rgba(46, 58, 51, 0.05);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-smooth);
}
.transit-pill-tab:hover { background: rgba(94, 140, 58, 0.1); color: var(--color-text); }
.transit-pill-tab.active {
  background: var(--moos);
  color: var(--schnee);
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(94, 140, 58, 0.3);
}
.transit-pill-tab svg { width: 16px; height: 16px; }
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(94, 140, 58, 0.14);
  color: #3F6B28;
  font-size: 0.6875rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 2px rgba(90, 154, 70, 0.3);
  animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(90, 154, 70, 0.5); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(90, 154, 70, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(90, 154, 70, 0); }
}
.transit-dest-arrow {
  display: inline-block;
  vertical-align: -1px;
  margin-right: 4px;
  color: var(--moos);
  opacity: 0.85;
}

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-card-apple {
  background: var(--color-bg-raised);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-mid);
  box-shadow: var(--shadow-sm);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--dur-base) var(--ease-smooth),
              box-shadow var(--dur-base) var(--ease-smooth),
              border-color var(--dur-base) var(--ease-smooth);
}
.pricing-card-apple:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(94, 140, 58, 0.35);
}
.pricing-card-apple.featured {
  border: 2px solid var(--moos);
  box-shadow: 0 12px 36px rgba(94, 140, 58, 0.14);
}
.pricing-card-apple.featured:hover { box-shadow: 0 20px 48px rgba(94, 140, 58, 0.2); }
.pricing-badge-apple {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ocker);
  color: var(--tanne);
  font-size: 0.6875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(210, 155, 46, 0.35);
}

/* ── Spinner ─────────────────────────────────────────────── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin-icon {
  animation: spin 0.9s linear infinite;
  transform-origin: center;
}
.apple-spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(94, 140, 58, 0.2);
  border-top-color: var(--moos);
  border-right-color: var(--ocker);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
.apple-spinner-sm { width: 15px; height: 15px; border-width: 2px; }
.apple-spinner-white {
  border-color: rgba(242, 238, 228, 0.25);
  border-top-color: var(--schnee);
}

/* ── Prose (Rechtliches & Redaktionelles) ────────────────── */
.prose-hig {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-pri);
  max-width: 72ch;
  margin-inline: auto;
  text-wrap: pretty;
}
.prose-hig h1, .prose-hig h2, .prose-hig h3, .prose-hig h4 {
  color: var(--color-text-pri);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}
.prose-hig h1 { font-size: 1.75rem; }
.prose-hig h2 { font-size: 1.3rem; border-bottom: 1px solid var(--color-border-mid); padding-bottom: 0.4em; }
.prose-hig h3 { font-size: 1.0625rem; }
.prose-hig p { margin-bottom: 1.2em; color: var(--color-text-sec); }
.prose-hig strong { color: var(--color-text-pri); }
.prose-hig a { color: var(--moos-dark); text-decoration: underline; text-decoration-color: rgba(94, 140, 58, 0.4); text-underline-offset: 3px; font-weight: 700; }
.prose-hig a:hover { text-decoration-color: var(--moos); }
.prose-hig ul, .prose-hig ol {
  margin-bottom: 1.4em;
  padding-left: 1.5em;
  color: var(--color-text-sec);
}
.prose-hig ul { list-style: none; }
.prose-hig ul li { position: relative; }
.prose-hig ul li::before {
  content: '';
  position: absolute;
  left: -1.1em; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50% 0 50% 0;
  background: var(--moos);
}
.prose-hig li { margin-bottom: 0.4em; }
.prose-hig hr {
  border: none;
  height: 16px;
  margin: 2em 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16'%3E%3Cpath d='M2 12 L28 4 L44 10 L52 6 L70 12' fill='none' stroke='%23CFC7B5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='82' cy='5' r='3' fill='%23D29B2E'/%3E%3C/svg%3E") center / 120px 16px no-repeat;
}
.prose-hig blockquote {
  border-left: 3px solid var(--moos);
  margin: 1.5em 0;
  padding: 0.5em 0 0.5em 1.2em;
  color: var(--color-text-sec);
  font-style: italic;
  background: var(--color-bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose-hig table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.875rem;
}
.prose-hig th, .prose-hig td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-mid);
}
.prose-hig th {
  font-weight: 800;
  color: var(--color-text-pri);
  background: var(--color-bg-secondary);
}

/* ── Suche & Autocomplete ───────────────────────────────── */
mark.search-highlight, .search-highlight {
  background: rgba(210, 155, 46, 0.25);
  color: var(--tanne);
  font-weight: 800;
  padding: 1px 3px;
  border-radius: 4px;
}

.search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-md);
  z-index: 1000;
  box-shadow: 0 12px 36px rgba(28, 43, 34, 0.14), 0 2px 6px rgba(28, 43, 34, 0.05);
  max-height: 340px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 0;
  animation: searchDropFade 160ms cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
@keyframes searchDropFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.search-dropdown-section {
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-ter);
}
.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast);
  color: var(--color-text);
  text-decoration: none;
  border-left: 3px solid transparent;
}
.search-dropdown-item:hover,
.search-dropdown-item.active {
  background: rgba(94, 140, 58, 0.08);
  border-left-color: var(--moos);
}
.search-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--color-bg-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--moos);
  flex-shrink: 0;
}
.search-dropdown-item:hover .search-item-icon,
.search-dropdown-item.active .search-item-icon {
  background: var(--moos);
  color: var(--schnee);
}
.search-item-content { flex: 1; min-width: 0; }
.search-item-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-text);
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-item-latin { font-size: 13px; font-weight: 500; color: var(--color-text-sec); }
.search-item-sub {
  font-size: 12px;
  color: var(--color-text-ter);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-item-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-inset);
  color: var(--color-text-sec);
  flex-shrink: 0;
}
.search-empty-state {
  padding: 24px 16px;
  text-align: center;
  color: var(--color-text-sec);
  font-size: 14px;
}
.search-empty-state svg {
  display: block;
  margin: 0 auto 8px;
  color: var(--color-text-ter);
}

/* ── Nav-Suche & Spotlight ──────────────────────────────── */
.nav-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46, 58, 51, 0.05);
  border: 1px solid rgba(46, 58, 51, 0.08);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-sec);
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
  margin-right: 6px;
}
.nav-search-trigger:hover {
  background: var(--color-bg-raised);
  border-color: var(--moos);
  color: var(--color-text);
}
.nav-search-trigger kbd {
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border-mid);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--color-text-ter);
}

.global-search-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(28, 43, 34, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 16px 24px;
  animation: searchBackdropFade 180ms ease forwards;
}
@keyframes searchBackdropFade { from { opacity: 0; } to { opacity: 1; } }
.global-search-modal {
  width: 100%;
  max-width: 620px;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border-mid);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(28, 43, 34, 0.25), 0 4px 16px rgba(28, 43, 34, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: searchModalSlide 200ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes searchModalSlide {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.global-search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
}
.global-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  font-family: inherit;
}
.global-search-input::placeholder { color: var(--color-text-ter); }
.global-search-close {
  background: none;
  border: none;
  color: var(--color-text-ter);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.global-search-close:hover { background: var(--color-bg-inset); color: var(--color-text); }
.global-search-body {
  max-height: 400px;
  overflow-y: auto;
  padding: 6px 0;
}
.global-search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-ter);
}

/* ── Download-App-Modal ─────────────────────────────────── */
.nav-mobile-app-btn { display: none; }
.nav-link-download { color: var(--moos-dark) !important; font-weight: 800; }

.download-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(28, 43, 34, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.download-modal-backdrop.open { opacity: 1; visibility: visible; }
.download-modal-card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px 30px 28px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(28, 43, 34, 0.25), 0 4px 16px rgba(28, 43, 34, 0.08);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  overflow: hidden;
}
.download-modal-backdrop.open .download-modal-card { transform: scale(1) translateY(0); }
.download-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(46, 58, 51, 0.06);
  color: var(--color-text-sec);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.download-modal-close-btn:hover { background: rgba(46, 58, 51, 0.12); color: var(--color-text); transform: scale(1.06); }
.download-modal-icon-wrap {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: var(--moos);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  box-shadow: 0 12px 28px -6px rgba(28, 43, 34, 0.35);
}
.download-modal-icon-wrap svg { width: 76%; height: auto; }
.download-modal-title {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0 0 10px 0;
}
.download-modal-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-sec);
  margin: 0 0 26px 0;
}
.download-modal-link {
  color: var(--moos-dark) !important;
  font-weight: 800;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}
.download-modal-link:hover { opacity: 0.8; }
.download-modal-actions { display: flex; flex-direction: column; }

/* ── Seitenkopf für Unterseiten ─────────────────────────── */
.page-header {
  position: relative;
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px);
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  right: -40px; top: 10px;
  width: min(420px, 60vw); height: 180px;
  background: var(--topo) 0 0 / 600px 400px;
  opacity: .9;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 40%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
}

/* ── Werbung (AdSense) ─────────────────────────────────── */
.ad-slot { margin: 24px auto; max-width: 760px; }
.ad-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-ter); margin-bottom: 6px; text-align: center; }

/* Meldung (DSA Art. 16) */
.report-field { display: grid; gap: 6px; font-size: 0.9rem; color: var(--color-text); }
.report-field select, .report-field textarea, .report-field input { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--color-border-mid); background: var(--color-surface, #fff); color: var(--color-text); }
.report-hint { font-size: 0.8rem; color: var(--color-text-sec); }
.pl-report { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 0.8rem; color: var(--color-text-sec); text-decoration: underline; cursor: pointer; }
.pl-report-row { margin-top: 14px; text-align: right; }

/* Sperrbildschirm: Anmelden oder Access-Code, Warteliste */
.gate-card { max-width: 440px; max-height: 92vh; overflow: auto; }
.gate-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--color-text-sec); font-size: 0.85rem; text-transform: lowercase; }
.gate-or::before, .gate-or::after { content: ""; flex: 1; height: 1px; background: var(--color-border); }
.gate-form { display: grid; gap: 8px; text-align: left; }
.gate-label, .gate-title { font-weight: 800; font-size: 0.9rem; }
.gate-error { color: var(--color-danger); font-size: 0.85rem; margin: 0; }
.gate-divider { height: 1px; background: var(--color-border); margin: 18px 0; }
