/* Bulls Transporte: gemeinsames Stylesheet für Website und Panel.
   Chrom-und-Lack-Look: Graphit, Chromsilber, Bulls-Rot. */
:root {
  --bg: #0c0d10;
  --panel: #14161b;
  --panel-hi: #1a1d24;
  --fg: #eceef1;
  --muted: #9ba2ae;
  --line: #2a2e37;
  --line-hi: #4b515d;
  --chrome: #aeb5be;
  --bull: #b3122a;
  --bull-hi: #d2193a;
  --accent: #ff6178;
  --ok: #4cc38a;
  --warn: #f0b429;
  --focus: #ffffff;
  --font-display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, "Segoe UI", Arial, sans-serif;
  --font-sign: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --chrome-fill: linear-gradient(180deg, #ffffff 0%, #d5d9df 36%, #7d8693 50%, #eceff2 53%, #aab1bb 100%);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 17px; line-height: 1.55; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
a:focus-visible, .btn:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopfleiste */
.top { position: sticky; top: 0; z-index: 10; background: rgba(12, 13, 16, .94); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: .04em; text-transform: uppercase; }
.plate { background: linear-gradient(180deg, var(--bull-hi), #8a0e20); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; letter-spacing: .08em; padding: 1px 9px 0; border-radius: 3px; border: 1px solid #e8aab4; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-family: var(--font-sign); font-weight: 600; font-size: 1.05rem; }
.nav a { text-decoration: none; padding-block: 4px; color: var(--muted); border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--fg); border-bottom-color: var(--chrome); }

.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-sign); font-weight: 700; font-size: 1.1rem; padding: .7em 1.4em; border-radius: 2px; text-decoration: none; border: 1px solid transparent; cursor: pointer; letter-spacing: .02em; background: none; color: var(--fg); }
.btn-red { background: linear-gradient(180deg, var(--bull-hi), #8a0e20); color: #fff; border-color: #e8aab4; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 24px rgba(179, 18, 42, .35); }
.btn-red:hover { filter: brightness(1.08); }
.btn-chrome { border-color: var(--chrome); }
.btn-chrome:hover { background: rgba(255, 255, 255, .08); }
.btn-small { font-size: .95rem; padding: .4em .9em; }
.btn-danger { border-color: #7a2a35; color: #ff8d9e; }
.btn-danger:hover { background: rgba(179, 18, 42, .2); }
.btn.is-pending { opacity: .6; cursor: default; box-shadow: none; }

/* Kopfbereich */
.hero { position: relative; background: radial-gradient(900px 480px at 88% -8%, rgba(179, 18, 42, .5), transparent 62%), radial-gradient(700px 380px at 0% 105%, rgba(150, 160, 180, .14), transparent 60%), var(--bg); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 4px); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 52px; padding-block: clamp(44px, 8vw, 96px); align-items: center; }
.hero h1 { font-family: var(--font-display); text-transform: uppercase; line-height: .86; }
.hero h1 .l1 { display: block; font-weight: 900; font-size: clamp(5rem, 22vw, 13rem); letter-spacing: .01em; color: #d5d9df; background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .95) 50%, transparent 60%) 0 0 / 250% 100% no-repeat, var(--chrome-fill); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .6)); animation: shine 1.8s .5s ease-in-out 1 both; }
.hero h1 .l2 { display: block; margin-top: .6rem; font-weight: 700; font-size: clamp(1.3rem, 5.6vw, 2.5rem); letter-spacing: .36em; }
@keyframes shine { from { background-position: 100% 0, 0 0; } to { background-position: 0% 0, 0 0; } }
.hero .lead { margin-top: 28px; max-width: 36ch; font-size: clamp(1.1rem, 2.4vw, 1.35rem); line-height: 1.5; color: #d3d7de; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.scene { border-bottom: 1px solid var(--line-hi); border-top: 1px solid var(--line-hi); background: #0f1114; }
.scene img { width: 100%; height: clamp(180px, 30vw, 380px); object-fit: cover; object-position: 60% 60%; }

/* Fahrerausweis */
.card-stage { perspective: 900px; justify-self: center; width: 100%; max-width: 430px; }
.id-card { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 25%; position: relative; width: 100%; aspect-ratio: 1.586; padding: 20px 22px; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, #2c3038 0%, #111317 48%, #30353e 100%); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 34px 60px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .22); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .18s ease-out; }
.id-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .24), transparent 46%); pointer-events: none; }
.id-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 64%, var(--bull) 64% 68%, transparent 68%); opacity: .85; pointer-events: none; }
.id-card > * { position: relative; z-index: 1; }
.id-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.id-top .kind { font-family: var(--font-sign); font-weight: 600; font-size: .95rem; color: var(--muted); }
.chip { width: 46px; height: 34px; border-radius: 6px; background: linear-gradient(135deg, #f1f3f5, #8b939e 55%, #d8dce1); border: 1px solid rgba(255, 255, 255, .4); position: relative; }
.chip::before, .chip::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(0, 0, 0, .3); }
.chip::before { top: 11px; }
.chip::after { top: 22px; }
.id-name { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; text-transform: uppercase; letter-spacing: .03em; }
.id-meta { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 8px; font-family: var(--font-sign); font-size: .95rem; font-variant-numeric: tabular-nums; }
.id-meta span { color: var(--muted); }
.id-meta strong { font-weight: 600; margin-left: 6px; }
.id-note { margin-top: 14px; text-align: center; font-size: .9rem; color: var(--muted); }

/* Abschnitte */
.band { padding-block: clamp(56px, 9vw, 112px); }
.band + .band { border-top: 1px solid var(--line); }
.band h2.title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 6.4vw, 4rem); line-height: .94; text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; max-width: 16ch; }
.intro { margin-top: 18px; max-width: 56ch; color: var(--muted); font-size: 1.1rem; }

.games { margin-top: 48px; border-bottom: 1px solid var(--line-hi); }
.game { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 40px; padding: 28px 12px; border-top: 1px solid var(--line-hi); transition: background .2s; }
.game:hover { background: var(--panel); }
.game img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line-hi); }
.game h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.8vw, 3rem); line-height: 1; text-transform: uppercase; }
.game p { margin-top: 10px; max-width: 54ch; color: #cfd3da; }
.game .meta { font-family: var(--font-sign); font-weight: 600; color: var(--accent); }

.perks { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 36px 44px; }
.perk { border-top: 1px solid var(--line-hi); padding-top: 18px; }
.perk h3 { font-family: var(--font-sign); font-weight: 700; font-size: 1.3rem; }
.perk p { margin-top: 6px; color: var(--muted); }

.tiers { margin-top: 48px; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 32px 28px; }
.tier { min-width: 0; }
.tier .bar { height: 4px; background: var(--line); }
.tier .bar i { display: block; height: 100%; width: var(--lvl); background: var(--chrome-fill); }
.tier:last-child .bar i { background: linear-gradient(90deg, var(--bull), var(--bull-hi)); }
.tier strong { display: block; margin-top: 16px; font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1.05; text-transform: uppercase; }
.tier span { display: block; margin-top: 4px; color: var(--muted); }

.table-scroll { margin-top: 36px; overflow-x: auto; border-top: 1px solid var(--chrome); }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-family: var(--font-sign); font-size: 1.05rem; }
th, td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
th { font-weight: 600; font-size: .92rem; color: var(--muted); }
td { font-variant-numeric: tabular-nums; font-weight: 500; }
td.day { font-weight: 700; }
.tag { display: inline-block; font-weight: 700; font-size: .88rem; padding: 0 9px; border-radius: 2px; border: 1px solid var(--chrome); }
.tag.ok { border-color: var(--ok); color: var(--ok); }
.tag.warn { border-color: var(--warn); color: var(--warn); }
.tag.red { border-color: var(--accent); color: var(--accent); }
.note { margin-top: 14px; font-size: .95rem; color: var(--muted); }

.gallery { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.gallery figure { border: 1px solid var(--line-hi); background: var(--panel); }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery figcaption { padding: 12px 14px 14px; }
.gallery figcaption strong { display: block; font-family: var(--font-sign); font-size: 1.1rem; }
.gallery figcaption span { color: var(--muted); font-size: .95rem; }

.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; margin-top: 48px; }
.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 24px 58px; max-width: 52ch; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--chrome); font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; border-radius: 50%; }
.steps strong { display: block; font-family: var(--font-sign); font-size: 1.2rem; }
.steps span { color: var(--muted); }

.foot { border-top: 1px solid var(--line-hi); padding-block: 36px 52px; }
.foot .wrap { display: grid; gap: 16px; justify-items: start; }
.foot p { max-width: 74ch; font-size: .92rem; color: var(--muted); }
.foot a { color: var(--muted); }

/* Formulare */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .lab { font-family: var(--font-sign); font-weight: 600; font-size: .98rem; }
.field .help { font-size: .88rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=datetime-local], input[type=file], select, textarea { width: 100%; background: #0f1115; color: var(--fg); border: 1px solid var(--line-hi); border-radius: 2px; padding: .65em .8em; font: inherit; }
textarea { min-height: 110px; resize: vertical; }
input:disabled { opacity: .6; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { margin-top: .35em; accent-color: var(--bull-hi); }
.row2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.hp { position: absolute; left: -9999px; }
.alert { padding: 12px 16px; border: 1px solid var(--line-hi); border-left-width: 4px; margin-bottom: 16px; background: var(--panel); }
.alert.ok { border-left-color: var(--ok); }
.alert.err { border-left-color: var(--accent); }
.alert.info { border-left-color: var(--chrome); }
.need { background: var(--panel); border: 1px solid var(--line-hi); padding: 28px; align-self: start; }
.need h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; text-transform: uppercase; line-height: 1; margin-bottom: 18px; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 20px; background: radial-gradient(800px 420px at 80% -10%, rgba(179, 18, 42, .4), transparent 60%), var(--bg); }
.login-box { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line-hi); padding: 30px; }
.login-box h1 { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; text-transform: uppercase; margin: 18px 0 20px; line-height: 1; }
.demo-hint { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.demo-hint code { color: var(--fg); background: #0f1115; padding: 1px 6px; }

/* Panel */
.app { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--panel); border-bottom: 1px solid var(--line-hi); padding: 16px 20px; }
.side .brand { font-size: 1.3rem; }
.side nav { display: flex; flex-wrap: wrap; gap: 6px 4px; margin-top: 14px; }
.side nav a { text-decoration: none; padding: 6px 12px; font-family: var(--font-sign); font-weight: 600; color: var(--muted); border: 1px solid transparent; }
.side nav a:hover { color: var(--fg); border-color: var(--line-hi); }
.side nav a.on { color: var(--fg); background: var(--panel-hi); border-color: var(--line-hi); }
.side .who { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.side .who strong { color: var(--fg); display: block; }
.side .who a { color: var(--accent); }
.main { padding: 28px 20px 64px; min-width: 0; }
.main h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 2.8rem); text-transform: uppercase; line-height: 1; margin-bottom: 22px; }
.main h2 { font-family: var(--font-sign); font-weight: 700; font-size: 1.3rem; margin: 30px 0 12px; }
.demo-bar { background: var(--bull); color: #fff; text-align: center; font-family: var(--font-sign); font-weight: 600; padding: 6px 12px; font-size: .95rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 16px; margin-bottom: 8px; }
.stat { border: 1px solid var(--line-hi); background: var(--panel); padding: 16px 18px; }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .95rem; }
.box { border: 1px solid var(--line-hi); background: var(--panel); padding: 22px; margin-bottom: 20px; }
.box > h2:first-child { margin-top: 0; }
.ptable { overflow-x: auto; border: 1px solid var(--line-hi); background: var(--panel); }
.ptable table { min-width: 560px; font-size: 1rem; }
.ptable th, .ptable td { padding: 11px 14px; }
.ptable tr:last-child td { border-bottom: 0; }
.inline { display: inline; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.permgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px 20px; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-s { font-family: var(--font-sign); font-size: .85rem; border: 1px solid var(--line-hi); padding: 0 8px; color: var(--muted); }
.muted { color: var(--muted); }
.thumb { width: 120px; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line-hi); }

@media (min-width: 760px) {
  .game { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; }
  .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; }
  .card-stage { justify-self: end; }
  .app { grid-template-columns: 250px minmax(0, 1fr); }
  .side { border-bottom: 0; border-right: 1px solid var(--line-hi); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .side nav { flex-direction: column; }
  .main { padding: 36px 40px 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 .l1 { animation: none; }
  .id-card { transition: none; }
}
