/* Hof Drumbergen – klares, ruhiges Design (angelehnt an apple.com) */
:root {
  /* Farbwelt (wird je nach Einstellung unten überschrieben) */
  --akzent: #2d5a3d; --akzent-tief: #1f3f2b; --akzent-mittel: #3f7652; --akzent-hell: #e9f1ec;
  --leiste-farbe: #1e3528;
  /* Neutrale Töne */
  --hintergrund: #f5f5f7; --papier: #ffffff; --flaeche: #f5f5f7; --flaeche-stark: #e8e8ed;
  --linie: #e5e5ea; --linie-stark: #d2d2d7;
  --text: #1d1d1f; --leise: #6e6e73; --sehr-leise: #86868b;
  /* Signalfarben – gedeckt */
  --rot: #c4352b; --rot-hell: #fdecea; --blau: #0a66c2; --blau-hell: #e8f1fb; --lila: #6e4bb5; --lila-hell: #f1ecfa;
  --orange: #b25e09; --orange-hell: #fdf1e3; --gelb-text: #8a6100; --gelb-hell: #fdf6e0;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Inter, Roboto, Arial, sans-serif;
  --anzeige: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Inter, Roboto, Arial, sans-serif;
  --serif: var(--anzeige);
  --radius: 18px; --radius-klein: 10px;
  --schatten: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 12px rgba(0, 0, 0, .04);
  --schatten-hover: 0 2px 4px rgba(0, 0, 0, .05), 0 10px 28px rgba(0, 0, 0, .08);
  --leiste: 250px;
}
body[data-farbe="wiese"] { --akzent: #3d6b2f; --akzent-tief: #2c5021; --akzent-mittel: #548a42; --akzent-hell: #edf4e8; --leiste-farbe: #243d1c; }
body[data-farbe="erde"] { --akzent: #6e4f33; --akzent-tief: #553c26; --akzent-mittel: #8c6a4a; --akzent-hell: #f4eee7; --leiste-farbe: #3a2a1c; }
body[data-farbe="taube"] { --akzent: #1f5f8b; --akzent-tief: #174a6d; --akzent-mittel: #3a7cab; --akzent-hell: #e9f1f7; --leiste-farbe: #17324a; }
body[data-farbe="graphit"] { --akzent: #1d1d1f; --akzent-tief: #000000; --akzent-mittel: #48484a; --akzent-hell: #ededf0; --leiste-farbe: #1d1d1f; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--sans); background: var(--hintergrund); color: var(--text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: -.01em; }
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, .serif { font-family: var(--anzeige); font-weight: 600; color: var(--text); letter-spacing: -.022em; }
h1 { font-size: 2rem; margin: .1rem 0 1.2rem; line-height: 1.12; font-weight: 700; }
h2 { font-size: 1.2rem; margin: 0 0 .8rem; line-height: 1.25; }
h3 { font-size: 1rem; margin: 1.1rem 0 .5rem; }
hr { border: 0; border-top: 1px solid var(--linie); margin: 1.2rem 0; }
code { font-size: .9em; background: var(--flaeche); padding: .05rem .35rem; border-radius: 6px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Navigation ---------- */
.seitenleiste { display: none; }
.kopf-mobil { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: .55rem 1rem; padding-top: max(.55rem, env(safe-area-inset-top));
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--linie); color: var(--text); }
.marke { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none;
  font-family: var(--anzeige); font-size: 1.05rem; font-weight: 600; letter-spacing: -.015em; }
.marke:hover { text-decoration: none; }
.marke img { width: 30px; height: 30px; border-radius: 7px; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--flaeche-stark); color: var(--text); font-weight: 600; font-size: .8rem; text-decoration: none; flex-shrink: 0; }
.avatar:hover { text-decoration: none; }
.unten { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex;
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--linie); padding-bottom: env(safe-area-inset-bottom); }
.unten a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .45rem 0 .4rem;
  text-decoration: none; color: var(--sehr-leise); font-size: .66rem; font-weight: 500; }
.unten a.aktiv { color: var(--akzent); }
.unten a.plus .icon { background: var(--akzent); color: #fff; border-radius: 50%; padding: 6px; width: 32px; height: 32px; margin-top: -4px; }
body.mit-navi .inhalt { padding-bottom: 90px; }
.mobil-verwaltung { text-align: center; margin-top: 2rem; }
.mobil-verwaltung a { display: inline-flex; gap: .4rem; align-items: center; color: var(--leise); margin: 0 .8rem; }

@media (min-width: 900px) {
  .seitenleiste { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: var(--leiste);
    background: var(--leiste-farbe); color: #f5f5f7; padding: 1.3rem .9rem; z-index: 30; }
  .seitenleiste .marke { padding: .2rem .6rem 1.3rem; font-size: 1.08rem; }
  .seitenleiste .neu-knopf { background: #fff; color: var(--text); margin: 0 .3rem 1.3rem; }
  .seitenleiste .neu-knopf:hover { background: #f0f0f2; }
  .hauptnav { display: flex; flex-direction: column; gap: 2px; }
  .hauptnav a, .nutzer a { display: flex; align-items: center; gap: .75rem; padding: .55rem .8rem; border-radius: 10px;
    color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .95rem; }
  .hauptnav a:hover, .nutzer a:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
  .hauptnav a.aktiv { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }
  .hauptnav .zahl { margin-left: auto; }
  .nutzer { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: .8rem; }
  .nutzer .avatar { background: rgba(255, 255, 255, .14); color: #fff; }
  .nutzer strong { display: block; font-weight: 600; font-size: .9rem; color: #fff; }
  .nutzer small { display: block; color: rgba(255, 255, 255, .55); font-size: .76rem; }
  .kopf-mobil, .unten, .mobil-verwaltung { display: none; }
  body.mit-navi .inhalt { margin-left: var(--leiste); padding: 2.6rem 3rem 3.5rem; }
}

/* ---------- Inhalt ---------- */
.inhalt { max-width: 1240px; padding: 1.2rem 1rem; }
.karte { background: var(--papier); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1.2rem; box-shadow: var(--schatten); }
.karte.hervor { box-shadow: inset 0 0 0 1px var(--akzent-mittel), var(--schatten); }
.karte.schmal { max-width: 470px; margin: 2rem auto; }
.karte-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; }
.karte-kopf h2 { margin: 0; }
.karte-kopf a { font-size: .9rem; white-space: nowrap; }
.zweispaltig { display: grid; gap: 1.2rem; }
@media (min-width: 1000px) { .zweispaltig { grid-template-columns: 3fr 2fr; align-items: start; } }
.raster { display: grid; gap: 0 1.2rem; }
@media (min-width: 1000px) { .raster { grid-template-columns: 1fr 1fr; align-items: start; } }
.titelzeile { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .4rem; }
.titelzeile h1 { margin-bottom: .6rem; }
.unterzeile { color: var(--leise); font-size: .85rem; display: flex; align-items: center; gap: .35rem; margin-bottom: .15rem; }
.unterzeile .icon { width: 16px; height: 16px; }
.leise { color: var(--leise); font-size: .9rem; }

/* ---------- Startseite ---------- */
.willkommen { position: relative; overflow: hidden; padding: 0 0 .4rem; margin-bottom: 1.6rem; color: var(--text); }
.willkommen.mit-bild { border-radius: var(--radius); padding: 1.8rem 1.8rem 1.6rem; color: #fff; background-size: cover;
  background-position: center; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--schatten); }
.willkommen.mit-bild::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.6) 100%); }
.willkommen > * { position: relative; z-index: 1; }
.willkommen h1 { font-size: 2.6rem; margin: .1rem 0 .2rem; letter-spacing: -.03em; color: inherit; }
.willkommen .datum { font-size: .9rem; font-weight: 600; color: var(--leise); }
.willkommen.mit-bild .datum { color: rgba(255, 255, 255, .85); }
.willkommen .untertitel { margin: 0; font-size: 1.15rem; color: var(--leise); }
.willkommen.mit-bild .untertitel { color: rgba(255, 255, 255, .9); }
.kennzahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1.4rem; max-width: 640px; }
.kennzahl { background: var(--papier); border-radius: 14px; padding: .85rem 1rem; color: var(--text); text-decoration: none;
  display: flex; flex-direction: column; box-shadow: var(--schatten); transition: box-shadow .2s; }
.kennzahl:hover { text-decoration: none; box-shadow: var(--schatten-hover); }
.kennzahl strong { font-family: var(--anzeige); font-size: 1.8rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.kennzahl span { font-size: .82rem; color: var(--leise); }
.willkommen.mit-bild .kennzahl { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.willkommen.mit-bild .kennzahl span { color: rgba(255, 255, 255, .85); }

@media (max-width: 600px) {
  .karte { padding: 1.1rem 1.1rem; border-radius: 16px; }
  h1 { font-size: 1.7rem; }
  .willkommen h1 { font-size: 2.1rem; }
  .kennzahlen { gap: .5rem; margin-top: 1.1rem; }
  .kennzahl { padding: .65rem .75rem; border-radius: 12px; }
  .kennzahl strong { font-size: 1.45rem; }
  .kennzahl span { font-size: .74rem; line-height: 1.25; }
}

/* ---------- Listen ---------- */
.zeile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .35rem .9rem; padding: .8rem .5rem;
  border-bottom: 1px solid var(--linie); text-decoration: none; color: inherit; border-radius: 0; }
.zeile:last-child { border-bottom: 0; }
a.zeile:hover, .zeile a.zeile-haupt:hover { background: var(--flaeche); text-decoration: none; }
.zeile.gewaehlt { background: var(--akzent-hell); }
.zeile.inaktiv { opacity: .5; }
.zeile-haupt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 200px; text-decoration: none; color: inherit; }
.zeile-haupt strong { overflow-wrap: break-word; font-weight: 600; }
.zeile-haupt .leise { font-size: .86rem; }
.zeile-neben { display: flex; gap: .4rem; align-items: center; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.zeile-symbol { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--flaeche);
  flex-shrink: 0; color: var(--text); }
.zeile-symbol .icon { width: 20px; height: 20px; }
.datumsblock { width: 46px; text-align: center; background: var(--flaeche); border-radius: 10px; padding: .3rem 0; line-height: 1.1; flex-shrink: 0; }
.datumsblock span { display: block; font-family: var(--anzeige); font-weight: 700; font-size: 1.2rem; color: var(--text); letter-spacing: -.02em; }
.datumsblock small { color: var(--rot); text-transform: uppercase; font-size: .64rem; letter-spacing: .04em; font-weight: 600; }
.leer { color: var(--leise); font-size: .92rem; padding: .3rem .4rem; margin: 0; }

.status { display: inline-block; padding: .18rem .65rem; border-radius: 99px; font-size: .75rem; font-weight: 600; white-space: nowrap;
  background: var(--flaeche); color: var(--leise); }
.status.gross { font-size: .88rem; padding: .32rem .9rem; }
.status.gelb { background: var(--gelb-hell); color: var(--gelb-text); }
.status.lila { background: var(--lila-hell); color: var(--lila); }
.status.blau { background: var(--blau-hell); color: var(--blau); }
.status.orange { background: var(--orange-hell); color: var(--orange); }
.status.gruen { background: var(--akzent-hell); color: var(--akzent); }
.status.grau { background: var(--flaeche); color: var(--leise); }
.status.rot { background: var(--rot-hell); color: var(--rot); }
.marke-dringend { font-size: .72rem; font-weight: 600; padding: .12rem .55rem; border-radius: 99px; background: var(--orange-hell); color: var(--orange); }
.marke-dringend.notfall { background: var(--rot); color: #fff; }
.etikett { display: inline-block; background: var(--flaeche); color: var(--text); border-radius: 99px; padding: .05rem .6rem;
  margin: .1rem .25rem .1rem 0; font-size: .8rem; }
.etikett.hell { background: var(--flaeche-stark); color: var(--leise); }
.zahl { display: inline-block; min-width: 1.45em; padding: 0 .45em; border-radius: 99px; background: var(--rot); color: #fff;
  font-size: .72rem; text-align: center; font-weight: 600; font-family: var(--sans); line-height: 1.6; }
.zahl.grau { background: var(--sehr-leise); }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 0;
  border-radius: 980px; background: var(--akzent); color: #fff; padding: .62rem 1.2rem; font: inherit; font-size: .95rem; font-weight: 500;
  letter-spacing: -.01em; text-decoration: none; cursor: pointer; transition: background .15s, opacity .15s; }
.knopf:hover { background: var(--akzent-tief); text-decoration: none; }
.knopf .icon { width: 18px; height: 18px; }
.knopf.zweit { background: var(--flaeche-stark); color: var(--text); }
.knopf.zweit:hover { background: #dcdce1; }
.knopf.gruen { background: var(--akzent); }
.knopf.rot { background: var(--rot); }
.knopf.rot:hover { background: #a62b22; }
.knopf.klein { padding: .36rem .85rem; font-size: .85rem; }
.knopf.breit { width: 100%; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .9rem; }

/* ---------- Formulare ---------- */
.feld { margin-bottom: 1.05rem; }
.beschriftung { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .9rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=time],
input[type=tel], input[type=number], select, textarea {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--linie-stark); border-radius: 12px; font: inherit; background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--akzent-mittel); box-shadow: 0 0 0 4px var(--akzent-hell); }
input[type=checkbox], input[type=radio] { accent-color: var(--akzent); width: 1.05rem; height: 1.05rem; }
.auswahlliste { display: flex; flex-wrap: wrap; gap: .4rem; }
.auswahlliste .option { display: flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border: 1px solid var(--linie-stark);
  border-radius: 99px; background: #fff; cursor: pointer; font-size: .92rem; }
.auswahlliste .option:has(input:checked) { background: var(--akzent-hell); border-color: var(--akzent-mittel); }
.feld-haken label { display: flex; gap: .55rem; align-items: center; font-weight: 600; }
.fehler input, .fehler select, .fehler textarea { border-color: var(--rot); }
.fehlertext { color: var(--rot); display: block; font-size: .86rem; }
.feld small { display: block; margin-top: .25rem; color: var(--leise); }
.feldreihe { display: grid; gap: 0 .8rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.abschnitt-titel { font-family: var(--anzeige); font-size: 1.05rem; color: var(--text); margin: 0 0 .9rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--linie); font-weight: 600; }
details > summary { cursor: pointer; }

.hinweis { padding: .8rem 1.05rem; border-radius: 12px; margin-bottom: .9rem; background: var(--akzent-hell); }
.hinweis.error { background: var(--rot-hell); color: #8c241c; }
.hinweis.info { background: var(--blau-hell); color: #0b4c8c; }
.hinweis.warning { background: var(--gelb-hell); color: #6b4c00; }

.reiter { display: inline-flex; gap: .2rem; margin-bottom: 1.4rem; overflow-x: auto; max-width: 100%;
  background: var(--flaeche-stark); padding: 3px; border-radius: 12px; }
.reiter a { padding: .38rem .9rem; text-decoration: none; color: var(--text); border-radius: 9px; white-space: nowrap; font-size: .9rem; }
.reiter a:hover { text-decoration: none; background: rgba(255, 255, 255, .5); }
.reiter a.aktiv { background: #fff; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; align-items: center; }
.filter input, .filter select { width: auto; flex: 1 1 160px; }
.filter .option { display: flex; align-items: center; gap: .35rem; }

/* ---------- Vorgang ---------- */
.angaben { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.3rem; margin: 0 0 1rem; }
.angaben dt { color: var(--leise); }
.angaben dd { margin: 0; }
.beschreibung { background: var(--flaeche); border-radius: 12px; padding: .2rem 1.05rem; }
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; margin-top: 1rem; }
.fotos img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; display: block; }
.feed { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 1rem; }
.feed-beitrag { background: var(--flaeche-stark); border-radius: 18px 18px 18px 6px; padding: .6rem .9rem; max-width: 92%; }
.feed-beitrag.eigen { background: var(--akzent); color: #fff; align-self: flex-end; border-radius: 18px 18px 6px 18px; }
.feed-beitrag.eigen .leise, .feed-beitrag.eigen a { color: rgba(255, 255, 255, .8); }
.feed-kopf { font-size: .84rem; }
.feed-system { font-size: .8rem; color: var(--sehr-leise); text-align: center; padding: .1rem .5rem; }
.foto-knopf { cursor: pointer; padding: .62rem 1.1rem; border-radius: 980px; background: var(--flaeche-stark); display: inline-flex;
  align-items: center; gap: .4rem; font-size: .95rem; font-weight: 500; }
.foto-knopf .icon { width: 18px; height: 18px; }
.aktion { margin-bottom: .8rem; }
.aktion summary { list-style: none; display: inline-flex; }
.aktion summary::-webkit-details-marker { display: none; }
details[open] > summary { margin-bottom: .65rem; }
.werkzeuge { display: flex; flex-wrap: wrap; gap: .4rem; border-top: 1px solid var(--linie); padding-top: .9rem; margin-top: .6rem; }
.werkzeuge details { flex-basis: 100%; }
.werkzeuge details:not([open]) { flex-basis: auto; }
.werkzeuge .aktion, .werkzeuge form { margin: 0; }
@media (max-width: 999px) {
  .vorgang-seite { display: flex; flex-direction: column; gap: 0; }
  .vorgang-seite > div { display: contents; }
  .reihe-1 { order: 1; } .reihe-2 { order: 2; } .reihe-3 { order: 3; } .reihe-4 { order: 4; } .reihe-5 { order: 5; } .reihe-6 { order: 6; }
}

/* ---------- Kalender ---------- */
.monatskopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.monatskopf h2 { margin: 0; }
.monat { width: 100%; border-collapse: collapse; table-layout: fixed; }
.monat th { font-size: .72rem; color: var(--sehr-leise); padding: .35rem 0; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.monat td { border: 1px solid var(--linie); vertical-align: top; height: 92px; padding: 4px; font-size: .78rem; overflow: hidden; background: #fff; }
.monat td.fremd { background: #fafafb; color: #c7c7cc; }
.monat td.heute .tagzahl, .monat td.heute .tagzahl a { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%;
  background: var(--rot); color: #fff; }
.tagzahl a, .tagzahl { color: inherit; text-decoration: none; font-weight: 600; }
.kal-termin { display: block; background: var(--akzent-hell); color: var(--akzent-tief); border-left: 3px solid var(--akzent); border-radius: 4px;
  padding: 0 5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; font-size: .74rem; font-weight: 500; }
.kal-termin:hover { text-decoration: none; }
.kal-termin.gruppe { background: var(--blau-hell); color: #0b4c8c; border-left-color: var(--blau); }
.legende .kal-termin { display: inline-block; margin-right: .5rem; }
@media (max-width: 600px) { .monat td { height: 64px; } .kal-termin { font-size: .63rem; } }

/* ---------- Vorlagen ---------- */
.artwahl { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.artknopf { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: inherit; margin: 0;
  transition: box-shadow .2s, transform .2s; }
.artknopf:hover { box-shadow: var(--schatten-hover); transform: translateY(-1px); text-decoration: none; }
.artknopf strong { font-family: var(--anzeige); font-size: 1.08rem; color: var(--text); font-weight: 600; letter-spacing: -.015em; }
.art-symbol { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--akzent-hell);
  color: var(--akzent); margin-bottom: .5rem; }
.art-symbol .icon { width: 24px; height: 24px; }
.symbolwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .4rem; }
.symbolwahl label { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .55rem .3rem; border: 1px solid var(--linie-stark);
  border-radius: 12px; background: #fff; cursor: pointer; font-size: .76rem; color: var(--leise); text-align: center; }
.symbolwahl label:has(input:checked) { border-color: var(--akzent); background: var(--akzent-hell); color: var(--akzent-tief); }
.symbolwahl input { position: absolute; opacity: 0; pointer-events: none; }
.symbolwahl .icon { width: 22px; height: 22px; color: var(--text); }
.designer-feld { display: flex; align-items: center; gap: .6rem; padding: .65rem .4rem; border-bottom: 1px solid var(--linie); }
.designer-feld:last-child { border-bottom: 0; }
.designer-feld form { margin: 0; }
.symbolknopf { border: 0; background: var(--flaeche); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; color: var(--text);
  display: grid; place-items: center; padding: 0; }
.symbolknopf .icon { width: 16px; height: 16px; }
.symbolknopf:hover { background: var(--flaeche-stark); }
.symbolknopf:disabled { opacity: .3; cursor: default; }
.vorschau { background: var(--flaeche); border-radius: var(--radius); padding: 1.1rem; }
.vorschau input, .vorschau textarea, .vorschau select, .vorschau label { pointer-events: none; }
.klappe { border-top: 1px solid var(--linie); padding: .8rem 0; }
.klappe:first-of-type { border-top: 0; }
.klappe > summary { font-family: var(--anzeige); font-size: 1.02rem; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; }
.klappe > summary::after { content: "+"; color: var(--leise); font-family: var(--sans); font-weight: 400; }
.klappe[open] > summary::after { content: "–"; }
.klappe > summary::-webkit-details-marker { display: none; }
.tabelle-rahmen { overflow-x: auto; }
.matrix { border-collapse: collapse; width: 100%; }
.matrix th, .matrix td { padding: .6rem .5rem; border-bottom: 1px solid var(--linie); text-align: left; }
.matrix th { font-size: .78rem; color: var(--leise); font-weight: 600; }

/* ---------- Unterlagen ---------- */
.ordnerliste { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.ordnerkarte { text-decoration: none; color: inherit; display: flex; gap: .9rem; align-items: flex-start; margin: 0; transition: box-shadow .2s; }
.ordnerkarte:hover { box-shadow: var(--schatten-hover); text-decoration: none; }
.ordnerkarte .zeile-symbol { background: var(--blau-hell); color: var(--blau); }
.ordnerkarte.archiv { opacity: .55; }
.ordnerkarte strong { font-family: var(--anzeige); font-size: 1.05rem; color: var(--text); font-weight: 600; }

/* ---------- Anmeldung ---------- */
body.ohne-navi .inhalt { max-width: none; padding: 0; margin: 0; }
.anmeldeseite { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: var(--hintergrund);
  background-size: cover; background-position: center; }
.anmeldung { text-align: center; width: 100%; max-width: 420px; margin: 0; padding: 2.2rem 2rem; }
.anmeldung form { text-align: left; margin-top: 1.4rem; }
.anmeldung .logo { width: 64px; height: 64px; border-radius: 15px; }
.anmeldung h1 { margin: .7rem 0 .3rem; font-size: 1.7rem; }
.anmeldung .knopf { margin-top: .3rem; padding: .75rem 1.2rem; }
body.ohne-navi .meldungen { max-width: 470px; margin: 1rem auto 0; padding: 0 1rem; }
body.ohne-navi .karte.schmal { margin: 2rem auto; width: calc(100% - 2rem); }

/* ---------- Belege ---------- */
.beleg-ansicht { width: 100%; height: 75vh; min-height: 420px; border: 1px solid var(--linie); border-radius: 12px; background: #fff; }
.betrag { font-family: var(--anzeige); font-weight: 600; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.monatsgruppe { display: flex; justify-content: space-between; align-items: baseline; margin: 1.4rem 0 .3rem; padding-bottom: .4rem; border-bottom: 1px solid var(--linie-stark); }
.monatsgruppe:first-child { margin-top: 0; }
.monatsgruppe h3 { margin: 0; }
.ocr-text { max-height: 260px; overflow: auto; white-space: pre-wrap; font-size: .82rem; background: var(--flaeche); border-radius: 12px; padding: .8rem; color: #3a3a3c; }
mark { background: #fff2b3; padding: 0 2px; border-radius: 3px; }
input[type=file] { font: inherit; max-width: 100%; color: var(--leise); }
input[type=file]::file-selector-button { font: inherit; font-weight: 500; border: 0; background: var(--flaeche-stark);
  color: var(--text); border-radius: 980px; padding: .6rem 1.1rem; margin-right: .7rem; cursor: pointer; }

/* ---------- Zwei-Faktor-Anmeldung ---------- */
.code-eingabe { font-size: 1.5rem !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.einrichtung { max-width: 520px; text-align: left; }
.einrichtung h1 { text-align: center; }
.einrichtung .logo { display: block; margin: 0 auto; }
.schritte { padding-left: 1.2rem; margin: 1.2rem 0 .8rem; }
.schritte li { margin-bottom: .9rem; }
.qr { background: #fff; border-radius: 14px; padding: .4rem; margin: .8rem auto; width: 220px; box-shadow: inset 0 0 0 1px var(--linie); }
.qr svg { display: block; width: 100%; height: auto; }
.schluessel { font-size: 1rem; letter-spacing: .08em; word-break: break-all; }
.notfallcodes { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 1rem 0; }
.notfallcodes code { display: block; text-align: center; font-size: 1.05rem; padding: .5rem; letter-spacing: .08em; }

/* ---------- Beleg-Vorschau ---------- */
.beleg-vorschau { display: grid; gap: 1rem; margin: .4rem 0 1.1rem; }
.beleg-vorschau:empty { display: none; }
.vorschau-seite { background: var(--flaeche); border-radius: 14px; padding: .7rem; }
.vorschau-seite img { display: block; width: 100%; max-height: 72vh; object-fit: contain; border-radius: 8px; background: #fff; cursor: zoom-in; }
.vorschau-seite iframe { display: block; width: 100%; height: 72vh; border: 0; border-radius: 8px; background: #fff; }
.vorschau-pruefung { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; font-size: .86rem; align-items: center; }
.tipps { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--leise); font-size: .9rem; }
@media print { .seitenleiste, .kopf-mobil, .unten, .knopfreihe, .mobil-verwaltung { display: none !important; } body.mit-navi .inhalt { margin: 0; } }

/* Zurück-Pfeil oben links (wie in iOS-Apps) */
.zurueck-link { display: inline-flex; align-items: center; gap: .1rem; margin: 0 0 .7rem -.35rem; padding: .25rem .5rem .25rem .1rem;
  color: var(--akzent); font-size: 1rem; font-weight: 500; text-decoration: none; border-radius: 10px; }
.zurueck-link:hover { background: var(--akzent-hell); text-decoration: none; }
.zurueck-link .icon { width: 22px; height: 22px; stroke-width: 2.2; }

/* Gefährliche Aktionen (Löschen, System leeren) */
.gefahr { border: 1px solid #f1c9c4; }
.gefahr h2 { color: var(--rot); }
.loeschen-bereich summary.knopf { color: var(--rot); }
.auswahl-leeren label { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid var(--linie, #eee); }
.auswahl-leeren label:last-child { border-bottom: 0; }
.auswahl-leeren small { display: block; color: var(--leise, #6e6e73); }

/* Ordner-Rechte */
.rechte-stufe { border: 1px solid var(--linie); border-radius: 14px; padding: .6rem 1rem .4rem; margin: 0 0 .9rem; }
.rechte-stufe legend { padding: 0 .3rem; }
.rechte-stufe details { margin: .2rem 0 .6rem; }
.rechte-stufe summary { cursor: pointer; }

/* Ablauf (Checkliste) und Nachrichten an Mieter */
.ablauf { list-style: none; margin: 0 0 .8rem; padding: 0; }
.ablauf li { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid var(--linie); }
.ablauf li:last-child { border-bottom: 0; }
.ablauf li.erledigt .ablauf-text strong { color: var(--leise); text-decoration: line-through; }
.ablauf-text { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.haken-form { margin: 0; }
.haken-knopf { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--linie-stark); background: #fff;
  display: grid; place-items: center; padding: 0; cursor: pointer; color: #fff; flex-shrink: 0; }
li.erledigt .haken-knopf { background: var(--akzent); border-color: var(--akzent); }
.haken-knopf .icon { width: 16px; height: 16px; stroke-width: 2.6; }
span.haken-knopf { cursor: default; }
.ablauf-bearbeiten summary { cursor: pointer; font-size: .85rem; }
.ablauf-bearbeiten form { margin-top: .5rem; }
.mieter-nachricht { background: var(--akzent-hell); }
.rot-text { color: var(--rot); font-weight: 600; }
.schnell-eingabe { display: flex; gap: .5rem; margin-top: .6rem; }
.schnell-eingabe input { flex: 1; min-width: 0; }

/* ---------- Hof: Schwarzes Brett, Buchungen, Zähler ---------- */
.brett { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: start; }
.aushang-karte { display: flex; flex-direction: column; gap: .45rem; margin: 0; text-decoration: none; color: inherit; transition: box-shadow .2s; }
.aushang-karte:hover { box-shadow: var(--schatten-hover); text-decoration: none; }
.aushang-karte img { width: calc(100% + 3rem); margin: -1.4rem -1.5rem .3rem; height: 160px; object-fit: cover; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.aushang-karte strong { font-family: var(--anzeige); font-size: 1.05rem; color: var(--text); }
.aushang-karte.angeheftet { border: 2px solid var(--akzent-hell); }
.aushang-text { color: var(--text); font-size: .92rem; }
.aushang-bild { max-width: 100%; border-radius: 12px; }
.belegung { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; margin-bottom: .6rem; }
.belegung .tag { display: flex; flex-direction: column; align-items: center; padding: .35rem 0; border-radius: 9px; background: var(--flaeche); color: var(--text); text-decoration: none; }
.belegung .tag:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--akzent-hell); }
.belegung .tag small { font-size: .68rem; color: var(--leise); }
.belegung .tag.teil { background: var(--gelb-hell); }
.belegung .tag.voll { background: var(--rot-hell); }
.punkt { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; vertical-align: -1px; }
.punkt.teil { background: var(--gelb-hell); }
.punkt.voll { background: var(--rot-hell); }
.mini-foto { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; display: block; }
.zweispaltig > *, .raster > * { min-width: 0; }

/* ---------- Editor „wie Word“ und Schriftstücke ---------- */
.editor { border: 1px solid var(--linie); border-radius: 12px; background: #fff; overflow: hidden; }
.editor-leiste { display: flex; flex-wrap: wrap; gap: .15rem; align-items: center; padding: .35rem .4rem; background: var(--flaeche); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 2; }
.editor-leiste button { border: 0; background: transparent; border-radius: 7px; min-width: 2rem; height: 2rem; padding: 0 .45rem; font: inherit; font-size: .85rem; color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.editor-leiste button:hover { background: #fff; }
.editor-leiste select { width: auto; height: 2rem; padding: 0 .4rem; font-size: .85rem; border-radius: 7px; margin: 0; }
.editor-trenner { width: 1px; height: 1.3rem; background: var(--linie); margin: 0 .2rem; }
.editor-flaeche { padding: .9rem 1.1rem; outline: none; line-height: 1.55; }
.editor-flaeche:focus { box-shadow: inset 0 0 0 2px var(--akzent-hell); }
.editor-inhalt h2 { font-size: 1.25rem; margin: 1rem 0 .4rem; }
.editor-inhalt h3 { font-size: 1.08rem; margin: .9rem 0 .35rem; }
.editor-inhalt h4 { font-size: 1rem; margin: .8rem 0 .3rem; }
.editor-inhalt p { margin: 0 0 .6rem; }
.editor-inhalt table { border-collapse: collapse; width: 100%; margin: .4rem 0 .8rem; }
.editor-inhalt td, .editor-inhalt th { border: 1px solid var(--linie); padding: .35rem .5rem; min-width: 3rem; }
.editor-inhalt blockquote { margin: 0 0 .6rem 1.5rem; }
.platzhalter-hilfe { margin: .3rem 0 1rem; }
.platzhalter-hilfe code { background: var(--flaeche); padding: 0 .3rem; border-radius: 4px; }
.punkte-liste { margin: 0; padding-left: 1.2rem; }
.punkte-liste .zeile { padding-left: 0; }
input.gewicht { width: 5.5rem; text-align: right; display: inline-block; margin: 0 .3rem 0 0; }
.punkt-werkzeuge { display: flex; gap: .3rem; align-items: center; } .punkt-werkzeuge form { margin: 0; }
.datenschutz h2 { font-size: 1.12rem; margin-top: 1.6rem; }
.datenschutz li { margin-bottom: .35rem; }

/* ---------- Rechte ---------- */
.rechte-bereich { border: 1px solid var(--linie); border-radius: 12px; padding: .5rem .9rem .7rem; margin: 0 0 .8rem; }
.rechte-bereich legend { font-weight: 600; padding: 0 .3rem; }
.recht { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; border-top: 1px solid var(--linie); cursor: pointer; }
.recht:first-of-type { border-top: 0; }
.recht input { margin-top: .25rem; flex: none; width: auto; }
.recht-text small { display: block; color: var(--leise); font-size: .84rem; margin-top: .15rem; line-height: 1.4; }
.recht.stufe-voll .recht-text strong { color: var(--rot); }
.rechte-legende .status { font-size: .7rem; }
.rechte-zusammenfassung { margin-top: .6rem; padding: 1rem 1.1rem; background: var(--flaeche); border-radius: 12px; }
.rechte-zusammenfassung:empty { display: none; }
.rechte-zusammenfassung h3 { margin: 0 0 .4rem; font-size: 1rem; }
.rechte-zeile { margin: .3rem 0; line-height: 2; }
.rechte-zeile .etikett { margin-right: .3rem; }
.etikett.hervor-sensibel { background: var(--gelb-hell); }
.etikett.hervor-voll { background: var(--rot-hell); }
.recht-uebersicht { border-top: 1px solid var(--linie); padding: .7rem 0 .2rem; }
.recht-uebersicht:first-of-type { border-top: 0; }
.recht-uebersicht p { margin: 0 0 .5rem; }
.recht-uebersicht .etikett { text-decoration: none; margin: 0 .25rem .3rem 0; }
.rechte-zeile .etikett, .recht-uebersicht .etikett { display: inline-block; line-height: 1.5; padding: .15rem .6rem; }
.rechte-zeile .etikett small, .recht-uebersicht .etikett small { display: inline; color: var(--leise); }
[hidden] { display: none !important; }
