:root {
  --lila: #4a2a6e; --lila-hell: #6b4596; --lila-zart: #efe8f6; --lila-dunkel: #2a2233;
  --bg: #f5f4f7; --flaeche: #fff; --text: #1d1b22; --muted: #6b6775; --linie: #e4e1ea;
  --rot: #b3261e; --rot-zart: #fbe9e7; --gelb: #9a5b00; --gelb-zart: #fdf3e2; --gruen: #2f7a4f; --gruen-zart: #e5f4eb;
  --radius: 10px; --schatten: 0 1px 3px rgba(20,10,40,.06), 0 6px 18px rgba(20,10,40,.05);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 14.5px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--lila); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.55rem; margin: 0; line-height: 1.2; }
h2 { font-size: 1.15rem; margin: 0 0 .6em; }
h3 { font-size: 1rem; margin: 1.2em 0 .5em; }
.muted { color: var(--muted); } .klein { font-size: .85rem; } .nowrap { white-space: nowrap; }
.mono { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: .85em; }
hr { border: 0; border-top: 1px solid var(--linie); margin: 1.2em 0; }

/* Kopfzeile */
.kopf { position: sticky; top: 0; z-index: 30; height: 52px; background: var(--lila-dunkel); color: #ece6f4;
  display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.kopf .marke { color: #fff; font-weight: 800; letter-spacing: .2px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.kopf .marke img { height: 26px; }
.kopf .suche { flex: 1; max-width: 420px; margin-left: 16px; }
.kopf .suche input { width: 100%; background: #3a3045; border: 1px solid #4b3f58; color: #fff; border-radius: 8px; padding: 7px 12px; font: inherit; }
.kopf .suche input::placeholder { color: #b5a9c4; }
.kopf .rechts { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.kopf .kbtn { color: #ece6f4; background: transparent; border: 0; font: inherit; padding: 6px 10px; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.kopf .kbtn:hover { background: #3a3045; text-decoration: none; }
.badge { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 10px; font-size: .75rem; font-weight: 700; text-align: center; line-height: 18px; }
.badge.gelb { background: var(--gelb-zart); color: var(--gelb); border: 1px solid #f1ddb6; line-height: 16px; }
.badge.rot { background: #c2410c; color: #fff; } .badge.grau { background: #574b64; color: #eee; } .badge.lila { background: var(--lila-hell); color: #fff; }

/* Rahmen */
.rahmen { display: grid; grid-template-columns: 272px 1fr; min-height: calc(100vh - 52px); }
.seite { background: #fbfafc; border-right: 1px solid var(--linie); padding: 14px 10px 90px; position: sticky; top: 52px; height: calc(100vh - 52px); overflow-y: auto; }
.nav a { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 7px; color: var(--text); }
.nav a:hover { background: var(--lila-zart); text-decoration: none; }
.nav a.aktiv { background: var(--lila-zart); color: var(--lila); font-weight: 700; }
.seite .titel { display: flex; justify-content: space-between; align-items: center; margin: 16px 6px 6px; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.plus { border: 1px solid var(--linie); background: #fff; border-radius: 6px; width: 24px; height: 24px; cursor: pointer; font-size: 15px; line-height: 1; color: var(--lila); }
.baumfilter { width: 100%; border: 1px solid var(--linie); border-radius: 7px; padding: 6px 9px; font: inherit; font-size: .85rem; margin: 0 0 6px; }
.baum ul { list-style: none; margin: 0; padding: 0 0 0 12px; }
.baum > ul { padding-left: 0; }
.baum li { margin: 0; }
.baum .z { display: flex; align-items: center; gap: 2px; border-radius: 6px; padding: 2px 4px 2px 0; }
.baum .z:hover { background: #f1edf6; }
.baum .z.aktiv { background: var(--lila-zart); }
.baum .z.aktiv a { color: var(--lila); font-weight: 700; }
.baum .z.ziel { outline: 2px dashed var(--lila-hell); background: var(--lila-zart); }
.baum .auf { width: 18px; height: 18px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 10px; padding: 0; flex: none; }
.baum .auf.leer { visibility: hidden; }
.baum a { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 0; font-size: .9rem; }
.baum a:hover { text-decoration: none; }
.baum .n { color: var(--muted); font-size: .78rem; padding-left: 6px; }
.baum .lk { font-size: .7rem; opacity: .7; }
.baum li.zu > ul { display: none; }
.seite .fuss { position: fixed; bottom: 0; left: 0; width: 271px; background: #fbfafc; border-top: 1px solid var(--linie); padding: 10px 14px; font-size: .8rem; color: var(--muted); }
.meter { height: 5px; background: #e6e1ec; border-radius: 3px; overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; background: var(--lila-hell); }

.haupt { padding: 20px 26px 60px; min-width: 0; }
.krumen { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.krumen a { color: var(--muted); }
.kopfzeile { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.kopfzeile .aktionen { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* Bausteine */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: 7px 13px; border-radius: 8px;
  border: 1px solid var(--linie); background: #fff; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: #cbc4d6; text-decoration: none; }
.btn.pri { background: var(--lila); border-color: var(--lila); color: #fff; }
.btn.pri:hover { background: var(--lila-hell); }
.btn.gefahr { color: var(--rot); border-color: #efc8c3; }
.btn.klein { padding: 4px 9px; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: default; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.karte h2 { display: flex; align-items: center; gap: 8px; }
.raster2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.raster3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 12px 14px; }
.kpi .l { font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.kpi .w { font-size: 1.55rem; font-weight: 800; color: var(--lila); line-height: 1.2; }
.kpi .s { font-size: .8rem; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; border: 1px solid var(--linie); background: #fff; font-size: .82rem; color: var(--text); cursor: pointer; white-space: nowrap; }
a.chip:hover { text-decoration: none; border-color: #cbc4d6; }
.chip.an { background: var(--lila-zart); border-color: #d6c7ea; color: var(--lila); font-weight: 600; }
.chip.warn { background: var(--gelb-zart); border-color: #f1ddb6; color: var(--gelb); font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.st { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 10px; white-space: nowrap; }
.st.aktiv, .st.erledigt { background: var(--gruen-zart); color: var(--gruen); }
.st.abgelaufen, .st.verbraucht, .st.bearbeitung { background: #eceaf0; color: var(--muted); }
.st.gesperrt { background: var(--rot-zart); color: var(--rot); }
.st.neu, .st.bald { background: var(--gelb-zart); color: var(--gelb); }
.prio { font-size: .7rem; font-weight: 800; padding: 1px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: .3px; }
.prio.hoch { background: var(--rot-zart); color: var(--rot); } .prio.mittel { background: var(--gelb-zart); color: var(--gelb); } .prio.info { background: #eeecf1; color: var(--muted); }
.meldung { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; border-left: 4px solid; }
.meldung.ok { background: var(--gruen-zart); border-color: var(--gruen); }
.meldung.fehler { background: var(--rot-zart); border-color: var(--rot); }
.hinweis { background: var(--lila-zart); border-left: 4px solid var(--lila-hell); padding: 10px 14px; border-radius: 8px; margin: 10px 0; font-size: .9rem; }
.hinweis.gelb { background: var(--gelb-zart); border-color: var(--gelb); }
.leer { text-align: center; color: var(--muted); padding: 30px 10px; }

/* Reiter */
.reiter { display: flex; gap: 2px; border-bottom: 1px solid var(--linie); margin: 0 0 16px; flex-wrap: wrap; }
.reiter a { padding: 9px 14px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; }
.reiter a:hover { color: var(--text); text-decoration: none; }
.reiter a.aktiv { color: var(--lila); border-color: var(--lila); }

/* Tabellen */
table.liste { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
table.liste th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); background: #faf9fb; padding: 8px 10px; border-bottom: 1px solid var(--linie); }
table.liste td { padding: 9px 10px; border-bottom: 1px solid #f0edf3; vertical-align: middle; }
table.liste tr:last-child td { border-bottom: 0; }
table.liste tr:hover td { background: #fcfbfd; }

/* Formulare */
label.f { display: block; font-weight: 600; margin: 12px 0 4px; font-size: .9rem; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=time], input[type=url], select, textarea {
  font: inherit; border: 1px solid #d9d4e1; border-radius: 7px; padding: 7px 10px; background: #fff; color: var(--text); max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid #cdb8e6; border-color: var(--lila-hell); }
textarea { width: 100%; min-height: 90px; resize: vertical; }
.breit { width: 100%; }
.zeile { display: grid; grid-template-columns: 210px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0edf3; }
.zeile:last-of-type { border-bottom: 0; }
.zeile > label { font-weight: 600; font-size: .9rem; }
.hilfe, .zeile .hilfe { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.seg { display: inline-flex; border: 1px solid #d9d4e1; border-radius: 8px; overflow: hidden; flex-wrap: wrap; }
.seg label { padding: 6px 12px; cursor: pointer; border-right: 1px solid #e6e1ec; font-size: .88rem; user-select: none; }
.seg label:last-child { border-right: 0; }
.seg input { display: none; }
.seg input:checked + span { color: #fff; }
.seg label:has(input:checked) { background: var(--lila); color: #fff; }
.schalter { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.schalter input { position: absolute; opacity: 0; width: 0; height: 0; }
.schalter i { width: 38px; height: 22px; border-radius: 12px; background: #cfc9d8; position: relative; transition: background .15s; flex: none; }
.schalter i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.schalter input:checked + i { background: var(--lila); }
.schalter input:checked + i::after { left: 19px; }
.unterblock { margin-left: 24px; padding-left: 14px; border-left: 3px solid var(--lila-zart); }
.speicherleiste { position: sticky; bottom: 0; background: rgba(245,244,247,.95); padding: 12px 0; display: flex; gap: 8px; border-top: 1px solid var(--linie); margin-top: 16px; }

/* Ordner-Inhalt */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kachel { background: #fff; border: 1px solid var(--linie); border-radius: 9px; overflow: hidden; color: var(--text); display: block; }
.kachel:hover { border-color: #cbbde0; text-decoration: none; box-shadow: var(--schatten); }
.kachel .bild { aspect-ratio: 4/3; background: #ece8f1 center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: #b9b1c5; font-size: 28px; }
.kachel .unt { padding: 7px 10px; display: flex; justify-content: space-between; gap: 6px; font-size: .88rem; }
.kachel .unt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop { border: 2px dashed #c9bfd8; border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); margin-bottom: 16px; background: #fff; transition: background .15s; }
.drop.ueber { background: var(--lila-zart); border-color: var(--lila-hell); }
.drop .fortschritt { height: 7px; background: #eee9f3; border-radius: 4px; overflow: hidden; margin-top: 10px; display: none; }
.drop .fortschritt i { display: block; height: 100%; width: 0; background: var(--lila); transition: width .2s; }
.fotoleiste { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; }
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.foto { background: #fff; border: 1px solid var(--linie); border-radius: 8px; padding: 5px; position: relative; cursor: pointer; }
.foto img { width: 100%; aspect-ratio: 3/2; object-fit: contain; border-radius: 4px; display: block; background: #f1eef4; }
.foto .fn { font-size: .72rem; color: var(--muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foto.gewaehlt { outline: 3px solid var(--lila-hell); outline-offset: -1px; }
.foto.aus img { opacity: .35; }
.foto.warte { border-color: #e9c98f; background: var(--gelb-zart); }
.foto.warte img { opacity: .6; }
.foto .marke.gelb { background: #9a5b00; max-width: calc(100% - 18px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foto .marke { position: absolute; top: 9px; left: 9px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; padding: 1px 6px; border-radius: 4px; }
.foto .farbpunkt { position: absolute; top: 9px; right: 9px; width: 14px; height: 14px; border-radius: 3px; border: 1px solid #fff; }

/* Link-Karten */
.linkkarte { border: 1px solid var(--linie); border-radius: 10px; padding: 12px 14px; background: #fff; margin-bottom: 10px; }
.linkkarte .kopf2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.linkkarte .kopf2 .r { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.linkzeile { display: flex; align-items: center; gap: 8px; background: #f7f5fa; border-radius: 7px; padding: 6px 10px; margin: 8px 0; }
.linkzeile code { flex: 1; color: var(--lila); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.werte { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; font-size: .8rem; color: var(--muted); }
.werte b { display: block; color: var(--text); font-size: .9rem; }
.vorlagen { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 14px; }
.vorlage { border: 1px solid var(--linie); border-radius: 9px; padding: 9px 11px; cursor: pointer; background: #fff; font-size: .82rem; color: var(--muted); }
.vorlage b { display: block; color: var(--text); font-size: .92rem; }
.vorlage.an { border: 2px solid var(--lila); background: var(--lila-zart); padding: 8px 10px; }
.qr { width: 170px; height: 170px; border: 1px solid var(--linie); border-radius: 8px; padding: 6px; background: #fff; }

/* Ereignisse */
.schublade { position: fixed; top: 52px; right: 0; bottom: 0; width: 440px; max-width: 100vw; background: #fff; border-left: 1px solid var(--linie);
  box-shadow: -10px 0 30px rgba(20,10,40,.12); z-index: 40; transform: translateX(105%); transition: transform .2s; display: flex; flex-direction: column; }
.schublade.offen { transform: none; }
.schublade .sk { padding: 14px 16px 10px; border-bottom: 1px solid var(--linie); }
.schublade .sk h2 { display: flex; justify-content: space-between; margin: 0 0 10px; }
.filterbox { background: #f7f5fa; border-radius: 9px; padding: 10px 12px; display: grid; gap: 8px; font-size: .85rem; }
.filterbox .reihe { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filterbox .reihe > b { width: 82px; font-size: .8rem; color: var(--muted); }
.filterbox select { padding: 4px 8px; font-size: .85rem; }
.filterbox .seg label { padding: 3px 9px; font-size: .8rem; }
.schublade .liste { overflow-y: auto; flex: 1; padding: 6px 16px 20px; }
.ev { display: grid; grid-template-columns: 30px 1fr 10px; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f2eff5; font-size: .88rem; }
.ev .ic { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--linie); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.ev .ic.hoch { background: var(--rot-zart); border-color: #f2cfca; } .ev .ic.mittel { background: var(--gelb-zart); border-color: #f1ddb6; }
.ev .t { color: var(--muted); font-size: .78rem; }
.ev .pt { width: 8px; height: 8px; border-radius: 50%; background: var(--lila-hell); margin-top: 8px; }
.ev.gelesen .pt { visibility: hidden; }
.ev .pfad { color: #c2410c; font-weight: 600; }
.tag { font-size: .8rem; font-weight: 700; color: var(--muted); margin: 12px 0 2px; }
.gtag { font-size: .72rem; background: var(--lila-zart); color: var(--lila); border-radius: 4px; padding: 0 5px; font-weight: 700; }
.dimmer { position: fixed; inset: 52px 0 0 0; background: rgba(30,20,40,.25); z-index: 35; display: none; }
.dimmer.an { display: block; }

/* Einstellungen */
.einst { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: start; }
.einst nav { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 10px; position: sticky; top: 70px; }
.einst nav .gruppe { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 10px 8px 4px; }
.einst nav a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--text); font-size: .92rem; }
.einst nav a.aktiv { background: var(--lila-zart); color: var(--lila); font-weight: 700; }
table.matrix { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.matrix th { background: #faf9fb; text-align: center; padding: 7px; font-size: .78rem; color: var(--muted); }
table.matrix th:first-child { text-align: left; }
table.matrix td { padding: 7px; border-bottom: 1px solid #f0edf3; text-align: center; }
table.matrix td:first-child { text-align: left; }
table.matrix input[type=radio] { accent-color: var(--lila); width: 16px; height: 16px; }
.balken { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 10px; }
.balken div { flex: 1; background: var(--lila-hell); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.balken div span { position: absolute; top: -16px; left: 0; right: 0; text-align: center; font-size: .7rem; color: var(--muted); }

/* Anmeldung */
.mitte { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(135deg, #2a2233, #4a2a6e); }
.anmeldung { background: #fff; border-radius: 14px; padding: 28px 30px; width: 380px; max-width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.anmeldung h1 { margin-bottom: 4px; }
.anmeldung input { width: 100%; }

.vorschau-overlay { position: fixed; inset: 0; background: rgba(15,10,20,.92); z-index: 60; display: none; align-items: center; justify-content: center; flex-direction: column; }
.vorschau-overlay.an { display: flex; }
.vorschau-overlay img { max-width: 92vw; max-height: 84vh; }
.vorschau-overlay .info { color: #ddd; margin-top: 10px; font-size: .9rem; }

dialog { border: 0; border-radius: 12px; padding: 20px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.3); max-width: 480px; width: 92vw; }
dialog::backdrop { background: rgba(30,20,40,.4); }
dialog h2 { margin-top: 0; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #2a2233; color: #fff; padding: 9px 16px; border-radius: 8px; z-index: 90; font-size: .9rem; display: none; }

@media (max-width: 900px) {
  .rahmen { grid-template-columns: 1fr; }
  .seite { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--linie); padding-bottom: 14px; }
  .seite .fuss { position: static; width: auto; }
  .raster2, .raster3, .einst { grid-template-columns: 1fr; }
  .zeile { grid-template-columns: 1fr; gap: 4px; }
  .kopf .suche { display: none; }
  .haupt { padding: 16px; }
}

/* Ordner-Einstellungen */
.abschnitt-titel { font-size: .82rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 22px 0 2px; padding-top: 14px; border-top: 1px solid var(--linie); }
.karte h2 + .abschnitt-titel { border-top: 0; padding-top: 0; margin-top: 4px; }
.zeile.oben { align-items: start; }
.zeile.oben > label { padding-top: 2px; }
.unterblock .zeile { grid-template-columns: 170px 1fr; padding: 6px 0; }
.seg.klein label { padding: 3px 10px; font-size: .82rem; }
.baum a.privat { color: var(--muted); }
.editor { border: 1px solid #d9d4e1; border-radius: 9px; padding: 8px; background: #fcfbfd; }
.editor-kopf { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.werkzeug { display: flex; gap: 4px; flex-wrap: wrap; }
.werkzeug button { border: 1px solid var(--linie); background: #fff; border-radius: 6px; padding: 3px 8px; cursor: pointer; font: inherit; font-size: .82rem; }
.werkzeug button:hover { border-color: #cbc4d6; }
.editor-feld { min-height: 110px; background: #fff; border: 1px solid #e4e0ea; border-radius: 7px; padding: 10px 12px; outline: none; line-height: 1.55; }
.editor-feld:focus { border-color: var(--lila-hell); box-shadow: 0 0 0 2px #e6dbf3; }
.editor-feld:empty::before { content: attr(data-platzhalter); color: #a9a2b4; }
.editor-feld ul, .editor-feld ol { margin: 4px 0; padding-left: 22px; }
.editor-feld p { margin: 0 0 6px; }

/* Link-Vorlagen */
.vorlagenliste .pfeil { padding: 2px 7px; margin-right: 2px; }

/* Wasserzeichen */
.wz-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 22px; align-items: start; }
.wz-raster .zeile { grid-template-columns: 120px 1fr; }
.wz-grafik { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.schach { width: 120px; height: 80px; border-radius: 8px; border: 1px solid var(--linie); display: flex; align-items: center; justify-content: center; font-size: .8rem; color: var(--muted);
  background: repeating-conic-gradient(#d9d4e1 0% 25%, #f6f4f8 0% 50%) 50% / 16px 16px; }
.schach img { max-width: 92%; max-height: 88%; }
.wz-vorschau { position: sticky; top: 70px; }
.wz-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; }
.wz-vorschau img { width: 100%; max-height: 520px; object-fit: contain; border-radius: 8px; background: #2a2233; display: block; transition: opacity .15s; min-height: 200px; }
@media (max-width: 1100px) { .wz-raster { grid-template-columns: 1fr; } .wz-vorschau { position: static; } }
.wz-raster select { width: 100%; max-width: 320px; }

/* Aktionsleiste für gewählte Fotos: schwebt unten, verschiebt nichts */
.schwebeleiste { position: fixed; left: calc(272px + 26px); right: 26px; bottom: 18px; z-index: 30; display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap; background: var(--lila-dunkel); color: #fff; padding: 10px 14px; border-radius: 12px; box-shadow: 0 10px 30px rgba(20,10,40,.35); }
.schwebeleiste .btn { background: #3a3045; border-color: #4b3f58; color: #fff; }
.schwebeleiste .btn:hover { border-color: #8a7aa0; }
.schwebeleiste .btn.pri { background: var(--lila-hell); border-color: var(--lila-hell); }
.schwebeleiste .btn.gefahr { color: #ffb4ab; border-color: #7a3a3a; }
.schwebeleiste select { max-width: 220px; }
.haupt { padding-bottom: 110px; }
@media (max-width: 900px) { .schwebeleiste { left: 10px; right: 10px; bottom: 10px; } }

/* Dateien ohne Vorschau: neutrale Kachel (keine Markenlogos) */
.dateikachel { aspect-ratio: 3/2; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #fff; background: #6b6775; user-select: none; }
.dateikachel b { font-size: 1.5rem; letter-spacing: 1px; font-weight: 800; }
.dateikachel span { font-size: .75rem; opacity: .85; }
.dateikachel.pdf { background: #c0392b; } .dateikachel.doc { background: #2f5fb3; } .dateikachel.xls { background: #23824a; }
.dateikachel.ppt { background: #c4622d; } .dateikachel.video { background: #6d3fa0; } .dateikachel.zip { background: #5b6470; }
.dateikachel.gross { width: min(70vw, 520px); }
.dateikachel.gross b { font-size: 4rem; } .dateikachel.gross span { font-size: 1rem; }
.foto.aus .dateikachel { opacity: .35; }

/* Alte Ordner */
tr.behalten td { opacity: .6; }
tr.gezippt td { background: var(--gruen-zart) !important; }
.st.gezippt { background: var(--gruen-zart); color: var(--gruen); }

/* Textvorlagen */
.textblock { border-top: 1px solid var(--linie); padding: 14px 0 6px; }
.textblock:first-of-type { border-top: 0; }
.textvorschau { white-space: pre-wrap; background: #f7f5fa; border: 1px dashed #d6cce3; border-radius: 8px; padding: 10px 12px; font-size: .88rem; margin-top: 6px; }
.textvorschau .leer-hinweis { color: var(--gelb); font-style: italic; }
.platzhalter-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; font-size: .82rem; color: var(--muted); }
.platzhalter-liste b { font-family: "SF Mono", Menlo, monospace; color: var(--lila); font-weight: 600; }
.sprachtabs { position: sticky; top: 52px; z-index: 5; background: var(--flaeche); padding: 8px 0; }
