/* Work – one stylesheet, no UI library, system fonts (nothing from foreign servers). */
:root {
  --bg: #F1F1F4; --surface: #FFFFFF; --surface2: #F6F6F9; --ink: #15171E; --ink2: #3A3D48; --mut: #6B6F7C; --line: rgba(21, 23, 30, .08);
  --bar: rgba(21, 23, 30, .88); --onbar: #FFFFFF; --onbar2: rgba(255, 255, 255, .64);
  --eb: #3049E0; --gr: #E3B12A; --ok: #1F8A5B; --warn: #B4471D; --accent: #3049E0;
  --sh1: 0 1px 2px rgba(21, 23, 30, .04), 0 2px 8px rgba(21, 23, 30, .04);
  --sh2: 0 2px 6px rgba(21, 23, 30, .06), 0 16px 40px rgba(21, 23, 30, .10);
  --r: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0F13; --surface: #191B22; --surface2: #23262F; --ink: #F3F4F7; --ink2: #D1D3DA; --mut: #9A9FAD; --line: rgba(255, 255, 255, .08);
    --bar: rgba(36, 39, 50, .86); --accent: #8FA0FF; --sh1: 0 1px 0 rgba(255, 255, 255, .03); --sh2: 0 16px 40px rgba(0, 0, 0, .5);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; font-size: 17px; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 18px calc(140px + env(safe-area-inset-bottom)); }
.top { display: flex; justify-content: space-between; align-items: center; min-height: 68px; padding-top: 10px; gap: 10px; }
.zur { display: inline-flex; align-items: center; gap: 4px; padding: 10px 6px 10px 0; min-height: 44px; color: var(--accent); text-decoration: none; }
.ich { margin-left: auto; border-radius: 50%; text-decoration: none; }
.ava { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--eb); color: #fff; font-size: 15px; font-weight: 600; }
.ava.lg { width: 48px; height: 48px; font-size: 18px; }
.ava.xl { width: 76px; height: 76px; font-size: 30px; }
.eyebrow { font-size: 15px; color: var(--mut); margin: 6px 0 0; font-weight: 500; }
h1 { font-size: 34px; font-weight: 700; letter-spacing: -.035em; line-height: 1.06; margin: 2px 0 0; }
h1:focus { outline: none; }
h2 { font-size: 20px; font-weight: 650; letter-spacing: -.02em; margin: 30px 4px 10px; display: flex; justify-content: space-between; align-items: baseline; }
h2 small { font-size: 14px; color: var(--mut); font-weight: 500; letter-spacing: 0; }
.sub { font-size: 14px; color: var(--mut); margin: 10px 4px; line-height: 1.45; }
.abstand { margin-top: 20px; }
.leise { color: var(--mut); }
.klein { font-size: 15px; }
.versteckt { display: none; }
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh1); margin-top: 12px; overflow: hidden; }
.pad { padding: 18px; }
.leer { padding: 28px 18px; text-align: center; color: var(--mut); }
.leer b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; min-height: 64px; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; height: 1px; background: var(--line); }
.row form { margin: 0; display: flex; }
.rt { flex: 1; min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.rt small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--mut); margin-top: 4px; }
.check { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #C4C6CF; background: none; cursor: pointer; padding: 0; transition: transform .12s ease, border-color .15s; }
.check:hover { border-color: var(--accent); }
.check:active { transform: scale(.88); background: var(--ok); border-color: var(--ok); }
.tick { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 14px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--surface2); color: var(--ink2); }
.tag.priv { color: var(--mut); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mut); }
.dot-eb { background: var(--eb); }
.dot-gr { background: var(--gr); }
.link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 62px; text-decoration: none; position: relative; }
.link + .link::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.link .chev { margin-left: auto; color: #B9BBC4; font-size: 22px; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.mehr { display: flex; align-items: center; gap: 8px; padding: 16px 4px; color: var(--mut); font-size: 15px; font-weight: 500; min-height: 48px; }
.mehr::before { content: "›"; font-size: 20px; transition: transform .2s; }
details[open] .mehr::before { transform: rotate(90deg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: var(--surface2); color: var(--ink); border-radius: 999px; padding: 0 18px; min-height: 44px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .1s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; }
.btn.prim { background: var(--ink); color: var(--bg); }
.btn.voll { width: 100%; min-height: 54px; font-size: 17px; border-radius: 16px; }
.btn.warnend { color: var(--warn); background: var(--surface); box-shadow: var(--sh1); }
.feld { display: block; margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--mut); border: 0; padding: 0; }
.feld legend { padding: 0; margin-bottom: 6px; }
.feld input, .feld select, .feld-voll { display: block; width: 100%; margin-top: 6px; font-size: 17px; font-weight: 400; color: var(--ink); background: var(--surface2); border: 1.5px solid transparent; border-radius: 14px; padding: 13px 14px; min-height: 50px; }
.feld input:focus, .feld select:focus { border-color: var(--accent); background: var(--surface); outline: none; }
.zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.chk { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 400; color: var(--ink); min-height: 44px; }
.chk input { width: 22px; height: 22px; accent-color: var(--accent); }
.recht { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; position: relative; }
.recht + .recht::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.recht input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.recht b { display: block; font-weight: 600; font-size: 16px; }
.recht small { font-size: 13px; color: var(--mut); }
.personen { display: flex; gap: 6px; overflow-x: auto; margin: 14px -18px 4px; padding: 4px 18px; scrollbar-width: none; }
.person { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px; text-decoration: none; font-size: 13px; opacity: .55; }
.person.on { opacity: 1; font-weight: 700; }
.kopfzentriert { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 10px; }
.kopfzentriert h1 { margin-top: 12px; }
.hinweis { background: var(--surface); border-radius: 16px; padding: 12px 16px; margin-top: 14px; font-size: 15px; box-shadow: var(--sh1); }
.hinweis.warnung { color: var(--warn); }
.intro { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; }
.intro .lead { font-size: 19px; color: var(--mut); line-height: 1.45; margin: 10px 0 0; max-width: 32ch; }
.bild { width: 92px; height: 92px; border-radius: 28px; display: grid; place-items: center; color: #fff; font-size: 36px; font-weight: 800; margin-bottom: 24px; box-shadow: var(--sh2); }
.bild-ink { background: #15171E; }
.leiste { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; gap: 10px; z-index: 20; }
.pille { display: flex; gap: 2px; background: var(--bar); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border-radius: 999px; padding: 5px; height: 58px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.pille a { display: flex; align-items: center; padding: 0 18px; border-radius: 999px; color: var(--onbar2); text-decoration: none; font-size: 15px; font-weight: 600; }
.pille a.on { background: #fff; color: #15171E; }
.flash { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(92vw, 520px); background: #15171E; color: #fff; border-radius: 18px; padding: 10px 10px 10px 16px; display: flex; align-items: center; gap: 8px; box-shadow: var(--sh2); z-index: 19; animation: rein .35s cubic-bezier(.2, .9, .3, 1.2) both; font-size: 15px; }
.flash span { flex: 1; }
.flash form { margin: 0; }
.flash .btn { background: rgba(255, 255, 255, .14); color: #fff; min-height: 38px; padding: 0 12px; font-size: 14px; }
@keyframes rein { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
[popover].blatt { position: fixed; inset: auto 0 0 0; margin: 0 auto; width: min(100%, 560px); border: 0; border-radius: 28px 28px 0 0; background: var(--surface); color: var(--ink); padding: 10px 18px calc(24px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); }
[popover].blatt::backdrop { background: rgba(10, 11, 15, .38); }
[popover].blatt:popover-open { animation: hoch .38s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes hoch { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.griff { width: 40px; height: 5px; border-radius: 3px; background: #D3D5DC; margin: 4px auto 14px; }
.blatt-titel { margin: 0 0 14px; }
@media (max-width: 370px) { h1 { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (prefers-reduced-transparency: reduce) { .pille { background: #15171E; backdrop-filter: none; -webkit-backdrop-filter: none; } }
