@import "fonts.css";
/* Editor, Anmeldung und Verwaltung: warmes „Advent“-Design in Zimt/Tanne/Gold */
:root {
  --ink: #2c2013; --mute: #7a6a58; --fog: #f7efe2; --paper: #fffaf3; --line: #e2d3ba; --line-2: #c9ac82;
  --teal: #35573f; --teal-d: #223c29; --duck: #eab74a; --duck-d: #b5822a; --duck-soft: #f7e6c2; --bill: #c9752f;
  --danger: #9c2b22; --ok: #2f5d3f;
  --display: "Nunito", "Segoe UI", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--fog); color: var(--ink); font: 16px/1.5 var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.005em; line-height: 1.15; }
a { color: var(--teal-d); }

.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.logo i { width: 36px; height: 36px; display: inline-block; background: url("ente.webp") center/contain no-repeat; }

/* Buttons und Felder */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1.5px solid rgba(44, 32, 19, .3); border-radius: 999px; background: var(--paper); color: var(--ink);
  font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 0 rgba(44, 32, 19, .45), 0 4px 10px rgba(44, 32, 19, .1); transition: transform .08s, box-shadow .08s; }
.btn:hover { background: var(--duck-soft); }
.btn:active { transform: translateY(1px); box-shadow: 0 0 0 rgba(44, 32, 19, .45), 0 2px 5px rgba(44, 32, 19, .1); }
.btn.primary { background: var(--duck); border-color: rgba(44, 32, 19, .35); }
.btn.primary:hover { background: #f0c565; }
.btn.danger { color: var(--danger); border-color: var(--danger); box-shadow: 0 1px 0 var(--danger), 0 4px 10px rgba(156, 43, 34, .12); }
.btn.small { padding: 4px 12px; font-size: .9rem; box-shadow: 0 1px 0 rgba(44, 32, 19, .4), 0 2px 6px rgba(44, 32, 19, .1); }
.btn.small:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .lbl { color: var(--mute); font-size: .9rem; }
.field .hint, .hint { color: var(--mute); font-size: .88rem; margin: 0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=datetime-local], select, textarea {
  width: 100%; background: #fff; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 9px 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 3px solid rgba(15, 107, 122, .25); outline-offset: 0; }
input[disabled] { background: #eef3f3; }
textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
input[type=color] { width: 52px; height: 38px; padding: 2px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 10px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.grow > input { flex: 1; min-width: 160px; }
.check { display: flex; gap: 10px; align-items: center; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); }
.ok { color: var(--ok); margin: 0; font-weight: 700; }
.err, .aierr { color: var(--danger); margin: 0; font-weight: 700; }
.note, .tip { background: var(--duck-soft); border: 2px solid var(--duck-d); border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; }
.lock { color: var(--mute); font-size: .9rem; margin: 0; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #dbe8e8; border: 1.5px solid var(--line-2); }
.badge.pro { background: var(--duck); border-color: rgba(44, 32, 19, .35); }
.badge.live { background: #d3f0e0; border-color: var(--ok); color: #0c4a31; }

/* Anmeldung, Start, Rechtliches: links die Teich-Szene, rechts der Inhalt */
.stage { min-height: 100vh; display: grid; grid-template-columns: minmax(260px, 40%) 1fr; }
.stage.plain { grid-template-columns: 1fr; }
.stage-art { position: sticky; top: 0; height: 100vh; background: #20241a; border-right: 1.5px solid rgba(44, 32, 19, .25); overflow: hidden; }
.stage-art img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 62% 80%; }
.login { display: grid; align-content: center; justify-items: center; padding: 32px 24px; gap: 8px; }
.login.legal { align-content: start; }
.login form { width: min(440px, 100%); background: var(--paper); border: 1.5px solid rgba(44, 32, 19, .18); border-radius: 18px; padding: 28px; display: grid; gap: 4px; box-shadow: 0 16px 34px rgba(44, 32, 19, .14), 0 1px 0 rgba(44, 32, 19, .3); }
.login form h2 { margin: 14px 0 10px; font-size: 1.7rem; }
.login .field { margin-bottom: 12px; }
.legal-links { text-align: center; color: var(--mute); font-size: .88rem; margin-top: 20px; }
.legal-text { max-width: 68ch; line-height: 1.65; }
.legal-text h1 { margin: 18px 0 14px; font-size: 2rem; }
.legal-text h2 { font-size: 1.2rem; margin: 22px 0 6px; }
.landing-box { max-width: 560px; display: grid; gap: 18px; }
.landing-box h1 { font-size: 2.6rem; font-size: clamp(2rem, 5vw, 3.1rem); }
.landing-box p { margin: 0; color: var(--mute); font-size: 1.1rem; }
@media (max-width: 820px) {
  .stage { grid-template-columns: 1fr; grid-template-rows: 150px 1fr; }
  .stage-art { position: relative; height: 150px; border-right: 0; border-bottom: 1.5px solid rgba(44, 32, 19, .22); }
  .stage-art img { object-position: 60% 76%; }
}

/* Kalenderliste */
.home { max-width: 1020px; margin: 0 auto; padding: 28px 20px 64px; }
.home header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; gap: 12px; flex-wrap: wrap; }
.home h1 { font-size: 2rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card { background: var(--paper); border: 1.5px solid rgba(44, 32, 19, .18); border-radius: 16px; padding: 18px; display: grid; gap: 10px; align-content: start; box-shadow: 0 12px 26px rgba(44, 32, 19, .12), 0 1px 0 rgba(44, 32, 19, .28); }
.card h3 { font-size: 1.25rem; }
.card .meta { color: var(--mute); font-size: .92rem; }
.bar { height: 10px; background: #ece1cc; border: 1.5px solid rgba(44, 32, 19, .2); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--duck); }
.bar.full > span { background: var(--danger); }
.files { display: grid; gap: 8px; margin-bottom: 14px; }
.file { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; }
.file.unused { border-style: dashed; }
.file img, .file .ficon { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 8px; object-fit: cover; background: var(--fog); display: grid; place-items: center; font-size: 1.5rem; }
.file .finfo { flex: 1; min-width: 0; display: grid; }
.file .finfo span { color: var(--mute); font-size: .88rem; }
.empty-home { border: 2px dashed var(--line-2); border-radius: 16px; padding: 40px 24px; text-align: center; color: var(--mute); }
.newform { display: flex; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.newform input { flex: 1; min-width: 220px; }

/* Editor-Rahmen: oben Navigation, kein Seitenmenü */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; padding: 10px 20px; background: var(--paper); border-bottom: 1.5px solid rgba(44, 32, 19, .22); }
.top .left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.top .mid { line-height: 1.2; min-width: 0; }
.top .mid b { display: block; font-family: var(--display); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 24ch; }
.top .mid small { color: var(--mute); }
.top .right { display: flex; gap: 10px; margin-left: auto; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.steps button { border: 2px solid transparent; background: none; padding: 7px 16px; border-radius: 999px; font-family: var(--display); font-weight: 500; font-size: 1.02rem; color: var(--mute); }
.steps button:hover { color: var(--ink); background: var(--duck-soft); }
.steps button[aria-current=true] { color: var(--ink); background: var(--duck); border-color: rgba(44, 32, 19, .35); }
.main { flex: 1; min-width: 0; }
.pad { padding: 28px 24px 72px; max-width: 760px; margin: 0 auto; }
.pad h2 { font-size: 1.6rem; margin-bottom: 20px; }
.pad > .hint { margin: 0 0 16px; }

/* Gestalten */
.split { display: grid; grid-template-columns: 330px 1fr; min-height: calc(100vh - 72px); }
.panel { background: var(--paper); border-right: 1.5px solid rgba(44, 32, 19, .22); padding: 22px; }
.panel h2 { font-size: 1.35rem; margin-bottom: 16px; }
.panel h3 { font-size: 1.05rem; margin: 22px 0 10px; padding-top: 16px; border-top: 2px dashed var(--line); }
.preview { padding: 20px; min-width: 0; }
.frame { border: 1.5px solid rgba(44, 32, 19, .22); border-radius: 18px; overflow: hidden; height: calc(100vh - 112px); min-height: 420px; box-shadow: 0 16px 32px rgba(44, 32, 19, .14), 0 1px 0 rgba(44, 32, 19, .3); overflow-y: auto; }
.shape-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.shape-pick button { display: grid; justify-items: center; gap: 4px; border: 1.5px solid var(--line-2); background: #fff; border-radius: 12px; padding: 8px 4px; font-size: .85rem; color: var(--mute); }
.shape-pick button svg { width: 34px; height: 34px; }
.shape-pick button[aria-pressed=true] { border-color: rgba(44, 32, 19, .35); background: var(--duck-soft); color: var(--ink); box-shadow: 0 1px 0 rgba(44, 32, 19, .4), 0 4px 10px rgba(44, 32, 19, .1); }

/* Vorlagen-Auswahl */
.tpl-cats { display: grid; gap: 8px; margin-top: 4px; }
.tpl-cat { border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
.tpl-cat.open { border-color: var(--line-2); }
.tpl-cat-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; background: none; border: 0; text-align: left; font: inherit; cursor: pointer; }
.tpl-cat-head .tpl-name { flex: 1; font-family: var(--display); font-weight: 500; margin: 0; }
.tpl-cat-head .hint { font-size: .82rem; }
.tpl-cat-head .chev { transition: transform .15s ease; color: var(--mute); }
.tpl-cat-head[aria-expanded=true] .chev { transform: rotate(180deg); }
.tpl-cat-head:hover { background: var(--fog); }
.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 10px 10px; }
.tpl-grid[hidden] { display: none; }
.tpl { display: grid; gap: 4px; padding: 0 0 6px; text-align: center; background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; overflow: hidden; font-size: .85rem; }
.tpl img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.tpl:hover { border-color: rgba(44, 32, 19, .35); }
.tpl[aria-pressed=true] { border-color: rgba(44, 32, 19, .35); background: var(--duck-soft); box-shadow: 0 1px 0 rgba(44, 32, 19, .4), 0 4px 10px rgba(44, 32, 19, .1); font-weight: 700; }
input[type=range] { accent-color: var(--teal); width: 100%; min-width: 140px; flex: 1; }

/* Türchen: Leiste mit 24 Kacheln, darunter der Editor */
.doors2 { max-width: 1020px; margin: 0 auto; padding: 26px 24px 72px; }
.dlist { margin-bottom: 24px; }
.dlist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dlist-head h2 { font-size: 1.5rem; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.chip { display: grid; gap: 1px; text-align: left; min-height: 62px; padding: 7px 10px; background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 12px; }
.chip b { font-family: var(--display); font-size: 1.2rem; line-height: 1.1; }
.chip small { color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.2em; }
.chip.filled { background: var(--duck-soft); border-color: var(--duck-d); }
.chip:hover { border-color: rgba(44, 32, 19, .35); }
.chip[aria-current=true] { background: var(--duck); border-color: rgba(44, 32, 19, .35); box-shadow: 0 1px 0 rgba(44, 32, 19, .4), 0 6px 14px rgba(44, 32, 19, .12); }
.dedit { background: var(--paper); border: 1.5px solid rgba(44, 32, 19, .22); border-radius: 18px; padding: 24px 26px 30px; box-shadow: 0 16px 32px rgba(44, 32, 19, .14), 0 1px 0 rgba(44, 32, 19, .3); }
.dedit h2 { font-size: 1.5rem; }
.dedit .sub { color: var(--mute); margin-top: 2px; }
.tabs { display: flex; gap: 6px; margin: 16px 0 20px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.tabs button { background: none; border: 0; border-bottom: 4px solid transparent; margin-bottom: -2px; padding: 8px 6px; color: var(--mute); font-weight: 700; }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--duck); }
.addbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.addbar.sub { margin: -12px 0 20px 4px; padding-left: 14px; border-left: 2px solid var(--line); }
.pill { border: 1.5px solid rgba(44, 32, 19, .22); background: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 700; }
.pill:hover { background: var(--duck-soft); }
.pill.ai { background: var(--duck); box-shadow: 0 2px 0 var(--ink); }
.blk { background: #f8fbfb; border: 2px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.blk .bh { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--mute); }
.blk .bh b { color: var(--ink); flex: 1; font-family: var(--display); font-weight: 500; font-size: 1.05rem; }
.blk .thumb { max-width: 220px; max-height: 140px; border-radius: 10px; border: 2px solid var(--line); display: block; margin-top: 8px; }
.blk-preview { background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-top: 4px; }
.blk-preview p { margin: 0 0 .8em; line-height: 1.5; }
.blk-preview p:last-child { margin-bottom: 0; }
.blk-preview h4 { margin: .6em 0 .3em; font-size: 1.05rem; }
.blk-preview h4:first-child { margin-top: 0; }
.blk-preview ul { margin: 0 0 .8em; padding-left: 1.2em; }
.blk-preview .empty { color: var(--mute); font-style: italic; }
.memory-gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.memory-thumb { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1.5px solid var(--line); }
.memory-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.memory-thumb .rm { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(44, 32, 19, .75); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; }
.memory-gallery.presets { margin-top: 6px; }
.memory-thumb.pick { padding: 0; background: none; cursor: pointer; opacity: .45; transition: opacity .15s, box-shadow .15s; }
.memory-thumb.pick[aria-pressed=true] { opacity: 1; border-color: var(--duck-d); box-shadow: 0 0 0 2.5px var(--duck); }
.memory-thumb.pick[aria-pressed=true]::after { content: "✓"; position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.empty { color: var(--mute); border: 2px dashed var(--line-2); border-radius: 14px; padding: 26px; text-align: center; }
.empty::before { content: ""; display: block; width: 72px; height: 72px; margin: 0 auto 10px; background: url("ente.webp") center/contain no-repeat; }

/* KI-Assistent */
.aipanel { background: var(--duck-soft); border: 1.5px solid rgba(44, 32, 19, .22); border-radius: 16px; padding: 20px; margin-bottom: 20px; position: relative; }
.aipanel::after { content: ""; position: absolute; right: 16px; top: -30px; width: 56px; height: 56px; background: url("ente-links.webp") center/contain no-repeat; }
.ainote { margin: 0 0 16px; padding: 10px 14px; background: #fff; border-left: 6px solid var(--teal); border-radius: 6px; }
.aisel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 700px) { .aisel { grid-template-columns: 1fr; } }
.aipanel h3 { font-size: 1.15rem; margin: 6px 0 12px; padding-top: 14px; border-top: 2px dashed var(--duck-d); }
.idearow { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.idea { text-align: left; background: #fff; border: 1.5px solid rgba(44, 32, 19, .22); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; justify-content: space-between; min-height: 92px; box-shadow: 0 1px 0 rgba(44, 32, 19, .4), 0 4px 10px rgba(44, 32, 19, .1); }
.idea:hover:not([disabled]) { background: #fffdf2; transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.idea[disabled] { cursor: wait; opacity: .75; }
.idea .it { line-height: 1.35; font-weight: 700; }
.kind { background: var(--teal); color: #fff; padding: 1px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.quota { color: var(--mute); font-size: .88rem; margin: 6px 0 0; }
.aierr { background: #fde7e5; border: 2px solid var(--danger); padding: 8px 12px; border-radius: 10px; margin: 0 0 12px; }

/* Dialoge */
.mback { position: fixed; inset: 0; background: rgba(18, 48, 58, .6); z-index: 40; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.mbox { background: var(--paper); border: 1.5px solid rgba(44, 32, 19, .22); border-radius: 18px; width: min(580px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px; box-shadow: 0 16px 32px rgba(44, 32, 19, .14), 0 1px 0 rgba(44, 32, 19, .3); }
.mbox h2 { font-size: 1.5rem; margin-bottom: 6px; }
.mbox .lead { color: var(--mute); margin: 0 0 18px; }
.mbox .foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.mbox.wide { width: min(760px, 100%); }
.dropzone { display: grid; gap: 4px; place-items: center; text-align: center; padding: 22px 16px; border: 2px dashed var(--line-2); border-radius: 14px; background: var(--fog); cursor: pointer; transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.over { background: var(--duck-soft); border-color: var(--duck-d); outline: none; }
.dropzone span { color: var(--mute); font-size: .88rem; }
.pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 6px; max-height: 46vh; overflow-y: auto; padding: 2px; }
.pickgrid .pick { position: relative; padding: 0; aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--fog); cursor: pointer; }
.pickgrid .pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pickgrid .pick.on { border-color: var(--duck-d); box-shadow: 0 0 0 3px var(--duck); }
.pickgrid .pick i { position: absolute; top: 4px; right: 4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--ok); color: #fff; font-style: normal; font-size: .78rem; font-weight: 700; line-height: 22px; text-align: center; }
.pickgrid .pick em { position: absolute; left: 4px; bottom: 4px; padding: 0 6px; border-radius: 999px; background: rgba(44, 32, 19, .7); color: #fff; font-style: normal; font-size: .7rem; line-height: 18px; }
.scope { display: grid; gap: 8px; }
.scope label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 12px; }
.scope input { margin-top: 4px; accent-color: var(--teal); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spin { width: 16px; height: 16px; border: 3px solid rgba(18, 48, 58, .25); border-top-color: var(--ink); border-radius: 50%; animation: sp .8s linear infinite; display: inline-block; }
@keyframes sp { to { transform: rotate(360deg); } }
.toastbar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; z-index: 60; max-width: calc(100vw - 32px); box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.toastbar.err { background: var(--danger); }

/* Verwaltung */
.adm { max-width: 1220px; margin: 0 auto; padding: 24px 20px 64px; }
.adm header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stats div { background: var(--paper); border: 1.5px solid rgba(44, 32, 19, .22); border-radius: 14px; padding: 12px 14px; display: grid; box-shadow: 0 1px 0 rgba(44, 32, 19, .35), 0 6px 14px rgba(44, 32, 19, .1); }
.stats b { font-family: var(--display); font-size: 1.8rem; }
.stats span { color: var(--mute); font-size: .9rem; }
.sbars { display: flex; gap: 4px; align-items: flex-end; height: 110px; padding: 8px 4px 0; border-bottom: 1.5px solid var(--line); }
.sbars.scroll { overflow-x: auto; }
.sbar { flex: 1 0 18px; min-width: 18px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.sbar span { font-size: .68rem; color: var(--mute); white-space: nowrap; }
.sbar-fill { width: 100%; min-height: 2px; background: var(--duck); border-radius: 4px 4px 0 0; }
.adm .tabs a { color: var(--mute); text-decoration: none; padding: 8px 10px; border-bottom: 4px solid transparent; margin-bottom: -2px; font-weight: 700; }
.adm .tabs a.on { color: var(--ink); border-bottom-color: var(--duck); }
.tw { overflow-x: auto; background: var(--paper); border: 1.5px solid rgba(44, 32, 19, .22); border-radius: 14px; }
.adm table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.adm th, .adm td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm th { color: var(--mute); font-weight: 700; white-space: nowrap; background: #f3f8f8; }
.adm td small { color: var(--mute); }
.adm { max-width: 1400px; }
.adm td, .adm th { padding: 7px 10px; }
.adm td { vertical-align: middle; }
.adm .count { color: var(--mute); margin: 0 0 8px; font-size: .9rem; }
.adm .sortlink { color: inherit; text-decoration: none; }
.adm .sortlink:hover, .adm .sortlink.on { color: var(--ink); }
.adm .filt { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.adm .filt a { padding: 4px 12px; border: 1.5px solid rgba(44, 32, 19, .22); border-radius: 999px; color: var(--mute); text-decoration: none; font-weight: 700; font-size: .88rem; background: var(--paper); }
.adm .filt a.on { color: var(--ink); border-color: var(--duck); background: #fff7dc; }
.adm .filt a.own { margin-left: auto; }
.adm details.act summary { cursor: pointer; font-weight: 700; color: var(--teal-d); list-style: none; white-space: nowrap; }
.adm details.act summary::-webkit-details-marker { display: none; }
.adm details.act summary::after { content: " ▾"; }
.adm details.act[open] summary::after { content: " ▴"; }
.adm details.act .act-body { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; max-width: 360px; }

/* Kaffee-Hinweis */
.coffee-note { margin: 18px 0 0; color: var(--mute); }
.coffee { font-weight: 700; color: var(--teal-d); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.coffee::before { content: ""; display: inline-block; width: 1.05em; height: 1.05em; margin-right: .4em; vertical-align: -.16em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M4 8h12v6a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5zm12 1h2a3 3 0 0 1 0 6h-2v-2h2a1 1 0 0 0 0-2h-2zM7 2h2v3H7zm4 0h2v3h-2z%22/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M4 8h12v6a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5zm12 1h2a3 3 0 0 1 0 6h-2v-2h2a1 1 0 0 0 0-2h-2zM7 2h2v3H7zm4 0h2v3h-2z%22/%3E%3C/svg%3E") center/contain no-repeat; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .panel { border-right: 0; border-bottom: 1.5px solid rgba(44, 32, 19, .22); }
  .frame { height: 70vh; }
  .top .right { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.5s; } .btn, .idea { transition: none; } }

/* Gestalten: Die Vorschau bleibt beim Scrollen der Einstellungen sichtbar */
:root { --topbar: 66px; }
.split { align-items: start; min-height: calc(100vh - var(--topbar)); }
.preview { position: sticky; top: var(--topbar); align-self: start; height: calc(100vh - var(--topbar)); }
.frame { height: calc(100vh - var(--topbar) - 40px); min-height: 320px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .top { position: static; }
  .preview { order: -1; top: 0; z-index: 6; height: 42vh; padding: 8px 12px; background: var(--fog); }
  .frame { height: calc(42vh - 16px); min-height: 0; }
  .panel { border-right: 0; border-top: 1.5px solid rgba(44, 32, 19, .22); }
}

/* Aufklappbare Schritte in "Gestalten" */
.acc { border-top: 2px solid var(--line); }
.acc:last-of-type { border-bottom: 2px solid var(--line); }
.acc-head { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 13px 2px; font-family: var(--display); font-weight: 600; font-size: 1.1rem; scroll-margin-top: calc(var(--topbar) + 8px); }
.acc-head:hover { background: var(--duck-soft); }
.acc-head .no { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px solid rgba(44, 32, 19, .22); font-size: .85rem; }
.acc-head[aria-expanded=true] .no { background: var(--duck); }
.acc-head .sum { margin-left: auto; color: var(--mute); font-family: var(--text); font-weight: 400; font-size: .85rem; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-head .chev { flex: none; font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.acc-head[aria-expanded=true] .chev { transform: rotate(180deg); }
.acc-body { padding: 4px 2px 18px; }
.acc-body[hidden] { display: none; }
.acc-next { margin-top: 6px; display: flex; justify-content: flex-end; }
@media (prefers-reduced-motion: reduce) { .acc-head .chev { transition: none; } }

/* Eingeklappter Bereich unter der Vorlagenauswahl */
details.more { margin-top: 14px; border-top: 2px dashed var(--line); padding-top: 10px; }
details.more > summary { cursor: pointer; font-weight: 700; padding: 6px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "\25B8"; transition: transform .15s; }
details.more[open] > summary::before { transform: rotate(90deg); }
.more-body { padding: 8px 0 4px; }
@media (prefers-reduced-motion: reduce) { details.more > summary::before { transition: none; } }

.sday { display: inline-block; margin: 6px 0 2px; padding: 3px 10px; border-radius: 999px; background: var(--duck-soft); color: var(--ink); font-size: .88rem; font-weight: 700; }
.chip .sd { color: var(--duck-d); font-style: normal; }

.quiz-ai { display: grid; gap: 8px; padding: 12px; margin-bottom: 12px; border-radius: 12px; background: var(--duck-soft); }
.quiz-edit { display: grid; gap: 10px; }
.qitem { display: grid; gap: 6px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); }
.qa { display: flex; align-items: center; gap: 8px; }
.qa label { display: flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--mute); white-space: nowrap; }
.qa input[type=text] { flex: 1; }
.qa.ok input[type=text] { border-color: var(--ok); background: #eef6f0; }

/* Puzzle: Vorlagenbilder */
.jig-presets { margin-top: 10px; }
.jig-presets summary { cursor: pointer; color: var(--teal-d); font-weight: 700; margin-bottom: 8px; }
.jig-presets .tpl-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); padding: 0; }
.plan-form { display: inline-flex; gap: 4px; align-items: center; margin: 0 4px 4px 0; }
.plan-form select, .plan-form input[type=date] { width: auto; padding: 3px 6px; font-size: .85rem; }

/* Archivierter Kalender (Saison vorbei) */
.archive-note { margin: 0; padding: 12px clamp(16px, 3vw, 32px); background: #fdf3dc; border-bottom: 1px solid var(--line); font-size: .95rem; }

/* Rechtstexte: Rückweg zur Startseite */
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.legal-back { margin-top: 28px; }

/* AVV: Tabelle der technischen und organisatorischen Maßnahmen */
.legal-text table.tom { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: .95rem; }
.legal-text table.tom th, .legal-text table.tom td { padding: 8px 10px; border-top: 1px solid rgba(44, 32, 19, .15); vertical-align: top; text-align: left; }
.legal-text table.tom th { width: 32%; font-weight: 600; }
@media (max-width: 640px) { .legal-text table.tom th, .legal-text table.tom td { display: block; width: auto; } .legal-text table.tom td { border-top: 0; padding-top: 0; } }

/* Paket buchen */
.choice { display: grid; gap: 8px; margin: 12px 0; }
.choice .opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.choice .opt:has(input:checked) { border-color: var(--gold, #eab74a); box-shadow: 0 0 0 3px rgba(234, 183, 74, .25); }
.choice .opt input { margin-top: 4px; flex: none; }
.choice small { color: var(--mute, #7a6a58); }
