/* Nutzt bewusst die im Theme dp-core definierten Variablen (--primary-color etc.) und
   Font-Familien, damit das Plugin sich nahtlos ins bestehende Design einfügt. */

.dp-carrental-wizard,
.dp-carrental-search-widget {
    font-family: "SofiaProRegular", sans-serif;
    color: var(--body-text-color, #3F3F3F);
}

/* --- Content wrapper --- */

/* Breite/Seitenabstand kommt vom Theme-Container (WPBakery-Zeile), nicht vom Plugin
   (Nutzer-Vorgabe 2026-09-27). */
.dp-cr-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 50px 0;
}
.dp-cr-success {
    text-align: center;
    padding: 60px 20px;
}

/* --- Step indicator --- */

.dp-cr-steps {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 40px 0 50px;
    counter-reset: none;
}
.dp-cr-steps li {
    flex: 1;
    text-align: center;
    position: relative;
    /* Theme: `.wpb_text_column ol li + li { margin-top: 7px }` (Assistent steckt in einem
       WPBakery-Textblock) schob Kreis 2–4 um 7 px nach unten. */
    margin: 0 !important;
}
.dp-cr-steps li:not(:last-child):after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #ddd;
    z-index: 0;
}
.dp-cr-steps li.is-done:not(:last-child):after {
    background: var(--primary-color, #3C96EB);
}
.dp-cr-step-circle {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    font-family: "SofiaProBold", sans-serif;
    color: #999;
}
.dp-cr-steps li.is-current .dp-cr-step-circle {
    background: var(--primary-color, #3C96EB);
    border-color: var(--primary-color, #3C96EB);
    color: #fff;
}
.dp-cr-steps li.is-done .dp-cr-step-circle {
    border-color: var(--primary-color, #3C96EB);
    color: var(--primary-color, #3C96EB);
}
.dp-cr-step-circle .dp-cr-icon { width: 22px; height: 22px; stroke-width: 2; }
.dp-cr-step-label {
    display: block;
    margin-top: 8px;
    font-size: 0.85em;
    text-transform: uppercase;
}

/* --- Boxes / form layout --- */

.dp-cr-box {
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-bottom: 30px;
}
/* Der sichtbare Rahmen sitzt jetzt auf dem inneren Wrapper-<div> (siehe Markup in step-1.php),
   nicht mehr auf .dp-cr-box selbst — Nutzer-Korrektur 2026-09-21, exakte Vorgabe. */
.dp-cr-box > div {
    border: 1px solid #ddd;
}
/* Badge ("ABHOLUNG"/"RÜCKGABE"): eine über die GESAMTE Kartenbreite laufende blaue Trennlinie,
   auf der eine kleinere Pille mit eckigen Ecken sitzt. Das <h4> ist die volle Trennlinie, das
   <span> darin ist die Pille (siehe Markup in step-1.php/step-3.php). */
.dp-cr-box-title {
    margin: 0;
    border-bottom: 3px solid var(--primary-color, #3C96EB);
    line-height: 0;
}
.dp-cr-box-title span {
    position: relative;
    top: 3px;
    display: inline-block;
    color: #fff;
    background: var(--primary-color, #3C96EB);
    padding: 10px 20px;
    border-radius: 0;
    font-family: "SofiaProBold", sans-serif;
    font-size: 0.7em;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: normal;
}
.dp-cr-box label,
.dp-cr-step-1 label,
.dp-carrental-search-widget label {
    display: block;
    font-family: "SofiaProBold", sans-serif;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1;
    margin-bottom: 0;
    margin-top: 0;
}
.dp-cr-box label + select,
.dp-cr-step-1 label + select,
.dp-carrental-search-widget label + select {
    padding-bottom: 0;
}
/* Eigener Pfeil in Markenblau statt des Browser-Standard-Dropdown-Pfeils (der bisher grau/
   uneinheitlich je nach Browser aussah). */
.dp-cr-box select,
.dp-cr-step-1 select,
.dp-carrental-search-widget select {
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 0 28px 10px 0;
    background-color: transparent;
    font-family: "SofiaProBold", sans-serif;
    font-size: 1.15em;
    color: #222;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%233C96EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    cursor: pointer;
}
.dp-cr-box select:disabled,
.dp-carrental-search-widget select:disabled { color: #999; cursor: default; }
/* Linien-System der Formular-Boxen (Step 1 + Step 3, Nutzer-Vorgabe 2026-09-27): die Box hat
   KEIN eigenes Padding. Jede Zeile ist entweder ein Einzelfeld (.dp-cr-box-field) oder eine
   2er/3er-Spaltenzeile (.dp-cr-field-pair/-triple); jede Zelle hat 20px Padding, Zeilen werden
   durch eine horizontale, Spalten durch eine vertikale #ddd-Linie getrennt. Die letzte Zeile
   bzw. Spalte braucht keine eigene Linie — dort liegt schon der Rahmen der Box. */
.dp-cr-box-field {
    padding: 20px;
}
.dp-cr-box > div > .dp-cr-box-field,
.dp-cr-box > div > .dp-cr-field-pair,
.dp-cr-box > div > .dp-cr-field-triple {
    border-bottom: 1px solid #ddd;
}
.dp-cr-box > div > :last-child { border-bottom: 0; }
.dp-cr-field-pair,
.dp-cr-field-triple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.dp-cr-field-triple { grid-template-columns: 1fr 1fr 1fr; }
.dp-cr-field-pair > div,
.dp-cr-field-triple > div {
    padding: 20px;
}
.dp-cr-field-pair > div:not(:last-child),
.dp-cr-field-triple > div:not(:last-child) {
    border-right: 1px solid #ddd;
}
/* Felder selbst komplett "unsichtbar" (kein Rahmen, kein Hintergrund, kein Radius, kein
   Innenabstand) — alle sichtbaren Linien kommen ausschließlich vom Linien-System oben. Überschreibt
   die globalen Theme-Regeln aus form.css (border: 1px solid #ddd etc.). Präfix
   .dp-carrental-wizard ist nötig: form.css wird per @import NACH diesem Stylesheet geladen und
   `input[type="text"]` hat dieselbe Spezifität wie `.dp-cr-box input` — ohne Präfix gewann das
   Theme bei allen Text-/E-Mail-/Tel-Inputs (Selects/Textareas nicht, dort ist die Theme-Regel
   schwächer). */
.dp-carrental-wizard .dp-cr-box input,
.dp-carrental-wizard .dp-cr-box textarea,
.dp-carrental-wizard .dp-cr-box select,
.dp-carrental-wizard .dp-cr-step-1 input,
.dp-carrental-wizard .dp-cr-step-1 select,
.dp-carrental-search-widget .dp-cr-searchbar input,
.dp-carrental-search-widget .dp-cr-searchbar select {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent !important;
}
.dp-cr-box input,
.dp-cr-box textarea {
    display: block;
    width: 100%;
    padding: 6px 0 0;
    min-height: 34px;
}
.dp-cr-box textarea { resize: vertical; min-height: 80px; }

/* Kalender-Icon im Datumsfeld, gleiche Optik wie der Select-Pfeil (Markenblau, eigenes SVG statt
   Browser-Icon) — Flatpickr kopiert die Klassen des Original-<input> auf sein sichtbares
   Alt-Input, daher greift die Klasse `.dp-cr-datepicker` weiterhin. `!important` nötig, da das
   von Flatpickr zusätzlich vergebene `.form-control`/`.input` (Teil von `altInputClass`) sonst
   mit gleicher Spezifität konkurriert. */
.dp-cr-datepicker {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233C96EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right center !important;
    background-size: 16px 16px !important;
    padding-right: 24px;
    cursor: pointer;
}

/* Nur mobil sichtbar (siehe Media Queries unten). */
.dp-cr-steps-current {
    display: none;
    margin: 0 0 24px;
    text-align: center;
    font-family: "SofiaProBold", sans-serif;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--primary-color, #3C96EB);
}
.dp-cr-searchbar-summary {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #ddd;
    background: #fff;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.dp-cr-searchbar-summary-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 0.85em; line-height: 1.3; }
.dp-cr-searchbar-summary-text strong { font-family: "SofiaProBold", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-cr-searchbar-summary-edit {
    flex-shrink: 0;
    font-family: "SofiaProBold", sans-serif;
    font-size: 0.75em;
    text-transform: uppercase;
    color: var(--primary-color, #3C96EB);
}

/* Uhrzeit-Felder bekamen die Monospace-Standardschrift des Browsers (Theme-Regel gilt nur für
   text/email/tel/date) — gleiche Schrift wie die übrigen Felder, auch auf Desktop. */
.dp-carrental-wizard input[type="time"],
.dp-carrental-search-widget input[type="time"] {
    font-family: "SofiaProRegular", sans-serif;
    /* Browser-Standard für Zeitfelder: 13,3 px Schrift + 40 px Höhe → stand tiefer und kleiner
       als das Datum daneben. Gleiche Maße wie die Datumsfelder. */
    font-size: 1em;
    line-height: 24px;
    height: 34px;
    min-height: 34px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

/* Mehrzeilige Zubehör-Namen: Theme-Zeilenhöhe (1.7em) war zu locker. */
.dp-cr-extra-info strong { display: block; line-height: 1.3; }

/* --- Suchleiste (Startseite + über Step 2–4) ---
   Layout wie die bisherige Startseiten-Suchleiste: Abholung | Rückgabe | Button, jede Gruppe im
   Linien-System von Step 1 (Station oben, Datum | Zeit darunter). */

.dp-carrental-search-widget { margin-bottom: 40px; }
.dp-cr-searchbar {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.dp-cr-searchbar-group { border-right: 1px solid #ddd; min-width: 0; }
.dp-cr-searchbar-group > .dp-cr-box-field { border-bottom: 1px solid #ddd; }
.dp-carrental-search-widget .dp-cr-searchbar input {
    display: block;
    width: 100%;
    padding: 6px 0 0;
    min-height: 34px;
}
.dp-cr-searchbar-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.dp-cr-searchbar-submit .button { margin: 0; white-space: nowrap; }

.dp-cr-step1-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.dp-cr-step1-map {
    min-height: 420px;
    border-radius: 10px;
    overflow: hidden;
    background: #eee;
}
.dp-cr-step1-map iframe { display: block; height: 100%; min-height: 420px; }

/* --- Step 2/3/4 layout --- */

.dp-cr-step-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar ist auf JEDEM Schritt mit Sidebar "sticky" (Nutzer-Vorgabe 2026-09-27, vorher nur
   Step 2) — per JS, nicht per `position: sticky`: ein Theme-Wrapper-<div> weiter oben im DOM hat
   `overflow: hidden`, was sticky für jeden Nachfahren bricht (siehe bindStickySidebar() in
   dp-carrental-public.js). Sobald die Sidebar `fixed`/`absolute` wird, fällt sie aus dem
   Grid-Fluss — ohne explizite Spalten würde der Nachbar in die frei gewordene Spalte nachrücken
   und mit der Sidebar überlappen. Step 4 hat keine Sidebar (eigenes 3-Spalten-Layout). */
.dp-cr-step-grid { position: relative; }
.dp-cr-step-grid > .dp-cr-sidebar { grid-column: 1; }
.dp-cr-step-grid > .dp-cr-main { grid-column: 2; }

.dp-cr-summary-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.dp-cr-summary-card h3 {
    font-size: 1em;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dp-cr-edit-link {
    background: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.75em;
    padding: 4px 10px;
    cursor: pointer;
    text-transform: none;
    font-family: "SofiaProRegular", sans-serif;
}
.dp-cr-summary-block { margin-bottom: 15px; }
.dp-cr-summary-label {
    display: block;
    font-size: 0.7em;
    line-height: 1;
    text-transform: uppercase;
    color: #999;
}
.dp-cr-summary-block p { margin: 2px 0 0; line-height: 1.4; }

.dp-cr-summary-prices { margin-top: 16px; border-top: 1px solid #eee; padding-top: 10px; }
.dp-cr-price-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.9em; line-height: 1.4; }
.dp-cr-price-discount { color: var(--primary-color, #3C96EB); }
.dp-cr-price-subtotal { border-top: 1px solid #eee; margin-top: 8px; padding-top: 10px; }
.dp-cr-price-total {
    border-top: 1px solid #eee;
    margin-top: 8px;
    padding-top: 10px;
    font-family: "SofiaProBold", sans-serif;
    font-size: 1.1em;
}

/* --- Vehicle list (Step 2) --- */

.dp-cr-vehicle-row {
    display: grid;
    grid-template-columns: 24px 100px 1fr auto;
    align-items: center;
    gap: 16px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 12px;
    cursor: pointer;
}
.dp-cr-vehicle-row:has(input:checked) { border-color: var(--primary-color, #3C96EB); }
.dp-cr-vehicle-thumb { display: block; width: 100px; }
.dp-cr-vehicle-thumb img { display: block; width: 100px; height: auto; border-radius: 8px; }
.dp-cr-vehicle-name small { display: block; color: #999; font-size: 0.8em; }

/* Nicht verfügbarer Van: ausgegraut, nicht wählbar, mit "Alternative Termine anzeigen". Bild/
   Name gedimmt, die Aktion rechts bleibt voll sichtbar. Der Kalender klappt unter der Zeile auf
   (volle Zeilenbreite). */
.dp-cr-vehicle-row.is-unavailable { cursor: default; background: #fafafa; }
.dp-cr-vehicle-row.is-unavailable .dp-cr-vehicle-thumb,
.dp-cr-vehicle-row.is-unavailable .dp-cr-vehicle-name { opacity: 0.5; }
.dp-cr-vehicle-row.is-unavailable .dp-cr-vehicle-thumb img { filter: grayscale(1); }
.dp-cr-unavailable-badge {
    display: block;
    font-family: "SofiaProRegular", sans-serif;
    font-size: 0.75em;
    color: #999;
}
.dp-cr-alternatives-toggle {
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: none;
    font-family: "SofiaProBold", sans-serif;
    font-size: 0.8em;
    color: var(--primary-color, #3C96EB);
    text-decoration: underline;
    cursor: pointer;
}
.dp-cr-alternatives { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid #eee; }
.dp-cr-alternatives[hidden] { display: none; }
.dp-cr-alternatives-text { margin: 0 0 12px; font-size: 0.85em; line-height: 1.4; color: #777; }
.dp-cr-alternatives .flatpickr-calendar.inline { box-shadow: none; border: 1px solid #eee; }
.dp-cr-vehicle-price { text-align: right; font-family: "SofiaProBold", sans-serif; }
.dp-cr-vehicle-price small { display: block; color: #999; font-weight: normal; font-size: 0.8em; }
.dp-cr-empty { padding: 30px; text-align: center; color: #999; }

.dp-cr-section-title { margin-top: 30px; }

/* Zeile ist wie .dp-cr-vehicle-row aufgebaut (Checkbox links, ganze Zeile klickbar, blauer
   Rahmen bei Auswahl) statt einer separaten kleinen Checkbox + freiem Zahlenfeld, die vorher
   niemand verstanden hat (Nutzer-Entscheidung 2026-09-21). */
.dp-cr-extras-list { display: flex; flex-direction: column; gap: 10px; }
.dp-cr-extra-row {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 16px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px 18px;
    cursor: pointer;
}
.dp-cr-extra-row:has(input:checked) { border-color: var(--primary-color, #3C96EB); }
.dp-cr-extra-info p { margin: 4px 0 0; font-size: 0.8em; line-height: 1.4; color: #777; }

/* Preis steht jetzt rechts über der Mengen-Auswahl statt unter dem Namen — dadurch bekommt die
   rechte Spalte zwei Zeilen und die Box gewinnt etwas an Höhe (Nutzer-Entscheidung 2026-09-21). */
.dp-cr-extra-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.dp-cr-extra-price { color: var(--primary-color, #3C96EB); font-size: 0.9em; white-space: nowrap; }
.dp-cr-extra-qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.dp-cr-qty-btn {
    width: 32px;
    height: 32px;
    border: 0;
    background: #f7f7f7;
    font-size: 1.1em;
    line-height: 1;
    color: #444;
    cursor: pointer;
}
.dp-cr-qty-btn:hover:not(:disabled) { background: #eee; }
.dp-cr-qty-btn:disabled { color: #ccc; cursor: not-allowed; }
.dp-cr-extra-qty {
    width: 40px !important;
    border: 0 !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    text-align: center;
    -moz-appearance: textfield;
}
.dp-cr-extra-qty::-webkit-outer-spin-button,
.dp-cr-extra-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- Payment tiles (Step 3) --- */

.dp-cr-payment-tiles { display: grid; gap: 16px; }
/* Anzahl schwankt je Browser (Apple/Google Pay) → Desktop/Tablet immer eine Zeile, gleich breit;
   Handy 2 Spalten (Breakpoint ≤600 weiter unten). */
@media (min-width: 601px) {
    .dp-cr-payment-tiles { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
.dp-cr-payment-tile {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    display: block;
}
.dp-cr-payment-tile:has(input:checked) { border-color: var(--primary-color, #3C96EB); background: rgba(60,150,235,0.05); }
/* Kein sichtbarer Radio (Nutzer-Vorgabe 2026-09-27): Auswahl = blauer Rahmen. Radio bleibt im
   DOM für Tastatur/Screenreader und die required-Prüfung, Fokus-Ring an der Kachel. */
.dp-cr-payment-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dp-cr-payment-tile.is-wallet-pending { display: none; }
.dp-cr-payment-tile input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.dp-cr-payment-tile:has(input:focus-visible) { outline: 2px solid var(--primary-color, #3C96EB); outline-offset: 2px; }
/* Logo zuerst (falls in den Einstellungen hinterlegt), darunter Name + Zusatz. */
.dp-cr-payment-logo { display: block; max-width: 90px; max-height: 30px; width: auto; height: auto; margin: 0 auto 8px; }
.dp-cr-payment-label { display: block; font-family: "SofiaProBold", sans-serif; }
.dp-cr-payment-tile small { color: #999; }

.dp-cr-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9em; line-height: 1.3; margin: 16px 0; }

/* --- Step 4: 3 Spalten nach früherem CRBS-Layout (Nutzer-Vorgabe 2026-09-27) ---
   Fahrer + Zahlung | Karte + Buchungsdetails | Fahrzeugbild + Info + Gutschein + Preise. */

.dp-cr-step4-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: start;
}
.dp-cr-recap-section { margin-bottom: 20px; }
.dp-cr-recap-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 1.1em;
}
.dp-cr-recap-row {
    padding: 14px 0;
    border-bottom: 1px solid #ddd;
}
.dp-cr-recap-row:last-child { border-bottom: 0; padding-bottom: 0; }
.dp-cr-location-address { display: block; margin-top: 4px; font-size: 0.85em; opacity: 0.6; }
.dp-cr-recap-row p { margin: 4px 0 0; line-height: 1.4; }
.dp-cr-recap-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dp-cr-step4-map {
    height: 240px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    background: #eee;
}
.dp-cr-step4-vehicle-image { margin-bottom: 20px; }
.dp-cr-step4-vehicle-image img { display: block; width: 100%; height: auto; }
.dp-cr-step4-col .dp-cr-summary-prices { margin-top: 0; border-top: 0; padding-top: 0; }
.dp-cr-step4-map { margin-bottom: 20px; }
.dp-cr-step4-col .dp-cr-summary-card:last-child { margin-bottom: 0; }

/* Hinweis oben in Schritt 4 (z.B. Zahlung abgebrochen). */
.dp-cr-notice {
    margin: 0 0 20px;
    padding: 14px 18px;
    border-left: 3px solid var(--secondary-color, #FDC400);
    background: #fffbea;
    font-size: 0.9em;
    line-height: 1.4;
}

/* --- Coupon (Step 4) --- */

.dp-cr-coupon-form { margin: 0; }
.dp-cr-coupon-form label {
    display: block;
    font-size: 0.7em;
    line-height: 1;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 6px;
}
.dp-cr-coupon-row { display: flex; align-items: center; gap: 10px; }
/* Feld im Linien-Stil der Formular-Boxen: kein Rahmen, nur eine Unterlinie. Präfix nötig gegen
   die gleich spezifische Theme-Regel input[type="text"] aus form.css (siehe Box-Felder oben). */
.dp-carrental-wizard .dp-cr-coupon-row input[type="text"] {
    flex: 1;
    min-width: 0;
    border: 0;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    background: transparent;
    padding: 6px 0;
    text-transform: uppercase;
}
.dp-carrental-wizard .dp-cr-coupon-row input[type="text"]:focus { border-bottom-color: var(--primary-color, #3C96EB) !important; }
.dp-cr-coupon-card .button.dp-cr-coupon-submit {
    flex-shrink: 0;
    margin: 0;
    padding: 9px 14px;
    font-size: 0.7em;
}
.dp-cr-coupon-error { margin: 8px 0 0; font-size: 0.8em; line-height: 1.3; color: #d33; }
.dp-cr-coupon-applied { display: flex; align-items: center; gap: 10px; }
.dp-cr-coupon-code {
    font-family: "SofiaProBold", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--primary-color, #3C96EB);
}
.dp-cr-coupon-amount { margin-left: auto; font-size: 0.9em; color: var(--primary-color, #3C96EB); }
.dp-cr-coupon-remove {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #999;
    cursor: pointer;
}
.dp-cr-coupon-remove:hover { color: #d33; border-color: #d33; }
.dp-cr-coupon-remove .dp-cr-icon { width: 16px; height: 16px; stroke-width: 2; }
.dp-cr-hidden-form { display: none; }

/* --- Buttons / nav --- */

/* align-items: center statt Flex-Standard "stretch": das Theme gibt .button ein margin-bottom
   (20px), das über stretch den anderen Button entsprechend höher zog (55 vs. 75px). Theme-Margins
   (auch margin-right) hier komplett raus; der primäre Button bekommt einen gleichfarbigen 2px-
   Rahmen, damit er exakt so hoch ist wie der Rahmen-Button daneben. */
.dp-cr-step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.dp-cr-step-nav .button { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.dp-cr-step-nav .dp-cr-icon { width: 1.3em; height: 1.3em; flex-shrink: 0; }
.dp-cr-icon-back { transform: scaleX(-1); }
.dp-cr-step-nav .button.primary:not(.border) { border: 2px solid var(--primary-color, #3C96EB); }
.button.border.primary.dp-cr-back { background: transparent; }

.dp-carrental-wizard.is-loading #dp-cr-step-container {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 150ms ease-in-out;
}

@media (max-width: 900px) {
    .dp-cr-step1-grid,
    .dp-cr-step-grid,
    .dp-cr-step4-cols,
    .dp-cr-searchbar,
    .dp-cr-field-pair,
    .dp-cr-field-triple { grid-template-columns: 1fr; }

    /* .dp-cr-step-grid hat hier nur noch 1 Spalte — die feste grid-column:2-Zuweisung von
       .dp-cr-main (siehe oben) würde sonst eine unsichtbare zweite (implizite) Spalte erzeugen
       statt darunter zu stapeln. */
    .dp-cr-step-grid > .dp-cr-sidebar,
    .dp-cr-step-grid > .dp-cr-main { grid-column: 1; }

    .dp-cr-searchbar-group { border-right: 0; border-bottom: 1px solid #ddd; }
    .dp-cr-searchbar-submit .button { width: 100%; }

    /* Gestapelte Spalten: vertikale Trennlinie wird zur horizontalen. */
    .dp-cr-field-pair > div:not(:last-child),
    .dp-cr-field-triple > div:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid #ddd;
    }

    /* --- Mobile-Durchgang 2026-09-27 (in 390 px geprüft) --- */

    /* Datum | Zeit bleiben nebeneinander (passt locker, spart die halbe Höhe). */
    .dp-cr-step-1 .dp-cr-field-pair,
    .dp-cr-searchbar .dp-cr-field-pair { grid-template-columns: 1fr 1fr; }
    .dp-cr-step-1 .dp-cr-field-pair > div:not(:last-child),
    .dp-cr-searchbar .dp-cr-field-pair > div:not(:last-child) {
        border-bottom: 0;
        border-right: 1px solid #ddd;
    }

    /* Suchleiste im Assistenten: eingeklappt als Zusammenfassung, "Ändern" klappt auf. */
    .dp-carrental-search-widget.is-collapsible .dp-cr-searchbar-summary { display: flex; }
    .dp-carrental-search-widget.is-collapsible:not(.is-open) .dp-cr-searchbar { display: none; }
    .dp-carrental-search-widget.is-collapsible.is-open .dp-cr-searchbar-summary { border-bottom-width: 0; }
    .dp-carrental-search-widget { margin-bottom: 24px; }

    /* Sidebar in Schritt 2/3: Stationen/Daten stehen schon in der Suchleiste → nur Preise. */
    .dp-cr-step-2 .dp-cr-sidebar .dp-cr-summary-block,
    .dp-cr-step-3 .dp-cr-sidebar .dp-cr-summary-block { display: none; }
    .dp-cr-step-2 .dp-cr-sidebar .dp-cr-summary-prices,
    .dp-cr-step-3 .dp-cr-sidebar .dp-cr-summary-prices { margin-top: 0; border-top: 0; padding-top: 0; }
    .dp-cr-step-grid { gap: 24px; }

    /* Van-Zeilen: Radio | Bild | Name, Preis unter dem Namen. */
    .dp-cr-vehicle-row { grid-template-columns: 20px 80px 1fr; gap: 12px; padding: 12px 14px; }
    .dp-cr-vehicle-thumb,
    .dp-cr-vehicle-thumb img { width: 80px; }
    .dp-cr-vehicle-price {
        grid-column: 3;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px 8px;
        text-align: left;
        margin-top: -6px;
    }
    .dp-cr-vehicle-price small { display: inline; }
    .dp-cr-vehicle-row.is-unavailable .dp-cr-vehicle-price { display: block; }
    .dp-cr-vehicle-name { line-height: 1.3; }

    /* Zubehör etwas kompakter. */
    .dp-cr-extra-row { gap: 12px; padding: 12px 14px; }

    /* Weiter/Zurück untereinander, volle Breite, "Weiter" oben. */
    .dp-cr-step-nav { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
    .dp-cr-step-nav .button { width: 100%; justify-content: center; }
    .dp-cr-step-1 .dp-cr-step1-form > .button { width: 100%; }

    /* Karte in Schritt 1 niedriger. */
    .dp-cr-step1-map,
    .dp-cr-step1-map iframe { min-height: 260px; height: 260px; }

    /* Zahlungsarten als 2×2. */
    .dp-cr-payment-tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
    /* Ungerade Anzahl: letzte Kachel volle Breite (nicht unterstützte Wallet-Kacheln entfernt das JS aus dem DOM). */
    .dp-cr-payment-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .dp-cr-payment-tile { padding: 14px 10px; }
}

/* --- Tablet (Nutzer-Frage 2026-09-28) ---
   Querformat (~1024 px): Step 4 hatte ungleiche Spalten (294/206/324 px), weil Karte und lange
   Wörter eine Mindestbreite erzwangen → minmax(0, 1fr). Hochformat (601–900 px): das Handy-Layout
   verschenkte Platz → Van-Preis wieder rechts, Buttons nebeneinander,
   Step 4 zweispaltig. */
@media (min-width: 901px) and (max-width: 1100px) {
    .dp-cr-step4-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

@media (min-width: 601px) and (max-width: 900px) {
    .dp-cr-vehicle-row { grid-template-columns: 24px 100px 1fr auto; gap: 16px; padding: 14px 18px; }
    .dp-cr-vehicle-thumb,
    .dp-cr-vehicle-thumb img { width: 100px; }
    .dp-cr-vehicle-price { grid-column: auto; display: block; text-align: right; margin-top: 0; }
    .dp-cr-vehicle-price small { display: block; }

    .dp-cr-step-nav { flex-direction: row; justify-content: space-between; align-items: center; }
    .dp-cr-step-nav .button { width: auto; }

    .dp-cr-step4-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dp-cr-step4-col:nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    /* Schrittanzeige: kleinere Kreise, Beschriftungen aus (brachen unleserlich um) —
       stattdessen eine Zeile "Schritt X von 4: …" darunter. */
    .dp-cr-steps { margin: 20px 0 8px; }
    .dp-cr-step-label { display: none; }
    .dp-cr-step-circle { display: flex; width: 34px; height: 34px; margin: 0 auto; font-size: 0.9em; }
    .dp-cr-step-circle .dp-cr-icon { width: 18px; height: 18px; }
    .dp-cr-steps li:not(:last-child):after { top: 16px; }
    .dp-cr-steps-current { display: block; }

    /* Zubehör + Fahrzeuge kompakter (Nutzer-Vorgabe 2026-09-28): Checkbox/Radio ausgeblendet —
       Auswahl zeigt der blaue Rahmen + leichter Hintergrund, die ganze Zeile bleibt antippbar.
       Die Eingaben bleiben im DOM (Tastatur/Screenreader), nur visuell versteckt. */
    .dp-cr-extra-row > .dp-cr-extra-checkbox,
    .dp-cr-vehicle-row > input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 1px;
        height: 1px;
        pointer-events: none;
    }
    .dp-cr-extra-row,
    .dp-cr-vehicle-row { position: relative; }
    .dp-cr-extra-row:has(input:checked),
    .dp-cr-vehicle-row:has(input:checked) { background: rgba(60, 150, 235, 0.05); }
    .dp-cr-extra-row:has(input:focus-visible),
    .dp-cr-vehicle-row:has(input:focus-visible) { outline: 2px solid var(--primary-color, #3C96EB); outline-offset: 2px; }

    /* Zubehör: Name + Beschreibung oben, darunter Preis links | Menge rechts. */
    .dp-cr-extra-row { grid-template-columns: 1fr; gap: 10px; }
    .dp-cr-extra-right {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Formularzellen (Linien-System Step 1/3 + Suchleiste): 20 px war am Handy zu viel. */
    .dp-cr-box-field,
    .dp-cr-field-pair > div,
    .dp-cr-field-triple > div { padding: 12px 14px; }
    .dp-cr-searchbar-submit { padding: 12px 14px; }

    /* Eingabehöhen kompakter (Nutzer-Vorgabe): 34 → 28 px, weniger Abstand über dem Wert. */
    .dp-carrental-wizard .dp-cr-box input,
    .dp-carrental-wizard .dp-cr-step-1 input,
    .dp-carrental-search-widget .dp-cr-searchbar input,
    .dp-carrental-wizard input[type="time"],
    .dp-carrental-search-widget input[type="time"] {
        height: 28px;
        min-height: 28px;
        padding-top: 2px;
        line-height: 24px;
    }
    .dp-cr-box select,
    .dp-cr-step-1 select,
    .dp-carrental-search-widget select { padding-bottom: 2px; }
    .dp-carrental-wizard .dp-cr-box textarea { min-height: 60px; padding-top: 4px; }

    /* Fahrzeuge: Bild | Name, Sitze, Preis. */
    .dp-cr-vehicle-row { grid-template-columns: 88px 1fr; gap: 12px; }
    .dp-cr-vehicle-radio-placeholder { display: none; }
    .dp-cr-vehicle-thumb,
    .dp-cr-vehicle-thumb img { width: 88px; }
    .dp-cr-vehicle-thumb { grid-row: span 2; align-self: center; }
    .dp-cr-vehicle-price { grid-column: 2; }
}

/* --- Flatpickr (Step 1 Datepicker): Markenfarbe statt Flatpickr-Standardblau, Marken-Schrift --- */
.flatpickr-calendar { font-family: "SofiaProRegular", sans-serif; }
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus {
    background: var(--primary-color, #3C96EB);
    border-color: var(--primary-color, #3C96EB);
}
.flatpickr-day.today { border-color: var(--primary-color, #3C96EB); }
.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
    background: var(--primary-color, #3C96EB);
    border-color: var(--primary-color, #3C96EB);
}
.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.numInputWrapper:hover { background: rgba(60, 150, 235, 0.08); }
