/*
 * Vermietungs-Software – Gestaltung im Bento-Stil (Kachel-Raster, große Rundungen, weiche Schatten)
 * Die Hauptfarbe (--haupt …) kommt aus den Einstellungen des Betreibers und wird im Layout gesetzt.
 * Schrift Inter liegt lokal unter public/fonts (SIL Open Font License), nichts wird von Google geladen.
 */
@font-face { font-family: "Inter"; src: url("fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
    --haupt: #2563eb; --haupt-text: #fff; --haupt-dunkel: #1d4ed8; --haupt-hell: #eff6ff; --haupt-mittel: #93c5fd;
    --akzent: var(--haupt);
    --text: #1d1d1f; --text-2: #515154; --text-3: #6e6e73;
    --flaeche: #f5f5f7; --karte: #fff; --rand: #e8e8ed;
    --gruen: #15803d; --gruen-hell: #dcfce7; --gelb: #a16207; --gelb-hell: #fef9c3; --rot: #b91c1c; --rot-hell: #fee2e2;
    --radius: 22px; --radius-klein: 12px; --abstand: 1rem;
    --schatten: 0 1px 2px rgb(0 0 0 / .04), 0 4px 14px rgb(0 0 0 / .04);
    --schatten-gross: 0 24px 48px -16px rgb(15 23 42 / .25);
    --schrift: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --dauer: .2s; --federn: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; font-family: var(--schrift); font-feature-settings: "cv11", "ss03"; color: var(--text); background: var(--flaeche); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--haupt-dunkel); text-underline-offset: 3px; }
a:hover { color: var(--haupt); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.022em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 .5rem; letter-spacing: -.03em; }
h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
svg.symbol { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
:focus-visible { outline: 3px solid var(--haupt-mittel); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Bausteine ---------- */
.seite { max-width: 74rem; margin: 0 auto; padding: 0 1.25rem; }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--schatten); }
.karte h2:first-child { margin-top: 0; }
.hinweis { font-size: .9rem; color: var(--text-2); }
.zeichen { font-weight: 400; font-size: .8rem; color: var(--gruen); margin-left: .4rem; }
.zeichen.zu-lang { color: var(--gelb); }
.preis { font-weight: 700; font-size: 1.15rem; margin-top: 0; }
.status { background: var(--gruen-hell); color: #14532d; border-left: 4px solid var(--gruen); padding: .8rem 1rem; border-radius: var(--radius-klein); animation: einblenden .3s ease; }
.fehler { color: var(--rot); }
ul.fehler { background: var(--rot-hell); border-radius: var(--radius-klein); padding: .75rem 1rem .75rem 2rem; }
.zeile { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 560px) { .zeile { grid-template-columns: 1fr !important; } }

/* ---------- Formulare ---------- */
label { display: block; margin-top: .9rem; font-weight: 600; font-size: .88rem; color: var(--text); }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]), textarea, select {
    display: block; width: 100%; padding: .7rem .85rem; font: inherit; font-size: 1rem; color: var(--text);
    border: 1px solid #d2d2d7; border-radius: var(--radius-klein); background: #fff; transition: border-color var(--dauer), box-shadow var(--dauer);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--haupt); box-shadow: 0 0 0 4px color-mix(in srgb, var(--haupt) 18%, transparent); }
input[type=checkbox], input[type=radio] { accent-color: var(--haupt); width: 1.05rem; height: 1.05rem; margin-top: .2rem; }
input[type=file] { display: block; margin-top: .35rem; font-size: .9rem; }
fieldset { border: 1px solid var(--rand); border-radius: var(--radius-klein); padding: .8rem 1rem 1rem; margin: .75rem 0 0; }
legend { font-weight: 600; font-size: .9rem; padding: 0 .3rem; }
fieldset label, label.zustimmung { font-weight: normal; display: flex; gap: .55rem; align-items: flex-start; margin-top: .55rem; }
.knopf, button {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .65rem 1.15rem; font: inherit; font-size: .95rem; font-weight: 600;
    border: 1px solid #d2d2d7; border-radius: 999px; background: #fff; color: var(--text); cursor: pointer; text-decoration: none;
    transition: background var(--dauer), border-color var(--dauer), transform var(--dauer) var(--federn), box-shadow var(--dauer);
}
.knopf:hover, button:hover { border-color: var(--haupt-mittel); background: var(--haupt-hell); color: var(--text); }
.knopf:active, button:active { transform: scale(.97); }
.knopf.haupt, button.haupt { background: var(--haupt); border-color: var(--haupt); color: var(--haupt-text); }
.knopf.haupt:hover, button.haupt:hover { background: var(--haupt-dunkel); border-color: var(--haupt-dunkel); color: var(--haupt-text); transform: translateY(-1px); }
button.gefahr, .knopf.gefahr { color: var(--rot); border-color: #fecaca; }
button.gefahr:hover { background: var(--rot-hell); border-color: var(--rot); color: var(--rot); }
button.breit, .knopf.breit { width: 100%; margin-top: 1.25rem; padding: .9rem; font-size: 1.05rem; }
button:disabled { opacity: .6; cursor: progress; }

/* ---------- Tabellen und Etiketten ---------- */
table.liste { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--rand); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); }
.liste th, .liste td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid #f0f0f3; vertical-align: top; }
.liste tr:last-child td { border-bottom: 0; }
.liste th { background: #fafafc; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.liste tbody tr { transition: background var(--dauer); }
.liste tbody tr:hover { background: #fafafc; }
.liste .aktionen { white-space: nowrap; text-align: right; }
.liste .aktionen form { display: inline; }
img.vorschau { width: 80px; height: 60px; object-fit: cover; border-radius: 10px; }
.etikett { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .01em; vertical-align: middle; }
.etikett.requested { background: var(--gelb-hell); color: var(--gelb); }
.etikett.answered { background: var(--haupt-hell); color: var(--haupt-dunkel); }
.etikett.confirmed { background: var(--gruen-hell); color: var(--gruen); }
.etikett.declined, .etikett.cancelled { background: #f0f0f3; color: var(--text-2); }
/* Anfragen und Buchungen: Status mit Zeichen, Kunde mit Initialen */
.anfragen td { vertical-align: middle; padding-top: 1rem; padding-bottom: 1rem; font-size: .95rem; }
.anfragen th { font-size: .78rem; padding-top: 1rem; padding-bottom: 1rem; }
.anfragen .kunde a { color: var(--text); }
.anfragen .etikett { font-size: .8rem; padding: .3rem .8rem; }
.anfragen .etikett::before { margin-right: .3rem; }
.anfragen .etikett.requested::before { content: "●"; }
.anfragen .etikett.answered::before { content: "↩"; }
.anfragen .etikett.confirmed::before { content: "✓"; }
.anfragen .etikett.declined { background: var(--rot-hell); color: var(--rot); }
.anfragen .etikett.declined::before { content: "✕"; }
.anfragen .etikett.cancelled::before { content: "⊘"; }
.aenderungen .protokoll { max-height: 22rem; overflow-y: auto; margin-top: .6rem; padding-right: .5rem; overscroll-behavior: contain; }
.aenderungen details h2 { font-size: 1rem; margin: 1.2rem 0 .3rem; }
.aenderungen details ul { margin: 0; padding-left: 1.2rem; }
.filterleiste { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; align-items: center; }
.filterleiste select, .filterleiste input[type=search] { width: auto; }
.beleg-aktionen { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; align-items: flex-start; }
.beleg-aktionen form { display: inline; }
.beleg-aktionen.rechts { justify-content: flex-end; margin-top: 0; }
.belege .beleg-aktionen.rechts { flex-wrap: nowrap; }
.belege td:first-child, .belege .etikett, .beleg-aktionen .knopf, .beleg-aktionen button { white-space: nowrap; }
.beleg-aktionen .knopf, .beleg-aktionen button { min-height: 2.25rem; padding: .4rem .9rem; font-size: .85rem; }
.beleg-zahlung-auswahl { position: relative; }
.liste.belege { overflow: visible; }
.belege th:first-child { border-top-left-radius: var(--radius); }
.belege th:last-child { border-top-right-radius: var(--radius); }
.beleg-zahlung-auswahl .beleg-zahlung { display: flex; position: absolute; right: 0; top: calc(100% + .4rem); z-index: 5; flex-wrap: nowrap; width: max-content; margin: 0; padding: .6rem; background: #fff; border: 1px solid var(--rand); border-radius: var(--radius-klein); box-shadow: var(--schatten); }
@media (max-width: 760px) { .belege .beleg-aktionen.rechts { flex-wrap: wrap; justify-content: flex-start; } }
.beleg-zahlung { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .4rem; }
.beleg-zahlung input, .beleg-zahlung select { width: auto; }
.belege td, .kunden td { vertical-align: middle; }
.mobil-text { display: none; }
/* Handy: jede Tabellenzeile wird eine kompakte Karte, die Zellen fließen nebeneinander statt untereinander. */
@media (max-width: 760px) {
    .liste thead { display: none; }
    .liste tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; padding: .85rem 1rem; border-bottom: 1px solid var(--rand); position: relative; }
    .liste tbody tr:last-child { border-bottom: 0; }
    .liste tbody td { display: block; border: 0; padding: 0; }
    .liste tbody td:empty { display: none; }
    .liste .aktionen { flex-basis: 100%; text-align: left; white-space: normal; }
    /* Anfragen und Kunden: Karte antippen öffnet sie, der Öffnen-Knopf entfällt. */
    .anfragen .aktionen, .kunden .aktionen { display: none; }
    .anfragen .kunde a::after, .kunden .kunde a::after { content: ""; position: absolute; inset: 0; }
    .anfragen .kunde a, .kunden .kunde a { text-decoration: none; font-weight: 700; }
    .anfragen tbody td:nth-child(3) { flex-basis: 100%; color: var(--text-2); font-size: .9rem; }
    .anfragen tbody td:nth-child(4) { font-size: .9rem; }
    .anfragen tbody td:nth-child(5) { margin-left: auto; font-weight: 700; }
    .anfragen .etikett { font-size: .72rem; padding: .2rem .6rem; }
    .anfragen .initialen { display: none; }
    .kunden tbody td:first-child { flex-basis: 100%; }
    .kunden tbody td:not(:first-child) { color: var(--text-2); font-size: .88rem; }
    .mobil-text { display: inline; }
    /* Belege: Nummer, Art und Betrag – darunter Datum und Kunde – darunter Zahlung und Knöpfe. */
    .belege tbody tr::before, .belege tbody tr::after { content: ""; flex-basis: 100%; height: 0; }
    .belege tbody td:nth-child(1) { order: 1; }
    .belege tbody td:nth-child(2) { order: 2; color: var(--text-2); font-size: .88rem; }
    .belege tbody td:nth-child(5) { order: 3; margin-left: auto; font-weight: 700; }
    .belege tbody tr::before { order: 4; }
    .belege tbody td:nth-child(3) { order: 5; color: var(--text-2); font-size: .88rem; }
    .belege tbody td:nth-child(4) { order: 6; font-size: .9rem; }
    .belege tbody tr::after { order: 7; }
    .belege tbody td:nth-child(6) { order: 8; }
    .belege tbody td:nth-child(7) { order: 9; margin-left: auto; }
    .belege .beleg-aktionen.rechts { flex-wrap: wrap; justify-content: flex-end; }
    /* Statistik: Name oben, Zahlen zweispaltig, Hinweis unten. */
    .statistik tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1.25rem; }
    .statistik td[data-titel] { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .9rem; text-align: right; }
    .statistik td[data-titel]::before { content: attr(data-titel); color: var(--text-2); font-size: .8rem; text-align: left; }
    .statistik td[data-titel="Mietobjekt"], .statistik td[data-titel="Hinweis"] { grid-column: 1 / -1; display: block; text-align: left; font-size: 1rem; }
    .statistik td[data-titel="Mietobjekt"]::before, .statistik td[data-titel="Hinweis"]::before { content: none; }
    .statistik td[data-titel="Mietobjekt"] a { font-weight: 700; }
    .statistik td[data-titel="Hinweis"]:not(:has(span, small)) { display: none; }
    .statistik .balken { width: 2.5rem; }
    .statistik td[data-titel="Auslastung"] small { white-space: nowrap; }
    /* Geräte: Zeile antippen öffnet das Gerät. */
    .geraete .aktionen { display: none; }
    .geraete tbody td:first-child a { font-weight: 700; text-decoration: none; }
    .geraete tbody td:first-child a::after { content: ""; position: absolute; inset: 0; }
    .geraete tbody td:nth-child(2) { color: var(--text-2); font-size: .88rem; }
    .geraete tbody td:nth-child(3) { margin-left: auto; }
    /* Mietobjekte: Foto und Name – Kategorie und Preis – Reihenfolge und Knöpfe. */
    .mietobjekte tbody tr::before, .mietobjekte tbody tr::after { content: ""; flex-basis: 100%; height: 0; }
    .mietobjekte tbody td:nth-child(2) { order: 1; }
    .mietobjekte tbody td:nth-child(2) .hinweis, .mietobjekte tbody td:nth-child(2) br { display: none; }
    .mietobjekte img.vorschau { width: 3.5rem; height: 2.6rem; display: block; }
    .mietobjekte tbody td:nth-child(3) { order: 2; flex: 1; min-width: 0; font-weight: 700; }
    .mietobjekte tbody tr::before { order: 3; }
    .mietobjekte tbody td:nth-child(4) { order: 4; color: var(--text-2); font-size: .88rem; }
    .mietobjekte tbody td:nth-child(5) { order: 5; margin-left: auto; font-size: .9rem; }
    .mietobjekte tbody tr::after { order: 6; }
    .mietobjekte tbody td:nth-child(1) { order: 7; }
    .mietobjekte tbody td:nth-child(6) { order: 8; flex-basis: auto; margin-left: auto; display: flex; gap: .4rem; }
    .mietobjekte .aktionen .knopf, .mietobjekte .aktionen button { min-height: 2.4rem; padding: .4rem .9rem; font-size: .88rem; }
    /* Übersicht: Termine zweizeilig. */
    .termine li { flex-wrap: wrap; gap: .3rem .6rem; }
    .termine .art { width: auto; }
    .termine .wann { width: auto; }
    .termine .wer { flex-basis: 100%; }
}
.sortieren { all: unset; cursor: pointer; font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; display: inline-flex; gap: .3rem; }
.sortieren:hover, .sortieren:focus-visible { color: var(--text); text-decoration: underline; }
.sortieren::after { content: attr(data-pfeil); }
.kunde { display: inline-flex; align-items: center; gap: .6rem; }
.initialen { flex: none; display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #f0f0f3; color: var(--text-2); font-size: .78rem; font-weight: 600; }

/* ---------- Öffentliche Seite: Kopf und Fuß ---------- */
.kopfleiste { position: sticky; top: 0; z-index: 20; background: rgb(245 245 247 / .78); backdrop-filter: saturate(1.8) blur(16px); -webkit-backdrop-filter: saturate(1.8) blur(16px); border-bottom: 1px solid rgb(0 0 0 / .05); }
.kopfleiste .seite { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.marke { display: flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.marke img { max-height: 42px; width: auto; }
.marke:hover { color: var(--text); }
.kopfleiste nav { margin-left: auto; display: flex; gap: .35rem; align-items: center; }
.kopfleiste nav a { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.6rem; text-decoration: none; color: var(--text); font-weight: 600; font-size: .93rem; padding: .45rem .95rem; border-radius: 999px; transition: background var(--dauer), color var(--dauer); }
.kopfleiste nav a:hover { background: rgb(0 0 0 / .05); color: var(--text); }
.kopfleiste nav a.telefon { background: var(--text); color: #fff; }
.kopfleiste nav a.telefon:hover { background: var(--haupt); color: var(--haupt-text); }
.kopfleiste nav a.whatsapp { background: #25d366; color: #0b3d1f; padding: .45rem .7rem; transition: background var(--dauer), transform var(--dauer) var(--federn), box-shadow var(--dauer); }
.kopfleiste nav a.whatsapp:hover { background: #1da851; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgb(29 168 81 / .8); }
.kopfleiste nav a.whatsapp svg { width: 1.25rem; height: 1.25rem; }
.fusszeile { width: calc(100% - 2.5rem); max-width: 71.5rem; margin: 4rem auto 1.25rem; background: #1d1d1f; color: #c7c7cc; border-radius: var(--radius); padding: 2.25rem 0; font-size: .92rem; }
.fusszeile .seite { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; padding: 0 2rem; }
.fusszeile a { color: #f5f5f7; text-decoration: none; margin-right: 1.25rem; }
.fusszeile a:hover { color: #fff; text-decoration: underline; }

/* ---------- Startseite: Bento-Kopf ---------- */
.bento { display: grid; gap: var(--abstand); grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.25rem; }
.bento > * { animation: aufsteigen .6s var(--federn) both; }
.bento > :nth-child(2) { animation-delay: .08s; }
.bento > :nth-child(3) { animation-delay: .16s; }
.held {
    grid-column: span 2; grid-row: span 2; position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: var(--radius);
    padding: clamp(1.75rem, 4vw, 3.25rem); min-height: 24rem; display: flex; flex-direction: column; justify-content: flex-end;
    background: var(--haupt-dunkel);
}
.held.mit-bild { background: #1d1d1f; }
.held .hintergrund { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.08); animation: heranzoomen 14s ease-out forwards; }
.held.mit-bild::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(10deg, rgb(0 0 0 / .78) 15%, rgb(0 0 0 / .15) 75%); }
.held-logo { align-self: flex-start; margin-bottom: auto; padding: .7rem 1rem; border-radius: 18px; background: rgb(255 255 255 / .94); box-shadow: 0 10px 30px -12px rgb(0 0 0 / .4); }
.held-logo + h1 { margin-top: 2rem; }
.held-logo img { display: block; max-height: 5.5rem; max-width: min(16rem, 60vw); width: auto; }
.held h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; max-width: 21ch; margin: 0 0 .75rem; hyphens: auto; overflow-wrap: break-word; }
.held p { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 34rem; margin: 0 0 1.5rem; color: rgb(255 255 255 / .9); }
.suchfeld { display: flex; gap: .4rem; background: #fff; border-radius: 999px; padding: .35rem; max-width: 34rem; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .45); }
.suchfeld input:not([type=checkbox]) { border: 0 !important; background: transparent !important; border-radius: 999px; padding: .6rem 1rem; box-shadow: none !important; }
.suchfeld button { flex: none; min-height: 2.9rem; padding: 0 1.25rem; }
.bento .kachel-b { background: var(--karte); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--schatten); border: 1px solid var(--rand); display: flex; flex-direction: column; }
.kachel-b .ueber { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 0 0 .25rem; }
.kachel-b .gross-text { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 .75rem; }
.kachel-b label { margin-top: .5rem; font-size: .8rem; color: var(--text-2); }
.kachel-b button { margin-top: auto; }
.kachel-b .zeile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .6rem; margin-bottom: 1.1rem; }
.kachel-b .zeile input { min-width: 0; padding: .6rem .65rem; font-size: .95rem; }
.kachel-b .zeile label { margin-top: 0; margin-bottom: .3rem; }
a.kachel-b { text-decoration: none; color: var(--text); transition: transform .3s var(--federn), box-shadow .3s; }
a.kachel-b:hover { transform: translateY(-4px); box-shadow: var(--schatten-gross); color: var(--text); }
.kachel-b.dunkel { background: #1d1d1f; border-color: #1d1d1f; color: #fff; }
.kachel-b.dunkel .ueber, .kontakt-nummer { color: #a1a1a6; }
.kontakt-nummer { font-weight: 500; }
a.kachel-b.dunkel:hover { color: #fff; }
.kachel-b .rund { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--haupt); color: var(--haupt-text); margin-top: auto; transition: transform .3s var(--federn); }
a.kachel-b:hover .rund { transform: rotate(-12deg) scale(1.08); }
@media (max-width: 860px) {
    .bento { grid-template-columns: 1fr 1fr; }
    .held { grid-column: 1 / -1; grid-row: auto; min-height: 21rem; }
}
@media (max-width: 560px) {
    .bento { grid-template-columns: 1fr; }
    .held { min-height: 0; padding-top: 3rem; }
    .held h1 { font-size: clamp(1.8rem, 8.5vw, 2.4rem); }
    .kopfleiste .marke { font-size: 1rem; }
}

/* ---------- Kategorien und Raster ---------- */
.chips { display: flex; gap: .5rem; margin: 2.25rem 0 1.25rem; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--rand); color: var(--text); font-weight: 600; font-size: .92rem; text-decoration: none; transition: all var(--dauer); }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.aktiv { background: var(--text); border-color: var(--text); color: #fff; }
.chip-zahl { margin-left: .4rem; padding: 0 .45rem; border-radius: 999px; background: var(--flaeche); color: var(--text-2); font-size: .78rem; }
.chip.aktiv .chip-zahl { background: rgb(255 255 255 / .18); color: #fff; }
.ergebnis { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.ergebnis h2 { font-size: 1.6rem; letter-spacing: -.03em; }
.raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 15rem; grid-auto-flow: dense; gap: var(--abstand); }
.objekt { position: relative; isolation: isolate; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--radius); background: #1d1d1f; color: #fff; box-shadow: var(--schatten); transition: transform .35s var(--federn), box-shadow .35s; }
.objekt:hover { transform: translateY(-5px); box-shadow: var(--schatten-gross); }
.objekt:focus-within { outline: 3px solid var(--haupt-mittel); outline-offset: 3px; }
.objekt .bild { position: absolute; inset: 0; z-index: -2; display: grid; place-items: center; color: rgb(255 255 255 / .55); background: var(--haupt-dunkel); }
.objekt .bild img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--federn); }
.objekt:hover .bild img { transform: scale(1.06); }
.objekt::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(0 0 0 / .78) 0%, rgb(0 0 0 / .25) 45%, transparent 70%); }
.objekt .inhalt { width: 100%; padding: 1.1rem 1.2rem; display: flex; align-items: flex-end; gap: .75rem; }
.objekt .text { flex: 1; min-width: 0; }
.objekt h2 { font-size: 1.1rem; margin: 0 0 .15rem; letter-spacing: -.02em; }
.objekt h2 a { color: #fff; text-decoration: none; }
.objekt h2 a::after { content: ""; position: absolute; inset: 0; }
.objekt h2 a:focus-visible { outline: none; }
.objekt p { color: rgb(255 255 255 / .85); font-size: .93rem; margin: .35rem 0 .6rem; max-width: 34rem; display: none; }
.objekt .kategorie { pointer-events: none; position: absolute; top: .9rem; left: .9rem; background: rgb(255 255 255 / .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--text); font-size: .75rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; }
.objekt .ab { font-size: .8rem; color: rgb(255 255 255 / .8); }
.objekt .betrag { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.objekt .pfeil { pointer-events: none; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .92); color: var(--text); transition: background var(--dauer), color var(--dauer), transform .3s var(--federn); }
.objekt:hover .pfeil { background: var(--haupt); color: var(--haupt-text); transform: translateX(3px) rotate(-45deg); }
.objekt.gross { grid-column: span 2; grid-row: span 2; }
.objekt.gross h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); letter-spacing: -.03em; }
.objekt.gross p { display: block; }
.objekt.breit { grid-column: span 2; }
.demnaechst { margin-top: 3rem; }
/* Vorschau-Artikel: kleiner Hinweis statt Preis, eigene Zeilenhöhe (sonst erbt er die große Preiszeile und bricht mit Lücken um). Drei Klassen, damit die Designs es nicht überschreiben. */
.objekt.vorschau-artikel .betrag { font-size: .8rem; line-height: 1.35; white-space: normal; }
.leer { text-align: center; padding: 3rem 1rem; color: var(--text-2); }
.leer svg { color: var(--text-3); }
@media (max-width: 1080px) { .raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 13rem; } .objekt.breit { grid-column: span 1; } }
@media (max-width: 520px) { .raster { grid-template-columns: 1fr; grid-auto-rows: 17rem; } .objekt.gross { grid-column: auto; grid-row: span 1; } }

/* Einblenden beim Scrollen (per JS .sichtbar) */
.einblenden { opacity: 0; transform: translateY(22px) scale(.98); transition: opacity .6s ease, transform .6s var(--federn), box-shadow .35s; }
.einblenden.sichtbar { opacity: 1; transform: none; }
.einblenden.sichtbar:hover { transform: translateY(-5px); }
@keyframes aufsteigen { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
@keyframes heranzoomen { to { transform: scale(1); } }

/* ---------- Mietobjekt-Seite ---------- */
.zurueck { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.6rem; margin: 1.25rem 0 .75rem; padding: 0 1rem 0 .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--rand); text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--text); transition: border-color var(--dauer); }
.zurueck:hover { border-color: var(--text); color: var(--text); }
.objektkopf { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--abstand); align-items: stretch; }
.objektkopf > * { animation: aufsteigen .6s var(--federn) both; }
.objektkopf > :nth-child(2) { animation-delay: .08s; }
.objektkopf > :nth-child(3) { animation-delay: .16s; }
.galerie { grid-row: span 2; background: #fff; border: 1px solid var(--rand); border-radius: var(--radius); padding: .6rem; box-shadow: var(--schatten); display: flex; flex-direction: column; }
.galerie .gross { position: relative; flex: 1; width: 100%; min-height: 18rem; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: calc(var(--radius) - .5rem); overflow: hidden; background: var(--flaeche); display: grid; place-items: center; color: var(--haupt-mittel); cursor: zoom-in; }
.galerie div.gross { background: linear-gradient(150deg, var(--haupt-hell), #e8e8ed); cursor: default; }
.galerie .gross:hover { background: var(--flaeche); }
.galerie .gross img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .5s var(--federn); }
.galerie .gross:hover img { transform: scale(1.02); }
.galerie .lupe { position: absolute; right: .75rem; bottom: .75rem; display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border-radius: 999px; background: rgb(29 29 31 / .75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: .82rem; font-weight: 600; }
.lichtbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(0 0 0 / .96); color: #fff; }
.lichtbox[open] { display: grid; place-items: center; animation: einblenden .2s ease; }
.lichtbox::backdrop { background: transparent; }
.lichtbox img { max-width: calc(100vw - 2rem); max-height: calc(100dvh - 6rem); object-fit: contain; border-radius: 12px; }
.lichtbox button { position: absolute; min-height: 0; width: 3rem; height: 3rem; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .14); color: #fff; }
.lichtbox button:hover { background: rgb(255 255 255 / .28); color: #fff; }
.lichtbox .schliessen { top: 1rem; right: 1rem; }
.lichtbox .zurueck-foto { left: 1rem; top: 50%; translate: 0 -50%; }
.lichtbox .weiter-foto { right: 1rem; top: 50%; translate: 0 -50%; }
.lichtbox .zaehler { position: absolute; bottom: 1rem; left: 0; right: 0; margin: 0; text-align: center; font-size: .9rem; color: #c7c7cc; }
#kalender-bereich.laedt { opacity: .55; pointer-events: none; transition: opacity .15s; }
.galerie .daumen { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; }
.galerie .daumen button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; width: 5.5rem; height: 4.1rem; flex: none; background: none; opacity: .7; }
.galerie .daumen button:hover { opacity: 1; background: none; }
.galerie .daumen button.aktiv { border-color: var(--haupt); opacity: 1; }
.galerie .daumen img { width: 100%; height: 100%; object-fit: cover; }
.objekt-info { display: flex; flex-direction: column; }
.objekt-info h1 { margin-top: .6rem; }
.objekt-info .knopf.breit { margin-top: auto; }
.objektpreis { font-size: 2.3rem; font-weight: 800; letter-spacing: -.035em; margin: .25rem 0 1.25rem; line-height: 1.1; }
.objektpreis small { font-size: 1rem; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.fakten { display: grid; grid-template-columns: 1fr 1fr; gap: var(--abstand); align-content: start; }
.fakt { background: #fff; border: 1px solid var(--rand); border-radius: var(--radius); padding: 1rem 1.1rem; font-size: .88rem; color: var(--text-2); box-shadow: var(--schatten); display: flex; flex-direction: column; gap: .45rem; }
.fakt svg { width: 1.6rem; height: 1.6rem; color: var(--haupt); }
.fakt:last-child:nth-child(odd) { grid-column: 1 / -1; }
.fakt strong { color: var(--text); font-size: 1.05rem; display: block; }
.beschreibung { grid-column: 1 / -1; color: var(--text-2); font-size: 1.02rem; }
.beschreibung h2 { color: var(--text); }
.technik { grid-column: 1 / -1; }
/* Jeder Punkt ein eigenes Feld: Bezeichnung klein oben, Wert groß darunter. */
.technik dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .6rem; }
.technik dl div { padding: .75rem .9rem; border-radius: var(--radius-klein); background: var(--flaeche); border-left: 3px solid var(--haupt); }
.technik dt { color: var(--text-2); font-size: .85rem; }
.technik dd { margin: .2rem 0 0; font-weight: 700; font-size: 1.02rem; overflow-wrap: anywhere; }
.detail-zeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .5rem; margin-top: .5rem; }
@media (max-width: 560px) { .detail-zeile { grid-template-columns: 1fr; padding-bottom: .5rem; border-bottom: 1px solid var(--rand); } }
.fotos { display: flex; flex-wrap: wrap; gap: .5rem; }
.fotos img { width: 12rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
@media (max-width: 860px) {
    .objektkopf { grid-template-columns: minmax(0, 1fr); }
    .galerie { grid-row: auto; }
    .galerie .gross { min-height: 0; }
}
.buchung { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--abstand); align-items: start; margin-top: var(--abstand); }
@media (max-width: 860px) { .buchung { grid-template-columns: minmax(0, 1fr); } }
.schritt { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--text); color: #fff; font-size: .9rem; margin-right: .4rem; vertical-align: 1px; }
.monat { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.monat strong { font-size: 1.05rem; }
.monat a { text-decoration: none; padding: .4rem .8rem; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--text); background: var(--flaeche); }
.monat a:hover { background: var(--haupt-hell); color: var(--haupt-dunkel); }
table.kalender { border-collapse: separate; border-spacing: 4px; width: 100%; table-layout: fixed; }
.kalender th { font-size: .72rem; color: var(--text-3); font-weight: 700; text-transform: uppercase; padding-bottom: .25rem; }
.kalender td { text-align: center; padding: 0; height: 3.1rem; border-radius: 14px; font-size: .95rem; font-weight: 600; transition: background var(--dauer), color var(--dauer); }
.kalender button { width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 14px; background: transparent; color: inherit; font-weight: 600; flex-direction: column; gap: 0; }
.kalender button:hover { background: transparent; box-shadow: inset 0 0 0 2px var(--haupt); transform: none; }
.kalender .frei { background: #ecfdf3; color: #05603a; }
.kalender .knapp { background: var(--gelb-hell); color: #854d0e; }
.kalender .belegt { background: #f0f0f3; color: #a1a1a6; text-decoration: line-through; }
.kalender .vorbei, .kalender .fremd { color: #c7c7cc; font-weight: 400; }
.kalender .keine-uebergabe { background: repeating-linear-gradient(135deg, #fff 0 5px, #d0d7e2 5px 8px); color: #344054; font-weight: 500; outline: 1.5px dashed #8b95a7; outline-offset: -3px; }
.kalender .gewaehlt { background: var(--haupt-hell); color: var(--haupt-dunkel); }
.kalender .rand { background: var(--haupt); color: var(--haupt-text); box-shadow: 0 6px 14px -6px var(--haupt); }
.kalender small { display: block; font-size: .62rem; line-height: 1; font-weight: 500; opacity: .85; }
.legende { font-size: .85rem; color: var(--text-2); display: flex; flex-wrap: wrap; gap: .9rem; }
.legende span::before { content: ""; display: inline-block; width: .8rem; height: .8rem; border-radius: 4px; margin-right: .35rem; vertical-align: -1px; background: var(--farbe); }
.legende .keine-uebergabe-legende::before { background: repeating-linear-gradient(135deg, #fff 0 2px, #b8c1cf 2px 4px); outline: 1px dashed #8b95a7; outline-offset: -1px; }
.zubehoer-wahl label { display: flex; gap: .65rem; align-items: center; font-weight: normal; margin-top: .55rem; }
.zubehoer-wahl input[type=number] { width: 4.5rem !important; flex: none; padding: .45rem .5rem; }
.frei-hinweis { display: block; font-size: .8rem; color: var(--gruen); }
.frei-hinweis.vergeben { color: var(--rot); }
.zubehoer-wahl label:has(input:disabled) { opacity: .6; }
.formatiert > :first-child { margin-top: 0; }
.formatiert h3 { font-size: 1.1rem; margin: 1.25rem 0 .4rem; color: var(--text); }
.formatiert h4 { font-size: 1rem; margin: 1rem 0 .35rem; color: var(--text); }
.formatiert ul, .formatiert ol { padding-left: 1.3rem; }
.formatiert li { margin: .2rem 0; }
.editor { border: 1px solid #d2d2d7; border-radius: var(--radius-klein); background: #fff; overflow: hidden; }
.editor:focus-within { border-color: var(--haupt); box-shadow: 0 0 0 4px color-mix(in srgb, var(--haupt) 18%, transparent); }
.editor-leiste { display: flex; flex-wrap: wrap; gap: .25rem; padding: .4rem; background: var(--flaeche); border-bottom: 1px solid var(--rand); }
.editor-leiste button { min-height: 2.2rem; padding: 0 .7rem; border-radius: 8px; font-size: .85rem; }
.editor-flaeche { min-height: 12rem; max-height: 32rem; overflow-y: auto; padding: .75rem .9rem; outline: none; line-height: 1.6; }
.editor-flaeche > :first-child { margin-top: 0; }
.editor-flaeche h3 { font-size: 1.1rem; margin: 1rem 0 .4rem; }
.editor-flaeche ul, .editor-flaeche ol { padding-left: 1.3rem; }
.widerruf-verzicht { margin-top: 1rem; padding: .8rem 1rem; background: var(--gelb-hell); border-radius: var(--radius-klein); font-size: .9rem; }
.auswahl { background: var(--flaeche); border-radius: var(--radius-klein); padding: .9rem 1rem; border-left: 3px solid var(--haupt); margin: 0 0 1rem; transition: background var(--dauer); }
.auswahl strong { display: block; color: var(--text); }
/* Handy: Preis und Anfrage-Knopf unten festhalten, bis der Kalender erreicht ist */
.handy-anfrage { display: none; }
@media (max-width: 860px) {
    .handy-anfrage { display: flex; position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 25; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .6rem .6rem 1.2rem; border-radius: 999px; background: rgb(29 29 31 / .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; box-shadow: var(--schatten-gross); transition: transform .35s var(--federn), opacity .35s; }
    .handy-anfrage strong { font-size: 1.1rem; }
    .handy-anfrage small { color: #a1a1a6; }
    .handy-anfrage.weg { transform: translateY(150%); opacity: 0; }
}

/* Kachel „Fragen?“ mit Anruf- und WhatsApp-Knopf */
.kontakt-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.kontakt-knoepfe .knopf { flex: 1 1 8rem; min-height: 2.9rem; box-shadow: none; }
.knopf.whatsapp { background: #25d366; border-color: #25d366; color: #0b3d1f; }
.knopf.whatsapp:hover { background: #1da851; border-color: #1da851; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgb(29 168 81 / .9); }
.knopf.whatsapp svg, .kontakt-knoepfe svg { width: 1.2rem; height: 1.2rem; }

/* WhatsApp-Knopf unten rechts */
.whatsapp-knopf { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 24; display: inline-flex; align-items: center; gap: .5rem; min-height: 3.25rem; padding: 0 1.25rem 0 1rem; border-radius: 999px; background: #25d366; color: #0b3d1f; font-weight: 700; text-decoration: none; box-shadow: 0 12px 28px -10px rgb(0 0 0 / .45); transition: transform .3s var(--federn), box-shadow .3s, background .2s, color .2s, bottom .35s var(--federn); animation: aufsteigen .6s .6s var(--federn) backwards; }
.whatsapp-knopf svg { width: 1.6rem; height: 1.6rem; }
.whatsapp-knopf:hover { background: #1da851; color: #fff; transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 34px -12px rgb(0 0 0 / .5); }
/* Am Handy gibt es kein Hover: sichtbares Eindrücken beim Antippen. */
.whatsapp-knopf:active, .knopf.whatsapp:active, .kopfleiste nav a.whatsapp:active, .kopfleiste nav a.telefon:active { transform: scale(.93); background: #1da851; transition-duration: .08s; }
.kopfleiste nav a.telefon:active { background: var(--haupt); }
@media (max-width: 860px) {
    .whatsapp-knopf { right: .9rem; bottom: .9rem; width: 3.4rem; height: 3.4rem; padding: 0; justify-content: center; }
    .whatsapp-knopf span { display: none; }
    body:has(.handy-anfrage:not(.weg)) .whatsapp-knopf { bottom: 5.1rem; }
}

/* Unterschrift im Vollbild (Handy/Tablet): Querformat, unten 30 px Leiste */
.nur-touch { display: none; }
@media (pointer: coarse) { .nur-touch { display: block; } }
.unterschrift-vollbild { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 1000; background: #fff; display: flex; flex-direction: column; overscroll-behavior: contain; }
.unterschrift-vollbild.gedreht { width: 100vh; width: 100dvh; height: 100vw; transform-origin: top left; transform: rotate(90deg) translateY(-100%); }
.unterschrift-vollbild canvas { display: block; flex: none; touch-action: none; background: #fff; }
.unterschrift-tipp { position: absolute; left: 0; right: 0; top: 40%; margin: 0; text-align: center; color: #c7c7cc; font-size: 1.4rem; pointer-events: none; border-bottom: 1px dashed #d2d2d7; padding-bottom: .5rem; margin: 0 8%; }
.unterschrift-vollbild.begonnen .unterschrift-tipp { color: transparent; }
.unterschrift-leiste { height: 30px; flex: none; display: flex; border-top: 1px solid var(--rand); }
.unterschrift-leiste button { flex: 1; min-height: 0; height: 30px; padding: 0; border: 0; border-radius: 0; font-size: .85rem; }
.unterschrift-leiste [data-ok] { background: var(--haupt); color: var(--haupt-text); }
.unterschrift-leiste [data-ok]:hover { background: var(--haupt-dunkel); color: var(--haupt-text); }
.unterschrift canvas { cursor: crosshair; }

/* ---------- Anmeldung ---------- */
.anmelden { width: calc(100% - 2rem); max-width: 25rem; margin: 10vh auto 2rem; }
.anmelden .marke { justify-content: center; margin-bottom: 1rem; }

/* ---------- Verwaltung ---------- */
.verwaltung-rahmen { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); min-height: 100vh; }
.seitenleiste { background: #1d1d1f; color: #c7c7cc; padding: 1rem .75rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.seitenleiste .marke { color: #fff; padding: .5rem .6rem 1.25rem; font-size: 1rem; }
.seitenleiste .marke img { max-height: 34px; background: #fff; border-radius: 8px; padding: 2px; }
.seitenleiste nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: var(--radius-klein); color: #c7c7cc; text-decoration: none; font-weight: 500; font-size: .94rem; transition: background var(--dauer), color var(--dauer); }
.seitenleiste nav a svg { width: 1.15rem; height: 1.15rem; flex: none; opacity: .85; }
.seitenleiste nav a:hover { background: rgb(255 255 255 / .08); color: #fff; }
.seitenleiste nav a.aktiv { background: var(--haupt); color: var(--haupt-text); }
.seitenleiste nav a .zahl-marke { margin-left: auto; background: #f59e0b; color: #111827; font-size: .72rem; font-weight: 800; border-radius: 999px; padding: .05rem .45rem; }
.seitenleiste .gruppe { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #8e8e93; margin: 1.1rem .75rem .35rem; }
.seitenleiste .konto { margin-top: auto; padding: .9rem .6rem 0; border-top: 1px solid rgb(255 255 255 / .1); font-size: .88rem; }
.seitenleiste .konto button { width: 100%; margin-top: .5rem; background: transparent; color: #c7c7cc; border-color: #3a3a3c; }
.seitenleiste .konto button:hover { background: rgb(255 255 255 / .08); color: #fff; }
.inhalt-bereich { padding: 1.75rem clamp(1rem, 3vw, 2.5rem) 3rem; max-width: 80rem; width: 100%; }
.mobilleiste { display: none; }
.menue-zu { display: none; }
@media (max-width: 900px) {
    .verwaltung-rahmen { grid-template-columns: minmax(0, 1fr); }
    .seitenleiste { position: fixed; inset: 0 auto 0 0; width: 17rem; z-index: 40; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--schatten-gross); }
    .menu-offen .seitenleiste { transform: none; }
    .menue-zu { display: inline-flex; position: absolute; top: .9rem; right: .75rem; z-index: 1; min-height: 0; width: 2.4rem; height: 2.4rem; padding: 0; background: transparent; border-color: #3a3a3c; color: #fff; border-radius: var(--radius-klein); }
    .menue-zu:hover { background: rgb(255 255 255 / .08); color: #fff; }
    .seitenleiste .marke { padding-right: 3.2rem; }
    .menu-offen::after { content: ""; position: fixed; inset: 0; background: rgb(15 23 42 / .45); z-index: 30; }
    .mobilleiste { display: flex; align-items: center; gap: .75rem; position: sticky; top: 0; z-index: 20; background: #1d1d1f; color: #fff; padding: .6rem 1rem; }
    .mobilleiste button { background: transparent; border-color: #3a3a3c; color: #fff; padding: .45rem .7rem; border-radius: var(--radius-klein); }
    .mobilleiste .marke { color: #fff; font-size: 1rem; }
    .inhalt-bereich { padding-top: 1.25rem; }
    .buchung .karte, .karte { padding: 1.15rem; }
    button, .knopf { min-height: 2.75rem; }
}
/* Einstellungen: Reiter und immer sichtbare Speicherleiste */
.reiter { position: sticky; top: 0; z-index: 10; display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; margin: -1.5rem -1.5rem 1.5rem; padding: .75rem 1.5rem; background: rgb(255 255 255 / .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rand); border-radius: var(--radius) var(--radius) 0 0; }
.reiter button { flex: none; min-height: 2.5rem; padding: 0 1rem; border: 0; background: transparent; color: var(--text-2); font-size: .92rem; }
.reiter button:hover { background: var(--flaeche); color: var(--text); }
.reiter button[aria-selected="true"] { background: var(--text); color: #fff; }
.reiter-inhalt > h2:first-child { margin-top: 0; }
.speicherleiste { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: flex-end; gap: 1rem; flex-wrap: wrap; margin: 1.5rem -1.5rem -1.5rem; padding: .85rem 1.5rem; background: rgb(255 255 255 / .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--rand); border-radius: 0 0 var(--radius) var(--radius); }
.speicherleiste button { min-width: 10rem; }
@media (max-width: 900px) {
    .reiter { top: 3.3rem; margin: -1.15rem -1.15rem 1.15rem; padding: .6rem 1.15rem; }
    .speicherleiste { margin: 1.15rem -1.15rem -1.15rem; padding: .7rem 1.15rem; }
    .speicherleiste .hinweis { display: none; }
    .speicherleiste button { flex: 1; }
}

/* Fotos im Formular: vorhandene und neu gewählte als Raster */
.foto-raster, .foto-vorschau { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .75rem; margin: .5rem 0; }
.foto-vorschau:empty { display: none; }
.foto-eintrag { background: var(--flaeche); border-radius: var(--radius-klein); padding: .4rem; font-size: .82rem; }
.foto-eintrag img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; margin-bottom: .3rem; }
.foto-eintrag label { margin: .2rem 0 0; font-weight: normal; font-size: .82rem; display: flex; gap: .35rem; align-items: center; }
.foto-eintrag button { min-height: 0; padding: .25rem .6rem; font-size: .8rem; width: 100%; }
.reihenfolge { white-space: nowrap; }
.reihenfolge form { display: inline; }
.reihenfolge button { min-height: 0; width: 2.2rem; height: 2.2rem; padding: 0; }

/* Rechtstexte (Impressum, Datenschutz, AGB, Widerruf): Karte so breit wie Kopf- und Fußzeile, Text gut lesbar begrenzt */
.rechtstext { padding: clamp(1.25rem, 3vw, 2.5rem); }
.rechtstext > * { max-width: 48rem; }
.rechtstext h2 { margin-top: 1.75rem; }

/* Lizenz */
.lizenz-hinweis { border-left: 4px solid var(--haupt); margin-bottom: 1rem; }
.lizenz-hinweis .zustimmung { margin: .6rem 0 .8rem; }
.lizenztext { white-space: pre-wrap; font-size: .82rem; background: var(--flaeche); border-radius: var(--radius-klein); padding: 1rem; max-height: 40rem; overflow: auto; }

/* „Powered by Mietio“ */
.fusszeile .powered { margin: 1.5rem 2rem 0; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .1); font-size: .8rem; color: #8e8e93; }
.fusszeile .powered a { color: #c7c7cc; margin: 0; }
.seitenleiste .powered { margin: .6rem 0 0; font-size: .75rem; color: #8e8e93; }
.seitenleiste .powered a { color: #c7c7cc; text-decoration: none; }
.powered { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.powered img { height: 1.4rem; width: auto; vertical-align: middle; }
.fusszeile .powered img { background: #fff; border-radius: .4rem; padding: .15rem .4rem; box-sizing: content-box; }

/* Hilfe */
.hilfe { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--abstand); align-items: start; }
.hilfe-inhalt { position: sticky; top: 1rem; }
.hilfe-inhalt ol { margin: .5rem 0 0; padding-left: 1.2rem; }
.hilfe-inhalt li { margin: .35rem 0; }
.hilfe-text section + section { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rand); }
.hilfe-text section { scroll-margin-top: 1rem; }
.hilfe-text h2 { font-size: 1.45rem; }
.hilfe-text h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.hilfe-text li { margin: .35rem 0; }
.hilfe .bild { margin: 1rem 0 1.5rem; }
.hilfe .bild img { display: block; max-width: 100%; max-height: 42rem; width: auto; border: 1px solid var(--rand); border-radius: var(--radius-klein); box-shadow: var(--schatten); }
.hilfe .bild figcaption { font-size: .85rem; color: var(--text-2); margin-top: .5rem; }
.hilfe .tipp { background: var(--flaeche); border-left: 4px solid var(--haupt); border-radius: var(--radius-klein); padding: .8rem 1rem; }
.hilfe .fragen dt { font-weight: 700; margin-top: 1rem; }
.hilfe .fragen dd { margin: .25rem 0 0; color: var(--text-2); }
@media (max-width: 1000px) { .hilfe { grid-template-columns: 1fr; } .hilfe-inhalt { position: static; } }

/* QR-Code zur Verwaltung (Einstellungen) */
.handy-zugang { display: flex; gap: 1.5rem; align-items: center; margin-bottom: var(--abstand); }
.handy-zugang h2 { margin-top: 0; }
.handy-zugang .qr { flex: none; width: 160px; height: 160px; padding: 8px; background: #fff; border: 1px solid var(--rand); border-radius: var(--radius-klein); }
.handy-zugang .qr svg { display: block; width: 100%; height: 100%; }
.handy-zugang code { word-break: break-all; }
/* Am Handy ist man schon auf dem Handy: QR-Code dort ausblenden. */
@media (max-width: 760px) { .handy-zugang { display: none; } }

/* Statistik */
.statistik-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.25rem; }
.statistik .zahl { text-align: right; white-space: nowrap; }
.balken { width: 6rem; height: .55rem; border-radius: 999px; background: #e8e8ed; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: .35rem; }
.balken span { display: block; height: 100%; border-radius: 999px; background: var(--haupt); }
.empfehlung { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }
.empfehlung.nachkauf { background: var(--gelb-hell); color: #854d0e; }
.empfehlung.wenig { background: #f0f0f3; color: var(--text-2); }

.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: var(--abstand); margin-bottom: 1.5rem; }
@media (max-width: 760px) {
    .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .kachel { padding: .8rem .9rem; }
    .kachel .wert, .kachel .wert[style] { font-size: 1.35rem !important; }
    .kachel .titel { font-size: .8rem; line-height: 1.3; }
}
.kachel { background: #fff; border: 1px solid var(--rand); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--schatten); text-decoration: none; color: var(--text); transition: transform .3s var(--federn), box-shadow .3s; display: block; }
a.kachel:hover { transform: translateY(-3px); box-shadow: var(--schatten-gross); color: var(--text); }
.kachel .wert { font-size: 2.1rem; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.kachel .titel { color: var(--text-2); font-size: .9rem; }
.kachel.warnung .wert { color: var(--rot); }
.kachel.gut .wert { color: var(--gruen); }
.termine { list-style: none; padding: 0; margin: 0; }
.termine li { display: flex; gap: .8rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid #f0f0f3; }
.termine li:last-child { border-bottom: 0; }
.termine .art { font-size: .72rem; font-weight: 800; text-transform: uppercase; padding: .2rem .55rem; border-radius: 6px; background: var(--haupt-hell); color: var(--haupt-dunkel); flex: none; }
.termine .art.rueck { background: #ede9fe; color: #6d28d9; }
.termine .art { width: 6.5rem; text-align: center; }
.termine .wann { flex: none; width: 5.5rem; }
.termine .wer { display: flex; flex-direction: column; min-width: 0; }
.termine .wer .hinweis { font-size: .85rem; }
.zwei-spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--abstand); }
@media (max-width: 900px) { .zwei-spalten { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .nur-gross, .kopfleiste nav a.nur-gross, .whatsapp-knopf { display: none; } }
@media (min-width: 641px) { .nur-klein, .kopfleiste nav a.nur-klein { display: none; } }

/* Fußzeile auf kurzen Seiten unten halten, Kalender beim Ausfüllen mitführen */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main.seite { flex: 1; width: 100%; }
body > .seite { width: 100%; }
.held .held-logo + h1 { margin-top: 1.5rem; }
body > .verwaltung-rahmen { flex: 1; }
@media (min-width: 861px) { .buchung > section:first-child { position: sticky; top: 5rem; } }

/* Kalender der Verwaltung */
.monatsplan-rahmen { overflow-x: auto; }
table.monatsplan { width: 100%; min-width: 720px; table-layout: fixed; border-collapse: separate; border-spacing: 3px; }
.monatsplan th { font-size: .72rem; color: var(--text-3); text-transform: uppercase; padding-bottom: .25rem; }
.monatsplan td { vertical-align: top; height: 6.5rem; padding: .3rem; border-radius: var(--radius-klein); background: #fff; border: 1px solid var(--rand); font-size: .75rem; }
.monatsplan td.fremd { opacity: .45; }
.monatsplan td.ohne-uebergabe { background: repeating-linear-gradient(135deg, #f5f5f7 0 6px, #ececf0 6px 12px); color: var(--text-3); }
.monatsplan th.ohne-uebergabe { color: #b0b0b5; }
.legende .muster-offen::before { background: #fff; border: 1px dashed var(--text-3); }
.legende .muster-ohne::before { background: repeating-linear-gradient(135deg, #f5f5f7 0 3px, #dcdce2 3px 6px); }
.monatsplan td.gesperrt { background: var(--rot-hell); }
.monatsplan td.heute .tag { background: var(--haupt); color: var(--haupt-text); }
.monatsplan td.markiert { box-shadow: inset 0 0 0 2px var(--haupt); }
.monatsplan .tag { min-height: 0; padding: .1rem .45rem; border: 0; border-radius: 999px; background: transparent; font-size: .8rem; font-weight: 700; margin-bottom: .2rem; }
.monatsplan .eintrag { display: block; padding: .15rem .35rem; margin-top: .15rem; border-radius: 6px; background: var(--haupt-hell); color: var(--haupt-dunkel); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.monatsplan .eintrag.rueck { background: #eef2ff; color: #3730a3; }
.monatsplan .eintrag.offen { background: #fff; border: 1px dashed currentColor; }
.monatsplan .eintrag.sperre { background: #fff; color: var(--rot); font-weight: 600; }
.monatsplan .eintrag.sonderpreis { background: #fff4dc; color: #8a5300; font-weight: 600; }
.monatsplan .eintrag.laeuft { background: transparent; color: var(--text-2); }
.monat-termine { display: none; }
@media (max-width: 760px) {
    /* Handy: kompakter Monat mit Punkten, die Termine stehen darunter als Liste. */
    .monatsplan-rahmen { overflow: visible; }
    table.monatsplan { min-width: 0; border-spacing: 2px; }
    .monatsplan th { font-size: .65rem; }
    .monatsplan td { height: 2.9rem; padding: .15rem 0; text-align: center; font-size: 0; line-height: 0; }
    .monatsplan .tag { display: block; margin: 0 auto .2rem; padding: .15rem .35rem; font-size: .78rem; line-height: 1.2; }
    .monatsplan .eintrag { display: inline-block; width: .45rem; height: .45rem; margin: 0 1px; padding: 0; border: 0; border-radius: 50%; background: var(--haupt); vertical-align: top; }
    .monatsplan .eintrag.rueck { background: #6366f1; }
    .monatsplan .eintrag.offen { background: #fff; border: 1px solid currentColor; }
    .monatsplan .eintrag.sperre, .monatsplan .eintrag.sonderpreis, .monatsplan .eintrag.laeuft { display: none; }
    .monat-termine { display: block; margin-top: 1rem; border-top: 1px solid var(--rand); }
    .monat .monat-name { display: none; }
}
.sperrliste { list-style: none; padding: 0; margin: 0; }
.sperrliste li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .5rem 0; border-top: 1px solid var(--rand); }
.wochentage { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }

/* Animation beim Absenden der Anfrage */
.sende-animation { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; background: rgb(245 245 247 / .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: einblenden .25s ease both; }
.sende-animation[hidden] { display: none; }
.sende-karte { width: min(22rem, 100%); padding: 2rem 1.5rem 1.6rem; border-radius: var(--radius); background: #fff; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .3); text-align: center; animation: aufsteigen .45s var(--federn) both; }
.sende-bild { position: relative; isolation: isolate; width: 5.5rem; height: 5.5rem; margin: 0 auto 1rem; }
.sende-kern { position: absolute; inset: 0; z-index: 1; border-radius: 50%; background: var(--haupt-hell); color: var(--haupt); }
/* Punkte auf einer schrägen Umlaufbahn: vorn groß und vor der Scheibe, hinten klein, blass und dahinter verschwunden. */
.sende-punkt { position: absolute; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--haupt); offset-path: path("M 44 20 A 64 24 0 1 1 44 68 A 64 24 0 1 1 44 20"); offset-rotate: 0deg; animation: umlauf 2s linear var(--d) infinite; }
@keyframes umlauf {
    0% { offset-distance: 0%; transform: scale(.45); opacity: .3; z-index: 0; }
    24% { z-index: 0; }
    26% { z-index: 2; }
    50% { transform: scale(1.2); opacity: 1; }
    74% { z-index: 2; }
    76% { z-index: 0; }
    100% { offset-distance: 100%; transform: scale(.45); opacity: .3; z-index: 0; }
}
.schritt-bild { position: absolute; inset: 1.4rem; width: 2.7rem; height: 2.7rem; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--federn); }
.schritt-bild.aktiv { opacity: 1; transform: none; animation: var(--bewegung); }
.sende-animation.grau { background: rgb(29 29 31 / .62); backdrop-filter: blur(6px) grayscale(1); -webkit-backdrop-filter: blur(6px) grayscale(1); }
.sende-hinweis { margin: 1rem 0 0; padding: .65rem .8rem; border-radius: var(--radius-klein); background: var(--gelb-hell); color: #854d0e; font-weight: 700; font-size: .9rem; }
@keyframes drehen-langsam { to { transform: rotate(360deg); } }
@keyframes pulsieren { from { transform: scale(.94); } to { transform: scale(1.06); } }
@keyframes laden { 0% { transform: translateY(-5px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(5px); opacity: 0; } }
.sende-text { margin: 0 0 .8rem; font-weight: 700; font-size: 1.05rem; }
.sende-punkte { display: flex; justify-content: center; gap: .4rem; }
.sende-punkte span { width: .5rem; height: .5rem; border-radius: 50%; background: var(--haupt); animation: punkt 1s ease-in-out infinite; }
.sende-punkte span:nth-child(2) { animation-delay: .15s; }
.sende-punkte span:nth-child(3) { animation-delay: .3s; }
@keyframes drehen { to { transform: rotate(360deg); } }
@keyframes schreiben { from { transform: translate(-3px, 2px) rotate(-8deg); } to { transform: translate(3px, -2px) rotate(6deg); } }
@keyframes wippen { from { transform: translateY(2px) scale(.96); } to { transform: translateY(-3px) scale(1.04); } }
@keyframes abfliegen { 0% { transform: translate(-6px, 6px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translate(14px, -14px); opacity: 0; } }
@keyframes punkt { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
    .sende-punkt { display: none; }
    .schritt-bild, .sende-punkte span { animation: none !important; }
}
summary.knopf { list-style: none; }
details.aufklappen > summary { display: flex; align-items: center; gap: .7rem; cursor: pointer; }
details.aufklappen > summary h2 { margin: 0; }
details.aufklappen[open] > summary { margin-bottom: .8rem; }
summary.knopf::-webkit-details-marker { display: none; }

/* Einstellungen: Auswahl des Designs mit Beispielbild */
.design-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .75rem; margin-top: .75rem; }
/* Fieldsets wachsen sonst mit ihrem breitesten Inhalt mit und ragen am Handy heraus. */
fieldset { min-width: 0; }
@media (max-width: 760px) { .design-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
fieldset label.design-karte { display: flex; flex-direction: column; gap: .3rem; margin: 0; padding: .6rem; border: 2px solid var(--rand); border-radius: var(--radius-klein); cursor: pointer; transition: border-color var(--dauer); }
.design-karte:hover { border-color: var(--haupt-mittel); }
.design-karte:has(input:checked) { border-color: var(--haupt); background: var(--haupt-hell); }
.design-karte input { position: absolute; opacity: 0; }
.design-karte:has(input:focus-visible) { outline: 3px solid var(--haupt-mittel); outline-offset: 2px; }
.design-karte img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--rand); }
.design-karte .hinweis { font-size: .82rem; }
.design-karte a { font-size: .85rem; margin-top: auto; }
