/* Verleihplattform – eigene Gestaltung, keine fremden Schriften (A2). Volle Breite, Reiter statt Scrollen (A9). */
:root {
  --grund: #faf8f4; --flaeche: #fff; --text: #2b2a28; --grau: #6d6a64; --linie: #e6e1d8;
  --salbei: #5f7a5b; --salbei-d: #4a6247; --salbei-h: #e9efe6; --terra: #b5653f; --rot: #a33a2a; --rot-h: #f8e6e1;
  --gelb-h: #fbf1d6; --radius: 10px; --schatten: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(60,50,30,.05);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--grund); }
a { color: var(--salbei-d); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.1rem; margin-top: 1.2em; }
h1 small, h2 small, h3 small { font-family: system-ui, sans-serif; font-size: .85rem; color: var(--grau); font-weight: 400; }
p { margin: 0 0 .8em; }
.klein, small { font-size: .85rem; color: var(--grau); }
.grau { color: var(--grau); }
.leer { color: var(--grau); font-style: italic; }
code { background: #f1eee8; padding: 0 .3em; border-radius: 4px; font-size: .85em; }

/* ---------- Kopf / Fuß ---------- */
.test-band { background: #c0392b; color: #fff; text-align: center; font-weight: 700; padding: .3rem; letter-spacing: .05em; }
.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 10; }
.kopf-innen { display: flex; align-items: center; gap: 1.5rem; padding: .7rem 24px; flex-wrap: wrap; }
.marke { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--text); font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.kopf-nav { margin-left: auto; display: flex; gap: 1.2rem; align-items: center; }
.kopf-nav a:not(.btn) { color: var(--text); text-decoration: none; white-space: nowrap; }
.kopf-nav a[aria-current] { color: var(--salbei-d); font-weight: 600; }
.kopf-verwaltung .kopf-innen { gap: 1rem; }
.kopf-rechts { margin-left: auto; display: flex; gap: .8rem; align-items: center; }
.kopf-betrieb { background: #2f3b2e; } .kopf-betrieb .marke { color: #fff; } .kopf-betrieb .reiter a { color: #dfe8dc; }
.reiter { display: flex; gap: .2rem; flex-wrap: wrap; }
.reiter a { padding: .45rem .8rem; border-radius: 8px; text-decoration: none; color: var(--text); white-space: nowrap; }
.reiter a:hover { background: var(--grund); }
.reiter a[aria-current] { background: var(--salbei-h); color: var(--salbei-d); font-weight: 600; }
.zahl { font-variant-numeric: tabular-nums; }
.reiter .zahl { background: var(--terra); color: #fff; border-radius: 99px; padding: 0 .45em; font-size: .75rem; margin-left: .2em; }
.unter-reiter { display: flex; gap: .3rem; border-bottom: 1px solid var(--linie); margin-bottom: 1rem; flex-wrap: wrap; }
.unter-reiter a { padding: .5rem .9rem; text-decoration: none; color: var(--grau); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.unter-reiter a[aria-current] { color: var(--salbei-d); border-color: var(--salbei); font-weight: 600; }
.hinweis-band { background: var(--gelb-h); padding: .6rem 24px; border-bottom: 1px solid #efdfae; }
.hinweis-band.hinweis-rot { background: var(--rot-h); }
.fuss { border-top: 1px solid var(--linie); margin-top: 3rem; background: var(--flaeche); }
.fuss-innen { padding: 1.2rem 24px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: var(--grau); }
.fuss nav { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Grundlayout: volle Breite ---------- */
.haupt { padding: 24px; }
.haupt-breit { padding: 20px 24px; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--schatten); margin-bottom: 1.2rem; }
.karte.schmal { max-width: 460px; margin: 2rem auto; }
.karte.mittel { max-width: 860px; margin: 1rem auto; }
.karte.hervor { border-color: var(--salbei); background: #fbfdfa; }
.karte.gefahr { border-color: #e6c4bc; }
.spalten-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.spalten-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: start; }
.spalten-artikel { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 1.2rem; align-items: start; }
.spalten-vorgang { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 1.2rem; align-items: start; }
.spalten-kal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(300px, 1fr); gap: 1.2rem; align-items: start; }
.werkzeug { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.werkzeug h1 { margin: 0 auto 0 0; }
.brotkrumen { font-size: .9rem; color: var(--grau); margin-bottom: .6rem; }

/* ---------- Knöpfe ---------- */
.btn { display: inline-block; background: var(--salbei); color: #fff; border: 1px solid var(--salbei); border-radius: 8px; padding: .55rem 1.1rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.3; }
.btn:hover { background: var(--salbei-d); border-color: var(--salbei-d); }
.btn-hell { background: var(--flaeche); color: var(--salbei-d); border-color: var(--linie); }
.btn-hell:hover { background: var(--salbei-h); border-color: var(--salbei); }
.btn-klein { padding: .3rem .7rem; font-size: .88rem; }
.btn-gross { padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn-voll { width: 100%; }
.btn-gefahr { background: var(--rot); border-color: var(--rot); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-klein { font-size: .9rem; }
form.inline { display: inline; }
.aktion { margin-bottom: .8rem; }
.knoepfe { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }

/* ---------- Formulare ---------- */
.formular .feld, .feld { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .8rem; }
.feld span { font-size: .88rem; font-weight: 600; }
.feld small { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=search], select, textarea {
  font: inherit; padding: .5rem .6rem; border: 1px solid #d5cfc4; border-radius: 7px; background: #fff; color: var(--text); width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--salbei); outline-offset: 1px; border-color: var(--salbei); }
textarea { resize: vertical; }
.raster-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.raster-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.raster-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1rem; }
.raster-2.eng { gap: 0 .6rem; }
.breit-2 { grid-column: span 2; }
.haken { display: flex; gap: .5rem; align-items: flex-start; margin: .5rem 0; }
.haken input { margin-top: .3rem; }
fieldset.tage { border: 1px solid var(--linie); border-radius: 8px; display: flex; gap: 1rem; flex-wrap: wrap; padding: .4rem 1rem; margin: 0 0 1rem; }
.captcha { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; margin: .5rem 0; }
.captcha img { border: 1px solid var(--linie); border-radius: 6px; }
.fehler-box { background: var(--rot-h); border: 1px solid #e6c4bc; border-radius: 8px; padding: .6rem 1rem; margin-bottom: 1rem; }
.fehler-box ul, .warn-box ul { margin: 0; padding-left: 1.2rem; }
.warn-box { background: var(--gelb-h); border: 1px solid #efdfae; border-radius: 8px; padding: .6rem 1rem; margin-bottom: 1rem; }
.flash { border-radius: 8px; padding: .6rem 1rem; margin-bottom: 1rem; }
.flash-ok { background: var(--salbei-h); border: 1px solid #cddcc8; }
.flash-fehler { background: var(--rot-h); border: 1px solid #e6c4bc; }
.suche-klein input { width: 220px; }
.kopierfeld { font-size: .82rem; }
.set-teile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.set-reihe { display: grid; grid-template-columns: 1fr 90px; gap: .5rem; }
.hinweis-entwurf { background: var(--gelb-h); padding: .4rem .8rem; border-radius: 6px; display: inline-block; }

/* ---------- Tabellen ---------- */
.tabelle { border-collapse: collapse; width: 100%; font-size: .95rem; }
.tabelle th, .tabelle td { padding: .5rem .6rem; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: middle; }
.tabelle thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grau); font-weight: 600; }
.tabelle td.zahl, .tabelle th.zahl { text-align: right; }
.tabelle tfoot th, .tabelle tfoot td { border-bottom: 0; }
.tabelle-voll { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); }
.tabelle tr.neu td { background: #fdf7ea; }
.pos-tabelle input[type=number] { width: 90px; text-align: right; }
.pos-tabelle input[type=text] { width: 100px; text-align: right; }
.pos-tabelle tr.zu-wenig td { background: var(--rot-h); }
.marke-status { display: inline-block; font-size: .75rem; font-weight: 600; border-radius: 99px; padding: .1rem .55rem; background: #eee; color: #444; vertical-align: middle; font-family: system-ui, sans-serif; }
.s-anfrage { background: #fbe3c6; color: #7a4510; } .s-angebot { background: #e2ecf7; color: #234a73; }
.s-gebucht { background: var(--salbei-h); color: var(--salbei-d); } .s-ausgegeben { background: #efe3f6; color: #5a2f73; }
.s-zurueck { background: #fff1c2; color: #6b5300; } .s-abgeschlossen { background: #ececec; color: #555; }
.s-abgelehnt, .s-storniert, .s-abgelaufen { background: var(--rot-h); color: var(--rot); }

/* ---------- Kennzahlen, Listen ---------- */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.kennzahl { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: .9rem 1rem; text-decoration: none; color: var(--grau); font-size: .9rem; }
.kennzahl span { display: block; font-size: 1.6rem; font-weight: 700; color: var(--text); font-family: var(--serif); }
a.kennzahl:hover { border-color: var(--salbei); }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { padding: .45rem 0; border-bottom: 1px solid var(--linie); }
.liste li:last-child { border-bottom: 0; }
.liste a { text-decoration: none; }
.schritte li { margin-bottom: .3rem; }
.schritte li.erledigt { color: var(--grau); text-decoration: line-through; }
.nachrichten { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .5rem; }
.nachrichten li { padding: .5rem .8rem; border-radius: 10px; max-width: 90%; }
.nachrichten li p { margin: .2rem 0 0; }
.n-ich { background: var(--salbei-h); align-self: flex-end; }
.n-du { background: #f1eee8; align-self: flex-start; }
.verlauf { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.verlauf li { padding: .25rem 0; }

/* ---------- Öffentlich: Startseite, Kacheln ---------- */
.held { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: end; padding: 2rem 0 1.5rem; }
.held h1 { font-size: 2.4rem; }
.held p { font-size: 1.1rem; color: #4b4842; max-width: 75ch; }
.such-leiste { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: .8rem; align-items: end; background: var(--flaeche); padding: 1rem; border-radius: var(--radius); border: 1px solid var(--linie); box-shadow: var(--schatten); }
.such-leiste .feld { margin: 0; }
.abschnitt { margin: 1.5rem 0; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.kacheln-verleih { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.kacheln-info { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.info { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.kachel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; box-shadow: var(--schatten); }
a.kachel:hover { border-color: var(--salbei); }
.kachel-bild { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #efe9df; }
.bild-leer { background: repeating-linear-gradient(45deg, #f1ece3, #f1ece3 10px, #ece6dc 10px, #ece6dc 20px); }
.bild-leer.gross { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.kachel-text { padding: .7rem .9rem .9rem; display: flex; flex-direction: column; gap: .15rem; }
.kachel-text a { color: var(--text); text-decoration: none; }
.kachel-verleih .kachel-text { padding: 1.1rem; }
.kachel-verleih strong { font-family: var(--serif); font-size: 1.15rem; }
.frei { color: var(--salbei-d); font-weight: 600; font-size: .9rem; }
.belegt { color: var(--rot); font-weight: 600; font-size: .9rem; }
.menge { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.menge span { font-size: .85rem; color: var(--grau); }
.menge input { width: 90px; }
.profil { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 2rem; align-items: start; margin-bottom: 1rem; }
.profil .ort { color: var(--grau); }
.profil .lead { max-width: 80ch; }
.regeln-box ul { padding-left: 1.1rem; margin: 0 0 .8rem; }
.auswahl-leiste { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 1rem; align-items: end; position: sticky; top: 58px; z-index: 5; }
.auswahl-leiste .btn { margin-bottom: .8rem; }
.auswahl-fuss { text-align: center; margin: 1.5rem 0; }
.fazit { max-width: 1100px; }
.anfrage-form { border-top: 1px solid var(--linie); margin-top: 1.2rem; padding-top: 1rem; }
.artikel-seite { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: 1.5rem; align-items: start; }
.galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.galerie img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.galerie img:first-child { grid-column: span 2; }
.preis { font-size: 1.2rem; font-weight: 600; }
.daten { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; }
.daten dt { color: var(--grau); } .daten dd { margin: 0; }
.text-seite { max-width: 80ch; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.5rem 2rem; }
.kopf-vorgang { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }

/* ---------- Fotos ---------- */
.foto-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.foto-raster figure { margin: 0; display: flex; flex-direction: column; gap: .3rem; }
.foto-raster img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.foto-raster form { margin: 0; }

/* ---------- Belegungsplan ---------- */
.plan-rahmen { overflow-x: auto; }
.plan { border-collapse: collapse; font-size: .8rem; }
.plan th, .plan td { border: 1px solid var(--linie); padding: .2rem .2rem; text-align: center; min-width: 26px; }
.plan thead th { font-weight: 600; background: #f6f3ee; }
.plan thead th.we { background: #ece6dc; }
.plan tbody th { text-align: left; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; position: sticky; left: 0; background: var(--flaeche); }
.plan td.voll { background: #f2c9be; color: #7a2216; font-weight: 600; }
.plan td.teil { background: #fbe9c4; }
.plan td.leer { color: #9aa597; }

/* ---------- Druck ---------- */
body.druck { background: #e9e6e0; }
.druck-leiste { padding: 1rem; text-align: center; display: flex; gap: 1rem; justify-content: center; align-items: center; }
.druck-blatt { background: #fff; max-width: 210mm; margin: 0 auto 2rem; padding: 18mm; box-shadow: var(--schatten); font-size: 11pt; }
.dok-kopf { display: flex; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; font-size: 10pt; }
.dok-empf { text-align: right; }
.dok-daten { color: var(--grau); }
.haken-spalte { width: 30px; text-align: center; }
.unterschriften { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.unterschriften div { border-top: 1px solid #999; padding-top: .3rem; font-size: 9pt; color: var(--grau); }
@media print {
  body.druck { background: #fff; }
  .nicht-drucken { display: none; }
  .druck-blatt { box-shadow: none; margin: 0; padding: 0; max-width: none; }
}

/* ---------- Mobil ---------- */
@media (max-width: 1000px) {
  .spalten-2, .spalten-3, .spalten-artikel, .spalten-vorgang, .spalten-kal, .profil, .artikel-seite, .held { grid-template-columns: 1fr; }
  .raster-3, .raster-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .such-leiste { grid-template-columns: 1fr 1fr; }
  .reiter { overflow-x: auto; flex-wrap: nowrap; width: 100%; }
  .kopf-rechts { margin-left: 0; }
}
@media (max-width: 600px) {
  .haupt, .haupt-breit { padding: 16px; }
  .raster-2, .raster-3, .raster-4, .set-teile, .such-leiste { grid-template-columns: 1fr; }
  .breit-2 { grid-column: auto; }
  .held h1 { font-size: 1.8rem; }
  .tabelle-voll { display: block; overflow-x: auto; }
  .auswahl-leiste { position: static; }
  .kopf { position: static; }
  .kopf-nav { gap: .8rem; margin-left: 0; font-size: .92rem; }
  .held h1, h1 { font-size: 1.6rem; }
}
