/* Spieltagsdeal Portal: gemeinsames Design (Farben und Schriften wie im Prototyp) */

@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/barlow-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/barlow-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/barlow-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/barlow-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: italic; font-display: swap; src: url(/fonts/barlow-condensed-latin-800-italic.woff2) format('woff2'); }

:root {
  --navy: #0B1B4D;
  --navy2: #13296E;
  --blue: #1F4BFF;
  --blue2: #3D6BFF;
  --yellow: #FFD60A;
  --yellow-d: #E0BC00;
  --bg: #F3F6FF;
  --muted: #4B5886;
  --border: #C9D3F7;
  --line: #D6DDF5;
  --soft: #EEF2FF;
  --soft2: #E7ECFF;
  --ok-bg: #DDF5E6;
  --ok: #0F5B2E;
  --warn-bg: #FFF6C7;
  --err-bg: #FDE8E8;
  --err: #9B1C1C;
  --display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --sans: 'Barlow', 'Segoe UI', Arial, sans-serif;
  --shadow: 0 1px 0 rgba(11, 27, 77, .05), 0 14px 30px -18px rgba(11, 27, 77, .3);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--navy); font-family: var(--sans); font-size: 17px; line-height: 1.45; }
a { color: var(--blue); }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typografie ---------- */
.kicker { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.kicker.yellow { color: var(--yellow); }
.display { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; line-height: .92; margin: 0; color: var(--navy); }
h1.display { font-size: clamp(44px, 7vw, 72px); }
h2.display { font-size: clamp(32px, 4.5vw, 44px); }
h3.display { font-size: 28px; line-height: 1; }
.h-sec { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin: 0; }
.lead { font-size: 19px; line-height: 1.45; color: var(--muted); max-width: 680px; margin: 0; }
h2.plain, h3.plain { margin: 0; font-size: 20px; line-height: 1.2; }

/* ---------- Layout ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.main { padding-top: 36px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.grow { flex: 1 1 0; min-width: 0; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cols > .col-main { flex: 999 1 560px; min-width: 0; }
.cols > .col-side { flex: 1 1 320px; min-width: 0; }

/* ---------- Kopfzeile ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--border); }
.topbar .container { padding-top: 12px; padding-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand .name { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 25px; line-height: .9; text-transform: uppercase; letter-spacing: .01em; }
.brand .name span { color: var(--blue); }
.brand .sub { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 9px; line-height: 1; text-transform: uppercase; letter-spacing: .5em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 4px 26px; flex-wrap: wrap; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; }
.nav a, .nav button { padding: 10px 0; color: var(--muted); border: 0; border-bottom: 3px solid transparent; text-decoration: none; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.nav a[aria-current="page"], .nav button[aria-current="page"] { color: var(--navy); border-bottom-color: var(--yellow); }
.nav .badge { display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 6px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: 13px; letter-spacing: 0; text-align: center; }
.userbox { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.userbox .who { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; line-height: 1.1; }
.userbox .who b { font-size: 15px; }
.userbox .who span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.footer { border-top: 1px solid var(--border); background: #fff; }
.footer .container { padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.footer a { color: var(--muted); }

/* ---------- Bausteine ---------- */
.card { background: #fff; border: 1.5px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.soft { background: var(--soft); box-shadow: none; }
.card.dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.card.dark .muted { color: #B4C3F5; }
.panel-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 20px; line-height: 1.2; }
.panel-head .num { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1.5px solid transparent; font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--yellow); color: var(--navy); box-shadow: 0 4px 0 var(--yellow-d); font-family: var(--display); font-style: italic; font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; min-height: 52px; }
.btn-primary.small-text { font-size: 20px; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-danger { background: #fff; color: var(--err); border-color: var(--err); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.btn-block { display: flex; width: 100%; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 15px; font-weight: 600; line-height: 1.2; }
.field .hint { font-size: 14px; color: var(--muted); line-height: 1.35; }
.field .err { font-size: 14px; color: var(--err); font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=datetime-local], input[type=date], select, textarea {
  width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; font-family: var(--sans); font-size: 17px; color: var(--navy); }
textarea { padding: 12px 14px; line-height: 1.4; resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: #5A678F; }
input[type=checkbox], input[type=radio] { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--blue); }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.35; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }

.chip { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.25; background: var(--soft2); color: var(--navy); white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); border: 1.5px solid var(--yellow-d); padding: 2.5px 10px; }
.chip.err { background: var(--err-bg); color: var(--err); }
.chip.mute { background: #fff; border: 1.5px solid var(--border); color: var(--muted); padding: 2.5px 10px; }
.chip.dark { background: var(--navy2); color: #fff; }
.chip.yellow { background: var(--yellow); color: var(--navy); font-weight: 700; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; font-size: 16px; font-weight: 500; line-height: 1.4; }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.warn { background: var(--warn-bg); border: 1.5px solid var(--yellow-d); }
.alert.err { background: var(--err-bg); color: var(--err); }
.alert.info { background: var(--soft); border: 1.5px solid var(--border); }
.alert b { font-weight: 700; }

.stat { padding: 16px 18px; background: var(--soft); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }
.stat .k { font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--muted); }
.stat .v { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 44px; line-height: .95; }

.item { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; padding: 16px 20px; background: #fff; border: 1.5px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.item.dim { background: var(--soft2); box-shadow: none; }
.item .date { width: 92px; flex: none; display: flex; flex-direction: column; gap: 2px; }
.item .date .wd { font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.item .date .dt { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 38px; line-height: .95; }
.item .mid { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.item .mid b { font-size: 20px; line-height: 1.15; }
.item .price { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 38px; line-height: .95; text-align: right; }
.item .price small { display: block; font-family: var(--sans); font-style: normal; font-weight: 400; font-size: 13px; color: var(--muted); }

.badge-logo { width: 56px; height: 56px; flex: none; border-radius: 12px; background: var(--navy); color: var(--yellow); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 27px; }

.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 16px; }
table.t th { text-align: left; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.t td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t td.num, table.t th.num { text-align: right; white-space: nowrap; }
table.t tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }

.tile { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 12px; cursor: pointer; font-family: var(--sans); color: var(--navy); border: 1.5px solid var(--border); background: #fff; }
.tile .dot { width: 22px; height: 22px; flex: none; margin-top: 2px; border-radius: 50%; border: 2px solid var(--border); background: #fff; }
.tile[aria-pressed="true"] { border-color: var(--blue); background: var(--soft); }
.tile[aria-pressed="true"] .dot { border-color: var(--blue); background: radial-gradient(circle, var(--blue) 0, var(--blue) 4px, #fff 5px); }
.tile b { display: block; font-size: 18px; line-height: 1.15; margin-bottom: 4px; }
.tile span.t { font-size: 15px; line-height: 1.4; color: var(--muted); }

.kv { display: flex; flex-direction: column; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.25; }
.kv > div > :first-child { color: var(--muted); }
.kv > div > :last-child { font-weight: 600; text-align: right; }

.adimg { display: block; width: 100%; max-height: 260px; object-fit: contain; background: var(--navy2); border-radius: 12px; }
.adimg.small { max-height: 90px; width: auto; }

.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; width: min(92vw, 460px); }
.toast { padding: 13px 18px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(11, 27, 77, .5); }
.toast.err { background: var(--err); }
.toast.ok { background: var(--ok); }

.spinner { width: 28px; height: 28px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--blue); animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.divider { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* ---------- Anmeldung / Startseite ---------- */
.auth { max-width: 520px; margin: 0 auto; width: 100%; }
.tabs { display: flex; gap: 8px; }
.tabs button { flex: 1; min-height: 46px; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; font: 600 16px var(--sans); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.hero { background: var(--navy); color: #fff; }
.hero .container { padding-top: 56px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 span { color: var(--yellow); }
.hero .lead { color: #B4C3F5; }
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps .n { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 44px; line-height: 1; color: var(--blue); }

/* ---------- Fan-Seite (Handy) ---------- */
body.fan { background: var(--bg); }
.fanwrap { max-width: 430px; margin: 0 auto; min-height: 100vh; padding: 18px 20px 28px; display: flex; flex-direction: column; gap: 18px; }
.fan-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.fan-top .back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 17px; font-weight: 600; color: var(--blue); background: none; border: 0; cursor: pointer; padding: 0; font-family: var(--sans); }
.fan h1.display { font-size: 52px; }
.fan-match { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1.5px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); cursor: pointer; text-align: left; width: 100%; font-family: var(--sans); color: var(--navy); }
.fan-match .bl { width: 58px; height: 58px; flex: none; border-radius: 12px; background: var(--navy); color: var(--yellow); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 28px; }
.fan-match .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fan-match .m b { font-size: 20px; line-height: 1.1; }
.fan-dark { background: var(--navy); color: #fff; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.fan-dark h2 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 38px; line-height: .95; text-transform: uppercase; }
.fan-dark h2 span { color: var(--yellow); }
.fan-dark p { margin: 0; font-size: 15px; line-height: 1.4; color: #B4C3F5; }
.fan-dark .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fan-dark .top .sp { font-size: 15px; font-weight: 600; color: #B4C3F5; text-align: right; }
.fan-cta { display: flex; align-items: center; justify-content: center; min-height: 58px; border-radius: 12px; border: 0; background: var(--yellow); color: var(--navy); font-family: var(--display); font-style: italic; font-weight: 800; font-size: 28px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; box-shadow: 0 4px 0 var(--yellow-d); cursor: pointer; width: 100%; padding: 0 12px; }
.fan-cta[disabled] { opacity: .6; cursor: not-allowed; }
.fan-round { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 1.5px solid var(--border); box-shadow: var(--shadow); }
.fan-round.yellow { background: var(--yellow); border: 0; box-shadow: 0 4px 0 var(--yellow-d); }
.codebox { padding: 16px; background: #fff; border: 2px dashed var(--blue); border-radius: 12px; text-align: center; font-family: var(--display); font-weight: 600; font-size: 40px; letter-spacing: .12em; }
.honey { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .main { padding-top: 24px; }
  .item .price { text-align: left; }
  .userbox .who { align-items: flex-start; }
}
@media print {
  .topbar, .footer, .noprint { display: none !important; }
  body { background: #fff; }
}

/* ---------- Ergänzungen ---------- */
input[type=color] { width: 72px; min-height: 52px; padding: 4px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; }
input:disabled, select:disabled, textarea:disabled { background: var(--soft); color: var(--muted); cursor: not-allowed; }
select { appearance: auto; }
details.fold > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.checks { display: grid; gap: 10px 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.group-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mini { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.mini:first-of-type { border-top: 0; }
.mini .when { min-width: 150px; font-weight: 600; }
.mini .grow { flex: 1 1 180px; }
.statrow { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.qrbox { width: min(300px, 100%); padding: 10px; background: #fff; border: 1.5px solid var(--border); border-radius: 12px; }
.qrbox svg { display: block; width: 100%; height: auto; }
.pre { white-space: pre-line; }

.bigprice { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 34px; line-height: 1; }
