:root {
  color-scheme: light; --papier:#f7f4eb; --blatt:#fffdf7; --tinte:#172923;
  --gruen:#12604d; --leise:#45544e; --linie:#747e73; --haar:#c3cabe; --rot:#8d392d;
  --rand:clamp(1.25rem,5vw,4rem); --lese:42rem; --kurve:cubic-bezier(.22,1,.36,1);
}
*,*::before,*::after { box-sizing:border-box }
[hidden] { display:none !important }
html { scrollbar-color:var(--gruen) var(--papier); }
body { margin:0; background:var(--papier); color:var(--tinte); font:1.0625rem/1.6 system-ui,sans-serif; caret-color:var(--stift); }
::selection { color:var(--blatt); background:var(--gruen); }
.mast,main,footer { width:min(calc(100% - 2 * var(--rand)),68rem); margin-inline:auto; }
.mast { min-height:clamp(4.25rem,9vw,6rem); display:flex; justify-content:space-between; align-items:center; gap:1rem; border-bottom:1px solid var(--tinte); }
.brand { display:inline-flex; gap:.75rem; align-items:center; min-height:48px; text-decoration:none; color:var(--tinte); font-size:1.25rem; font-weight:600; letter-spacing:-.02em; }
.mark { width:1.25rem; height:1.5rem; border:2px solid var(--gruen); border-left-width:5px; border-bottom-right-radius:.3rem; transform:rotate(-7deg); display:inline-block; }
.demo { color:var(--leise); font-size:.875rem; font-weight:600; white-space:nowrap; }
main { padding:clamp(2rem,6vw,5rem) 0 clamp(3rem,8vw,6rem); }
.edition,.note-label { color:var(--gruen); font-size:.9375rem; font-weight:600; letter-spacing:.01em; line-height:1.45; }
.edition { margin:0 0 1.25rem; }
h1,h2 { font-family:Georgia,'Times New Roman',serif; font-weight:normal; }
h1 { max-width:15ch; font-size:clamp(2.65rem,6.8vw,5.5rem); letter-spacing:-.035em; line-height:1.02; margin:0 0 1.5rem; overflow-wrap:anywhere; text-wrap:balance; }
h2 { font-size:clamp(1.65rem,3.3vw,2.4rem); line-height:1.12; letter-spacing:-.04em; margin:0 0 1.1rem; }
a { color:var(--gruen); text-decoration-thickness:1px; text-underline-offset:.22em; font-weight:600; }
:focus-visible { outline:3px solid var(--gruen); outline-offset:4px; }
.skip { position:fixed; left:1rem; top:1rem; z-index:5; background:var(--blatt); padding:.65rem; transform:translateY(-200%); }
.skip:focus { transform:none; }
.intro { max-width:35ch; font-size:clamp(1.1rem,2.3vw,1.375rem); line-height:1.5; margin:0 0 2.4rem; }
.spread { display:grid; grid-template-columns:minmax(0,1fr) minmax(14rem,17rem); align-items:start; gap:clamp(2rem,6vw,5.5rem); }
.primary h2 { margin-top:clamp(2.5rem,7vw,4.5rem); }
.note { align-self:start; margin-top:clamp(1rem,5vw,4rem); padding:1.55rem 1.35rem 1.4rem; background:var(--blatt); border-left:3px solid var(--gruen); }
.note h2 { margin:.55rem 0 .7rem; font-size:1.75rem; }
.note p { margin:.45rem 0 .75rem; }
.tablet-link,.actions a,.filters a,footer a { display:inline-flex; align-items:center; min-height:48px; }
.tablet-link { margin-top:.3rem; }
.role { display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height:5rem; padding:1rem .85rem; text-decoration:none; color:var(--tinte); border-bottom:1px solid var(--haar); }
.role:first-child { border-top:1px solid var(--haar); }
.role { transition:background-color 160ms var(--kurve),color 160ms var(--kurve); }
.role:hover,.role:focus-visible { background:#e5eee5; }
.role strong,.role small { display:block; }
.role strong { color:var(--gruen); font-size:1.2rem; line-height:1.35; }
.role small { font-weight:400; font-size:1rem; line-height:1.45; margin-top:.25rem; }
.chevron { flex:none; width:.55rem; height:.55rem; border-right:2px solid var(--gruen); border-top:2px solid var(--gruen); transform:rotate(45deg); margin-right:.32rem; }
.form-head { max-width:var(--lese); }
.form-head h1 { margin:0 0 1.1rem; }
.form-head .intro { margin:0 0 clamp(1.65rem,4vw,2.6rem); max-width:38ch; }
.sheet,.entry { max-width:var(--lese); background:var(--blatt); border:1px solid var(--haar); padding:clamp(1rem,4vw,2.15rem); }
.entry { margin:1.05rem 0; }
.meta,#hint,.form-notes,.form-tail { color:var(--leise); }
.form-tail { max-width:var(--lese); margin:1.25rem 0 0; font-size:.95rem; }
.raw { white-space:pre-wrap; overflow-wrap:anywhere; }
fieldset { border:0; padding:0; margin:0; min-width:0; }
legend,.field { font-weight:600; font-size:1.13rem; }
.choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; margin-top:.8rem; }
.choices label { display:flex; gap:.5rem; align-items:center; cursor:pointer; min-height:58px; border:1px solid var(--linie); border-radius:.5rem; padding:.75rem; overflow-wrap:anywhere; hyphens:auto; transition:background-color 160ms var(--kurve),border-color 160ms var(--kurve); }
.choices label:has(:checked) { border-color:var(--gruen); background:#e5eee5; box-shadow:inset 0 0 0 1px var(--gruen); }
input[type=radio] { accent-color:var(--gruen); width:1.1rem; height:1.1rem; flex:none; margin:0; }
.writing { margin-top:clamp(1.7rem,5vw,2.45rem); }
.field { display:block; margin:0 0 .55rem; }
#hint { margin:0 0 .65rem; }
.form-notes { display:flex; justify-content:space-between; flex-wrap:wrap; gap:.3rem 1rem; margin:.5rem 0 0; font-size:.9rem; }
.form-notes p { margin:0; }
#count { white-space:nowrap; }
textarea,input[type=password],select { font:inherit; color:inherit; background:#fff; border:1px solid var(--linie); border-radius:.5rem; padding:.75rem; max-width:100%; min-height:48px; }
textarea { display:block; width:100%; resize:vertical; min-height:9.5rem; }
.actions,.filters,.inbox-head { display:flex; align-items:center; flex-wrap:wrap; gap:.7rem 1.1rem; }
.actions { margin-top:clamp(1.3rem,4vw,2rem); }
.inbox-head { max-width:var(--lese); justify-content:space-between; }
.inbox-head h1 { margin:0; }
button,.button { font:inherit; appearance:none; min-height:48px; display:inline-flex; align-items:center; justify-content:center; color:#fff; background:var(--gruen); border:1px solid var(--gruen); border-radius:.5rem; padding:.625rem 1.25rem; font-weight:600; text-decoration:none; cursor:pointer; transition:background-color 160ms var(--kurve),border-color 160ms var(--kurve),transform 120ms var(--kurve); }
button:hover,.button:hover { background:#0b4738; }
button:active,.button:active { transform:scale(.98); }
button.secondary { background:transparent; color:var(--gruen); }
.error,.warning { border:1px solid #d9a99d; border-radius:.5rem; padding:1rem; background:#fbebdf; max-width:var(--lese); margin:0 0 1rem; }
.warning p { margin:0 0 .6rem; }
.filters { margin-top:1rem; }
.filters [aria-current] { text-decoration-thickness:3px; }
footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.45rem 1.1rem; border-top:1px solid var(--haar); min-height:4.5rem; padding:.8rem 0 1.3rem; color:var(--leise); font-size:.875rem; }
[data-kiosk] { --lese:46rem; }
[data-kiosk] .mast,[data-kiosk] main,[data-kiosk] footer { max-width:var(--lese); }
[data-kiosk] main { padding-top:clamp(1.6rem,4vw,3.3rem); }
[data-kiosk] .choices label { min-height:62px; }
@media(max-width:48rem) {
  .spread { grid-template-columns:1fr; gap:2.25rem; }
  .note { margin-top:0; max-width:36rem; }
  br.wide { display:none; }
  .primary .intro { margin-bottom:0; }
}
@media(max-width:37rem) {
  .choices { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .choices label { min-height:56px; }
}
@media(max-width:24rem) {
  .choices label { padding-inline:.4rem; gap:.4rem; }
  .actions button { flex-basis:100%; }
}
.kiosk-launch { max-width:var(--lese); margin:1.7rem 0 1.25rem; padding:1.2rem 0; border-block:1px solid var(--haar); }
.kiosk-launch p { margin:.5rem 0 0; color:var(--leise); font-size:.95rem; }
@media(min-width:64rem) { body:not([data-kiosk]) .spread { grid-template-columns:minmax(0, 1fr) minmax(16rem, .48fr); } }

/* V3 – warm notebook cover, a practical writing desk beside it. */
:root { --papier:#f8f1e6; --blatt:#fffcf3; --tinte:#242e24; --gruen:#244d39; --leise:#4c5646; --haar:#cdc7b6; --warmpapier:#ede3cf; --stift:#9a4232; --gutter:clamp(1.1rem,4vw,5rem); }
.mast,main,footer { width:min(calc(100% - 2 * var(--gutter)),100rem); }
.mast { border-color:#a29a86; }
.mark { border-color:var(--stift); }
.demo { border:1px solid #b7af9d; padding:.2rem .55rem; }
.edition { color:var(--stift); letter-spacing:.025em; font-size:.95rem; }
[data-layout="home"] main { padding-block:clamp(1.4rem,3vw,3.5rem); }
.hallway { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr); min-height:min(75svh,47rem); }
.welcome { position:relative; display:flex; flex-direction:column; justify-content:center; overflow:hidden; background:var(--warmpapier); padding:clamp(2.65rem,5.3vw,6rem); }
.welcome h1 { max-width:13ch; font-size:clamp(3.2rem,6.25vw,6rem); letter-spacing:-.035em; text-wrap:initial; }
.welcome h1 em { font-weight:normal; color:var(--gruen); }
.welcome .intro { max-width:35ch; margin-bottom:.5rem; }
.welcome .intro strong { display:inline-block; color:var(--gruen); }
.zettel-art { display:block; width:min(74%,20rem); align-self:flex-end; margin:.9rem 0 -2rem; }
.write-panel { display:flex; flex-direction:column; justify-content:center; padding:clamp(2rem,4.4vw,5.3rem); background:var(--blatt); border:1px solid var(--haar); border-left:0; min-width:0; }
.write-panel h2 { font-size:clamp(2.2rem,3.25vw,3.8rem); margin-bottom:1.2rem; }
.role { padding-inline:0 .7rem; min-height:clamp(4.8rem,5.75vw,6rem); }
.role:hover,.role:focus-visible { background:#edeedc; }
.role strong { font-size:clamp(1.2rem,1.45vw,1.48rem); }
.note { max-width:none; background:none; margin:clamp(1.5rem,3vw,3rem) 0 0; border-left:1px solid var(--stift); padding:.125rem 0 .125rem 1rem; }
.note h3 { margin:0; color:var(--stift); font-size:.93rem; }
.note p { margin:.25rem 0 0; }
.note p:last-child { font-size:.95rem; color:var(--leise); }
.note .urgent { margin-top:.75rem; padding-top:.75rem; border-top:1px solid var(--haar); }
.desk { display:grid; grid-template-columns:minmax(0,.69fr) minmax(0,1.31fr); gap:clamp(1.4rem,3vw,3.5rem); align-items:start; }
.form-head { max-width:none; background:var(--warmpapier); border-top:1px solid var(--stift); padding:clamp(1.5rem,4vw,4rem); }
.form-head h1 { font-size:clamp(2.75rem,5.3vw,5.6rem); text-wrap:initial; }
.form-head .intro { margin-bottom:0; }
.form-head .form-tail { border-top:1px solid #aca58f; padding-top:1rem; margin-top:clamp(1.25rem,3vw,2.5rem); }
.form-column { min-width:0; }
.form-column .sheet,.form-column .warning,.form-column .error { max-width:none; }
.form-column .sheet { padding:clamp(1.35rem,4vw,3.75rem); border-left:1px solid var(--haar); }
.form-column .choices { gap:clamp(.45rem,1.2vw,1rem); }
[data-kiosk][data-layout="compose"] { --lese:90rem; }
[data-kiosk][data-layout="compose"] .mast,[data-kiosk][data-layout="compose"] main,[data-kiosk][data-layout="compose"] footer { max-width:var(--lese); }
[data-kiosk] .form-column .choices label { min-height:60px; }
[data-private-inbox],.inbox-head,.kiosk-launch { max-width:66rem; }
[data-private-inbox] .entry { max-width:none; }
@media (min-width:105rem) { .welcome h1 { max-width:14ch; } }
@media (max-width:69rem) {
  .welcome { padding:2.25rem; }
  .write-panel { padding:2rem; }
  .hallway { min-height:0; }
  .welcome h1 { font-size:clamp(3.1rem,6.7vw,5rem); }
  .zettel-art { margin:1.2rem 0 -.55rem; }
  .form-column .choices { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:43.01rem) and (max-width:55rem) {
  .hallway { grid-template-columns:1fr; }
  .welcome { padding:2.15rem 40% 2.4rem 2.3rem; min-height:19rem; }
  .welcome h1 { max-width:14ch; margin-bottom:1rem; }
  .zettel-art { position:absolute; width:34%; bottom:2rem; right:1.6rem; }
  .write-panel { border-left:1px solid var(--haar); border-top:0; }
  .roles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:1.1rem; }
  .role,.role:first-child { border-top:1px solid var(--haar); }
  .role { align-items:flex-start; padding-block:1rem; }
  .chevron { align-self:center; }
  .desk { grid-template-columns:1fr; }
  .form-head { padding:1.4rem 2rem; }
  .form-head .form-tail { border-top:0; margin-top:.75rem; padding-top:0; }
  .form-column .choices { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:43rem) {
  .hallway,.desk { display:block; }
  .welcome { padding:1.55rem 1.25rem 1.6rem; }
  .welcome h1 { font-size:clamp(2.6rem,10.1vw,4.15rem); margin-bottom:.9rem; }
  .welcome .edition { margin-bottom:.75rem; }
  .welcome .intro { font-size:1.04rem; margin-bottom:0; }
  .zettel-art { display:none; }
  .write-panel { border:1px solid var(--haar); border-top:0; padding:1.4rem 1.25rem 1.75rem; }
  .write-panel h2 { font-size:2.05rem; margin-bottom:.75rem; }
  .role { min-height:4.65rem; padding-block:.8rem; }
  .note { margin-top:1.45rem; }
  .form-head { padding:1.25rem 1.05rem; margin-bottom:1rem; }
  .form-head .edition { margin-bottom:.7rem; }
  .form-head h1 { margin-bottom:.65rem; }
  .form-head .intro { font-size:1.05rem; }
  .form-head .form-tail { border-top:0; margin-top:.65rem; padding-top:0; }
  .form-column .sheet { padding:1rem; }
}
@media(max-width:22rem) {
  .welcome,.write-panel { padding-inline:.95rem; }
  .role small { font-size:.93rem; }
}

/* V4: feedback appears immediately; only the illustration moves. */
.receipt { display:grid; grid-template-columns:minmax(0,1fr) minmax(12rem,.65fr); max-width:76rem; min-height:22rem; overflow:hidden; background:var(--blatt); border:1px solid var(--haar); }
.receipt-copy { align-self:center; padding:clamp(1.75rem,5vw,4rem); }
.receipt h1 { max-width:13ch; margin-bottom:1.25rem; }
.receipt .intro { margin-bottom:1.5rem; }
.receipt-visual { display:grid; place-items:center; min-height:12rem; border-left:1px solid var(--haar); background:var(--warmpapier); }
.receipt-art { display:block; width:min(85%,19rem); height:auto; overflow:visible; }
.receipt-paper { transform-box:fill-box; transform-origin:center 75%; }
.receipt-stamp { transform-box:fill-box; transform-origin:center; }
@media (prefers-reduced-motion:no-preference) {
  .receipt-paper { animation:papier-einwurf 440ms cubic-bezier(.22,.75,.27,1) both; }
  .receipt-stamp { animation:stempel-erscheint 180ms 240ms ease-out both; }
}
@keyframes papier-einwurf {
  from { transform:translateY(-27px) rotate(-10deg); }
  to { transform:translateY(0) rotate(0); }
}
@keyframes stempel-erscheint {
  from { opacity:0; transform:scale(.9); }
  to { opacity:1; transform:scale(1); }
}
#count { font-variant-numeric:tabular-nums; }
.choices label:focus-within { outline:2px solid var(--gruen); outline-offset:2px; }
.form-column .choices { gap:clamp(.5rem,1.2vw,1rem); }
@media(max-width:43rem) {
  .receipt { grid-template-columns:1fr; min-height:0; }
  .receipt-copy { padding:1.5rem; }
  .receipt h1 { font-size:clamp(2.55rem,9vw,4.15rem); }
  .receipt-visual { border-left:0; border-top:1px solid var(--haar); min-height:9.5rem; }
  .receipt-art { width:min(60%,13.5rem); }
}
.receipt-copy { container-type:inline-size; }
.receipt .receipt-copy h1 { max-width:none; font-size:clamp(2.25rem,10cqi,4.75rem); overflow-wrap:normal; text-wrap:balance; }

/* V5: a one-shot opening illustration, never an overlay or a loading gate. */
.zettel-art {
  pointer-events:none; width:min(82%,27rem); flex:none; height:auto;
  margin:.65rem -.25rem -1.05rem; overflow:visible;
}
.opening-back,.opening-sheet,.opening-ticks { transform-box:fill-box; transform-origin:50% 76%; }
.opening-ink,.opening-under { stroke-dasharray:1 1; stroke-dashoffset:0; }
@media (prefers-reduced-motion:no-preference) {
  .opening-back { animation:mappe-auf 520ms cubic-bezier(.2,.75,.25,1) both; }
  .opening-sheet { animation:zettel-auf 690ms cubic-bezier(.2,.75,.25,1) 65ms both; }
  .opening-ink { animation:idee-schreiben 520ms ease-out 520ms both; }
  .opening-under { animation:idee-schreiben 270ms ease-out 975ms both; }
  .opening-ticks { animation:randzeichen 240ms ease-out 1110ms both; }
}
@keyframes mappe-auf {
  from { opacity:0; transform:translate(-26px,19px) rotate(-10deg); }
  to { opacity:1; transform:none; }
}
@keyframes zettel-auf {
  from { opacity:0; transform:translate(28px,36px) rotate(13deg) scale(.83); }
  70% { opacity:1; }
  to { opacity:1; transform:none; }
}
@keyframes idee-schreiben {
  from { stroke-dashoffset:1; }
  to { stroke-dashoffset:0; }
}
@keyframes randzeichen {
  from { opacity:0; transform:translate(-5px,4px) scale(.75); }
  to { opacity:1; transform:none; }
}
@media (min-width:43.01rem) and (max-width:55rem) {
  .zettel-art { width:37%; right:1.5rem; bottom:2rem; margin:0; }
}
@media(max-width:43rem) {
  .welcome { position:relative; padding-bottom:1.3rem; }
  .zettel-art { display:block; width:clamp(8.3rem,42%,12rem); margin:.3rem -.4rem -.45rem 0; }
}
@media (min-width:55.01rem) and (max-height:52rem) {
  .welcome,.write-panel { padding-block:clamp(1.9rem,4.6vh,3.4rem); }
  .zettel-art { width:min(75%,23rem); margin-bottom:-.6rem; }
}

/* Kleine Signatur am Rand, nur auf der Startseite. */
.signature { display:grid; gap:.125rem; margin:.75rem 0 0; padding-inline-start:.75rem; border-inline-start:1px solid var(--haar); font-size:.875rem; line-height:1.45; }
.signature strong { color:var(--tinte); font-weight:600; }
.signature small { font-size:inherit; }
.signature .signature-contact { justify-self:start; min-height:44px; margin-top:.375rem; padding:.5rem .875rem; border:1px solid var(--gruen); border-radius:.5rem; text-decoration:none; }
.signature .signature-contact:hover { color:var(--blatt); background:var(--gruen); }

/* Langer Veranstaltungsname, auch auf schmalen Displays lesbar. */
.brand { min-width:0; font-size:clamp(1.02rem,2.1vw,1.25rem); font-weight:600; letter-spacing:0; line-height:1.2; overflow-wrap:anywhere; }
.brand .mark { flex-shrink:0; }
.demo { border:0; padding:0; font-size:.8rem; font-weight:500; }

input[autocomplete=username] { font:inherit; color:inherit; background:white; border:1px solid var(--linie); border-radius:.5rem; padding:.75rem; max-width:100%; min-height:48px; }
.auth-password { margin-top:1rem; }
.policy-lead { max-width:48rem; margin:0 0 3rem; font-size:clamp(1.1rem,2vw,1.3rem); color:var(--leise); }
.policy { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2.5rem 4rem; max-width:72rem; }
.policy section { margin:0; padding-top:1rem; border-top:1px solid var(--haar); overflow-wrap:anywhere; }
.policy section p { margin:.5rem 0 0; max-width:38rem; }
.policy h2 { font-family:inherit; font-size:1.125rem; line-height:1.35; font-weight:600; letter-spacing:0; margin:0; }
@media(max-width:48rem) {
  .policy { grid-template-columns:1fr; gap:2rem; }
  .policy-lead { margin-bottom:2.5rem; }
}
.remove { margin-top:.8rem; }
.remove summary { cursor:pointer; padding-block:.5rem; }
