/* ==========================================================================
   gevekom Glücksrad – Messe-Landingpage
   Corporate Design abgeleitet von gevekom.com
   ========================================================================== */

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

:root {
  --ink: #09181c;
  --ink-soft: #1d2c30;
  --cream: #f8f7ee;
  --cream-deep: #f1efe2;
  --grey: #edede3;
  --grey-line: #d9d8cc;
  --red: #f63243;
  --orange: #ff6422;
  --yellow: #ffcf22;
  --green: #2bd971;
  --purple: #8944f8;
  --blue: #4c72fe;
  --lightblue: #5ecdfe;
  --pink: #ff5e98;

  --font-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Heebo", Arial, Helvetica, sans-serif;

  --radius: 0.25rem;
  --radius-lg: 0.6rem;
  --border: 2px;
  --max: 46rem;
  --pad: clamp(1rem, 4vw, 2rem);
  --wheel-size: min(78vw, 560px);
  --spin-duration: 6500ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--font-head); text-transform: uppercase; line-height: 0.95; letter-spacing: 0.005em; margin: 0 0 0.6em; font-weight: 800; }
h1 { font-size: clamp(2.9rem, 9vw, 5rem); }
h2 { font-size: clamp(2rem, 6vw, 3rem); }
h3 { font-size: clamp(1.4rem, 4vw, 1.9rem); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--cream);
  padding: 0.6rem 1rem; border-radius: var(--radius); z-index: 100; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Redaktionelle Hinweise ------------------------------------------------- */
.todo {
  background: #fff3a3;
  color: #4a3b00;
  border: 2px dashed #d9b400;
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.todo::before { content: "⚠ "; }

/* Badges / Tags ------------------------------------------------------------ */
.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.5rem 0.7rem 0.42rem;
  border-radius: var(--radius);
  background: var(--grey);
  color: var(--ink);
  white-space: nowrap;
}
.badge--red    { background: var(--red);    color: var(--cream); }
.badge--purple { background: var(--purple); color: var(--cream); }
.badge--green  { background: var(--green);  color: var(--ink); }
.badge--yellow { background: var(--yellow); color: var(--ink); }
.badge--orange { background: var(--orange); color: var(--ink); }
.badge--blue   { background: var(--blue);   color: var(--cream); }
.badge--grey   { background: var(--grey);   color: var(--ink); }

/* Header ------------------------------------------------------------------- */
.site-header { background: var(--ink); color: var(--cream); }
.site-header__inner {
  max-width: 72rem; margin: 0 auto; padding: 0.9rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-header__logo img { width: clamp(130px, 22vw, 180px); height: auto; }
.site-header__badge { font-size: 1rem; }

/* Hero --------------------------------------------------------------------- */
.hero { padding: clamp(1.2rem, 4vw, 2.4rem) var(--pad) 0; text-align: center; }
.hero__inner { max-width: var(--max); margin: 0 auto; }
.hero__tags { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hero__tags .badge { transform: rotate(-2deg); }
.hero__tags .badge:nth-child(2) { transform: rotate(1.5deg); }
.hero__tags .badge:nth-child(3) { transform: rotate(-1deg); }
.hero__title { margin-bottom: 0.45em; }
.hero__sub { font-size: clamp(1.1rem, 2.6vw, 1.35rem); font-weight: 500; max-width: 38rem; margin: 0 auto 0.5rem; }
.hero__sub2 { color: var(--ink-soft); opacity: 0.85; margin-bottom: 0.75rem; }
.hero__event { font-family: var(--font-head); text-transform: uppercase; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.03em; }

/* Sold out / Nachlieferung ------------------------------------------------- */
.soldout {
  max-width: 36rem;
  margin: 0.25rem auto 0.9rem;
  background: var(--red);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem 1rem;
  transform: rotate(0.8deg);
  box-shadow: 0 12px 28px rgba(246, 50, 67, 0.28);
}
.soldout__badge {
  display: inline-block; background: var(--cream); color: var(--red);
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 1.05rem; line-height: 1; padding: 0.45rem 0.7rem 0.38rem; border-radius: var(--radius); margin-bottom: 0.55rem;
}
.soldout__title { font-family: var(--font-head); text-transform: uppercase; font-weight: 800; font-size: clamp(1.8rem, 5.5vw, 2.6rem); line-height: 0.95; margin: 0 0 0.4rem; }
.soldout__text { margin: 0; font-size: 1.05rem; font-weight: 700; }
.result__shipping { background: var(--red); color: var(--cream); border-radius: var(--radius); padding: 0.8rem 1rem; margin: 0.25rem auto 0.75rem; max-width: 34rem; font-size: 1rem; }
.result__shipping strong { display: block; font-family: var(--font-head); text-transform: uppercase; font-weight: 800; font-size: 1.35rem; line-height: 1; margin-bottom: 0.25rem; }
.result__voucher { background: var(--pink); color: var(--ink); border-radius: var(--radius); padding: 0.8rem 1rem; margin: 0.25rem auto 0.75rem; max-width: 34rem; font-weight: 700; }
.success__shipping { font-weight: 700; background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 0.7rem 1rem; margin: 0 auto 0.75rem; max-width: 34rem; }
.field__optional { font-family: var(--font-body); text-transform: none; font-weight: 400; font-size: 0.9rem; opacity: 0.7; letter-spacing: 0; }
.input::placeholder { color: var(--ink); opacity: 0.4; }
.form__subtitle { font-size: clamp(1.4rem, 4vw, 1.8rem); margin: 1.4rem 0 0.15em; padding-top: 1.2rem; border-top: 2px solid var(--grey); }
.form__grid--zip { grid-template-columns: 9rem 1fr; }
@media (max-width: 520px) { .form__grid--zip { grid-template-columns: 1fr; } }

/* Extra-Verlosung ---------------------------------------------------------- */
.raffle--hero {
  max-width: 34rem;
  margin: 0.25rem auto 0.5rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem 0.9rem;
  transform: rotate(-0.6deg);
  box-shadow: 0 10px 24px rgba(9, 24, 28, 0.15);
}
.raffle__badge { margin-bottom: 0.5rem; }
.raffle__title { font-family: var(--font-head); text-transform: uppercase; font-weight: 800; font-size: clamp(1.5rem, 4.6vw, 2.1rem); line-height: 1; margin: 0 0 0.35rem; }
.raffle__text { margin: 0; font-size: 1rem; opacity: 0.92; }
.badge--pink { background: var(--pink); color: var(--ink); }
.wheel-raffle { font-weight: 500; max-width: 36rem; margin: 0 auto 0.9rem; }
.wheel-raffle .badge { margin-right: 0.3rem; vertical-align: 0.1em; }
.result__raffle { font-weight: 700; background: var(--yellow); color: var(--ink); border-radius: var(--radius); padding: 0.7rem 1rem; display: inline-block; margin: 0.25rem 0 0.5rem; max-width: 34rem; }
.success__raffle { font-weight: 500; background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 0.7rem 1rem; margin: 0 auto 1.2rem; max-width: 34rem; }

/* Bühne / Rad -------------------------------------------------------------- */
.stage { padding: clamp(1rem, 3vw, 2rem) var(--pad) 1rem; text-align: center; overflow-x: clip; }
.wheel-wrap {
  position: relative;
  width: var(--wheel-size);
  height: var(--wheel-size);
  margin: 0.5rem auto 1.4rem;
}
.wheel { width: 100%; height: 100%; }
.wheel__svg {
  width: 100%; height: 100%;
  transform: rotate(0deg);
  will-change: transform;
  filter: drop-shadow(0 18px 30px rgba(9, 24, 28, 0.18));
}
.wheel__svg.is-spinning { transition: transform var(--spin-duration) cubic-bezier(0.1, 0.75, 0.08, 1); }
.wheel__rim { fill: var(--ink); }
.wheel__ring { fill: none; stroke: var(--cream); stroke-width: 6; }
.wheel__hub { fill: var(--ink); stroke: var(--cream); stroke-width: 6; }
.wheel__segment text {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
}
.wheel__segment path { transition: opacity 0.4s ease; }
.wheel.has-result .wheel__segment:not(.is-winner) path { opacity: 0.55; }
.wheel.has-result .wheel__segment:not(.is-winner) { filter: saturate(0.25) brightness(1.08); }
.wheel.has-result .wheel__segment:not(.is-winner) text { opacity: 0.6; }
.wheel.has-result .wheel__rim { fill: var(--cream-deep); }
.wheel.has-result .wheel__ring { stroke: var(--ink); }
.wheel.has-result .wheel__segment.is-winner path { stroke: var(--ink); stroke-width: 7; }

.wheel-pointer {
  position: absolute;
  top: -3%;
  left: 50%;
  width: 9.5%;
  height: 11%;
  transform: translateX(-50%);
  z-index: 3;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 4px 6px rgba(9, 24, 28, 0.35));
}
.wheel-pointer::after {
  content: "";
  position: absolute; inset: 7% 12% 18%;
  background: var(--cream);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.spin-button {
  position: absolute;
  left: 50%; top: 50%;
  width: 29%; height: 29%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 0;
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 3.4vw, 1.85rem);
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 0 0 6px var(--ink), 0 10px 24px rgba(9, 24, 28, 0.35);
  transition: transform 0.15s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.spin-button:hover:not(:disabled) { background: #ff4b5a; transform: translate(-50%, -50%) scale(1.04); }
.spin-button:active:not(:disabled) { transform: translate(-50%, -50%) scale(0.97); }
.spin-button:disabled { cursor: default; background: var(--ink-soft); color: var(--grey); }
.spin-button.is-done { background: var(--green); color: var(--ink); }
.spin-button__label { display: block; padding: 0 0.4em; }
.spin-button:focus-visible { outline: 4px solid var(--blue); outline-offset: 6px; }

.confetti { position: absolute; inset: -20% -10%; width: 120%; height: 140%; pointer-events: none; z-index: 5; }

.wheel-hint { font-weight: 500; max-width: 34rem; margin: 0 auto 0.4rem; }
.wheel-prizes { font-family: var(--font-head); text-transform: uppercase; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.02em; max-width: 34rem; margin: 0 auto 0.75rem; }
.fineprint { font-size: 0.86rem; line-height: 1.4; color: var(--ink-soft); opacity: 0.85; max-width: 36rem; margin: 0 auto; }
.fineprint--light { color: var(--cream); opacity: 0.8; }

/* Ergebnis ----------------------------------------------------------------- */
.result, .success { padding: 1rem var(--pad) 2rem; }
.result__card, .success__card {
  max-width: var(--max);
  margin: 0 auto 1.25rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  text-align: center;
  animation: card-in 0.5s ease both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.result__badge { margin-bottom: 0.8rem; font-size: 1.05rem; }
.result__title { font-size: clamp(1.9rem, 5.5vw, 2.9rem); margin-bottom: 0.4em; }
.result__sub { font-size: 1.1rem; margin: 0 auto 0.6rem; max-width: 34rem; }
.result__note { margin-top: 1rem; }
.result--none .result__card { background: var(--purple); }

/* Formular ----------------------------------------------------------------- */
.form {
  max-width: var(--max);
  margin: 0 auto;
  background: #fff;
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 4vw, 2rem);
  text-align: left;
}
.form__title { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 0.15em; }
.form__intro { color: var(--ink-soft); opacity: 0.8; margin-bottom: 1.25rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 520px) { .form__grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; border: 0; padding: 0; min-width: 0; }
.field__label { display: block; font-family: var(--font-head); text-transform: uppercase; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.03em; margin-bottom: 0.35rem; }
.input {
  width: 100%;
  min-height: 56px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--cream);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  appearance: none;
}
.input:focus { outline: none; box-shadow: 0 0 0 4px rgba(76, 114, 254, 0.35); background: #fff; }
.field.has-error .input { border-color: var(--red); }
.field__error { color: var(--red); font-weight: 500; font-size: 0.92rem; margin: 0.35rem 0 0; min-height: 0; }
.field__error:empty { display: none; }

.segment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.segment__option { position: relative; }
.segment__option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segment__option span {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px;
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-head); text-transform: uppercase; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.03em;
  background: var(--cream);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.segment__option input:checked + span { background: var(--ink); color: var(--cream); }
.segment__option input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.field.has-error .segment__option span { border-color: var(--red); }

.check { display: flex; gap: 0.85rem; align-items: flex-start; cursor: pointer; padding: 0.35rem 0; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  flex: 0 0 auto;
  width: 32px; height: 32px; margin-top: 0.1rem;
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  position: relative;
  transition: background-color 0.15s ease;
}
.check__box::after {
  content: ""; position: absolute; left: 9px; top: 3px; width: 9px; height: 17px;
  border: solid var(--cream); border-width: 0 4px 4px 0; transform: rotate(45deg); opacity: 0;
}
.check input:checked + .check__box { background: var(--ink); }
.check input:checked + .check__box::after { opacity: 1; }
.check input:focus-visible + .check__box { outline: 3px solid var(--blue); outline-offset: 3px; }
.check__text { font-size: 1rem; line-height: 1.45; }
.check__text small { display: block; margin-top: 0.2rem; color: var(--ink-soft); opacity: 0.75; font-size: 0.86rem; }
.field.has-error .check__box { border-color: var(--red); }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form__error { background: #ffe1e4; color: #8a0d18; border-radius: var(--radius); padding: 0.75rem 1rem; font-weight: 500; }
.form__legal { font-size: 0.86rem; color: var(--ink-soft); opacity: 0.8; margin: 1rem 0 0; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 56px;
  padding: 0.75rem 1.1rem 0.75rem 1.5rem;
  border-radius: 999px;
  border: var(--border) solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-head); text-transform: uppercase; font-weight: 700; font-size: 1.3rem; letter-spacing: 0.03em; line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: var(--ink);
}
.btn--primary { width: 100%; font-size: 1.45rem; }
.btn--big { min-height: 64px; }
.btn--light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--light .btn__icon { background: var(--red); color: var(--cream); }

/* Erfolg ------------------------------------------------------------------- */
.success__card { background: var(--green); color: var(--ink); }
.success__icon { color: var(--cream); display: flex; justify-content: center; margin-bottom: 0.75rem; }
.success__title { font-size: clamp(2.2rem, 7vw, 3.4rem); }
.success__text { font-size: 1.15rem; font-weight: 500; }
.success__prize { font-family: var(--font-head); text-transform: uppercase; font-weight: 700; font-size: 1.3rem; margin: 0.4rem 0 0.2rem; }
.success__prize strong { display: block; font-size: clamp(2rem, 7vw, 3rem); font-weight: 800; line-height: 1; margin-top: 0.15em; }
.success__id { font-size: 0.95rem; opacity: 0.8; margin-bottom: 1.2rem; }
.success .fineprint--light { color: var(--ink); opacity: 0.8; margin-bottom: 1.4rem; }
.success .btn--light { background: var(--ink); color: var(--cream); border-color: var(--ink); min-width: min(100%, 22rem); }
.success .btn--light .btn__icon { background: var(--cream); color: var(--ink); }

/* Footer ------------------------------------------------------------------- */
.site-footer { margin-top: auto; background: var(--ink); color: var(--cream); padding: 1.4rem var(--pad); font-size: 0.9rem; }
.site-footer__inner { max-width: 72rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: center; justify-content: space-between; }
.site-footer__note { margin: 0; opacity: 0.8; }
.site-footer__nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer__nav a { color: var(--cream); text-decoration: none; font-family: var(--font-head); text-transform: uppercase; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.03em; padding: 0.5rem 0; }
.site-footer__nav a:hover { text-decoration: underline; }

/* Rechtsseiten ------------------------------------------------------------- */
.legal { max-width: 46rem; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3rem) var(--pad) 3rem; }
.legal h1 { font-size: clamp(2.4rem, 8vw, 4rem); margin-bottom: 0.3em; }
.legal h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); margin-top: 2rem; }
.legal h3 { font-size: 1.25rem; margin-top: 1.4rem; }
.legal p, .legal li { font-size: 1rem; }
.legal ul { padding-left: 1.2rem; }
.legal .lead { font-size: 1.15rem; font-weight: 500; }
.legal address { font-style: normal; background: var(--grey); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.legal .legal__back { margin-bottom: 1.5rem; display: inline-flex; }
.legal .btn { min-height: 52px; font-size: 1.1rem; }

/* Rad-Sperre --------------------------------------------------------------- */
body.is-locked .spin-button { pointer-events: none; }

/* Tablet Querformat / Desktop: Rad etwas kleiner, mehr Luft --------------- */
@media (min-width: 900px) and (orientation: landscape) {
  :root { --wheel-size: min(56vh, 520px); }
  .hero { padding-top: 1.4rem; }
  .hero__title { font-size: clamp(2.6rem, 6vw, 4.2rem); }
}
@media (min-width: 1200px) {
  :root { --wheel-size: min(60vh, 560px); }
}

/* Smartphone --------------------------------------------------------------- */
@media (max-width: 480px) {
  :root { --wheel-size: min(88vw, 400px); }
  .site-header__badge { font-size: 0.85rem; }
  .spin-button { width: 31%; height: 31%; }
  .wheel__segment text { letter-spacing: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wheel__svg.is-spinning { transition-duration: 1.2s; }
  .result__card, .success__card { animation: none; }
}
