/* Detailansicht (#40/#129): mobil ein Bottom-Sheet, das von unten nach oben
   aufploppt und auf halber Bildschirmhoehe stoppt (Chevron zieht es ganz
   aus); auf Desktop ein Panel, das von rechts kommend links neben die
   Ergebnisliste rutscht. Konzeptionell dasselbe Verhalten wie mobile/
   (StationDetailSheet.tsx / DesktopStationDetailPanel.tsx), hier aber per
   CSS-Transform/-Height statt Pan-Gesture-Handler umgesetzt. */

.station-detail {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    height: var(--station-detail-half-height);
    max-height: 100dvh;
    background-color: var(--surface-color);
    border-top: 1px solid var(--standard-grey);
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -14px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.25s ease, height 0.25s ease;
    overflow: hidden;
}

.station-detail[hidden] {
    display: none;
}

.station-detail.is-open {
    transform: translateY(0);
}

/* Waehrend des Ziehens folgt das Sheet dem Finger ohne Verzoegerung. */
.station-detail.is-dragging {
    transition: none;
}

.station-detail-header,
.station-detail-tabs {
    touch-action: none;
}

.station-detail.is-full {
    height: var(--top-end-height);
}

.station-detail-knob {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    touch-action: none;
}

.station-detail-knob-bar {
    width: 36px;
    height: 4px;
    background-color: var(--standard-grey);
    border-radius: var(--rounded);
}

.station-detail-header {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--standard-gap);
    padding: 0 var(--very-big-padding) var(--big-padding);
}

.station-detail-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--big-padding);
}

.station-detail-title {
    min-width: 0;
}

.station-detail-name {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--extra-dark-grey);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.station-detail-brand {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--dark-grey);
}

.station-detail-actions-icons {
    display: flex;
    align-items: center;
    gap: var(--small-gap);
    flex-shrink: 0;
}

/* Mobil gibt es kein X: Wischen nach unten (Griff/Kopf) schliesst das Sheet.
   Das Desktop-Panel hat keine Wischgeste und behaelt das X (Media-Query unten). */
#station-detail-close-button {
    display: none;
}

.station-detail-icon-button {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--rounded);
    background-color: var(--light-grey);
    color: var(--dark-grey);
    cursor: pointer;
}

.station-detail-icon-button.is-favorite {
    color: #d4145a;
}

/* Gleicher Kontrastfix wie bei .brand-favorite-indicator (gasStationList.css):
   das feste Pink ist auf die weisse Light-Mode-Flaeche abgestimmt und faellt
   auf der dunklen Oberflaeche kaum noch auf. */
:root[data-theme="dark"] .station-detail-icon-button.is-favorite {
    color: #ff5c8a;
}

.station-detail-icon-button.is-favorite i {
    font-weight: 900;
}

.station-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.station-detail-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.station-detail-status-left {
    display: flex;
    align-items: center;
    gap: var(--small-gap);
    font-size: 13px;
    line-height: 18px;
    color: var(--extra-dark-grey);
}

/* Status-Punkt, Adresse- und Uhr-Icon sitzen in gleich grossen Slots, damit
   sie mittig untereinander stehen und der Text buendig beginnt. */
.station-detail-icon-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.station-detail-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--standard-grey);
}

.station-detail-status-dot.is-open {
    background-color: var(--green);
}

.station-detail-row {
    display: flex;
    align-items: flex-start;
    gap: var(--small-gap);
    font-size: 13px;
    line-height: 18px;
    color: var(--extra-dark-grey);
}

.station-detail-row[hidden] {
    display: none;
}

.station-detail-row i {
    color: var(--dark-grey);
    font-size: 14px;
    line-height: 1;
    text-align: center;
}

.station-detail-hours {
    flex: 1;
    min-width: 0;
}

.station-detail-hours-today {
    margin: 0;
}

/* Immer nur die heutigen Zeiten; ein Tipp auf die Zeile klappt die ganze
   Woche auf (Wochentage einzeln, der heutige hervorgehoben). */
.station-detail-hours-list {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

#station-detail-hours-row {
    cursor: pointer;
}

.station-detail-hours-chevron {
    margin-left: auto;
    font-size: 11px;
    transition: transform 0.2s ease;
}

#station-detail-hours-row.is-hours-open .station-detail-hours-today {
    display: none;
}

#station-detail-hours-row.is-hours-open .station-detail-hours-list {
    display: block;
}

#station-detail-hours-row.is-hours-open .station-detail-hours-chevron {
    transform: rotate(180deg);
}

.station-detail-hours-list li {
    display: flex;
    gap: var(--standard-gap);
}

.station-detail-hours-day {
    flex: 0 0 60px;
}

.station-detail-hours-list li.is-today {
    font-weight: 600;
}

/* Preis-Hero: aktueller Preis gross, daneben die Spritwahl als
   Segment-Schalter (radiogroup, immer sichtbar). Steuert Preis, Statistik
   und Diagramme (#131). */
.station-detail-fuel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--standard-gap);
    flex-wrap: wrap;
}

.station-detail-chip-group {
    display: flex;
    gap: var(--small-gap);
    flex-wrap: wrap;
}

.station-detail-chip {
    padding: 6px var(--big-padding);
    border-radius: var(--rounded);
    border: 0;
    background-color: var(--light-grey);
    color: var(--extra-dark-grey);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.station-detail-chip.is-active {
    background-color: var(--primary-color);
    color: var(--white);
}

#station-detail-fuel-chips {
    flex-wrap: nowrap;
    padding: 3px;
    gap: 2px;
    border-radius: var(--rounded);
    background-color: var(--light-grey);
}

#station-detail-fuel-chips .station-detail-chip {
    background: none;
}

#station-detail-fuel-chips .station-detail-chip.is-active {
    background-color: var(--surface-color);
    color: var(--extra-dark-grey);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.station-detail-current-price {
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: var(--extra-dark-grey);
}

.station-detail-buttons {
    display: flex;
    gap: var(--standard-gap);
}

.station-detail-button {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--small-gap);
    height: 44px;
    border: none;
    border-radius: var(--standard-radius);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.station-detail-button--primary {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Navigation ergibt nur vom eigenen (GPS-)Standort aus Sinn - ohne bekannten
   Standort wird der Button ausgegraut statt ausgeblendet, siehe
   updateNavigateAvailability() in gasStationDetail.js. */
.station-detail-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Navigations-Auswahl als Bottom Sheet (statt eines kleinen Popovers ueber
   dem Button) - Markup liegt bewusst ausserhalb von #station-detail, siehe
   Kommentar in index.html. Scrim + Sheet folgen demselben
   hidden-entfernen-dann-is-open-Muster wie #station-detail selbst, damit die
   Transition greift (siehe openNavigateMenu()/closeNavigateMenu() in
   gasStationDetail.js). */
.station-detail-navigate-scrim {
    position: fixed;
    inset: 0;
    background-color: rgba(20, 20, 24, 0.32);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 40;
}

.station-detail-navigate-scrim[hidden] {
    display: none;
}

.station-detail-navigate-scrim.is-open {
    opacity: 1;
}

.station-detail-navigate-menu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 41;
    max-height: 80vh;
    overflow-y: auto;
    background-color: var(--surface-color);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(20, 20, 24, 0.2);
    padding-bottom: max(var(--standard-padding), env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform 0.25s ease;
}

.station-detail-navigate-menu[hidden] {
    display: none;
}

.station-detail-navigate-menu.is-open {
    transform: translateY(0);
}

.station-detail-navigate-menu.is-dragging {
    transition: none;
}

.station-detail-navigate-menu-knob {
    width: 36px;
    height: 4px;
    background-color: var(--standard-grey);
    border-radius: 2px;
    margin: 14px auto 4px;
}

.station-detail-navigate-menu-title {
    margin: 0;
    padding: 8px var(--very-big-padding) 4px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--extra-dark-grey);
}

.station-detail-navigate-option {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px var(--very-big-padding);
    background: none;
    border: none;
    border-top: 1px solid var(--mid-grey);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: var(--extra-dark-grey);
    text-decoration: none;
    cursor: pointer;
    text-align: left;
}

.station-detail-navigate-option:hover,
.station-detail-navigate-option:focus-visible {
    background-color: var(--light-grey);
}

.station-detail-navigate-option-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.station-detail-navigate-option-icon svg {
    display: block;
}

.station-detail-navigate-option-label {
    flex-grow: 1;
}

.station-detail-navigate-option-chevron {
    flex: 0 0 auto;
    color: var(--standard-grey);
}

.station-detail-full {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 var(--very-big-padding) var(--very-big-padding);
}

.station-detail-full[hidden] {
    display: none;
}

.station-detail-section {
    padding: var(--big-padding) 0;
    border-top: 1px solid var(--mid-grey);
}

.station-detail-section-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--extra-dark-grey);
}

.station-detail-section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--standard-gap);
    flex-wrap: wrap;
    margin-bottom: var(--standard-gap);
}

.station-detail-chip-group--period .station-detail-chip {
    padding: 4px var(--standard-padding);
    padding-left: var(--big-padding);
    padding-right: var(--big-padding);
    font-size: 12px;
}

/* Statistik: drei schlichte Werte (Durchschnitt / Minimum / Maximum) fuer den
   gewaehlten Vergleichszeitraum, aus den taeglichen Preisstatistiken von
   voll-tank-api (siehe shared/api/priceHistory.js). Den aktuellen Preis zeigt
   schon der Preis-Hero oben. */
.station-detail-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--standard-gap);
    margin-bottom: var(--big-padding);
}

.station-detail-stat-label {
    margin: 0;
    font-size: 12px;
    color: var(--dark-grey);
}

.station-detail-stat-value {
    margin: 2px 0 0;
    font-size: 17px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--extra-dark-grey);
}

.station-detail-stat-cell:nth-child(2) .station-detail-stat-value {
    color: var(--green);
}

.station-detail-stat-cell:nth-child(3) .station-detail-stat-value {
    color: var(--red);
}

.station-detail-chart-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--standard-gap);
    margin-bottom: var(--standard-gap);
}

.price-history-chart,
.hour-chart {
    position: relative;
}

/* Lade-/Leerzustand (noch keine Daten fuer diese Station/diesen Sprit) -
   feste Mindesthoehe, damit die Karte nicht auf eine einzeilige Textzeile
   zusammenfaellt. */
.station-detail-chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    margin: 0;
    padding: 0 var(--standard-gap);
    text-align: center;
    font-size: 13px;
    color: var(--dark-grey);
}

.price-history-chart-svg,
.hour-chart-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.price-history-axis {
    stroke: var(--standard-grey);
    stroke-width: 1;
}

.price-history-ref {
    stroke-width: 1;
    stroke-dasharray: 3 3;
}

.price-history-ref-min {
    stroke: var(--green);
}

.price-history-ref-max {
    stroke: var(--red);
}

.price-history-ref-avg {
    stroke: var(--dark-grey);
}

.price-history-avg-label {
    fill: var(--dark-grey);
    font-size: 9px;
}

.price-history-extreme-max {
    fill: var(--red);
}

.price-history-extreme-min {
    fill: var(--green);
}

.price-history-extreme-label {
    font-size: 9px;
    font-weight: 600;
}

/* Hoechster/tiefster Tagesdurchschnitt (nur 30 Tage): hohle Marker. */
.price-history-avg-extreme {
    fill: var(--surface-color);
    stroke-width: 1.8;
}

.price-history-avg-extreme-max {
    stroke: var(--red);
}

.price-history-avg-extreme-min {
    stroke: var(--green);
}

.price-history-avg-extreme-label {
    font-size: 8px;
    font-weight: 500;
}

.price-history-avg-extreme-label.price-history-avg-extreme-max {
    fill: var(--red);
    stroke: none;
}

.price-history-avg-extreme-label.price-history-avg-extreme-min {
    fill: var(--green);
    stroke: none;
}

.price-history-legend-dot {
    fill: var(--dark-grey);
}

.price-history-legend-dot-hollow {
    fill: var(--surface-color);
    stroke: var(--dark-grey);
    stroke-width: 1.5;
}

.price-history-area {
    fill: var(--primary-color);
    opacity: 0.1;
    stroke: none;
}

.price-history-line {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.price-history-end-dot {
    fill: var(--primary-color);
    stroke: var(--surface-color);
    stroke-width: 2;
}

.price-history-hit {
    fill: transparent;
    cursor: pointer;
}

.price-history-hit:focus {
    outline: none;
}

.price-history-axis-label {
    fill: var(--dark-grey);
    font-size: 9px;
}

.price-history-crosshair {
    stroke: var(--dark-grey);
    stroke-width: 1;
    pointer-events: none;
}

.price-history-tooltip,
.hour-chart-tooltip {
    position: absolute;
    transform: translate(-50%, -100%);
    margin-top: -8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 4px 8px;
    border-radius: var(--standard-radius);
    background-color: var(--extra-dark-grey);
    /* Invertiert zum Tooltip-Hintergrund, damit der Text in Hell und Dunkel
       lesbar bleibt (--extra-dark-grey ist im Dark Mode hell). */
    color: var(--surface-color);
    font-size: 11px;
    white-space: nowrap;
    pointer-events: none;
}

.price-history-tooltip[hidden],
.hour-chart-tooltip[hidden] {
    display: none;
}

.price-history-tooltip strong,
.hour-chart-tooltip strong {
    font-variant-numeric: tabular-nums;
    font-size: 12px;
}

.hour-bar-below {
    fill: var(--green);
    opacity: 0.45;
}

.hour-bar-above {
    fill: var(--red);
    opacity: 0.4;
}

.hour-bar-best {
    opacity: 1;
}

.hour-zero-line {
    stroke: var(--dark-grey);
    stroke-width: 1;
    stroke-dasharray: 3 3;
    pointer-events: none;
}

.hour-zero-label,
.hour-label {
    fill: var(--dark-grey);
    font-size: 9px;
}

.hour-best-label {
    fill: var(--green);
    font-size: 9px;
    font-weight: 700;
}

.hour-hit {
    fill: transparent;
    cursor: pointer;
}

.hour-hit:focus {
    outline: none;
}

.station-detail-hour-best {
    margin: 0 0 var(--standard-gap);
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
}

/* Hinweis-Chip: aktueller Preis liegt unter dem Tiefstwert des Zeitraums. */
.station-detail-price-record {
    display: inline-block;
    margin: 0 0 var(--standard-gap);
    padding: 4px 12px;
    border-radius: 999px;
    background-color: rgba(52, 199, 89, 0.16);
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
}

.station-detail-price-record[hidden] {
    display: none;
}

.station-detail-hour-hint {
    margin: var(--standard-gap) 0 0;
    font-size: 12px;
    color: var(--dark-grey);
}

/* Kleine Bildschirme: Konzept "Tabs" - kompakter Kopf, darunter die Reiter
   Verlauf / Fahrt / Uhrzeit; es ist immer nur ein Abschnitt sichtbar. Ein Tipp
   auf einen Reiter klappt das Sheet auf. Auf Desktop (Media-Query unten) stehen
   dieselben Abschnitte ohne Reiter in einer ruhigen Spalte untereinander. */
.station-detail-tabs {
    flex: 0 0 auto;
    display: flex;
    gap: var(--small-gap);
    padding: 0 var(--very-big-padding);
    border-bottom: 1px solid var(--mid-grey);
}

.station-detail-tab {
    flex: 1;
    padding: 10px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--dark-grey);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.station-detail-tab.is-active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.station-detail-tabs.is-collapsed .station-detail-tab.is-active {
    border-bottom-color: transparent;
    color: var(--dark-grey);
}

.station-detail[data-active-tab="history"] .station-detail-section:not([data-tab="history"]),
.station-detail[data-active-tab="trip"] .station-detail-section:not([data-tab="trip"]),
.station-detail[data-active-tab="hour"] .station-detail-section:not([data-tab="hour"]) {
    display: none;
}

.station-detail-section {
    border-top: 0;
}

.station-detail-section-title {
    display: none;
}

.station-detail-section-title-row:not(:has(.station-detail-chip-group)) {
    display: none;
}

/* Desktop-Gegenstueck: kein Bottom-Sheet, sondern ein Panel, das von rechts
   kommend links neben die (weiterhin rechtsbuendige) Ergebnisliste rutscht -
   siehe .list-slider-Desktop-Regel in gasStationList.css. */
@media (min-width: 700px) and (orientation: landscape) {
    /* Navigations-Menue wie das Einstellungs-Panel (nav.css): zentriertes
       Modal mit Scrim, Scale/Fade statt Slide von unten. */
    .station-detail-navigate-scrim {
        background-color: rgba(20, 20, 24, 0.45);
    }

    .station-detail-navigate-menu {
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        width: min(480px, 90vw);
        max-height: 85vh;
        border: 0;
        border-radius: 18px;
        box-shadow:
            0 22px 42px -20px rgba(0, 0, 0, 0.4),
            0 4px 14px rgba(0, 0, 0, 0.14);
        padding-bottom: var(--standard-padding);
        transform: translate(-50%, -50%) scale(0.96);
        opacity: 0;
        transition:
            transform 0.25s ease,
            opacity 0.25s ease;
    }

    .station-detail-navigate-menu.is-open {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    .station-detail-navigate-menu-knob {
        display: none;
    }

    .station-detail-navigate-menu-title {
        padding-top: var(--very-big-padding);
    }

    .station-detail {
        top: var(--desktop-panel-inset);
        left: auto;
        right: calc(var(--desktop-panel-width) + var(--desktop-panel-inset) + var(--desktop-detail-panel-gap));
        bottom: var(--desktop-panel-inset);
        width: var(--desktop-detail-panel-width);
        height: auto !important;
        max-height: none;
        border: 0;
        border-radius: 18px;
        box-shadow:
            0 22px 42px -20px rgba(0, 0, 0, 0.4),
            0 4px 14px rgba(0, 0, 0, 0.14);
        transform: translateX(100%);
    }

    .station-detail.is-open {
        transform: translateX(0);
    }

    .station-detail-header {
        padding-top: var(--very-big-padding);
    }

    .station-detail-knob {
        display: none;
    }

    #station-detail-close-button {
        display: flex;
    }

    /* Auf Desktop gibt es nur eine voll offene Ansicht - kein Halboffen-
       Zustand: die Vollansicht ist immer sichtbar, unabhaengig vom
       is-full/hidden-Zustand, den setExpanded() setzt (der weiterhin nur
       fuer mobil gilt). Statt Reitern stehen alle Abschnitte untereinander,
       mit sichtbaren Ueberschriften. */
    .station-detail-full[hidden] {
        display: block;
    }

    .station-detail-tabs {
        display: none;
    }

    .station-detail[data-active-tab] .station-detail-section[data-tab] {
        display: block;
        padding: var(--very-big-padding) 0;
        border-top: 1px solid var(--mid-grey);
    }

    .station-detail-section-title {
        display: block;
    }

    .station-detail-section-title-row:not(:has(.station-detail-chip-group)) {
        display: flex;
    }
}

/* "Lohnt sich die Fahrt" (Issue #28): Kurzansicht mit Badge + Route,
   Vollansicht mit Aufschluesselung (siehe renderTripWorth()). */
.station-detail-trip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--small-gap) var(--standard-gap);
    padding: var(--standard-padding) var(--big-padding);
    border-radius: var(--standard-radius);
    background-color: var(--light-grey);
}

.station-detail-trip[hidden],
.station-detail-trip-badge[hidden],
.station-detail-trip-route[hidden] {
    display: none;
}

/* Beschriftung und Betrag ueber Gewicht/Farbe getrennt statt per Trennpunkt. */
.station-detail-trip-badge {
    display: inline-flex;
    align-items: baseline;
    gap: var(--small-gap);
}

.station-detail-trip-badge-label {
    font-size: 13px;
    color: var(--dark-grey);
}

.station-detail-trip-badge-value {
    font-size: 15px;
    font-weight: 700;
}

.station-detail-trip-badge.is-worth .station-detail-trip-badge-value {
    color: var(--green);
}

.station-detail-trip-badge.is-not-worth .station-detail-trip-badge-value {
    color: var(--red);
}

.station-detail-trip-route {
    display: inline-flex;
    align-items: center;
    gap: var(--small-gap);
    font-size: 13px;
    color: var(--dark-grey);
}

.station-detail-trip-line {
    display: flex;
    justify-content: space-between;
    gap: var(--standard-gap);
    padding: 4px 0;
    font-size: 13px;
    color: var(--extra-dark-grey);
}

.station-detail-trip-line-value {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
}

.station-detail-trip-line--worth,
.station-detail-trip-line--not-worth {
    margin-top: 4px;
    padding-top: var(--standard-padding);
    border-top: 1px solid var(--mid-grey);
    font-weight: 700;
}

.station-detail-trip-line--worth .station-detail-trip-line-value {
    color: var(--green);
}

.station-detail-trip-line--not-worth .station-detail-trip-line-value {
    color: var(--red);
}

.station-detail-trip-action {
    align-self: flex-start;
    margin-top: 4px;
    padding: 8px 14px;
    border: 1.5px solid var(--primary-color);
    border-radius: var(--standard-radius);
    background: none;
    color: var(--primary-color);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.station-detail-trip-message,
.station-detail-trip-hint {
    margin: 0;
    font-size: 12px;
    color: var(--dark-grey);
}

.station-detail-trip-hint {
    margin-top: var(--standard-gap);
}

/* Route auf der Karte (script.js showStationRoute) - Kontur + Linie. */
.station-route-casing {
    stroke: #ffffff;
}

.station-route-line {
    stroke: var(--primary-color);
}

/* "Preis falsch?": dezenter Textlink unter Preis und Spritchips, oeffnet das Feedback-Sheet. */
.station-detail-report {
    align-self: flex-start;
    margin: 0;
    padding: 2px 0;
    border: 0;
    background: none;
    color: var(--dark-grey);
    font: inherit;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}
