/* Kamera-Miete als Klickweg (Pin 104). Grundgeruest aus configurator.css,
   hier nur, was die Miete zusaetzlich braucht. */

/* .dbj-choice > button setzt display - ein ausgeblendetes Teil (passt nicht
   an die Kamera, anderes Format) muss trotzdem weg sein. */
.rent-form [hidden] { display: none !important; }
/* Sprung zu #miet-anfrage: mit dem Titel unter dem klebenden Seitenkopf bleiben (Durchlauf 30.10.).
   Das Formular braucht mehr Platz, darueber klebt zusaetzlich Titel und Preis. */
.rent-request-done { scroll-margin-top: 10rem; }
.rent-form { scroll-margin-top: 16rem; }

.rent-form .dbj-choice > button:disabled { opacity: 0.4; cursor: not-allowed; }

.rent-form .dbj-cal { max-width: 24rem; padding: var(--dbj-space-4); }
.rent-form .dbj-cal__grid span { padding-block: 0.45rem; }
.rent-form .dbj-slots { max-width: none; }
.rent-form .dbj-slots__title { font-size: var(--dbj-fs-body); font-weight: 500; }

.rent-summary {
    display: grid; grid-template-columns: max-content minmax(0, 1fr);
    column-gap: var(--dbj-space-3); row-gap: var(--dbj-space-1);
    margin: var(--dbj-space-4) 0; max-width: 34rem;
}
.rent-summary dt { font-weight: 500; }
.rent-summary dd { margin: 0; font-variant-numeric: tabular-nums; }

.rent-form .rent-request-fields { max-width: 34rem; }
.rent-form .error { color: #8a1f1f; font-size: var(--dbj-fs-small); margin: var(--dbj-space-1) 0 0; }
.rent-form .rent-selection-error { margin-bottom: var(--dbj-space-3); }
.rent-form .cf-turnstile:not(:empty) { margin-bottom: var(--dbj-space-3); }

/* Mietrabatt (Jannis 30.10.): steht von Anfang an unter dem Preis, eine Zeile */
.rent-discount-note { margin: var(--dbj-space-1) 0 0; font-size: var(--dbj-fs-small); color: var(--dbj-petrol); font-weight: 500; }

/* Listen (Nick 30.10.): auf dem Tisch zwei Spalten, auf dem Handy eine.
   configurator.css begrenzt .dbj-choice auf 34rem - hier die ganze Spalte. */
.rent-form .cfg-step .dbj-choice.rent-grid { max-width: none; }
@media (min-width: 900px) {
    .rent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rent-lenses { display: grid; gap: var(--dbj-space-4); }
.rent-mount__title { font-size: var(--dbj-fs-body); font-weight: 500; margin: 0 0 var(--dbj-space-2); }

.rent-summary { padding: var(--dbj-space-3) 0; border-top: 1px solid var(--dbj-line, #d9d9d9); border-bottom: 1px solid var(--dbj-line, #d9d9d9); }
.rent-summary__discount { color: var(--dbj-petrol); }
.rent-summary__total { font-weight: 500; }

/* ── Review-Board Runde 1 (3.11.2026), XD 25.10. "Kamera mieten" ─────────
   Thema 13: Kamera und Linsen als Tabelle Marke / Modell / Preis/Tag / Depot,
   Zeilen mit Linie statt Kacheln; die gewählte Zeile ohne Fläche, Schrift
   Teal (Pin 102). Spalten fest, damit nichts springt (Pin 27). */
.rent-form .cfg-step .dbj-choice.rent-table {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; max-width: var(--cfg-w, 52.75rem);
}
.rent-table__head,
.rent-form .rent-table > button {
    display: grid; grid-template-columns: 1.1fr 1.6fr 1fr 1fr; gap: var(--dbj-space-3); align-items: baseline;
    text-align: left;
}
.rent-table__head { font-size: var(--dbj-fs-small); font-weight: 700; padding: 0 0.25rem var(--dbj-space-1); border-bottom: 1px solid #707070; }
.rent-form .rent-table > button {
    border: 0; border-bottom: 1px solid var(--dbj-line); border-radius: 0; background: none;
    padding: 0.45rem 0.25rem; font-weight: 500; color: var(--dbj-text);
}
.rent-form .rent-table > button.is-selected,
.rent-form .rent-table > button[aria-pressed="true"] { background: none; color: var(--dbj-teal); border-color: var(--dbj-line); }
.rent-form .rent-table > button:hover { color: var(--dbj-teal); }
.rent-table__price, .rent-table__deposit { font-variant-numeric: tabular-nums; }
.rent-table__note { grid-column: 2 / -1; font-size: var(--dbj-fs-small); font-weight: 400; color: var(--dbj-text-2); }
@media (min-width: 64rem) {
    .rent-table__head { font-size: var(--dbj-fs-emph); }
    .rent-form .rent-table > button { font-size: var(--dbj-fs-sub); line-height: 1.5; }   /* Medium 20, Zeile 30 */
    .rent-mount__title { font-size: var(--dbj-fs-emph); }
}

/* Nick 2.12.2026: Kopf wie auf Druck bestellen. Der erste Schritt hat dort
   keine Linie über dem Titel (.cfg-step:first-of-type); hier steht vor ihm
   #rent-lens-inputs, darum griff die Regel nicht und eine graue 2-px-Linie
   stand direkt unter dem Rabatt. Ohne Preis ist "Zzgl. Depot" weg (rent.js),
   "Preis:" hat dann den Abstand der Druckseite statt der 5 px zum Depot. */
.cfg-layout--xd .rent-form > #rent-step-format { border-top: 0; padding-top: var(--dbj-space-4); }   /* 32 px vom Rabatt zum Titel wie von der Einleitung zu "01 →" auf Druck bestellen */
.cfg-layout--xd .cfg-main .svc-title ~ p.dbj-price-line:has(+ .dbj-price-sub.dbj-hidden) { margin-bottom: var(--dbj-space-2); }
@media (min-width: 64rem) {
    .cfg-layout--xd .cfg-main .svc-title ~ p.dbj-price-line:has(+ .dbj-price-sub.dbj-hidden) { margin-bottom: var(--dbj-space-3); }
}
@media (min-width: 75rem) {
    .cfg-layout--xd .cfg-main .svc-title ~ p.dbj-price-line:has(+ .dbj-price-sub.dbj-hidden) { margin-bottom: 1.25rem; }
}
