:root {
  --bg: #090d1a; --bg2: #0e1427; --card: #131a31; --card2: #18213d; --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.16);
  --text: #e8ecf8; --muted: #9aa5c4; --acc: #8b5cf6; --acc2: #22d3ee; --ok: #34d399; --warn: #fbbf24; --err: #f87171;
  --r: 16px; --shadow: 0 10px 30px rgba(0,0,0,.35);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); line-height: 1.55; font-size: 16px;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(139,92,246,.18), transparent 60%),
              radial-gradient(900px 500px at -10% 10%, rgba(34,211,238,.10), transparent 60%), var(--bg);
  background-attachment: fixed; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--acc2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: 1.35rem; }
p { margin: 0 0 .8em; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
main { flex: 1; padding: 28px 0 60px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.mt { margin-top: 1.2rem; } .mb { margin-bottom: 1.2rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(9,13,26,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.15rem; color: var(--text); letter-spacing: .3px; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 1.15rem;
  background: linear-gradient(135deg, var(--acc), var(--acc2)); box-shadow: 0 0 18px rgba(139,92,246,.45); }
.logo small { display: block; font-size: .66rem; font-weight: 700; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { color: var(--muted); padding: 8px 11px; border-radius: 10px; font-weight: 650; font-size: .93rem; white-space: nowrap; }
.nav a:hover, .nav a.on { color: var(--text); background: rgba(255,255,255,.06); text-decoration: none; }
.nav a.on { box-shadow: inset 0 -2px 0 var(--acc); }
.user { display: flex; align-items: center; gap: 8px; }
.burger { display: none; background: none; border: 1px solid var(--line2); color: var(--text); border-radius: 10px; width: 42px; height: 40px; font-size: 1.2rem; cursor: pointer; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: #fff;
  background: linear-gradient(135deg, var(--acc), #ec4899); flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.4rem; }
@media (max-width: 1020px) {
  .burger { display: block; margin-left: auto; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 10px 16px 16px;
    background: var(--bg2); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 1rem; }
  .user .hide-m { display: none; }
}

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 11px; font-weight: 750;
  font-size: .93rem; border: 1px solid var(--line2); background: rgba(255,255,255,.05); color: var(--text); cursor: pointer; font-family: inherit;
  text-decoration: none; white-space: nowrap; line-height: 1.2; }
.btn:hover { border-color: var(--acc); text-decoration: none; background: rgba(139,92,246,.12); }
.btn.primary { background: linear-gradient(135deg, var(--acc), #6d28d9); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(139,92,246,.35); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.cyan { background: linear-gradient(135deg, #06b6d4, #0e7490); border-color: transparent; color: #fff; }
.btn.danger { border-color: rgba(248,113,113,.45); color: #fecaca; }
.btn.danger:hover { background: rgba(248,113,113,.14); border-color: var(--err); }
.btn.sm { padding: 5px 10px; font-size: .82rem; border-radius: 9px; }
.btn.lg { padding: 13px 22px; font-size: 1.02rem; border-radius: 13px; }
.btn.block { width: 100%; }
form.inline { display: inline; }
label { display: block; font-weight: 700; font-size: .88rem; margin: 0 0 5px; color: #cfd6ee; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line2); background: rgba(0,0,0,.25); color: var(--text);
  font-family: inherit; font-size: .97rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(139,92,246,.6); outline-offset: 1px; border-color: var(--acc); }
textarea { min-height: 110px; resize: vertical; }
select option { background: var(--bg2); }
.field { margin-bottom: 14px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 500; font-size: .92rem; cursor: pointer; }
.check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--acc); flex: none; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.hp { position: absolute; left: -9999px; }

/* Cards */
.card { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)), var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.card h2 { display: flex; align-items: center; gap: 8px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.narrow { max-width: 520px; margin: 0 auto; }
.mid { max-width: 820px; margin: 0 auto; }

/* Flash */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; border: 1px solid; font-weight: 600; }
.flash.ok { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.4); color: #a7f3d0; }
.flash.error { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.45); color: #fecaca; }
.flash.info { background: rgba(34,211,238,.08); border-color: rgba(34,211,238,.35); color: #a5f3fc; }

/* Hero */
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(26px, 5vw, 52px); margin-bottom: 22px;
  background: linear-gradient(120deg, rgba(139,92,246,.30), rgba(34,211,238,.14) 60%, rgba(236,72,153,.16)), var(--card);
  border: 1px solid var(--line2); box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.hero > * { position: relative; z-index: 1; }
.hero .kicker { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; font-size: .78rem; letter-spacing: 1.6px; text-transform: uppercase;
  color: #ddd6fe; background: rgba(0,0,0,.25); border: 1px solid var(--line2); border-radius: 999px; padding: 5px 12px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); max-width: 760px; }
.hero h1 span { background: linear-gradient(90deg, #c4b5fd, var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #c9d1ea; font-size: 1.08rem; max-width: 680px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-emoji { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); font-size: clamp(60px, 12vw, 140px); opacity: .9;
  filter: drop-shadow(0 10px 30px rgba(139,92,246,.6)); z-index: 1; }
@media (max-width: 760px) { .hero-emoji { display: none; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat b { display: block; font-size: 1.6rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .85rem; font-weight: 600; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-bottom: 22px; }
.quick a { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
  color: var(--text); font-weight: 750; transition: transform .15s, border-color .15s; }
.quick a:hover { transform: translateY(-2px); border-color: var(--acc); text-decoration: none; }
.quick a i { font-style: normal; font-size: 1.5rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(139,92,246,.16); flex: none; }
.quick a small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 750; color: var(--text); }
.datebox { flex: none; width: 54px; text-align: center; border-radius: 12px; background: rgba(139,92,246,.14); border: 1px solid rgba(139,92,246,.35); padding: 5px 0; }
.datebox b { display: block; font-size: 1.25rem; line-height: 1.1; }
.datebox span { font-size: .7rem; text-transform: uppercase; font-weight: 800; color: #c4b5fd; letter-spacing: .5px; }
.empty { color: var(--muted); padding: 18px; text-align: center; border: 1px dashed var(--line2); border-radius: 12px; }

/* Badges */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .2px;
  background: rgba(255,255,255,.08); border: 1px solid var(--line2); color: #dbe1f5; vertical-align: middle; white-space: nowrap; }
.badge.acc { background: rgba(139,92,246,.2); border-color: rgba(139,92,246,.5); color: #ddd6fe; }
.badge.cyan { background: rgba(34,211,238,.14); border-color: rgba(34,211,238,.45); color: #a5f3fc; }
.badge.ok { background: rgba(52,211,153,.14); border-color: rgba(52,211,153,.45); color: #a7f3d0; }
.badge.warn { background: rgba(251,191,36,.14); border-color: rgba(251,191,36,.45); color: #fde68a; }
.badge.err { background: rgba(248,113,113,.14); border-color: rgba(248,113,113,.45); color: #fecaca; }
.role-admin { color: #fca5a5; } .role-lehrer { color: #93c5fd; }

/* Tables */
.tbl-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: 9px 11px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: rgba(255,255,255,.04); font-size: .76rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.02); }
td.nowrap { white-space: nowrap; }
tr.art-Entfall td { background: rgba(248,113,113,.07); }
tr.art-Entfall td.fach { text-decoration: line-through; text-decoration-color: var(--err); }
tr.art-Raumänderung td.raum { color: var(--warn); font-weight: 800; }
tr.mine td:first-child { box-shadow: inset 3px 0 0 var(--acc); }
.art { font-weight: 800; font-size: .8rem; }
.art-Vertretung .art { color: #93c5fd; } .art-Entfall .art { color: var(--err); } .art-Raumänderung .art { color: var(--warn); }
.art-Verlegung .art { color: #c4b5fd; } .art-Info .art { color: var(--acc2); } .art-Betreuung .art { color: var(--ok); }

/* Vertretungsplan / Stundenplan */
.daybar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.dayinfo { background: rgba(251,191,36,.09); border: 1px solid rgba(251,191,36,.35); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.dayinfo p:last-child { margin: 0; }
.sp { width: 100%; border-collapse: separate; border-spacing: 6px; min-width: 720px; }
.sp th { background: none; text-align: center; font-size: .8rem; }
.sp th.today { color: var(--acc2); }
.sp td { border: 0; padding: 0; }
.sp .zeit { width: 70px; text-align: center; color: var(--muted); font-size: .75rem; vertical-align: middle; }
.sp .zeit b { display: block; font-size: 1.05rem; color: var(--text); }
.cell { min-height: 64px; border-radius: 11px; padding: 8px 9px; background: var(--card2); border: 1px solid var(--line); height: 100%; }
.cell.filled { background: linear-gradient(160deg, rgba(139,92,246,.20), rgba(139,92,246,.06)); border-color: rgba(139,92,246,.35); }
.cell.today { outline: 1px solid rgba(34,211,238,.35); }
.cell b { display: block; font-size: .95rem; }
.cell span { display: block; font-size: .76rem; color: var(--muted); }
.cell .chg { margin-top: 4px; font-size: .72rem; font-weight: 800; border-radius: 6px; padding: 2px 6px; display: inline-block; }
.cell .chg.Entfall { background: rgba(248,113,113,.2); color: #fecaca; }
.cell .chg.other { background: rgba(251,191,36,.2); color: #fde68a; }
.sp-edit input { padding: 5px 7px; font-size: .82rem; border-radius: 8px; margin-bottom: 3px; }
.sp-edit td { min-width: 120px; }

/* Posts */
.post { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post .grow { flex: 1; min-width: 0; }
.post h3 { margin: 0 0 3px; font-size: 1.05rem; }
.post h3 a { color: var(--text); }
.meta { color: var(--muted); font-size: .82rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.bubble { flex: none; text-align: center; min-width: 54px; color: var(--muted); font-size: .75rem; }
.bubble b { display: block; color: var(--text); font-size: 1.15rem; }
.comment { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.prose { overflow-wrap: anywhere; }
.prose p { margin: 0 0 .6em; }
.prose ul { margin: .3em 0 .8em 1.2em; padding: 0; }
.prose h2, .prose h3, .prose h4 { margin-top: .8em; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tabs a { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); font-weight: 700; font-size: .87rem; }
.tabs a.on, .tabs a:hover { color: #fff; border-color: var(--acc); background: rgba(139,92,246,.18); text-decoration: none; }

/* Gaming */
.turnier { position: relative; overflow: hidden; }
.turnier .game { font-size: .78rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--acc2); }
.turnier h3 { font-size: 1.2rem; margin: 4px 0 8px; }
.progress { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin: 8px 0 4px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc2)); border-radius: 99px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: .82rem; font-weight: 650; }
.winner { background: linear-gradient(90deg, rgba(251,191,36,.18), transparent); border: 1px solid rgba(251,191,36,.4); border-radius: 10px; padding: 8px 12px; font-weight: 800; color: #fde68a; }

/* Auth */
.auth { max-width: 460px; margin: 10px auto; }
.auth .card { padding: 28px; }
.auth h1 { font-size: 1.7rem; text-align: center; }
.auth .sub { text-align: center; color: var(--muted); margin-bottom: 20px; }
.pwhint { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* Footer */
footer { border-top: 1px solid var(--line); background: rgba(0,0,0,.25); padding: 26px 0; font-size: .9rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); }

/* Admin */
.admin-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.side { position: sticky; top: 84px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.side a { display: flex; gap: 9px; align-items: center; padding: 9px 11px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: .92rem; }
.side a:hover, .side a.on { background: rgba(139,92,246,.16); color: var(--text); text-decoration: none; }
.side .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.side .cnt { margin-left: auto; background: var(--err); color: #fff; border-radius: 99px; font-size: .72rem; padding: 0 7px; }
@media (max-width: 860px) {
  .admin-layout { grid-template-columns: 1fr; }
  .side { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .side a { white-space: nowrap; }
  .side .sep { display: none; }
}
.daypick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.daypick a { padding: 6px 11px; border-radius: 10px; border: 1px solid var(--line2); color: var(--muted); font-size: .84rem; font-weight: 700; }
.daypick a.on { border-color: var(--acc); color: #fff; background: rgba(139,92,246,.2); }
.daypick a:hover { text-decoration: none; border-color: var(--acc); }
.daypick a em { font-style: normal; background: var(--acc); color: #fff; border-radius: 99px; padding: 0 6px; margin-left: 4px; font-size: .72rem; }
details.box { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-top: 12px; }
details.box summary { cursor: pointer; font-weight: 750; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
code { background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 6px; font-size: .88em; }
.err-page { text-align: center; padding: 60px 0; }
.err-page .big { font-size: 4.5rem; font-weight: 900; background: linear-gradient(90deg, var(--acc), var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Vertretungsplan v2 (modern) ===== */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 800;
  border: 1px solid transparent; white-space: nowrap; line-height: 1.3; }
.p-vt { background: rgba(96,165,250,.16); border-color: rgba(96,165,250,.45); color: #bfdbfe; }
.p-ef { background: rgba(248,113,113,.16); border-color: rgba(248,113,113,.5); color: #fecaca; }
.p-rm { background: rgba(251,191,36,.15); border-color: rgba(251,191,36,.5); color: #fde68a; }
.p-vl { background: rgba(167,139,250,.16); border-color: rgba(167,139,250,.5); color: #ddd6fe; }
.p-bt { background: rgba(52,211,153,.14); border-color: rgba(52,211,153,.45); color: #a7f3d0; }
.p-in { background: rgba(34,211,238,.13); border-color: rgba(34,211,238,.45); color: #a5f3fc; }
.p-live { background: rgba(34,211,238,.15); border-color: rgba(34,211,238,.5); color: #a5f3fc; font-size: .72rem; vertical-align: middle; }

.vp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.vp-head h1 { margin: 2px 0 4px; font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
.vp-kicker { font-size: .78rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: #c4b5fd; }

.daytabs { display: flex; gap: 8px; align-items: stretch; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 8px; scrollbar-width: thin; }
.dt { flex: 1 0 86px; display: grid; justify-items: center; gap: 1px; padding: 10px 8px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line); color: var(--text); text-decoration: none; position: relative; transition: transform .15s, border-color .15s; }
.dt:hover { transform: translateY(-2px); border-color: var(--acc); text-decoration: none; }
.dt small { font-size: .72rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.dt b { font-size: 1.12rem; }
.dt.today small { color: var(--acc2); }
.dt.on { background: linear-gradient(150deg, rgba(139,92,246,.42), rgba(34,211,238,.18)); border-color: rgba(167,139,250,.8);
  box-shadow: 0 8px 24px rgba(139,92,246,.3); }
.dt.on small { color: #ede9fe; }
.dt-c { margin-top: 3px; min-width: 24px; padding: 1px 8px; border-radius: 99px; font-size: .74rem; font-weight: 900; background: var(--err); color: #fff; text-align: center; }
.dt-c.z { background: rgba(52,211,153,.18); color: #6ee7b7; }
.dt-arrow { flex: 0 0 42px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 1.6rem; font-weight: 300; }
.dt-arrow:hover { color: var(--text); border-color: var(--acc); text-decoration: none; }

.vp-banner { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(90deg, rgba(251,191,36,.16), rgba(251,191,36,.04)); border: 1px solid rgba(251,191,36,.45); }
.vp-banner > span { font-size: 1.3rem; line-height: 1.3; }
.vp-banner .prose p:last-child { margin: 0; }
.vp-tip { display: flex; gap: 10px; padding: 12px 15px; border-radius: 14px; margin-bottom: 14px; background: rgba(34,211,238,.07); border: 1px solid rgba(34,211,238,.3); }

.vp-layout { display: grid; gap: 20px; align-items: start; }
.vp-layout.has-my { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
.vp-layout.has-my aside { position: sticky; top: 84px; }
@media (max-width: 920px) { .vp-layout.has-my { grid-template-columns: 1fr; } .vp-layout.has-my aside { position: static; } }

.kchips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.kc { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card);
  color: var(--text); font-weight: 800; font-size: .9rem; text-decoration: none; }
.kc em { font-style: normal; font-size: .72rem; background: var(--err); color: #fff; border-radius: 99px; padding: 0 7px; }
.kc.z { color: var(--muted); opacity: .65; }
.kc.mine { border-color: rgba(34,211,238,.6); }
.kc:hover { border-color: var(--acc); text-decoration: none; opacity: 1; }
.kc.on { background: linear-gradient(135deg, var(--acc), #6d28d9); border-color: transparent; color: #fff; opacity: 1; }
.kc.on em { background: rgba(255,255,255,.25); }

.kgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); align-items: start; }
.kcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.kcard header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: linear-gradient(90deg, rgba(139,92,246,.22), rgba(139,92,246,.03));
  border-bottom: 1px solid var(--line); }
.kcard.mine { border-color: rgba(34,211,238,.6); box-shadow: 0 0 0 1px rgba(34,211,238,.25), var(--shadow); }
.kcard.mine header { background: linear-gradient(90deg, rgba(34,211,238,.25), rgba(34,211,238,.03)); }
.kcard.allk header { background: linear-gradient(90deg, rgba(251,191,36,.2), rgba(251,191,36,.03)); }
.kname { font-size: 1.45rem; font-weight: 900; letter-spacing: .3px; }
.kcount { margin-left: auto; min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 99px; background: rgba(255,255,255,.1); font-weight: 900; font-size: .85rem; }
.kbody { padding: 8px; display: grid; gap: 8px; }

.vpi { display: flex; gap: 12px; padding: 11px 12px; border-radius: 13px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-left: 4px solid #60a5fa; }
.vpi.s-ef { border-left-color: var(--err); background: rgba(248,113,113,.06); }
.vpi.s-rm { border-left-color: var(--warn); }
.vpi.s-vl { border-left-color: #a78bfa; }
.vpi.s-bt { border-left-color: var(--ok); }
.vpi.s-in { border-left-color: var(--acc2); }
.vpi-st { flex: none; width: 58px; text-align: center; display: grid; align-content: start; }
.vpi-st b { font-size: 1.35rem; line-height: 1.1; font-weight: 900; }
.vpi-st small { font-size: .66rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 800; }
.vpi-st em { font-style: normal; font-size: .66rem; color: var(--muted); margin-top: 3px; line-height: 1.25; }
.vpi-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.vpi-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; }
.vpi-fach { font-size: 1.06rem; }
.s-ef .vpi-fach { text-decoration: line-through; text-decoration-color: var(--err); text-decoration-thickness: 2px; color: #fca5a5; }
.vpi-who { font-size: .9rem; color: #cfd6ee; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.vpi-who s { color: var(--muted); }
.vpi-raum { color: var(--muted); }
.vpi-raum.hl { color: #fde68a; font-weight: 800; }
.vpi-info { font-size: .84rem; color: var(--muted); }
.vpi-wrap { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
.vpi-wrap .kc { padding: 5px 9px; font-size: .82rem; }

.vp-empty { text-align: center; padding: 44px 20px; border: 1px dashed var(--line2); border-radius: 18px; background: rgba(52,211,153,.04); }
.vp-empty .big { font-size: 3rem; }
.legend { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 18px; }

/* Mein Tag (Zeitleiste) */
.myday-card { border-color: rgba(34,211,238,.4); background: linear-gradient(180deg, rgba(34,211,238,.08), transparent 40%), var(--card); }
.myday-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.myday-k { font-size: 1.6rem; font-weight: 900; line-height: 1.1; }
.myday-sum { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; font-size: .9rem; }
.myday-sum.ok { color: #a7f3d0; }
.myday-time { text-align: right; flex: none; display: grid; }
.myday-time small { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }
.myday-time b { font-size: 1.02rem; }
.tl { display: grid; gap: 0; }
.tl-row { display: grid; grid-template-columns: 46px 16px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.tl-time { text-align: right; padding-top: 9px; }
.tl-time b { display: block; font-size: 1rem; }
.tl-time small { font-size: .7rem; color: var(--muted); }
.tl-dot { position: relative; }
.tl-dot::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--line2); }
.tl-row:first-child .tl-dot::before { top: 16px; }
.tl-row:last-child .tl-dot::before { bottom: calc(100% - 16px); }
.tl-dot::after { content: ""; position: absolute; left: 2px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: #64748b; border: 2px solid var(--card); }
.tl-row.s-vt .tl-dot::after { background: #60a5fa; } .tl-row.s-ef .tl-dot::after { background: var(--err); }
.tl-row.s-rm .tl-dot::after { background: var(--warn); } .tl-row.s-vl .tl-dot::after { background: #a78bfa; }
.tl-row.s-bt .tl-dot::after { background: var(--ok); } .tl-row.s-in .tl-dot::after { background: var(--acc2); }
.tl-card { margin: 4px 0; padding: 8px 11px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.tl-row.s-vt .tl-card { background: rgba(96,165,250,.09); border-color: rgba(96,165,250,.35); }
.tl-row.s-ef .tl-card { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.38); }
.tl-row.s-rm .tl-card { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.38); }
.tl-row.s-vl .tl-card, .tl-row.s-bt .tl-card, .tl-row.s-in .tl-card { background: rgba(167,139,250,.08); border-color: rgba(167,139,250,.35); }
.tl-main { display: flex; flex-wrap: wrap; gap: 4px 9px; align-items: center; }
.tl-fach { font-size: 1rem; }
.tl-row.s-ef .tl-fach { text-decoration: line-through; text-decoration-color: var(--err); text-decoration-thickness: 2px; color: #fca5a5; }
.tl-meta { font-size: .82rem; color: var(--muted); }
.tl-main .pill { margin-left: auto; }
.tl-chg { font-size: .84rem; color: #e2e8f0; margin-top: 3px; }
.tl.compact .tl-card { padding: 6px 10px; }

/* ===== Vertretungsplan v3 (ruhig & uebersichtlich) ===== */
.v3 { max-width: 1000px; margin: 0 auto; }
.v3-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.v3-head h1 { margin: 0; font-size: clamp(1.6rem, 3.5vw, 2rem); }
.v3-date { margin: 2px 0 0; color: var(--muted); font-size: 1.05rem; font-weight: 600; }
.v3-today { color: var(--acc2); }
.v3-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: thin; }
.v3-days a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line2);
  color: var(--muted); font-weight: 700; font-size: .92rem; text-decoration: none; background: var(--card); }
.v3-days a:hover { color: var(--text); border-color: rgba(255,255,255,.3); text-decoration: none; }
.v3-days a.on { background: var(--text); color: #0b1020; border-color: var(--text); }
.v3-days i { font-style: normal; font-size: .75rem; font-weight: 800; padding: 0 7px; border-radius: 99px; background: rgba(248,113,113,.2); color: #fca5a5; }
.v3-days a.on i { background: #ef4444; color: #fff; }
.v3-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.v3-filter label { margin: 0; color: var(--muted); font-weight: 700; }
.v3-filter select { width: auto; min-width: 210px; padding: 8px 12px; font-weight: 700; }
.v3-link { font-size: .9rem; font-weight: 600; }
.v3-note { padding: 11px 14px; border-radius: 10px; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3); margin-bottom: 14px; color: #fde68a; }
.v3-note .prose, .v3-note .prose p { display: inline; margin: 0; color: var(--text); }
.v3-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 11px 14px; border-radius: 10px; margin-bottom: 14px;
  background: var(--card); border: 1px solid var(--line); }
.v3-sum-time { margin-left: auto; color: var(--muted); font-size: .92rem; }
.t-ef { color: #fca5a5; font-weight: 700; } .t-vt { color: #93c5fd; font-weight: 700; } .t-rm { color: #fcd34d; font-weight: 700; }

.v3-list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.v3-cols, .v3-row { display: grid; grid-template-columns: 74px minmax(90px, 1fr) 130px minmax(110px, 1.2fr) 80px minmax(120px, 1.6fr); gap: 0 14px; padding: 0 18px; }
.v3-cols { padding-top: 10px; padding-bottom: 10px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--muted);
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.v3-group + .v3-group { border-top: 6px solid var(--bg); }
.v3-group h2 { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 14px 18px 8px; font-size: 1.3rem; }
.v3-group h2 small { font-size: .82rem; font-weight: 600; color: var(--muted); }
.v3-group.mine h2::after { content: "meine Klasse"; font-size: .72rem; font-weight: 800; color: var(--acc2); border: 1px solid rgba(34,211,238,.45); border-radius: 99px; padding: 1px 8px; }
.v3-row { align-items: center; padding-top: 11px; padding-bottom: 11px; border-top: 1px solid var(--line); position: relative; }
.v3-row::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #60a5fa; }
.v3-row.s-ef::before { background: #f87171; } .v3-row.s-rm::before { background: #fbbf24; } .v3-row.s-vl::before { background: #a78bfa; }
.v3-row.s-bt::before { background: #34d399; } .v3-row.s-in::before { background: #22d3ee; }
.c-std b { font-size: 1.05rem; }
.c-std small { display: block; font-size: .72rem; color: var(--muted); }
.c-fach { font-weight: 700; }
.s-ef .c-fach { text-decoration: line-through; color: var(--muted); }
.c-art { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: .9rem; }
.c-art i { width: 8px; height: 8px; border-radius: 50%; background: #60a5fa; flex: none; }
.s-ef .c-art { color: #fca5a5; } .s-ef .c-art i { background: #f87171; }
.s-rm .c-art { color: #fcd34d; } .s-rm .c-art i { background: #fbbf24; }
.s-vt .c-art { color: #93c5fd; }
.s-vl .c-art i { background: #a78bfa; } .s-bt .c-art i { background: #34d399; } .s-in .c-art i { background: #22d3ee; }
.s-rm .c-raum { color: #fcd34d; font-weight: 800; }
.c-info { color: var(--muted); font-size: .9rem; }
.v3-empty { text-align: center; padding: 40px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.v3-empty b { font-size: 1.2rem; }
.v3-empty p { color: var(--muted); margin: 6px 0 0; }
.v3-foot { margin-top: 12px; color: var(--muted); font-size: .82rem; }
@media (max-width: 760px) {
  .v3-cols { display: none; }
  .v3-row { grid-template-columns: 56px 1fr auto; grid-template-areas: "std fach art" "std who raum" "std info info"; gap: 2px 10px; padding: 11px 14px; }
  .c-std { grid-area: std; } .c-fach { grid-area: fach; } .c-art { grid-area: art; justify-self: end; font-size: .84rem; }
  .c-who { grid-area: who; font-size: .92rem; } .c-raum { grid-area: raum; justify-self: end; font-size: .92rem; } .c-info { grid-area: info; font-size: .86rem; }
  .c-info:empty { display: none; }
  .v3-group h2 { padding: 12px 14px 6px; }
  .v3-sum-time { margin-left: 0; width: 100%; }
  .v3-filter select { min-width: 0; flex: 1; }
}

/* v3.1: Beschriftung ueber jedem Wert */
.v3-row { align-items: start; }
.v3-row .lbl { display: block; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; color: #7f8bb0;
  margin-bottom: 2px; text-decoration: none; white-space: nowrap; }
.c-art { display: block; }
.c-art > span { display: inline-flex; align-items: center; gap: 7px; }
.c-std small:not(.lbl) { display: block; font-size: .72rem; color: var(--muted); }
.s-ef .c-fach { text-decoration: none; }
.s-ef .c-fach { color: var(--muted); }
.s-ef .c-fach::after { content: ""; }
.c-fach { font-size: 1.02rem; }
.c-who b { font-size: 1.02rem; }
.c-info:empty { display: none; }
@media (max-width: 760px) {
  .v3-row { grid-template-columns: 62px 1fr 1fr; grid-template-areas: "std fach art" "std who raum" "std info info"; gap: 10px 12px; padding: 13px 14px; }
  .c-art, .c-raum { justify-self: start; }
}
.s-ef .c-fach .val { text-decoration: line-through; text-decoration-color: #f87171; text-decoration-thickness: 2px; }

/* v3.2: ohne Lehrer-Spalte, neues Fach, Klassen-Auswahl im Admin */
.v3-row { grid-template-columns: 74px minmax(130px, 1.2fr) minmax(130px, 1fr) 90px minmax(140px, 1.6fr); }
.c-fach .old { color: var(--muted); text-decoration: line-through; }
.c-fach .neu { color: #c4b5fd; font-size: 1.02rem; }
.c-art .who { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
@media (max-width: 760px) {
  .v3-row { grid-template-columns: 62px 1fr 1fr; grid-template-areas: "std fach art" "std raum info"; }
  .c-info { grid-area: info; }
}
.kpick { display: flex; flex-wrap: wrap; gap: 7px; }
.kp { margin: 0; cursor: pointer; }
.kp input { position: absolute; opacity: 0; pointer-events: none; }
.kp span { display: inline-block; min-width: 52px; text-align: center; padding: 8px 13px; border-radius: 11px; border: 1px solid var(--line2);
  background: rgba(0,0,0,.2); font-weight: 800; color: var(--muted); transition: all .12s; user-select: none; }
.kp:hover span { border-color: var(--acc); color: var(--text); }
.kp input:checked + span { background: linear-gradient(135deg, var(--acc), #6d28d9); border-color: transparent; color: #fff; }
.kp input:focus-visible + span { outline: 2px solid var(--acc2); outline-offset: 2px; }
.kp-all input:checked + span { background: linear-gradient(135deg, #f59e0b, #b45309); }

/* v4: Aushang-Stil wie der Schul-Vertretungsplan */
.sp-paper { background: #fff; color: #0b2a5b; border-radius: 12px; padding: 22px 22px 18px; box-shadow: var(--shadow); font-family: Arial, Helvetica, sans-serif; overflow-x: auto; }
.sp-title { color: #e10600; font-size: clamp(1.25rem, 3.4vw, 1.9rem); font-weight: 800; margin: 0 0 16px; font-family: Arial, Helvetica, sans-serif; }
.sp-tbl { border-collapse: collapse; border: 3px solid #000; min-width: 0; width: auto; max-width: 100%; font-size: clamp(1rem, 2.4vw, 1.3rem); }
.sp-tbl th, .sp-tbl td { border: 3px solid #000; padding: 6px 14px; color: #0b2a5b; font-weight: 700; text-align: left; vertical-align: top;
  background: #fff; text-transform: none; letter-spacing: 0; white-space: nowrap; font-size: inherit; }
.sp-tbl thead th { background: #d9d9d9; }
.sp-tbl .sp-cap { font-weight: 400; font-size: 1.15em; padding: 8px 18px 26px; }
.sp-tbl .sp-k { background: #d9d9d9; min-width: 120px; }
.sp-tbl tbody td { border-top-width: 1px; border-bottom-width: 1px; }
.sp-tbl tbody tr:first-child td { border-top-width: 3px; }
.sp-tbl tbody tr:last-child td { border-bottom-width: 3px; }
.sp-tbl tbody tr:hover td { background: #fff; }
.sp-tbl tbody.mine .sp-k { background: #bfe3ff; }
.sp-tbl tbody.mine td { background: #f1f8ff; }
.sp-tbl tr.ef td { color: #b00000; }
.sp-tbl s { color: #6b7280; }
.sp-tag { display: inline-block; font-size: .7em; font-weight: 800; color: #b00000; border: 1.5px solid currentColor; border-radius: 4px; padding: 0 4px; vertical-align: middle; }
.sp-old { font-size: .7em; color: #6b7280; font-weight: 600; }
.sp-info { white-space: normal !important; font-weight: 600 !important; font-size: .8em !important; max-width: 280px; }
.sp-none { text-align: center !important; color: #2f6b2f !important; padding: 18px !important; }
.sp-note { margin-top: 14px; padding: 10px 14px; border: 2px solid #000; background: #fff8d6; color: #0b2a5b; font-weight: 600; max-width: 640px; }
.sp-note p { margin: 0; }
@media (max-width: 560px) {
  .sp-paper { padding: 14px 10px; border-radius: 8px; }
  .sp-tbl th, .sp-tbl td { padding: 5px 8px; border-width: 2px; }
  .sp-tbl .sp-k { min-width: 70px; }
}

/* ===== v5: schoen & uebersichtlich (Aufbau wie Schul-Aushang) ===== */
.v5 { max-width: 980px; margin: 0 auto; }
.v5-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.v5-top h1 { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2rem); }
.v5-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.v5-days { display: flex; gap: 6px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.v5-days::-webkit-scrollbar { display: none; }
.v5-days a { position: relative; flex: none; display: grid; justify-items: center; min-width: 66px; padding: 7px 12px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line2); color: var(--muted); text-decoration: none; line-height: 1.2; }
.v5-days a small { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.v5-days a b { font-size: .98rem; color: var(--text); }
.v5-days a:hover { border-color: rgba(255,255,255,.35); text-decoration: none; }
.v5-days a.on { background: #fff; border-color: #fff; }
.v5-days a.on small { color: #1e3a8a; } .v5-days a.on b { color: #0b2a5b; }
.v5-days a i { position: absolute; top: -7px; right: -6px; font-style: normal; font-size: .7rem; font-weight: 900; min-width: 20px; height: 20px;
  display: grid; place-items: center; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff; border: 2px solid var(--bg); }
.v5-filter select { width: auto; min-width: 190px; font-weight: 700; padding: 9px 12px; }

.v5-card { background: #fff; color: #0f1f3d; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.v5-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px;
  background: linear-gradient(120deg, #0b2a5b, #1e40af 70%, #2563eb); color: #fff; }
.v5-head h2 { margin: 6px 0 2px; font-size: clamp(1.3rem, 3.4vw, 1.75rem); color: #fff; }
.v5-head p { margin: 0; color: #bfdbfe; font-weight: 600; font-size: .95rem; }
.v5-week { display: inline-block; background: #ef4444; color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .5px; padding: 3px 10px; border-radius: 99px; }
.v5-today { font-size: .75rem; font-weight: 800; vertical-align: middle; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); padding: 2px 8px; border-radius: 99px; }
.v5-count { text-align: center; flex: none; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 8px 14px; }
.v5-count b { display: block; font-size: 1.7rem; line-height: 1; }
.v5-count span { font-size: .72rem; font-weight: 700; color: #dbeafe; }
.v5-note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 18px 0; padding: 11px 14px; border-radius: 12px; background: #fef9c3; border: 1px solid #facc15; color: #713f12; font-weight: 600; }
.v5-note p { margin: 0; }
.v5-scroll { overflow-x: auto; }
.v5-tbl { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 0; }
.v5-tbl thead th { background: #f1f5f9; color: #475569; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px;
  padding: 11px 16px; text-align: left; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.v5-tbl td, .v5-tbl tbody th { padding: 12px 16px; border-bottom: 1px solid #e9eef5; color: #0f1f3d; text-align: left; vertical-align: middle; background: #fff; }
.v5-tbl tbody { border-top: 2px solid #cbd5e1; }
.v5-tbl tbody:first-of-type { border-top: 0; }
.v5-tbl tbody tr:hover td { background: #f8fafc; }
.v5-k { width: 1%; white-space: nowrap; background: #f8fafc !important; border-right: 1px solid #e2e8f0; vertical-align: top !important; }
.v5-k .kb { display: inline-block; min-width: 46px; text-align: center; background: #0b2a5b; color: #fff; font-weight: 800; font-size: 1rem; padding: 5px 11px; border-radius: 10px; }
.v5-k small { display: block; margin-top: 5px; font-size: .68rem; font-weight: 800; color: #0891b2; text-transform: uppercase; letter-spacing: .4px; }
.v5-st { white-space: nowrap; width: 1%; }
.v5-st b { font-size: 1rem; color: #0b2a5b; }
.v5-st small { display: block; font-size: .74rem; color: #64748b; font-weight: 600; }
.v5-f b { font-size: 1.05rem; color: #0b2a5b; }
.v5-f .old { color: #64748b; font-size: .8rem; }
.v5-f s { color: #94a3b8; }
.room { display: inline-block; font-weight: 800; color: #1e40af; background: #dbeafe; border-radius: 8px; padding: 3px 10px; font-size: .95rem; }
.dash { color: #94a3b8; }
.tag { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 2px 7px; border-radius: 6px; background: #e0e7ff; color: #3730a3; vertical-align: middle; }
.tag.red { background: #fee2e2; color: #b91c1c; }
.v5-tbl tr.ef td { background: #fff5f5; }
.v5-i { color: #475569; font-size: .9rem; }
.v5-tbl tbody.mine .v5-k { background: #ecfeff !important; box-shadow: inset 4px 0 0 #06b6d4; }
.v5-tbl tbody.mine td { background: #f5fdff; }
.v5-empty { text-align: center; padding: 46px 20px; color: #0f1f3d; }
.v5-empty div { font-size: 2.6rem; }
.v5-empty b { font-size: 1.25rem; }
.v5-empty p { color: #64748b; margin: 6px 0 0; }
.v5-foot { padding: 12px 20px; font-size: .8rem; color: #64748b; background: #f8fafc; border-top: 1px solid #e2e8f0; }
@media (max-width: 600px) {
  .v5-bar { flex-direction: column; align-items: stretch; }
  .v5-filter select { width: 100%; }
  .v5-head { padding: 16px; }
  .v5-tbl td, .v5-tbl tbody th { padding: 10px 9px; }
  .v5-tbl thead th { padding: 9px; }
  .v5-k .kb { min-width: 0; padding: 4px 8px; font-size: .9rem; }
  .v5-st small { display: none; }
}
.v5-tbl tbody th.v5-k { text-transform: none; letter-spacing: 0; font-size: 1rem; }

/* ===== v6: Schulwochen-Leiste (modern) ===== */
.wk { background: linear-gradient(150deg, rgba(139,92,246,.18), rgba(34,211,238,.08)), var(--card); border: 1px solid var(--line2);
  border-radius: 20px; padding: 14px; margin-bottom: 16px; box-shadow: var(--shadow); }
.wk-head { display: flex; align-items: center; gap: 10px; }
.wk-title { flex: 1; text-align: center; display: grid; line-height: 1.25; }
.wk-title b { font-size: clamp(1.25rem, 3.2vw, 1.6rem); font-weight: 900; letter-spacing: .2px;
  background: linear-gradient(90deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wk-title span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.wk-arrow { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font-size: 1.6rem; line-height: 1;
  color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line2); text-decoration: none; }
.wk-arrow:hover { background: rgba(139,92,246,.25); border-color: var(--acc); text-decoration: none; }
.wk-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.wk-days a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 4px 9px; border-radius: 14px; text-decoration: none;
  background: rgba(0,0,0,.22); border: 1px solid var(--line); color: var(--text); transition: transform .15s, background .15s; }
.wk-days a:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.3); text-decoration: none; }
.wk-days small { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.wk-days b { font-size: 1.3rem; font-weight: 900; line-height: 1.1; }
.wk-days i { font-style: normal; min-width: 22px; padding: 0 7px; border-radius: 99px; background: #ef4444; color: #fff; font-size: .74rem; font-weight: 900; text-align: center; }
.wk-days em { font-style: normal; font-size: .72rem; font-weight: 800; color: var(--muted); }
.wk-days em.ok { color: #34d399; }
.wk-days a.today small { color: var(--acc2); }
.wk-days a.today::after { content: ""; position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--acc2); box-shadow: 0 0 8px var(--acc2); }
.wk-days a.on { background: #fff; border-color: #fff; color: #0b2a5b; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.wk-days a.on small { color: #1e40af; }
.wk-days a.fer { opacity: .55; background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 6px, transparent 6px 12px); }
.wk-days a.fer.on { opacity: 1; }
.wk-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.wk-foot:empty { display: none; }
.wk-pill { display: inline-flex; gap: 5px; align-items: center; font-size: .84rem; font-weight: 700; padding: 5px 12px; border-radius: 99px;
  background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.4); color: #a7f3d0; }
.wk-pill.fer { background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.45); color: #fde68a; }
.wk-pill.link { background: rgba(255,255,255,.06); border-color: var(--line2); color: var(--text); text-decoration: none; }
.wk-pill.link:hover { border-color: var(--acc); text-decoration: none; }
.v5-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.v5-chip { display: inline-block; font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #e0e7ff; }
@media (max-width: 520px) {
  .wk { padding: 10px; border-radius: 16px; }
  .wk-days { gap: 5px; }
  .wk-days a { padding: 8px 2px 7px; border-radius: 11px; }
  .wk-days b { font-size: 1.1rem; }
  .wk-arrow { width: 38px; height: 38px; }
}

/* ===== Stundenplan v2: dunkel, Fachfarben, klare Aenderungen ===== */
.spx { max-width: 1180px; margin: 0 auto; }
.spx-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.spx-top h1 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: clamp(1.5rem, 3.4vw, 2rem); }
.spx-k { font-size: .8em; padding: 2px 12px; border-radius: 10px; background: #0b2a5b; border: 1px solid #1e40af; color: #fff; }
.spx-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px;
  background: #0a0f1e; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 10px 12px; }
.spx-week { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spx-wt { display: grid; line-height: 1.2; min-width: 170px; text-align: center; }
.spx-wt b { font-size: 1.15rem; }
.spx-wt span { color: var(--muted); font-size: .82rem; }
.spx-sel select { width: auto; min-width: 170px; background: #0d1426; font-weight: 700; }

.spx-grid-wrap { background: #070b16; border: 1px solid rgba(255,255,255,.07); border-radius: 18px; padding: 10px 12px 12px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.spx-grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 6px; }
.spx-grid col.c-z { width: 62px; }
.spx-grid th, .spx-grid td { border: 0; padding: 0; background: none; vertical-align: top; }
.spx-grid tbody tr:hover td { background: none; }
.spx-grid thead th { text-align: center; padding: 6px 0 8px; text-transform: none; letter-spacing: 0; }
.spx-grid thead th span { display: block; color: #e2e8f0; font-size: .92rem; font-weight: 800; }
.spx-grid thead th small { color: #64748b; font-size: .74rem; font-weight: 600; }
.spx-grid thead th.today span { color: var(--acc2); }
.spx-grid thead th.today { box-shadow: inset 0 -2px 0 var(--acc2); }
.spx-grid thead th.fer span { color: #64748b; }
.spx-z { text-align: center; vertical-align: middle !important; color: #64748b; padding-top: 6px !important; }
.spx-z b { display: block; color: #cbd5e1; font-size: 1.05rem; }
.spx-z small { font-size: .7rem; }
.spx-grid td.today .les:not(.free) { box-shadow: 0 0 0 1px rgba(34,211,238,.25); }
.les { position: relative; min-height: 64px; height: 100%; border-radius: 12px; padding: 8px 10px 8px 13px; background: #101729;
  border: 1px solid rgba(255,255,255,.06); overflow: hidden; }
.les::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--fc); }
.les-f { font-weight: 800; font-size: .98rem; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.les-m { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 2px; font-size: .76rem; color: #8b98b8; }
.les-m .r { color: #a5b4cf; font-weight: 700; }
.les-m .old { color: #64748b; text-decoration: line-through; }
.room-new { color: #fcd34d; font-weight: 800; }
.les-i { margin-top: 4px; font-size: .72rem; color: #94a3b8; }
.badge-x { display: inline-block; margin-top: 5px; font-size: .64rem; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; padding: 2px 6px;
  border-radius: 5px; background: rgba(251,191,36,.16); color: #fcd34d; border: 1px solid rgba(251,191,36,.35); }
.badge-x.red { background: rgba(248,113,113,.16); color: #fca5a5; border-color: rgba(248,113,113,.4); }
.les.chg { background: linear-gradient(160deg, rgba(251,191,36,.10), #101729 60%); border-color: rgba(251,191,36,.35); }
.les.ef { background: linear-gradient(160deg, rgba(248,113,113,.12), #110e18 60%); border-color: rgba(248,113,113,.35); }
.les.ef::before { background: #ef4444; }
.les.ef .les-f s { color: #fca5a5; text-decoration-thickness: 2px; }
.les.free { background: transparent; border: 1px dashed rgba(255,255,255,.06); }
.les.free::before { display: none; }
.les.free.fer { background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 6px, transparent 6px 12px); }
.frei { color: #334155; font-size: .76rem; font-weight: 700; }
.spx-grid tr.pause td { padding: 0; }
.spx-grid tr.pause td span { display: block; text-align: center; font-size: .66rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: #475569; border-top: 1px dashed rgba(255,255,255,.08); padding-top: 3px; }
.spx-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted); font-size: .82rem; margin-top: 12px; }
.spx-legend .lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; margin-right: -8px; }
.spx-legend .lg.chg { background: rgba(251,191,36,.35); } .spx-legend .lg.ef { background: rgba(248,113,113,.45); } .spx-legend .lg.free { border: 1px dashed rgba(255,255,255,.3); }

.spx-days { display: none; }
@media (max-width: 760px) {
  .spx-grid-wrap { display: none; }
  .spx-days { display: grid; gap: 10px; }
  .spx-bar { flex-direction: column; align-items: stretch; }
  .spx-week { justify-content: space-between; }
  .spx-sel select { width: 100%; }
  .spx-day { background: #070b16; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 4px 10px 10px; }
  .spx-day.today { border-color: rgba(34,211,238,.45); }
  .spx-day summary { display: flex; align-items: center; gap: 8px; padding: 10px 2px; cursor: pointer; list-style: none; }
  .spx-day summary::-webkit-details-marker { display: none; }
  .spx-day summary b { font-size: 1.05rem; }
  .spx-day summary span { color: var(--muted); font-size: .85rem; }
  .spx-day summary em { font-style: normal; font-size: .7rem; font-weight: 800; color: var(--acc2); border: 1px solid rgba(34,211,238,.45); border-radius: 99px; padding: 0 7px; }
  .spx-day summary i { margin-left: auto; font-style: normal; font-size: .74rem; font-weight: 800; color: #fcd34d; }
  .spx-day summary i.fer { color: #94a3b8; }
  .spx-row { display: grid; grid-template-columns: 46px 1fr; gap: 8px; margin-bottom: 6px; }
  .spx-row .les { min-height: 0; }
}

/* ===== Vertretungsplan dunkel (ersetzt das weisse Blatt) ===== */
.v5-card { background: #070b16; color: #e2e8f0; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.v5-head { background: linear-gradient(120deg, #0a1633, #12245a 65%, #1b3a8a); border-bottom: 1px solid rgba(255,255,255,.08); }
.v5-head p { color: #93a4c8; }
.v5-count { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.v5-note { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.35); color: #fde68a; }
.v5-note .prose, .v5-note .prose p { color: #fef3c7; }
.v5-tbl thead th { background: #0b1122; color: #7f8bb0; border-bottom: 1px solid rgba(255,255,255,.08); }
.v5-tbl td, .v5-tbl tbody th { background: #0b1020; color: #e2e8f0; border-bottom: 1px solid rgba(255,255,255,.06); }
.v5-tbl tbody { border-top: 2px solid rgba(255,255,255,.10); }
.v5-tbl tbody tr:hover td { background: #101830; }
.v5-k { background: #0a0f1d !important; border-right: 1px solid rgba(255,255,255,.07); }
.v5-k .kb { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.35); }
.v5-k small { color: #22d3ee; }
.v5-st b { color: #f1f5f9; }
.v5-st small { color: #64748b; }
.v5-f b { color: #f8fafc; }
.v5-f .old { color: #64748b; }
.v5-f s { color: #64748b; }
.room { background: rgba(59,130,246,.16); color: #93c5fd; border: 1px solid rgba(59,130,246,.35); }
.dash { color: #334155; }
.tag { background: rgba(167,139,250,.16); color: #c4b5fd; }
.tag.red { background: rgba(248,113,113,.16); color: #fca5a5; }
.v5-tbl tr.ef td { background: rgba(248,113,113,.06); }
.v5-i { color: #94a3b8; }
.v5-tbl tbody.mine .v5-k { background: rgba(34,211,238,.08) !important; box-shadow: inset 4px 0 0 #22d3ee; }
.v5-tbl tbody.mine td { background: rgba(34,211,238,.04); }
.v5-empty { color: #e2e8f0; }
.v5-empty p { color: #94a3b8; }
.v5-foot { background: #0a0f1d; color: #64748b; border-top: 1px solid rgba(255,255,255,.07); }
.wk-days a.on { background: linear-gradient(160deg, #1e3a8a, #2563eb); border-color: #60a5fa; color: #fff; box-shadow: 0 8px 22px rgba(37,99,235,.4); }
.wk-days a.on small { color: #bfdbfe; }

/* ===== Inhaltsseiten: Infotexte, FAQ, Ratgeber ===== */
.info { margin-top: 22px; line-height: 1.7; }
.info h2, .artikel h2 { font-size: 1.28rem; margin: 1.4em 0 .5em; }
.info h2:first-child { margin-top: 0; }
.info h3, .artikel h3 { font-size: 1.05rem; margin: 1.1em 0 .35em; color: #c7d2fe; }
.info ul, .info ol, .artikel ul, .artikel ol { margin: .3em 0 .9em 1.3em; padding: 0; }
.info li, .artikel li { margin: .25em 0; }
.prose a { color: var(--acc2); }
.artikel { line-height: 1.75; }
.artikel .lead, .page-intro .lead { color: var(--muted); font-size: 1.06rem; }
.page-intro { margin-bottom: 16px; }
.page-intro h1 { margin-bottom: 6px; }
.crumbs { margin: 0 0 10px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.toc a { padding: 6px 12px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); color: var(--text); font-size: .88rem; text-decoration: none; }
.toc a:hover { border-color: var(--acc2); }
.faq h2 { font-size: 1.15rem; margin: 0 0 8px; }
.faq details { border-top: 1px solid var(--line); padding: 10px 2px; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; gap: 10px; align-items: flex-start; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; flex: 0 0 22px; height: 22px; border-radius: 6px; background: var(--card2); display: grid; place-items: center; color: var(--acc2); font-weight: 800; }
.faq details[open] summary::before { content: "–"; }
.faq details p { margin: 8px 0 2px 32px; color: #cfd6ea; line-height: 1.65; }
.ratg-teaser { margin-top: 18px; }
.ratg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ratg-item { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.ratg-item:hover { border-color: var(--acc2); transform: translateY(-2px); }
.ratg-item i { font-style: normal; font-size: 1.5rem; }
.ratg-item b { font-size: 1rem; }
.ratg-item span { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.ratg-grid.big .ratg-item { padding: 18px; }
table.lex { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: .94rem; }
table.lex th, table.lex td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.lex th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
table.lex td:first-child { font-weight: 800; color: #93c5fd; white-space: nowrap; }
@media (max-width: 640px) {
  table.lex th:nth-child(3), table.lex td:nth-child(3) { display: none; }
  .faq details p { margin-left: 0; }
}
@media (max-width: 1440px) { .nav a { padding: 8px 8px; font-size: .9rem; } }

/* ===== Profile, Bewertungen, Coins, Shop, Impressum ===== */
div.box { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
span.avatar { flex: 0 0 auto; overflow: hidden; position: relative; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.avatar.sm { width: 26px; height: 26px; font-size: .75rem; }
.avatar.xl { width: 96px; height: 96px; font-size: 2.4rem; }
.ava-link { display: inline-flex; text-decoration: none !important; }
.avatar.fr { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--frc, #8b5cf6); }
.avatar.fr.rahmen_neon { --frc: #22d3ee; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #22d3ee, 0 0 14px #22d3ee; }
.avatar.fr.rahmen_gold { --frc: #fbbf24; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #fbbf24, 0 0 12px rgba(251,191,36,.6); }
.avatar.fr.rahmen_feuer { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #f97316, 0 0 16px #ef4444; }
.avatar.fr.rahmen_regenbogen { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #a855f7, 0 0 0 7px #22d3ee, 0 0 0 9px #fbbf24; }
.avatar.sm.fr { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--frc, #8b5cf6); }
.uname { font-weight: 800; color: var(--text); }
a.uname:hover { text-decoration: underline; }
.uname.farbe_cyan { color: #22d3ee; } .uname.farbe_gruen { color: #34d399; } .uname.farbe_lila { color: #c084fc; }
.uname.farbe_gold { background: linear-gradient(90deg, #fde68a, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars { letter-spacing: 1px; white-space: nowrap; }
.stars i { font-style: normal; color: rgba(255,255,255,.18); }
.stars i.on { color: #fbbf24; }
.stars i.half { background: linear-gradient(90deg, #fbbf24 50%, rgba(255,255,255,.18) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.coin-pill { padding: 6px 11px; border-radius: 999px; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.35); color: #fde68a; font-weight: 800; font-size: .86rem; text-decoration: none !important; white-space: nowrap; }
.ok-t { color: var(--ok); } .err-t { color: var(--err); }
/* Profil */
.pf-head { display: flex; gap: 22px; align-items: center; position: relative; flex-wrap: wrap; }
.pf-main { flex: 1; min-width: 220px; }
.pf-main h1 { margin: 0 0 6px; font-size: 1.8rem; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .9rem; }
.pf-bio { margin: 10px 0 0; white-space: pre-line; }
.pf-edit { position: absolute; top: 14px; right: 14px; }
.pf-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 14px 0; }
.pf-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.pf-stats b { display: block; font-size: 1.25rem; } .pf-stats span { color: var(--muted); font-size: .8rem; }
.rate-sum { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.rate-big { display: flex; flex-direction: column; align-items: center; min-width: 110px; }
.rate-big b { font-size: 2.6rem; line-height: 1; }
.rate-bars { flex: 1; min-width: 180px; display: grid; gap: 4px; font-size: .8rem; }
.rate-bars div { display: grid; grid-template-columns: 28px 1fr 22px; gap: 8px; align-items: center; color: var(--muted); }
.rate-bars i { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.rate-bars em { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.rate-form { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); margin-bottom: 12px; }
.star-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { font-size: 1.9rem; color: rgba(255,255,255,.2); cursor: pointer; line-height: 1; transition: color .1s, transform .1s; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { color: #fbbf24; }
.star-pick label:hover { transform: scale(1.12); }
.star-pick input:focus-visible + label { outline: 2px solid var(--acc2); border-radius: 4px; }
.rate-item { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.rate-item p { margin: 4px 0 0; }
/* Mitglieder */
.mem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.mem { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 18px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; transition: transform .15s, border-color .15s; }
.mem:hover { transform: translateY(-3px); border-color: var(--acc); }
.mem .avatar { margin-bottom: 4px; }
.mem-c { font-size: .82rem; color: #fde68a; font-weight: 700; }
.mem-bio { color: var(--muted); font-size: .78rem; line-height: 1.35; }
/* Coins */
.coin-hero { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: radial-gradient(circle at 85% 20%, rgba(251,191,36,.18), transparent 55%), var(--card); }
.coin-big { font-size: 3rem; font-weight: 900; color: #fde68a; line-height: 1.1; }
.coin-big small { font-size: 1rem; color: var(--muted); }
.earn { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.earn li { display: flex; gap: 10px; align-items: baseline; }
.earn b { min-width: 42px; color: #fde68a; }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rank li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: var(--card2); }
.rank li.me { outline: 1px solid var(--acc); }
.rank li b { margin-left: auto; color: #fde68a; }
.rank .pos { width: 22px; font-weight: 900; color: var(--muted); }
.rank li:nth-child(1) .pos { color: #fbbf24; } .rank li:nth-child(2) .pos { color: #cbd5e1; } .rank li:nth-child(3) .pos { color: #d97706; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.item { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 10px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); text-align: center; }
.item.on { border-color: var(--ok); }
.item-prev { height: 64px; display: grid; place-items: center; }
/* Shop */
.shop-hero h1 span { background: linear-gradient(90deg, #fbbf24, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.prod { display: flex; flex-direction: column; gap: 6px; }
.prod h3 { margin: 4px 0 0; font-size: 1.15rem; }
.prod p { color: #cfd6ea; font-size: .93rem; line-height: 1.55; flex: 1; }
.prod-ico { font-size: 2rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, rgba(139,92,246,.25), rgba(34,211,238,.18)); }
.prod-dauer { color: var(--muted); font-size: .85rem; }
.prod-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.prod-preis b { display: block; font-size: 1.35rem; }
.prod-preis span { font-size: .8rem; color: #fde68a; }
.buch-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.buch-head h1 { margin: 0; }
.pay-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.pay { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); cursor: pointer; }
.pay:has(input:checked) { border-color: var(--acc); background: rgba(139,92,246,.12); }
.pay.off { opacity: .55; cursor: not-allowed; }
.pay span { display: flex; flex-direction: column; } .pay small { color: var(--muted); }
.buch-sum { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.ava-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ord-st { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 260px; }
.ord-st select, .ord-st input[type=text] { padding: 5px 8px; font-size: .85rem; }
/* Impressum */
.imp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
@media (max-width: 640px) { .imp-grid { grid-template-columns: 1fr; } }
.imp-card { position: relative; }
.imp-card h2 { font-size: 1.05rem; margin: 0 0 10px; color: #c7d2fe; }
.imp-ico { position: absolute; top: 14px; right: 16px; font-size: 1.6rem; opacity: .85; }
.imp-card address { font-style: normal; line-height: 1.7; }
.imp-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.imp-row .k { color: var(--muted); font-size: .82rem; }
.imp-row .v { overflow-wrap: anywhere; font-weight: 650; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .03em; }
.im-copy { background: var(--card2); border: 1px solid var(--line2); color: var(--text); border-radius: 8px; padding: 4px 9px; font-size: .75rem; cursor: pointer; }
.im-copy:hover { border-color: var(--acc2); } .im-copy.ok { border-color: var(--ok); color: var(--ok); }
.imp-legal details { border-top: 1px solid var(--line); padding: 12px 2px; }
.imp-legal details:first-child { border-top: 0; }
.imp-legal summary { cursor: pointer; font-weight: 750; }
.imp-legal p { margin: 10px 0 0; color: #cfd6ea; line-height: 1.65; }
@media (max-width: 760px) {
  .pf-stats { grid-template-columns: repeat(3, 1fr); }
  .pf-head { flex-direction: column; text-align: center; }
  .pf-meta { justify-content: center; }
  .pf-edit { position: static; }
}
@media (max-width: 1300px) { .coin-pill { display: none; } }
/* ===== Shop v2 (modern) + Warenkorb ===== */
.wk-pill { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px; border-radius: 999px; background: rgba(139,92,246,.16); border: 1px solid rgba(139,92,246,.45); color: #e9d5ff; font-weight: 800; text-decoration: none !important; font-size: .9rem; }
.wk-pill b { background: var(--acc); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; display: grid; place-items: center; font-size: .72rem; padding: 0 5px; }
.sx-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 26px; margin-bottom: 26px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 12% 0%, rgba(139,92,246,.35), transparent 50%), radial-gradient(circle at 95% 90%, rgba(244,114,182,.22), transparent 45%), linear-gradient(135deg, #141a35, #0d1226); border: 1px solid var(--line2); }
.sx-kicker { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line2); font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.sx-hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.08; margin: 14px 0 10px; }
.sx-hero h1 span { background: linear-gradient(90deg, #fbbf24, #f472b6, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sx-hero p { color: #c9d1ea; font-size: 1.08rem; max-width: 560px; }
.sx-trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.sx-trust span { padding: 6px 11px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: .84rem; font-weight: 650; }
.sx-hero-art { position: relative; height: 260px; }
.sx-slide { position: absolute; border-radius: 16px; background: linear-gradient(160deg, #1f2850, #151b38); border: 1px solid var(--line2); box-shadow: 0 20px 50px rgba(0,0,0,.45); padding: 16px; }
.sx-slide.s1 { width: 62%; height: 58%; left: 4%; top: 6%; transform: rotate(-6deg); }
.sx-slide.s1 b { display: block; font-size: .9rem; margin-bottom: 10px; color: #c4b5fd; }
.sx-slide.s1 i { display: block; height: 9px; border-radius: 9px; background: rgba(255,255,255,.14); margin: 8px 0; }
.sx-slide.s1 i.short { width: 55%; }
.sx-slide.s2 { width: 55%; height: 56%; right: 2%; top: 30%; transform: rotate(5deg); display: flex; align-items: flex-end; gap: 8px; }
.sx-slide.s2 b { position: absolute; top: 12px; left: 14px; }
.sx-slide.s2 em { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #a78bfa, #6d28d9); }
.sx-slide.s2 em:nth-child(2) { height: 40%; } .sx-slide.s2 em:nth-child(3) { height: 65%; background: linear-gradient(180deg, #22d3ee, #0e7490); }
.sx-slide.s2 em:nth-child(4) { height: 50%; } .sx-slide.s2 em:nth-child(5) { height: 85%; background: linear-gradient(180deg, #f472b6, #be185d); }
.sx-slide.s3 { width: 74px; height: 74px; left: 40%; bottom: 0; display: grid; place-items: center; font-size: 2.1rem; border-radius: 50%; padding: 0; background: linear-gradient(135deg, #8b5cf6, #ec4899); animation: sxfloat 4s ease-in-out infinite; }
@keyframes sxfloat { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .sx-slide.s3 { animation: none; } }
.sx-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.sx-head h1, .sx-head h2 { margin: 0; }
.sx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.sx-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01)), var(--card); border: 1px solid var(--line); transition: transform .18s, border-color .18s, box-shadow .18s; scroll-margin-top: 90px; }
.sx-card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.6); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.sx-card:target { border-color: var(--acc2); }
.sx-flag { position: absolute; top: -11px; right: 18px; padding: 4px 11px; border-radius: 999px; background: linear-gradient(90deg, #f59e0b, #f472b6); color: #fff; font-size: .74rem; font-weight: 800; }
.sx-top { display: flex; justify-content: space-between; align-items: center; }
.sx-ico { font-size: 1.9rem; width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, rgba(139,92,246,.28), rgba(34,211,238,.18)); }
.sx-dauer { padding: 5px 10px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); font-size: .8rem; color: var(--muted); font-weight: 700; }
.sx-card h3 { margin: 6px 0 0; font-size: 1.2rem; }
.sx-card p { color: #cfd6ea; font-size: .93rem; line-height: 1.55; flex: 1; margin: 0; }
.sx-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.sx-price b { display: block; font-size: 1.6rem; line-height: 1; }
.sx-price small { display: block; margin-top: 4px; color: #fde68a; font-weight: 700; }
.sx-btns { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.coin-btn { background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.4); color: #fde68a; }
.sx-steps { margin: 34px 0 10px; }
.sx-steps ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.sx-steps li { position: relative; padding: 20px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.sx-steps li span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, #22d3ee); font-weight: 900; margin-bottom: 10px; }
.sx-steps li p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.sx-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0; }
.sx-why-item { padding: 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(139,92,246,.10), transparent), var(--card); border: 1px solid var(--line); }
.sx-why-item i { font-style: normal; font-size: 1.6rem; display: block; margin-bottom: 8px; }
.sx-why-item p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.sx-float { position: fixed; right: 20px; bottom: 20px; z-index: 50; padding: 13px 20px; border-radius: 999px; background: linear-gradient(135deg, var(--acc), #db2777); color: #fff !important; font-weight: 800; box-shadow: 0 12px 30px rgba(139,92,246,.45); text-decoration: none !important; }
.wk-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.wk-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.wk-item .grow { flex: 1; min-width: 0; }
.wk-qty { display: flex; align-items: center; gap: 6px; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.wk-qty span { min-width: 22px; text-align: center; font-weight: 800; }
.qb { width: 30px; height: 30px; border-radius: 9px; border: 0; background: rgba(255,255,255,.07); color: var(--text); font-weight: 900; cursor: pointer; font-size: 1rem; }
.qb:hover { background: rgba(139,92,246,.3); } .qb:disabled { opacity: .35; cursor: default; }
.qb.del { background: transparent; color: var(--muted); } .qb.del:hover { color: var(--err); background: rgba(248,113,113,.12); }
.wk-sum { min-width: 80px; text-align: right; }
.wk-kasse { position: sticky; top: 86px; }
.wk-kasse h2 { margin-top: 0; }
.wk-row { display: flex; justify-content: space-between; padding: 6px 0; }
.wk-total { border-top: 1px solid var(--line2); margin-top: 6px; padding-top: 12px; font-size: 1.2rem; }
.empty-wk, .danke { text-align: center; padding: 40px 20px; }
.empty-wk .big, .danke .big { font-size: 3.4rem; }
.danke.ok { border-color: rgba(52,211,153,.5); background: radial-gradient(circle at 50% 0%, rgba(52,211,153,.14), transparent 60%), var(--card); }
.coin-cost { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.coin-cost div { padding: 12px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); text-align: center; }
.coin-cost small { display: block; color: var(--muted); } .coin-cost b { font-size: 1.2rem; color: #fde68a; }
.coin-cost.off div:last-child b { color: var(--err); }
@media (max-width: 900px) {
  .sx-hero { grid-template-columns: 1fr; } .sx-hero-art { display: none; }
  .sx-steps ol, .sx-why { grid-template-columns: repeat(2, 1fr); }
  .wk-layout { grid-template-columns: 1fr; } .wk-kasse { position: static; }
}
@media (max-width: 560px) {
  .sx-steps ol, .sx-why { grid-template-columns: 1fr; }
  .wk-item { flex-wrap: wrap; } .wk-sum { min-width: 0; }
  .sx-float { left: 16px; right: 16px; text-align: center; }
}
/* Wunschtermin-Auswahl */
.req { color: var(--err); }
.tday-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; }
.tday { cursor: pointer; }
.tday input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tday span { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 11px; background: var(--card2); border: 1px solid var(--line); font-size: .78rem; color: var(--muted); transition: border-color .12s, background .12s; }
.tday span b { font-size: 1rem; color: var(--text); }
.tday:hover span { border-color: var(--acc); }
.tday input:checked + span { background: linear-gradient(135deg, rgba(139,92,246,.45), rgba(34,211,238,.25)); border-color: var(--acc2); color: #fff; }
.tday input:focus-visible + span { outline: 2px solid var(--acc2); }
/* ===== Shop v3 ===== */
.s3-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: center; padding: clamp(26px, 4.5vw, 56px); border-radius: 30px; margin-bottom: 18px; background: linear-gradient(140deg, #151b3a 0%, #0f1430 55%, #1a1235 100%); border: 1px solid rgba(255,255,255,.1); }
.s3-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.s3-glow.g1 { width: 420px; height: 420px; background: #7c3aed; top: -180px; left: -120px; }
.s3-glow.g2 { width: 380px; height: 380px; background: #db2777; bottom: -200px; right: -80px; opacity: .35; }
.s3-hero > *:not(.s3-glow) { position: relative; z-index: 1; }
.s3-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: .8rem; font-weight: 750; color: #e9e3ff; }
.s3-pill i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.2); }
.s3-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1.04; letter-spacing: -.02em; margin: 16px 0 12px; }
.s3-hero h1 span { background: linear-gradient(90deg, #fbbf24, #f472b6 45%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s3-hero-txt > p { color: #c9d1ea; font-size: 1.1rem; max-width: 520px; margin: 0 0 18px; }
.s3-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 10px 26px; margin-top: 26px; justify-content: start; }
.s3-stats b { display: block; font-size: 1.2rem; }
.s3-stats span { color: var(--muted); font-size: .8rem; }
.s3-art { position: relative; height: 330px; }
.s3-win { position: absolute; inset: 20px 10px 30px 20px; border-radius: 18px; background: #0b1024; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 70px rgba(0,0,0,.5); overflow: hidden; transform: perspective(900px) rotateY(-9deg) rotateX(4deg); }
.s3-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07); }
.s3-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; } .s3-bar i:nth-child(2) { background: #fbbf24; } .s3-bar i:nth-child(3) { background: #34d399; }
.s3-bar span { margin-left: 8px; font-size: .75rem; color: var(--muted); }
.s3-body { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 12px; height: calc(100% - 38px); }
.s3-thumbs { display: grid; gap: 8px; align-content: start; }
.s3-thumbs em { height: 34px; border-radius: 6px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }
.s3-thumbs em.on { border-color: #a78bfa; background: rgba(167,139,250,.18); }
.s3-slide { border-radius: 10px; padding: 16px; background: linear-gradient(150deg, #f8fafc, #e0e7ff); color: #1e1b4b; display: flex; flex-direction: column; }
.s3-slide b { font-size: 1.25rem; } .s3-slide small { color: #6366f1; font-weight: 700; }
.s3-chart { flex: 1; display: flex; align-items: flex-end; gap: 10px; padding-top: 12px; }
.s3-chart u { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #8b5cf6, #6366f1); text-decoration: none; }
.s3-chart u:nth-child(4) { background: linear-gradient(180deg, #f472b6, #db2777); }
.s3-bubble { position: absolute; padding: 9px 14px; border-radius: 14px; font-size: .85rem; font-weight: 750; background: rgba(20,25,52,.92); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 12px 30px rgba(0,0,0,.4); animation: s3float 5s ease-in-out infinite; }
.s3-bubble.b1 { left: 0; bottom: 6px; } .s3-bubble.b2 { right: 0; top: 0; animation-delay: -2.5s; }
@keyframes s3float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .s3-bubble { animation: none; } }
.s3-note { margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.3); font-size: .92rem; }
.s3-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.s3-card { --ac: #8b5cf6; position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--ac) 9%, transparent), transparent 40%), var(--card); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; scroll-margin-top: 90px; }
.s3-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: 22px 22px 0 0; background: linear-gradient(90deg, var(--ac), transparent 85%); }
.s3-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--ac) 55%, transparent); box-shadow: 0 22px 50px rgba(0,0,0,.4), 0 0 0 1px color-mix(in srgb, var(--ac) 25%, transparent); }
.s3-card.feat { border-color: color-mix(in srgb, var(--ac) 55%, transparent); box-shadow: 0 0 40px color-mix(in srgb, var(--ac) 18%, transparent); }
.s3-card:target { outline: 2px solid var(--acc2); }
.s3-flag { position: absolute; top: -12px; left: 22px; padding: 5px 12px; border-radius: 999px; background: linear-gradient(90deg, #8b5cf6, #ec4899); color: #fff; font-size: .75rem; font-weight: 800; box-shadow: 0 8px 20px rgba(139,92,246,.4); }
.s3-card-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.s3-ico { flex: 0 0 58px; width: 58px; height: 58px; display: grid; place-items: center; font-size: 1.9rem; border-radius: 18px; background: color-mix(in srgb, var(--ac) 18%, transparent); border: 1px solid color-mix(in srgb, var(--ac) 35%, transparent); }
.s3-card h3 { margin: 0 0 4px; font-size: 1.22rem; line-height: 1.2; }
.s3-dauer { font-size: .8rem; color: var(--muted); font-weight: 700; }
.s3-desc { color: #cfd6ea; font-size: .93rem; line-height: 1.55; margin: 0 0 12px; }
.s3-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 7px; align-content: start; flex: 1; }
.s3-list li { position: relative; padding-left: 26px; font-size: .9rem; }
.s3-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .68rem; font-weight: 900; color: #0b1024; background: var(--ac); }
.s3-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px dashed rgba(255,255,255,.12); margin-top: auto; }
.s3-price b { display: block; font-size: 1.85rem; line-height: 1; letter-spacing: -.02em; }
.s3-price small { display: block; margin-top: 5px; color: #fde68a; font-weight: 700; font-size: .8rem; }
.s3-btns { display: flex; flex-direction: column; gap: 7px; align-items: flex-end; }
.s3-steps { margin: 40px 0 0; }
.s3-steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 14px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.s3-steps-row > div { padding: 22px 20px; position: relative; border-right: 1px solid var(--line); }
.s3-steps-row > div:last-child { border-right: 0; }
.s3-steps-row span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, #8b5cf6, #22d3ee); font-weight: 900; margin-bottom: 10px; }
.s3-steps-row b { display: block; }
.s3-steps-row p { margin: 5px 0 0; color: var(--muted); font-size: .88rem; }
.s3-coach { display: flex; gap: 28px; align-items: center; margin: 22px 0 0; padding: 28px; border-radius: 24px; background: radial-gradient(circle at 0% 50%, rgba(139,92,246,.18), transparent 50%), var(--card); border: 1px solid var(--line); }
.s3-coach h2 { margin: 12px 0 8px; }
.s3-coach p { color: #cfd6ea; margin: 0 0 14px; max-width: 720px; }
.s3-coach .avatar.xl { width: 120px; height: 120px; font-size: 3rem; }
.s3-why { display: flex; flex-wrap: wrap; gap: 8px; }
.s3-why span { padding: 7px 12px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); font-size: .85rem; font-weight: 650; }
/* Kasse */
.wk-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.wk-top h1 { margin: 0; }
.wk-steps { list-style: none; display: flex; gap: 6px; margin: 0; padding: 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.wk-steps li { display: flex; align-items: center; gap: 7px; padding: 6px 14px 6px 6px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: .86rem; }
.wk-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: .78rem; }
.wk-steps li.on { color: var(--text); background: rgba(139,92,246,.16); }
.wk-steps li.on span { background: linear-gradient(135deg, #8b5cf6, #22d3ee); color: #fff; }
.wk-main { display: grid; gap: 16px; }
.wk-sec { padding: 22px; }
.wk-sec-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wk-sec-h h2 { margin: 0; font-size: 1.15rem; flex: 1; }
.wk-n { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; font-size: .85rem; background: linear-gradient(135deg, #8b5cf6, #22d3ee); color: #fff; }
.linkbtn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .82rem; text-decoration: underline; }
.linkbtn:hover { color: var(--err); }
.wk-item:last-child { border-bottom: 0; }
.wk-side .wk-kasse { position: sticky; top: 86px; padding: 22px; background: linear-gradient(180deg, rgba(139,92,246,.10), transparent 30%), var(--card); border-color: rgba(139,92,246,.35); }
.wk-lines { padding-bottom: 8px; border-bottom: 1px dashed rgba(255,255,255,.12); }
.wk-lines .wk-row span:first-child { color: var(--muted); }
.wk-pay { margin-top: 6px; font-size: 1.02rem; box-shadow: 0 14px 30px rgba(139,92,246,.4); }
.pay-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pay-logos span { padding: 4px 9px; border-radius: 7px; background: #f8fafc; color: #1e293b; font-size: .72rem; font-weight: 800; }
.tzeit { display: flex; flex-wrap: wrap; gap: 6px; }
.tzeit label { cursor: pointer; }
.tzeit input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tzeit span { display: inline-block; padding: 7px 12px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); font-size: .84rem; font-weight: 650; color: var(--muted); }
.tzeit label:hover span { border-color: var(--acc); }
.tzeit input:checked + span { background: rgba(139,92,246,.28); border-color: var(--acc); color: #fff; }
.tzeit input:focus-visible + span { outline: 2px solid var(--acc2); }
@media (max-width: 980px) {
  .s3-hero { grid-template-columns: 1fr; } .s3-art { display: none; }
  .s3-steps-row { grid-template-columns: repeat(2, 1fr); }
  .s3-steps-row > div:nth-child(2) { border-right: 0; } .s3-steps-row > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .s3-stats { grid-template-columns: repeat(2, auto); }
  .s3-grid { grid-template-columns: 1fr; }
  .s3-steps-row { grid-template-columns: 1fr; } .s3-steps-row > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .s3-coach { flex-direction: column; text-align: center; } .s3-why { justify-content: center; }
  .wk-steps li { padding-right: 8px; font-size: .78rem; }
}
/* ===== Nachrichten / Anfragen ===== */
.msg-pill { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: rgba(34,211,238,.14); border: 1px solid rgba(34,211,238,.45); text-decoration: none !important; font-weight: 800; }
.msg-pill b { background: #06b6d4; color: #fff; border-radius: 999px; min-width: 20px; height: 20px; display: grid; place-items: center; font-size: .72rem; padding: 0 5px; }
.msg.neu { border-color: var(--acc); box-shadow: 0 0 0 1px rgba(139,92,246,.25); }
.thread { display: flex; flex-direction: column; gap: 10px; }
.bubble-msg { max-width: 82%; padding: 11px 14px; border-radius: 16px; background: var(--card2); border: 1px solid var(--line); }
.bubble-msg.them { align-self: flex-start; border-bottom-left-radius: 5px; }
.bubble-msg.me { align-self: flex-end; border-bottom-right-radius: 5px; background: linear-gradient(135deg, rgba(139,92,246,.28), rgba(34,211,238,.14)); border-color: rgba(139,92,246,.45); }
.bm-h { font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.bm-t { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.reply { display: flex; gap: 10px; align-items: flex-end; }
.reply textarea { flex: 1; }
.anf-row { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.anf-row:last-child { border-bottom: 0; }
.anf-row:hover { background: rgba(255,255,255,.03); }
.anf-row.neu b { color: #c4b5fd; }
@media (max-width: 600px) { .bubble-msg { max-width: 94%; } .reply { flex-direction: column; align-items: stretch; } }
/* ===== Admin Benutzer ===== */
.utbl td { vertical-align: middle; }
.u-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.u-mailrow { margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.u-mail { font-weight: 650; font-size: .88rem; white-space: nowrap; color: #c7d2fe; }
.utbl .actions { min-width: 120px; }
.reveal { display: inline-flex; align-items: flex-start; gap: 6px; }
.reveal .secret { display: none; }
.reveal.on .secret { display: inline; }
.reveal.on .masked { display: none; }
.reveal .masked { color: var(--muted); letter-spacing: .05em; font-size: .82rem; }
.eye { background: var(--card2); border: 1px solid var(--line2); border-radius: 8px; cursor: pointer; padding: 2px 7px; font-size: .9rem; line-height: 1.4; }
.eye:hover { border-color: var(--acc2); }
tr.u-more td { padding-top: 0; border-top: 0; }
.u-manage { margin: 0 0 6px; }
.u-manage summary { cursor: pointer; font-size: .85rem; color: var(--muted); padding: 4px 0; }
.u-manage summary:hover { color: var(--text); }
.u-manage[open] summary { color: var(--text); }
.u-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 6px; }
.u-box { padding: 14px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.u-box h3 { margin: 0 0 8px; font-size: 1rem; }
.u-form { display: grid; gap: 6px; }
.u-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.u-row input { flex: 1; min-width: 160px; padding: 6px 9px; }
.u-or { text-align: center; color: var(--muted); font-size: .78rem; margin: 8px 0; }
@media (max-width: 800px) { .u-grid { grid-template-columns: 1fr; } }.u-act { min-width: 140px; }
.u-act form, .u-act > a, .u-act > span { display: block; margin: 0 0 5px; }
.u-act .btn { width: 100%; justify-content: flex-start; }.g-plan { display: flex; gap: 20px; align-items: flex-start; background: radial-gradient(circle at 0% 0%, rgba(139,92,246,.18), transparent 55%), var(--card); }
.g-plan-ico { font-size: 2.6rem; width: 72px; height: 72px; flex: 0 0 72px; display: grid; place-items: center; border-radius: 20px; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.35); }
.g-plan h3 { margin: 0 0 6px; font-size: 1.25rem; }
.g-plan p { color: #cfd6ea; margin: 0 0 10px; }
.g-plan-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.g-plan-list li { padding: 6px 11px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); font-size: .86rem; font-weight: 650; }
@media (max-width: 600px) { .g-plan { flex-direction: column; } }
/* ===== Benutzer-Karten ===== */
.uc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.uc-top h1 { margin: 0; }
.uc-search { display: flex; gap: 6px; } .uc-search input { min-width: 240px; }
.uc-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.uc-stats div { padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.uc-stats b { display: block; font-size: 1.4rem; } .uc-stats span { color: var(--muted); font-size: .8rem; }
.uc-list { display: grid; gap: 14px; }
.uc { padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.uc.me { border-color: rgba(139,92,246,.45); }
.uc.ban { border-color: rgba(248,113,113,.5); background: linear-gradient(180deg, rgba(248,113,113,.07), transparent 40%), var(--card); }
.uc-head { display: flex; gap: 14px; align-items: center; }
.uc-who { flex: 1; min-width: 0; }
.uc-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.uc-name b { font-size: 1.15rem; }
.uc-mail { margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.uc-mail span { font-weight: 650; color: #c7d2fe; overflow-wrap: anywhere; }
.uc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 14px 0 12px; padding: 12px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.uc-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.uc-f label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.uc-f > span { font-weight: 650; font-size: .9rem; }
.uc-f select { padding: 5px 8px; font-size: .88rem; width: 100%; }
.uc-f .reveal { flex-wrap: wrap; }
.uc-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.uc-actions form { margin: 0; }
.uc .u-manage { margin-top: 10px; }
@media (max-width: 1100px) { .uc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .uc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .uc-stats { grid-template-columns: repeat(3, 1fr); } .uc-search input { min-width: 0; } }

/* Passwort-Auge */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 30px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 1.05rem; line-height: 1; opacity: .75; }
.pw-eye:hover { opacity: 1; background: rgba(255,255,255,.07); }
.pw-eye:focus-visible { outline: 2px solid var(--acc2); }

/* Bestaetigung AGB/Datenschutz */
.consent { display: grid; gap: 8px; margin: 6px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); }
.consent .check { margin: 0; }
.consent-note { font-size: .82rem; color: var(--muted); margin: 4px 0 12px; line-height: 1.5; }
/* ===== Login & Registrierung (v2) ===== */
.au { display: grid; grid-template-columns: 1fr 1fr; max-width: 1040px; margin: 10px auto 30px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0,0,0,.45); background: var(--card); }
.au-side { position: relative; overflow: hidden; padding: 42px 40px; background: linear-gradient(150deg, #2a1a5e 0%, #161d42 50%, #0e2a3a 100%); display: flex; flex-direction: column; gap: 14px; }
.au-glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(167,139,250,.45), transparent 65%); top: -150px; right: -120px; pointer-events: none; }
.au-side > *:not(.au-glow) { position: relative; z-index: 1; }
.au-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 900; text-decoration: none !important; }
.au-brand small { display: block; font-size: .65rem; letter-spacing: .14em; color: #c7d2fe; font-weight: 800; }
.au-side h2 { font-size: 1.9rem; line-height: 1.15; margin: 18px 0 0; }
.au-side > p { color: #d4d9f0; margin: 0; }
.au-feat { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.au-feat li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.au-feat i { font-style: normal; font-size: 1.3rem; width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.08); }
.au-feat b { display: block; font-size: .95rem; } .au-feat span { color: #c3cae6; font-size: .8rem; }
.au-trust { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.au-trust span { font-size: .76rem; font-weight: 750; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.1); }
.au-form { margin: 0; border: 0; border-radius: 0; padding: 42px 40px; display: flex; flex-direction: column; justify-content: center; background: var(--card); }
.au-head { text-align: center; margin-bottom: 22px; }
.au-ico { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; font-size: 1.7rem; background: linear-gradient(135deg, rgba(139,92,246,.35), rgba(34,211,238,.2)); border: 1px solid rgba(139,92,246,.45); box-shadow: 0 10px 30px rgba(139,92,246,.3); }
.au-head h1 { margin: 12px 0 4px; font-size: 1.8rem; }
.au-head p { margin: 0; color: var(--muted); }
.au-lbl { display: flex; justify-content: space-between; align-items: baseline; }
.au-lbl a { font-size: .8rem; }
.au-in { position: relative; }
.au-in > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: .95rem; opacity: .8; z-index: 1; pointer-events: none; }
.au-in input, .au-in select { padding-left: 40px !important; height: 48px; border-radius: 13px; }
.au-in .pw-wrap input { padding-right: 46px; }
.au-btn { margin-top: 4px; height: 50px; font-size: 1.05rem; border-radius: 14px; box-shadow: 0 14px 30px rgba(139,92,246,.4); }
.au-sep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; margin: 6px 0 12px; }
.au-sep::before, .au-sep::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.au-alt { height: 46px; border-radius: 13px; }
.au .consent-note { text-align: center; }
@media (max-width: 900px) {
  .au { grid-template-columns: 1fr; border-radius: 22px; }
  .au-side { padding: 26px 24px; }
  .au-side h2 { font-size: 1.45rem; margin-top: 8px; }
  .au-feat, .au-trust { display: none; }
  .au-form { padding: 28px 22px; }
}.pw-eye { opacity: 1; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); width: 36px; height: 32px; filter: brightness(1.6) saturate(1.2); }
.pw-eye:hover { background: rgba(139,92,246,.3); border-color: var(--acc); }
/* ===== Kontakt v2 ===== */
.kt .au-side { justify-content: flex-start; }
.kt-badge { align-self: flex-start; padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .8rem; font-weight: 800; }
.kt .au-side h2 { margin-top: 6px; }
.kt .au-feat a { color: #a5f3fc; }
.kt-mine { margin-top: 6px; padding: 12px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.1); }
.kt-mine-h { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: .88rem; }
.kt-mine-h a { color: #a5f3fc; font-size: .8rem; }
.kt-mine-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.08); color: #e5e9fb; font-size: .85rem; text-decoration: none !important; }
.kt-mine-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-mine-row em { font-style: normal; font-size: .7rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--acc); color: #fff; }
.kt .au-form { justify-content: flex-start; }
.kt-themen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.kt-thema { cursor: pointer; margin: 0; }
.kt-thema input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kt-thema span { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 10px 6px; border-radius: 13px; background: var(--card2); border: 1px solid var(--line); font-size: .78rem; font-weight: 700; color: var(--muted); line-height: 1.25; height: 100%; transition: border-color .12s, background .12s, color .12s; }
.kt-thema i { font-style: normal; font-size: 1.3rem; }
.kt-thema:hover span { border-color: var(--acc); color: var(--text); }
.kt-thema input:checked + span { background: linear-gradient(135deg, rgba(139,92,246,.4), rgba(34,211,238,.2)); border-color: var(--acc2); color: #fff; }
.kt-thema input:focus-visible + span { outline: 2px solid var(--acc2); }
.kt textarea { border-radius: 13px; min-height: 140px; }
.kt-count { font-size: .75rem; color: var(--muted); } .kt-count.warn { color: var(--warn); }
@media (max-width: 560px) { .kt-themen { grid-template-columns: repeat(2, 1fr); } }
/* ===== Termine v2 ===== */
.tm { max-width: 960px; margin: 0 auto; }
.k-Schule { --kc: #60a5fa; } .k-Prüfung { --kc: #f87171; } .k-Ferien { --kc: #34d399; } .k-Ausflug { --kc: #fbbf24; } .k-Gaming { --kc: #a78bfa; } .k-Sonstiges { --kc: #94a3b8; }
.tm-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tm-top h1 { margin: 0; }
.tm-next { --kc: #8b5cf6; display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 22px; margin-bottom: 16px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--kc) 28%, transparent), transparent 70%), var(--card); border: 1px solid color-mix(in srgb, var(--kc) 50%, transparent); }
.tm-next-ico { font-size: 2.2rem; width: 66px; height: 66px; flex: 0 0 66px; display: grid; place-items: center; border-radius: 18px; background: color-mix(in srgb, var(--kc) 22%, transparent); }
.tm-next-lbl { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--kc); }
.tm-next h2 { margin: 2px 0 4px; font-size: 1.4rem; }
.tm-count { text-align: center; padding: 10px 16px; border-radius: 16px; background: rgba(0,0,0,.25); border: 1px solid var(--line2); min-width: 86px; }
.tm-count b { display: block; font-size: 2.1rem; line-height: 1; } .tm-count span { color: var(--muted); font-size: .78rem; }
.tm-filter { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.tm-filter a { --kc: #8b5cf6; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: .86rem; text-decoration: none !important; }
.tm-filter a em { font-style: normal; font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); }
.tm-filter a:hover { border-color: var(--kc); }
.tm-filter a.on { background: color-mix(in srgb, var(--kc) 25%, transparent); border-color: var(--kc); }
.tm-month { margin-bottom: 18px; }
.tm-mh { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; padding-left: 4px; }
.tm-list { display: grid; gap: 8px; }
.tm-item { --kc: #94a3b8; position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.tm-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--kc); }
.tm-item.now { border-color: color-mix(in srgb, var(--kc) 60%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--kc) 14%, transparent), transparent 60%), var(--card); }
.tm-item.past { opacity: .6; padding: 8px 14px 8px 16px; }
.tm-date { flex: 0 0 54px; text-align: center; padding: 6px 0; border-radius: 12px; background: color-mix(in srgb, var(--kc) 16%, transparent); }
.tm-date b { display: block; font-size: 1.35rem; line-height: 1.1; } .tm-date span { font-size: .7rem; font-weight: 800; text-transform: uppercase; color: var(--kc); }
.tm-body { flex: 1; min-width: 0; }
.tm-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tm-title b { font-size: 1.02rem; }
.tm-cat { font-size: .72rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; color: var(--kc); background: color-mix(in srgb, var(--kc) 15%, transparent); border: 1px solid color-mix(in srgb, var(--kc) 35%, transparent); }
.tm-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; color: var(--muted); font-size: .84rem; }
.tm-more summary { cursor: pointer; font-size: .8rem; color: var(--acc2); margin-top: 4px; }
.tm-more .prose { margin-top: 4px; color: #cfd6ea; }
.tm-when { flex: 0 0 auto; }
.tm-pill { display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 800; background: var(--card2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tm-pill.soon { color: #fde68a; border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.1); }
.tm-pill.now { color: #6ee7b7; border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.12); }
@media (max-width: 600px) {
  .tm-next { flex-wrap: wrap; } .tm-count { margin-left: auto; }
  .tm-item { flex-wrap: wrap; } .tm-when { width: 100%; padding-left: 68px; }
}
/* ===== Shop v4: Gratis, Gruppen, Pakete ===== */
.s3-gratis { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin: 0 0 22px; border-radius: 20px; background: linear-gradient(110deg, rgba(52,211,153,.22), rgba(34,211,238,.08) 60%, transparent), var(--card); border: 1px solid rgba(52,211,153,.5); }
.s3-gratis-ico { font-size: 2.2rem; width: 62px; height: 62px; flex: 0 0 62px; display: grid; place-items: center; border-radius: 18px; background: rgba(52,211,153,.18); }
.s3-gratis b { display: block; font-size: 1.15rem; } .s3-gratis span { color: #cfe9df; font-size: .92rem; }
.s3-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: -4px 0 18px; }
.s3-tabs a { padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: .86rem; text-decoration: none !important; }
.s3-tabs a:hover { border-color: var(--acc); }
.s3-tabs em { font-style: normal; font-size: .72rem; padding: 1px 7px; margin-left: 4px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); }
.s3-group { margin-bottom: 26px; scroll-margin-top: 90px; }
.s3-group-h { margin: 0 0 12px; }
.s3-group-h h3 { margin: 0; font-size: 1.25rem; }
.s3-group-h p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.s3-card.free { background: linear-gradient(180deg, rgba(52,211,153,.12), transparent 45%), var(--card); }
.s3-flag.free { background: linear-gradient(90deg, #10b981, #06b6d4); box-shadow: 0 8px 20px rgba(16,185,129,.4); }
.s3-flag.deal { background: linear-gradient(90deg, #f59e0b, #ef4444); box-shadow: 0 8px 20px rgba(245,158,11,.35); }
.s3-price b.free { color: #6ee7b7; }
.free-box { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.45); }
.free-box b { font-size: 1.2rem; color: #6ee7b7; } .free-box span { color: #cfe9df; font-size: .9rem; }
@media (max-width: 600px) { .s3-gratis { flex-wrap: wrap; } .s3-gratis .btn { width: 100%; } }
/* ===== Admin-Postfach ===== */
.ib-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ib-top h1 { margin: 0; }
.ib-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ib-tabs a { padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: .86rem; text-decoration: none !important; }
.ib-tabs a.on { background: rgba(139,92,246,.22); border-color: var(--acc); }
.ib-tabs em { font-style: normal; font-size: .72rem; padding: 1px 7px; margin-left: 4px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); }
.ib { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 14px; align-items: start; }
.ib-list { border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; max-height: 76vh; overflow-y: auto; }
.ib-row { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.ib-row:hover { background: rgba(255,255,255,.03); }
.ib-row.on { background: rgba(139,92,246,.16); box-shadow: inset 3px 0 0 var(--acc); }
.ib-dot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; background: transparent; }
.ib-row.st-neu .ib-dot { background: var(--acc); box-shadow: 0 0 0 3px rgba(139,92,246,.25); }
.ib-row.st-offen .ib-dot { background: var(--warn); }
.ib-row.st-beantwortet .ib-dot { background: var(--ok); opacity: .6; }
.ib-row-main { flex: 1; min-width: 0; }
.ib-row-h { display: flex; justify-content: space-between; gap: 8px; }
.ib-row-h b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-row-h time { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.ib-row.st-neu .ib-row-h b, .ib-row.st-neu .ib-subj { color: #fff; font-weight: 800; }
.ib-subj { font-size: .88rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d6dcf2; }
.ib-snip { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.ib-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ib-tags .badge { font-size: .68rem; }
.ib-view { border-radius: 18px; background: var(--card); border: 1px solid var(--line); padding: 18px 20px; min-height: 300px; }
.ib-head { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ib-head h2 { margin: 0 0 6px; font-size: 1.3rem; }
.ib-from { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9rem; margin-bottom: 2px; }
.ib-actions { display: flex; gap: 6px; }
.ib-actions form { margin: 0; }
.ib-thread { max-height: 48vh; overflow-y: auto; padding-right: 4px; }
.ib-reply { margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.ib-reply textarea { width: 100%; border-radius: 12px; }
.ib-reply-f { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.ib-reply-f .small { flex: 1; }
.ib-empty { padding: 30px 16px; text-align: center; color: var(--muted); }
.ib-empty.big { font-size: 1.05rem; padding: 80px 16px; }
@media (max-width: 900px) { .ib { grid-template-columns: 1fr; } .ib-list { max-height: 45vh; } }
.tm-next .grow { flex: 1; min-width: 0; }

/* ===== Buchungsseite (Gratis / Coins) ===== */
.bk { max-width: 1060px; margin: 0 auto; }
.bk-back { display: inline-block; margin-bottom: 12px; font-size: .9rem; }
.bk-layout { display: grid; grid-template-columns: 380px 1fr; gap: 18px; align-items: start; }
.bk-prod { position: sticky; top: 86px; padding: 24px; border-radius: 22px; background: linear-gradient(180deg, rgba(139,92,246,.16), transparent 50%), var(--card); border: 1px solid rgba(139,92,246,.4); }
.bk-prod.free { background: linear-gradient(180deg, rgba(52,211,153,.16), transparent 50%), var(--card); border-color: rgba(52,211,153,.5); --ac: #34d399; }
.bk-flag { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 800; background: rgba(255,255,255,.08); border: 1px solid var(--line2); }
.bk-prod.free .bk-flag { background: linear-gradient(90deg, #10b981, #06b6d4); border: 0; color: #fff; }
.bk-ico { font-size: 2.4rem; width: 70px; height: 70px; display: grid; place-items: center; border-radius: 20px; margin: 14px 0 8px; background: rgba(255,255,255,.07); }
.bk-prod h1 { font-size: 1.5rem; margin: 0 0 6px; }
.bk-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bk-facts span { font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); color: var(--muted); }
.bk-prod > p { color: #cfd6ea; font-size: .92rem; line-height: 1.55; }
.bk-price { margin-top: 14px; padding: 14px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--line2); }
.bk-price b { display: block; font-size: 1.8rem; line-height: 1.1; }
.bk-prod.free .bk-price b { color: #6ee7b7; }
.bk-price span { color: var(--muted); font-size: .84rem; }
.bk-form { padding: 22px 24px; }
.bk-form .wk-sec-h { margin: 6px 0 8px; }
.bk-form .wk-sec-h h2 { font-size: 1.05rem; }
.bk-step { margin: 0 0 16px 38px; }
.bk-step select, .bk-step textarea { width: 100%; }
.bk-submit { margin-top: 8px; padding: 16px; border-radius: 16px; background: var(--card2); border: 1px solid var(--line); }
.bk-submit .check { margin-bottom: 12px; }
@media (max-width: 860px) { .bk-layout { grid-template-columns: 1fr; } .bk-prod { position: static; } .bk-step { margin-left: 0; } }.s3-mail { margin: 0 0 14px; padding: 9px 12px; border-radius: 12px; font-size: .84rem; line-height: 1.45; color: #cfe3ff; background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.3); }
.s3-mail b { color: #fff; }
.bk-mail { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.35); font-size: .9rem; line-height: 1.5; color: #d6e6ff; }
.bk-form > .bk-mail { margin-left: 38px; }
@media (max-width: 860px) { .bk-form > .bk-mail { margin-left: 0; } }
/* Shop: "Gut zu wissen" */
.s3-facts { margin: 22px 0 0; }
.s3-facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.s3-facts-grid div { padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.s3-facts-grid i { font-style: normal; font-size: 1.3rem; display: block; margin-bottom: 4px; }
.s3-facts-grid b { display: block; font-size: .95rem; }
.s3-facts-grid p { margin: 3px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
@media (max-width: 900px) { .s3-facts-grid { grid-template-columns: repeat(2, 1fr); } }
/* Shop: "Mehr erfahren" */
.s3-more { margin: 0 0 12px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); }
.s3-more summary { cursor: pointer; list-style: none; padding: 8px 12px; font-size: .84rem; font-weight: 750; color: var(--acc2); }
.s3-more summary::-webkit-details-marker { display: none; }
.s3-more summary::before { content: "＋ "; }
.s3-more[open] summary::before { content: "－ "; }
.s3-more p { margin: 0 12px 10px; font-size: .86rem; line-height: 1.6; color: #cfd6ea; }
.s3-guide h3 { color: #c7d2fe; margin-top: 1.1em; }
/* ===== Admin-Shop ===== */
.as-stats { grid-template-columns: repeat(5, 1fr); }
.as-tabs { display: flex; gap: 4px; margin: 4px 0 14px; border-bottom: 1px solid var(--line2); }
.as-tabs a { padding: 10px 16px; font-weight: 800; color: var(--muted); text-decoration: none !important; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.as-tabs a.on { color: var(--text); border-bottom-color: var(--acc); }
.as-tabs em { font-style: normal; font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: var(--warn); color: #1a1a1a; margin-left: 4px; }
.as-list { display: grid; gap: 12px; }
.as-order { --sc: var(--line2); padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sc); }
.as-order.st-neu, .as-order.st-bezahlt { --sc: var(--warn); }
.as-order.st-bestätigt { --sc: var(--acc2); } .as-order.st-erledigt { --sc: var(--ok); } .as-order.st-storniert { --sc: var(--err); opacity: .75; }
.as-order.st-zahlung-offen { --sc: #94a3b8; }
.as-o-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.as-o-who { display: flex; flex-direction: column; gap: 2px; }
.as-o-who b { font-size: 1.05rem; }
.as-o-meta { display: flex; align-items: center; gap: 8px; }
.as-o-grid { display: grid; grid-template-columns: 1.6fr 1fr .7fr 1fr .9fr; gap: 10px; margin: 12px 0; padding: 10px 12px; border-radius: 12px; background: var(--card2); }
.as-o-grid label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; margin-bottom: 2px; }
.as-o-grid span { display: block; font-size: .88rem; font-weight: 650; }
.as-o-msg { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: rgba(96,165,250,.08); border: 1px solid rgba(96,165,250,.25); font-size: .88rem; white-space: pre-wrap; }
.as-o-form textarea { width: 100%; border-radius: 12px; font-size: .9rem; }
.as-o-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.as-o-act select { width: auto; padding: 6px 10px; }
.as-o-act .check { margin: 0; }
.as-group { margin-bottom: 18px; }
.as-group h2 { font-size: 1.1rem; margin: 0 0 8px; }
.as-prod { border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin-bottom: 8px; scroll-margin-top: 90px; }
.as-prod.off { opacity: .6; }
.as-prod summary { display: grid; grid-template-columns: 44px 1fr auto auto auto; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; list-style: none; }
.as-prod summary::-webkit-details-marker { display: none; }
.as-p-ico { font-size: 1.4rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--card2); }
.as-p-title b { display: block; } .as-p-title small { color: var(--muted); }
.as-p-price { text-align: right; } .as-p-price b { display: block; } .as-p-price small { color: #fde68a; }
.as-p-edit { font-size: .8rem; color: var(--acc2); font-weight: 700; }
.as-prod[open] { border-color: var(--acc); }
.as-prod[open] .as-p-edit { color: var(--muted); }
.as-p-body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.as-f-grid { display: grid; grid-template-columns: 70px 2fr 1fr 1fr .8fr 1.2fr .8fr; gap: 8px; margin-top: 12px; }
.as-f-grid .field { margin-bottom: 8px; }
.as-new summary { grid-template-columns: 44px 1fr; }
@media (max-width: 1100px) { .as-o-grid { grid-template-columns: repeat(3, 1fr); } .as-f-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .as-stats { grid-template-columns: repeat(2, 1fr); } .as-o-grid { grid-template-columns: 1fr 1fr; } .as-prod summary { grid-template-columns: 40px 1fr auto; } .as-p-edit, .as-prod summary .badge { display: none; } }
/* Shop: Coach-Bereich (lang) */
.s3-coach { align-items: flex-start; }
.s3-coach-ava { position: sticky; top: 90px; }
.s3-coach-txt { flex: 1; min-width: 0; }
.s3-coach-txt > p { color: #cfd6ea; max-width: 820px; }
.s3-coach-lead { font-size: 1.08rem; color: #e5e9fb !important; }
.s3-coach-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.s3-coach-cols > div { padding: 16px 18px; border-radius: 16px; background: var(--card2); border: 1px solid var(--line); }
.s3-coach-cols h3, .s3-promise h3 { margin: 0 0 8px; font-size: 1rem; }
.s3-coach-cols ul, .s3-coach-cols ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .9rem; color: #cfd6ea; }
.s3-coach-cols b { color: var(--text); }
.s3-promise { margin: 0 0 14px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(110deg, rgba(52,211,153,.12), transparent 70%), var(--card2); border: 1px solid rgba(52,211,153,.35); }
.s3-promise p { margin: 0; color: #cfe9df; font-size: .92rem; line-height: 1.6; }
@media (max-width: 760px) { .s3-coach-cols { grid-template-columns: 1fr; } .s3-coach-ava { position: static; } }.s3-coach-3 { grid-template-columns: repeat(3, 1fr); }
.s3-coach-cols p { margin: 0; font-size: .9rem; color: #cfd6ea; line-height: 1.6; }
.s3-worries { margin: 0 0 16px; }
.s3-worries h3 { margin: 0 0 10px; font-size: 1rem; }
.s3-worries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.s3-worries-grid > div { padding: 14px 16px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.s3-worries-grid b { display: block; font-size: .92rem; color: #e9d5ff; margin-bottom: 4px; }
.s3-worries-grid p { margin: 0; font-size: .87rem; color: #cfd6ea; line-height: 1.55; }
@media (max-width: 1000px) { .s3-coach-3, .s3-worries-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .s3-coach-3, .s3-worries-grid { grid-template-columns: 1fr; } }
/* ---- Notenrechner (2026-11-18) ---- */
.nr-head { margin-bottom: 18px; }
.nr-tool { margin-bottom: 22px; }
.nr-top { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.nr-w input[type=range] { width: 100%; accent-color: var(--acc); }
.nr-cols { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 6px; }
.nr-group { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.nr-group h2 { font-size: 1.1rem; margin: 0; }
.nr-list { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-height: 34px; }
.nr-list li { display: inline-flex; align-items: center; gap: 6px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 999px; padding: 3px 6px 3px 10px; }
.nr-list li.nr-empty { background: none; border: 0; padding: 6px 0; }
.nr-chip { font-weight: 700; }
.nr-x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.05rem; line-height: 1; padding: 2px 4px; border-radius: 6px; }
.nr-x:hover { color: var(--err); }
.nr-add { display: flex; gap: 8px; flex-wrap: wrap; }
.nr-add select { flex: 1 1 90px; min-width: 0; }
.nr-avg { margin-top: 10px; color: var(--muted); }
.nr-avg b { color: var(--text); font-size: 1.15rem; }
.nr-result { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 16px; padding: 16px;
  border-radius: 12px; background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(34,211,238,.10)); border: 1px solid var(--line2); }
.nr-big { font-size: 2.6rem; font-weight: 800; line-height: 1.1; }
.nr-ziel-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 8px; }
.nr-ziel-row select { width: auto; min-width: 70px; }
.nr-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 12px; }
.nr-tbl { width: 100%; border-collapse: collapse; margin: 8px 0 14px; }
.nr-tbl th, .nr-tbl td { border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.nr-tbl th { color: var(--muted); font-weight: 600; }
