/* E-Bike-Verleih – Stil angelehnt an Kassenbuch / Stundenplan */
:root {
  --papier: #f4ead8;
  --blatt: #fffdf7;
  --tinte: #000000;
  --holz: #2c1810;
  --holz-hell: #4a2c1a;
  --gold: #a07a3c;
  --linie: #c9b48a;
  --zeile: #f0e6d0;
  --ok: #1e4d32;
  --ok-bg: #dcefe3;
  --fehler: #7a1c1c;
  --fehler-bg: #f8e4e0;
  --gefahr: #8b1e1e;
  --info-bg: #e3ecf7;
  --info: #1d3f6b;
  /* Belegungsfarben */
  --frei: #dcefe3;
  --reserviert: #e4b04a;
  --unterwegs: #2f6f9f;
  --ueberfaellig: #b3261e;
  --zurueck: #b9ad97;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "Calibri", "Liberation Sans", Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--tinte);
  background: var(--papier);
  min-height: 100vh;
}
a { color: var(--holz-hell); }

/* ---------- Kopf ---------- */
.kopf { background: var(--holz); color: #f7edd8; border-bottom: 6px solid var(--gold); }
.kopf-innen { max-width: 1200px; margin: 0 auto; padding: 1rem 1.25rem 0.4rem; }
.gast-kopf { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; }
.marke-name {
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.55rem; font-weight: 700; letter-spacing: 0.02em;
}
.marke-sub { font-size: 0.95rem; opacity: 0.85; margin-bottom: 0.7rem; }
.gast-kopf .marke-sub { margin-bottom: 0; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0; }
.nav a {
  color: #f7edd8; text-decoration: none; padding: 0.65rem 0.9rem; font-weight: 600;
  border-bottom: 4px solid transparent; display: inline-block;
}
.nav a:hover { background: var(--holz-hell); }
.nav a.aktiv { border-bottom-color: var(--gold); background: var(--holz-hell); }
.sprache {
  color: #f7edd8; border: 2px solid var(--gold); padding: 0.5rem 0.9rem; text-decoration: none;
  font-weight: 700; min-height: 2.8rem; display: inline-flex; align-items: center;
}

/* ---------- Inhalt ---------- */
.inhalt { max-width: 1200px; margin: 0 auto; padding: 1.25rem 1.25rem 3rem; }
.inhalt.schmal { max-width: 860px; }
h1 { font-family: Palatino, "Palatino Linotype", Georgia, serif; font-size: 1.85rem; margin: 0.2rem 0 1rem; }
h2 { font-size: 1.25rem; margin: 1.4rem 0 0.6rem; }
h2.erste { margin-top: 0; }
h3 { font-size: 1.05rem; margin: 1rem 0 0.4rem; }
.titelzeile { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.titelzeile h1 { margin: 0; }
.hilfe { font-size: 0.95rem; margin: 0.3rem 0 0.6rem; color: #3b2a1c; }
.leer { color: #5a4632; font-style: italic; }
.nowrap { white-space: nowrap; }
.umbruch { white-space: pre-line; }

.hinweis { padding: 0.85rem 1rem; border: 2px solid var(--tinte); margin-bottom: 1rem; font-weight: 600; background: #fff; }
.hinweis.ok { background: var(--ok-bg); border-color: var(--ok); }
.hinweis.fehler { background: var(--fehler-bg); border-color: var(--fehler); color: var(--fehler); }
.hinweis.info { background: var(--info-bg); border-color: var(--info); font-weight: 400; }

/* ---------- Formulare ---------- */
.formular { background: var(--blatt); border: 2px solid var(--holz); padding: 1.2rem 1.4rem 1.4rem; max-width: 820px; }
.formular.breit { max-width: none; }
.form-reihe { margin-bottom: 0.95rem; }
.form-reihe.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-reihe.drei { display: grid; grid-template-columns: 1fr 2fr 1.4fr; gap: 1rem; }
label, .label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
input[type="text"], input[type="search"], input[type="date"], input[type="time"], input[type="tel"],
input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; font: inherit; color: var(--tinte); background: #fff;
  border: 2px solid var(--holz); padding: 0.65rem 0.7rem; min-height: 3rem; border-radius: 0;
}
textarea { min-height: 5rem; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }

.btn {
  font: inherit; font-weight: 700; padding: 0.7rem 1.2rem; min-height: 3rem;
  border: 2px solid var(--holz); background: #efe2c8; color: var(--tinte);
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn:hover { filter: brightness(0.97); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-haupt { background: var(--ok); color: #fff; border-color: #122c1d; }
.btn-haupt.gross { font-size: 1.35rem; min-height: 3.6rem; min-width: 14rem; }
.btn-leise { background: transparent; }
.btn-gefahr { background: var(--gefahr); color: #fff; border-color: #4a0e0e; }
.btn-klein { min-height: 2.4rem; padding: 0.3rem 0.7rem; font-size: 0.95rem; }
.aktionen { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.1rem; }
.aktionen.oben { margin-top: 0; }

.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 600; margin: 0.4rem 0; cursor: pointer; }
.check input { width: 1.4rem; height: 1.4rem; flex: none; margin-top: 0.1rem; accent-color: var(--ok); }
.check.gross { font-weight: 400; background: #fff; border: 2px solid var(--linie); padding: 0.8rem; margin: 0.6rem 0; }
.check.gross input { width: 1.8rem; height: 1.8rem; }

.schnellwahl { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: -0.2rem 0 0.4rem; }
.schnellwahl span { font-size: 0.95rem; font-weight: 600; }

.knopf-wahl { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.knopf-wahl label { margin: 0; cursor: pointer; }
.knopf-wahl input { position: absolute; opacity: 0; pointer-events: none; }
.knopf-wahl span {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0.5rem 1rem;
  border: 2px solid var(--holz); background: #fff; font-weight: 600;
}
.knopf-wahl input:checked + span { background: var(--holz); color: #f7edd8; }
.knopf-wahl input:focus-visible + span { outline: 3px solid var(--gold); }

/* ---------- Größen-Badge ---------- */
.groesse {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 3rem; height: 3rem; padding: 0 0.4rem; background: var(--holz); color: #f7edd8;
  font-weight: 800; font-size: 1.2rem; border: 2px solid var(--gold);
}
.groesse.klein { min-width: 2rem; height: 1.6rem; font-size: 0.8rem; border-width: 1px; vertical-align: middle; }

/* ---------- Übersicht: Rad-Karten ---------- */
.rad-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.rad-karte { background: var(--blatt); border: 2px solid var(--holz); border-top-width: 10px; display: flex; flex-direction: column; }
.rad-kopf { display: flex; gap: 0.8rem; align-items: center; padding: 0.9rem 1rem 0.6rem; }
.rad-foto { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; border-bottom: 2px solid var(--linie); }
.rad-name { font-weight: 800; font-size: 1.2rem; }
.rad-status { font-weight: 700; }
.rad-info { padding: 0 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.rad-info p { margin: 0 0 0.9rem; flex: 1; }
.rad-info .btn { align-self: flex-start; }
.status-verfuegbar { border-top-color: #3c8a5a; }
.status-verfuegbar .rad-status { color: #1e6b3c; }
.status-abholbereit { border-top-color: var(--reserviert); }
.status-abholbereit .rad-status { color: #8a5a00; }
.status-unterwegs { border-top-color: var(--unterwegs); }
.status-unterwegs .rad-status { color: var(--unterwegs); }
.status-ueberfaellig { border-top-color: var(--ueberfaellig); background: #fff4f2; }
.status-ueberfaellig .rad-status { color: var(--ueberfaellig); }
.status-ausser_betrieb { border-top-color: #777; opacity: 0.8; }
.status-ausser_betrieb .rad-status { color: #555; }

.spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
.liste { list-style: none; margin: 0; padding: 0; background: var(--blatt); border: 2px solid var(--linie); }
.liste li { border-bottom: 1px solid var(--linie); }
.liste li:last-child { border-bottom: 0; }
.liste a { display: block; padding: 0.7rem 0.9rem; text-decoration: none; color: var(--tinte); }
.liste a:hover { background: var(--zeile); }
.liste .zeit { font-weight: 700; display: inline-block; min-width: 6.5rem; }
.liste .quelle { font-size: 0.85rem; color: #5a4632; margin-left: 0.3rem; }
.liste li.ueberfaellig a { background: #fff0ee; }
.liste li.aktuell a { background: var(--zeile); font-weight: 700; }
.liste.kompakt a { padding: 0.45rem 0.7rem; }
.marke-rot { background: var(--ueberfaellig); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 0.1rem 0.45rem; margin-left: 0.4rem; }

.status-marke { display: inline-block; font-size: 0.85rem; font-weight: 700; padding: 0.15rem 0.55rem; vertical-align: middle; font-family: "Segoe UI", Arial, sans-serif; border: 1px solid transparent; }
.st-reserviert { background: #fbe9c2; border-color: var(--reserviert); }
.st-ausgegeben { background: #dbe8f3; border-color: var(--unterwegs); color: #173f5f; }
.st-zurueck { background: var(--ok-bg); border-color: var(--ok); }
.st-storniert { background: #eee; border-color: #999; color: #555; text-decoration: line-through; }

/* ---------- Karten / Details ---------- */
.karte { background: var(--blatt); border: 2px solid var(--holz); padding: 1rem 1.1rem 1.1rem; margin-bottom: 1rem; }
.daten { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0; }
.daten dt { font-weight: 700; }
.daten dd { margin: 0; }
.ausweis-bilder { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0.9rem 0 0.3rem; }
.ausweis-bilder img { max-width: 260px; max-height: 180px; border: 2px solid var(--holz); display: block; background: #fff; }
.aktion-karte { border-color: var(--ok); border-width: 3px; }
.zeile-form { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; }
.zeile-form label:not(.check) { margin: 0; }
.zeile-form input[type=text] { width: auto; min-width: 14rem; flex: 1; }
.storno-form { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Reservierung: Radauswahl ---------- */
.rad-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.6rem; }
.rad-option {
  display: flex; align-items: center; gap: 0.7rem; margin: 0; padding: 0.6rem 0.8rem;
  border: 2px solid var(--holz); background: #fff; cursor: pointer; font-weight: 600;
}
.rad-option input { width: 1.5rem; height: 1.5rem; accent-color: var(--ok); flex: none; }
.rad-option-text { display: flex; flex-direction: column; }
.frei-status { font-size: 0.85rem; font-weight: 700; }
.rad-option.ist-frei .frei-status { color: #1e6b3c; }
.rad-option.ist-belegt { background: #f7ece9; border-style: dashed; }
.rad-option.ist-belegt .frei-status { color: var(--ueberfaellig); }
.rad-option:has(input:checked) { background: var(--ok-bg); border-color: var(--ok); }
.rad-option.ist-belegt:has(input:checked) { background: var(--fehler-bg); border-color: var(--fehler); }

/* ---------- Belegungsplan ---------- */
.plan-nav { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.plan-nav input, .plan-nav select { width: auto; }
.legende { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; align-items: center; margin-bottom: 0.8rem; font-size: 0.95rem; }
.legende i { display: inline-block; width: 1.1rem; height: 1.1rem; vertical-align: -0.15rem; margin-right: 0.35rem; border: 1px solid var(--holz); }
.legende .hilfe { margin: 0; }
.legende i.frei, .zeitleiste { background-color: var(--frei); }
i.reserviert, .balken.reserviert { background: var(--reserviert); }
i.ausgegeben, .balken.ausgegeben { background: var(--unterwegs); color: #fff; }
i.ueberfaellig, .balken.ueberfaellig { background: var(--ueberfaellig); color: #fff; }
i.zurueck, .balken.zurueck { background: var(--zurueck); }

.tabelle-wrap { overflow-x: auto; }
.plan { border-collapse: collapse; width: 100%; background: var(--blatt); border: 2px solid var(--holz); }
.plan-woche { min-width: 900px; table-layout: fixed; }
.plan th, .plan td { border: 1px solid var(--linie); padding: 0.4rem; vertical-align: top; }
.plan thead th { background: var(--holz); color: #f7edd8; font-weight: 700; text-align: left; }
.plan thead th a { color: #f7edd8; }
.plan thead th.heute { background: var(--gold); }
.plan td.heute { background: #fff6e3; }
.plan .plan-rad { width: 11rem; text-align: left; background: var(--zeile); color: var(--tinte); font-weight: 700; }
.plan thead .plan-rad { background: var(--holz); color: #f7edd8; }
.plan tr.inaktiv td, .plan tr.inaktiv th { opacity: 0.55; }
.zeitleiste {
  position: relative; height: 2.6rem; border: 1px solid var(--linie);
  background-image: linear-gradient(to right, rgba(44, 24, 16, 0.14) 1px, transparent 1px);
  background-size: calc(100% / var(--stunden)) 100%;
}
.plan-tag .zeitleiste { height: 3.4rem; }
.balken {
  position: absolute; top: 3px; bottom: 3px; min-width: 4px; overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.35); color: var(--tinte); text-decoration: none;
  font-size: 0.8rem; font-weight: 700; padding: 0.15rem 0.3rem; white-space: nowrap; line-height: 1.1;
}
.plan-tag .balken { font-size: 0.95rem; padding: 0.5rem; }
.balken:hover { filter: brightness(1.1); z-index: 2; }
.jetzt-linie { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ueberfaellig); z-index: 3; pointer-events: none; }
.plus { display: block; font-size: 0.85rem; text-align: right; margin-top: 0.2rem; text-decoration: none; font-weight: 600; }
.stunden { display: flex; margin-top: 0.3rem; font-size: 0.75rem; font-weight: 400; }
.stunden span { flex: 1; border-left: 1px solid rgba(247, 237, 216, 0.4); padding-left: 2px; }

/* ---------- Tabellen / Filter ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; align-items: end; background: var(--blatt); border: 2px solid var(--linie); padding: 0.9rem 1rem; margin-bottom: 1rem; }
.filter label { margin: 0 0 0.3rem; }
.filter input, .filter select { min-width: 12rem; width: auto; }
.tabelle { width: 100%; border-collapse: collapse; background: var(--blatt); border: 2px solid var(--holz); }
.tabelle th, .tabelle td { border-bottom: 1px solid var(--linie); padding: 0.5rem 0.6rem; text-align: left; vertical-align: middle; }
.tabelle th { background: var(--holz); color: #f7edd8; font-weight: 700; }
.tabelle tbody tr:nth-child(even) { background: var(--zeile); }
.tabelle tbody tr[onclick] { cursor: pointer; }
.tabelle tbody tr[onclick]:hover { background: #e6d4ae; }
tr.inaktiv td { opacity: 0.7; }
.rad-zeile { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.rad-zeile input[type=text] { width: auto; flex: 1; min-width: 10rem; min-height: 2.6rem; }
.rad-zeile select { width: auto; min-height: 2.6rem; }
.rad-zeile .check { margin: 0; }

/* ---------- Gast-Seiten / Tablet ---------- */
body.tablet { font-size: 1.25rem; }
body.tablet input[type="text"], body.tablet input[type="tel"], body.tablet input[type="email"] { min-height: 3.4rem; }
.gast-zusammenfassung { line-height: 1.7; }
.foto-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.foto-feld { display: flex; flex-direction: column; gap: 0.5rem; }
.foto-vorschau {
  aspect-ratio: 85.6 / 54; width: 100%; border: 3px dashed var(--holz); background: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; overflow: hidden; color: var(--holz);
}
.foto-feld.hat-foto .foto-vorschau { border-style: solid; border-color: var(--ok); }
.foto-vorschau img { width: 100%; height: 100%; object-fit: contain; background: #222; }
.foto-feld .btn { width: 100%; }

.kamera-modal { position: fixed; inset: 0; background: #000; z-index: 100; display: flex; flex-direction: column; }
.kamera-modal[hidden] { display: none; }
.kamera-modal video { flex: 1; width: 100%; min-height: 0; object-fit: contain; }
.kamera-rahmen {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%);
  width: min(80vw, 120vh); aspect-ratio: 85.6 / 54; max-height: 70vh;
  border: 4px solid rgba(255, 255, 255, 0.9); border-radius: 12px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.35); pointer-events: none;
}
.kamera-leiste { display: flex; justify-content: center; gap: 1rem; padding: 1rem; background: #111; position: relative; }
.kamera-leiste .btn { min-width: 10rem; min-height: 3.6rem; font-size: 1.25rem; }
body.kamera-offen { overflow: hidden; }

.bedingungen { background: #fff; border: 2px solid var(--linie); padding: 0.4rem 1rem; max-height: 16rem; overflow-y: auto; font-size: 1rem; }
.bedingungen li { margin: 0.4rem 0; }
.unterschrift-feld { position: relative; }
.unterschrift-feld canvas { display: block; width: 100%; height: 200px; background: #fff; border: 2px solid var(--holz); touch-action: none; cursor: crosshair; }
.unterschrift-feld .unterschrift-loeschen { position: absolute; top: 0.4rem; right: 0.4rem; }

.danke { text-align: center; padding: 2rem 1rem; }
.danke-haken { width: 5.5rem; height: 5.5rem; border-radius: 50%; background: var(--ok); color: #fff; font-size: 3.2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.danke p { font-size: 1.25rem; max-width: 36rem; margin: 0 auto 1rem; }
.danke .gast-zusammenfassung { display: inline-block; text-align: left; }
.danke-mitarbeiter { margin-top: 3rem !important; font-size: 0.95rem !important; }
.pin-form { max-width: 420px; margin: 2rem auto; }

.anzahl-reihe { display: grid; grid-template-columns: 1fr 6rem minmax(9rem, auto); gap: 0.8rem; align-items: center; }
.anzahl-reihe label { margin: 0; }
.frei-anzeige { font-weight: 700; font-size: 0.95rem; }
.frei-anzeige.ist-frei { color: #1e6b3c; }
.frei-anzeige.ist-belegt { color: var(--ueberfaellig); }
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Homepage: Fahrzeugwahl + Live-Kalender ---------- */
.oeff-titel { margin-top: 0.5rem; }
.oeff-titel h2 { margin: 0; }
.live-stand { font-size: 0.9rem; font-weight: 700; color: var(--ok); display: inline-flex; align-items: center; gap: 0.4rem; }
.live-punkt { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: #3c8a5a; box-shadow: 0 0 0 0 rgba(60, 138, 90, 0.6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 0.5rem rgba(60, 138, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(60, 138, 90, 0); } }
@media (prefers-reduced-motion: reduce) { .live-punkt { animation: none; } }
.oeff-karten { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.oeff-karte { position: relative; cursor: pointer; margin: 0; font-weight: 400; transition: box-shadow 0.15s; }
.oeff-karte .oeff-wahl { position: absolute; opacity: 0; width: 1px; height: 1px; }
.oeff-karte:hover { box-shadow: 0 3px 12px rgba(44, 24, 16, 0.18); }
.oeff-karte:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.oeff-karte .rad-info p { margin-bottom: 0.5rem; }
.oeff-karte .frei-status { min-height: 1.2rem; margin-bottom: 0.6rem; }
.oeff-karte.zr-frei .frei-status { color: #1e6b3c; }
.oeff-karte.zr-belegt .frei-status { color: var(--ueberfaellig); }
.wahl-knopf { align-self: flex-start; border: 2px solid var(--holz); padding: 0.45rem 0.9rem; font-weight: 700; background: #fff; }
.wahl-knopf .ja { display: none; }
.oeff-karte:has(.oeff-wahl:checked) { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok); background: #f3faf5; }
.oeff-karte:has(.oeff-wahl:checked) .wahl-knopf { background: var(--ok); border-color: var(--ok); color: #fff; }
.oeff-karte:has(.oeff-wahl:checked) .wahl-knopf .ja { display: inline; }
.oeff-karte:has(.oeff-wahl:checked) .wahl-knopf .nicht { display: none; }
.oeff-karte:has(.oeff-wahl:checked).zr-belegt { box-shadow: 0 0 0 3px var(--ueberfaellig); background: var(--fehler-bg); }
.oeff-karte:has(.oeff-wahl:disabled) { cursor: not-allowed; }
.oeff-karte:has(.oeff-wahl:disabled) .wahl-knopf { visibility: hidden; }
.kal-titel { margin-top: 1.4rem; }
.oeff-kalender { min-width: 760px; table-layout: fixed; margin-bottom: 1.4rem; }
.oeff-kalender thead th { text-align: center; padding: 0.3rem 0.1rem; font-size: 0.8rem; }
.oeff-kalender thead th span { display: block; font-weight: 400; opacity: 0.85; }
.oeff-kalender thead th.we { background: var(--holz-hell); }
.oeff-kalender thead th.heute { background: var(--gold); }
.oeff-kalender .plan-rad { width: 12rem; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oeff-kalender td.kal { height: 2.6rem; padding: 0; text-align: center; vertical-align: middle; cursor: pointer; }
.oeff-kalender td.kal:hover { outline: 2px solid var(--holz); outline-offset: -2px; }
.kal-zeit { font-size: 0.72rem; font-weight: 700; }
.kal-frei, i.kal-frei { background: var(--frei); }
.kal-teilweise, i.kal-teilweise { background: linear-gradient(135deg, var(--frei) 50%, var(--reserviert) 50%); }
.kal-teilweise-u { background: linear-gradient(135deg, var(--frei) 50%, var(--unterwegs) 50%); }
.kal-gebucht, i.kal-gebucht { background: var(--reserviert); }
.kal-unterwegs, i.kal-unterwegs { background: var(--unterwegs); }
.kal-werkstatt, i.kal-werkstatt { background: repeating-linear-gradient(45deg, #ddd, #ddd 4px, #bbb 4px, #bbb 8px); cursor: not-allowed !important; }
@media (max-width: 600px) { .oeff-karten { grid-template-columns: 1fr; } }

/* ---------- Mietvertrag (Druck) ---------- */
body.vertrag { background: #fff; max-width: 800px; margin: 0 auto; padding: 1.5rem; font-size: 11pt; }
.vertrag header { border-bottom: 3px solid var(--gold); margin-bottom: 1rem; }
.vertrag h1 { margin: 0.3rem 0; }
.vertrag h2 { font-size: 1.05rem; margin: 1rem 0 0.4rem; }
.vertrag-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.vertrag-tabelle { width: 100%; border-collapse: collapse; }
.vertrag-tabelle th, .vertrag-tabelle td { border: 1px solid #999; padding: 0.3rem 0.4rem; text-align: left; font-size: 10pt; }
.bedingungen-druck { font-size: 9.5pt; }
.unterschriften { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; align-items: end; }
.unterschriften img { max-width: 100%; height: 90px; object-fit: contain; display: block; }
.unterschriften .platz { height: 90px; }
.unterschriften .linie { border-top: 1px solid #000; padding-top: 0.2rem; font-size: 9pt; }
.druck-leiste { text-align: right; }
@media print {
  .druck-leiste { display: none; }
  body.vertrag { padding: 0; }
}

/* ---------- Schmal (Handy / Tablet hochkant) ---------- */
@media (max-width: 760px) {
  .form-reihe.zwei, .form-reihe.drei, .spalten, .foto-felder, .vertrag-spalten { grid-template-columns: 1fr; }
  .nav a { padding: 0.55rem 0.55rem; }
  .inhalt { padding: 1rem 1rem 2.5rem; }
  .kopf-innen { padding-left: 1rem; padding-right: 1rem; }
  .anzahl-reihe { grid-template-columns: 1fr 5rem; }
  .anzahl-reihe .frei-anzeige { grid-column: 1 / -1; }
  .zeile-form input[type=text] { min-width: 0; width: 100%; }
}

/* ---------- Preise, Kaution, Abrechnung ---------- */
.kat-titel { margin: 1rem 0 0.5rem; display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; align-items: baseline; }
.kat-preis { font-size: 0.9rem; font-weight: 600; color: var(--ok); }
.preis-box { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 1rem 0 0.4rem; padding: 0.8rem 1rem; background: var(--ok-bg); border: 2px solid var(--ok); }
.preis-box[hidden] { display: none; }
.preis-box strong { font-size: 1.2rem; }
.kasse { width: 100%; border-collapse: collapse; margin-bottom: 1rem; background: #fff; }
.kasse th, .kasse td { border: 1px solid var(--linie); padding: 0.45rem 0.6rem; text-align: left; vertical-align: middle; }
.kasse th { background: var(--zeile); font-size: 0.95rem; }
.kasse tr[hidden] { display: none; }
input.betrag { max-width: 9rem; text-align: right; font-variant-numeric: tabular-nums; }
.marke-offen { background: #fbe9c2; border: 1px solid var(--reserviert); font-size: 0.8rem; font-weight: 700; padding: 0.05rem 0.4rem; }
.klein-text { font-size: 0.92rem; }
.warn-text { color: var(--fehler); }
.karten-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.7rem; margin: 0.5rem 0 1rem; }
.kennzahl { background: var(--blatt); border: 2px solid var(--linie); padding: 0.7rem 0.9rem; display: flex; flex-direction: column; gap: 0.2rem; }
.kennzahl span { font-size: 0.9rem; font-weight: 600; }
.kennzahl strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.kennzahl.betont { border-color: var(--ok); background: var(--ok-bg); }
.tabelle .zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kat-form { margin-bottom: 0.5rem; }
.preis-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.8rem; margin-bottom: 0.9rem; }
.preis-raster input { text-align: right; }
.checks-zeile { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; align-items: center; }
.checks-zeile .btn { margin-left: auto; }
.check-unten { display: flex; flex-direction: column; justify-content: flex-end; }
.preisliste { font-size: 1rem; }
.preisliste-zeile { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; padding: 0.4rem 0; border-top: 1px solid var(--linie); margin-top: 0.4rem; }
.preisliste-zeile .kat { font-weight: 700; min-width: 6rem; }
.vertrag-tabelle tfoot th { text-align: left; }
@media (max-width: 760px) {
  .kasse, .kasse tbody, .kasse tr, .kasse td { display: block; width: 100%; }
  .kasse thead { display: none; }
  .kasse tr { border: 1px solid var(--linie); margin-bottom: 0.5rem; }
  .kasse td { border: 0; }
  .checks-zeile .btn { margin-left: 0; }
}

.aktionen [data-passwort-zeigen] { gap: 0.45rem; }
.pin-form .aktionen { margin-top: 0.4rem; }

/* Knopffarben Übersicht: grün vermieten · gelb Ausgabe (reserviert) · rot zurücknehmen */
.btn-gelb { background: #e4b04a; color: #2c1810; border-color: #8a5a00; }
.btn-rot { background: #b3261e; color: #fff; border-color: #6e1510; }
.nachzahlung { margin-top: 0.4rem; }
.nachzahlung label { font-size: 0.9rem; }
.ocr-status { margin: 0.35rem 0 0; font-size: 0.95rem; min-height: 1.2em; }
.ocr-status.ok { color: #1e6b3c; font-weight: 700; }
.ocr-status.laeuft { color: #5a4632; font-style: italic; }
.ocr-status.nichts { color: #8a5a00; }
input.ocr-gefuellt { background: #eef8f1; border-color: #1e6b3c; }
