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

/* =========================================================
   Hero-Bereich
   min-height gibt nur eine Mindesthöhe vor. Wenn der Inhalt auf
   einem Handy mehr Platz braucht, darf der Bereich weiter wachsen.
========================================================= */
.heroSection {
    min-height: max(720px, 100svh);
    display: flex;
    align-items: flex-start;
    position: relative;
    /* Das Hintergrundlicht abschneiden, ohne die feste Position der Einleitung zu stören. */
    overflow: clip;
    /* Beim Kartenwechsel soll der Browser nicht selbst die Scrollposition verschieben. */
    overflow-anchor: none;
    color: white;
    background:
        linear-gradient(90deg, rgba(8, 16, 28, 0.96) 0%, rgba(8, 16, 28, 0.78) 48%, rgba(8, 16, 28, 0.32) 100%),
        url("../images/copilot.png") center / cover no-repeat;
}

.heroSection::after {
    content: "";
    width: clamp(280px, 36vw, 460px);
    aspect-ratio: 1;
    position: absolute;
    right: -180px;
    bottom: -180px;
    border-radius: 50%;
    background: rgba(242, 136, 57, 0.28);
    filter: blur(25px);
}

/*
   Grid teilt den Inhalt auf großen Bildschirmen in zwei Spalten.
   minmax(0, 1fr) verhindert, dass lange Texte das Layout verbreitern.
*/
.heroContent {
    /* Mehr Abstand zum Fensterrand wirkt ruhiger und verhindert gequetschten Inhalt. */
    width: min(calc(100% - 80px), 1200px);
    margin: 0 auto;
    padding: 104px 0 38px;
    display: grid;
    /* Beide Spalten teilen sich den Platz, auch auf kleineren Laptops. */
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
    gap: clamp(44px, 6vw, 80px);
    /* Beide Spalten beginnen oben. Eine höhere Karte verschiebt den linken Text nicht. */
    align-items: start;
    position: relative;
    z-index: 1;
}

.heroIntro {
    min-width: 0;
    max-width: 660px;
    /* Beim Ausfüllen der längeren Karte bleibt die Einleitung unter der Navigation. */
    position: sticky;
    top: 104px;
}

.heroBadge {
    display: inline-block;
    max-width: 100%;
    margin: 0 0 22px;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.heroContent h1 {
    margin: 0;
    font-size: clamp(2.8rem, 5.2vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    overflow-wrap: break-word;
}

.heroContent h1 span {
    color: #f6a35e;
}

.heroText {
    max-width: 640px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
}

.heroActions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.container-navigation {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;

    /* Die Links stehen direkt in der Navigation, ohne einen zusätzlichen Kasten. */
    padding: 0;
    background: transparent;

    /* Den verfügbaren Platz nutzen, ohne das Logo aus der Navigation zu drücken. */
    max-width: 100%;
    min-width: 0;
    margin: 0;

}

.primaryButton,
.secondaryButton {
    min-height: 48px;
    padding: 14px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 900;
    text-align: center;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primaryButton {
    background: #e87528;
    box-shadow: 0 12px 26px rgba(232, 117, 40, 0.28);
}

.secondaryButton {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.primaryButton:hover,
.secondaryButton:hover {
    transform: translateY(-2px);
}

.primaryButton:hover { background: #f0873f; }
.secondaryButton:hover { background: rgba(255, 255, 255, 0.15); }

.heroFacts {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(18px, 4vw, 50px);
    margin: 32px 0 0;
    padding: 20px 0 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.heroFacts li {
    display: flex;
    flex-direction: column;
}

.heroFacts strong { font-size: 1.05rem; }

.heroFacts span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.86rem;
}

/* =========================================================
   Fixierte Navigation
========================================================= */
#navbar {
    width: 100%;
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    background: rgba(8, 16, 28, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

/* Nach dem Scrollen bleibt der Text auf hellen Seitenbereichen gut lesbar. */
#navbar.isScrolled {
    padding: 9px 0;
    background: rgba(8, 16, 28, 0.94);
    box-shadow: 0 8px 28px rgba(3, 10, 20, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header {
    /* Header und Hero haben dadurch links und rechts dieselbe Fluchtlinie. */
    width: min(calc(100% - 80px), 1200px);
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    min-width: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 950;
}

/* Der Name wird in zwei Farben geteilt: Singh bleibt weiß, Ride nutzt das Markenorange. */
.brandName {
    white-space: nowrap;
    font-size: clamp(2rem, 2.7vw, 2.55rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.brandSingh {
    color: white;
}

.brandRide {
    color: #e87528;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    min-height: 44px;
    padding: 9px 14px;
    display: flex;
    position: relative;
    align-items: center;
    border-radius: 9px;
    color: rgba(255, 255,255, 0.78);
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
    color: white;
}

/* Nur der ausgewählte Link bekommt einen orangefarbenen Unterstrich. */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: #f39b59;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-links a.isActive { color: white; }
.nav-links a.isActive::after { transform: scaleX(1); }
.nav-links a:focus-visible { outline: 2px solid #f39b59; outline-offset: 2px; }

/* =========================================================
   Preis-Karte
   Keine feste 500px-Breite und keine absolute Position mehr.
========================================================= */
.cardForm {
    scroll-margin-top: 104px;
    width: 100%;
    min-width: 0;
    scroll-margin-top: 100px;
}

.cardOutline {
    width: 100%;
    /* Seitlich darf mehr Luft sein, ohne die Karte auf kleinen Laptops zu hoch zu machen. */
    padding: 30px clamp(32px, 2.6vw, 36px);
    color: #263244;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 65px rgba(3, 10, 20, 0.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Der Zurück-Pfeil bleibt im normalen Layout und benötigt keinen negativen Abstand. */
.backButton {
    width: 44px;
    height: 44px;
    margin: 0 0 12px;
    padding: 0;

    display: grid;
    place-items: center;

    border: none;
    border-radius: 11px;
    color: #0b1422;
    background-color: transparent;

    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

/* hidden muss den Button zuverlässig vollständig ausblenden. */
.backButton[hidden] {
    display: none;
}

.backButton:hover {
    color: #e87528;
    background-color: #fff2e9;
    transform: translateX(-10px);
}



.cardHeading {
    margin-bottom: 18px;
}

.cardEyebrow,
.locationLabel {
    display: block;
    color: #7a8493;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.locationField:focus-within .locationLabel {
    color: #18864b;
}
.cardHeading h2 {
    margin: 3px 0 4px;
    color: #0b1422;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.cardHeading p {
    margin: 0;
    color: #687386;
    font-size: 0.84rem;
}

.cardHeading p .price-highlight {
    font-weight: 800;
   color: #149ecf;
}

.cardContent {
    width: 100%;
    display: flex;
    flex-direction: column;
}


.locationField {
    width: 100%;
    min-height: 62px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e1e6eb;
    border-radius: 14px;
    cursor: text;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.locationField:focus-within {
    border-color: #e87528;
    background: white;
    box-shadow: 0 0 0 4px rgba(232, 117, 40, 0.13);
}

/* Die Vorschläge liegen direkt unter dem jeweils aktiven Adressfeld. */
.locationAutocomplete {
    position: relative;
}

.addressSuggestions {
    width: 100%;
    max-height: 260px;
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    z-index: 30;
    overflow-y: auto;
    border: 1px solid #dce2e8;
    border-radius: 14px;
    background: white;
    box-shadow: 0 18px 38px rgba(11, 20, 34, 0.2);
}

.addressSuggestionItem {
    width: 100%;
    min-height: 54px;
    padding: 11px 14px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    border: 0;
    border-bottom: 1px solid #edf0f3;
    color: #f3f0e9;
    background: #202620;
    font-family: "Nunito", sans-serif;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.addressSuggestionItem:last-child {
    border-bottom: 0;
}

.addressSuggestionItem:hover,
.addressSuggestionItem.is-active,
.addressSuggestionItem:focus-visible {
    outline: 0;
    color: #0b1422;
    background: #fff4ec;
}

.addressSuggestionMarker {
    width: 12px;
    height: 12px;
    border: 3px solid #e87528;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.addressSuggestionMessage {
    margin: 0;
    padding: 14px;
    color: #687386;
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.4;
}

.locationMarker {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 4px solid #0b1422;
}

.pickupMarker { border-radius: 50%; }
.dropoffMarker { border-radius: 3px; }

.locationFieldContent {
    min-width: 0;
    flex: 1;
}

.locationInput {
    width: 100%;
    margin-top: 3px;
    padding: 0;
    border: 0;
    outline: 0;
    color: #0b1422;
    background: transparent;
    font-family: "Nunito", sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.locationInput::placeholder {
    color: #89929f;
    opacity: 1;
    font-weight: 700;
}


.routeConnector {
    width: 2px;
    height: 10px;
    margin-left: 23px;
    background: #c8ced6;
}

/* Datum, Uhrzeit und Fahrgäste bleiben auf Laptop zweispaltig. */
.rideOptionsGrid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 12px;
}

.rideOptionField {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rideOptionField > label,
.optionLabelRow > label {
    color: #626d7c;
    font-size: 0.76rem;
    font-weight: 900;
}

.rideOptionField > label span,
.optionLabelRow > label span {
    color: #929aa6;
    font-weight: 750;
}

.rideOptionField > input,
.rideOptionField > select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #dfe4e9;
    border-radius: 11px;
    outline: 0;
    color: #0b1422;
    background: #f7f9fa;
    font-family: "Nunito", sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rideOptionField > input:focus,
.rideOptionField > select:focus {
    border-color: #e87528;
    background: white;
    box-shadow: 0 0 0 3px rgba(232, 117, 40, 0.12);
}

/*
 * Browser zeichnen ein geöffnetes normales <select> unterschiedlich.
 * Diese kleine eigene Liste sorgt deshalb auf Windows, Mac und Handy
 * für das gleiche SinghRide-Design. Das originale select bleibt im Hintergrund,
 * damit die vorhandene Preislogik weiterhin mit seinem Wert arbeiten kann.
 */
.customSelect,
.customDatePicker {
    width: 100%;
    position: relative;
}

.nativeSelectHidden,
.nativeDateHidden {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.customSelectButton,
.customDateButton {
    width: 100%;
    min-height: 44px;
    padding: 0 40px 0 14px;
    position: relative;
    border: 1px solid #dfe4e9;
    border-radius: 11px;
    color: #0b1422;
    background: #f7f9fa;
    font-family: "Nunito", sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.customSelectButton::after {
    content: "";
    width: 8px;
    height: 8px;
    position: absolute;
    top: 50%;
    right: 15px;
    border-right: 2px solid #5f6977;
    border-bottom: 2px solid #5f6977;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease;
}

.customSelect.isOpen .customSelectButton,
.customDatePicker.isOpen .customDateButton,
.customSelectButton:focus-visible,
.customDateButton:focus-visible {
    outline: 0;
    border-color: #e87528;
    background: white;
    box-shadow: 0 0 0 3px rgba(232, 117, 40, 0.12);
}

.customSelect.isOpen .customSelectButton::after {
    transform: translateY(-25%) rotate(225deg);
}

.customSelectButton:disabled,
.customDateButton:disabled {
    cursor: wait;
    opacity: 0.65;
}

.customSelectMenu {
    width: 100%;
    max-height: 230px;
    padding: 6px;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 35;
    transform: translateY(var(--menu-shift-y, 0px));
    overflow-y: auto;
    border: 1px solid #dfe4e9;
    border-radius: 13px;
    background: white;
    box-shadow: 0 18px 38px rgba(11, 20, 34, 0.2);
}

.customSelectOption {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    border-radius: 8px;
    color: #263244;
    background: transparent;
    font-family: "Nunito", sans-serif;
    font-size: 0.88rem;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.customSelectOption:hover,
.customSelectOption.isActive,
.customSelectOption:focus-visible {
    outline: 0;
    color: #0b1422;
    background: #fff2e9;
}

.customSelectOption[aria-selected="true"] {
    color: #a84d13;
    background: #fff2e9;
    font-weight: 900;
}

.customSelectOption[aria-selected="true"]::after {
    content: "\2713";
    color: #e87528;
    font-size: 0.95rem;
}

/* Nur nicht verfügbare Abholzeiten grau anzeigen und sperren. */
#pickupTimeMenu .customSelectOption:disabled {
    color: #bec4cc;
    background: transparent;
    cursor: not-allowed;
}

#pickupTimeMenu .customSelectOption:disabled::after {
    content: "\2298";
    color: #bec4cc;
}

.customSelectMenu[hidden] {
    display: none;
}

/* Das kleine Symbol wird nur mit CSS gezeichnet und benötigt keine Bilddatei. */
.customDateButton::after {
    content: "";
    width: 14px;
    height: 13px;
    position: absolute;
    top: 50%;
    right: 14px;
    border: 2px solid #5f6977;
    border-radius: 3px;
    background: linear-gradient(#5f6977, #5f6977) 0 3px / 100% 2px no-repeat;
    transform: translateY(-50%);
}

.customDateMenu {
    width: min(310px, calc(100vw - 48px));
    padding: 12px;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 45;
    border: 1px solid var(--border);
    border-radius: 15px;
    color: white;
    background: #151815;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

.customDateMenu[hidden] {
    display: none;
}

/* Wenn unter dem Feld zu wenig Platz ist, öffnet sich das Menü sauber nach oben. */
.customSelectMenu.opensUpward {
    top: auto;
    bottom: calc(100% + 6px);
}

.customDateHeader {
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    gap: 6px;
    margin-bottom: 9px;
    text-align: center;
}

.customDateHeader strong {
    font-size: 0.92rem;
    font-weight: 900;
    text-transform: capitalize;
}

.customDateNavButton {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: white;
    background: #262924;
    font-family: "Nunito", sans-serif;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.customDateNavButton:hover,
.customDateNavButton:focus-visible {
    outline: 0;
    background: #353023;
}

.customDateNavButton:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

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

.customDateWeekdays {
    margin-bottom: 4px;
    color: white;
    font-size: 0.68rem;
    font-weight: 900;
    text-align: center;
}

.customDateWeekdays span {
    padding: 4px 0;
}

.customDateDay,
.customDateEmptyDay {
    min-width: 0;
    aspect-ratio: 1;
}

.customDateDay {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: white;
    background: transparent;
    font-family: "Nunito", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.customDateWeekdays span:nth-child(n + 6),
.customDateDay:where(:nth-child(7n + 6), :nth-child(7n + 7)) {
    color: #b7ada0;
}

.customDateDay:hover,
.customDateDay:focus-visible {
    outline: 0;
    background: #353023;
}

.customDateDay.isToday:not(.isSelected) {
    box-shadow: inset 0 0 0 1px #e87528;
}

.customDateDay.isSelected {
    color: white;
    background: #e87528;
}

.customDateDay:disabled {
    opacity: 0.55;
    background: transparent;
    cursor: not-allowed;
}

#childAgeField { grid-column: 1 / -1; }

.optionLabelRow {
    min-height: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.infoTooltip {
    display: inline-flex;
    position: relative;
}

.infoTooltipButton {
    width: 21px;
    height: 21px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: white;
    background: #0b1422;
    font-family: "Nunito", sans-serif;
    font-size: 0.76rem;
    font-weight: 900;
    cursor: help;
}

.infoTooltipButton:focus-visible {
    outline: 3px solid rgba(232, 117, 40, 0.35);
    outline-offset: 2px;
}

.infoTooltipText {
    width: min(290px, calc(100vw - 48px));
    padding: 11px 12px;
    position: absolute;
    right: 0;
    bottom: calc(100% + 9px);
    z-index: 40;
    visibility: hidden;
    border-radius: 10px;
    color: white;
    background: #0b1422;
    box-shadow: 0 12px 26px rgba(11, 20, 34, 0.24);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.infoTooltip:hover .infoTooltipText,
.infoTooltip:focus-within .infoTooltipText {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.discountHint {
    margin: 12px 2px 0;
    color: #788391;
    font-size: 0.74rem;
    font-weight: 750;
    line-height: 1.45;
}

.preisAnzeigenButton {
    width: 100%;
    min-height: 50px;
    margin-top: 14px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-radius: 12px;
    color: white;
    background: #0b1422;
    font-family: "Nunito", sans-serif;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.preisAnzeigenButton:not(:disabled):hover {
    transform: translateY(-2px);
    background: #142238;
    box-shadow: 0 12px 24px rgba(11, 20, 34, 0.2);
}



.preisAnzeigenButton:focus-visible {
    outline: 3px solid rgba(232, 117, 40, 0.42);
    outline-offset: 3px;
}

.preisAnzeigenButton:disabled {
    cursor: wait;
    opacity: 0.78;
}

.priceButtonIcon {
    margin-left: auto;
    font-size: 1.25rem;
}

.priceButtonSpinner {
    width: 20px;
    height: 20px;
    margin-left: auto;
    flex: 0 0 20px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: rotatePriceSpinner 0.8s linear infinite;
}

.priceError {
    margin: 12px 2px 0;
    padding: 11px 13px;
    border: 1px solid #f3c4c0;
    border-radius: 10px;
    color: #9b2c24;
    background: #fff3f2;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.4;
}

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

/* =========================================================
   Tablet: Unter 980px werden aus zwei Spalten eine Spalte.
========================================================= */
@media (max-width: 980px) {
    /* Auf dem Handy stehen Text und Karte untereinander und scrollen normal. */
    .heroIntro {
        position: static;
    }

    .heroSection {
        align-items: flex-start;
        background-position: 60% center;
    }

    .heroContent {
        max-width: 720px;
        padding-top: 130px;
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .cardForm {
        max-width: 620px;
    }
}

/* =========================================================
   Handy: kleinere Außenabstände und gut erreichbare Elemente.
========================================================= */
@media (max-width: 700px) {
    /* Auf kleinen Bildschirmen braucht die Links-Gruppe nur so viel Platz wie ihr Inhalt. */
    .container-navigation {
        flex: 0 0 auto;
        padding: 0;
    }

    .heroContent {
        /* Auf dem Handy bleiben auf beiden Seiten gut sichtbare 20 px frei. */
        width: calc(100% - 40px);
        padding: 118px 0 64px;
        gap: 40px;
    }

    #navbar {
        padding: 12px 0;
    }

    #navbar.isScrolled {
        padding: 8px 0;
    }

    .header {
        width: calc(100% - 40px);
    }

    .nav-links {
        gap: 0;
    }

    .nav-links a { min-height: 40px; padding-inline: 8px; font-size: .82rem; }
    .nav-links a::after { left: 8px; right: 8px; }

    .heroFacts {
        margin-top: 40px;
        gap: 14px 26px;
    }

    .customDateMenu {
        width: 100%;
    }
}

/* Sehr schmale Handys brauchen Buttons über die gesamte Breite. */
@media (max-width: 420px) {
    .heroContent h1 {
        font-size: clamp(2.55rem, 13vw, 3.2rem);
    }

    .heroBadge {
        border-radius: 14px;
        line-height: 1.35;
    }

    .heroActions {
        flex-direction: column;
    }

    .heroActions a {
        width: 100%;
    }

    .heroFacts {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cardOutline {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .locationField {
        min-height: 68px;
        padding-inline: 13px;
    }

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

    .brandName {
        font-size: clamp(1.55rem, 7vw, 1.9rem);
    }

}

@media (max-width: 360px) {
    .header { gap: 8px; }
    .brandName { font-size: 1.4rem; }
    .nav-links a { padding-inline: 6px; font-size: .75rem; }
    .nav-links a::after { left: 6px; right: 6px; }
}


/* =========================================================
   Echtes Preisergebnis
   Dieser Bereich wird nach einer erfolgreichen Backend-Antwort sichtbar.
========================================================= */

/* Ohne diese Regel könnte eine andere display-Regel das hidden-Attribut überschreiben. */
.priceResult[hidden],
.preisAnzeigenButton[hidden],
#priceInputArea[hidden],
.cardHeading[hidden],
.paymentReturnPanel[hidden],
.paymentRetryButton[hidden],
.paymentDoneButton[hidden],
.paymentMessage[hidden],
#childCountField[hidden],
.priceButtonIcon[hidden],
.priceButtonSpinner[hidden],
.priceError[hidden],
.addressSuggestions[hidden],
#childAgeField[hidden],
.priceDiscount[hidden] {
    display: none;
}

.priceResult {
    margin-top: 20px;
    animation: showPriceResult 0.35s ease;
}

.priceResult:focus {
    outline: none;
}

.priceResultTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.priceResultStatus {
    padding: 6px 9px;
    border-radius: 999px;
    color: #17683d;
    background: #e8f7ef;
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
}

.priceResultLabel {
    display: block;
    color: #7a8493;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.priceResultAmount {
    display: block;
    margin-top: 4px;
    color: #0b1422;
    font-size: clamp(2.3rem, 5vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.priceVatNote {
    display: block;
    margin-top: 5px;
    color: #7a8493;
    font-size: 0.78rem;
    font-weight: 750;
}

.priceDiscount {
    margin-top: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #cdebd9;
    border-radius: 11px;
    color: #17683d;
    background: #eefaf3;
    font-size: 0.82rem;
}

.priceDiscount s {
    color: #7a8493;
    font-weight: 800;
}

.priceDiscount strong {
    text-align: right;
}

.priceResultRoute {
    margin-top: 22px;
    padding: 15px;
    border: 1px solid #e4e8ed;
    border-radius: 14px;
    background: #f7f9fa;
}

.priceResultRouteRow {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
}

.priceResultRouteRow + .priceResultRouteRow {
    margin-top: 13px;
}

.resultRouteMarker {
    width: 14px;
    height: 14px;
    border: 4px solid #0b1422;
}

.resultRouteMarker.pickupMarker {
    border-color: #f87171;
}

.resultRouteMarker.dropoffMarker {
    border-color: #4ade80;
}

.priceResultRoute small,
.priceResultRoute strong {
    display: block;
}

.priceResultRoute small {
    color: #7a8493;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.priceResultRoute strong {
    margin-top: 1px;
    color: #263244;
    font-size: 0.88rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

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

.priceResultFact {
    padding: 13px 14px;
    border: 1px solid #e4e8ed;
    border-radius: 12px;
}

.priceResultFact span,
.priceResultFact strong {
    display: block;
}

.priceResultFact span {
    color: #7a8493;
    font-size: 0.72rem;
    font-weight: 850;
}

.priceResultFact strong {
    margin-top: 3px;
    color: #0b1422;
    font-size: 1rem;
}

/* Die Kundendaten stehen unter dem Fahrpreis und passen auch auf schmale Handys. */
.bookingContactFields {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.bookingContactFields h3 {
    margin: 0;
    color: #0b1422;
    font-size: 1rem;
}

.bookingContactFields p {
    margin: 0;
    color: #7a8493;
    font-size: 0.8rem;
    line-height: 1.5;
}

.bookingContactFields label {
    display: grid;
    gap: 5px;
    color: #0b1422;
    font-size: 0.85rem;
    font-weight: 800;
}

.bookingContactFields input {
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid #dce2e9;
    border-radius: 10px;
    background: white;
    color: #0b1422;
    font: inherit;
}

.bookingContactFields input:focus {
    outline: 2px solid #e87528;
    outline-offset: 2px;
}

.priceRequestButton {
    width: 100%;
    min-height: 54px;
    margin-top: 22px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    color: white;
    background: #e87528;
    font-family: "Nunito", sans-serif;
    font-size: 1rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.priceRequestButton:not(:disabled):hover {
    transform: translateY(-2px);
    background: #f0873f;
}

.priceRequestButton:disabled {
    cursor: wait;
    opacity: 0.72;
}

.acceptedPayments {
    margin-top: 13px;
    padding: 12px 14px;
    border: 1px solid #e1e6eb;
    border-radius: 12px;
    background: #f8fafb;
    text-align: center;
}

.acceptedPaymentsTitle {
    color: #344054;
    font-size: 0.8rem;
    font-weight: 900;
}

.paymentBrands {
    margin: 9px 0 7px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    list-style: none;
}

.paymentBrand {
    min-height: 28px;
    padding: 4px 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e0e7;
    border-radius: 7px;
    background: white;
    font-size: 0.7rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0.01em;
}

.paymentBrandVisa {
    color: #1434cb;
    font-style: italic;
}

.paymentBrandMastercard {
    color: #2d3440;
}

.paymentBrandAmex {
    color: #1676a8;
}

.paymentBrandApple {
    color: #111111;
}

.paymentBrandGoogle {
    color: #3267d6;
}

.acceptedPayments p {
    margin: 0;
    color: #7b8593;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.4;
}

.paymentChoiceDivider {
    margin: 15px 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #89929f;
    font-size: 0.74rem;
    font-weight: 850;
    text-transform: uppercase;
}

.paymentChoiceDivider::before,
.paymentChoiceDivider::after {
    height: 1px;
    flex: 1;
    background: #e1e6eb;
    content: "";
}

.cashPaymentButton {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #cfd7df;
    border-radius: 12px;
    color: #172231;
    background: white;
    font-family: "Nunito", sans-serif;
    font-size: 0.94rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cashPaymentButton:not(:disabled):hover {
    transform: translateY(-2px);
    border-color: #8e9bab;
    background: #f8fafb;
}

.cashPaymentButton:disabled {
    cursor: wait;
    opacity: 0.65;
}

.cashPaymentIcon {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #17683d;
    background: #e8f7ef;
    font-size: 0.86rem;
    font-weight: 950;
}

.cashPaymentNote {
    margin: 8px 0 0;
    color: #7b8593;
    font-size: 0.74rem;
    font-weight: 750;
    line-height: 1.4;
    text-align: center;
}

.paymentMessage {
    margin: 12px 0 0;
    padding: 11px 13px;
    border: 1px solid #f3c4c0;
    border-radius: 10px;
    color: #9b2c24;
    background: #fff3f2;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
}

.paymentReturnPanel {
    animation: confirmationAppear 250ms ease-out;
    padding: 22px;
    border: 1px solid #dfe4e9;
    border-radius: 16px;
    background: #f7f9fa;
    text-align: center;
}

.requestSuccessIcon {
    display: none;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e3f4e9;
    color: #23774b;
}

.bookingPaymentChoice,
.carChoice {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin: 22px 0 18px;
    padding: 0;
    border: 0;
}
.bookingPaymentChoice legend,
.carChoice legend {
    margin-bottom: 12px;
    color: #111c2d;
    font-weight: 700;
}
.bookingPaymentChoice label,
.carChoice label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid #dce3ea;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
}
.bookingPaymentChoice label:has(input:checked), .carChoice label:has(input:checked) { border-color: #de7b32; background: #fff8f0; }
.bookingPaymentChoice input, .carChoice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #de7b32; flex-shrink: 0; }
.bookingPaymentChoice small, .carChoice small { display: block; margin-top: 4px; color: #61718a; font-size: .8rem; }
.carChoice label:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.carChoice label span { min-width: 0; overflow-wrap: anywhere; }
.carSelectionHint { margin: 0; color: #61718a; font-size: .8rem; text-align: left; }
.paymentReturnPanel[data-state="success"] .requestSuccessIcon {
    display: grid;
    place-items: center;
    animation: confirmationAppear 400ms ease-out;
}
.requestSuccessIcon svg { width: 44px; height: 44px; }
.requestSuccessIcon path {
    stroke: currentColor;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 42;
    stroke-dashoffset: 0;
    animation: drawConfirmationCheck 500ms ease-out;
}
.paymentReturnPanel .requestEmailHint {
    padding: 12px;
    border-radius: 10px;
    background: #eaf4ee;
    color: #245c40;
    font-weight: 600;
}
@keyframes confirmationAppear {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes drawConfirmationCheck {
    from { stroke-dashoffset: 42; }
    to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .paymentReturnPanel,
    .paymentReturnPanel[data-state="success"] .requestSuccessIcon,
    .requestSuccessIcon path { animation: none; }
}

.paymentReturnBadge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    color: #7b4b11;
    background: #fff0d7;
    font-size: 0.74rem;
    font-weight: 900;
}

.paymentReturnPanel[data-state="success"] .paymentReturnBadge {
    color: #17683d;
    background: #e8f7ef;
}

.paymentReturnPanel[data-state="failed"] .paymentReturnBadge,
.paymentReturnPanel[data-state="error"] .paymentReturnBadge {
    color: #9b2c24;
    background: #fff0ee;
}

.paymentReturnPanel h2 {
    margin: 14px 0 8px;
    color: #0b1422;
    font-size: 1.45rem;
}

.paymentReturnPanel p {
    margin: 0;
    color: #687386;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
}

.paymentRetryButton,
.paymentDoneButton {
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    border: 0;
    border-radius: 11px;
    color: white;
    background: #0b1422;
    font-family: "Nunito", sans-serif;
    font-size: 0.94rem;
    font-weight: 900;
    cursor: pointer;
}

.paymentRetryButton:hover,
.paymentDoneButton:hover {
    background: #142238;
}

.priceResultNote {
    margin: 12px 0 0;
    color: #89929f;
    font-size: 0.78rem;
    font-weight: 750;
    text-align: center;
}

@keyframes showPriceResult {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nutzer mit reduzierten Animationen sehen das Ergebnis ohne Bewegung. */
@media (prefers-reduced-motion: reduce) {
    .priceResult,
    .priceButtonSpinner {
        animation: none;
    }
}

@media (max-width: 420px) {
    .priceResultTop {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .acceptedPayments {
        padding-right: 10px;
        padding-left: 10px;
    }

    .paymentBrand {
        padding-right: 7px;
        padding-left: 7px;
    }
}
