:root {
  --holz: #2f2a24; --holz-2: #3d362e; --hell: #f3eee6; --flaeche: #f4f1ec; --karte: #fff; --tinte: #26231f; --text-2: #6b655c;
  --linie: #e4dfd6; --linie-2: #d3ccc0; --akzent: #9a5b25; --akzent-dunkel: #7d4718; --akzent-hell: #f5e9dc; --gold: #d9a46a;
  --ok: #2f7d4f; --ok-hell: #e3f3e8; --fehler: #b23a2e; --fehler-hell: #fbe4e1; --warnung: #96650f; --warnung-hell: #f6ead0;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif; background: var(--flaeche); color: var(--tinte);
  font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--akzent-dunkel); }
.kopf { background: var(--holz); color: var(--hell); padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
.kopf-innen { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.kopf .marke { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 17px; }
.kopf .marke img { width: 32px; height: 32px; border-radius: 8px; }
.kopf .zurueck { color: inherit; text-decoration: none; font-size: 32px; line-height: 1; padding: 0 6px 4px 0; }
main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 20px 16px 40px; }
h1 { font-size: 24px; margin: 4px 0 6px; line-height: 1.25; }
h2 { font-size: 18px; margin: 0 0 8px; }
.unter { color: var(--text-2); margin: 0 0 18px; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(40,30,20,.06); }
.kacheln { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .kacheln { grid-template-columns: 1fr 1fr; } }
.kachel { display: flex; gap: 14px; align-items: center; background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: 16px; text-decoration: none; color: inherit; box-shadow: 0 1px 3px rgba(40,30,20,.06); }
.kachel:hover { border-color: var(--akzent); }
.kachel .sym { width: 46px; height: 46px; border-radius: 12px; background: var(--akzent-hell); color: var(--akzent); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.kachel b { display: block; font-size: 16px; }
.kachel span { color: var(--text-2); font-size: 14px; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--akzent-hell); color: var(--akzent-dunkel); }
.pill.ok { background: var(--ok-hell); color: var(--ok); } .pill.warnung { background: var(--warnung-hell); color: var(--warnung); }
.text-2 { color: var(--text-2); } .klein { font-size: 13px; }
label.feld { display: block; margin-bottom: 12px; }
label.feld > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.eingabe { border: 1px solid var(--linie-2); border-radius: 10px; background: #fff; display: flex; overflow: hidden; }
.eingabe:focus-within { border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(154,91,37,.15); }
.eingabe input, .eingabe textarea, .eingabe select { border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; padding: 11px 12px; width: 100%; min-width: 0; color: inherit; -webkit-appearance: none; appearance: none; border-radius: 0; }
.eingabe textarea { min-height: 110px; resize: vertical; }
.zwei { display: grid; gap: 0 12px; grid-template-columns: 1fr; } @media (min-width: 560px) { .zwei { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips label { cursor: pointer; } .chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 14px; border: 1px solid var(--linie-2); border-radius: 999px; background: #fff; font-size: 15px; }
.chips input:checked + span { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(154,91,37,.3); }
.haken { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; cursor: pointer; font-size: 15px; }
.haken input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--akzent); flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--linie-2); background: #fff; color: var(--tinte); border-radius: 10px; padding: 12px 18px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.primaer { background: var(--akzent); border-color: var(--akzent); color: #fff; width: 100%; }
.btn.primaer:hover { background: var(--akzent-dunkel); }
.btn.laedt { animation: pulsieren 1s ease-in-out infinite; pointer-events: none; }
@keyframes pulsieren { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.fotos { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.fotos .foto { position: relative; width: 86px; height: 86px; border-radius: 10px; overflow: hidden; background: var(--linie); }
.fotos .foto img { width: 100%; height: 100%; object-fit: cover; }
.fotos .foto button { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 14px; line-height: 24px; padding: 0; }
.fotos .neu { width: 86px; height: 86px; border-radius: 10px; border: 1.5px dashed var(--linie-2); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-2); font-size: 12px; cursor: pointer; background: #fff; }
.fotos .neu b { font-size: 26px; line-height: 1; }
.fehlertext { background: var(--fehler-hell); color: var(--fehler); padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; display: none; }
.erfolg { text-align: center; padding: 30px 16px; }
.erfolg .sym { font-size: 52px; }
.versteckt { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.platz { display: flex; gap: 12px; align-items: flex-start; }
.platz input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--akzent); flex-shrink: 0; }
.platz .preis { font-weight: 700; white-space: nowrap; }
.platz-kopf { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.info h2 { color: var(--akzent-dunkel); }
.info p { margin: 0 0 10px; } .info ul { margin: 0 0 10px; padding-left: 20px; }
.fuss { text-align: center; padding: 18px 16px 28px; font-size: 13px; color: var(--text-2); }
.fuss a { color: var(--text-2); margin: 0 10px; }
.held { text-align: center; padding: 10px 0 20px; }
.held img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 8px 26px rgba(0,0,0,.18); }
/* Mieter-Portal */
#p-app { padding-bottom: 76px; }
nav.unten { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--linie); display: flex; justify-content: center;
  padding-bottom: env(safe-area-inset-bottom); z-index: 20; box-shadow: 0 -2px 10px rgba(0,0,0,.05); }
nav.unten button { flex: 1; max-width: 190px; border: 0; background: transparent; font: inherit; font-size: 12px; color: var(--text-2); padding: 8px 4px 9px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
nav.unten button span { font-size: 21px; line-height: 1.1; filter: grayscale(1); opacity: .7; }
nav.unten button.aktiv { color: var(--akzent-dunkel); font-weight: 700; }
nav.unten button.aktiv span { filter: none; opacity: 1; }
.zeile { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--linie); }
.karte h2 + .zeile, .karte .zeile:first-child { border-top: 0; }
.zeile > span:last-child { text-align: right; white-space: nowrap; }
.trenner { height: 1px; background: var(--linie); margin: 8px 0; }
.gross-zahl .wert { font-size: 26px; font-weight: 800; margin: 2px 0; }
.negativ { color: var(--fehler); } .positiv { color: var(--ok); }
.klickbar { cursor: pointer; }
.hinweis-box { background: var(--akzent-hell); color: var(--akzent-dunkel); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-top: 8px; }
.dok { display: flex; align-items: center; gap: 12px; }
.dok-icon { font-size: 26px; } .dok-text { flex: 1; min-width: 0; } .dok-text b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dok .btn { padding: 8px 12px; font-size: 14px; }
.tagwahl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tagwahl .btn { padding: 8px 16px; } .tagwahl .btn:disabled { opacity: .35; }
.leiste { display: flex; gap: 2px; margin: 4px 0 8px; }
.slot { flex: 1; height: 34px; border-radius: 4px; position: relative; min-width: 0; }
.slot span { position: absolute; bottom: -17px; left: 0; font-size: 10px; color: var(--text-2); }
.slot.frei { background: var(--ok-hell); } .slot.belegt { background: #d9d3c8; } .slot.meins { background: var(--akzent); } .slot.vorbei { background: #eeeae3; }
.legende { margin-top: 20px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--text-2); }
.legende .slot { flex: none; width: 14px; height: 14px; display: inline-block; margin-left: 6px; }
.verwaltung-link { display: block; text-align: center; margin-top: 26px; font-size: 14px; color: var(--text-2); }
