/* ==========================================================================
   ladepreis.app – Design-System & Theme-Variablen
   Basiert auf dem web-template Stylesystem
   Akzentfarbe: #005599
   100 % autark, self-hosted, DSGVO-konform (keine externen Verbindungen)
   ========================================================================== */

/* Lokale Webfonts (100% self-hosted / keine externen Google-Verbindungen) */
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/lexend-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/lexend-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;

  /* Typografie */
  --font: "Lexend", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Template Dunkel-Farbwerte */
  --c-bg: #212121;
  --c-surface: #2a2a2a;
  --c-surface-2: #333333;
  --c-line: #3d3d3d;
  --c-text: #ffffff;
  --c-soft: #c7c7c7;
  --c-mute: #9e9e9e;

  /* Akzentfarben */
  --c-accent: #005599;
  --c-accent-hi: #006ec7;
  --c-accent-text: #268bd2;
  --c-on-accent: #ffffff;
  --c-focus: #006ec7;
  --c-header: rgb(33 33 33 / 0.94);

  /* Schatten an #005599 angepasst */
  --shadow-card: 0 18px 40px -16px rgb(0 85 153 / 0.45);
  --shadow-float: 0 18px 40px -12px rgb(0 0 0 / 0.55);

  /* Radien */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-pill: 25px;

  /* Animationskurve */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --max-width: 1200px;
  --header-h: 4.25rem;
}

/* Heller Modus */
[data-theme="light"] {
  color-scheme: light;
  --c-bg: #f8f9fa;
  --c-surface: #ffffff;
  --c-surface-2: #f1f3f5;
  --c-line: #e2e5e9;
  --c-text: #1a1a1a;
  --c-soft: #4a5568;
  --c-mute: #718096;

  --c-accent: #005599;
  --c-accent-hi: #00447a;
  --c-accent-text: #005599;
  --c-on-accent: #ffffff;
  --c-focus: #005599;
  --c-header: rgb(248 249 250 / 0.94);

  --shadow-card: 0 18px 40px -18px rgb(0 85 153 / 0.25);
  --shadow-float: 0 18px 40px -14px rgb(0 0 0 / 0.15);
}

/* ==========================================================================
   Keyframe-Animationen
   ========================================================================== */

@keyframes ping {
  0% {
    opacity: 0.75;
    transform: scale(1);
  }
  80%, 100% {
    opacity: 0;
    transform: scale(2.5);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(1.2rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cd-tick {
  from {
    opacity: 0.3;
    transform: translateY(-0.25em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes donate-float {
  0%, 100% {
    transform: translateY(0) rotate(-0.5deg);
  }
  50% {
    transform: translateY(-6px) rotate(0.5deg);
  }
}

/* ==========================================================================
   Basis-Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 1.5rem);
  padding-right: clamp(1rem, 4vw, 1.5rem);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 10px 18px;
  background: var(--c-accent);
  color: var(--c-on-accent);
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 16px;
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.btn-sm {
  min-height: 2.125rem;
  padding: 0 0.875rem;
  font-size: 0.8125rem;
}

.btn-lg {
  min-height: 3.125rem;
  padding: 0 1.625rem;
  font-size: 1rem;
}

/* Primary Button */
.btn-primary, .btn-accent {
  background-color: var(--c-accent);
  color: var(--c-on-accent);
  box-shadow: 0 8px 22px -10px rgb(0 85 153 / 0.7);
}

@media (hover: hover) {
  .btn-primary:hover:not(:disabled), .btn-accent:hover:not(:disabled) {
    background-color: var(--c-accent-hi);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
  }
}
.btn-primary:active, .btn-accent:active {
  transform: translateY(0);
}

/* Outline Button */
.btn-outline, .btn-surface {
  background-color: var(--c-surface);
  color: var(--c-text);
  border: 1.5px solid var(--c-line);
}

@media (hover: hover) {
  .btn-outline:hover:not(:disabled), .btn-surface:hover:not(:disabled) {
    background-color: var(--c-surface-2);
    border-color: var(--c-accent);
    color: var(--c-text);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgb(0 0 0 / 0.4);
  }
}
.btn-outline:active, .btn-surface:active {
  transform: translateY(0);
}

/* Icon Buttons */
.icon-btn, .btn-theme {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  color: var(--c-text);
  transition: transform 0.25s var(--ease), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .icon-btn:hover, .btn-theme:hover {
    border-color: var(--c-accent);
    background: var(--c-accent);
    color: var(--c-on-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgb(0 85 153 / 0.4);
  }
}

/* Ticket Pill im Header */
.ticket-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4375rem;
  height: 2.375rem;
  padding: 0 1rem;
  border-radius: var(--radius-pill);
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 22px -10px rgb(0 85 153 / 0.7);
  transition: background-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

@media (hover: hover) {
  .ticket-pill:hover {
    background: var(--c-accent-hi);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px -8px rgb(0 85 153 / 0.85);
  }
}

/* Badge mit Live-Dot */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.875rem;
  background-color: var(--c-surface);
  color: var(--c-accent-text);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: border-color 0.2s ease;
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  display: inline-block;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--c-accent);
  animation: ping 2s var(--ease) infinite;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  pointer-events: none;
}

.header-bar {
  background: var(--c-header);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  border-bottom: 1px solid var(--c-line);
}

.header-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-icon {
  width: 1.85rem;
  height: 1.85rem;
  color: var(--c-accent-text);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.brand:hover .brand-icon {
  transform: rotate(15deg);
}

.brand-accent {
  color: var(--c-accent-text);
}

.brand-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--c-surface-2);
  color: var(--c-accent-text);
  border: 1px solid var(--c-line);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.25rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.main-nav {
  display: none;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .main-nav {
    display: block;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-text);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.375rem;
  height: 2px;
  background: var(--c-accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

@media (hover: hover) {
  .nav-link:hover {
    color: var(--c-accent-text);
  }
  .nav-link:hover::after,
  .nav-link.active::after {
    transform: scaleX(1);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.theme-toggle svg, .btn-theme svg {
  width: 1.25rem;
  height: 1.25rem;
}
[data-theme="light"] .theme-moon { display: block; }
[data-theme="light"] .theme-sun { display: none; }
[data-theme="dark"] .theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: block; }

.hamburger {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  flex-shrink: 0;
}
@media (min-width: 992px) {
  .hamburger {
    display: none;
  }
}

/* Mobiles Menü */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  height: calc(100dvh - var(--header-h));
  background: var(--c-bg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.3s ease;
  z-index: 90;
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav.open .mobile-nav-list li {
  animation: slide-up 0.4s var(--ease) both;
}
.mobile-nav.open .mobile-nav-list li:nth-child(1) { animation-delay: 40ms; }
.mobile-nav.open .mobile-nav-list li:nth-child(2) { animation-delay: 80ms; }
.mobile-nav.open .mobile-nav-list li:nth-child(3) { animation-delay: 120ms; }
.mobile-nav.open .mobile-nav-list li:nth-child(4) { animation-delay: 160ms; }
.mobile-nav.open .mobile-nav-list li:nth-child(5) { animation-delay: 200ms; }

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s ease, transform 0.2s var(--ease);
}

.mobile-nav-link svg {
  transition: transform 0.25s var(--ease);
}

@media (hover: hover) {
  .mobile-nav-link:hover {
    color: var(--c-accent-text);
    transform: translateX(4px);
  }
  .mobile-nav-link:hover svg {
    transform: translateX(6px) rotate(45deg);
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0 3.5rem;
  text-align: center;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  margin-bottom: 1.5rem;
  animation: donate-float 6s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero-title .accent {
  color: var(--c-accent-text);
  background: linear-gradient(135deg, #005599 0%, #268bd2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--c-soft);
  max-width: 700px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-soft);
}
.trust-item svg {
  color: var(--c-accent-text);
}

/* ==========================================================================
   Live Statistics & Participate
   ========================================================================== */

.participate-section {
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.stat-card {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-float);
  transition: transform 0.3s var(--ease), border-color 0.25s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
  .stat-card:hover {
    border-color: var(--c-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
  }
}

.stat-value {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: var(--c-text);
  line-height: 1.1;
  font-feature-settings: "tnum";
  margin-bottom: 0.375rem;
}

.stat-value.accent {
  color: var(--c-accent-text);
}

.stat-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 0.25rem;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--c-mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Section Headers & Cards
   ========================================================================== */

.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-tag {
  color: var(--c-accent-text);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--c-soft);
  margin-top: 0.875rem;
  line-height: 1.6;
}

/* Filterleiste */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-soft);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  transition: transform 0.25s var(--ease), color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) {
  .filter-btn:hover {
    color: var(--c-text);
    border-color: var(--c-accent);
    transform: translateY(-2px);
  }
}

.filter-btn.active {
  color: #ffffff;
  background-color: var(--c-accent);
  border-color: var(--c-accent);
  box-shadow: 0 4px 14px rgb(0 85 153 / 0.4);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--c-accent);
  }

  .card:hover .card-icon {
    transform: rotate(0deg) scale(1.08);
    background-color: var(--c-accent);
    color: var(--c-on-accent);
  }

  .card:hover .card-link {
    color: var(--c-accent-text);
  }

  .card:hover .card-link svg {
    transform: translateX(5px);
  }
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--c-surface-2);
  color: var(--c-accent-text);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  transform: rotate(-3deg);
  transition: transform 0.35s var(--ease), background-color 0.25s ease, color 0.25s ease;
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-body {
  font-size: 0.9375rem;
  color: var(--c-soft);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--c-line);
  font-size: 0.875rem;
  color: var(--c-mute);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--c-text);
  font-weight: 700;
  transition: color 0.2s ease;
}

.card-link svg {
  transition: transform 0.25s var(--ease);
}

/* ==========================================================================
   Map & Station Details
   ========================================================================== */

.map-card-wrapper {
  background-color: var(--c-surface);
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease;
}

.map-toolbar {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--c-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background-color: var(--c-surface-2);
}

.map-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 420px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-line);
  background-color: var(--c-surface);
  color: var(--c-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgb(0 85 153 / 0.25);
}

.search-input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--c-text);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  z-index: 1000;
  display: none;
  max-height: 240px;
  overflow-y: auto;
}

.search-dropdown.active {
  display: block;
}

.search-item {
  padding: 0.625rem 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--c-line);
  transition: background-color 0.15s ease;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background-color: var(--c-surface-2);
  color: var(--c-accent-text);
}

.search-item-count {
  font-size: 0.75rem;
  color: var(--c-mute);
}

.map-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-soft);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

@media (hover: hover) {
  .filter-chip:hover {
    color: var(--c-text);
    border-color: var(--c-accent);
    transform: translateY(-1px);
  }
}

.filter-chip.active {
  color: #ffffff;
  background-color: var(--c-accent);
  border-color: var(--c-accent);
  box-shadow: 0 4px 14px rgb(0 85 153 / 0.4);
}

#map {
  width: 100%;
  height: 540px;
  background-color: var(--c-surface-2);
}

.map-status-bar {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--c-mute);
  background-color: var(--c-surface);
  border-top: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Station Pins on Leaflet Map */
.station-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-accent);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  color: #ffffff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.station-pin.no-price {
  border-color: var(--c-accent-hi);
  background: var(--c-surface);
  color: var(--c-soft);
}

.station-pin .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent-text);
}

.station-pin.available .dot {
  background: var(--c-accent-text);
  box-shadow: 0 0 6px var(--c-accent);
}

.station-pin.occupied .dot {
  background: var(--c-mute);
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
  background-color: var(--c-surface) !important;
  color: var(--c-text) !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--c-line) !important;
  box-shadow: var(--shadow-float) !important;
  padding: 4px !important;
}

.leaflet-popup-tip {
  background-color: var(--c-surface) !important;
}

.leaflet-container a {
  color: var(--c-accent-text) !important;
}

/* ==========================================================================
   Code & API Cards
   ========================================================================== */

.api-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .api-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--c-surface-2);
  color: var(--c-accent-text);
  border: 1px solid var(--c-line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.feature-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--c-soft);
  line-height: 1.55;
}

.code-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-line);
}

.code-tabs {
  display: flex;
  gap: 0.375rem;
}

.code-tab {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-soft);
  transition: all 0.2s ease;
}

.code-tab.active {
  background: var(--c-accent);
  color: var(--c-on-accent);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-mute);
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  transition: all 0.2s ease;
}

.btn-copy:hover {
  color: var(--c-text);
  border-color: var(--c-accent);
}

.code-block {
  padding: 1.25rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--c-text);
  overflow-x: auto;
  white-space: pre;
}

/* Token Generator Card */
.token-card {
  background: linear-gradient(145deg, var(--c-surface) 0%, var(--c-surface-2) 100%);
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.token-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.token-form-group {
  margin-bottom: 1rem;
}

.token-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-soft);
  margin-bottom: 0.375rem;
}

.token-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-line);
  background: var(--c-bg);
  color: var(--c-text);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.token-input:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgb(0 85 153 / 0.25);
}

.token-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: var(--c-soft);
  margin-bottom: 1.25rem;
  cursor: pointer;
}

.token-checkbox {
  margin-top: 0.2rem;
  accent-color: var(--c-accent);
}

.token-result-box {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--c-surface);
  border: 1px solid var(--c-accent);
}

.token-result-box.active {
  display: block;
  animation: slide-up 0.3s var(--ease);
}

.token-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
}

.token-display code {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: var(--c-bg);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-family: monospace;
  color: var(--c-accent-text);
  overflow-x: auto;
}

/* ==========================================================================
   Akkordeon (FAQ) mit flüssiger Grid-Höhentransformation
   ========================================================================== */

.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .faq-item:hover {
    border-color: var(--c-accent);
  }
  .faq-question:hover {
    color: var(--c-accent-text);
  }
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-text);
  gap: 1rem;
  transition: color 0.2s ease;
}

.faq-icon {
  width: 1.375rem;
  height: 1.375rem;
  color: var(--c-accent-text);
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq-item.active .faq-panel {
  grid-template-rows: 1fr;
}

.faq-inner {
  overflow: hidden;
}

.faq-answer {
  padding: 0 1.75rem 1.5rem;
  color: var(--c-soft);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ==========================================================================
   App Showcase Section
   ========================================================================== */

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .app-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.app-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 1.5rem 0 2rem;
}

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.4375rem 0.875rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  color: var(--c-text);
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}

@media (hover: hover) {
  .app-pill:hover {
    border-color: var(--c-accent);
    color: var(--c-accent-text);
    transform: translateY(-1px);
  }
}

.app-mockup-card {
  background: linear-gradient(145deg, var(--c-surface) 0%, var(--c-surface-2) 100%);
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Legal Pages (Impressum & Datenschutz)
   ========================================================================== */

.legal-container {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--c-mute);
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.breadcrumb li::after {
  content: "›";
  margin-left: 0.5rem;
}

.breadcrumb li:last-child::after {
  content: "";
}

.legal-head {
  margin-bottom: 2.5rem;
}

.legal-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.legal-intro {
  font-size: 1.125rem;
  color: var(--c-soft);
}

.legal-summary {
  background: var(--c-surface-2);
  border-left: 4px solid var(--c-accent);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 3rem;
  font-size: 0.9375rem;
  color: var(--c-soft);
}

.legal-summary-title {
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 0.5rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .legal-layout {
    grid-template-columns: 240px 1fr;
  }
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-toc-title {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--c-mute);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.legal-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-toc a {
  font-size: 0.875rem;
  color: var(--c-soft);
  transition: color 0.2s ease;
}

.legal-toc a:hover, .legal-toc a.active {
  color: var(--c-accent-text);
  font-weight: 700;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legal-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.legal-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--c-text);
}

.legal-card p, .legal-card ul {
  font-size: 0.9375rem;
  color: var(--c-soft);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-card ul {
  padding-left: 1.5rem;
}

.legal-card li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--c-line);
  background-color: var(--c-surface);
  padding: 4.5rem 0 2.25rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--c-soft);
  font-size: 0.875rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--c-text);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link, .footer-links a {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--c-soft);
  transition: color 0.2s ease, transform 0.25s var(--ease), text-shadow 0.25s ease;
}

@media (hover: hover) {
  .footer-link:hover, .footer-links a:hover {
    color: var(--c-accent-text);
    text-shadow: 0 0 10px rgb(0 85 153 / 0.75);
    transform: translateX(4px);
  }
}

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--c-mute);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* ==========================================================================
   Floating Widgets (Toasts, Nach Oben)
   ========================================================================== */

.to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  background-color: var(--c-accent);
  color: var(--c-on-accent);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0.25s, background-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 900;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (hover: hover) {
  .to-top:hover {
    background-color: var(--c-accent-hi);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgb(0 85 153 / 0.55);
  }
}

.toasts {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  z-index: 2000;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: var(--c-surface);
  border: 1px solid var(--c-accent);
  color: var(--c-text);
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  animation: slide-up 0.35s var(--ease) forwards;
}

/* Plain HTML content for the map, API reference and app. */
.reading-notes, .api-reference { margin-top: 2rem; line-height: 1.75; color: var(--c-soft); }
.reading-notes h3, .api-reference h3 { color: var(--c-text); margin: 1.5rem 0 .75rem; }
.reading-notes p, .api-reference p, .app-mockup-card p { margin-bottom: 1rem; }
.api-reference code, .reading-notes code { overflow-wrap: anywhere; }
.api-endpoint { border-bottom: 1px solid var(--c-line); padding: 1rem 0; }
.api-endpoint summary { cursor: pointer; color: var(--c-text); font-weight: 600; }
.api-endpoint p { margin-top: .75rem; }
.api-endpoint summary:focus-visible { outline: 2px solid var(--c-accent-text); outline-offset: 4px; }
.app-benefits { padding-left: 1.25rem; margin: 1.5rem 0; color: var(--c-soft); line-height: 1.8; list-style: disc; }

/* API and explanatory content use the site's existing surfaces and typography. */
.api-section { border-top: 1px solid var(--c-line); }
.api-overview, .map-info-grid, .api-info-grid, .api-example-grid, .api-start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
.api-overview { margin-bottom: 2rem; }
.map-info-grid { margin-top: 1.5rem; }
.map-info-grid .card-body, .api-info-grid .card-body { margin-bottom: 0; }
.api-overview > *, .api-start-grid > *, .api-info-grid > *, .api-example-grid > * { min-width: 0; }
.api-start-grid { align-items: start; }
.api-token { scroll-margin-top: 7rem; }
.api-access { justify-content: flex-start; }
.api-facts { margin-top: 1rem; }
.api-facts > div { padding: .875rem 0; border-top: 1px solid var(--c-line); }
.api-facts dt { font-size: .8125rem; font-weight: 700; color: var(--c-text); margin-bottom: .3rem; }
.api-facts dd { margin: 0; font-size: .875rem; color: var(--c-soft); line-height: 1.65; }
.api-section :is(p, dd, td, li) code { font-size: .85em; overflow-wrap: anywhere; }
.api-subsection { margin-top: 3rem; scroll-margin-top: 7rem; }
.api-subheading { max-width: 46rem; margin-bottom: 1.5rem; }
.api-subheading h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.api-subheading p { color: var(--c-soft); font-size: .9375rem; line-height: 1.7; margin-top: .75rem; }
.api-section .code-card { box-shadow: none; min-width: 0; }
.api-section .code-header { flex-wrap: wrap; gap: .5rem; }
.code-label { font-size: .8125rem; font-weight: 600; color: var(--c-soft); }
.api-section .code-block { margin: 0; max-width: 100%; font-size: .8125rem; line-height: 1.8; }
.api-section .code-block code { font: inherit; }
.api-example-grid { margin-top: 1rem; align-items: start; }
.api-example { border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: var(--c-surface); overflow: hidden; }
.api-example > summary { padding: 1.125rem 1.25rem; cursor: pointer; font-weight: 600; font-size: .9375rem; }
.api-example > summary span { display: block; margin: .375rem 0 0 1rem; color: var(--c-mute); font-size: .8125rem; font-weight: 400; }
.api-example .code-card { border: 0; border-top: 1px solid var(--c-line); border-radius: 0; }
.api-caption { color: var(--c-mute); font-size: .8125rem; line-height: 1.7; margin-top: 1rem; }
.api-endpoint { border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: var(--c-surface); padding: 0; margin-top: .75rem; overflow: hidden; }
.api-endpoint > summary { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; list-style: none; cursor: pointer; }
.api-endpoint > summary::-webkit-details-marker { display: none; }
.api-method { min-width: 3rem; padding: .25rem .45rem; border: 1px solid var(--c-line); border-radius: var(--radius-sm); color: var(--c-accent-text); background: var(--c-surface-2); text-align: center; font-size: .6875rem; font-weight: 800; }
.api-endpoint-heading { display: flex; flex-direction: column; gap: .25rem; min-width: 0; font-size: .9375rem; }
.api-endpoint-heading code { font-size: .75rem; color: var(--c-mute); font-weight: 400; overflow-wrap: anywhere; }
.api-expand { margin-left: auto; color: var(--c-accent-text); font-size: 1.25rem; flex-shrink: 0; }
.api-endpoint[open] > summary { border-bottom: 1px solid var(--c-line); }
.api-endpoint[open] > summary .api-expand { transform: rotate(45deg); }
.api-endpoint-body { padding: 1.25rem; font-size: .875rem; line-height: 1.75; color: var(--c-soft); }
.api-endpoint-body > p { max-width: 65rem; margin: 0 0 1rem; }
.api-endpoint-body .code-card { margin-top: 1.25rem; }
.api-table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--c-line); border-radius: var(--radius-md); }
.api-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .8125rem; }
.api-table th, .api-table td { padding: .875rem 1rem; vertical-align: top; line-height: 1.65; border-bottom: 1px solid var(--c-line); }
.api-table thead { background: var(--c-surface-2); color: var(--c-text); }
.api-table tbody th { width: 28%; min-width: 8rem; color: var(--c-text); font-weight: 500; }
.api-table tbody th code { overflow-wrap: anywhere; }
.api-table tr:last-child > * { border-bottom: 0; }
.api-info-grid { margin-bottom: 1.5rem; }
.api-info-grid .card { justify-content: flex-start; }
.api-note-list { list-style: disc; padding-left: 1.25rem; }
.api-note-list li + li { margin-top: 1rem; }
.api-errors { margin-top: 1.5rem; padding: 1.5rem; border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: var(--c-surface-2); }
.api-errors h4 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.api-errors dl { display: grid; gap: 1rem; }
.api-errors dl > div { display: flex; gap: .75rem; align-items: baseline; }
.api-errors dt { font-family: ui-monospace, monospace; font-size: .875rem; font-weight: 700; color: var(--c-accent-text); }
.api-errors dd { margin: 0; font-size: .875rem; line-height: 1.65; color: var(--c-soft); }
.api-section :is(summary, button, pre, .api-table-scroll):focus-visible { outline: 2px solid var(--c-accent-text); outline-offset: -3px; }
@media (min-width: 760px) {
  .api-overview, .map-info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .api-start-grid, .api-info-grid, .api-example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .api-errors dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .api-overview .card, .map-info-grid .card, .api-info-grid .card, .api-access, .api-token { padding: 1.25rem; }
  .api-endpoint > summary { padding: 1rem; gap: .75rem; }
  .api-endpoint-body { padding: 1rem; }
  .api-table th, .api-table td { padding: .75rem; }
  .api-section .code-block { padding: 1rem; }
}
@media (max-width: 759px) {
  .site-header .ticket-pill, .site-header .brand-badge { display: none; }
  .header-bar .container, .header-actions { gap: .5rem; }
}

/* Search results share the map's data and the site's card design. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.map-select-label { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .8125rem; font-weight: 600; color: var(--c-soft); }
.map-select-label select { min-height: 2.5rem; max-width: 100%; padding: .5rem .75rem; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: var(--c-surface); color: var(--c-text); font: inherit; }
.map-filters { align-items: center; }
.filter-chip { min-height: 2.5rem; }
.map-search-box { min-width: 0; }
.search-item[aria-selected="true"] { background: var(--c-surface-2); outline: 2px solid var(--c-accent-text); outline-offset: -2px; }
.search-feedback { padding: 1rem; color: var(--c-soft); font-size: .9375rem; line-height: 1.7; }
.results-section { margin-top: 2rem; }
.results-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.results-header h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
.results-header p { color: var(--c-mute); font-size: .8125rem; margin-top: .375rem; }
.station-results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.station-result { min-width: 0; padding: 1.5rem; border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: var(--c-surface); overflow-wrap: anywhere; }
.station-operator { color: var(--c-accent-text); font-size: .75rem; font-weight: 600; margin-bottom: .375rem; }
.station-title { font-family: var(--font); font-size: 1.125rem; line-height: 1.4; font-weight: 700; margin: 0 0 .375rem; }
.station-address { color: var(--c-soft); font-size: .875rem; line-height: 1.6; }
.station-price { display: block; font-size: 1.35rem; margin: 1rem 0 .5rem; font-weight: 700; color: var(--c-text); }
.point-status { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 600; color: var(--c-soft); }
.point-status::before { content: ''; display: inline-block; height: .5rem; width: .5rem; border-radius: 50%; background: var(--c-mute); flex-shrink: 0; }
.point-status.available { color: var(--c-accent-text); }
.point-status.available::before { background: var(--c-accent-text); }
.point-status.unknown::before { background: transparent; border: 1px solid var(--c-mute); }
.point-status.out-of-service::before { border-radius: 1px; }
.station-details { margin-top: 1rem; border-top: 1px solid var(--c-line); }
.station-details summary { padding: 1rem 0; cursor: pointer; font-size: .875rem; font-weight: 600; }
.point-list { display: grid; gap: .75rem; list-style: none; padding: 0; }
.point-result { padding: 1rem; background: var(--c-surface-2); border-radius: var(--radius-md); border: 1px solid var(--c-line); }
.point-price { display: block; margin: .5rem 0; font-size: 1rem; }
.point-technical, .point-fees { font-size: .8125rem; line-height: 1.65; color: var(--c-soft); margin-top: .375rem; }
.point-evse, .point-timestamp { font-size: .75rem; line-height: 1.65; color: var(--c-mute); margin-top: .375rem; }
.station-actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1rem; }
.station-pin { color: var(--c-text); }
.station-pin.unknown, .station-pin.reserved { border-style: dashed; }
.station-pin.out-of-service { border-color: var(--c-mute); }
.station-pin.unknown .dot, .station-pin.reserved .dot, .station-pin.out-of-service .dot { background: var(--c-mute); }
.station-pin.available .dot { box-shadow: none; }
.custom-popup .leaflet-popup-content { margin: .75rem; width: min(290px, calc(100vw - 100px)) !important; font-family: var(--font); }
.custom-popup .station-result { border: 0; padding: .25rem; }
.custom-popup .station-title { font-size: 1rem; }
.custom-popup p { margin: .5rem 0; }
#loadMoreStations { margin-top: 1.25rem; }
.api-response-example { margin-top: 1rem; }
.token-display { min-width: 0; flex-wrap: wrap; }
.token-display code { min-width: 0; overflow-wrap: anywhere; }
:where(button, a, input, select, summary):focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; }
@media (min-width: 760px) { .station-results { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
@media (max-width: 480px) { #map { height: 380px; } .station-result { padding: 1.125rem; } .map-status-bar { padding: .75rem; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.api-tester { justify-content: flex-start; }
.api-test-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.api-test-fields legend { padding: 0; margin: 1rem 0; font-weight: 700; font-size: 1rem; color: var(--c-text); }
.api-test-fields .token-form-group { min-width: 0; margin: 0; }
.api-test-fields .token-input { width: 100%; min-width: 0; height: auto; min-height: 2.75rem; }
.api-test-fields .api-caption { margin-top: .5rem; }
.api-request-preview { margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: var(--c-surface-2); }
.api-request-preview code { display: block; overflow-wrap: anywhere; font-size: .8125rem; line-height: 1.8; }
.api-test-status { color: var(--c-soft); font-size: .875rem; line-height: 1.7; margin: 1rem 0; }
#testResponsePanel .code-block { max-height: 32rem; }
.api-test-link { margin-top: 1rem; }
@media (min-width: 760px) { .api-test-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.api-subheading h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.map-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); }
.map-search-box { width: 100%; max-width: none; min-width: 0; }
.search-input { min-width: 0; width: 100%; }
.search-input-wrapper > svg { flex-shrink: 0; }
.station-group-pin { gap: .5rem; }
.cluster-count { border-right: 1px solid var(--c-line); padding-right: .5rem; font-variant-numeric: tabular-nums; }
.station-cluster { background: var(--c-surface-2); border-width: 2px; }
.location-entries { display: grid; gap: .75rem; }
.location-entries .station-result, .location-popup .station-result { background: var(--c-surface-2); margin-top: .75rem; }
.location-popup > .station-title { margin: .75rem 0; }
.station-results[aria-busy="true"] { opacity: .75; }
/* Map popups are summaries; detailed comparison stays in the result list. */
.custom-popup .leaflet-popup-content { width: min(260px, calc(100vw - 116px)) !important; max-height: min(240px, calc(100dvh - 180px)); overflow-y: auto; }
.map-popup-summary { font-family: var(--font); }
.popup-title { font-size: .9375rem; font-weight: 700; line-height: 1.4; margin: 0 0 .375rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.custom-popup .popup-address { margin: 0 0 .625rem; color: var(--c-soft); font-size: .75rem; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.popup-price { display: block; font-size: 1.25rem; line-height: 1.4; margin-bottom: .375rem; }
.custom-popup .point-status { margin: 0; font-size: .75rem; }
.custom-popup .popup-count { margin: .25rem 0 .75rem; color: var(--c-mute); font-size: .75rem; }
.map-popup-summary .btn { width: 100%; min-height: 2.5rem; font-size: .75rem; }
.station-result, #resultsHeading { scroll-margin-top: 6rem; }
.station-result:focus { outline: 2px solid var(--c-accent-text); outline-offset: 3px; }
.legal-content, .legal-card { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .legal-card { padding: 1.25rem; } }
.imprint-address-provider a { color: var(--c-accent-text); text-decoration: underline; text-underline-offset: .2em; }
