/* ui.css: Layout und Komponenten. Farben, Schriften und Bewegung kommen AUSSCHLIESSLICH aus tokens.css. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/fraunces.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(fonts/fraunces-italic.woff2) format("woff2"); }
@font-face { font-family: "Ephesis"; font-style: normal; font-weight: 400; font-display: swap; size-adjust: 125%; src: url(fonts/ephesis.woff2) format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/raleway.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter.woff2) format("woff2"); }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-family: var(--font-ui); color: var(--text); background: var(--ivory); -webkit-font-smoothing: antialiased; }

.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

/* ---- links: Formular ---- */
.panel { position: relative; display: flex; padding: 2rem; }
.center { flex: 1; display: flex; align-items: center; justify-content: center; }
.view { width: 100%; max-width: 26rem; text-align: center; animation: rise .8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

h1 { margin: 0 0 .8rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.3rem, 3.6vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
.lead { margin: 0 0 2rem; color: var(--muted); font-size: 1.05rem; line-height: 1.5; }

.card { display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 1px 2px rgba(var(--rgb-shadow),.04), 0 18px 40px -24px rgba(var(--rgb-shadow),.25); }
.card input { width: 100%; height: 3.2rem; padding: 0 1rem; font: inherit; font-size: 1rem; color: var(--text); background: var(--c-field); border: 1px solid var(--line); border-radius: 12px; outline: none; transition: border-color .25s, box-shadow .25s; }
.card input::placeholder { color: var(--c-text-faint); }
.card input:hover { border-color: var(--c-line-strong); }
.card input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--rgb-shadow),.08); }

.btn { height: 3.2rem; font: inherit; font-weight: 500; font-size: 1rem; color: var(--c-on-primary); background: var(--primary); border: 0; border-radius: 12px; cursor: pointer; transition: transform .25s var(--ease), box-shadow .3s; box-shadow: 0 8px 20px -12px rgba(var(--rgb-shadow),.6); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -14px rgba(var(--rgb-shadow),.65); }
.btn:active { transform: none; }
.btn:focus-visible, .link:focus-visible, .lang-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.link { margin-top: .4rem; font-size: .88rem; color: var(--muted); text-decoration: none; transition: color .2s; }
.link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Sprache: Phosphor-Icon von Platte (static/icons/globe.svg) ---- */
.lang-menu { position: absolute; top: 1.4rem; right: 1.4rem; z-index: 5; }
.lang-toggle { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; color: var(--text); cursor: pointer; transition: background .2s; }
.lang-toggle:hover { background: rgba(var(--rgb-shadow),.07); }
.ph-globe { width: 1.5rem; height: 1.5rem; background: currentColor; -webkit-mask: url(globe.svg) center / contain no-repeat; mask: url(globe.svg) center / contain no-repeat; }
.lang-panel { position: absolute; right: 0; top: 3.1rem; min-width: 9rem; padding: .35rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(var(--rgb-shadow),.35); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.lang-menu.open .lang-panel { opacity: 1; transform: none; pointer-events: auto; }
.lang-panel button { display: block; width: 100%; text-align: left; font: inherit; font-size: .92rem; padding: .55rem .8rem; color: var(--text); background: none; border: 0; border-radius: 9px; cursor: pointer; }
.lang-panel button:hover { background: rgba(var(--rgb-shadow),.06); }
.lang-panel button.active { font-weight: 600; }

/* ---- rechts: Bild ---- */
.visual { display: flex; align-items: center; justify-content: flex-start; padding: 3rem 4rem 3rem 0; }
.visual img { width: min(100%, 36rem); aspect-ratio: 4 / 5; max-height: calc(100vh - 6rem); object-fit: cover; object-position: 30% 50%; border-radius: 22px; display: block; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* EXTRA */
.chip { display: inline-flex; align-items: center; max-width: 100%; margin: 0 0 1rem; padding: .45rem .9rem; font-size: .92rem; font-weight: 500; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; overflow-wrap: anywhere; }
.btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-ghost { color: var(--text); background: transparent; border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: rgba(var(--rgb-shadow),.04); box-shadow: none; }
.divider { display: flex; align-items: center; gap: .8rem; margin: .4rem 0 .1rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hint { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; text-align: left; }
.code { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.card .code input { padding: 0; height: 3.4rem; text-align: center; font-family: var(--font-display); font-size: 1.5rem; }
.code.shake { animation: shake .4s; }
.code.err input { border-color: var(--c-danger); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.msg { margin: 0; min-height: 1.1rem; font-size: .85rem; color: var(--c-danger); text-align: left; }
.badge { width: 3.4rem; height: 3.4rem; margin: 0 auto 1.4rem; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: var(--c-on-primary); }
.badge svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: tick .6s var(--ease) .3s forwards; }
.badge.warn { background: var(--c-surface); color: var(--ink); }
@keyframes tick { to { stroke-dashoffset: 0; } }
.demo { position: fixed; left: 1rem; bottom: 1rem; font-size: .75rem; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; padding: .4rem .7rem; z-index: 9; }
.demo a { color: var(--text); }
.lang-menu { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 20; }
.lang-toggle { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 6px 18px -8px rgba(var(--rgb-shadow),.35); }
.lang-toggle:hover { background: var(--c-field); }
body { animation: pagein .35s ease both; }
@keyframes pagein { from { opacity: 0; } }
@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; }
  .visual { display: none; }
}

.card input.err { border-color: var(--c-danger); box-shadow: 0 0 0 4px rgba(var(--rgb-danger),.1); }
.card input.err:focus { border-color: var(--c-danger); }
.card > input + .msg { margin-top: -.25rem; }
.card > input + .msg:empty { display: none; }

/* keine Browser-Standards: Autofill, Zahlenpfeile, Clear-Buttons neutralisieren */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 100px var(--c-field) inset; caret-color: var(--text); transition: background-color 9999s; }
input::-ms-reveal, input::-ms-clear { display: none; }
input[type=search]::-webkit-search-cancel-button { display: none; }

/* FLOW2 */
.view { text-align: center; }
.link-btn { font: inherit; font-size: .92rem; color: var(--text); background: none; border: 0; padding: .3rem; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-thickness .2s; }
.link-btn:hover { text-decoration-thickness: 2px; }
.link-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.link-btn .caret { display: inline-block; margin-left: .35rem; transition: transform .3s var(--ease); }
.link-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--ease), opacity .4s; }
.reveal.open { grid-template-rows: 1fr; opacity: 1; }
.reveal > form { overflow: hidden; min-height: 0; display: flex; flex-direction: column; gap: .75rem; padding: .25rem .1rem; margin: -.25rem -.1rem; }
.reveal:not(.open) > form { visibility: hidden; transition: visibility 0s .5s; }
.field-label { display: block; margin: 0 0 .35rem; text-align: left; font-size: .8rem; font-weight: 500; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: .35rem; }
.stack .msg:empty { display: none; }
.card input.err { border-color: var(--c-danger); box-shadow: 0 0 0 4px rgba(var(--rgb-danger),.1); }
.invite-tag { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.1rem; padding: .4rem .85rem; font-size: .85rem; color: var(--muted); background: rgba(var(--rgb-shadow),.05); border-radius: 999px; }
.invite-tag b { color: var(--text); font-weight: 600; }
.invite-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.back { position: absolute; top: 1.25rem; left: 1.25rem; z-index: 5; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem .55rem .65rem; font-size: .92rem; color: var(--text); text-decoration: none; border-radius: 999px; transition: background .2s; }
.back:hover { background: rgba(var(--rgb-shadow),.07); }
.back:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.back i { width: 1.15rem; height: 1.15rem; background: currentColor; -webkit-mask: url(arrow-left.svg) center / contain no-repeat; mask: url(arrow-left.svg) center / contain no-repeat; transition: transform .25s var(--ease); }
.back:hover i { transform: translateX(-3px); }
.fine { margin: 1.1rem 0 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* ---- Medien-Rahmen: Tiefe + Play/Pause ---- */
.visual .media { position: relative; width: min(100%, 36rem); aspect-ratio: 4 / 5; max-height: calc(100vh - 6rem); border-radius: 22px; isolation: isolate;
  box-shadow: 0 1px 2px rgba(var(--rgb-shadow),.12), 0 8px 16px -6px rgba(var(--rgb-shadow),.18), 0 28px 48px -18px rgba(var(--rgb-shadow),.35), 0 60px 90px -40px rgba(var(--rgb-shadow),.35); }
.visual .media img, .visual .media video { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: 30% 50%; border-radius: inherit; display: block; }
.visual .media::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(var(--rgb-light),.22), inset 0 -80px 70px -50px rgba(var(--rgb-deep),.45), inset 0 2px 0 rgba(var(--rgb-light),.18); }
.media-ctl { position: absolute; z-index: 2; left: 50%; bottom: 1.1rem; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .55rem; height: 2.5rem; padding: 0 1rem 0 .8rem; font: inherit; font-size: .82rem; font-weight: 500; color: var(--c-field); cursor: pointer;
  background: rgba(var(--rgb-shadow),.38); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(var(--rgb-light),.28); border-radius: 999px; transition: background .25s, transform .25s var(--ease); }
.media-ctl:hover { background: rgba(var(--rgb-shadow),.55); transform: translateX(-50%) translateY(-1px); }
.media-ctl:focus-visible { outline: 2px solid var(--c-field); outline-offset: 3px; }
.media-ctl i { width: .85rem; height: .85rem; background: currentColor; -webkit-mask: url(pause.svg) center / contain no-repeat; mask: url(pause.svg) center / contain no-repeat; }
.media-ctl.paused i { -webkit-mask-image: url(play.svg); mask-image: url(play.svg); }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
.visual .media.kb { overflow: hidden; }
.visual .media.kb img { animation: kenburns 18s ease-in-out infinite alternate; }
.visual .media.kb.paused img { animation-play-state: paused; }

h1 { text-wrap: balance; }
.nw { white-space: nowrap; }

/* Play/Pause: nur Symbol, unten rechts */
.media-ctl { left: auto; right: 1.1rem; bottom: 1.1rem; transform: none; width: 2.6rem; height: 2.6rem; padding: 0; justify-content: center; }
.media-ctl:hover { transform: translateY(-1px); }
.media-ctl i { width: 1rem; height: 1rem; }

/* APP */
body.app { margin: 0; min-height: 100vh; font-family: var(--font-ui); color: var(--text); background: var(--ivory); -webkit-font-smoothing: antialiased; animation: pagein .35s ease both; }
.appbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 2rem; height: 4.2rem; padding: 0 5rem 0 clamp(1.2rem, 4vw, 3rem); background: rgba(var(--rgb-paper),.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.mono { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.mono em { font-style: italic; color: var(--gold); padding: 0 .1em; }
.tabs { display: flex; gap: .25rem; flex: 1; }
.tabs a { padding: .5rem .9rem; font-size: .92rem; color: var(--muted); text-decoration: none; border-radius: 999px; transition: color .2s, background .2s; }
.tabs a:hover { color: var(--text); background: rgba(var(--rgb-shadow),.05); }
.tabs a.on { color: var(--c-on-primary); background: var(--primary); }
.who { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--muted); }
.who .av { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: var(--c-on-primary); font-size: .8rem; font-weight: 600; }
.role { padding: .2rem .6rem; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(var(--rgb-accent),.45); border-radius: 999px; }

main.wrap { max-width: 72rem; margin: 0 auto; padding: clamp(1.2rem, 3vw, 2.2rem) clamp(1.2rem, 4vw, 3rem) 6rem; display: grid; gap: 1.4rem; }
.rise { animation: rise .8s var(--ease) both; animation-delay: calc(var(--d, 0) * .08s); }

.hero { position: relative; min-height: 26rem; border-radius: 28px; overflow: hidden; display: flex; align-items: flex-end; color: var(--c-field); isolation: isolate;
  box-shadow: 0 1px 2px rgba(var(--rgb-shadow),.12), 0 20px 40px -20px rgba(var(--rgb-shadow),.4), 0 50px 80px -40px rgba(var(--rgb-shadow),.35); }
.hero video, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--rgb-deep),0) 25%, rgba(var(--rgb-deep),.7)); }
.hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(var(--rgb-light),.2); pointer-events: none; }
.hero-in { padding: clamp(1.4rem, 3vw, 2.4rem); max-width: 40rem; }
.hero h1 { margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.04; letter-spacing: -.02em; color: var(--c-field); }
.hero p { margin: 0 0 1.2rem; color: rgba(var(--rgb-light),.85); font-size: 1.05rem; }
.meta { display: flex; flex-wrap: wrap; gap: .6rem; }
.meta span { padding: .45rem .85rem; font-size: .85rem; background: rgba(var(--rgb-light),.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(var(--rgb-light),.25); border-radius: 999px; }

.grid2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.4rem; }
.panelc { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.2rem, 2.4vw, 1.8rem); box-shadow: 0 1px 2px rgba(var(--rgb-shadow),.04), 0 18px 40px -26px rgba(var(--rgb-shadow),.25); }
.panelc h2 { margin: 0 0 .3rem; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: -.01em; color: var(--ink); }
.panelc .sub { margin: 0 0 1.2rem; color: var(--muted); font-size: .95rem; }

.segc { display: flex; padding: .25rem; background: rgba(var(--rgb-shadow),.06); border-radius: 14px; margin-bottom: 1.1rem; }
.segc button { flex: 1; height: 2.9rem; font: inherit; font-weight: 500; font-size: .95rem; color: var(--muted); background: none; border: 0; border-radius: 11px; cursor: pointer; transition: all .3s var(--ease); }
.segc button.on { color: var(--c-on-primary); background: var(--primary); box-shadow: 0 6px 14px -8px rgba(var(--rgb-shadow),.6); }
.segc button:focus-visible, .step:focus-visible, .chipb:focus-visible, .act:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.stepper { display: inline-flex; align-items: center; gap: .3rem; }
.step { width: 2.2rem; height: 2.2rem; font: inherit; font-size: 1.1rem; color: var(--text); background: var(--c-field); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; transition: border-color .2s, transform .2s; }
.step:hover { border-color: var(--primary); }
.step:active { transform: scale(.94); }
.stepper b { min-width: 2rem; text-align: center; font-weight: 600; }

.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; align-items: center; gap: .85rem; padding: .85rem 0; border-top: 1px solid var(--line); cursor: pointer; font-size: .95rem; }
.todo li:first-child { border-top: 0; padding-top: 0; }
.cb { flex: none; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border: 1.5px solid var(--c-line-strong); border-radius: 50%; transition: all .3s var(--ease); }
.cb svg { width: .8rem; height: .8rem; fill: none; stroke: var(--c-field); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s var(--ease); }
.todo li.done .cb { background: var(--primary); border-color: var(--primary); }
.todo li.done .cb svg { stroke-dashoffset: 0; }
.todo li.done span:last-child { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(var(--rgb-shadow),.5); }
.todo small { display: block; color: var(--muted); font-size: .8rem; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { position: relative; padding: 0 0 1.3rem 1.6rem; }
.feed li::before { content: ""; position: absolute; left: .2rem; top: .45rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(var(--rgb-accent),.18); }
.feed li::after { content: ""; position: absolute; left: .45rem; top: 1.2rem; bottom: .1rem; width: 1px; background: var(--line); }
.feed li:last-child::after { display: none; }
.feed time { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.feed b { display: block; margin: .15rem 0; font-weight: 600; }
.feed p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* Veranstalter */
.head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.head h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -.02em; color: var(--ink); text-align: left; }
.head p { margin: .3rem 0 0; color: var(--muted); }
.btn-s { height: 2.9rem; padding: 0 1.3rem; display: inline-flex; align-items: center; font: inherit; font-weight: 500; font-size: .92rem; color: var(--c-on-primary); background: var(--primary); border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; box-shadow: 0 8px 20px -12px rgba(var(--rgb-shadow),.6); transition: transform .25s var(--ease); }
.btn-s:hover { transform: translateY(-1px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.stat { padding: 1.3rem 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 1px 2px rgba(var(--rgb-shadow),.04), 0 14px 30px -24px rgba(var(--rgb-shadow),.3); }
.stat small { display: block; color: var(--muted); font-size: .82rem; }
.stat b { display: block; margin-top: .4rem; font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.bar { height: 4px; margin-top: 1rem; background: rgba(var(--rgb-shadow),.08); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--gold); border-radius: 4px; transform-origin: left; animation: grow 1.2s var(--ease) both .3s; }
@keyframes grow { from { transform: scaleX(0); } }
.grid3 { display: grid; grid-template-columns: 1.8fr 1fr; gap: 1.4rem; align-items: start; }
.tools { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.search { flex: 1; min-width: 10rem; height: 2.6rem; padding: 0 1rem; font: inherit; font-size: .92rem; background: var(--c-field); border: 1px solid var(--line); border-radius: 12px; outline: none; transition: border-color .2s, box-shadow .2s; }
.search:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--rgb-shadow),.08); }
.chipb { height: 2.6rem; padding: 0 1rem; font: inherit; font-size: .88rem; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: all .25s; }
.chipb.on { color: var(--c-on-primary); background: var(--primary); border-color: var(--primary); }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
.t th { text-align: left; padding: .6rem .5rem; font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.t td { padding: .8rem .5rem; border-bottom: 1px solid var(--line); }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background .2s; }
.t tbody tr:hover { background: rgba(var(--rgb-shadow),.03); }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .65rem; font-size: .78rem; font-weight: 500; border-radius: 999px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.yes { color: var(--c-success); background: rgba(var(--rgb-success),.1); }
.pill.open { color: var(--c-warn); background: rgba(var(--rgb-accent),.16); }
.pill.no { color: var(--c-danger); background: rgba(var(--rgb-danger),.1); }
.acts { display: grid; gap: .5rem; }
.act { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .95rem 1rem; font: inherit; font-size: .95rem; color: var(--text); text-align: left; background: var(--c-field); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, transform .25s var(--ease); }
.act:hover { border-color: var(--primary); transform: translateX(3px); }
.act span:last-child { color: var(--muted); }

@media (max-width: 900px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tabs { display: none; }
  .who .nm { display: none; }
  .appbar { gap: 1rem; justify-content: space-between; }
}

/* ---- Login-Flow: feines Papierkorn + eingeprägter Schriftzug ---- */
.panel {
  overflow: hidden; background-color: var(--c-surface);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .36  0 0 0 0 .3  0 0 0 0 .2  0 0 0 .6 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='700' height='700'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='.006 .009' numOctaves='2' seed='9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .45  0 0 0 0 .3  0 0 0 .5 -.18'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>");
}
.panel .center { position: relative; z-index: 1; }
.panel::after {
  content: "Wedding 2027"; position: absolute; z-index: 0; left: 50%; top: 50%; pointer-events: none; white-space: nowrap; user-select: none;
  transform: translate(-50%, -50%) rotate(-24deg);
  font-family: var(--font-display); font-style: italic; font-weight: 300; letter-spacing: .05em;
  font-size: clamp(3rem, 6.4vw, 7.5rem); color: var(--c-surface);
  text-shadow: 1px 1px 0 rgba(var(--rgb-light),.95), -1px -1px 1px rgba(var(--rgb-edge),.2), 3px 4px 8px rgba(var(--rgb-edge),.07);
}
@media (max-width: 1000px) { .panel::after { font-size: clamp(2.4rem, 8vw, 4.6rem); } }
@media (max-width: 600px) { .panel::after { display: none; } }

/* ---- Korrekturen ---- */
.visual .media img, .visual .media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.visual .media { overflow: hidden; }
.panel {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .34  0 0 0 0 .28  0 0 0 0 .18  0 0 0 .55 -.18'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(120% 90% at 30% 20%, rgba(var(--rgb-light),.7), rgba(var(--rgb-light),0) 60%);
}
.panel::after {
  font-weight: 400; color: var(--c-surface); letter-spacing: .06em;
  text-shadow: 0 2px 1px rgba(var(--rgb-light),1), 0 -1px 1px rgba(var(--rgb-edge),.38), 1px 3px 6px rgba(var(--rgb-edge),.12);
}

/* Textur ueber die ganze Seite, Schriftzug tiefer */
.split { background-color: var(--c-surface); background-image: inherit; }
.panel { background: transparent; }
.split {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .34  0 0 0 0 .28  0 0 0 0 .18  0 0 0 .55 -.18'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(90% 80% at 25% 15%, rgba(var(--rgb-light),.7), rgba(var(--rgb-light),0) 60%);
}
.panel::after { left: 46%; top: 70%; }

/* ---- Papier v2: gröber, künstlerisch; Schriftzug über die ganze Seite ---- */
.split { position: relative; overflow: hidden; background-color: var(--c-surface);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.42' numOctaves='2' seed='11' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42  0 0 0 0 .34  0 0 0 0 .22  0 0 0 .95 -.34'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(60% 55% at 8% 92%, rgba(var(--rgb-accent),.16), rgba(var(--rgb-accent),0) 70%),
    radial-gradient(55% 50% at 96% 6%, rgba(var(--rgb-sage),.2), rgba(var(--rgb-sage),0) 70%),
    radial-gradient(90% 80% at 30% 15%, rgba(var(--rgb-light),.65), rgba(var(--rgb-light),0) 60%);
}
.panel::after { display: none; }
.split::after {
  content: "Wedding 2027"; position: absolute; z-index: 0; left: 50%; top: 50%; pointer-events: none; white-space: nowrap; user-select: none;
  transform: translate(-50%, -50%) rotate(-24deg);
  font-family: var(--font-display); font-style: italic; font-weight: 400; letter-spacing: .06em;
  font-size: clamp(5rem, 15vw, 17rem); line-height: 1; color: var(--c-surface);
  text-shadow: 0 2px 1px rgba(var(--rgb-light),.85), 0 -1px 1px rgba(var(--rgb-edge),.16), 1px 3px 8px rgba(var(--rgb-edge),.05);
}
.panel, .visual { position: relative; z-index: 1; }
@media (max-width: 1000px) { .split::after { font-size: clamp(3.5rem, 16vw, 9rem); } }
@media (max-width: 600px) { .split::after { display: none; } }

/* ---- Papier v3: echte Papierfaser-Textur, fast weiss; Praegung sehr leise ---- */
.split { background-color: var(--c-surface); background-image: url(paper.jpg); background-size: cover; background-position: center; }
.split::after {
  color: rgba(var(--rgb-light),.22);
  text-shadow: 0 2px 1px rgba(var(--rgb-light),.55), 0 -1px 1px rgba(var(--rgb-edge),.07), 1px 3px 6px rgba(var(--rgb-edge),.035);
}
.split::after { color: rgba(var(--rgb-light),.4); text-shadow: 0 2px 1px rgba(var(--rgb-light),.9), 0 -1px 1px rgba(var(--rgb-edge),.13), 1px 3px 6px rgba(var(--rgb-edge),.06); }
.split { background-color: var(--c-page); }
.split::after { color: rgba(var(--rgb-light),.3); }
.split::after { color: rgba(var(--rgb-light),.12); text-shadow: 0 2px 1px rgba(var(--rgb-light),.28), 0 -1px 1px rgba(var(--rgb-edge),.08), 1px 3px 6px rgba(var(--rgb-edge),.04); }

/* ---- Papier v5: Recyclingpapier-Kachel (scharfe Einschluesse + helle Fasern), Vignette fuer Tiefe ---- */
.split {
  background-color: var(--c-page);
  background-image: radial-gradient(130% 110% at 50% 45%, rgba(var(--rgb-edge),0) 55%, rgba(var(--rgb-edge),.16) 100%), url(paper-tile.jpg);
  background-size: auto, 1024px 1024px; background-repeat: no-repeat, repeat; background-position: center, 0 0;
}
.split::after { color: rgba(var(--rgb-edge),.06); text-shadow: 0 1px 0 rgba(var(--rgb-light),.7), 0 -1px 0 rgba(var(--rgb-edge),.16); }

/* Papier ruhiger + gleicher Hintergrund in der App */
.split, body.app {
  background-color: var(--c-page);
  background-image: radial-gradient(130% 110% at 50% 45%, rgba(var(--rgb-edge),0) 60%, rgba(var(--rgb-edge),.10) 100%), url(paper-tile.jpg);
  background-size: auto, 1024px 1024px; background-repeat: no-repeat, repeat; background-attachment: scroll, scroll;
}
.appbar { background: rgba(var(--rgb-paper),.85); }

/* Sprachmenue im App-Header: Teil der Leiste, kein schwebender Kreis */
.appbar { padding-right: clamp(1.2rem, 4vw, 3rem); }
.appbar .lang-menu { position: relative; top: auto; right: auto; order: 99; }
.appbar .lang-toggle { background: none; border: 0; box-shadow: none; }
.appbar .lang-toggle:hover { background: rgba(var(--rgb-shadow),.07); }

/* Praegung = erhaben: Licht von links oben, Schatten rechts unten */
.split::after {
  color: rgba(var(--rgb-light),.2);
  text-shadow: -1px -1px 1px rgba(var(--rgb-light),.9), 1px 2px 2px rgba(var(--rgb-edge),.2), 3px 5px 9px rgba(var(--rgb-edge),.07);
}
.split::after {
  color: rgba(var(--rgb-light),.08);
  text-shadow: -1px -1px 1px rgba(var(--rgb-light),.6), 1px 2px 2px rgba(var(--rgb-edge),.14), 3px 5px 9px rgba(var(--rgb-edge),.05);
}

/* Praegung: erhaben, sehr leise, weiche (diffuse) Kanten statt harter Linie */
.split::after {
  color: rgba(var(--rgb-light),.035);
  text-shadow: -3px -3px 7px rgba(var(--rgb-light),.5), 3px 4px 9px rgba(var(--rgb-edge),.09), 6px 9px 20px rgba(var(--rgb-edge),.04);
}
/* Praegung ohne Unschaerfe (Test) */
.split::after { text-shadow: -2px -2px 0 rgba(var(--rgb-light),.5), 2px 3px 0 rgba(var(--rgb-edge),.09); }
/* Praegung: leicht weiche Kante (2px) */
.split::after { text-shadow: -2px -2px 2px rgba(var(--rgb-light),.5), 2px 3px 2px rgba(var(--rgb-edge),.09); }
/* Praegung: zurueck auf vorherigen Stand (weiche Kanten 7-20px, sehr leise) */
.split::after {
  color: rgba(var(--rgb-light),.035);
  text-shadow: -3px -3px 7px rgba(var(--rgb-light),.5), 3px 4px 9px rgba(var(--rgb-edge),.09), 6px 9px 20px rgba(var(--rgb-edge),.04);
}
/* Praegung: Stand VOR dem Weichzeichnen (duenne 1-2px Kanten) */
.split::after {
  color: rgba(var(--rgb-light),.08);
  text-shadow: -1px -1px 1px rgba(var(--rgb-light),.6), 1px 2px 2px rgba(var(--rgb-edge),.14), 3px 5px 9px rgba(var(--rgb-edge),.05);
}
/* Praegung: Fuellung wie vorher, Kanten mittel weich (~4px) */
.split::after {
  color: rgba(var(--rgb-light),.08);
  text-shadow: -2px -2px 4px rgba(var(--rgb-light),.6), 2px 3px 4px rgba(var(--rgb-edge),.14), 3px 5px 10px rgba(var(--rgb-edge),.05);
}
/* Praegung: Blur wie vorher (1px / 2px / 9px), Kanten nur ueber geringere Staerke weicher */
.split::after {
  color: rgba(var(--rgb-light),.08);
  text-shadow: -1px -1px 1px rgba(var(--rgb-light),.36), 1px 2px 2px rgba(var(--rgb-edge),.08), 3px 5px 9px rgba(var(--rgb-edge),.05);
}
/* Praegung: Blur +1px (2px / 3px / 10px) */
.split::after {
  text-shadow: -1px -1px 2px rgba(var(--rgb-light),.36), 1px 2px 3px rgba(var(--rgb-edge),.08), 3px 5px 10px rgba(var(--rgb-edge),.05);
}

/* Praegung: Lichtkante in warmem Papierton statt reinem Weiss (Fuellung ebenfalls warm) */
.split::after {
  color: rgba(var(--rgb-paper),.12);
  text-shadow: -1px -1px 2px rgba(var(--rgb-paper),.4), 1px 2px 3px rgba(var(--rgb-edge),.08), 3px 5px 10px rgba(var(--rgb-edge),.05);
}

/* Login-Boxen in der Papierfarbe (wie der Hintergrund) statt Weiss */
.split { --card-bg: var(--c-page); }
.split .card, .split .chip, .split .lang-panel, .split .lang-toggle { background: var(--card-bg); }
.split .card input { background: var(--card-bg); }
.split .card input:focus { background: var(--c-surface); }
.split .lang-toggle:hover { background: var(--c-surface); }

/* Login-Boxen: Ton zwischen Papierfarbe und Weiss (angehobenes Papier). Aendern: --card-bg */
.split { --card-bg: var(--c-surface); }
.split .card input:focus, .split .lang-toggle:hover { background: var(--c-surface); }

/* Warme Toene statt kaltem Gruengrau: Schatten, Rahmen, Platzhalter, Untertitel (Login-Seiten) */
.split .card { border-color: var(--c-line); box-shadow: 0 1px 2px rgba(var(--rgb-edge),.06), 0 18px 40px -24px rgba(var(--rgb-edge),.28); }
.split .card input { border-color: var(--c-line); }
.split .card input:hover { border-color: var(--c-line-strong); }
.split .card input::placeholder { color: var(--c-text-faint); }
.split .chip, .split .lang-toggle { border-color: var(--c-line); }
.split .lang-toggle { box-shadow: 0 6px 18px -8px rgba(var(--rgb-edge),.3); }
.split .lang-panel { border-color: var(--c-line); box-shadow: 0 18px 40px -16px rgba(var(--rgb-edge),.35); }
.split .lead, .split .hint, .split .link { color: var(--c-text-soft); }
.split .divider { color: var(--c-text-faint); }
.split .divider::before, .split .divider::after { background: var(--c-line); }

/* Praegung: Blur +1px (3px / 4px / 11px) */
.split::after { text-shadow: -1px -1px 3px rgba(var(--rgb-paper),.4), 1px 2px 4px rgba(var(--rgb-edge),.08), 3px 5px 11px rgba(var(--rgb-edge),.05); }

/* Kleintext (z.B. Hinweis unter dem Einladungsformular): dunkleres warmes Grau fuer mehr Kontrast */
.split .fine { color: var(--c-text-soft); }

/* Sprachbutton: flaches Icon ohne Box/Schatten, nur weicher Hover-Kreis */
.split .lang-toggle { background: transparent; border: 0; box-shadow: none; }
.split .lang-toggle:hover { background: rgba(var(--rgb-edge),.08); }

/* Sprachbutton: schwebender Kreis wie vorher, Schatten jetzt eng am Button (nicht abgesetzt) */
.split .lang-toggle {
  background: var(--card-bg); border: 1px solid var(--c-line);
  box-shadow: 0 1px 2px rgba(var(--rgb-edge),.14), 0 3px 8px -3px rgba(var(--rgb-edge),.22);
}
.split .lang-toggle:hover { background: var(--c-surface); }

/* Klick-Fix: Formularseite (mit Sprachbutton) liegt ueber der Bildseite */
.split .panel { z-index: 3; }
.split .visual { z-index: 1; }

/* Sprachbutton: gleiche Schattenart wie Login-Button und Bildrahmen (Kontaktschatten + weicher Zug nach unten) */
.split .lang-toggle {
  box-shadow: 0 1px 2px rgba(var(--rgb-shadow),.12), 0 8px 16px -8px rgba(var(--rgb-shadow),.45);
}

/* Einheitliche Schatten (ein Ton: rgba(20,32,27)), je Stufe gleiche Bauart: Kontaktschatten + weicher Zug nach unten
   klein:  Sprachbutton | mittel: Login-Button, Karte, Dropdown | gross: Bildrahmen */
.split .card      { box-shadow: 0 1px 2px rgba(var(--rgb-shadow),.08), 0 18px 40px -24px rgba(var(--rgb-shadow),.32); }
.split .lang-panel{ box-shadow: 0 1px 2px rgba(var(--rgb-shadow),.1),  0 14px 28px -14px rgba(var(--rgb-shadow),.38); border-radius: 18px; }

/* Karten ohne Rahmen in Hintergrundfarbe: Kante entsteht durch hellen Innenrand oben + Schatten */
.split .card, .split .chip, .split .lang-panel, .split .lang-toggle { border-color: transparent; }
.split .card       { box-shadow: 0 1px 0 rgba(var(--rgb-light),.75) inset, 0 1px 2px rgba(var(--rgb-shadow),.08), 0 18px 40px -24px rgba(var(--rgb-shadow),.32); }
.split .lang-panel { box-shadow: 0 1px 0 rgba(var(--rgb-light),.75) inset, 0 1px 2px rgba(var(--rgb-shadow),.1), 0 14px 28px -14px rgba(var(--rgb-shadow),.38); }
.split .lang-toggle{ box-shadow: 0 1px 0 rgba(var(--rgb-light),.75) inset, 0 1px 2px rgba(var(--rgb-shadow),.12), 0 8px 16px -8px rgba(var(--rgb-shadow),.45); }
.split .card input { border-color: var(--c-line-strong); }
.split .card input:hover { border-color: var(--c-line-strong); }

/* KEINE Rahmen: Tiefe nur ueber Schatten. Felder = sanft eingedrueckt (Innenschatten), Karten = aufliegend */
.split .card, .split .chip, .split .lang-panel, .split .lang-toggle, .split .btn-ghost { border: 0; }
.split .card input {
  border: 0;
  box-shadow: inset 0 1px 3px rgba(var(--rgb-edge),.2), inset 0 0 0 1px rgba(var(--rgb-edge),.04), 0 1px 0 rgba(var(--rgb-light),.8);
  transition: box-shadow .25s;
}
.split .card input:hover { box-shadow: inset 0 1px 3px rgba(var(--rgb-edge),.26), inset 0 0 0 1px rgba(var(--rgb-edge),.05), 0 1px 0 rgba(var(--rgb-light),.8); }
.split .card input:focus { box-shadow: inset 0 1px 3px rgba(var(--rgb-edge),.22), 0 0 0 4px rgba(var(--rgb-shadow),.1), 0 1px 0 rgba(var(--rgb-light),.8); }
.split .card input.err { box-shadow: inset 0 1px 3px rgba(var(--rgb-edge),.2), 0 0 0 4px rgba(var(--rgb-danger),.16); }
.split .btn-ghost { background: transparent; box-shadow: inset 0 1px 3px rgba(var(--rgb-edge),.16), 0 1px 0 rgba(var(--rgb-light),.8); }
.split .btn-ghost:hover { background: rgba(var(--rgb-edge),.04); box-shadow: inset 0 1px 3px rgba(var(--rgb-edge),.22), 0 1px 0 rgba(var(--rgb-light),.8); }

/* ===== Crisp-Look: feine Kante in warmem Braun (dunkler als das Papier) + helle Innenkante + Schatten =====
   Kantenstaerke: rgba(var(--rgb-edge),.16) in den Karten; Felder .2. Hoeher = deutlicher. */
.split { --card-bg: var(--c-surface); --edge: rgba(var(--rgb-edge),.16); }
.split .card       { box-shadow: 0 0 0 1px var(--edge), 0 1px 0 rgba(var(--rgb-light),.95) inset, 0 1px 2px rgba(var(--rgb-shadow),.08), 0 18px 40px -24px rgba(var(--rgb-shadow),.32); }
.split .lang-panel { box-shadow: 0 0 0 1px var(--edge), 0 1px 0 rgba(var(--rgb-light),.95) inset, 0 1px 2px rgba(var(--rgb-shadow),.1), 0 14px 28px -14px rgba(var(--rgb-shadow),.38); }
.split .lang-toggle{ box-shadow: 0 0 0 1px var(--edge), 0 1px 0 rgba(var(--rgb-light),.95) inset, 0 1px 2px rgba(var(--rgb-shadow),.12), 0 8px 16px -8px rgba(var(--rgb-shadow),.45); }
.split .chip       { box-shadow: 0 0 0 1px var(--edge), 0 1px 0 rgba(var(--rgb-light),.95) inset; }
.split .card input { background: var(--c-field); box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.2), inset 0 1px 2px rgba(var(--rgb-edge),.12); }
.split .card input:hover { box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.34), inset 0 1px 2px rgba(var(--rgb-edge),.14); }
.split .card input:focus { box-shadow: 0 0 0 1px var(--primary), 0 0 0 4px rgba(var(--rgb-shadow),.1), inset 0 1px 2px rgba(var(--rgb-edge),.1); }
.split .card input.err   { box-shadow: 0 0 0 1px var(--c-danger), 0 0 0 4px rgba(var(--rgb-danger),.14), inset 0 1px 2px rgba(var(--rgb-edge),.1); }
.split .btn-ghost  { box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.22); }
.split .btn-ghost:hover { box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.36); }

/* Kraeftiger: E-Mail-Pille (Seite "Postfach") und Kleintext (Seite "Einladung") */
.split .chip { background: #f6f0e2; color: #2b241a; font-weight: 600; box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.28), 0 1px 0 rgba(var(--rgb-light),.95) inset; }
.split .chip::before { background: var(--gold); }
.split .fine { color: #3f372b; font-weight: 500; }

/* APP2 */
/* ---------- App: gleicher Crisp-Look wie Login (feine Kante + Lichtkante + Schatten) ---------- */
body.app { --card-bg: var(--c-surface); --edge: rgba(var(--rgb-edge),.16); }
.panelc, .stat { background: var(--card-bg); border: 0; box-shadow: 0 0 0 1px var(--edge), 0 1px 0 rgba(var(--rgb-light),.95) inset, 0 1px 2px rgba(var(--rgb-shadow),.08), 0 18px 40px -24px rgba(var(--rgb-shadow),.32); }
.act { background: var(--c-field); border: 0; box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.2), inset 0 1px 2px rgba(var(--rgb-edge),.08); }
.act:hover { box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.36), inset 0 1px 2px rgba(var(--rgb-edge),.08); }
.search { border: 0; background: var(--c-field); box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.2), inset 0 1px 2px rgba(var(--rgb-edge),.12); }
.search:focus { box-shadow: 0 0 0 1px var(--primary), 0 0 0 4px rgba(var(--rgb-shadow),.1); }
.chipb { border: 0; box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.22); }
.chipb.on { box-shadow: none; }

/* ---------- Kopfleiste: Logo links, Profil immer rechts ---------- */
.appbar { justify-content: flex-start; padding-right: clamp(1.2rem, 4vw, 3rem); }
.who { margin-left: auto; }
a.av { text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; box-shadow: 0 0 0 0 rgba(var(--rgb-accent),0); }
a.av:hover { transform: scale(1.06); box-shadow: 0 0 0 4px rgba(var(--rgb-accent),.25); }
.tabs a { display: inline-flex; align-items: center; }

/* ---------- Untere Leiste (nur mobil) ---------- */
.ic { display: inline-block; width: 1.5rem; height: 1.5rem; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.bottombar { display: none; }
@media (max-width: 900px) {
  .tabs { display: none; }
  .bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; padding: .45rem .5rem calc(.45rem + env(safe-area-inset-bottom)); background: rgba(var(--rgb-paper),.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 -1px 0 rgba(var(--rgb-edge),.14), 0 -10px 30px -18px rgba(var(--rgb-shadow),.3); }
  .bottombar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem 0; font-size: .72rem; font-weight: 500; color: var(--muted); text-decoration: none; border-radius: 12px; transition: color .2s; }
  .bottombar a.on { color: var(--ink); }
  .bottombar a.on .ic { background: var(--gold); }
  main.wrap { padding-bottom: 7rem; }
  body.app #mt { bottom: 86px; }
  .who .nm { display: none; }
}

/* ---------- Auswahlkarten (Schritt fuer Schritt) ---------- */
.opt { display: flex; align-items: center; gap: .9rem; width: 100%; padding: 1.05rem 1.1rem; font: inherit; font-size: 1.02rem; color: var(--text); text-align: left; cursor: pointer; border: 0; border-radius: 16px; background: var(--c-surface);
  box-shadow: 0 0 0 1px var(--edge), 0 1px 0 rgba(var(--rgb-light),.95) inset, 0 1px 2px rgba(var(--rgb-shadow),.08); transition: transform .25s var(--ease), box-shadow .25s; }
.opt:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.3), 0 1px 0 rgba(var(--rgb-light),.95) inset, 0 8px 18px -10px rgba(var(--rgb-shadow),.35); }
.opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.opt .dot { flex: none; width: 1.35rem; height: 1.35rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(var(--rgb-edge),.4); transition: all .25s var(--ease); }
.opt.on { box-shadow: 0 0 0 2px var(--primary), 0 1px 0 rgba(var(--rgb-light),.95) inset, 0 10px 22px -12px rgba(var(--rgb-shadow),.4); }
.opt.on .dot { background: var(--primary); box-shadow: inset 0 0 0 5px var(--c-surface), 0 0 0 1.5px var(--primary); }
.opt small { display: block; color: var(--muted); font-size: .82rem; margin-top: .1rem; }
.opts { display: grid; gap: .7rem; }

/* ---------- Schritt-fuer-Schritt-Seite ---------- */
.flow { max-width: 34rem; margin: 0 auto; padding: clamp(1.4rem, 5vw, 3rem) 1.2rem 7rem; }
.prog { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.4rem; font-size: .85rem; color: var(--muted); }
.prog .bar { flex: 1; height: 5px; margin: 0; background: rgba(var(--rgb-edge),.12); border-radius: 5px; overflow: hidden; }
.prog .bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--primary); border-radius: 5px; transition: width .6s var(--ease); animation: none; transform: none; }
.step-view { animation: rise .6s var(--ease) both; }
.step-view.sv-back { animation-name: riseBack; }
@keyframes riseBack { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.flow h1 { margin: 0 0 .6rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.08; letter-spacing: -.02em; color: var(--ink); text-align: left; text-wrap: balance; }
.flow .lead { margin: 0 0 1.8rem; color: var(--c-text-soft); text-align: left; }
.flow textarea, .flow .txt { width: 100%; margin-top: .9rem; padding: .9rem 1rem; font: inherit; color: var(--text); background: var(--c-field); border: 0; border-radius: 14px; outline: none; resize: none; box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.2), inset 0 1px 2px rgba(var(--rgb-edge),.12); }
.flow .txt:focus { box-shadow: 0 0 0 1px var(--primary), 0 0 0 4px rgba(var(--rgb-shadow),.1); }
.nav2 { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.nav2 .btn { width: auto; flex: 1; max-width: 16rem; margin-left: auto; padding: 0 1.6rem; height: 3.3rem; }
.nav2 .btn[disabled] { opacity: .4; pointer-events: none; }
.quiet { font: inherit; font-size: .92rem; color: var(--c-text-soft); background: none; border: 0; padding: .5rem 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.stepper2 { display: inline-flex; align-items: center; gap: .6rem; }

/* ---------- Startseite: ein Fokus ---------- */
.focus { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.focus h2 { margin: 0 0 .3rem; }
.focus .btn-s { height: 3.1rem; padding: 0 1.6rem; }
.pips { display: flex; gap: .35rem; margin-top: .9rem; }
.pips i { width: 2.2rem; height: 5px; border-radius: 5px; background: rgba(var(--rgb-edge),.15); }
.pips i.on { background: var(--gold); }

/* ---------- Ablauf ---------- */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 0 0 1.8rem; }
.tl li::before { content: ""; position: absolute; left: 5.1rem; top: .5rem; bottom: -.2rem; width: 1px; background: rgba(var(--rgb-edge),.2); }
.tl li:last-child::before { display: none; }
.tl li::after { content: ""; position: absolute; left: 4.95rem; top: .45rem; width: .62rem; height: .62rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(var(--rgb-accent),.2); }
.tl time { font-size: .85rem; color: var(--muted); padding-top: .15rem; }
.tl b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; color: var(--ink); margin-left: .8rem; }
.tl p { margin: .2rem 0 0 .8rem; color: var(--c-text-soft); font-size: .94rem; }
.tl > li > div { margin-left: .6rem; }

/* ---------- Profil ---------- */
.prof { display: flex; align-items: center; gap: 1.1rem; }
.prof .big { width: 4.2rem; height: 4.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: var(--c-on-primary); font-family: var(--font-display); font-size: 1.5rem; }
.prof b { display: block; font-size: 1.15rem; }
.prof span { color: var(--muted); font-size: .92rem; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(var(--rgb-edge),.14); }
.setrow:first-of-type { border-top: 0; }
.setrow small { display: block; color: var(--muted); font-size: .82rem; }
.sw { position: relative; flex: none; width: 3rem; height: 1.75rem; border: 0; border-radius: 999px; cursor: pointer; background: rgba(var(--rgb-edge),.2); box-shadow: inset 0 1px 3px rgba(var(--rgb-edge),.25); transition: background .3s; }
.sw::after { content: ""; position: absolute; left: .2rem; top: .2rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--c-field); box-shadow: 0 1px 3px rgba(var(--rgb-shadow),.35); transition: transform .3s var(--ease); }
.sw[aria-checked="true"] { background: var(--primary); }
.sw[aria-checked="true"]::after { transform: translateX(1.25rem); }
.segc.sm { margin: 0; }
.segc.sm button { height: 2.4rem; padding: 0 .9rem; font-size: .88rem; }
.out { display: inline-flex; align-items: center; gap: .6rem; color: var(--c-danger); text-decoration: none; font-weight: 500; }
.out .ic { width: 1.25rem; height: 1.25rem; }

/* Tabellen mobil scrollbar */
.tscroll { overflow-x: auto; margin: 0 -.4rem; padding: 0 .4rem; }
.t { min-width: 30rem; }

/* ---------- Einladungs-Animation ---------- */
body.stage { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; padding: 1.5rem; overflow: hidden; font-family: var(--font-ui); color: var(--text); -webkit-font-smoothing: antialiased;
  background-color: var(--c-page); background-image: radial-gradient(130% 110% at 50% 45%, rgba(var(--rgb-edge),0) 60%, rgba(var(--rgb-edge),.1) 100%), url(paper-tile.jpg); background-size: auto, 1024px 1024px; background-repeat: no-repeat, repeat; }
.hello { text-align: center; transition: opacity .6s, transform .8s var(--ease); }
.hello h1 { margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.02em; color: var(--ink); }
.hello p { margin: 0; color: var(--c-text-soft); }
.scene { --E: min(84vw, 440px); --bw: calc(var(--E) * .44); --bh: calc(var(--E) * .56); position: relative; width: var(--E); height: calc(var(--E) * .66); perspective: 1400px; transition: transform 1s var(--ease); cursor: pointer; }
.scene.lift { cursor: default; }
.env-back { position: absolute; inset: 0; z-index: 1; border-radius: 8px; background: #e6dbc2; box-shadow: 0 1px 2px rgba(var(--rgb-shadow),.12), 0 30px 50px -28px rgba(var(--rgb-shadow),.5); transition: opacity .9s, transform 1s var(--ease); }
.env-front { position: absolute; inset: 0; z-index: 4; border-radius: 8px; background: linear-gradient(180deg, #f1e8d2, #e9dec5); clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); transition: opacity .9s, transform 1s var(--ease); }
.flap { position: absolute; left: 0; right: 0; top: 0; height: 56%; z-index: 5; transform-origin: top center; transform: rotateX(0); background: linear-gradient(180deg, #ece2ca, #e4d8bd); clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform .9s var(--ease), z-index 0s .45s; }
.scene.open .flap { transform: rotateX(180deg); z-index: 1; }
.seal { position: absolute; z-index: 6; left: 50%; top: 56%; width: 3.6rem; height: 3.6rem; margin: -1.8rem 0 0 -1.8rem; display: grid; place-items: center; border-radius: 50%; color: #4b3510; font-family: var(--font-display); font-style: italic; font-size: 1.1rem;
  background: radial-gradient(circle at 35% 30%, #f6e9bd, #c9a24d 55%, #8a6a24); box-shadow: 0 2px 6px rgba(var(--rgb-edge),.4), inset 0 0 0 2px rgba(var(--rgb-light),.5); transition: opacity .4s, transform .5s var(--ease); }
.scene.open .seal { opacity: 0; transform: scale(.7); }
.book { position: absolute; z-index: 2; left: calc(50% - var(--bw) / 2); bottom: calc(var(--E) * .04); width: var(--bw); height: var(--bh); transform-style: preserve-3d; transform-origin: center center; transition: transform 1.1s var(--ease); }
.scene.rise .book { transform: translateY(calc(var(--E) * -.3)); z-index: 3; }
.scene.lift .book { transform: translateY(calc(var(--E) * -.06)) scale(var(--s, 1.8)); }
.scene.lift .env-back, .scene.lift .env-front, .scene.lift .flap { opacity: 0; transform: translateY(60px); pointer-events: none; }
.scene.lift.book-open .book { transform: translate(calc(var(--bwpx, 0px) * var(--s, 1.8) / 2), calc(var(--E) * -.06)) scale(var(--s, 1.8)); }
.pg, .cover { position: absolute; inset: 0; border-radius: 3px; }
.pg { background-color: var(--c-surface-soft); background-image: url(paper-tile.jpg); background-size: 520px; box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.16), 0 20px 30px -22px rgba(var(--rgb-shadow),.5); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8%; }
.pg h3 { margin: 0 0 .4em; font-family: var(--font-display); font-weight: 400; font-size: .98em; color: var(--ink); line-height: 1.15; }
.pg .k { font-size: .5em; letter-spacing: .18em; text-transform: uppercase; color: var(--c-text-faint); margin-bottom: .8em; }
.pg .y { font-family: var(--font-display); font-style: italic; font-size: 1.5em; color: var(--c-surface-soft); text-shadow: -1px -1px 1px rgba(var(--rgb-light),.8), 1px 2px 2px rgba(var(--rgb-edge),.3); margin: .1em 0 .5em; }
.pg .d { font-size: .55em; color: var(--c-text-soft); line-height: 1.5; }
.cover { transform-style: preserve-3d; transform-origin: left center; transition: transform 1.5s cubic-bezier(.45,.05,.2,1); }
.scene.book-open .cover { transform: rotateY(-176deg); }
.face { position: absolute; inset: 0; border-radius: 3px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background-color: var(--c-surface-soft); background-image: url(paper-tile.jpg); background-size: 520px; box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.18); }
.face.front .mono2 { font-family: var(--font-display); font-style: italic; font-size: 2.1em; color: var(--c-surface-soft); text-shadow: -1px -1px 2px rgba(var(--rgb-light),.9), 1px 2px 3px rgba(var(--rgb-edge),.35); }
.face.front small { margin-top: .6em; font-size: .52em; letter-spacing: .22em; text-transform: uppercase; color: var(--c-text-faint); }
.face.inner { transform: rotateY(180deg); font-size: .6em; color: var(--c-text-faint); letter-spacing: .12em; }
.scene { font-size: calc(var(--E) * .0455); }
.cta { display: flex; flex-direction: column; align-items: center; gap: .8rem; min-height: 5.5rem; }
.cta .btn { width: auto; padding: 0 2rem; min-width: 14rem; height: 3.3rem; }
.cta .later { opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .6s, transform .6s var(--ease); }
.cta .later.show { opacity: 1; transform: none; pointer-events: auto; }
.cta .btn.hide { opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .3s, transform .3s; }
.skip { font: inherit; font-size: .88rem; color: var(--c-text-soft); background: none; border: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
body.stage.played .hello { opacity: 0; transform: translateY(-16px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .scene *, .scene { transition-duration: .01ms !important; } }

/* USERCHIP */
.userchip { display: inline-flex; align-items: center; gap: .65rem; padding: .25rem .3rem .25rem .95rem; font-size: .9rem; font-weight: 500; color: var(--text); text-decoration: none; border-radius: 999px; background: var(--c-surface);
  box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.16), 0 1px 0 rgba(var(--rgb-light),.95) inset, 0 1px 2px rgba(var(--rgb-shadow),.08), 0 8px 16px -10px rgba(var(--rgb-shadow),.35); transition: transform .25s var(--ease), box-shadow .25s; }
.userchip:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.3), 0 1px 0 rgba(var(--rgb-light),.95) inset, 0 10px 20px -10px rgba(var(--rgb-shadow),.45); }
.userchip:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.userchip .av { width: 2.1rem; height: 2.1rem; }
.userchip:not(:has(.nm)) { padding-left: .3rem; }
@media (max-width: 900px) { .userchip { padding-left: .3rem; } }

/* BRIEF-HOVER */
.scene:not(.open):hover { transform: translateY(-5px) rotate(-.6deg); }
.cta { min-height: 3rem; }

/* BRIEF-GROSS: groesserer Brief, Ueberspringen unten rechts (nur Desktop) */
.scene { --E: min(92vw, 640px); }
.skipfix { position: fixed; right: 2rem; bottom: 1.6rem; z-index: 20; font-size: .92rem; color: var(--c-text-soft); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; transition: color .2s; }
.skipfix:hover { color: var(--ink); }
@media (max-width: 900px) { .skipfix { display: none; } }

/* BRIEF-PREMIUM: Umschlag aus demselben Papier, Falzlinien, Schatten, rotes Wachssiegel */
.env-back { background: linear-gradient(rgba(var(--rgb-edge),.18), rgba(var(--rgb-edge),.12)), url(paper-tile.jpg); background-size: auto, 560px; box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.2), 0 2px 4px rgba(var(--rgb-shadow),.12), 0 34px 54px -28px rgba(var(--rgb-shadow),.55); }
.env-front { background: linear-gradient(180deg, rgba(var(--rgb-light),.3), rgba(var(--rgb-light),0) 40%), linear-gradient(rgba(var(--rgb-edge),.06), rgba(var(--rgb-edge),.1)), url(paper-tile.jpg); background-size: auto, auto, 560px; }
.flap { background: linear-gradient(180deg, rgba(var(--rgb-light),.22), rgba(var(--rgb-edge),.1)), url(paper-tile.jpg); background-size: auto, 560px; }
.folds, .env-shadow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .9s; }
.folds { z-index: 4; }
.env-shadow { z-index: 4; }
.scene.open .env-shadow { opacity: 0; transition: opacity .3s; }
.scene.lift .folds { opacity: 0; }
.seal { background: none; box-shadow: none; width: 4.9rem; height: 4.9rem; margin: -2.45rem 0 0 -2.45rem; font-size: 0; display: block; filter: drop-shadow(0 2px 2px rgba(var(--rgb-shadow),.45)) drop-shadow(0 8px 10px rgba(var(--rgb-shadow),.28)); }
.seal svg { width: 100%; height: 100%; overflow: visible; }

/* BRIEF-MITTE: Brief exakt mittig, Button schwebt unten und verschiebt das Layout nicht */
body.stage { gap: 0; }
.cta { position: fixed; left: 0; right: 0; bottom: 2.6rem; min-height: 0; z-index: 10; pointer-events: none; }
.cta .btn { pointer-events: auto; }
.cta .later { position: relative; }

/* PROFIL2 */
.pgrid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); gap: 1.4rem; align-items: start; }
.pcol { display: grid; gap: 1.4rem; }
.pcard { position: sticky; top: 5.6rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: 2rem 1.4rem 1.6rem; }
.pcard .big { width: 6rem; height: 6rem; margin-bottom: .6rem; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: var(--c-on-primary); font-family: var(--font-display); font-size: 2.2rem; box-shadow: 0 0 0 4px var(--c-surface), 0 0 0 5px rgba(var(--rgb-accent),.6), 0 16px 26px -14px rgba(var(--rgb-shadow),.5); }
.pcard h2 { margin: 0; }
.pcard .mail { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.pcard .pill { margin-top: .7rem; }
.pdiv { width: 100%; height: 1px; margin: 1.1rem 0 .7rem; background: rgba(var(--rgb-edge),.14); }
.phead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.tile { padding: 1rem 1.1rem; border-radius: 14px; background: var(--c-field); box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.18), inset 0 1px 2px rgba(var(--rgb-edge),.08); }
.tile small { display: block; color: var(--muted); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.tile b { display: block; margin-top: .35rem; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; color: var(--ink); line-height: 1.2; }
@media (max-width: 900px) { .pgrid { grid-template-columns: 1fr; } .pcard { position: static; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* SEGS */
.segs { flex: 1; display: flex; gap: .45rem; }
.segs i { flex: 1; height: 5px; border-radius: 5px; background: rgba(var(--rgb-edge),.16); transition: background .45s var(--ease), transform .45s var(--ease); }
.segs i.done { background: var(--primary); }
.segs i.cur { background: var(--gold); }

/* TAGS */
.tagbox { margin-top: 1.4rem; }
.tagbox .fl { margin-bottom: .6rem; font-size: .85rem; font-weight: 500; color: var(--c-text-soft); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { padding: .55rem 1rem; font: inherit; font-size: .9rem; color: var(--text); cursor: pointer; border: 0; border-radius: 999px; background: var(--c-surface); box-shadow: 0 0 0 1px var(--edge), 0 1px 0 rgba(var(--rgb-light),.95) inset; transition: all .25s var(--ease); }
.tag:hover { box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.32), 0 1px 0 rgba(var(--rgb-light),.95) inset; }
.tag.on { color: var(--c-on-primary); background: var(--primary); box-shadow: 0 6px 14px -8px rgba(var(--rgb-shadow),.6); }
.tag:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tile .ts { display: block; margin-top: .3rem; font-family: var(--font-ui); font-size: .8rem; color: var(--muted); line-height: 1.35; }
/* NAV2: Zurueck und Weiter als gleich hohe Buttons */
.flow .nav2 { display: grid; grid-template-columns: 1fr 1.7fr; gap: .8rem; margin-top: 2rem; }
.flow .nav2.one { grid-template-columns: 1fr; }
.flow .nav2 .btn { width: 100%; max-width: none; margin: 0; height: 3.4rem; padding: 0 1rem; flex: none; }
.flow .btn.ghost2 { color: var(--text); background: transparent; box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.28); }
.flow .btn.ghost2:hover { background: rgba(var(--rgb-edge),.05); box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.45); }

/* LOGO-FRIST */
.logo img { display: block; height: 3rem; width: auto; }
.logo { display: inline-flex; align-items: center; }
.logo-lg { display: block; height: 5.2rem; width: auto; margin: 0 auto 1.3rem; }
/* Avatar: Papierfarbe, feine braune Kante wie Karten und Chips (kein Gold) */
.who .av, .userchip .av, .pcard .big, .prof .big { background: var(--c-surface-soft); color: #4a3d2e; font-family: var(--font-display); font-style: normal; font-weight: 400; letter-spacing: .02em; text-shadow: 0 1px 0 rgba(var(--rgb-light),.7);
  box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.24), inset 0 1px 0 rgba(var(--rgb-light),.9), inset 0 -2px 4px rgba(var(--rgb-edge),.12), 0 6px 12px -8px rgba(var(--rgb-shadow),.4); }
.pcard .big { box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.24), inset 0 1px 0 rgba(var(--rgb-light),.9), inset 0 -3px 6px rgba(var(--rgb-edge),.12), 0 14px 24px -14px rgba(var(--rgb-shadow),.45); }
a.av:hover, .userchip:hover .av { box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.4), inset 0 1px 0 rgba(var(--rgb-light),.9), inset 0 -2px 4px rgba(var(--rgb-edge),.12); }
/* Fristen */
.due { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .8rem; padding: .32rem .85rem; font-size: .8rem; font-weight: 500; color: #6b5420; background: #f3ead4; border-radius: 999px; box-shadow: 0 0 0 1px rgba(var(--rgb-accent),.45); }
.due::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.due.soon { color: #8a2f2b; background: #f7e1dc; box-shadow: 0 0 0 1px rgba(var(--rgb-danger),.4); }
.due.soon::before { background: #b3342e; animation: pulse 1.6s ease-in-out infinite; }
.due.closed { color: var(--c-text-soft); background: #ece8e0; box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.25); }
.due.closed::before { background: #9a9080; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .5; } }
.flow .due { margin-bottom: 1.1rem; }
.dline { margin: 1.1rem 0 0; font-size: .9rem; color: var(--c-text-soft); }
.btn-s.off { opacity: .4; pointer-events: none; }
.frow { display: flex; justify-content: space-between; gap: 1.4rem; padding: .85rem 0; font-size: .92rem; border-top: 1px solid rgba(var(--rgb-edge),.14); }
.frow:first-of-type { border-top: 0; }
.frow b { font-weight: 600; white-space: nowrap; }
.frow > span { color: var(--c-text-soft); text-align: right; }
.fr-sub { color: var(--gold); font-weight: 600; }
.fbtns { display: grid; gap: .5rem; margin-top: 1rem; }

/* Fristen-Chips ohne Gold */
.due { color: #5a4a34; background: #f1e9d8; box-shadow: 0 0 0 1px rgba(var(--rgb-edge),.2); }
.due::before { background: #9a8a6a; }

/* LATER-FIX */
.later-fix { position: fixed; right: 2rem; bottom: 1.6rem; z-index: 20; }

/* LOGO-TL: Folgeseiten der Anmeldung: kleines Logo links oben, Zurueck darunter */
.logo-tl { position: absolute; top: 1.1rem; left: 1.4rem; z-index: 5; display: inline-flex; }
.logo-tl img { display: block; height: 2.6rem; width: auto; }
.panel:has(.logo-tl) .back { top: 4.3rem; }

/* PRAEGUNG-LAYOUT: "Wedding" und "2027" in zwei Zeilen, nur leicht geneigt (8 Grad) */
.split::after {
  content: "Wedding\A 2027"; white-space: pre; text-align: center; line-height: .95;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-size: clamp(5rem, 19vw, 20rem);
}
@media (max-width: 1000px) { .split::after { font-size: clamp(3.5rem, 20vw, 9rem); } }
@media (max-width: 600px) { .split::after { display: none; } }

/* SIEGEL-GROSS */
.seal { width: 5.8rem; height: 5.8rem; margin: -2.9rem 0 0 -2.9rem; }

/* COVER-LOGO: Logo statt Text auf dem Kartendeckel */
.cover-logo { display: block; width: 66%; height: auto; margin-bottom: .4em; opacity: .92; filter: drop-shadow(-1px -1px 1px rgba(var(--rgb-light), .8)) drop-shadow(1px 2px 2px rgba(var(--rgb-shadow), .22)); }

/* AVATAR final: Primaerfarbe (wie Buttons und Siegel), helle Initialen, kein Gold */
.who .av, .userchip .av, .pcard .big, .prof .big {
  background: var(--primary); color: var(--c-on-primary); font-family: var(--font-display); font-style: normal; font-weight: 400; letter-spacing: .03em; text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(var(--rgb-light), .22), inset 0 -2px 4px rgba(var(--rgb-deep), .3), 0 6px 12px -8px rgba(var(--rgb-primary), .6);
}
.pcard .big { box-shadow: inset 0 1px 0 rgba(var(--rgb-light), .22), inset 0 -3px 6px rgba(var(--rgb-deep), .3), 0 14px 24px -12px rgba(var(--rgb-primary), .55); }
a.av:hover, .userchip:hover .av { box-shadow: inset 0 1px 0 rgba(var(--rgb-light), .22), inset 0 -2px 4px rgba(var(--rgb-deep), .3), 0 8px 14px -8px rgba(var(--rgb-primary), .7); }

/* ADMIN-WIDE: Dashboard nutzt auf dem Desktop die volle Breite */
main.wrap.wide { max-width: 120rem; padding-left: clamp(1.2rem, 3.5vw, 4rem); padding-right: clamp(1.2rem, 3.5vw, 4rem); }
main.wrap.wide .stats { gap: 1.4rem; }
main.wrap.wide .stat { padding: 1.6rem 1.8rem; }
main.wrap.wide .stat b { font-size: 3.4rem; }
main.wrap.wide .grid3 { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 1.6rem; }
main.wrap.wide .t td, main.wrap.wide .t th { padding-left: .8rem; padding-right: .8rem; }
.t td.mailc { color: var(--c-text-soft); }
@media (max-width: 1100px) { main.wrap.wide .grid3 { grid-template-columns: 1fr; } }

/* AVATAR: ohne dunklen Innenschatten (wirkte wie schwarzer Rand), nur feines Licht oben */
.who .av, .userchip .av, .pcard .big, .prof .big { box-shadow: inset 0 1px 0 rgba(var(--rgb-light), .25), 0 6px 12px -8px rgba(var(--rgb-primary), .6); }
.pcard .big { box-shadow: inset 0 1px 0 rgba(var(--rgb-light), .25), 0 14px 24px -12px rgba(var(--rgb-primary), .55); }
a.av:hover, .userchip:hover .av { box-shadow: inset 0 1px 0 rgba(var(--rgb-light), .25), 0 8px 14px -8px rgba(var(--rgb-primary), .7); }

/* Zurueck mit mehr Abstand zum Logo */
.panel:has(.logo-tl) .back { top: 5.6rem; }

/* RECENT */
.recent { list-style: none; margin: 0; padding: 0; }
.recent li { display: grid; grid-template-columns: 1fr auto 4.5rem; align-items: center; gap: 1rem; padding: .85rem 0; border-top: 1px solid rgba(var(--rgb-edge), .14); font-size: .95rem; }
.recent li:first-child { border-top: 0; }
.recent .rd { color: var(--c-text-faint); font-size: .85rem; text-align: right; }

/* ROLLEN: Ansichts-Schalter (nur bei Konto "Beides") und Team-Seite */
.viewsw { display: inline-flex; gap: .15rem; padding: .2rem; margin-right: .3rem; border-radius: 999px; background: rgba(var(--rgb-edge), .1); }
.viewsw[hidden] { display: none; }
.viewsw a { padding: .38rem .85rem; font-size: .82rem; font-weight: 500; color: var(--c-text-soft); text-decoration: none; border-radius: 999px; transition: background .25s var(--ease), color .25s; }
.viewsw a:hover { color: var(--c-text); }
.viewsw a.on { color: var(--c-on-primary); background: var(--primary); }
.tbtn { font: inherit; font-size: .82rem; padding: .38rem .85rem; color: var(--c-text-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .25); transition: box-shadow .2s, color .2s; }
.tbtn:hover { color: var(--c-text); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .45); }
.tbtn.danger { color: var(--c-danger); box-shadow: 0 0 0 1px rgba(var(--rgb-danger), .5); }
.tbtn[disabled] { opacity: .45; pointer-events: none; }
.tform { display: grid; gap: .7rem; }
.tform .msg { margin: 0; min-height: 0; }
.tform .msg:empty { display: none; }
@media (max-width: 560px) { .viewsw a { padding: .34rem .6rem; font-size: .76rem; } }

/* FRIST-EDIT */
.fl2 { margin: 0 0 -.25rem; font-size: .82rem; font-weight: 500; color: var(--c-text-soft); }
.quick { display: flex; gap: .5rem; flex-wrap: wrap; }
a.act { text-decoration: none; }
.item { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: .6rem; align-items: center; padding: .8rem 0; border-top: 1px solid rgba(var(--rgb-edge), .14); }
.item:first-child { border-top: 0; padding-top: 0; }
.item .search { min-width: 0; }
.ia { display: flex; gap: .4rem; }
.savebar { position: sticky; bottom: 1rem; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.2rem; border-radius: 18px; background: var(--c-surface); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .16), 0 1px 0 rgba(var(--rgb-light), .95) inset, 0 18px 40px -20px rgba(var(--rgb-shadow), .45); }
.savebar p { margin: 0; font-size: .92rem; color: var(--c-text-soft); }
@media (max-width: 900px) { .item { grid-template-columns: 1fr; } .ia { justify-content: flex-end; } .savebar { bottom: 5.4rem; } }

/* ROLLEN: Ansichts-Schalter (nur bei Konto "Beides") und Team-Seite */
.viewsw { display: inline-flex; gap: .15rem; padding: .2rem; margin-right: .3rem; border-radius: 999px; background: rgba(var(--rgb-edge), .1); }
.viewsw[hidden] { display: none; }
.viewsw a { padding: .38rem .85rem; font-size: .82rem; font-weight: 500; color: var(--c-text-soft); text-decoration: none; border-radius: 999px; transition: background .25s var(--ease), color .25s; }
.viewsw a:hover { color: var(--c-text); }
.viewsw a.on { color: var(--c-on-primary); background: var(--primary); }
.tbtn { font: inherit; font-size: .82rem; padding: .38rem .85rem; color: var(--c-text-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .25); transition: box-shadow .2s, color .2s; }
.tbtn:hover { color: var(--c-text); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .45); }
.tbtn.danger { color: var(--c-danger); box-shadow: 0 0 0 1px rgba(var(--rgb-danger), .5); }
.tbtn[disabled] { opacity: .45; pointer-events: none; }
.tform { display: grid; gap: .7rem; }
.tform .msg { margin: 0; min-height: 0; }
.tform .msg:empty { display: none; }
@media (max-width: 560px) { .viewsw a { padding: .34rem .6rem; font-size: .76rem; } }

/* HOME2: Startseite in voller Breite, Aufgaben und Neuigkeiten nebeneinander */
main.wrap.wide .hero { min-height: 20rem; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
@media (max-width: 1000px) { .home-grid { grid-template-columns: 1fr; } }
.todo2 { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.tk { display: grid; grid-template-columns: 2.2rem 1fr; gap: 1rem; align-items: start; padding: 1rem 0; border-top: 1px solid rgba(var(--rgb-edge), .14); }
.tk:first-child { border-top: 0; }
.tk .ck { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; font-size: .9rem; font-weight: 600; color: var(--c-text-soft); background: var(--c-field); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .25), inset 0 1px 2px rgba(var(--rgb-shadow), .12); }
.tk .ck svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tk.done .ck { color: var(--c-on-primary); background: var(--primary); box-shadow: none; }
.tk.next .ck { color: var(--c-on-primary); background: var(--primary); box-shadow: 0 0 0 5px rgba(var(--rgb-primary), .14); }
.tk b { display: block; font-weight: 600; color: var(--c-text); }
.tk small { display: block; margin-top: .15rem; color: var(--c-text-soft); font-size: .88rem; line-height: 1.4; overflow-wrap: anywhere; }
.tk.done b { color: var(--c-text-soft); }
.opt-l { font-style: normal; font-weight: 400; font-size: .75rem; color: var(--c-text-faint); margin-left: .3rem; }
.todo-cta { margin-top: 1.4rem; }
.todo-cta .btn-s { width: 100%; justify-content: center; }
.newb { display: inline-block; margin-left: .45rem; padding: .08rem .5rem; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-on-primary); background: var(--primary); border-radius: 999px; vertical-align: 1px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
@media (max-width: 1000px) { .faq-grid { grid-template-columns: 1fr; } }
.faq { margin-top: 1.1rem; }
.fqi { border-top: 1px solid rgba(var(--rgb-edge), .14); }
.fqi:first-child { border-top: 0; }
.fqi[hidden] { display: none; }
.fq-q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1.1rem .2rem; font: inherit; font-size: 1.05rem; font-weight: 500; text-align: left; color: var(--c-text); background: none; border: 0; cursor: pointer; }
.fq-q:hover { color: var(--primary); }
.fq-q:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 8px; }
.fq-i { position: relative; flex: none; width: 1.1rem; height: 1.1rem; }
.fq-i::before, .fq-i::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.fq-i::after { transform: rotate(90deg); }
.fqi.open .fq-i::after { transform: rotate(0); }
.fq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.fq-a > div { overflow: hidden; min-height: 0; }
.fqi.open .fq-a { grid-template-rows: 1fr; }
.fq-a p { margin: 0 0 1.2rem; padding-right: 2rem; color: var(--c-text-soft); line-height: 1.6; }
/* 404 */
.nf { max-width: 30rem; }
.n404 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(6rem, 22vw, 11rem); line-height: .9; color: rgba(var(--rgb-light), .55); text-shadow: -1px -1px 2px rgba(var(--rgb-light), .9), 2px 3px 5px rgba(var(--rgb-edge), .28); margin: .2rem 0 1rem; }
.nf h1 { margin: 0 0 .6rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 5vw, 2.4rem); color: var(--ink); }
.nf p { margin: 0 0 1.6rem; color: var(--c-text-soft); }
.nf .btn { width: auto; min-width: 14rem; padding: 0 2rem; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* INFOS: Unter-Reiter, Karte, Karten-Raster */
.subtabs { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; margin: 0 0 1.4rem; border-radius: 999px; background: rgba(var(--rgb-edge), .1); }
.subtabs a { padding: .5rem 1.1rem; font-size: .9rem; font-weight: 500; color: var(--c-text-soft); text-decoration: none; border-radius: 999px; transition: background .25s var(--ease), color .25s; }
.subtabs a:hover { color: var(--c-text); }
.subtabs a.on { color: var(--c-on-primary); background: var(--primary); }
.info-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.mapbox { aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; border-radius: 16px; color: var(--c-text-soft);
  background: linear-gradient(rgba(var(--rgb-edge), .07) 1px, transparent 1px) 0 0 / 100% 2.6rem, linear-gradient(90deg, rgba(var(--rgb-edge), .07) 1px, transparent 1px) 0 0 / 2.6rem 100%, var(--c-surface-soft);
  box-shadow: inset 0 1px 3px rgba(var(--rgb-shadow), .18), 0 0 0 1px rgba(var(--rgb-edge), .18); }
.mapbox b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--ink); }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.stay .phb { aspect-ratio: 4 / 3; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 14px; color: var(--c-text-faint); font-size: .9rem; background: var(--c-surface-soft); box-shadow: inset 0 1px 3px rgba(var(--rgb-shadow), .18), 0 0 0 1px rgba(var(--rgb-edge), .16); }
@media (max-width: 1100px) { .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .info-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cards3 { grid-template-columns: 1fr; } }

/* STAT-SUB */
.stat .ss { display: block; margin-top: .45rem; font-size: .82rem; color: var(--c-text-soft); }
.stat .bar i { width: var(--w, 0%); }

/* TAG2: moderner Ablauf, offen und gross, ohne Kaesten */
.day { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; padding-top: clamp(.5rem, 2vw, 2rem); }
.day-intro { position: sticky; top: 6.2rem; }
.eyebrow { display: block; margin-bottom: 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--c-text-faint); }
.day-intro h1 { margin: 0 0 1rem; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.025em; color: var(--ink); text-align: left; text-wrap: balance; }
.day-intro p { margin: 0 0 1.6rem; max-width: 24rem; color: var(--c-text-soft); line-height: 1.6; }
.meta2 { display: flex; flex-wrap: wrap; gap: .5rem; }
.meta2 span { padding: .42rem .9rem; font-size: .85rem; color: var(--c-text-soft); background: var(--c-surface); border-radius: 999px; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .16), 0 1px 0 rgba(var(--rgb-light), .95) inset; }
.tl2 { list-style: none; margin: 0; padding: 0; position: relative; }
.tl2::before { content: ""; position: absolute; left: calc(9rem + .5px); top: 1.6rem; bottom: 1.6rem; width: 1px; background: linear-gradient(rgba(var(--rgb-edge), .0), rgba(var(--rgb-edge), .35) 8%, rgba(var(--rgb-edge), .35) 92%, rgba(var(--rgb-edge), 0)); }
.tl2 li { position: relative; display: grid; grid-template-columns: 9rem 1fr; gap: 2.6rem; padding: 1.8rem 0; opacity: 0; animation: rise .9s var(--ease) both; animation-delay: calc(var(--i) * .1s + .15s); }
.tl2 li::before { content: ""; position: absolute; left: calc(9rem - .3rem); top: 2.55rem; width: .62rem; height: .62rem; border-radius: 50%; background: var(--c-surface); box-shadow: 0 0 0 1.5px var(--primary), 0 0 0 6px rgba(var(--rgb-primary), .0); transition: box-shadow .35s var(--ease), transform .35s var(--ease), background .35s; z-index: 1; }
.tl2 li:hover::before { background: var(--primary); transform: scale(1.25); box-shadow: 0 0 0 1.5px var(--primary), 0 0 0 7px rgba(var(--rgb-primary), .12); }
.when { padding-top: .35rem; font-family: var(--font-display); font-weight: 300; font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; color: var(--ink); text-align: right; }
.when small { margin-left: .35rem; font-family: var(--font-ui); font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-faint); }
.when.soon { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--c-text-faint); padding-top: .75rem; }
.what h3 { margin: 0 0 .4rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.1; letter-spacing: -.015em; color: var(--ink); transition: color .3s; }
.tl2 li:hover .what h3 { color: var(--primary); }
.what p { margin: 0; max-width: 32rem; color: var(--c-text-soft); line-height: 1.6; }
@media (max-width: 900px) {
  .day { grid-template-columns: 1fr; gap: 2rem; }
  .day-intro { position: static; }
  .tl2::before { left: .5px; }
  .tl2 li { grid-template-columns: 1fr; gap: .3rem; padding: 1.3rem 0 1.3rem 1.8rem; }
  .tl2 li::before { left: -.3rem; top: 1.85rem; }
  .when { text-align: left; font-size: 2rem; padding-top: 0; }
  .when.soon { padding-top: .2rem; }
}
/* Ablauf-Editor: leichter, weniger Kasten */
.item .search { background: transparent; box-shadow: none; border-radius: 12px; transition: background .2s, box-shadow .2s; }
.item .search:hover { background: rgba(var(--rgb-edge), .06); }
.item .search:focus { background: var(--c-field); box-shadow: 0 0 0 1px var(--primary), 0 0 0 4px rgba(var(--rgb-primary), .1); }
.item .search.err { box-shadow: 0 0 0 1px var(--c-danger), 0 0 0 4px rgba(var(--rgb-danger), .14); }

/* VOLLE BREITE: alle App-Seiten nutzen auf dem Desktop die ganze Breite (kein festes Maximum, auch nicht per Inline-Style) */
main.wrap, main.wrap.wide { max-width: none !important; padding-left: clamp(1.2rem, 4vw, 5rem); padding-right: clamp(1.2rem, 4vw, 5rem); }

/* ROLLEN: Ansichts-Schalter (nur bei Konto "Beides") und Team-Seite */
.viewsw { display: inline-flex; gap: .15rem; padding: .2rem; margin-right: .3rem; border-radius: 999px; background: rgba(var(--rgb-edge), .1); }
.viewsw[hidden] { display: none; }
.viewsw a { padding: .38rem .85rem; font-size: .82rem; font-weight: 500; color: var(--c-text-soft); text-decoration: none; border-radius: 999px; transition: background .25s var(--ease), color .25s; }
.viewsw a:hover { color: var(--c-text); }
.viewsw a.on { color: var(--c-on-primary); background: var(--primary); }
.tbtn { font: inherit; font-size: .82rem; padding: .38rem .85rem; color: var(--c-text-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .25); transition: box-shadow .2s, color .2s; }
.tbtn:hover { color: var(--c-text); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .45); }
.tbtn.danger { color: var(--c-danger); box-shadow: 0 0 0 1px rgba(var(--rgb-danger), .5); }
.tbtn[disabled] { opacity: .45; pointer-events: none; }
.tform { display: grid; gap: .7rem; }
.tform .msg { margin: 0; min-height: 0; }
.tform .msg:empty { display: none; }
@media (max-width: 560px) { .viewsw a { padding: .34rem .6rem; font-size: .76rem; } }

/* ROLLEN: Ansichts-Schalter (nur bei Konto "Beides") und Team-Seite */
.viewsw { display: inline-flex; gap: .15rem; padding: .2rem; margin-right: .3rem; border-radius: 999px; background: rgba(var(--rgb-edge), .1); }
.viewsw[hidden] { display: none; }
.viewsw a { padding: .38rem .85rem; font-size: .82rem; font-weight: 500; color: var(--c-text-soft); text-decoration: none; border-radius: 999px; transition: background .25s var(--ease), color .25s; }
.viewsw a:hover { color: var(--c-text); }
.viewsw a.on { color: var(--c-on-primary); background: var(--primary); }
.tbtn { font: inherit; font-size: .82rem; padding: .38rem .85rem; color: var(--c-text-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .25); transition: box-shadow .2s, color .2s; }
.tbtn:hover { color: var(--c-text); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .45); }
.tbtn.danger { color: var(--c-danger); box-shadow: 0 0 0 1px rgba(var(--rgb-danger), .5); }
.tbtn[disabled] { opacity: .45; pointer-events: none; }
.tform { display: grid; gap: .7rem; }
.tform .msg { margin: 0; min-height: 0; }
.tform .msg:empty { display: none; }
@media (max-width: 560px) { .viewsw a { padding: .34rem .6rem; font-size: .76rem; } }

/* ORTE: Anreise, Unterkuenfte, Karten-Links (nur ausgehende Links) */
.mapbox { position: relative; overflow: hidden; }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 16px; }
.mapnote { display: block; margin-top: .6rem; font-size: .75rem; color: var(--c-text-faint); }
.adr { margin: 0 0 1rem; color: var(--c-text-soft); line-height: 1.55; font-size: .95rem; }
.adr b { color: var(--c-text); font-weight: 600; }
.links { display: flex; flex-wrap: wrap; gap: .5rem; }
.xl { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; font-size: .85rem; font-weight: 500; color: var(--c-text); text-decoration: none; border-radius: 999px; background: var(--c-field); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .22), inset 0 1px 2px rgba(var(--rgb-shadow), .08); transition: box-shadow .2s, transform .25s var(--ease), color .2s; }
.xl:hover { color: var(--primary); box-shadow: 0 0 0 1px rgba(var(--rgb-primary), .45), inset 0 1px 2px rgba(var(--rgb-shadow), .08); transform: translateY(-1px); }
.xl i { font-style: normal; font-size: .8rem; opacity: .6; }
.stay { display: flex; flex-direction: column; gap: .15rem; }
.stay h2 { margin: .5rem 0 .2rem; }
.stay .links { margin-top: auto; padding-top: 1rem; }
.kind { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-faint); }
.dist { font-size: .85rem; color: var(--c-text-soft); }
.badge-v { align-self: flex-start; padding: .22rem .7rem; font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--c-on-primary); background: var(--primary); border-radius: 999px; }
.fq-l { display: inline-block; margin: 0 0 1.2rem; font-size: .92rem; font-weight: 500; color: var(--primary); text-decoration: none; }
.fq-l:hover { text-decoration: underline; text-underline-offset: 4px; }

/* QR: Vorschau, Karten, Druck */
.qrbox { position: relative; width: min(100%, 15rem); aspect-ratio: 1; margin: .8rem 0 0; padding: 1rem; border-radius: 16px; background: var(--c-field); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .2), inset 0 1px 2px rgba(var(--rgb-shadow), .08); }
.qrbox.sm { width: 9.5rem; padding: .7rem; }
.qrbox img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.qrbox.dead img { opacity: .15; filter: grayscale(1); }
.qrbox .deadl { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; color: var(--c-danger); }
tr.selrow { cursor: pointer; }
tr.selrow.sel td { background: rgba(var(--rgb-primary), .06); }
tr.selrow.sel td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.4rem; }
.qcard { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.6rem 1.2rem 1.3rem; border-radius: 18px; background: var(--c-surface); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .18), 0 1px 0 rgba(var(--rgb-light), .95) inset, 0 14px 30px -20px rgba(var(--rgb-shadow), .4); break-inside: avoid; }
.qcard .ql { height: 3.6rem; width: auto; margin-bottom: .6rem; }
.qcard .qt { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c-text-faint); }
.qcard h3 { margin: .3rem 0 .4rem; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--ink); }
.qcard .qrbox { margin: .4rem 0; }
.qcard p { margin: .4rem 0 .2rem; font-size: .85rem; color: var(--c-text-soft); }
.qcard small { font-size: .75rem; color: var(--c-text-faint); }
@media print {
  @page { size: A4; margin: 12mm; }
  body.app { background: #fff !important; }
  .appbar, .bottombar, #mt, .noprint { display: none !important; }
  main.wrap { padding: 0 !important; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 8mm; }
  .qcard { box-shadow: none; border: 1px dashed #bbb; }
}

/* ROLLEN: Ansichts-Schalter (nur bei Konto "Beides") und Team-Seite */
.viewsw { display: inline-flex; gap: .15rem; padding: .2rem; margin-right: .3rem; border-radius: 999px; background: rgba(var(--rgb-edge), .1); }
.viewsw[hidden] { display: none; }
.viewsw a { padding: .38rem .85rem; font-size: .82rem; font-weight: 500; color: var(--c-text-soft); text-decoration: none; border-radius: 999px; transition: background .25s var(--ease), color .25s; }
.viewsw a:hover { color: var(--c-text); }
.viewsw a.on { color: var(--c-on-primary); background: var(--primary); }
.tbtn { font: inherit; font-size: .82rem; padding: .38rem .85rem; color: var(--c-text-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .25); transition: box-shadow .2s, color .2s; }
.tbtn:hover { color: var(--c-text); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .45); }
.tbtn.danger { color: var(--c-danger); box-shadow: 0 0 0 1px rgba(var(--rgb-danger), .5); }
.tbtn[disabled] { opacity: .45; pointer-events: none; }
.tform { display: grid; gap: .7rem; }
.tform .msg { margin: 0; min-height: 0; }
.tform .msg:empty { display: none; }
@media (max-width: 560px) { .viewsw a { padding: .34rem .6rem; font-size: .76rem; } }

/* ROLLEN: Ansichts-Schalter (nur bei Konto "Beides") und Team-Seite */
.viewsw { display: inline-flex; gap: .15rem; padding: .2rem; margin-right: .3rem; border-radius: 999px; background: rgba(var(--rgb-edge), .1); }
.viewsw[hidden] { display: none; }
.viewsw a { padding: .38rem .85rem; font-size: .82rem; font-weight: 500; color: var(--c-text-soft); text-decoration: none; border-radius: 999px; transition: background .25s var(--ease), color .25s; }
.viewsw a:hover { color: var(--c-text); }
.viewsw a.on { color: var(--c-on-primary); background: var(--primary); }
.tbtn { font: inherit; font-size: .82rem; padding: .38rem .85rem; color: var(--c-text-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .25); transition: box-shadow .2s, color .2s; }
.tbtn:hover { color: var(--c-text); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .45); }
.tbtn.danger { color: var(--c-danger); box-shadow: 0 0 0 1px rgba(var(--rgb-danger), .5); }
.tbtn[disabled] { opacity: .45; pointer-events: none; }
.tform { display: grid; gap: .7rem; }
.tform .msg { margin: 0; min-height: 0; }
.tform .msg:empty { display: none; }
@media (max-width: 560px) { .viewsw a { padding: .34rem .6rem; font-size: .76rem; } }

/* PERSONEN: mehrere Personen unter einer Einladung */
.pl { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .6rem; }
.pchip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-radius: 14px; background: var(--c-surface); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .18), 0 1px 0 rgba(var(--rgb-light), .95) inset; }
.pchip b { font-weight: 600; color: var(--c-text); }
.pchip small { margin-left: .6rem; color: var(--c-text-faint); font-size: .82rem; }
.pchip.me { background: rgba(var(--rgb-primary), .06); }
.addp { display: grid; gap: .7rem; padding: 1.1rem; border-radius: 16px; background: rgba(var(--rgb-edge), .06); }
.addp .txt { margin-top: 0; }
.addp .msg { margin: 0; min-height: 0; text-align: left; }
.addp .msg:empty { display: none; }
.flow .addp .btn { width: 100%; max-width: none; margin: 0; }
.cap { margin: .9rem 0 0; font-size: .85rem; color: var(--c-text-faint); }
.pc2 { margin-top: 1.6rem; }
.pc2:first-of-type { margin-top: 1rem; }
.pn { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); }
.pt { padding: .15rem .6rem; font-family: var(--font-ui); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-soft); background: rgba(var(--rgb-edge), .1); border-radius: 999px; }
.opts.compact { gap: .5rem; }
.opts.compact .opt { padding: .75rem .95rem; font-size: .96rem; border-radius: 12px; }
.tiles { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
tr.gr { cursor: pointer; }
tr.gr .car { display: inline-block; width: .5rem; height: .5rem; margin-right: .7rem; border-right: 1.5px solid var(--c-text-faint); border-bottom: 1.5px solid var(--c-text-faint); transform: rotate(-45deg); transition: transform .25s var(--ease); }
tr.gr.open .car { transform: rotate(45deg); }
tr.det td { padding: 0 .8rem 1rem 2.1rem; background: rgba(var(--rgb-edge), .04); }
.plist { list-style: none; margin: 0; padding: .4rem 0 0; display: grid; gap: .5rem; }
.plist li { display: grid; grid-template-columns: 11rem auto minmax(0, 1fr) minmax(0, 1fr); gap: .8rem; align-items: center; font-size: .9rem; }
.plist li.pdim { display: block; color: var(--c-text-soft); }
@media (max-width: 760px) { .plist li { grid-template-columns: 1fr; gap: .15rem; } }


/* ROLLEN: Ansichts-Schalter (nur bei Konto "Beides") und Team-Seite */
.viewsw { display: inline-flex; gap: .15rem; padding: .2rem; margin-right: .3rem; border-radius: 999px; background: rgba(var(--rgb-edge), .1); }
.viewsw[hidden] { display: none; }
.viewsw a { padding: .38rem .85rem; font-size: .82rem; font-weight: 500; color: var(--c-text-soft); text-decoration: none; border-radius: 999px; transition: background .25s var(--ease), color .25s; }
.viewsw a:hover { color: var(--c-text); }
.viewsw a.on { color: var(--c-on-primary); background: var(--primary); }
.tbtn { font: inherit; font-size: .82rem; padding: .38rem .85rem; color: var(--c-text-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .25); transition: box-shadow .2s, color .2s; }
.tbtn:hover { color: var(--c-text); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .45); }
.tbtn.danger { color: var(--c-danger); box-shadow: 0 0 0 1px rgba(var(--rgb-danger), .5); }
.tbtn[disabled] { opacity: .45; pointer-events: none; }
.tform { display: grid; gap: .7rem; }
.tform .msg { margin: 0; min-height: 0; }
.tform .msg:empty { display: none; }
@media (max-width: 560px) { .viewsw a { padding: .34rem .6rem; font-size: .76rem; } }

/* APP-PRAEGUNG: "Wedding 2027" als Praegung auch hinter den App-Seiten (wie im Login, fest hinter dem Inhalt) */
body.app { position: relative; }
body.app::after {
  content: "Wedding\A 2027"; white-space: pre; text-align: center; line-height: .95;
  position: fixed; z-index: 0; left: 50%; top: 52%; pointer-events: none; user-select: none;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-family: var(--font-display); font-style: italic; font-weight: 400; letter-spacing: .06em;
  font-size: clamp(5rem, 19vw, 20rem); color: rgba(255,255,255,.4);
  text-shadow: -1px -1px 2px rgba(250,243,228,.4), 1px 2px 3px rgba(70,55,30,.08), 3px 5px 10px rgba(70,55,30,.05);
}
body.app > main, body.app > .flow { position: relative; z-index: 1; }
@media (max-width: 1000px) { body.app::after { font-size: clamp(3.5rem, 20vw, 9rem); } }
@media (max-width: 600px) { body.app::after { display: none; } }

/* PILL-NONE */
.pill.none { color: var(--c-text-soft); background: rgba(var(--rgb-edge), .1); }

/* ROLLEN: Ansichts-Schalter (nur bei Konto "Beides") und Team-Seite */
.viewsw { display: inline-flex; gap: .15rem; padding: .2rem; margin-right: .3rem; border-radius: 999px; background: rgba(var(--rgb-edge), .1); }
.viewsw[hidden] { display: none; }
.viewsw a { padding: .38rem .85rem; font-size: .82rem; font-weight: 500; color: var(--c-text-soft); text-decoration: none; border-radius: 999px; transition: background .25s var(--ease), color .25s; }
.viewsw a:hover { color: var(--c-text); }
.viewsw a.on { color: var(--c-on-primary); background: var(--primary); }
.tbtn { font: inherit; font-size: .82rem; padding: .38rem .85rem; color: var(--c-text-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .25); transition: box-shadow .2s, color .2s; }
.tbtn:hover { color: var(--c-text); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .45); }
.tbtn.danger { color: var(--c-danger); box-shadow: 0 0 0 1px rgba(var(--rgb-danger), .5); }
.tbtn[disabled] { opacity: .45; pointer-events: none; }
.tform { display: grid; gap: .7rem; }
.tform .msg { margin: 0; min-height: 0; }
.tform .msg:empty { display: none; }
@media (max-width: 560px) { .viewsw a { padding: .34rem .6rem; font-size: .76rem; } }

/* ROLLEN: Ansichts-Schalter (nur bei Konto "Beides") und Team-Seite */
.viewsw { display: inline-flex; gap: .15rem; padding: .2rem; margin-right: .3rem; border-radius: 999px; background: rgba(var(--rgb-edge), .1); }
.viewsw[hidden] { display: none; }
.viewsw a { padding: .38rem .85rem; font-size: .82rem; font-weight: 500; color: var(--c-text-soft); text-decoration: none; border-radius: 999px; transition: background .25s var(--ease), color .25s; }
.viewsw a:hover { color: var(--c-text); }
.viewsw a.on { color: var(--c-on-primary); background: var(--primary); }
.tbtn { font: inherit; font-size: .82rem; padding: .38rem .85rem; color: var(--c-text-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .25); transition: box-shadow .2s, color .2s; }
.tbtn:hover { color: var(--c-text); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .45); }
.tbtn.danger { color: var(--c-danger); box-shadow: 0 0 0 1px rgba(var(--rgb-danger), .5); }
.tbtn[disabled] { opacity: .45; pointer-events: none; }
.tform { display: grid; gap: .7rem; }
.tform .msg { margin: 0; min-height: 0; }
.tform .msg:empty { display: none; }
@media (max-width: 560px) { .viewsw a { padding: .34rem .6rem; font-size: .76rem; } }

/* App: Papier und Praegung beide fest am Bildschirm, der Inhalt scrollt darueber */
body.app { background-attachment: fixed, fixed; }

/* ROUTE, NOTIZ, BADGE */
.route { margin: 0 0 1rem; }
.route b { display: block; font-weight: 600; color: var(--c-text); }
.route p { margin: .2rem 0 0; color: var(--c-text-soft); line-height: 1.55; font-size: .95rem; }
.bnote { margin: 0 0 .6rem; padding: .6rem .8rem; font-size: .88rem; font-weight: 500; color: var(--c-text); background: rgba(var(--rgb-primary), .07); border-radius: 12px; box-shadow: inset 3px 0 0 var(--primary); }
.nb { display: inline-grid; place-items: center; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; margin-left: .4rem; font-size: .68rem; font-weight: 700; line-height: 1; color: var(--c-on-primary); background: var(--primary); border-radius: 999px; }
.bottombar a { position: relative; }
.bottombar .nb { position: absolute; top: .1rem; left: calc(50% + .5rem); margin: 0; }

/* Kopf- und Fussleiste deckend (nichts scheint durch), mit demselben festen Papier wie die Seite -> keine sichtbare Naht */
.appbar, .bottombar {
  background-color: var(--c-page); background-image: url(paper-tile.jpg); background-size: 1024px 1024px; background-position: 0 0; background-attachment: fixed;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.appbar { box-shadow: 0 1px 0 rgba(var(--rgb-edge), .16), 0 12px 24px -20px rgba(var(--rgb-shadow), .4); }

/* ROLLEN: Ansichts-Schalter (nur bei Konto "Beides") und Team-Seite */
.viewsw { display: inline-flex; gap: .15rem; padding: .2rem; margin-right: .3rem; border-radius: 999px; background: rgba(var(--rgb-edge), .1); }
.viewsw[hidden] { display: none; }
.viewsw a { padding: .38rem .85rem; font-size: .82rem; font-weight: 500; color: var(--c-text-soft); text-decoration: none; border-radius: 999px; transition: background .25s var(--ease), color .25s; }
.viewsw a:hover { color: var(--c-text); }
.viewsw a.on { color: var(--c-on-primary); background: var(--primary); }
.tbtn { font: inherit; font-size: .82rem; padding: .38rem .85rem; color: var(--c-text-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .25); transition: box-shadow .2s, color .2s; }
.tbtn:hover { color: var(--c-text); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .45); }
.tbtn.danger { color: var(--c-danger); box-shadow: 0 0 0 1px rgba(var(--rgb-danger), .5); }
.tbtn[disabled] { opacity: .45; pointer-events: none; }
.tform { display: grid; gap: .7rem; }
.tform .msg { margin: 0; min-height: 0; }
.tform .msg:empty { display: none; }
@media (max-width: 560px) { .viewsw a { padding: .34rem .6rem; font-size: .76rem; } }

/* LISTEN-EDITOR, NACHRICHTEN, GALERIE */
.le-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: 1.3rem 0; border-top: 1px solid rgba(var(--rgb-edge), .14); align-items: start; }
.le-item:first-child { border-top: 0; padding-top: 0; }
.le-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .8rem; }
.lf { min-width: 0; }
.lf.full { grid-column: 1 / -1; }
.lf.row2 { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lfl { display: block; margin-bottom: .3rem; font-size: .78rem; font-weight: 500; color: var(--c-text-soft); }
.lf.row2 .lfl { margin: 0; }
.lf .txt { margin-top: 0; }
.lf .search.err, .lf .txt.err { box-shadow: 0 0 0 1px var(--c-danger), 0 0 0 4px rgba(var(--rgb-danger), .14); }
.le-act { display: flex; flex-direction: column; gap: .4rem; }
@media (max-width: 760px) { .le-item { grid-template-columns: 1fr; } .le-act { flex-direction: row; } }
.chat { display: flex; flex-direction: column; min-height: 26rem; }
.thread { flex: 1; display: flex; flex-direction: column; gap: .8rem; max-height: 52vh; min-height: 12rem; overflow-y: auto; padding: .2rem .2rem 1rem; }
.bub { max-width: min(34rem, 82%); }
.bub .bt { padding: .8rem 1rem; border-radius: 18px; line-height: 1.5; font-size: .96rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.bub time { display: block; margin-top: .25rem; font-size: .72rem; color: var(--c-text-faint); }
.bub.org { align-self: flex-start; }
.bub.org .bt { background: var(--c-field); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .18); border-bottom-left-radius: 6px; }
.bub.me { align-self: flex-end; text-align: right; }
.bub.me .bt { color: var(--c-on-primary); background: var(--primary); border-bottom-right-radius: 6px; text-align: left; }
.composer { display: grid; gap: .7rem; padding-top: 1rem; border-top: 1px solid rgba(var(--rgb-edge), .14); }
.composer .txt { margin-top: 0; }
.composer .msg { margin: 0; min-height: 0; text-align: left; }
.composer .msg:empty { display: none; }
.inbox { display: grid; grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
@media (max-width: 900px) { .inbox { grid-template-columns: 1fr; } }
.plist2 { margin-top: .8rem; display: grid; gap: .3rem; max-height: 62vh; overflow-y: auto; }
.conv { display: grid; grid-template-columns: 1fr auto; gap: .15rem .6rem; width: 100%; padding: .8rem .9rem; font: inherit; text-align: left; color: var(--c-text); background: none; border: 0; border-radius: 14px; cursor: pointer; transition: background .2s; }
.conv:hover { background: rgba(var(--rgb-edge), .07); }
.conv.on { background: rgba(var(--rgb-primary), .08); }
.conv .cn { font-weight: 500; }
.conv.unread .cn { font-weight: 700; }
.conv time { font-size: .75rem; color: var(--c-text-faint); }
.conv .cs { grid-column: 1 / -1; font-size: .85rem; color: var(--c-text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ud { display: inline-block; width: .55rem; height: .55rem; margin-left: .5rem; border-radius: 50%; background: var(--primary); }
.gal-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
@media (max-width: 1000px) { .gal-grid { grid-template-columns: 1fr; } }
.masonry { columns: 3 11rem; column-gap: 1rem; }
.ph { position: relative; display: block; width: 100%; margin: 0 0 1rem; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--c-surface-soft); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .18), 0 12px 24px -18px rgba(var(--rgb-shadow), .5); break-inside: avoid; cursor: pointer; }
.ph img { display: block; width: 100%; height: auto; }
.ph span { position: absolute; left: .6rem; bottom: .5rem; padding: .15rem .6rem; font-size: .72rem; font-weight: 500; color: #fff; background: rgba(var(--rgb-deep), .55); border-radius: 999px; }
.ph.ex { display: grid; place-items: center; cursor: default; color: var(--c-text-faint); }
.ph.ex .ic { width: 2rem; height: 2rem; }
.ph.hid img { opacity: .25; filter: grayscale(1); }
.pact { position: absolute; inset: auto .5rem .5rem .5rem; display: flex; gap: .4rem; justify-content: flex-end; }
.masonry.mod .ph span { bottom: auto; top: .5rem; }
.drop { display: grid; justify-items: center; gap: .5rem; margin-top: 1rem; padding: 1.8rem 1rem; text-align: center; cursor: pointer; border-radius: 16px; background: rgba(var(--rgb-edge), .06); box-shadow: inset 0 0 0 1.5px rgba(var(--rgb-edge), .3); transition: background .2s, box-shadow .2s; }
.drop:hover, .drop.over { background: rgba(var(--rgb-primary), .06); box-shadow: inset 0 0 0 1.5px var(--primary); }
.drop:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.drop .ic { width: 2rem; height: 2rem; color: var(--c-text-soft); }
.drop b { font-weight: 500; color: var(--c-text); }
.pthumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.pth { position: relative; width: 4.2rem; height: 4.2rem; border-radius: 10px; overflow: hidden; }
.pth img { width: 100%; height: 100%; object-fit: cover; }
.pth button { position: absolute; top: .15rem; right: .15rem; width: 1.3rem; height: 1.3rem; padding: 0; line-height: 1; color: #fff; background: rgba(var(--rgb-deep), .65); border: 0; border-radius: 50%; cursor: pointer; }
.lightbox { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 2rem; background: rgba(var(--rgb-deep), .82); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 14px; }
.lbx { position: absolute; top: 1rem; right: 1.2rem; width: 2.6rem; height: 2.6rem; font-size: 1.6rem; line-height: 1; color: #fff; background: rgba(255,255,255,.14); border: 0; border-radius: 50%; cursor: pointer; }

/* MAILBTN: Briefkasten-Symbol neben dem Namen; FAQ ganz ausgeklappt; Fotograf */
.mailbtn { position: relative; display: inline-grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; color: var(--c-text); text-decoration: none; border-radius: 50%; background: var(--c-surface);
  box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .16), 0 1px 0 rgba(var(--rgb-light), .95) inset, 0 1px 2px rgba(var(--rgb-shadow), .08), 0 8px 16px -10px rgba(var(--rgb-shadow), .35); transition: transform .25s var(--ease), box-shadow .25s; }
.mailbtn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .3), 0 1px 0 rgba(var(--rgb-light), .95) inset, 0 10px 20px -10px rgba(var(--rgb-shadow), .45); }
.mailbtn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.mailbtn .ic { width: 1.3rem; height: 1.3rem; }
.mailbtn .nb { position: absolute; top: -.3rem; right: -.3rem; margin: 0; box-shadow: 0 0 0 2px var(--c-page); }
.who { gap: .6rem; }
.fq-q { pointer-events: none; cursor: default; }
.fq-q:hover { color: var(--c-text); }
.fq-i { display: none; }
.pwrow { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid rgba(var(--rgb-edge), .14); }
.pwrow code { padding: .4rem .8rem; font-family: ui-monospace, Consolas, monospace; font-size: .95rem; color: var(--c-text); background: var(--c-field); border-radius: 10px; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .2), inset 0 1px 2px rgba(var(--rgb-shadow), .08); user-select: all; }

/* ROLLEN: Ansichts-Schalter (nur bei Konto "Beides") und Team-Seite */
.viewsw { display: inline-flex; gap: .15rem; padding: .2rem; margin-right: .3rem; border-radius: 999px; background: rgba(var(--rgb-edge), .1); }
.viewsw[hidden] { display: none; }
.viewsw a { padding: .38rem .85rem; font-size: .82rem; font-weight: 500; color: var(--c-text-soft); text-decoration: none; border-radius: 999px; transition: background .25s var(--ease), color .25s; }
.viewsw a:hover { color: var(--c-text); }
.viewsw a.on { color: var(--c-on-primary); background: var(--primary); }
.tbtn { font: inherit; font-size: .82rem; padding: .38rem .85rem; color: var(--c-text-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .25); transition: box-shadow .2s, color .2s; }
.tbtn:hover { color: var(--c-text); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .45); }
.tbtn.danger { color: var(--c-danger); box-shadow: 0 0 0 1px rgba(var(--rgb-danger), .5); }
.tbtn[disabled] { opacity: .45; pointer-events: none; }
.tform { display: grid; gap: .7rem; }
.tform .msg { margin: 0; min-height: 0; }
.tform .msg:empty { display: none; }
@media (max-width: 560px) { .viewsw a { padding: .34rem .6rem; font-size: .76rem; } }

/* MOCK-RECHTS: Mock-Schalter sitzt unten rechts; Links, die dort standen, ruecken darueber */
.later-fix, .skipfix { bottom: 4.6rem; }

/* FAQ-KARTEN: Raster statt Textwand */
.faq-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1.2rem; align-items: stretch; }
.fcard { display: flex; flex-direction: column; gap: .55rem; padding: 1.5rem 1.6rem; border-radius: 20px; background: var(--c-surface);
  box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .16), 0 1px 0 rgba(var(--rgb-light), .95) inset, 0 1px 2px rgba(var(--rgb-shadow), .08), 0 18px 34px -26px rgba(var(--rgb-shadow), .4); transition: transform .3s var(--ease), box-shadow .3s; }
.fcard:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .26), 0 1px 0 rgba(var(--rgb-light), .95) inset, 0 20px 36px -24px rgba(var(--rgb-shadow), .5); }
.fcat { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-text-faint); }
.fcard h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.fcard p { margin: 0; color: var(--c-text-soft); line-height: 1.55; font-size: .95rem; }
.fcard .fq-l { margin: auto 0 0; padding-top: .5rem; }

/* ROLLEN: Ansichts-Schalter (nur bei Konto "Beides") und Team-Seite */
.viewsw { display: inline-flex; gap: .15rem; padding: .2rem; margin-right: .3rem; border-radius: 999px; background: rgba(var(--rgb-edge), .1); }
.viewsw[hidden] { display: none; }
.viewsw a { padding: .38rem .85rem; font-size: .82rem; font-weight: 500; color: var(--c-text-soft); text-decoration: none; border-radius: 999px; transition: background .25s var(--ease), color .25s; }
.viewsw a:hover { color: var(--c-text); }
.viewsw a.on { color: var(--c-on-primary); background: var(--primary); }
.tbtn { font: inherit; font-size: .82rem; padding: .38rem .85rem; color: var(--c-text-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .25); transition: box-shadow .2s, color .2s; }
.tbtn:hover { color: var(--c-text); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .45); }
.tbtn.danger { color: var(--c-danger); box-shadow: 0 0 0 1px rgba(var(--rgb-danger), .5); }
.tbtn[disabled] { opacity: .45; pointer-events: none; }
.tform { display: grid; gap: .7rem; }
.tform .msg { margin: 0; min-height: 0; }
.tform .msg:empty { display: none; }
@media (max-width: 560px) { .viewsw a { padding: .34rem .6rem; font-size: .76rem; } }

/* ROLLEN: Ansichts-Schalter (nur bei Konto "Beides") und Team-Seite */
.viewsw { display: inline-flex; gap: .15rem; padding: .2rem; margin-right: .3rem; border-radius: 999px; background: rgba(var(--rgb-edge), .1); }
.viewsw[hidden] { display: none; }
.viewsw a { padding: .38rem .85rem; font-size: .82rem; font-weight: 500; color: var(--c-text-soft); text-decoration: none; border-radius: 999px; transition: background .25s var(--ease), color .25s; }
.viewsw a:hover { color: var(--c-text); }
.viewsw a.on { color: var(--c-on-primary); background: var(--primary); }
.tbtn { font: inherit; font-size: .82rem; padding: .38rem .85rem; color: var(--c-text-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .25); transition: box-shadow .2s, color .2s; }
.tbtn:hover { color: var(--c-text); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .45); }
.tbtn.danger { color: var(--c-danger); box-shadow: 0 0 0 1px rgba(var(--rgb-danger), .5); }
.tbtn[disabled] { opacity: .45; pointer-events: none; }
.tform { display: grid; gap: .7rem; }
.tform .msg { margin: 0; min-height: 0; }
.tform .msg:empty { display: none; }
@media (max-width: 560px) { .viewsw a { padding: .34rem .6rem; font-size: .76rem; } }

/* ROLLEN: Ansichts-Schalter (nur bei Konto "Beides") und Team-Seite */
.viewsw { display: inline-flex; gap: .15rem; padding: .2rem; margin-right: .3rem; border-radius: 999px; background: rgba(var(--rgb-edge), .1); }
.viewsw[hidden] { display: none; }
.viewsw a { padding: .38rem .85rem; font-size: .82rem; font-weight: 500; color: var(--c-text-soft); text-decoration: none; border-radius: 999px; transition: background .25s var(--ease), color .25s; }
.viewsw a:hover { color: var(--c-text); }
.viewsw a.on { color: var(--c-on-primary); background: var(--primary); }
.tbtn { font: inherit; font-size: .82rem; padding: .38rem .85rem; color: var(--c-text-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .25); transition: box-shadow .2s, color .2s; }
.tbtn:hover { color: var(--c-text); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .45); }
.tbtn.danger { color: var(--c-danger); box-shadow: 0 0 0 1px rgba(var(--rgb-danger), .5); }
.tbtn[disabled] { opacity: .45; pointer-events: none; }
.tform { display: grid; gap: .7rem; }
.tform .msg { margin: 0; min-height: 0; }
.tform .msg:empty { display: none; }
@media (max-width: 560px) { .viewsw a { padding: .34rem .6rem; font-size: .76rem; } }

/* GLOBALE TEXTFELDER (nicht nur im Wizard) */
.txt { display: block; width: 100%; padding: .85rem 1rem; font: inherit; line-height: 1.5; color: var(--c-text); background: var(--c-field); border: 0; border-radius: 14px; outline: none; resize: vertical;
  box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .2), inset 0 1px 2px rgba(var(--rgb-shadow), .1); transition: box-shadow .2s; }
.txt::placeholder { color: var(--c-text-faint); }
.txt:hover { box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .34), inset 0 1px 2px rgba(var(--rgb-shadow), .1); }
.txt:focus { box-shadow: 0 0 0 1px var(--primary), 0 0 0 4px rgba(var(--rgb-primary), .1); }
.txt.err { box-shadow: 0 0 0 1px var(--c-danger), 0 0 0 4px rgba(var(--rgb-danger), .14); }

/* EDITOR2: Karten, Ziehen, Vorschau, Toast */
.ed-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
@media (max-width: 1000px) { .ed-grid { grid-template-columns: 1fr; } }
.ed-tools { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.ed-tools .search { max-width: 18rem; }
.ei { margin-bottom: .6rem; border-radius: 16px; background: var(--c-surface); transition: box-shadow .25s, transform .25s var(--ease), opacity .2s;
  box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .16), 0 1px 0 rgba(var(--rgb-light), .95) inset, 0 1px 2px rgba(var(--rgb-shadow), .06); }
.ei:hover { box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .28), 0 1px 0 rgba(var(--rgb-light), .95) inset, 0 8px 18px -14px rgba(var(--rgb-shadow), .4); }
.ei.open { box-shadow: 0 0 0 1px rgba(var(--rgb-primary), .45), 0 1px 0 rgba(var(--rgb-light), .95) inset, 0 16px 30px -20px rgba(var(--rgb-shadow), .5); }
.ei.bad { box-shadow: 0 0 0 1.5px var(--c-danger), 0 0 0 5px rgba(var(--rgb-danger), .1); }
.ei.dragging { opacity: .45; }
.ei.over { box-shadow: 0 0 0 2px var(--primary); transform: translateY(2px); }
.eh { display: flex; align-items: center; gap: .6rem; padding: .35rem .5rem .35rem .3rem; }
.grab { flex: none; width: 1.7rem; height: 2.4rem; cursor: grab; border-radius: 8px; background: radial-gradient(circle, var(--c-text-faint) 1.4px, transparent 1.7px) 0 0 / .5rem .5rem; background-position: center; opacity: .55; }
.grab:hover { opacity: 1; }
.grab:active { cursor: grabbing; }
.et { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .55rem .3rem; font: inherit; text-align: left; color: var(--c-text); background: none; border: 0; cursor: pointer; border-radius: 10px; }
.et b { max-width: 100%; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.et small { max-width: 100%; font-size: .8rem; color: var(--c-text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.et:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.ea { flex: none; display: flex; gap: .25rem; opacity: .0; transition: opacity .2s; }
.ei:hover .ea, .ei.open .ea, .ei:focus-within .ea { opacity: 1; }
@media (hover: none) { .ea { opacity: 1; } }
.ib { width: 2.1rem; height: 2.1rem; display: grid; place-items: center; font: inherit; font-size: 1.05rem; line-height: 1; color: var(--c-text-soft); background: transparent; border: 0; border-radius: 10px; cursor: pointer; transition: background .2s, color .2s; }
.ib:hover { background: rgba(var(--rgb-edge), .1); color: var(--c-text); }
.ib.danger:hover { background: rgba(var(--rgb-danger), .1); color: var(--c-danger); }
.ib[disabled] { opacity: .25; pointer-events: none; }
.ib:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 1px; }
.eb { padding: .2rem 1rem 1.2rem 2.4rem; animation: rise .35s var(--ease) both; }
.ed-prev { position: sticky; top: 6rem; padding: 1.2rem; border-radius: 20px; background: rgba(var(--rgb-edge), .06); box-shadow: inset 0 0 0 1px rgba(var(--rgb-edge), .14); }
.prev-h { margin-bottom: 1rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-text-faint); }
.prev-body { max-height: 70vh; overflow-y: auto; }
.prev-body .stay, .prev-body .fcard { box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .16), 0 1px 0 rgba(var(--rgb-light), .95) inset; }
.tl2.compact::before { left: calc(5.5rem + .5px); }
.tl2.compact li { grid-template-columns: 5.5rem 1fr; gap: 1.2rem; padding: 1rem 0; }
.tl2.compact li::before { left: calc(5.5rem - .3rem); top: 1.7rem; }
.tl2.compact .when { font-size: 1.5rem; }
.tl2.compact .what h3 { font-size: 1.3rem; }
.toast { position: fixed; left: 50%; bottom: 1.6rem; z-index: 9500; display: flex; align-items: center; gap: 1rem; padding: .75rem 1.1rem .75rem 1.3rem; font-size: .92rem; color: var(--c-on-primary); background: var(--c-heading); border-radius: 999px; box-shadow: 0 16px 36px -14px rgba(var(--rgb-deep), .6); transform: translate(-50%, 16px); opacity: 0; transition: transform .35s var(--ease), opacity .3s; }
.toast.in { transform: translate(-50%, 0); opacity: 1; }
.toast.out { transform: translate(-50%, 8px); opacity: 0; }
.toast button { font: inherit; font-weight: 600; color: #f2d9a0; background: none; border: 0; cursor: pointer; padding: 0; }
.savebar .tbtn { flex: none; }
.newmsg { display: grid; gap: .9rem; padding: 1.3rem 1.4rem; overflow-y: auto; }
.newmsg .txt { margin: 0; }
.newmsg .msg { margin: 0; min-height: 0; text-align: left; }
.newmsg .msg:empty { display: none; }
.chat-h small { display: block; font-size: .78rem; color: var(--c-text-faint); }

/* ROLLEN: Ansichts-Schalter (nur bei Konto "Beides") und Team-Seite */
.viewsw { display: inline-flex; gap: .15rem; padding: .2rem; margin-right: .3rem; border-radius: 999px; background: rgba(var(--rgb-edge), .1); }
.viewsw[hidden] { display: none; }
.viewsw a { padding: .38rem .85rem; font-size: .82rem; font-weight: 500; color: var(--c-text-soft); text-decoration: none; border-radius: 999px; transition: background .25s var(--ease), color .25s; }
.viewsw a:hover { color: var(--c-text); }
.viewsw a.on { color: var(--c-on-primary); background: var(--primary); }
.tbtn { font: inherit; font-size: .82rem; padding: .38rem .85rem; color: var(--c-text-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .25); transition: box-shadow .2s, color .2s; }
.tbtn:hover { color: var(--c-text); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .45); }
.tbtn.danger { color: var(--c-danger); box-shadow: 0 0 0 1px rgba(var(--rgb-danger), .5); }
.tbtn[disabled] { opacity: .45; pointer-events: none; }
.tform { display: grid; gap: .7rem; }
.tform .msg { margin: 0; min-height: 0; }
.tform .msg:empty { display: none; }
@media (max-width: 560px) { .viewsw a { padding: .34rem .6rem; font-size: .76rem; } }

/* FARBEN: Auswahl im Inhalte-Bereich */
.swatch { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; box-shadow: 0 0 0 3px var(--c-surface), 0 0 0 4px rgba(var(--rgb-edge), .3), 0 6px 12px -6px rgba(var(--rgb-shadow), .5); transition: background .25s; }
.presets { display: flex; flex-wrap: wrap; gap: .5rem; }
.pre { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .85rem .35rem .4rem; font: inherit; font-size: .85rem; color: var(--c-text); background: var(--c-field); border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .2); transition: box-shadow .2s, transform .2s var(--ease); }
.pre i { width: 1.4rem; height: 1.4rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.pre:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .4); }
.pre.on { box-shadow: 0 0 0 2px var(--c-primary); }
.pre:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* ROLLEN: Ansichts-Schalter (nur bei Konto "Beides") und Team-Seite */
.viewsw { display: inline-flex; gap: .15rem; padding: .2rem; margin-right: .3rem; border-radius: 999px; background: rgba(var(--rgb-edge), .1); }
.viewsw[hidden] { display: none; }
.viewsw a { padding: .38rem .85rem; font-size: .82rem; font-weight: 500; color: var(--c-text-soft); text-decoration: none; border-radius: 999px; transition: background .25s var(--ease), color .25s; }
.viewsw a:hover { color: var(--c-text); }
.viewsw a.on { color: var(--c-on-primary); background: var(--primary); }
.tbtn { font: inherit; font-size: .82rem; padding: .38rem .85rem; color: var(--c-text-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .25); transition: box-shadow .2s, color .2s; }
.tbtn:hover { color: var(--c-text); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .45); }
.tbtn.danger { color: var(--c-danger); box-shadow: 0 0 0 1px rgba(var(--rgb-danger), .5); }
.tbtn[disabled] { opacity: .45; pointer-events: none; }
.tform { display: grid; gap: .7rem; }
.tform .msg { margin: 0; min-height: 0; }
.tform .msg:empty { display: none; }
@media (max-width: 560px) { .viewsw a { padding: .34rem .6rem; font-size: .76rem; } }

/* PERFORMANCE: fester Hintergrund als eigene Ebene (kein Neuzeichnen beim Scrollen), Leisten ohne festen Hintergrund */
body.app { background-image: none; background-attachment: scroll; }
body.app::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; transform: translateZ(0);
  background-image: radial-gradient(130% 110% at 50% 45%, rgba(var(--rgb-edge), 0) 60%, rgba(var(--rgb-edge), .1) 100%), url(paper-tile.jpg);
  background-size: auto, 1024px 1024px; background-repeat: no-repeat, repeat; }
body.app::after { will-change: transform; }
.appbar, .bottombar { background-attachment: scroll; }
.fcard, .ei, .panelc, .conv { contain: layout style; }
.offtag { margin-left: .4rem; font-size: .66rem; font-style: normal; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-faint); }
.is-off { opacity: .6; }

/* ROLLEN: Ansichts-Schalter (nur bei Konto "Beides") und Team-Seite */
.viewsw { display: inline-flex; gap: .15rem; padding: .2rem; margin-right: .3rem; border-radius: 999px; background: rgba(var(--rgb-edge), .1); }
.viewsw[hidden] { display: none; }
.viewsw a { padding: .38rem .85rem; font-size: .82rem; font-weight: 500; color: var(--c-text-soft); text-decoration: none; border-radius: 999px; transition: background .25s var(--ease), color .25s; }
.viewsw a:hover { color: var(--c-text); }
.viewsw a.on { color: var(--c-on-primary); background: var(--primary); }
.tbtn { font: inherit; font-size: .82rem; padding: .38rem .85rem; color: var(--c-text-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .25); transition: box-shadow .2s, color .2s; }
.tbtn:hover { color: var(--c-text); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .45); }
.tbtn.danger { color: var(--c-danger); box-shadow: 0 0 0 1px rgba(var(--rgb-danger), .5); }
.tbtn[disabled] { opacity: .45; pointer-events: none; }
.tform { display: grid; gap: .7rem; }
.tform .msg { margin: 0; min-height: 0; }
.tform .msg:empty { display: none; }
@media (max-width: 560px) { .viewsw a { padding: .34rem .6rem; font-size: .76rem; } }

/* FADEIN: alle Karten gleichzeitig, ohne Staffelung */
.fadein { animation: fadein .45s ease both; }
@keyframes fadein { from { opacity: 0; } }

/* ROLLEN: Ansichts-Schalter (nur bei Konto "Beides") und Team-Seite */
.viewsw { display: inline-flex; gap: .15rem; padding: .2rem; margin-right: .3rem; border-radius: 999px; background: rgba(var(--rgb-edge), .1); }
.viewsw[hidden] { display: none; }
.viewsw a { padding: .38rem .85rem; font-size: .82rem; font-weight: 500; color: var(--c-text-soft); text-decoration: none; border-radius: 999px; transition: background .25s var(--ease), color .25s; }
.viewsw a:hover { color: var(--c-text); }
.viewsw a.on { color: var(--c-on-primary); background: var(--primary); }
.tbtn { font: inherit; font-size: .82rem; padding: .38rem .85rem; color: var(--c-text-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .25); transition: box-shadow .2s, color .2s; }
.tbtn:hover { color: var(--c-text); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .45); }
.tbtn.danger { color: var(--c-danger); box-shadow: 0 0 0 1px rgba(var(--rgb-danger), .5); }
.tbtn[disabled] { opacity: .45; pointer-events: none; }
.tform { display: grid; gap: .7rem; }
.tform .msg { margin: 0; min-height: 0; }
.tform .msg:empty { display: none; }
@media (max-width: 560px) { .viewsw a { padding: .34rem .6rem; font-size: .76rem; } }

/* Ablauf: "Uhr" unter die Zeit statt daneben, damit es nicht in die Linie ragt */
.when small { display: block; margin: .35rem 0 0; }
.tl2.compact .when small { margin-top: .2rem; }

/* PRAEGUNG IN DER APP: exakt wie im Login (warme Papierfuellung, weiche Kanten) */
body.app::after {
  color: rgba(var(--rgb-paper), .12);
  text-shadow: -1px -1px 3px rgba(var(--rgb-paper), .4), 1px 2px 4px rgba(var(--rgb-edge), .08), 3px 5px 11px rgba(var(--rgb-edge), .05);
}

/* LOGIN-SCHRIFTEN: Ueberschriften Ephesis, Text Abadi Extra Light; Logo groesser */
.split { font-family: var(--font-login-text); font-weight: 200; }
.split h1 { font-family: var(--font-login-head); font-weight: 400; font-size: clamp(2.4rem, 4vw, 3.5rem); letter-spacing: 0; line-height: 1.05; }
.split .lead, .split p, .split .hint, .split .link, .split .chip, .split .divider, .split label { font-weight: 200; }
.split .card input, .split .btn, .split button, .split .btn-ghost, .split .lang-panel button { font-family: var(--font-login-text); }
.logo-lg { height: 10.5rem; margin-bottom: 1.8rem; }
@media (max-width: 600px) { .logo-lg { height: 7.5rem; } }

/* ANTWORT-FELD (Nachrichten, Postfach): eigenes Design statt Browser-Standard */
.cmp { margin: 0; padding-top: 1rem; border-top: 1px solid rgba(var(--rgb-edge), .14); }
.cmp-in { display: flex; align-items: flex-end; gap: .5rem; padding: .35rem .35rem .35rem 1.1rem; background: var(--c-field); border-radius: 22px; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .2), inset 0 1px 2px rgba(var(--rgb-shadow), .08); transition: box-shadow .2s; }
.cmp-in:hover { box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .34), inset 0 1px 2px rgba(var(--rgb-shadow), .1); }
.cmp-in:focus-within { box-shadow: 0 0 0 1px var(--primary), 0 0 0 4px rgba(var(--rgb-primary), .1); }
.cmp-in textarea { flex: 1; min-width: 0; max-height: 9rem; padding: .6rem 0; font: inherit; font-size: .96rem; line-height: 1.5; color: var(--c-text); background: transparent; border: 0; outline: none; resize: none; box-shadow: none; }
.cmp-in textarea::placeholder { color: var(--c-text-faint); }
.cmp .send { flex: none; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; padding: 0; color: var(--c-on-primary); background: var(--c-primary); border: 0; border-radius: 50%; cursor: pointer; transition: background .2s, transform .15s, opacity .2s; }
.cmp .send:hover:not(:disabled) { background: var(--c-primary-hover); }
.cmp .send:active:not(:disabled) { transform: scale(.94); }
.cmp .send:disabled { opacity: .35; cursor: default; }

/* GRUNDREGEL: kein Browser-Standard bei Formularelementen. Textfelder und Auswahllisten bekommen das App-Design, auch ohne eigene Klasse. */
textarea:not(.txt):not(#rt) { font: inherit; padding: .8rem 1rem; color: var(--c-text); background: var(--c-field); border: 0; border-radius: 14px; outline: none; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .2), inset 0 1px 2px rgba(var(--rgb-shadow), .1); }
textarea:not(.txt):not(#rt):focus { box-shadow: 0 0 0 1px var(--primary), 0 0 0 4px rgba(var(--rgb-primary), .1); }
select { appearance: none; -webkit-appearance: none; font: inherit; padding: .6rem 2.2rem .6rem 1rem; color: var(--c-text); background: var(--c-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a6050' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7rem center / 1rem; border: 0; border-radius: 12px; outline: none; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .2); }
select:focus { box-shadow: 0 0 0 1px var(--primary), 0 0 0 4px rgba(var(--rgb-primary), .1); }
::selection { background: rgba(var(--rgb-primary), .2); }

/* KONTINGENT-PREISE (Anmeldung, Schritt 4) */
.kp { list-style: none; margin: 1.1rem 0 0; padding: 0; background: var(--c-field); border-radius: 14px; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .2); overflow: hidden; }
.kp li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .85rem 1.1rem; }
.kp li + li { border-top: 1px solid rgba(var(--rgb-edge), .14); }
.kp b { font-weight: 600; color: var(--c-heading); white-space: nowrap; }

/* KONTAKT */
.ct-h { margin: 1.6rem 0 .8rem; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--ink); }
.ct-note { margin-top: 1.2rem; }
.ct-note ul { margin: .7rem 0 0; padding-left: 1.2rem; line-height: 1.6; }

/* QUICKLINKS (Startseite) und kleine Mitgaeste-Karte */
.qlinks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; margin: 1.4rem 0 1.6rem; }
.qlinks a { display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 1.1rem .6rem; text-decoration: none; color: var(--c-heading); font-size: .92rem; font-weight: 500; background: var(--c-surface); border-radius: 18px; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .16), 0 10px 24px -20px rgba(var(--rgb-shadow), .35); transition: transform .2s, box-shadow .2s; }
.qlinks a:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(var(--rgb-primary), .3), 0 14px 26px -18px rgba(var(--rgb-shadow), .45); }
.qlinks .ic { width: 1.7rem; height: 1.7rem; color: var(--c-primary); }
.hcol { display: grid; gap: 1.6rem; align-content: start; }
.more { padding: 1.1rem 1.3rem; max-width: 24rem; }
.more h2 { font-size: 1.2rem; }
.more .sub { margin: .25rem 0 .9rem; font-size: .92rem; }
@media (max-width: 900px) { .qlinks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) { .qlinks a { padding: .9rem .4rem; font-size: .84rem; } }

/* Ablauf: Uhrzeit kleiner und mit Abstand zur Linie */
@media (min-width: 901px) {
  .tl2::before { left: calc(8.5rem + .5px); }
  .tl2 li { grid-template-columns: 8.5rem 1fr; gap: 2.4rem; }
  .tl2 li::before { left: calc(8.5rem - .3rem); }
  .tl2 .when { padding: .5rem 2rem 0 0; font-size: 1.9rem; }
  .tl2 .when.soon { font-size: 1.15rem; padding-top: .7rem; }
  .tl2 .when small { margin-top: .3rem; font-size: .7rem; }
}

/* SCHRIFTEN IN DER GANZEN APP: Ueberschriften Ephesis (ueber --font-display), Text Raleway (ueber --font-ui).
   Zahlen und Uhrzeiten bleiben in Raleway (lesbare Ziffern), Raleway mit gleich hohen Ziffern, Text etwas leichter. */
body, body.app { font-weight: 300; font-variant-numeric: lining-nums; }
h1, h2, h3, h4 { font-style: normal; }
.when, .when.soon, .stat b, .card .code input, .prof .big, .tk .ck, .av, .av2, .nb, .pn, .mono { font-family: var(--font-ui); font-style: normal; }
.when { font-weight: 200; }
body.app::after, .split::after { font-style: normal; }

/* =====================================================================================
   NACHRICHTEN / POSTFACH: luftiges Layout (Liste links, Unterhaltung rechts)
   ===================================================================================== */
.inbox { gap: 1.8rem; grid-template-columns: minmax(17rem, 23rem) minmax(0, 1fr); }
.inbox > .panelc:first-child { padding: 1.4rem 1.2rem 1.2rem; }
.inbox .search { width: 100%; height: 2.9rem; padding: 0 1.1rem; }
.plist2 { margin-top: 1.1rem; gap: .35rem; }
.conv { padding: 1rem 1.1rem; gap: .3rem .8rem; border-radius: 16px; }
.conv .cn { font-size: 1rem; }
.conv .cs { font-size: .88rem; line-height: 1.4; }
.conv.on { background: rgba(var(--rgb-primary), .08); box-shadow: inset 3px 0 0 var(--c-primary); }

.chatcard { display: flex; flex-direction: column; padding: 0; min-height: 36rem; overflow: hidden; }
.chat-h { display: flex; align-items: center; gap: 1rem; padding: 1.3rem 1.8rem; border-bottom: 1px solid rgba(var(--rgb-edge), .14); }
.chat-h b { display: block; font-size: 1.12rem; font-weight: 500; color: var(--c-heading); line-height: 1.3; }
.chat-h small { margin-top: .15rem; font-size: .82rem; }
.av2 { flex: none; width: 2.9rem; height: 2.9rem; display: grid; place-items: center; font-size: .95rem; font-weight: 500; color: var(--c-primary); background: var(--c-surface-soft); border-radius: 50%; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .16); }
.av2 .ic { width: 1.35rem; height: 1.35rem; }

.chatcard .thread { flex: 1; max-height: 56vh; min-height: 16rem; gap: .3rem; padding: 1.6rem 1.8rem 1.2rem; }
.dsep { display: flex; align-items: center; justify-content: center; margin: 1.1rem 0 .9rem; }
.dsep span { padding: .3rem .9rem; font-size: .74rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-faint); background: var(--c-surface-soft); border-radius: 999px; }
.dsep:first-child { margin-top: 0; }
.bub { max-width: min(36rem, 80%); }
.bub.first { margin-top: .9rem; }
.bub .bt { padding: .85rem 1.2rem; line-height: 1.6; font-size: .98rem; }
.bub time { margin: .4rem .4rem .1rem; font-size: .74rem; }
.bub.org:not(.last) .bt { border-bottom-left-radius: 18px; }
.bub.me:not(.last) .bt { border-bottom-right-radius: 18px; }

.chatcard .cmp { padding: 1rem 1.6rem 1.5rem; border-top: 1px solid rgba(var(--rgb-edge), .14); }
.chatcard .cmp-in { padding: .4rem .4rem .4rem 1.3rem; }
.chatcard .newmsg { padding: 1.8rem; gap: 1.2rem; }
.newmsg .chips-row { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 900px) {
  .inbox { gap: 1.2rem; }
  .chat-h { padding: 1.1rem 1.2rem; }
  .chatcard .thread { padding: 1.2rem; }
  .chatcard .cmp { padding: .8rem 1rem 1.1rem; }
}

/* SPEICHERLEISTE: kein weisser Balken mehr, nur die schwebenden Knoepfe (Hinweis als kleine Pille) */
.savebar { background: none; box-shadow: none; padding: 0; justify-content: flex-end; pointer-events: none; }
.savebar > * { pointer-events: auto; }
.savebar p { padding: .55rem 1.1rem; border-radius: 999px; background: var(--c-surface); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .16), 0 10px 24px -14px rgba(var(--rgb-shadow), .45); }
.savebar p:empty { display: none; }
.savebar .btn-s { box-shadow: 0 14px 30px -12px rgba(var(--rgb-shadow), .6); }
.savebar .tbtn { background: var(--c-surface); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .2), 0 10px 24px -14px rgba(var(--rgb-shadow), .45); }

/* Bedienelemente etwas kraeftiger als der extra leichte Fliesstext (Lesbarkeit) */
.tabs a, .bottombar a, .chipb, .tbtn, .pill, .viewsw a, .userchip, .lfl, th, .segc button, .opt small, .conv .cs { font-weight: 400; }
.tabs a.on, .bottombar a.on { font-weight: 500; }
.btn, .btn-s { font-weight: 500; }

/* Initialen in den Avataren in Raleway (Ephesis ist als Kuerzel schlecht lesbar) */
.who .av, .userchip .av, .pcard .big, .prof .big { font-family: var(--font-ui); font-weight: 500; letter-spacing: .02em; }

/* GROESSERE UEBERSCHRIFTEN (Ephesis ist in kleinen Groessen schwer lesbar) */
.head h1 { font-size: clamp(2.8rem, 4.6vw, 3.8rem); }
.panelc h2, .ct-h { font-size: 2rem; line-height: 1.15; }
.more h2 { font-size: 1.7rem; }
.what h3 { font-size: clamp(2rem, 3.2vw, 2.7rem); }

/* ABSTAENDE passend zu den groesseren Ueberschriften (Ephesis hat lange Unterlaengen) */
.panelc { padding: clamp(1.4rem, 2.6vw, 2.1rem); }
.panelc h2 { margin: 0 0 1rem; padding-top: .15rem; line-height: 1.3; }
.panelc h2 + .sub, .panelc h2 + p.sub { margin-top: -.5rem; margin-bottom: 1.1rem; }
.phead h2, .panelc .phead h2 { margin-bottom: 0; }
.panelc .phead { gap: 1.2rem; }
.panelc h2 + .tools, .panelc h2 + .tform, .panelc h2 + form { margin-top: .2rem; }
.head { padding-bottom: .4rem; }
.head h1 { line-height: 1.2; padding-bottom: .15rem; }
.head + .stats, .head + .grid3, .head + .ed-grid, .head + .inbox, .head + section { margin-top: 1.4rem; }
.what h3 { line-height: 1.25; margin-bottom: .6rem; }
.ct-h { margin: 2rem 0 1rem; }
.more h2 { margin-bottom: .6rem; }
.stay h2 { margin-bottom: .5rem; }

/* TABELLEN: sortierbare Koepfe, Leerzustand */
.t th.sortable { cursor: pointer; user-select: none; white-space: nowrap; transition: color .2s; }
.t th.sortable:hover, .t th.asc, .t th.desc { color: var(--c-heading); }
.t th.sortable:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; border-radius: 6px; }
.t th .sa { position: relative; display: inline-block; width: .7rem; height: .9rem; margin-left: .45rem; vertical-align: -.12rem; }
.t th .sa::before, .t th .sa::after { content: ""; position: absolute; left: .05rem; border: .3rem solid transparent; opacity: .3; }
.t th .sa::before { top: -.05rem; border-bottom-color: currentColor; border-top-width: 0; }
.t th .sa::after { bottom: -.05rem; border-top-color: currentColor; border-bottom-width: 0; }
.t th.asc .sa::before, .t th.desc .sa::after { opacity: 1; }
.t td.emp { padding: 2rem .8rem; color: var(--c-text-soft); text-align: center; }
.t td.emp .tbtn { margin-left: .6rem; }
.tools select { height: 2.6rem; padding-top: 0; padding-bottom: 0; }
.chipb[aria-pressed="true"] { color: var(--c-on-primary); background: var(--primary); box-shadow: none; }

/* Login: Untertext gut lesbar (Raleway extra leicht war zu blass) */
.split .lead, .split .sub, .split p.lead { font-weight: 300; color: var(--c-text); }
.split .hint, .split .link { font-weight: 300; }
.split .card input::placeholder { font-weight: 300; }

/* Spaeter fortsetzen: mittig unter den Knoepfen statt unten rechts */
.later-c { display: flex; justify-content: center; margin-top: 1.1rem; }

/* AUSWAHL UND AKTIONEN IN DER GAESTELISTE */
.ck2 { position: relative; flex: none; width: 1.3rem; height: 1.3rem; padding: 0; vertical-align: middle; background: var(--c-field); border: 0; border-radius: 7px; cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .3), inset 0 1px 2px rgba(var(--rgb-shadow), .08); transition: background .15s, box-shadow .15s; }
.ck2:hover { box-shadow: 0 0 0 1px rgba(var(--rgb-primary), .5); }
.ck2:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.ck2.on { background: var(--c-primary); box-shadow: none; }
.ck2.on::after { content: ""; position: absolute; inset: .18rem; background: var(--c-on-primary); -webkit-mask: url(ph-check.svg) center / contain no-repeat; mask: url(ph-check.svg) center / contain no-repeat; }
.t th.ckc, .t td.ckc { width: 2.4rem; padding-right: 0; }
.t tbody tr.gr.sel { background: rgba(var(--rgb-primary), .06); }
.actbar { position: fixed; left: 50%; bottom: 1.6rem; z-index: 40; display: flex; align-items: center; gap: .7rem; max-width: calc(100vw - 2rem); padding: .7rem .8rem .7rem 1.4rem; background: var(--c-surface); border-radius: 999px; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .18), 0 22px 44px -16px rgba(var(--rgb-shadow), .6); animation: rise .35s var(--ease) both; flex-wrap: wrap; justify-content: center; }
.actbar[hidden] { display: none; }
.actbar .an { margin-right: .4rem; font-size: .95rem; color: var(--c-text-soft); white-space: nowrap; }
.actbar .an b { color: var(--c-heading); font-weight: 600; }
.actbar .aq { font-size: .95rem; color: var(--c-heading); }
.actbar .btn-s[disabled] { opacity: .4; pointer-events: auto; cursor: not-allowed; }
@media (max-width: 900px) { .actbar { bottom: 5.4rem; border-radius: 22px; } }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1.2rem; background: rgba(var(--rgb-deep), .35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fadein .2s ease both; }
.modal-p { width: min(32rem, 100%); display: grid; gap: 1.1rem; }
.modal-p h2 { margin: 0; }
.modal-p .msg { margin: 0; min-height: 0; text-align: left; }
.modal-p .msg:empty { display: none; }
.modal-a { display: flex; justify-content: flex-end; gap: .7rem; }
.toast { position: fixed; left: 50%; bottom: 2rem; z-index: 70; padding: .8rem 1.4rem; font-size: .95rem; color: var(--c-on-primary); background: var(--c-heading); border-radius: 999px; transform: translateX(-50%); box-shadow: 0 18px 36px -14px rgba(var(--rgb-shadow), .6); animation: rise .35s var(--ease) both; transition: opacity .4s; }
.toast.out { opacity: 0; }
@media (max-width: 900px) { .toast { bottom: 6rem; } }

/* Team: Startseite als kleine Umschaltung in der Zeile */
.segc.sv { display: inline-flex; margin: 0; padding: .2rem; border-radius: 12px; }
.segc.sv button { flex: none; height: 2rem; padding: 0 .8rem; font-size: .84rem; border-radius: 9px; }

/* EIGENE AUSWAHLLISTE (ersetzt das Browser-Dropdown) */
.cs { position: relative; display: inline-block; }
.cs-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; overflow: hidden; }
.cs-btn { display: inline-flex; align-items: center; gap: .6rem; height: 2.6rem; padding: 0 1rem 0 1.1rem; font: inherit; font-size: .88rem; font-weight: 400; color: var(--muted); background: none; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .22); transition: box-shadow .2s, background .2s, color .2s; }
.cs-btn:hover { box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .4); }
.cs-btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.cs-btn.on { color: var(--c-primary); background: rgba(var(--rgb-primary), .07); box-shadow: 0 0 0 1px rgba(var(--rgb-primary), .45); }
.cs.open .cs-btn { box-shadow: 0 0 0 1px var(--primary), 0 0 0 4px rgba(var(--rgb-primary), .1); }
.cs-ch { width: .45rem; height: .45rem; margin-top: -.15rem; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.cs.open .cs-ch { margin-top: .2rem; transform: rotate(-135deg); }
.cs-pop { position: absolute; left: 0; top: calc(100% + .45rem); z-index: 50; min-width: 100%; width: max-content; max-width: 22rem; max-height: 18rem; overflow-y: auto; padding: .35rem; background: var(--c-surface); border-radius: 16px; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .18), 0 22px 44px -16px rgba(var(--rgb-shadow), .55); animation: rise .2s var(--ease) both; }
.cs-pop[hidden] { display: none; }
.cs-pop.right { left: auto; right: 0; }
.cs-o { display: block; width: 100%; padding: .6rem .9rem; font: inherit; font-size: .92rem; font-weight: 400; text-align: left; color: var(--c-text); background: none; border: 0; border-radius: 10px; cursor: pointer; }
.cs-o:hover, .cs-o:focus-visible { background: rgba(var(--rgb-edge), .09); outline: none; }
.cs-o.on { color: var(--c-primary); font-weight: 500; background: rgba(var(--rgb-primary), .08); }

/* Gaesteliste: Personenansicht bei Filter nach Essen/Allergien */
.tscroll[hidden] { display: none; }
.t tbody tr.pr.sel { background: rgba(var(--rgb-primary), .06); }

/* Filter zuruecksetzen */
.tools .frs { height: 2.6rem; padding: 0 1rem; margin-left: auto; }
.tools .frs[hidden] { display: none; }

/* WEITERLEITUNG: Papier-Schleier mit Logo, Fortschrittsstrich */
.veil { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--c-page) url(paper-tile.jpg); background-size: 1024px 1024px; opacity: 0; transition: opacity .42s ease; pointer-events: all; }
.veil.on { opacity: 1; }
.veil img { width: 5.5rem; height: auto; opacity: 0; transform: translateY(8px) scale(.94); transition: opacity .5s ease .08s, transform .6s var(--ease) .08s; }
.veil.on img { opacity: .92; transform: none; }
.autogo { width: min(14rem, 60%); height: 3px; margin: 1.3rem auto 0; overflow: hidden; border-radius: 3px; background: rgba(var(--rgb-edge), .16); }
.autogo i { display: block; height: 100%; width: 100%; background: var(--c-accent); border-radius: 3px; transform-origin: left center; transform: scaleX(0); animation: autogo 10s linear forwards; }
@keyframes autogo { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .autogo i { animation-duration: 10s; } .veil, .veil img { transition: none; } }

/* Fragen sind ganze Saetze: in Raleway statt in der Schreibschrift (Lesbarkeit) */
.fcard h3 { font-family: var(--font-ui); font-weight: 500; font-size: 1.2rem; line-height: 1.35; letter-spacing: 0; }

/* Kontakt: grosse Tippflaechen, ruhiger Leerzustand */
.ct-card h2 { margin-bottom: .9rem; }
.ct-links { display: grid; gap: .6rem; }
.ct-links .xl { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem 1.1rem; font-size: .95rem; color: var(--c-heading); text-decoration: none; background: var(--c-field); border-radius: 12px; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .2); overflow-wrap: anywhere; transition: box-shadow .2s, transform .2s; }
.ct-links .xl:hover { box-shadow: 0 0 0 1px rgba(var(--rgb-primary), .45); transform: translateY(-1px); }
.ct-links .xl i { font-style: normal; color: var(--c-primary); }
.ct-empty { margin: 0; color: var(--c-text-faint); font-size: .92rem; }

/* Vorschaubild der Unterkunft */
.thumb { height: 9rem; margin: -.3rem 0 1.1rem; overflow: hidden; border-radius: 14px; background: var(--c-surface-soft); box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .14); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.stay:hover .thumb img { transform: scale(1.04); }
.thumb.none { display: grid; place-items: center; color: var(--c-text-faint); background: var(--c-surface-soft) url(paper-tile.jpg); background-size: 520px; }
.thumb.none .ic { width: 2.2rem; height: 2.2rem; opacity: .6; }

/* LADEBALKEN ALS LOGO: grau, fuellt sich von unten nach oben mit Farbe (Dauer ueber --dur) */
.logo-load { position: relative; width: 4.6rem; aspect-ratio: 897 / 923; margin: 1.4rem auto 0; }
.logo-load i { position: absolute; inset: 0; -webkit-mask: url(logo-load.png) center / contain no-repeat; mask: url(logo-load.png) center / contain no-repeat; }
.logo-load .base { background: rgba(var(--rgb-edge), .3); }
.logo-load .fill { background: linear-gradient(0deg, var(--c-primary), #8d3a47 70%, var(--c-accent)); clip-path: inset(100% 0 0 0); animation: logofill var(--dur, 10s) linear forwards; }
@keyframes logofill { to { clip-path: inset(0 0 0 0); } }
.veil .logo-load { width: 6.5rem; margin: 0; opacity: 0; transform: translateY(8px) scale(.94); transition: opacity .35s ease .05s, transform .5s var(--ease) .05s; }
.veil.on .logo-load { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .logo-load .fill { animation-duration: 10s; } .veil .logo-load { transition: none; } }

/* Auto-Weiterleitung: Logo und Balken zusammen */
.autogo-wrap { margin-top: 1.2rem; }
.autogo-wrap .logo-load { margin-top: 0; }
.autogo-wrap .autogo { margin-top: 1rem; }

/* FUSSZEILE: zwei Linien mit dem Zweig, auf jeder App-Seite */
.foot-orn { max-width: 64rem; margin: 3.4rem auto 1.4rem; padding: 0 1.4rem; position: relative; z-index: 1; }
.fo-hair { display: flex; align-items: center; gap: 1rem; width: min(26rem, 80%); margin: 0 auto; }
.fo-hair::before, .fo-hair::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--c-accent)); }
.fo-hair::after { background: linear-gradient(270deg, transparent, var(--c-accent)); }
.fo-hair img { width: 2rem; height: 2rem; object-fit: contain; opacity: .85; }

/* Fusszeile am Handy: auf der Startseite liegt sie sonst hinter der unteren Leiste */
main.s-fmain .s-body { padding-bottom: 0; }
@media (max-width: 900px) { main.s-cmain .foot-orn { margin-bottom: 6rem; } }

/* APP (direkt gepflegt): Fusszeile auch in Grid-Seiten in voller Breite, damit die Linien sichtbar sind */
.foot-orn { width: 100%; }
/* alles etwas groesser: Grundschrift +6 % (alle rem-Masse wachsen mit) */
html { font-size: 106.25%; }

/* Fusszeile groesser: laengere Linien, groesseres Logo, mehr Luft */
.foot-orn { margin-top: 4.4rem; }
.fo-hair { width: min(38rem, 90%); gap: 1.4rem; }
.fo-hair img { width: 3.4rem; height: 3.4rem; }
.fo-hair::before, .fo-hair::after { height: 1.5px; }

/* Fusszeile naeher an das Seitenende: unten blieb zu viel Leerraum (Innenabstand der Seite plus Rand der Fusszeile) */
.foot-orn { margin-bottom: .8rem; }
@media (min-width: 901px) { main.wrap { padding-bottom: 1rem; } }

/* HANDY: Kopfzeile der Veranstalter-Seiten und Raster-Seiten duerfen nicht ueber den Rand laufen */
@media (max-width: 900px) {
  .appbar { padding-right: .9rem; gap: .8rem; }
  .who { gap: .5rem; }
  .who .role, .who .userchip .nm { display: none; }
  .grid3 > *, .faq-grid > *, .pgrid > *, .inbox > *, .info-grid > *, .ed-grid > *, .home-grid > * { min-width: 0; }
  .tscroll { max-width: 100%; }
}

/* HANDY: Seiten-Raster darf nie breiter als der Bildschirm werden, Tabs scrollen seitlich, Posteingang einspaltig */
@media (max-width: 900px) {
  main.wrap { grid-template-columns: minmax(0, 1fr); }
  .subtabs { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .subtabs::-webkit-scrollbar { display: none; }
  .subtabs a { white-space: nowrap; }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .search { min-width: 0; }
}
.pcol { grid-template-columns: minmax(0, 1fr); }

/* HANDY: Posteingang als Liste ODER Unterhaltung (Zurueck-Pfeil), die Unterhaltung scrollt mit der Seite */
.chat-back { display: none; }
@media (max-width: 900px) {
  .inbox { display: block; }
  .inbox .chatcard { display: none; min-height: 0; }
  body.thread-open .inbox > aside { display: none; }
  body.thread-open .inbox .chatcard { display: flex; }
  .chat-back { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; background: var(--c-surface-soft); cursor: pointer; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .16); }
  .chat-back i { width: .6rem; height: .6rem; margin-left: .22rem; border-left: 2px solid var(--c-heading); border-bottom: 2px solid var(--c-heading); transform: rotate(45deg); }
  .chatcard .thread { max-height: none; overflow: visible; }
  .chat-h { gap: .8rem; padding: 1rem 1.1rem; }
}

/* HANDY: FAQ-Suche in voller Breite */
@media (max-width: 900px) { .tools .search { flex: 1 1 100%; max-width: none !important; height: 3rem; font-size: 1rem; } }

/* HANDY: Chat im Vollbild. Offene Unterhaltung = nur Kopf mit Zurueck-Pfeil, Verlauf und Eingabe, nichts daneben */
@media (max-width: 900px) {
  body.thread-open .head, body.thread-open .bottombar, body.thread-open .foot-orn { display: none; }
  body.thread-open main.wrap { padding: 0 !important; gap: 0; }
  body.thread-open .inbox { margin: 0; }
  body.thread-open .inbox .chatcard { min-height: calc(100vh - 4.2rem); min-height: calc(100dvh - 4.2rem); border-radius: 0; box-shadow: none; background: var(--c-surface); }
  body.thread-open .chat-h { position: sticky; top: 4.2rem; z-index: 5; background: var(--c-surface); }
  body.thread-open .chatcard .thread { flex: 1; padding: 1rem 1.1rem; }
  body.thread-open .chatcard .cmp { position: sticky; bottom: 0; z-index: 5; background: var(--c-surface); padding: .8rem 1rem calc(.9rem + env(safe-area-inset-bottom)); }
}

/* HANDY: Tabellen als Karten (statt acht Spalten seitlich zu scrollen). Wichtiges zuerst: Auswahl, Name, Status; darunter die Einzelheiten mit Beschriftung */
@media (max-width: 700px) {
  .tscroll { overflow: visible; margin: 0; padding: 0; }
  table.rt, table.rt tbody { display: block; min-width: 0; }
  table.rt thead { display: none; }
  table.rt tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; padding: 1rem 1.1rem .9rem; margin: 0 0 .8rem; background: var(--c-field); border-radius: 16px; box-shadow: 0 0 0 1px rgba(var(--rgb-edge), .16); }
  table.rt tbody tr:hover { background: var(--c-field); }
  table.rt td { display: block; padding: 0 !important; border: 0; font-size: .9rem; }
  table.rt td.ckc { order: 0; width: auto; }
  table.rt td.nm { order: 1; flex: 1 1 0; min-width: 0; font-size: 1.05rem; font-weight: 500; color: var(--c-heading); }
  table.rt td.st { order: 2; }
  table.rt td.ml { order: 3; flex: 1 0 100%; font-size: .85rem; }
  table.rt td[data-label] { order: 4; flex: 0 0 auto; }
  table.rt td[data-label]::before { content: attr(data-label) ": "; color: var(--c-text-faint); font-size: .74rem; letter-spacing: .04em; }
  table.rt td.act { order: 5; flex: 1 0 100%; text-align: left !important; padding-top: .3rem !important; }
  table.rt tr.det { padding: .2rem 1.1rem .8rem; background: transparent; box-shadow: none; margin: -.5rem 0 .8rem; }
  table.rt tr.det td { flex: 1 0 100%; }
  table.rt td.emp { flex: 1 0 100%; text-align: center; }
  table.rt tr.sel, table.rt tr.pr.sel, table.rt tr.gr.sel { background: rgba(var(--rgb-primary), .06); }
}

/* HANDY: Speicherleiste mittig, Hinweis ueber den Knoepfen, ueber der unteren Leiste */
@media (max-width: 900px) {
  .savebar { flex-wrap: wrap; justify-content: center; gap: .5rem .6rem; padding: 0 .8rem; }
  .savebar p { flex: 1 0 100%; text-align: center; border-radius: 16px; }
  .savebar .btn-s, .savebar .tbtn { flex: 1 1 0; max-width: 11rem; justify-content: center; }
}
@media (max-width: 700px) {
  table.rt td.nm { flex: 1 1 52%; }
  table.rt tr.sel td:first-child, table.rt tr.selrow td:first-child { box-shadow: none; background: none; }
}

/* Leerzustand */
.empty-note { margin: 0; padding: 1.6rem 1.2rem; text-align: center; font-size: .95rem; line-height: 1.5; color: var(--c-text-faint); border: 1px dashed rgba(var(--rgb-edge), .3); border-radius: 16px; background: rgba(var(--rgb-light), .25); }
.empty-note:only-child { grid-column: 1 / -1; }

/* GALERIEANSICHT: Foto, wer es hochgeladen hat und wann, Download, Blaettern */
.lightbox { padding: 1rem; }
.lbf { margin: 0; display: grid; gap: .9rem; justify-items: center; max-width: min(92vw, 72rem); }
.lbf img { max-width: 100%; max-height: 76vh; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.lbf figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; width: 100%; color: #fbf6ec; }
.lbmeta b { display: block; font-weight: 500; font-size: 1.05rem; }
.lbmeta span { font-size: .88rem; opacity: .8; }
.lbact { display: flex; align-items: center; gap: 1rem; }
.lbc { font-size: .85rem; opacity: .75; }
.lbd { display: inline-flex; align-items: center; height: 2.6rem; padding: 0 1.3rem; font-size: .92rem; font-weight: 500; color: #fbf6ec; text-decoration: none; background: rgba(255, 255, 255, .14); border-radius: 999px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .28); transition: background .2s; }
.lbd:hover { background: rgba(255, 255, 255, .26); }
.lbn { position: absolute; top: 50%; width: 3rem; height: 3rem; margin-top: -1.5rem; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lbn:hover { background: rgba(255, 255, 255, .28); }
.lbn[hidden] { display: none; }
.lbp { left: 1rem; } .lbnx { right: 1rem; }
.lbn i { width: .7rem; height: .7rem; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); margin-left: .25rem; }
.lbnx i { transform: rotate(-135deg); margin-left: -.25rem; }
@media (max-width: 700px) { .lbn { top: auto; bottom: 1rem; margin: 0; width: 2.8rem; height: 2.8rem; } .lbf figcaption { padding-bottom: 3.4rem; } .lbf img { max-height: 66vh; } }

.masonry .empty-note { column-span: all; }

/* Loeschen in der Galerieansicht */
.lbdel { height: 2.6rem; padding: 0 1.2rem; font: inherit; font-size: .92rem; font-weight: 500; color: #fbf6ec; background: none; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 0 1px rgba(255, 255, 255, .28); transition: background .2s; }
.lbdel[hidden] { display: none; }
.lbdel:hover { background: rgba(255, 255, 255, .16); }
.lbdel.ask { background: var(--c-danger); box-shadow: none; }
/* Galerieansicht: Foto mittig, oben mehr Luft (Schliessen-Knopf nicht im Weg) */
.lightbox { padding: 4.5rem 1rem 1.5rem; box-sizing: border-box; align-items: center; justify-content: center; }
.lbf img { max-height: 70vh; }
@media (max-width: 700px) { .lightbox { padding-top: 4rem; } }
/* Handy: Galerieansicht fuellt den ganzen Bildschirm */
@media (max-width: 700px) {
  .lightbox { padding: 0; background: #0d0709; align-items: stretch; }
  .lbf { width: 100%; max-width: none; height: 100%; gap: 0; grid-template-rows: 1fr auto; align-content: stretch; }
  .lbf img { width: 100%; height: 100%; max-height: none; object-fit: contain; border-radius: 0; box-shadow: none; min-height: 0; }
  .lbf figcaption { padding: .8rem 1rem 4.4rem; background: rgba(0, 0, 0, .35); }
  .lbx { top: .8rem; right: .8rem; z-index: 2; background: rgba(0, 0, 0, .45); }
}
.lbx { position: fixed; z-index: 9100; }
@media (max-width: 700px) { .lbx { width: 3rem; height: 3rem; top: .7rem; right: .7rem; font-size: 1.9rem; background: rgba(0, 0, 0, .6); } }
/* Handy: sieben Eintraege passen nebeneinander */
@media (max-width: 700px) { .bottombar { padding-left: .15rem; padding-right: .15rem; } .bottombar a { min-width: 0; font-size: .66rem; letter-spacing: 0; } .bottombar a span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bottombar .ic { width: 1.35rem; height: 1.35rem; } }
/* Mehr-Blatt der unteren Leiste (Handy) */
.more-btn { all: unset; box-sizing: border-box; flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem 0; font-size: .72rem; font-weight: 400; color: var(--muted); cursor: pointer; border-radius: 12px; }
.more-btn.on { color: var(--ink); font-weight: 500; } .more-btn.on .ic { background: var(--gold); }
.more-sheet { position: fixed; inset: 0; z-index: 40; } .more-sheet[hidden] { display: none; }
.ms-back { position: absolute; inset: 0; background: rgba(var(--rgb-deep), .45); }
.ms-card { position: absolute; left: .7rem; right: .7rem; bottom: calc(4.6rem + env(safe-area-inset-bottom)); display: grid; gap: .2rem; padding: .6rem; background: var(--c-surface); border-radius: 20px; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .45); animation: msUp .22s ease; }
.ms-card a { flex: none; flex-direction: row; justify-content: flex-start; gap: .9rem; padding: .85rem 1rem; font-size: 1rem; color: var(--c-text); display: flex; text-decoration: none; border-radius: 14px; }
.ms-card a.on { background: rgba(var(--rgb-primary), .08); color: var(--c-heading); font-weight: 500; }
@keyframes msUp { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 701px) { .more-sheet, .more-btn { display: none; } }
.av-i { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; margin-right: .6rem; vertical-align: middle; font-size: .72rem; font-weight: 500; letter-spacing: .02em; color: var(--c-primary-ink, #6e2530); background: rgba(var(--rgb-primary), .1); border-radius: 50%; }
