/**
 * Stations-Detailseite, neuer Aufbau (Variante D)
 * Pfad: /pages/station-detail/assets/detail-neu.css
 * Eingebunden von: pages/station-detail/sections-neu/kopf.php
 *
 * Alle Klassen beginnen mit "sdn-". Farben kommen aus dem Design-System
 * (assets/css/design-system.css). Eigene Werte gibt es nur für die drei
 * Statusfarben: Grün = frei, Orange = belegt, Grau = gestört.
 * Kein Dark Mode: die Website ist nur hell.
 */

.sdn {
    --sdn-free: hsl(var(--primary-text));
    --sdn-free-bg: hsl(150 60% 45% / 0.12);
    --sdn-busy: #b45309;
    --sdn-busy-bg: #fff3e0;
    --sdn-fault: #4b5563;
    --sdn-fault-bg: #eef0f3;
    --sdn-line: hsl(var(--border));
    --sdn-radius: 0.75rem;
}

.sdn-notice {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #fcd34d;
    border-radius: 0.5rem;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.875rem;
}

/* ── Foto-Mosaik ─────────────────────────────────────────────── */

.sdn-mosaic {
    position: relative;
    display: grid;
    gap: 0.5rem;
    height: 22rem;
    margin-bottom: 1.5rem;
    border-radius: var(--sdn-radius);
    overflow: hidden;
}

/* Je nach Zahl der Fotos: 1 über die ganze Breite, 2 nebeneinander, 3 als
   großes Foto mit zwei kleinen daneben, ab 4 wie in der Vorlage (großes Foto,
   drei kleine und die Kachel „Alle n Fotos“ im Raster 2 × 2). */
.sdn-mosaic--1 { grid-template-columns: minmax(0, 1fr); }
.sdn-mosaic--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sdn-mosaic--3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.sdn-mosaic--4 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }

.sdn-mosaic__item {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    background: hsl(var(--muted));
    overflow: hidden;
}

.sdn-mosaic__item--main { grid-row: 1 / -1; }

.sdn-mosaic__item img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.sdn-mosaic__item:focus-visible,
.sdn-mosaic__all:focus-visible {
    outline: 3px solid hsl(var(--primary));
    outline-offset: -3px;
}

.sdn-mosaic__credit {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    background: rgb(0 0 0 / 0.6);
    color: #fff;
    font-size: 0.75rem;
}

.sdn-mosaic__all {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0 0.75rem;
    background: hsl(var(--primary-text));
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

/* Bei 2 und 3 Fotos ist „Alle n Fotos“ ein Knopf auf dem letzten Foto */
.sdn-mosaic--2 .sdn-mosaic__all,
.sdn-mosaic--3 .sdn-mosaic__all {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0 1rem;
    border: 1px solid var(--sdn-line);
    border-radius: 0.5rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
}

/* Knopf „Foto hinzufügen“ oben rechts auf dem Mosaik, Lupe auf einem einzelnen Foto */
.sdn-mosaic__add,
.sdn-mosaic__zoom {
    position: absolute;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0 0.875rem;
    border: 1px solid var(--sdn-line);
    border-radius: 0.5rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.18);
}

.sdn-mosaic__add {
    top: 0.75rem;
    cursor: pointer;
}

.sdn-mosaic__add:hover { background: hsl(var(--muted)); }
.sdn-mosaic__add:focus-visible { outline: 3px solid hsl(var(--primary)); outline-offset: 2px; }
.sdn-mosaic__zoom { bottom: 0.75rem; }

/* Im Mosaik nur das Symbol, oben links (oben rechts und unten rechts sind belegt) */
.sdn-mosaic__zoom--icon {
    top: 0.75rem;
    right: auto;
    bottom: auto;
    left: 0.75rem;
    justify-content: center;
    width: 2.25rem;
    min-height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(0 0 0 / 0.6);
    color: #fff;
    box-shadow: none;
}

/* Ohne Fotos: flacher Streifen statt Mosaik */
.sdn-nophoto {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    padding: 0.875rem 1rem;
    border: 1px dashed hsl(var(--primary-text) / 0.45);
    border-radius: var(--sdn-radius);
    background: hsl(var(--card));
}

.sdn-nophoto__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--sdn-free-bg);
    color: hsl(var(--primary-text));
}

.sdn-nophoto__text {
    display: flex;
    flex-direction: column;
    flex: 1 1 12rem;
    min-width: 0;
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.sdn-nophoto__text strong { color: hsl(var(--foreground)); font-size: 0.9375rem; }
.sdn-nophoto .sdn-nophoto__btn {
    flex: 0 0 auto;
    padding: 0 1rem;
    border-color: hsl(var(--primary-text));
    background: hsl(var(--primary-text));
    color: #fff;
}

@media (max-width: 479px) {
    .sdn-nophoto__btn { width: 100%; justify-content: center; }
}


/* ── H1 ──────────────────────────────────────────────────────── */

.sdn-head { margin-bottom: 1.25rem; }

.sdn-h1 {
    margin: 0;
    color: hsl(var(--foreground));
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.sdn-place {
    margin: 0.375rem 0 0;
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
}

/* ── Karte neben „Auf einen Blick“ ───────────────────────────── */

.sdn-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.sdn-mapbox {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 260px;
    border: 1px solid var(--sdn-line);
    border-radius: var(--sdn-radius);
    background: hsl(var(--card));
    overflow: hidden;
    scroll-margin-top: 8.5rem;
}

.sdn-map {
    flex: 1 1 auto;
    min-height: 220px;
    background: hsl(var(--muted));
}

/* design-system.css erzwingt für Leaflet position: relative. Die Höhe kommt
   deshalb aus dem Flex-Kasten, nicht aus einer absoluten Positionierung. */
.sdn-map.leaflet-container { z-index: 0; }

.sdn-map.is-loading {
    background: linear-gradient(90deg, hsl(var(--muted)) 25%, hsl(220 15% 92%) 50%, hsl(var(--muted)) 75%);
    background-size: 200% 100%;
    animation: sdn-shimmer 1.4s linear infinite;
}

@keyframes sdn-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .sdn-map.is-loading { animation: none; }
}

.sdn-mapbox__address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.625rem 0.875rem;
    border-top: 1px solid var(--sdn-line);
    color: hsl(var(--foreground));
    font-size: 0.875rem;
}

.sdn-mapbox__address svg {
    flex: 0 0 auto;
    color: hsl(var(--muted-foreground));
}

/* Orte in der Nähe: rundes Symbol in der Farbe der Kategorie, wie auf der
   bisherigen Umgebungskarte. Der Stations-Pin kommt aus custom-markers.css. */
.sdn-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--sdn-pin, #4b5563);
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.28);
    line-height: 0;
}

.sdn-pin svg {
    width: 16px;
    height: 16px;
    fill: #fff;
    color: #fff;
}

.sdn-pin svg[fill="none"] {
    fill: none;
    stroke: #fff;
}

.sdn-pin i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

/* ── Auf einen Blick ─────────────────────────────────────────── */

.sdn-glance {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--sdn-line);
    border-radius: var(--sdn-radius);
    background: hsl(var(--card));
}

.sdn-glance__title {
    margin: 0;
    color: hsl(var(--foreground));
    font-size: 1.125rem;
    font-weight: 700;
}

.sdn-glance__rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    margin: 0;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    text-decoration: none;
}

.sdn-glance__rating--empty { color: hsl(var(--muted-foreground)); }

.sdn-glance__rating a,
.sdn-tile a:not(.sdn-counts):not(.sdn-pay__more) {
    color: hsl(var(--primary-text));
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sdn-stars {
    color: #d1d5db;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    line-height: 1;
}

.sdn-stars .is-on { color: #d97706; }

/* Aufbau wie in der Vorlage: Preis als Kasten über die ganze Breite, darunter
   Öffnungszeiten, Betreiber, Verfügbarkeit und Bezahlen als Zeilen mit Trennlinie */
.sdn-glance__list {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sdn-tile {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--sdn-line);
    color: hsl(var(--foreground));
    text-decoration: none;
}

.sdn-tile:last-child { padding-bottom: 0; }

.sdn-tile--price {
    margin-bottom: 0.75rem;
    padding: 0.875rem 1rem;
    border-top: 0;
    border-radius: 0.75rem;
    background: hsl(var(--primary-text));
    color: #fff;
}

a.sdn-tile--price:hover { filter: brightness(1.08); }

.sdn-tile--price .sdn-tile__label,
.sdn-tile--price .sdn-tile__sub { color: rgb(255 255 255 / 0.9); }

.sdn-tile__label {
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    font-weight: 600;
}

.sdn-tile__value {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.sdn-tile--price .sdn-tile__value { color: #fff; font-size: 1.625rem; }

.sdn-tile .sdn-tile__value--muted {
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
}

.sdn-tile--price .sdn-tile__value.sdn-tile__value--muted { color: #fff; }

.sdn-tile__prefix,
.sdn-tile__unit {
    font-size: 0.875rem;
    font-weight: 600;
}

.sdn-tile__sub {
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
    overflow-wrap: anywhere;
}

.sdn-counts {
    display: flex;
    gap: 0.375rem;
    min-height: 2.75rem;
    color: inherit;
    text-decoration: none;
}

.sdn-count {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0.375rem 0.25rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
}

.sdn-count strong { font-size: 1.125rem; }

.sdn-count--free { background: var(--sdn-free-bg); color: var(--sdn-free); }
.sdn-count--busy { background: var(--sdn-busy-bg); color: var(--sdn-busy); }
.sdn-count--fault { background: var(--sdn-fault-bg); color: var(--sdn-fault); }

.sdn-open {
    display: inline-flex;
    align-items: baseline;
    gap: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 700;
}

.sdn-open__dot {
    flex: 0 0 auto;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: #9ca3af;
}

.sdn-open--open { color: var(--sdn-free); }
.sdn-open--open .sdn-open__dot { background: hsl(var(--primary)); }
.sdn-open--closed { color: #b91c1c; }
.sdn-open--closed .sdn-open__dot { background: #dc2626; }
.sdn-open--unknown { color: hsl(var(--muted-foreground)); font-weight: 600; }

.sdn-operator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    overflow-wrap: break-word;
    hyphens: auto;
}

.sdn-operator > a,
.sdn-operator > span { min-width: 0; }

.sdn-operator img {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 0.25rem;
    background: #fff;
    object-fit: contain;
}

.sdn-pay {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.sdn-pay__icon,
.sdn-pay__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--sdn-line);
    border-radius: 0.375rem;
    background: hsl(var(--background));
    color: hsl(var(--primary-text));
}

.sdn-pay__more {
    width: auto;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
}

.sdn-pay__all {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    font-size: 0.8125rem;
}

/* ── Einleitung ──────────────────────────────────────────────── */

.sdn-intro { margin-bottom: 2rem; }

.sdn-intro__lead {
    margin: 0 0 0.5rem;
    color: hsl(var(--foreground));
    font-size: 1rem;
    line-height: 1.65;
}

.sdn-intro__updated {
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
}

/* ── Sprungleiste ────────────────────────────────────────────── */

/* Der Seitenkopf ist fest und 4rem hoch; die Leiste bleibt direkt darunter. */
.sdn-nav {
    position: sticky;
    top: 4rem;
    z-index: 20;
    margin: 0 -1rem 1.5rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--sdn-line);
    background: hsl(var(--background) / 0.96);
}

.sdn-nav__list {
    display: flex;
    gap: 0.375rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.sdn-nav__list::-webkit-scrollbar { display: none; }

.sdn-nav__link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 0.875rem;
    border-radius: 999px;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.sdn-nav__link:hover { background: hsl(var(--muted)); }

.sdn-nav__link[aria-current="true"] {
    background: var(--sdn-free-bg);
    color: var(--sdn-free);
}

.sdn-anchor,
.sdn [id="oeffnungszeiten"],
.sdn [id="betreiberbox"] { scroll-margin-top: 8.5rem; }

/* ── Zweispaltiger Bereich ───────────────────────────────────── */

.sdn [hidden] { display: none !important; }

.sdn-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 960px) {
    .sdn-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); }
}

.sdn-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

/* ── Abschnitts-Kasten ───────────────────────────────────────── */

.sdn-card {
    padding: 1.25rem;
    border: 1px solid var(--sdn-line);
    border-radius: var(--sdn-radius);
    background: hsl(var(--card));
    color: hsl(var(--foreground));
}

.sdn-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sdn-h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.sdn-h3 {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
}

.sdn-card__note {
    margin: 0.75rem 0 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
}

/* ── Ladepunkte ──────────────────────────────────────────────── */

.sdn-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
}

.sdn-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.sdn-legend__item::before {
    content: "";
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: currentColor;
}

.sdn-legend__item--free { color: var(--sdn-free); }
.sdn-legend__item--occupied { color: var(--sdn-busy); }
.sdn-legend__item--fault { color: var(--sdn-fault); }

.sdn-legend__filter {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 2.75rem;
    padding: 0 0.75rem;
    border: 1px solid var(--sdn-line);
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

.sdn-points {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sdn-point {
    border: 1px solid var(--sdn-line);
    border-radius: 0.625rem;
    background: hsl(var(--background));
}

.sdn-point__main {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.sdn-ring {
    position: relative;
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
}

.sdn-ring circle {
    fill: none;
    stroke-width: 6;
}

.sdn-ring__track { stroke: #e5e7eb; }
.sdn-ring__arc--free { stroke: hsl(var(--primary)); }
.sdn-ring__arc--occupied { stroke: #f59e0b; }
.sdn-ring__arc--fault { stroke: #9ca3af; }

.sdn-ring__text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    font-weight: 700;
}

.sdn-ring--unknown .sdn-ring__text { color: hsl(var(--muted-foreground)); }

.sdn-point__body {
    flex: 1 1 auto;
    min-width: 0;
}

.sdn-point__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
}

.sdn-point__title img { flex: 0 0 auto; }

.sdn-point__hint,
.sdn-point__status {
    margin: 0.125rem 0 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.45;
}

.sdn-point__status { color: hsl(var(--foreground)); }
.sdn-point__live { color: hsl(var(--muted-foreground)); }

.sdn-point__reason {
    margin: 0.25rem 0 0;
    color: var(--sdn-fault);
    font-size: 0.8125rem;
    font-weight: 600;
}

.sdn-point__price {
    flex: 0 0 auto;
    text-align: right;
}

.sdn-point__amount {
    margin: 0;
    color: hsl(var(--primary-text));
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.sdn-point__amount > span:first-child {
    font-size: 0.875rem;
    font-weight: 600;
}

.sdn-point__unit {
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
}

/* Tageszeit-Preise */

.sdn-schedule {
    margin: 0 1rem 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: hsl(var(--muted));
    font-size: 0.875rem;
}

.sdn-schedule p { margin: 0; }
.sdn-schedule__title { font-weight: 700; }

.sdn-schedule__days {
    margin-top: 0.5rem !important;
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    font-weight: 700;
}

.sdn-schedule__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.1875rem 0;
    font-variant-numeric: tabular-nums;
}

.sdn-schedule__row.is-active {
    color: var(--sdn-free);
    font-weight: 700;
}

.sdn-schedule__note {
    margin-top: 0.5rem !important;
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
}

/* Anschluss-IDs */

.sdn-ids { border-top: 1px solid var(--sdn-line); }

.sdn-ids summary {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 1rem;
    color: hsl(var(--primary-text));
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.sdn-ids__list {
    margin: 0;
    padding: 0 1rem 0.75rem;
    list-style: none;
}

.sdn-ids__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.375rem 0;
    border-top: 1px solid var(--sdn-line);
}

.sdn-ids__row code {
    flex: 1 1 12rem;
    min-width: 0;
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.sdn-ids__state {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.sdn-ids__since { color: hsl(var(--muted-foreground)); }

.sdn-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.sdn-badge--free { background: var(--sdn-free-bg); color: var(--sdn-free); }
.sdn-badge--occupied { background: var(--sdn-busy-bg); color: var(--sdn-busy); }
.sdn-badge--fault,
.sdn-badge--unknown { background: var(--sdn-fault-bg); color: var(--sdn-fault); }

.sdn-points__empty {
    margin: 0.75rem 0 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.9375rem;
}

/* Günstiger in der Nähe */

.sdn-cheaper {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--sdn-line);
}

.sdn-cheaper__head { margin-bottom: 0.75rem; }

.sdn-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sdn-tabs__radio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.sdn-tabs__label {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 1rem;
    border: 1px solid var(--sdn-line);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.sdn-tabs__radio:checked + .sdn-tabs__label {
    border-color: transparent;
    background: var(--sdn-free-bg);
    color: var(--sdn-free);
}

.sdn-tabs__radio:focus-visible + .sdn-tabs__label {
    outline: 3px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* Alle Tab-Inhalte stehen im HTML; sichtbar ist der zum gewählten Tab. */
.sdn-tabs__panel { display: none; flex: 1 1 100%; }
.sdn-tabs__radio:nth-of-type(1):checked ~ .sdn-tabs__panel:nth-of-type(1),
.sdn-tabs__radio:nth-of-type(2):checked ~ .sdn-tabs__panel:nth-of-type(2),
.sdn-tabs__radio:nth-of-type(3):checked ~ .sdn-tabs__panel:nth-of-type(3),
.sdn-tabs__radio:nth-of-type(4):checked ~ .sdn-tabs__panel:nth-of-type(4),
.sdn-tabs__radio:nth-of-type(5):checked ~ .sdn-tabs__panel:nth-of-type(5),
.sdn-tabs__radio:nth-of-type(6):checked ~ .sdn-tabs__panel:nth-of-type(6) { display: flex; }

.sdn-cheaper__row {
    align-items: center;
    gap: 0.875rem;
    min-height: 3.5rem;
    padding: 0.75rem;
    border: 1px solid var(--sdn-line);
    border-radius: 0.625rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    text-decoration: none;
}

.sdn-cheaper__row:hover { background: hsl(var(--muted)); }

.sdn-cheaper__row img {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.25rem;
    background: #fff;
    object-fit: contain;
}

.sdn-cheaper__name {
    flex: 1 1 auto;
    min-width: 0;
}

.sdn-cheaper__name strong,
.sdn-cheaper__name span,
.sdn-cheaper__save strong,
.sdn-cheaper__save span { display: block; }

.sdn-cheaper__name span,
.sdn-cheaper__save span,
.sdn-cheaper__own {
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
}

.sdn-cheaper__save {
    flex: 0 0 auto;
    color: var(--sdn-free);
    font-size: 0.875rem;
    text-align: right;
}

.sdn-cheaper__price {
    flex: 0 0 auto;
    font-size: 0.875rem;
    text-align: right;
    white-space: nowrap;
}

.sdn-cheaper__price strong { font-size: 1.25rem; }
.sdn-cheaper__own { display: block; }

@media (max-width: 559px) {
    .sdn-point__main {
        display: grid;
        grid-template-columns: 60px minmax(0, 1fr);
        align-items: start;
    }
    .sdn-point__price { grid-column: 2; text-align: left; }
    .sdn-cheaper__row { flex-wrap: wrap; }
    .sdn-cheaper__save { flex: 1 1 auto; text-align: left; }
    .sdn-ids__copy { margin-left: auto; }
}

/* ── Rechte Spalte ───────────────────────────────────────────── */

.sdn-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.sdn-side__sticky {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 960px) {
    .sdn-side__sticky {
        position: sticky;
        top: 8.5rem;
    }
}

.sdn-box {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1rem;
    border: 1px solid var(--sdn-line);
    border-radius: var(--sdn-radius);
    background: hsl(var(--card));
    color: hsl(var(--foreground));
}

.sdn-box a:not(.sdn-btn):not(.sdn-report) {
    color: hsl(var(--primary-text));
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sdn-box__label {
    display: block;
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    font-weight: 600;
}

.sdn-box__operator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.sdn-box__operator img {
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--sdn-line);
    border-radius: 0.375rem;
    background: #fff;
    object-fit: contain;
}

.sdn-box__operator-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1rem;
    overflow-wrap: break-word;
    hyphens: auto;
}

.sdn-box__all {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.sdn-box__line {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
}

.sdn-box__line svg {
    flex: 0 0 auto;
    margin-top: 0.125rem;
    color: hsl(var(--muted-foreground));
}

.sdn-box__line--head { margin-bottom: 0.375rem; }

.sdn-hours {
    padding-top: 0.875rem;
    border-top: 1px solid var(--sdn-line);
}

.sdn-hours__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0 0.25rem 1.625rem;
    font-size: 0.9375rem;
}

.sdn-hours__row > span:last-child { font-variant-numeric: tabular-nums; }

.sdn-hours__row.is-closed > span:last-child {
    color: #b91c1c;
    font-weight: 600;
}

.sdn-hours__more summary {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding-left: 1.625rem;
    color: hsl(var(--primary-text));
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.sdn-hours__note {
    margin: 0;
    padding-left: 1.625rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.9375rem;
}

.sdn-contact {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--sdn-line);
}

.sdn-contact__link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    font-size: 0.9375rem;
    overflow-wrap: anywhere;
}

/* Schnellaktionen */

.sdn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 2.75rem;
    padding: 0 0.75rem;
    border: 1px solid var(--sdn-line);
    border-radius: 0.5rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.sdn-btn:hover { background: hsl(var(--muted)); }

.sdn-btn:focus-visible,
.sdn-report:focus-visible,
.sdn-nav__link:focus-visible {
    outline: 3px solid hsl(var(--primary));
    outline-offset: 2px;
}

.sdn-btn--primary {
    min-height: 3rem;
    border-color: transparent;
    background: hsl(var(--primary-text));
    color: #fff;
    font-size: 1rem;
}

.sdn-btn--primary:hover { background: hsl(150 62% 26%); }

.sdn-btn.is-on { color: #b91c1c; }
.sdn-btn.is-on svg { fill: currentColor; }

.sdn-actions__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.sdn-report {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid #fdba74;
    border-radius: 0.5rem;
    background: var(--sdn-busy-bg);
    color: #7c2d12;
    text-decoration: none;
}

.sdn-report:hover { background: #ffe8cc; }

/* „Foto hochladen“: gleiche Fläche in Grün, als Knopf oder Link */
.sdn-report--photo {
    width: 100%;
    border-color: hsl(var(--primary-text) / 0.45);
    background: var(--sdn-free-bg);
    color: hsl(var(--primary-text));
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.sdn-report--photo:hover { background: hsl(var(--primary-text) / 0.16); }

.sdn-report svg { flex: 0 0 auto; }

.sdn-report__title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
}

.sdn-report__sub {
    display: block;
    font-size: 0.8125rem;
}

/* ── Preise, Gebühren, Bezahlen ──────────────────────────────── */

.sdn-fees {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
    gap: 0.75rem;
}

.sdn-fee {
    min-width: 0;
    padding: 0.875rem 1rem;
    border: 1px solid var(--sdn-line);
    border-radius: 0.625rem;
    background: hsl(var(--background));
}

.sdn-fee--main {
    border-color: hsl(var(--primary) / 0.45);
    background: var(--sdn-free-bg);
}

.sdn-fee__title {
    margin-bottom: 0.375rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sdn-fee__line + .sdn-fee__line {
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    border-top: 1px solid var(--sdn-line);
}

.sdn-fee__amount {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.sdn-fee__amount--big { font-size: 1.625rem; }

.sdn-fee__prefix,
.sdn-fee__unit {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
}

.sdn-fee__detail,
.sdn-fee__empty {
    margin: 0.125rem 0 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.sdn-fee__detail a,
.sdn-fee__empty a,
.sdn-level a {
    color: hsl(var(--primary-text));
    text-decoration: underline;
}

.sdn-level,
.sdn-paybox {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--sdn-line);
}

.sdn-level__scale {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.25rem;
    margin: 0.75rem 0;
}

.sdn-level__step {
    padding: 0.4375rem 0.25rem;
    border-radius: 0.375rem;
    background: var(--sdn-fault-bg);
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
}

.sdn-level__step--cheap.is-active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.sdn-level__step--mid.is-active { background: var(--sdn-fault); color: #fff; }
.sdn-level__step--high.is-active { background: var(--sdn-busy); color: #fff; }

.sdn-level__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.sdn-paylist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.sdn-paylist__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.25rem 0.75rem 0.25rem 0.375rem;
    border: 1px solid var(--sdn-line);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.sdn-paybox .sdn-fee__empty { margin-top: 0.5rem; }

.sdn-hint {
    margin-top: 1.25rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
}

.sdn-hint summary {
    display: inline-block;
    min-height: 1.75rem;
    cursor: pointer;
    text-decoration: underline;
}

.sdn-hint p { margin: 0.375rem 0 0; line-height: 1.5; }

/* ── Stoßzeiten ──────────────────────────────────────────────── */

.sdn-busy__days {
    display: flex;
    gap: 0.25rem;
}

.sdn-busy__day {
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0 0.5rem;
    border: 1px solid var(--sdn-line);
    border-radius: 999px;
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.sdn-busy__day.is-active {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.sdn-usage {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.625rem;
    margin: 0 0 1rem;
}

.sdn-usage__tile {
    min-width: 0;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    background: hsl(var(--muted));
}

.sdn-usage__tile dt {
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    font-weight: 600;
}

.sdn-usage__tile dd {
    margin: 0.125rem 0 0;
    color: hsl(var(--foreground));
    font-size: 1.25rem;
    font-weight: 700;
}

@media (max-width: 599px) {
    .sdn-usage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sdn-busy__now {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
}

.sdn-busy__chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 7.5rem;
    border-bottom: 1px solid var(--sdn-line);
}

.sdn-busy__slot {
    display: flex;
    flex: 1 1 0;
    align-items: flex-end;
    min-width: 0;
    height: 100%;
}

.sdn-busy__bar {
    width: 100%;
    border-radius: 3px 3px 0 0;
    background: hsl(var(--primary) / 0.35);
}

.sdn-busy__bar--empty { background: var(--sdn-fault-bg); }
.sdn-busy__bar.is-now { background: hsl(var(--primary)); }

.sdn-busy__axis {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
}

.sdn-busy__summary {
    margin: 0.75rem 0 0;
    font-size: 0.9375rem;
}

/* ── Abschnitte in voller Breite ─────────────────────────────── */

.sdn-wide {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ── Ausstattung ─────────────────────────────────────────────── */

.sdn-feats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sdn-feat {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    min-height: 3.25rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--sdn-line);
    border-radius: 0.625rem;
    font-size: 0.875rem;
}

.sdn-feat--unknown {
    border-style: dashed;
    color: hsl(var(--muted-foreground));
}

.sdn-feat__icon {
    display: inline-flex;
    flex: 0 0 1.5rem;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
}

.sdn-feat__icon svg { width: 1.25rem; height: 1.25rem; }
.sdn-feat--unknown .sdn-feat__icon { opacity: 0.45; filter: grayscale(1); }

.sdn-feat__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: anywhere;
}

.sdn-feat__label { font-weight: 600; }

.sdn-feat__sub {
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
}

a.sdn-feat__sub,
.sdn-feat__sub a,
.sdn-card__note a,
.sdn-calc__notes a {
    color: hsl(var(--primary-text));
    text-decoration: underline;
}

.sdn-feat__check {
    flex: 0 0 auto;
    color: var(--sdn-free);
}

.sdn-feattext {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--sdn-line);
}

.sdn-feattext p {
    margin: 0.375rem 0 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.9375rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

/* ── Laderechner ─────────────────────────────────────────────── */

.sdn-card__head--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.sdn-card__lead {
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.9375rem;
}

.sdn-calc {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.125rem;
    border: 2px solid hsl(var(--primary-text));
    border-radius: 0.875rem;
}

.sdn-calc__form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.875rem;
}

.sdn-calc__field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
    font-weight: 600;
}

.sdn-calc__field output { color: hsl(var(--foreground)); }

.sdn-calc__field input[type="number"],
.sdn-calc__field input[type="time"],
.sdn-calc__field select {
    width: 100%;
    height: 2.75rem;
    padding: 0 0.75rem;
    border: 1px solid var(--sdn-line);
    border-radius: 0.625rem;
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    font-size: 1rem;
    font-weight: 400;
}

.sdn-calc__field input[type="range"] {
    width: 100%;
    height: 2.75rem;
    margin: 0;
    accent-color: hsl(var(--primary-text));
    cursor: pointer;
}

.sdn-calc__field input:focus-visible,
.sdn-calc__field select:focus-visible {
    outline: 3px solid hsl(var(--primary) / 0.45);
    outline-offset: 1px;
}

.sdn-calc__out {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.sdn-calc__tile {
    min-width: 0;
    padding: 0.875rem;
    border-radius: 0.75rem;
    background: hsl(var(--muted));
}

.sdn-calc__tile--total {
    background: hsl(var(--primary-text));
    color: #fff;
}

.sdn-calc__tile dt {
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
}

.sdn-calc__tile--total dt { color: rgb(255 255 255 / 0.85); }

.sdn-calc__tile dd {
    margin: 0.25rem 0 0;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.sdn-calc__tile--total dd { font-size: 1.75rem; }

.sdn-calc__tile dd.sdn-calc__sub {
    margin-top: 0.125rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    font-weight: 400;
}

.sdn-calc__tile--total dd.sdn-calc__sub { color: rgb(255 255 255 / 0.85); }
.sdn-calc__sub:empty { display: none; }

.sdn-calc__hint,
.sdn-calc__notes {
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
    line-height: 1.5;
}

.sdn-calc__notes { padding-left: 1.125rem; }

.sdn-calc__tabletitle { margin-top: 1.25rem; }

.sdn-tablewrap {
    margin-top: 0.625rem;
    overflow-x: auto;
}

.sdn-table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.sdn-table th,
.sdn-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--sdn-line);
    text-align: left;
    vertical-align: top;
}

.sdn-table thead th {
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
    font-weight: 600;
}

.sdn-table__sub {
    display: block;
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
    font-weight: 400;
}

@media (max-width: 899px) {
    .sdn-calc__form,
    .sdn-calc__out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 479px) {
    .sdn-calc__form,
    .sdn-calc__out { grid-template-columns: minmax(0, 1fr); }
}

/* ── Umgebung ────────────────────────────────────────────────── */

.sdn-where {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.sdn-where__address {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.sdn-where__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sdn-places {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
    gap: 0.625rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.sdn-places__item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--sdn-line);
    border-radius: 0.625rem;
}

.sdn-places__item .sdn-pin {
    flex: 0 0 28px;
    box-shadow: none;
}

.sdn-places__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: anywhere;
}

.sdn-places__name {
    font-size: 0.875rem;
    font-weight: 600;
}

.sdn-places__sub {
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
}

.sdn-places__sub a { color: inherit; text-decoration: underline; }

/* ── Beschreibungstext ───────────────────────────────────────── */

.sdn-seo > .bg-card {
    border: 1px solid var(--sdn-line);
    border-radius: var(--sdn-radius);
    box-shadow: none;
}

/* ── Fragen und Antworten ────────────────────────────────────── */

.sdn-faq__item { border-top: 1px solid var(--sdn-line); }
.sdn-faq__item:first-child { border-top: 0; }

.sdn-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.sdn-faq__item summary::-webkit-details-marker { display: none; }

.sdn-faq__item summary::after {
    content: "+";
    flex: 0 0 auto;
    color: hsl(var(--muted-foreground));
    font-size: 1.25rem;
    font-weight: 400;
}

.sdn-faq__item[open] summary::after { content: "–"; }

.sdn-faq__item p {
    margin: 0 0 0.875rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.9375rem;
    line-height: 1.55;
}

/* ── Bewertungen ─────────────────────────────────────────────── */

.sdn-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.sdn-rating strong {
    color: hsl(var(--foreground));
    font-size: 1.25rem;
}

.sdn-reviews {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sdn-review {
    padding: 0.75rem 1rem;
    border: 1px solid var(--sdn-line);
    border-radius: 0.625rem;
}

.sdn-review__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.sdn-review__head time {
    margin-left: auto;
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
}

.sdn-review p {
    margin: 0.5rem 0 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.9375rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.sdn-more { margin-top: 0.625rem; }

.sdn-more > summary {
    display: inline-block;
    min-height: 2rem;
    margin-bottom: 0.625rem;
    color: hsl(var(--primary-text));
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.sdn-askbox {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 1rem;
    border: 1px dashed var(--sdn-line);
    border-radius: 0.625rem;
    font-size: 0.9375rem;
}

.sdn-askbox span { color: hsl(var(--muted-foreground)); }

.sdn-reviewform { margin-top: 1rem; }

.sdn-reviewform > summary {
    display: inline-flex;
    list-style: none;
}

.sdn-reviewform > summary::-webkit-details-marker { display: none; }

.sdn-reviewform form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
    max-width: 36rem;
    margin-top: 1rem;
}

.sdn-reviewform__row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
}

.sdn-reviewform__label {
    font-size: 0.8125rem;
    font-weight: 600;
}

.sdn-reviewform__stars { display: flex; gap: 0.125rem; }

.sdn-reviewform__stars button {
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    background: none;
    color: #d1d5db;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.sdn-reviewform__stars button.is-on { color: #d97706; }

.sdn-reviewform textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--sdn-line);
    border-radius: 0.5rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font: inherit;
}

.sdn-reviewform__msg {
    margin: 0;
    color: var(--sdn-free);
    font-size: 0.875rem;
    font-weight: 600;
}

.sdn-reviewform__msg.is-error { color: hsl(var(--destructive)); }

.sdn-reviewform__guest {
    margin: 0.75rem 0 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.9375rem;
}

.sdn-reviewform__guest a { color: hsl(var(--primary-text)); text-decoration: underline; }

/* ── Großansicht der Fotos ───────────────────────────────────── */

.sdn-lightbox {
    position: fixed;
    inset: 0;
    z-index: 50000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgb(0 0 0 / 0.9);
}

.sdn-lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    margin: 0;
}

.sdn-lightbox__figure img {
    max-width: min(90vw, 100%);
    max-height: 78vh;
    object-fit: contain;
}

.sdn-lightbox__figure figcaption {
    color: #fff;
    font-size: 0.8125rem;
}

.sdn-lightbox__close,
.sdn-lightbox__nav {
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.16);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.sdn-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* ── Nachbarstationen ────────────────────────────────────────── */

.sdn-near {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(21rem, 100%), 1fr));
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sdn-near__card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    height: 100%;
    padding: 0.75rem;
    border: 1px solid var(--sdn-line);
    border-radius: 0.625rem;
    color: hsl(var(--foreground));
    text-decoration: none;
}

.sdn-near__card:hover { border-color: hsl(var(--primary)); }

.sdn-near__card:focus-visible {
    outline: 3px solid hsl(var(--primary));
    outline-offset: 2px;
}

.sdn-near__logo {
    display: flex;
    flex: 0 0 2.5rem;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--sdn-line);
    border-radius: 0.5rem;
    background: #fff;
    color: hsl(var(--muted-foreground));
    overflow: hidden;
}

.sdn-near__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sdn-near__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.sdn-near__name {
    font-size: 0.9375rem;
    font-weight: 600;
}

.sdn-near__sub,
.sdn-near__meta {
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
}

.sdn-near__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    margin-top: 0.25rem;
}

.sdn-near__status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
}

.sdn-near__status::before {
    content: "";
    width: 0.625rem;
    height: 0.625rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: currentColor;
}

.sdn-near__status--free { color: var(--sdn-free); }
.sdn-near__status--busy { color: var(--sdn-busy); }
.sdn-near__status--unknown { font-weight: 400; }
.sdn-near__status--unknown::before { background: transparent; }

.sdn-near__price {
    flex: 0 0 auto;
    max-width: 6rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    text-align: right;
}

.sdn-near__price strong {
    color: hsl(var(--foreground));
    font-size: 1.0625rem;
}

.sdn-hublinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.sdn-hublinks a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 0.875rem;
    border: 1px solid var(--sdn-line);
    border-radius: 999px;
    color: hsl(var(--primary-text));
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.sdn-hublinks a:hover { background: hsl(var(--muted)); }

/* ── Aktionsleiste auf dem Handy ─────────────────────────────── */

/* Liegt unter Spenden-Knopf (30000), Teaser (30001), App-Hinweis (30002) und
   Cookie-Hinweis (99999). Solange Cookie-Hinweis, App-Hinweis oder Teaser offen
   sind, ist die Leiste aus. */
.sdn-mobilebar { display: none; }

@media (max-width: 719px) {
    .sdn-mobilebar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 29990;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        min-height: 4rem;
        padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--sdn-line);
        background: hsl(var(--card));
        box-shadow: 0 -4px 16px rgb(0 0 0 / 0.08);
    }

    .sdn-mobilebar.is-waiting,
    .ls-apphint-open .sdn-mobilebar,
    .ls-teaser-open .sdn-mobilebar { display: none; }

    /* Platz für die Leiste am Seitenende (auch unter dem Footer) */
    body:has(.sdn-mobilebar) { padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px)); }

    /* Spenden-Knopf (Position „unten“) und der runde Cookie-Knopf rücken über die Leiste */
    body:has(.sdn-mobilebar) .donation-button-container.bottom-8,
    body:has(.sdn-mobilebar) .cookie-settings-floating { bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)); }
}

.sdn-mobilebar__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.sdn-mobilebar__price {
    font-size: 1.125rem;
    font-weight: 700;
    white-space: nowrap;
}

.sdn-mobilebar__price small {
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    font-weight: 500;
}

.sdn-mobilebar__price--none {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    white-space: normal;
}

.sdn-mobilebar__free {
    color: var(--sdn-free);
    font-size: 0.8125rem;
    font-weight: 600;
}

.sdn-mobilebar__free.is-busy { color: var(--sdn-busy); }

.sdn-mobilebar__go {
    flex: 0 0 auto;
    min-height: 2.75rem;
    padding: 0 1rem;
    font-size: 0.9375rem;
}

/* ── Klickflächen ab 44 px ───────────────────────────────────── */

.sdn-hint summary,
.sdn-more > summary {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
}

.sdn-busy__day {
    min-width: 2.75rem;
    min-height: 2.75rem;
}

/* Links in „Auf einen Blick“: größere Klickfläche, ohne die Kachel zu vergrößern */
.sdn-tile a.sdn-tile__sub,
.sdn-operator a {
    margin-block: -0.75rem;
    padding-block: 0.75rem;
}

.sdn-map .leaflet-control-zoom a {
    width: 44px;
    height: 44px;
    line-height: 44px;
}

@media (max-width: 719px) {
    .sdn-busy__days { width: 100%; }
    .sdn-busy__day { flex: 1 1 0; min-width: 0; padding: 0; }
}

/* ── Schmale Bildschirme ─────────────────────────────────────── */

@media (min-width: 1024px) {
    .sdn-h1 { font-size: 2.25rem; }
}

@media (max-width: 959px) {
    .sdn-top { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: 1rem; }
}

/* Unter 720 px: H1, Kasten, Karte, Text */
@media (max-width: 719px) {
    .sdn-top { grid-template-columns: minmax(0, 1fr); }
    .sdn-glance { order: 1; }
    .sdn-mapbox { order: 2; }
    .sdn-map { min-height: 240px; }
    .sdn-h1 { font-size: 1.5rem; }

    .sdn-mosaic { height: 14rem; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
    .sdn-mosaic__item:not(.sdn-mosaic__item--main) { display: none; }
    .sdn-mosaic .sdn-mosaic__all {
        position: absolute;
        right: 0.75rem;
        bottom: 0.75rem;
        padding: 0 1rem;
        border: 1px solid var(--sdn-line);
        border-radius: 0.5rem;
        background: hsl(var(--background));
        color: hsl(var(--foreground));
        font-size: 0.875rem;
    }
}

