/* 11ONE – Dark Sport-App: Schwarz, Weiss, Rot */

:root {
  --bg: #08080a;
  --surface: #111114;
  --surface-2: #19191d;
  --surface-3: #232328;
  --paper: #111114;
  --ink: #f4f4f6;
  --ink-2: #c7c7cd;
  --muted: #85858e;
  --line: rgba(255, 255, 255, .09);
  --line-soft: rgba(255, 255, 255, .06);
  --line-strong: rgba(255, 255, 255, .18);
  --red: #ff2b1c;
  --red-2: #d91a0d;
  --red-soft: rgba(255, 43, 28, .14);
  --accent: #ff2b1c;
  --danger: #ff4d3d;
  --ok: #2fd27a;

  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --radius: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.red { color: var(--red); }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */

.btn {
  --b-bg: var(--ink);
  --b-fg: #0a0a0a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--b-bg);
  color: var(--b-fg);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible, .chip:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.btn--accent, .btn--red { --b-bg: var(--red); --b-fg: #fff; box-shadow: 0 8px 24px -10px rgba(255, 43, 28, .7); }
.btn--accent:hover, .btn--red:hover { --b-bg: #ff4334; }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { --b-bg: rgba(255, 255, 255, .06); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--twint { --b-bg: #fff; --b-fg: #000; box-shadow: none; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 10, .72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; text-decoration: none; }
.logo__img { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav .btn:not(.btn--ghost) { --b-bg: var(--red); --b-fg: #fff; }
@media (max-width: 760px) { .nav__links a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(48px, 8vw, 104px) 0 clamp(32px, 5vw, 56px); overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(closest-side, rgba(255, 43, 28, .18), transparent 70%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255, 43, 28, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(255, 43, 28, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 43, 28, 0); } }

.hero__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(56px, 10vw, 136px);
  line-height: .92;
  letter-spacing: -.055em;
}
.hero__title .dot { color: var(--red); }
.hero__claim { margin: 24px 0 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; letter-spacing: -.02em; }
.hero__text { max-width: 44ch; margin: 8px 0 32px; color: var(--muted); font-size: 17px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.hero__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .14); animation: spin 60s linear infinite; }
.hero__ring--2 { inset: 9%; border: 1px solid var(--line); animation: none; }
.hero__logo {
  position: relative;
  width: 64%;
  height: auto;
  background: #fff;
  border-radius: 50%;
  padding: 6%;
  box-shadow: 0 0 0 8px rgba(255, 43, 28, .12), 0 30px 80px -20px rgba(255, 43, 28, .45);
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
}

/* Nächstes Event: Countdown und Kacheln */
.next { position: relative; margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 12px; }
.next__main {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px 32px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
}
.next__label { margin: 0 0 4px; color: var(--red); }
.next__title { margin: 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.next__meta { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.countdown { display: flex; gap: 8px; }
.countdown__unit { min-width: 64px; padding: 10px 8px 8px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-soft); text-align: center; }
.countdown__unit b { display: block; font-family: var(--mono); font-size: 28px; font-weight: 600; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.countdown__unit span { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.tile__label { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.tile__value { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.tile__sub { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.tile--red { background: var(--red); border-color: var(--red); }
.tile--red .tile__label, .tile--red .tile__sub { color: rgba(255, 255, 255, .8); }
.tile .capacity { margin-top: 12px; }

@media (max-width: 960px) {
  .next__main { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .countdown__unit { min-width: 0; flex: 1; }
  .tile { padding: 16px; }
  .tile__value { font-size: 24px; }
}

/* ---------- Laufband ---------- */

.ticker { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.ticker__track { display: inline-flex; gap: 40px; padding: 14px 0; animation: marquee 50s linear infinite; }
.ticker__item { display: inline-flex; align-items: center; gap: 40px; font-size: 14px; font-weight: 500; color: var(--muted); }
.ticker__item::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.ticker__item em { font-style: normal; color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sektionen ---------- */

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__kicker { margin: 0 0 10px; color: var(--red); font-size: 14px; font-weight: 600; }
.headline { margin: 0; font-weight: 800; font-size: clamp(38px, 5.5vw, 68px); line-height: 1; letter-spacing: -.05em; }
.lead { max-width: 46ch; margin: 0; color: var(--muted); font-size: 17px; }

/* ---------- Filter ---------- */

.filters { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.filters[hidden] { display: none; }
.chip { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.chip:hover { color: var(--ink); }
.chip.is-active { background: var(--ink); color: #0a0a0a; }

/* ---------- Event-Karten ---------- */

.events { display: grid; gap: 14px; }

.event {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr 220px;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease);
}
.event:hover { border-color: var(--line-strong); }

.event__date { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 12px; border-right: 1px solid var(--line-soft); text-align: center; }
.event__day { font-size: 44px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.event__month { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.event__time { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.event__body { padding: 24px 28px; min-width: 0; }
.event__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-3); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pill--red { background: var(--red-soft); color: #ff7a6f; }
.pill--solid { background: var(--red); color: #fff; }
.event__title { margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
.event__where { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.event__desc { margin: 0 0 18px; max-width: 62ch; color: var(--ink-2); font-size: 15px; }

.prices { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.prices li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; color: var(--ink-2); }
.prices li b { color: var(--ink); font-weight: 600; }
.prices li.is-out { opacity: .4; }
.prices li.is-out span { text-decoration: line-through; }

.capacity { display: flex; align-items: center; gap: 12px; }
.capacity__bar { flex: 1; max-width: 280px; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.capacity__bar i { display: block; height: 100%; border-radius: 6px; background: var(--ink); transition: width 1s var(--ease); }
.capacity.is-low .capacity__bar i { background: var(--red); }
.capacity__text { font-size: 13px; color: var(--muted); white-space: nowrap; }
.capacity.is-low .capacity__text { color: #ff7a6f; }

.event__cta { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 24px; border-left: 1px solid var(--line-soft); background: rgba(255, 255, 255, .015); }
.event__price { font-size: 26px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.event__price small { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }

.event.is-soldout .event__body, .event.is-soldout .event__date, .event.is-soldout .event__price { opacity: .5; }
.stamp { display: none; }

@media (max-width: 860px) {
  .event { grid-template-columns: 84px 1fr; }
  .event__day { font-size: 34px; }
  .event__body { padding: 20px; }
  .event__cta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; border-left: 0; border-top: 1px solid var(--line-soft); padding: 16px 20px; }
  .event__price { font-size: 22px; }
}

.empty { padding: 48px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); text-align: center; color: var(--muted); }

/* ---------- Partner ---------- */

.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 48px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line-soft); }
.partners .mono { color: var(--muted); }
.partners__logo { font-size: 28px; line-height: 1; color: var(--ink-2); opacity: .8; transition: opacity .2s; }
.partners__logo:hover { opacity: 1; }
.partners__logo--macron { font-weight: 800; font-style: italic; letter-spacing: -.04em; }
.partners__logo--kfit { font-weight: 800; letter-spacing: .02em; }
.partners__logo--kfit i { font-style: normal; font-weight: 300; margin: 0 2px; }
.partners__cta { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.partners__cta:hover { color: var(--ink); }
@media (max-width: 560px) { .partners__cta { margin-left: 0; width: 100%; } }

/* ---------- Ablauf ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.step__time { display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--red); }
.step__title { margin: 28px 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step--final { background: var(--red); border-color: var(--red); }
.step--final .step__time, .step--final p { color: rgba(255, 255, 255, .85); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Wir ---------- */

.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__photo { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; background: var(--surface); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.about__photo::after { content: ''; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(8, 8, 10, .55)); pointer-events: none; }
.about__copy { display: grid; gap: 24px; min-width: 0; }
.about__copy .section__kicker { margin: 0; }
.founders { margin: 0; font-weight: 800; font-size: clamp(40px, 5.6vw, 84px); line-height: .98; letter-spacing: -.055em; }
.founders span { display: block; }
.founders .amp { color: var(--red); font-weight: 400; }
.about__text { margin: 0; max-width: 40ch; color: var(--muted); font-size: 18px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- Anfrage ---------- */

.book {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--r-lg);
  background: var(--red);
  overflow: hidden;
}
.book::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .08); pointer-events: none; }
.book h2 { margin: 0 0 12px; font-weight: 800; font-size: clamp(30px, 4vw, 48px); line-height: 1.02; letter-spacing: -.05em; }
.book p { margin: 0; max-width: 46ch; color: rgba(255, 255, 255, .85); }
.book__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.book .btn--ghost { border-color: rgba(255, 255, 255, .5); --b-fg: #fff; }
.book .btn--ghost:hover { --b-bg: rgba(255, 255, 255, .12); }
@media (max-width: 760px) { .book { grid-template-columns: 1fr; } .book__actions { justify-content: flex-start; } }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); border-color: var(--red); }
.faq summary:hover { color: #fff; }
.faq details p { margin: 0 0 20px; max-width: 64ch; color: var(--muted); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.footer { padding: 56px 0 32px; border-top: 1px solid var(--line-soft); }
.footer__brand { display: flex; align-items: center; gap: 20px; margin: 0 0 40px; }
.footer__logo { width: 64px; height: 64px; background: #fff; border-radius: 50%; padding: 3px; flex: none; }
.footer__big { margin: 0; font-weight: 800; font-size: clamp(64px, 14vw, 200px); line-height: .85; letter-spacing: -.07em; color: var(--surface-3); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--ink); }

/* ---------- Dialog ---------- */

dialog {
  width: min(540px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8);
  overflow: auto;
}
dialog::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(6px); }
dialog[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.dlg { padding: 28px; position: relative; }
.dlg__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); font-size: 18px; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.dlg__close:hover { background: var(--surface-3); color: #fff; }
.dlg__eyebrow { margin: 0 0 6px; color: var(--red); }
.dlg__title { margin: 0 44px 6px 0; font-size: 26px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.dlg__meta { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.dlg__desc { margin: 0 0 24px; padding: 16px; border-radius: var(--r); background: var(--surface-2); font-size: 15px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #5b5b63; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: var(--surface-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.types { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; }
.type { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.type:hover { border-color: var(--line-strong); }
.type:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.type:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.type input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.type.is-out { cursor: not-allowed; opacity: .4; }
.type__body { display: grid; gap: 3px; flex: 1; min-width: 0; }
.type__head { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; }
.type__desc { font-size: 13px; color: var(--muted); }
.type__left { font-size: 11px; color: var(--muted); }

.qty { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); margin-bottom: 14px; }
.qty__label b { display: block; font-size: 15px; font-weight: 600; }
.qty__label span { font-size: 12px; color: var(--muted); }
.qty__ctrl { display: flex; align-items: center; gap: 4px; }
.qty__ctrl button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-3); font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.qty__ctrl button:hover:not([disabled]) { border-color: var(--line-strong); }
.qty__ctrl button[disabled] { opacity: .3; cursor: not-allowed; }
.qty__ctrl output { min-width: 40px; text-align: center; font-family: var(--mono); font-size: 18px; font-weight: 600; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 4px 0 18px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); flex: none; }

.total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; margin-bottom: 14px; border-top: 1px solid var(--line); }
.total span { color: var(--muted); }
.total b { font-size: 28px; font-weight: 700; letter-spacing: -.04em; }

.form-error { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 77, 61, .12); color: #ff8a7e; font-size: 14px; }
.form-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.badge-demo { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 196, 0, .12); color: #ffcc33; font-family: var(--mono); font-size: 11px; text-transform: uppercase; }

/* Zahlungsarten */
.pay { display: grid; gap: 8px; margin: 0 0 6px; padding: 0; border: 0; }
.pay[hidden] { display: none; }
.pay__legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.pay__opt { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.pay__opt:hover { border-color: var(--line-strong); }
.pay__opt:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.pay__opt:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.pay__opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); flex: none; }
.pay__logo { display: grid; place-items: center; width: 60px; height: 34px; border-radius: 8px; font-weight: 800; font-size: 12px; flex: none; }
.pay__logo--twint { background: #fff; color: #000; letter-spacing: .04em; }
.pay__logo--card { background: var(--surface-3); border: 1px solid var(--line); font-size: 20px; font-weight: 400; }
.pay__logo--klarna { background: #ffb3c7; color: #0b051d; font-size: 13px; }
.pay__name { display: grid; font-size: 15px; font-weight: 600; }
.pay__name small { font-size: 12px; font-weight: 400; color: var(--muted); }

/* Bestätigtes Ticket (hell, damit es gut lesbar und druckbar ist) */
.success-head { display: flex; align-items: center; gap: 12px; margin: 0 44px 16px 0; }
.success-head .tick { width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 700; flex: none; }
.success-head h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }

.e-ticket { margin: 8px 0 20px; border-radius: var(--r-lg); overflow: hidden; background: #fff; color: #0a0a0a; }
.e-ticket__top { position: relative; padding: 20px 88px 20px 22px; background: #f3f3f5; border-bottom: 2px dashed #d4d4da; }
.e-ticket__top .mono { color: var(--red-2); }
.e-ticket__top h3 { margin: 4px 0; font-size: 22px; font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
.e-ticket__top p { margin: 0; font-size: 13px; color: #55555c; }
.e-ticket__logo { position: absolute; top: 14px; right: 14px; width: 60px; height: 60px; mix-blend-mode: multiply; }
.e-ticket__body { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 22px; align-items: center; }
.e-ticket__info { display: grid; gap: 10px; font-size: 14px; }
.e-ticket__info span { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: #8a8a92; }
.e-ticket__info b { font-size: 16px; font-weight: 600; }
.e-ticket__code { font-family: var(--mono); font-size: 18px !important; letter-spacing: .03em; }
.e-ticket__qr { width: 124px; height: 124px; }
.e-ticket__qr svg { width: 100%; height: 100%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .btn { flex: 1; }

/* Demo-TWINT */
.twint-screen { text-align: center; padding: 8px 4px 0; }
.twint-screen__brand { display: inline-block; padding: 8px 16px; border-radius: 10px; background: #fff; color: #000; font-weight: 900; letter-spacing: .08em; }
.twint-screen__amount { margin: 20px 0 0; font-size: 44px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.twint-screen__to { margin: 6px 0 20px; color: var(--muted); }
.twint-screen__qr { width: 168px; height: 168px; margin: 0 auto 16px; padding: 12px; border-radius: var(--r); background: #fff; }
.twint-screen__qr svg { width: 100%; height: 100%; }
.twint-screen__hint { margin: 0 auto 20px; max-width: 34ch; font-size: 14px; color: var(--muted); }
.twint-screen .btn + .btn { margin-top: 8px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translate(-50%, calc(100% + 40px));
  visibility: hidden;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7);
  transition: transform .35s var(--ease), visibility .35s;
  max-width: calc(100vw - 32px);
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Diverses ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  body { background: #fff; }
  body > *:not(dialog) { display: none !important; }
  dialog { position: static; box-shadow: none; width: 100%; max-height: none; border: 0; background: #fff; }
  dialog::backdrop { display: none; }
  .dlg__close, .actions, .form-note, .success-head { display: none !important; }
  .e-ticket__top { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Barzahlung */
.cash-note { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); font-size: 14px; color: var(--muted); }
.cash-note b { display: block; margin-bottom: 2px; font-size: 15px; color: var(--ink); }
.cash-note__icon { display: grid; place-items: center; flex: none; width: 44px; height: 32px; border-radius: 8px; background: var(--red-soft); color: #ff7a6f; font-family: var(--mono); font-size: 12px; font-weight: 600; }
