/* Landingpage im Stil des Plakats „A3 Plakat 13 / Alm Quiz“ (Figma „Arbeitsdatei“) */

@font-face { font-family: 'Bowlby One'; src: url('fonts/bowlby-one-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --navy: #14103D;
  --magenta: #D9376F;
  --petrol: #169678;
  --blue: #1687B6;
  --deepblue: #1B4581;
  --violet: #3A3089;
  --gold: #DAA14B;
  --orange: #E79249;
  --coral: #DA705E;
  --red: #CF474F;
  --display: 'Bowlby One', Impact, sans-serif;
  --text: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  /* Neigung wie auf dem Plakat: ca. -3,3° */
  --tilt: -3.3deg;
  --slant: 5.8vw;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { background: var(--navy); scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--text); color: #fff; background: var(--navy); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #000; padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .4em; font-family: var(--display); font-size: 20px; line-height: 1;
  text-decoration: none; color: #fff; background: var(--magenta); padding: 16px 24px 13px;
  border: 3px solid #000; border-radius: 12px; box-shadow: 6px 6px 0 #000;
  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), box-shadow .22s cubic-bezier(.34, 1.56, .64, 1),
    background-color .12s ease, color .12s ease;
  white-space: nowrap;
}
.btn-ghost { background: #000; }
.btn-small { font-size: 15px; padding: 10px 14px 8px; border-width: 2px; box-shadow: 4px 4px 0 #000; }
.ext { font-family: var(--text); font-weight: 800; font-size: .85em; display: inline-block; transition: transform .22s cubic-bezier(.34, 1.56, .64, 1); }

/* Markanter Hover: Gold, kippt und springt aus der Fläche, Pfeil schießt raus. Klick drückt ihn rein. */
.btn:hover, .btn:focus-visible { background: var(--gold); color: #000; transform: translate(-4px, -4px) rotate(-2deg); box-shadow: 10px 10px 0 #000; }
.btn-small:hover, .btn-small:focus-visible { transform: translate(-3px, -3px) rotate(-3deg); box-shadow: 7px 7px 0 #000; }
.btn:hover .ext, .btn:focus-visible .ext { transform: translate(3px, -3px) scale(1.2); }
.btn:active { transform: translate(4px, 4px) rotate(0deg); box-shadow: 1px 1px 0 #000; transition-duration: .06s; }
@media (prefers-reduced-motion: reduce) {
  .btn, .ext { transition: background-color .12s ease, color .12s ease; }
  .btn:hover, .btn:focus-visible, .btn:active { transform: none; }
  .btn:hover .ext { transform: none; }
}

/* ---------- Kopfleiste ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px var(--gutter); padding-top: max(10px, env(safe-area-inset-top));
  transition: background-color .2s ease, box-shadow .2s ease;
}
.topbar.is-solid { background: rgba(20, 16, 61, .92); box-shadow: 0 2px 0 #000; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.topbar-brand { display: block; width: 78px; opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.topbar.is-solid .topbar-brand { opacity: 1; transform: none; pointer-events: auto; }
.topbar-brand img { display: block; width: 100%; height: auto; }
.topbar-nav { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 15px; }
.topbar-nav a:not(.btn) { text-decoration: none; text-shadow: 2px 2px 0 #000; }
.topbar-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero mit Strahlenkranz ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 88px var(--gutter) calc(var(--slant) + 96px);
}
.rays {
  position: absolute; z-index: -1; left: 50%; top: 40%;
  width: max(300vmax, 1800px); height: max(300vmax, 1800px); transform: translate(-50%, -50%);
}
.rays-spin { animation: spin 300s linear infinite; transform-origin: 0 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rays-spin { animation: none; } }

.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }

.strip {
  margin: 0; font-family: var(--display); color: #fff; background: #000; padding: .3em .7em .2em;
  font-size: clamp(17px, 3.4vw, 34px); letter-spacing: .02em; line-height: 1.15;
  transform: rotate(var(--tilt));
}
.strip-top { position: relative; z-index: 1; margin-bottom: -.4em; }
.strip-sub { position: relative; z-index: 1; margin-top: -.2em; }

/* Logo: immer dasselbe SVG, nur skaliert – nie nachgebaut */
.logo { margin: 0; line-height: 0; width: min(90vw, 640px, calc((100svh - 330px) * 1.51)); min-width: 260px; }
.logo img { display: block; width: 100%; height: auto; aspect-ratio: 704 / 466; filter: drop-shadow(10px 10px 0 rgba(0, 0, 0, .35)); }

.next {
  margin: 28px 0 0; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 10px;
  background: #fff; color: #000; padding: 8px 16px 6px; border: 3px solid #000; box-shadow: 5px 5px 0 #000;
  font-family: var(--display); font-size: clamp(15px, 2.2vw, 19px); transform: rotate(var(--tilt));
}
.next[hidden] { display: none; }
.next-label { color: var(--magenta); }
.next-count { font-family: var(--text); font-weight: 800; font-size: .85em; }

.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- Termine: Navy-Band + Magenta, schräg wie auf dem Plakat ---------- */
.dates {
  position: relative; isolation: isolate;
  margin-top: calc(-1 * (var(--slant) + 72px));
  padding: calc(var(--slant) + 72px) var(--gutter) 40px;
}
.dates-band {
  position: absolute; z-index: -2; left: 0; right: 0; top: 0; height: calc(var(--slant) + 80px);
  background: var(--navy); clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
.dates::before {
  content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 30px; bottom: 0;
  background: var(--magenta); clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
.wrap { max-width: 1000px; margin: 0 auto; }

.tagline, .date-list, .times { font-family: var(--display); font-weight: 400; text-shadow: 4px 4px 0 #000; }
.tagline { margin: 0 0 28px; font-size: clamp(18px, 2.8vw, 26px); line-height: 1.15; transform: rotate(var(--tilt)); transform-origin: left; }
.date-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 28px 24px;
  transform: rotate(var(--tilt)); transform-origin: left;
}
.date-list li { display: flex; flex-direction: column; align-items: flex-start; }
.dow { font-size: clamp(22px, 2.6vw, 28px); line-height: 1; }
.day, .mon { font-size: clamp(44px, 6.4vw, 64px); line-height: .95; text-transform: uppercase; }
.cal {
  margin-top: 10px; font-family: var(--text); font-weight: 800; font-size: 13px; letter-spacing: .02em; text-shadow: none;
  text-decoration: none; padding: 5px 10px; border: 2px solid #000; border-radius: 999px; background: rgba(0, 0, 0, .15);
}
.cal:hover { background: #000; }
.is-next .cal { background: #000; }
.is-next .dow::after { content: ' · Nächstes'; font-size: .6em; color: var(--gold); vertical-align: middle; }
.times { margin: 8px 0 0; text-align: right; font-size: clamp(18px, 2.6vw, 26px); transform: rotate(var(--tilt)); transform-origin: right; }

/* ---------- Infobox ---------- */
.info { background: var(--magenta); margin-top: -1px; padding: 16px var(--gutter) 72px; }
.info-box {
  max-width: 1000px; margin: 0 auto; background: #000; border-radius: 24px; padding: clamp(24px, 4vw, 40px);
  display: flex; gap: 32px; align-items: center; justify-content: space-between;
}
.info-text { max-width: 620px; }
.info h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 14px; }
.info p { font-weight: 700; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.45; margin: 0 0 10px; }
.info-actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.info .btn { box-shadow: 6px 6px 0 #fff; border-color: #fff; }
.info .btn:hover, .info .btn:focus-visible { box-shadow: 10px 10px 0 #fff; }
.info .btn:active { box-shadow: 1px 1px 0 #fff; }
.info .small { font-weight: 400; font-size: 14px; line-height: 1.5; opacity: .85; margin: 0; }
.kb { flex: none; display: block; }
.kb img { display: block; width: 80px; height: auto; }

/* ---------- So läuft's ---------- */
.how { padding: 80px var(--gutter) 56px; max-width: 1032px; margin: 0 auto; }
.section-title { margin: 0 0 28px; text-align: left; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4vw, 40px); line-height: 1.1; }
/* 4 Spalten: oben wie gespielt wird, unten was es zu gewinnen gibt (Wanderpokal doppelt breit) */
/* Jede Karte belegt zwei Zeilen (Headline, Text) als Subgrid: Wird eine Headline zweizeilig,
   beginnt der Text in allen Karten derselben Reihe trotzdem auf gleicher Höhe. */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards li {
  border: 3px solid #000; border-radius: 16px; padding: 20px; box-shadow: 6px 6px 0 #000; color: #fff;
  display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 8px; align-content: start;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s cubic-bezier(.34, 1.56, .64, 1);
}
.cards b { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); transform-origin: left center; }
.cards .card-wide { grid-column: span 2; }
/* Leichte Hover-Animation: Karte hebt sich und kippt minimal, abwechselnd links/rechts */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cards li:hover { transform: translate(-3px, -4px) rotate(-1deg); box-shadow: 10px 10px 0 #000; }
  .cards li:nth-child(even):hover { transform: translate(-3px, -4px) rotate(1deg); }
  .cards li:hover b { transform: scale(1.06); }
}
.c-petrol { background: var(--petrol); }
.c-blue { background: var(--blue); }
.c-violet { background: var(--violet); }
.c-red { background: var(--red); }
.c-gold { background: var(--gold); }
.c-orange { background: var(--orange); }
.c-magenta { background: var(--magenta); }
.cards b { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.15; }
.cards span { font-size: 15px; line-height: 1.45; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Ort ---------- */
.place { padding: 8px var(--gutter) 80px; }
.place-box {
  max-width: 1000px; margin: 0 auto; text-align: center; padding: 32px 24px;
  border: 3px dashed rgba(255, 255, 255, .3); border-radius: 24px;
}
.place h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4vw, 40px); margin: 0 0 6px; }
.place p { margin: 0 0 22px; font-weight: 700; opacity: .85; }

/* ---------- Footer ---------- */
.footer { border-top: 6px solid transparent; border-image: linear-gradient(90deg, var(--petrol), var(--blue), var(--violet), var(--magenta), var(--red), var(--orange), var(--gold)) 1; padding: 22px var(--gutter) max(32px, env(safe-area-inset-bottom)); }
.footer nav { max-width: 1000px; margin: 0 auto; display: flex; gap: 22px; justify-content: center; font-size: 14px; }
.footer a { opacity: .75; text-decoration: none; }
.footer a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 64px; line-height: 1.6; }
.legal h1 { font-family: var(--display); font-weight: 400; font-size: 34px; }
.legal h2 { font-size: 19px; margin-top: 30px; }
.legal .back { display: inline-block; margin-bottom: 24px; opacity: .8; }
.todo { background: var(--gold); color: var(--navy); padding: 0 6px; border-radius: 4px; font-weight: 700; }

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
  :root { --slant: 9vw; }
  .topbar-nav a:not(.btn) { display: none; }
  .hero { padding-top: 76px; }
  .rays { top: 38%; }
  .logo { width: min(94vw, 640px); }
  .hero-cta { flex-direction: column; align-items: stretch; width: min(100%, 320px); }
  .hero-cta .btn { justify-content: center; }
  .date-list { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  .times { text-align: left; transform-origin: left; }
  .info-box { flex-direction: column; align-items: flex-start; }
  .info-actions .btn { width: 100%; justify-content: center; }
  .kb { align-self: flex-end; }
  .kb img { width: 56px; }
}
