/* TT-Planer – dunkles Design. Akzent Orange (Ball), Sekundär Blau (Tisch). */
:root {
  color-scheme: dark;
  --bg: #0b1118;
  --bg-2: #0f1720;
  --surface: #141d28;
  --surface-2: #1a2533;
  --surface-3: #223042;
  --line: #263446;
  --line-strong: #34465c;
  --text: #e8eef6;
  --text-2: #b6c3d3;
  --muted: #7d8da1;
  --accent: #ff6a2b;
  --accent-2: #ff8a3d;
  --accent-soft: rgba(255, 106, 43, .14);
  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, .14);
  --ok: #22c55e;
  --ok-soft: rgba(34, 197, 94, .13);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, .14);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, .13);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -12px rgba(0, 0, 0, .55);
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font: 15.5px/1.5 var(--font); color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(59, 130, 246, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(255, 106, 43, .08), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  font-feature-settings: "tnum" 1;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #ffb07a; }
h1, h2, h3, h4 { letter-spacing: -.015em; line-height: 1.2; }
h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 .25rem; font-weight: 750; }
h2 { font-size: 1.12rem; margin: 0 0 .9rem; font-weight: 680; }
h3 { font-size: 1rem; margin: 0 0 .7rem; font-weight: 650; }
code { font-family: var(--mono); font-size: .85em; background: var(--surface-3); padding: .1em .4em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .7rem clamp(.8rem, 3vw, 1.6rem);
  background: rgba(11, 17, 24, .78); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand-accent { color: var(--accent); margin: 0 .05em; }
.topbar nav { display: flex; gap: .7rem; align-items: center; }
.user-chip { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-2); font-size: .9rem; }
.avatar {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 700; font-size: .85rem;
}

.container { max-width: 1240px; margin: 0 auto; padding: clamp(1rem, 3vw, 1.8rem) clamp(.8rem, 3vw, 1.6rem) 3rem; }
.container.mobile { max-width: 540px; }

/* ---------- Karten ---------- */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.3rem; margin-bottom: 1.1rem; box-shadow: var(--shadow);
}
.card.narrow { max-width: 600px; margin-left: auto; margin-right: auto; }
.card.attention { border-color: rgba(245, 158, 11, .55); background: linear-gradient(180deg, rgba(245, 158, 11, .09), var(--surface) 70%); }
.card.attention h2::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-right: .55rem; vertical-align: middle; box-shadow: 0 0 0 4px var(--warn-soft); }
.card.champion {
  text-align: center; font-size: 1.05rem; padding: 1.6rem; color: var(--text-2);
  border-color: rgba(255, 138, 61, .5);
  background: radial-gradient(600px 160px at 50% 0%, rgba(255, 138, 61, .22), transparent 70%), var(--surface);
}
.card.champion strong { font-size: 1.8rem; display: block; margin-top: .25rem; background: linear-gradient(90deg, #ffd29a, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.card-head h2 { margin: 0; }
details > summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; align-items: center; gap: .5rem; color: var(--text-2); }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "›"; display: inline-block; transition: transform .15s; font-size: 1.25rem; line-height: 1; color: var(--muted); }
details[open] > summary::before { transform: rotate(90deg); }
details[open] > summary { margin-bottom: .9rem; }
.danger-zone { border-color: rgba(239, 68, 68, .25); background: var(--surface); }
.danger-zone summary { color: #f87171; }

/* ---------- Seitenkopf & Tabs ---------- */
.thead { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--accent-2); margin-bottom: .4rem; display: flex; align-items: center; gap: .7rem; }
.meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--muted); font-size: .88rem; align-items: center; }
.meta > span { display: inline-flex; align-items: center; gap: .35rem; }
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: .8rem; width: min(420px, 100%); }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.tabs {
  display: flex; gap: .25rem; margin-bottom: 1.3rem; overflow-x: auto; padding: .3rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; width: fit-content; max-width: 100%;
}
.tabs a { padding: .45rem .95rem; color: var(--muted); border-radius: 9px; white-space: nowrap; font-weight: 550; font-size: .93rem; }
.tabs a:hover { color: var(--text); background: var(--surface-2); }
.tabs a.active { color: #fff; background: linear-gradient(180deg, var(--surface-3), var(--surface-2)); box-shadow: 0 0 0 1px var(--line-strong) inset; }

/* ---------- Texte, Hinweise, Badges ---------- */
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.flash {
  padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem;
  background: var(--ok-soft); color: #bbf7d0; border: 1px solid rgba(34, 197, 94, .35);
}
.flash.error { background: var(--danger-soft); color: #fecaca; border-color: rgba(239, 68, 68, .4); }
.badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 99px;
  font-size: .72rem; font-weight: 650; letter-spacing: .02em; vertical-align: middle; white-space: nowrap;
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line-strong);
}
.badge.ok { background: var(--ok-soft); color: #86efac; border-color: rgba(34, 197, 94, .35); }
.badge.warn { background: var(--warn-soft); color: #fcd34d; border-color: rgba(245, 158, 11, .4); }
.badge.accent { background: var(--accent-soft); color: #ffb48a; border-color: rgba(255, 106, 43, .4); }
.badge.blue { background: var(--blue-soft); color: #93c5fd; border-color: rgba(59, 130, 246, .4); }
.live { display: inline-flex; align-items: center; gap: .45rem; color: #fca5a5; font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); } 70% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .5rem 1rem; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; font-size: .92rem;
  cursor: pointer; line-height: 1.25; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
}
.btn:hover { color: var(--text); border-color: #4a5f78; background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px -8px rgba(255, 106, 43, .8);
}
.btn.primary:hover { filter: brightness(1.07); color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { color: #fca5a5; border-color: rgba(239, 68, 68, .45); background: transparent; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.small { padding: .3rem .7rem; font-size: .82rem; border-radius: 8px; }
.btn.big { padding: .85rem 1.5rem; font-size: 1.05rem; border-radius: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.actions { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }

/* ---------- Formulare ---------- */
input, select, textarea {
  font: inherit; padding: .55rem .75rem; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--bg-2); color: var(--text); width: 100%; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #5c6c80; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); padding: 0; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); }
select { appearance: none; -webkit-appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237d8da1' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; }
textarea { font-family: var(--mono); font-size: .88rem; line-height: 1.55; }
label { display: flex; flex-direction: column; gap: .35rem; font-size: .84rem; color: var(--muted); font-weight: 550; }
label.check { flex-direction: row; align-items: center; gap: .6rem; color: var(--text-2); font-weight: 500; font-size: .92rem; }
.stack { display: flex; flex-direction: column; gap: .9rem; }
.inline { display: flex; gap: .7rem; align-items: flex-end; flex-wrap: wrap; }
.inline label { flex-direction: row; align-items: center; gap: .5rem; }
.inline.tight { gap: .35rem; align-items: center; margin: 0; }
.inline select, .inline input { width: auto; }
.inline.tight select { padding-top: .3rem; padding-bottom: .3rem; font-size: .85rem; }
.w-sm { width: 6.5rem !important; }
.grow { flex: 1; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem 1rem; }
.grid-form .span-2 { grid-column: 1 / -1; }

/* ---------- Tabellen ---------- */
.table, .standings { width: 100%; border-collapse: separate; border-spacing: 0; }
.table td, .table th, .standings td, .standings th { padding: .6rem .55rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table tr:last-child td, .standings tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.table td input { padding: .4rem .6rem; }
.standings th, .table th { font-size: .7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.standings td:not(:nth-child(2)), .standings th:not(:nth-child(2)) { text-align: center; white-space: nowrap; }
.standings td:first-child { width: 2.4rem; }
.standings td, .standings th { padding-left: .35rem; padding-right: .35rem; }
.standings td:nth-child(2) { width: 100%; max-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.standings td:nth-child(2) .small { font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.rank { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 8px; font-weight: 700; font-size: .85rem; background: var(--surface-3); color: var(--text-2); }
.standings tr.qualified .rank { background: var(--ok-soft); color: #86efac; box-shadow: 0 0 0 1px rgba(34, 197, 94, .35) inset; }
.standings td:last-child strong { color: var(--accent-2); font-size: 1.02rem; }
tr.dim { opacity: .5; }
.sets { color: var(--muted); font-size: .8rem; font-family: var(--mono); }
.score { font-weight: 800; font-size: 1.02rem; font-family: var(--mono); }
.pname.winner { font-weight: 700; color: #fff; }
.vs { color: var(--muted); font-size: .8rem; margin: 0 .35rem; }
.stage { font-size: .76rem; color: var(--muted); font-weight: 650; white-space: nowrap; letter-spacing: .02em; }

/* ---------- Listen & Raster ---------- */
.hero { padding: clamp(.6rem, 3vw, 1.6rem) 0 1.4rem; }
.hero p { color: var(--text-2); max-width: 640px; margin: .5rem 0 0; }
.tournament-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.tcard { display: flex; flex-direction: column; gap: .8rem; margin: 0; position: relative; overflow: hidden; }
.tcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--blue)); opacity: .85; }
.tcard h3 { font-size: 1.15rem; margin: .1rem 0 .25rem; }
.tcard .actions { margin-top: auto; }
.stat-row { display: flex; gap: 1.4rem; }
.stat { display: flex; flex-direction: column; }
.stat b { font-size: 1.3rem; font-weight: 750; }
.stat span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.empty { text-align: center; padding: 2.4rem 1rem; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); margin-bottom: 1.4rem; }
.section-title { display: flex; align-items: center; gap: .6rem; margin: 1.6rem 0 .9rem; font-size: 1.15rem; }
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; margin-bottom: 1.1rem; }
.groups-grid .card { margin: 0; }
.group-card h3 { display: flex; align-items: center; gap: .6rem; }
.group-card { container-type: inline-size; }
@container (max-width: 430px) { .group-card .hide-sm { display: none; } }
.group-letter { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9px; background: var(--blue-soft); color: #93c5fd; font-weight: 800; box-shadow: 0 0 0 1px rgba(59, 130, 246, .35) inset; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border: 0; }
.steps { list-style: none; padding: 0; margin: 0 0 1.1rem; counter-reset: step; display: grid; gap: .5rem; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: .8rem; padding: .6rem .8rem; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--surface-3); font-weight: 700; font-size: .85rem; flex: none; }
.steps li a { color: inherit; }
.steps li a:hover { color: var(--accent-2); }
.steps li.done { color: var(--muted); }
.steps li.done::before { content: "✓"; background: var(--ok-soft); color: #86efac; }
.steps li.current { border-color: rgba(255, 106, 43, .5); background: var(--accent-soft); color: #fff; font-weight: 600; }
.steps li.current::before { background: var(--accent); color: #fff; }

/* ---------- Tische ---------- */
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem; }
.table-tile {
  position: relative; border-radius: var(--radius); padding: .9rem .9rem 1rem; text-align: center; overflow: hidden;
  background: linear-gradient(160deg, #143553, #0e2338 75%);
  border: 1px solid rgba(59, 130, 246, .45);
  box-shadow: 0 10px 30px -14px rgba(59, 130, 246, .6);
}
.table-tile > * { position: relative; z-index: 1; }
.table-tile .table-no { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: #93c5fd; margin-bottom: .5rem; display: flex; justify-content: center; align-items: baseline; gap: .45rem; }
.table-tile .table-no b { font-size: 1.7rem; color: #fff; letter-spacing: 0; line-height: 1; }
.table-tile .player-line { font-weight: 650; font-size: 1rem; }
.table-tile .vs { display: block; margin: .1rem 0; }
.table-tile .stage { display: block; margin-top: .55rem; color: #8fb3d9; }
.table-tile .actions { justify-content: center; margin-top: .8rem; }
.table-tile .btn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .15); }
.table-tile .btn:hover { background: rgba(255, 255, 255, .12); }
.upcoming li { display: flex; gap: .8rem; align-items: center; }
.upcoming .nr { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; border-radius: 7px; background: var(--surface-3); color: var(--muted); font-size: .75rem; font-weight: 700; }

/* ---------- KO-Baum ---------- */
.bracket { display: flex; gap: 2.2rem; overflow-x: auto; padding: .3rem .2rem 1rem; }
.bracket-round { display: flex; flex-direction: column; justify-content: space-around; min-width: 220px; gap: .8rem; }
.bracket-round h4 { margin: 0 0 .2rem; text-align: center; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.bracket-round:last-child h4 { color: var(--accent-2); }
.bracket-match {
  position: relative; display: block; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--bg-2); color: var(--text); transition: border-color .15s, transform .1s;
}
.bracket-round:not(:last-child) .bracket-match::after { content: ""; position: absolute; right: -1.15rem; top: 50%; width: 1.1rem; height: 1px; background: var(--line-strong); }
.bracket-round:not(:first-child) .bracket-match::before { content: ""; position: absolute; left: -1.15rem; top: 50%; width: 1.1rem; height: 1px; background: var(--line-strong); }
a.bracket-match:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.bracket-match.status-playing { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.bracket-match.status-reported { border-color: var(--warn); }
.bracket-round:last-child .bracket-match { border-color: rgba(255, 138, 61, .55); box-shadow: 0 10px 30px -14px rgba(255, 106, 43, .7); }
.bm-row { display: flex; justify-content: space-between; padding: .45rem .7rem; gap: .5rem; }
.bm-row + .bm-row { border-top: 1px solid var(--line); }
.bm-row span:last-child { font-weight: 800; font-family: var(--mono); color: var(--text-2); }
.bm-row:has(.winner) span:last-child { color: var(--accent-2); }
.bm-info { font-size: .7rem; color: #93c5fd; padding: 0 .7rem .4rem; font-weight: 600; }

/* ---------- Ergebniseingabe ---------- */
.set-inputs { display: flex; flex-direction: column; gap: .5rem; }
.set-head, .set-row { display: grid; grid-template-columns: 4.2rem 1fr 1rem 1fr; gap: .55rem; align-items: center; }
.set-head .pl { font-weight: 700; text-align: center; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.set-row > span:first-child { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.set-row input { text-align: center; font-size: 1.6rem; font-weight: 750; padding: .55rem; font-family: var(--mono); border-radius: 12px; }
.set-row span:nth-child(3) { text-align: center; color: var(--muted); font-weight: 800; }
.matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .7rem; text-align: center; margin: .9rem 0 1.2rem; }
.matchup .side { font-size: 1.15rem; font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; }
.matchup .side small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; margin-top: .2rem; }
.matchup .vs-big { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); font-weight: 800; font-size: .78rem; box-shadow: 0 0 0 1px rgba(255, 106, 43, .35) inset; }
.qr-small { display: inline-block; background: #fff; padding: 6px; border-radius: 10px; line-height: 0; }
.qr-small svg { width: 150px; height: 150px; }

/* ---------- Druck (immer hell) ---------- */
.sheets { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; }
.sheet { border: 1px dashed #9aa4b1; padding: 4mm; break-inside: avoid; background: #fff; color: #111; border-radius: 6px; }
.sheet .muted { color: #555; }
.sheet-head { display: flex; justify-content: space-between; font-size: .85rem; border-bottom: 1px solid #ccc; padding-bottom: 2mm; }
.sheet-body { display: flex; gap: 4mm; align-items: center; padding-top: 2mm; }
.sheet-players { flex: 1; }
.sheet-players .big { font-size: 1.1rem; font-weight: 700; }
.sheet-sets { margin-top: 3mm; border-collapse: collapse; }
.sheet-sets td { border: 1px solid #999; padding: 3mm 2mm; min-width: 12mm; text-align: center; color: #111; }
.sheet-qr { text-align: center; }
.sheet-qr svg { width: 32mm; height: 32mm; }
.table-qrs { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; }
.table-qr { border: 1px dashed #9aa4b1; text-align: center; padding: 6mm; break-inside: avoid; background: #fff; color: #111; border-radius: 6px; }
.table-qr svg { width: 60mm; height: 60mm; }
.tq-title { font-size: 2rem; font-weight: 800; }

@media (max-width: 680px) {
  body { font-size: 15px; }
  .hide-sm { display: none; }
  .card { padding: .95rem; border-radius: 12px; }
  .groups-grid { grid-template-columns: 1fr; }
  .sheets, .table-qrs { grid-template-columns: 1fr; }
  .tabs { width: 100%; }
  .table td, .table th { padding: .5rem .35rem; }
  .thead .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print {
  .no-print, .topbar, .tabs, .flash, .thead { display: none !important; }
  body { background: #fff !important; color: #111; }
  .container { max-width: none; padding: 0; }
  .sheets, .table-qrs { grid-template-columns: 1fr 1fr; }
}

/* ---------- Anmeldung ---------- */
.reg-grid { display: grid; grid-template-columns: 1fr auto; gap: 1.4rem; align-items: start; }
.reg-qr { text-align: center; display: flex; flex-direction: column; gap: .4rem; align-items: center; }
.copy-row { display: flex; gap: .45rem; }
.copy-row input { font-family: var(--mono); font-size: .85rem; color: var(--text-2); }
.copy-row .btn { flex: none; }
.btn.copied { border-color: var(--ok); color: #86efac; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash.warn-box { background: var(--warn-soft); color: #fde68a; border-color: rgba(245, 158, 11, .4); }
@media (max-width: 680px) {
  .reg-grid { grid-template-columns: 1fr; }
  .copy-row { flex-wrap: wrap; }
}
