/* Vyba – vyba.at */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --nacht: #0a0a0c;
  --karte: #141418;
  --linie: #26262c;
  --schnee: #f5f5f7;
  --nebel: #9a9aa3;
  --lime: #d8ff3e;
  --warn: #ff4d5e;

  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --rand: clamp(20px, 5vw, 64px);
  --breite: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--nacht);
  color: var(--schnee);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: var(--nacht); }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  max-width: var(--breite);
  margin: 0 auto;
  padding-left: var(--rand);
  padding-right: var(--rand);
}

/* ── Kopfzeile ─────────────────────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linie);
}

.top .shell {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.marke {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 6px;
  text-decoration: none;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.top nav a {
  text-decoration: none;
  color: var(--nebel);
  font-size: 15px;
  transition: color 0.15s ease;
}
.top nav a:hover { color: var(--schnee); }

.knopf {
  display: inline-block;
  background: var(--lime);
  color: var(--nacht);
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.knopf:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(216, 255, 62, 0.28);
}
.knopf:active { transform: translateY(0); }

.knopf--geist {
  background: transparent;
  color: var(--schnee);
  border: 1px solid var(--linie);
  box-shadow: none;
}
.knopf--geist:hover {
  border-color: var(--schnee);
  box-shadow: none;
}

.top .knopf { padding: 9px 18px; font-size: 14px; }

/* ── Hero ──────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(72px, 12vh, 140px) 0 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -180px;
  width: 640px;
  height: 640px;
  background: radial-gradient(closest-side, rgba(216, 255, 62, 0.13), transparent 70%);
  pointer-events: none;
}

.hero .shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.claim {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.claim em {
  font-style: normal;
  color: var(--lime);
}

.hero p {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--nebel);
  font-size: clamp(17px, 1.6vw, 20px);
}

.hero-ctas {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.fakten {
  margin-top: 26px;
  color: var(--nebel);
  font-size: 14px;
  letter-spacing: 0.3px;
}
.fakten span { color: var(--schnee); }

/* ── Signatur: der Ticket-Stub ─────────────────────────── */

.stub {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-left: 4px solid var(--lime);
  border-radius: 18px;
  padding: 26px 26px 22px;
  max-width: 420px;
  justify-self: end;
  width: 100%;
  transform: rotate(1.6deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.stub-kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--nebel);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.stub-kopf b { color: var(--warn); border: 1px solid var(--warn); border-radius: 999px; padding: 2px 9px; letter-spacing: 1px; }

.stub h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  margin-top: 12px;
}

.stub dl {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 92px 1fr;
  row-gap: 7px;
  font-size: 15px;
}
.stub dt { color: var(--nebel); }
.stub dd { font-weight: 500; }

.stub-riss {
  margin: 18px 0 14px;
  border-top: 1px dashed #3a3a42;
  position: relative;
}
.stub-riss::before,
.stub-riss::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--nacht);
}
.stub-riss::before { left: -36px; }
.stub-riss::after { right: -36px; }

.stub-fuss {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--nebel);
}

.stub-qr {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background:
    conic-gradient(var(--schnee) 0 25%, transparent 0 50%, var(--schnee) 0 75%, transparent 0) 0 0 / 18px 18px,
    var(--nacht);
  border: 1px solid var(--linie);
  opacity: 0.9;
}

/* ── Ablauf ────────────────────────────────────────────── */

.abschnitt { padding: clamp(64px, 10vh, 120px) 0; }

.vorzeile {
  color: var(--nebel);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: -0.015em;
  margin-top: 10px;
}
h2 em { font-style: normal; color: var(--lime); }

.schritte { margin-top: 42px; border-top: 1px solid var(--linie); }

.schritt {
  display: grid;
  grid-template-columns: 78px minmax(0, 320px) 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--linie);
  align-items: baseline;
}

.schritt-nr {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--lime);
}

.schritt h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
}

.schritt p { color: var(--nebel); max-width: 52ch; }

/* ── Veranstalter ──────────────────────────────────────── */

.panel {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 56px);
}

.panel-gitter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.panel p.einleitung { color: var(--nebel); margin-top: 16px; max-width: 46ch; }

.punkte { list-style: none; display: grid; gap: 18px; }

.punkte li {
  padding-left: 22px;
  position: relative;
}
.punkte li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 3px;
  background: var(--lime);
  border-radius: 2px;
}
.punkte b { display: block; font-family: var(--display); font-size: 18px; }
.punkte span { color: var(--nebel); font-size: 15px; }

.panel .knopf { margin-top: 30px; }

.klein { color: var(--nebel); font-size: 13px; margin-top: 14px; }

/* ── Fußzeile ──────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--linie);
  padding: 44px 0 56px;
  margin-top: 40px;
}

.fuss-gitter {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.fuss-links { display: flex; flex-wrap: wrap; gap: 20px; }
.fuss-links a { color: var(--nebel); font-size: 14px; text-decoration: none; }
.fuss-links a:hover { color: var(--schnee); }

.fuss-meta { color: #6a6a73; font-size: 13px; margin-top: 22px; }

/* ── Unterseiten (Support, Rechtliches, /get) ──────────── */

.seite { padding-top: clamp(64px, 12vh, 120px); padding-bottom: clamp(64px, 12vh, 120px); min-height: 62vh; }
.seite h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.015em;
}
.seite h1 em { font-style: normal; color: var(--lime); }
.seite .inhalt { margin-top: 24px; max-width: 62ch; color: var(--nebel); display: grid; gap: 16px; }
.seite .inhalt strong { color: var(--schnee); }
.seite .inhalt a { color: var(--schnee); }

.hinweis {
  margin-top: 28px;
  border: 1px solid var(--linie);
  border-left: 4px solid var(--lime);
  border-radius: 14px;
  padding: 16px 20px;
  color: var(--nebel);
  font-size: 15px;
  max-width: 62ch;
}

/* /get */
.holen { text-align: center; padding-top: clamp(80px, 16vh, 160px); padding-bottom: clamp(80px, 16vh, 160px); }
.holen img { width: 96px; height: 96px; border-radius: 24px; }
.holen h1 { margin-top: 26px; }
.holen p { color: var(--nebel); margin-top: 14px; }
.laeden { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.laden {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--linie);
  border-radius: 14px;
  padding: 14px 22px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.laden:hover { border-color: var(--lime); transform: translateY(-1px); }
.laden-text { text-align: left; line-height: 1.15; }
.laden-text small { display: block; font-family: var(--body); font-weight: 400; font-size: 11px; color: var(--nebel); letter-spacing: 0.5px; margin-bottom: 2px; }
.laden.bald { opacity: 0.55; pointer-events: none; }

/* ── Responsiv ─────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero .shell { grid-template-columns: 1fr; }
  .hero::before {
    width: 420px;
    height: 420px;
    top: -200px;
    right: -160px;
    background: radial-gradient(closest-side, rgba(216, 255, 62, 0.07), transparent 70%);
  }
  .stub { justify-self: start; transform: rotate(0deg); max-width: 460px; }
  .stub-riss::before { left: -34px; }
  .stub-riss::after { right: -34px; }
  .panel-gitter { grid-template-columns: 1fr; }
  .schritt { grid-template-columns: 56px 1fr; }
  .schritt p { grid-column: 2; }
  .top nav a[data-nur-breit] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .knopf, .laden { transition: none; }
}

/* ── Rechtstexte (Datenschutz, Impressum, AGB) ─────────── */
/* Rein additiv. Alles unter .rechtstext / .rechtstext-* gekapselt –
   überschreibt keine bestehende Regel. */

.rechtstext-meta {
  margin-top: 16px;
  color: var(--nebel);
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* Inhaltsverzeichnis – bewusst AUSSERHALB von .rechtstext,
   damit die Listen-Marker dort nicht greifen */
.rechtstext-toc {
  margin-top: 30px;
  border: 1px solid var(--linie);
  border-radius: 16px;
  padding: 20px 22px;
  max-width: 72ch;
}
.rechtstext-toc > p {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--schnee);
}
.rechtstext-toc ol {
  list-style: none;
  counter-reset: toc;
  margin-top: 14px;
  columns: 2;
  column-gap: 34px;
  font-size: 14.5px;
}
.rechtstext-toc li {
  counter-increment: toc;
  break-inside: avoid;
  margin-bottom: 7px;
}
.rechtstext-toc li::before {
  content: counter(toc) ".";
  color: var(--lime);
  margin-right: 7px;
  font-variant-numeric: tabular-nums;
}
.rechtstext-toc a { color: var(--nebel); text-decoration: none; }
.rechtstext-toc a:hover { color: var(--schnee); }

/* Textkörper */
.rechtstext {
  margin-top: 10px;
  max-width: 72ch;
  color: var(--nebel);
  font-size: 16px;
}

.rechtstext > * + * { margin-top: 16px; }

.rechtstext h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(21px, 2.4vw, 26px);
  letter-spacing: -0.01em;
  color: var(--schnee);
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--linie);
  scroll-margin-top: 92px;
}

.rechtstext h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: var(--schnee);
  margin-top: 26px;
}

.rechtstext strong { color: var(--schnee); font-weight: 600; }

.rechtstext a {
  color: var(--schnee);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-underline-offset: 3px;
}

.rechtstext ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.rechtstext li { padding-left: 20px; position: relative; }
.rechtstext li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
}

/* Nummerierte Unterlisten (AGB 3.2, 3.3, 4.3, 6.2, 7.2, 8.3).
   Der lime Strich oben gehoert zu den ul-Listen. In einem ol waere er
   ein zweiter Marker neben der Ziffer - deshalb hier abgeschaltet.
   Das padding-left ersetzt die Einrueckung, die der globale Reset
   (* { padding: 0 }) der Liste genommen hat; ohne sie haengen die
   Ziffern links aus der Textspalte heraus. */
.rechtstext ol {
  list-style-position: outside;
  margin-top: 14px;
  padding-left: 2.6em;
  display: grid;
  gap: 10px;
}
.rechtstext ol li {
  padding-left: 4px;
}
.rechtstext ol li::before {
  content: none;
}

.rechtstext address {
  font-style: normal;
  color: var(--schnee);
  line-height: 1.75;
}

/* Tabellen – auf schmalen Schirmen seitlich scrollbar statt gequetscht */
.tabelle {
  margin-top: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--linie);
  border-radius: 14px;
}
.tabelle table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}
.tabelle th,
.tabelle td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--linie);
}
.tabelle thead th {
  background: var(--karte);
  color: var(--schnee);
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.tabelle tbody tr:last-child td { border-bottom: 0; }
.tabelle td b { color: var(--schnee); font-weight: 600; }
.tabelle .rolle {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--nebel);
}

@media (max-width: 640px) {
  .rechtstext-toc ol { columns: 1; }
  .tabelle table { font-size: 14px; }
}

/* Erste Tabellenspalte beim seitlichen Scrollen festhalten.
   Nachtrag zum Rechtstext-Block – bewusst als Überschreibung am Dateiende,
   damit oben nichts angefasst werden muss. Bei Gelegenheit oben einarbeiten. */

.tabelle table {
  border-collapse: separate;
  border-spacing: 0;
}

.tabelle th:first-child,
.tabelle td:first-child {
  position: sticky;
  left: 0;
  background: var(--nacht);
  box-shadow: 1px 0 0 var(--linie);
  z-index: 1;
}

.tabelle thead th:first-child {
  background: var(--karte);
  z-index: 2;
}

/* Tabellen auf schmalen Schirmen stapeln statt seitlich scrollen.
   Ersetzt die Sticky-Lösung auf dem Handy: iOS legt den Scrollbereich wegen
   -webkit-overflow-scrolling auf eine eigene Ebene, auf der position: sticky
   nicht greift. Gestapelt braucht es überhaupt kein Scrollen mehr.
   Der Sticky-Block weiter oben bleibt für den Desktop stehen und ist hier
   bewusst neutralisiert. Bei Gelegenheit alle drei Blöcke zusammenführen. */

@media (max-width: 640px) {

  .tabelle { overflow-x: visible; }

  .tabelle table,
  .tabelle tbody,
  .tabelle tr,
  .tabelle td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .tabelle thead { display: none; }

  .tabelle tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--linie);
  }
  .tabelle tbody tr:last-child { border-bottom: 0; }

  .tabelle td {
    position: static;
    box-shadow: none;
    background: transparent;
    border-bottom: 0;
    padding: 2px 14px;
  }

  .tabelle td:first-child {
    color: var(--schnee);
    font-weight: 600;
    padding-bottom: 6px;
  }
}

/* ── Einladung (/einladung) ────────────────────────────── */
/* Vorher als Inline-<style> in einladung/index.html. Im Zuge der
   Security-Header (V-11) hierher gezogen, damit die CSP ohne
   'unsafe-inline' auskommt. Werte unverändert, Farben auf Variablen. */

.einl { padding: 72px 0 96px; }
.einl .shell { max-width: 640px; text-align: center; }
.einl h2 { margin-bottom: 12px; }
.einl .einleitung { margin: 0 auto 8px; }
.einl-code {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; background: var(--karte); border: 1px solid var(--linie);
  border-radius: 16px; padding: 12px 12px 12px 20px;
  margin: 28px auto 10px; max-width: 420px; text-align: left;
}
.einl-code b {
  font-size: 24px; letter-spacing: .03em; color: var(--schnee);
  overflow-wrap: anywhere;
}
.einl-code .knopf { white-space: nowrap; }
.einl-hinweis { color: var(--nebel); font-size: 14px; margin-bottom: 40px; }
.einl .schritte { text-align: left; margin-top: 48px; }
.einl-cta { margin-top: 40px; }
/* Personalisierte Teile erst zeigen, wenn ein gültiger Code im Link steckt */
.nur-mit-code { display: none; }
body.hat-code .nur-mit-code { display: block; }
body.hat-code .einl-code.nur-mit-code { display: flex; }
body.hat-code .nur-ohne-code { display: none; }

/* ── 404 ───────────────────────────────────────────────── */
/* Vorher style=-Attribute in 404.html – gleiche V-11-Aufräumaktion. */

.seite--mitte { text-align: center; }
.seite--mitte .inhalt { margin-left: auto; margin-right: auto; }
.seite--mitte .knopf-zeile { margin-top: 28px; }
