/* ============================================================
   Glücksrad Digital — powered by playvertise
   Bold-light / neo-brutalist brand skin (self-contained, no framework).
   Tokens adapted from playvertise.io globals.css.
   ============================================================ */

/* Self-hosted Poppins (DSGVO-clean, no external font CDN). font-display:swap
   so text renders immediately in the fallback and never blocks the LCP. */
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/Poppins-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/Poppins-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("assets/fonts/Poppins-ExtraBold.ttf") format("truetype");
}

:root {
  /* Brand palette: lavender / mint / blue on white */
  --brand-lavender: #d2ace7;
  --brand-mint: #94e7ce;
  --brand-blue: #0049e7;
  --brand-blue-hover: #0038b4;
  --black: #000000;
  --white: #ffffff;

  --bg: #ffffff;
  --bg-alt: #f6f4fb;
  --fg: #000000;
  --muted: #3a3a42;
  --muted-2: #6a6a75;
  --card: #ffffff;
  --destructive: #df4065;
  --success: #0a7d52;

  /* Bento tone surfaces (each framed in black) */
  --tone-violet: #d2ace7;
  --tone-cyan: #94e7ce;
  --tone-slate: #cdd9e8;
  --tone-lime: #aac6fb;
  --tone-rose: #f9c2d2;

  --border: 2px solid var(--black);
  --border-hair: 1px solid var(--black);
  --shadow: 4px 4px 0 0 var(--black);
  --shadow-hover: 7px 7px 0 0 var(--black);
  --shadow-lg: 8px 8px 0 0 var(--black);

  --radius: 0.5rem;
  --radius-lg: 0.9rem;

  --font: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6.5rem;

  --max-width: 74rem;
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 700; }
p { margin: 0 0 1rem; }

a { color: var(--brand-blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 0.15s ease; }
a:hover { color: var(--brand-blue-hover); }

strong { font-weight: 700; }

.visually-hidden, .sr-only {
  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; top: -100%; left: var(--space-md); z-index: 200;
  padding: var(--space-sm) var(--space-md);
  background: var(--brand-blue); color: #fff; font-weight: 700;
  text-decoration: none; border: var(--border); border-radius: var(--radius);
}
.skip-link:focus { top: var(--space-md); }

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}
.container--narrow { max-width: 44rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 0.9rem 1.5rem;
  border: var(--border); border-radius: var(--radius);
  background: var(--white); color: var(--black);
  box-shadow: var(--shadow);
  text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hover); color: var(--black); }
.btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 0 var(--black); }
.btn--primary { background: var(--brand-blue); color: #fff; }
.btn--primary:hover { background: var(--brand-blue-hover); color: #fff; }
.btn--pop { background: var(--brand-mint); color: #000; }
.btn--pop:hover { background: #7edcbd; color: #000; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.0625rem; }
.btn--ghost { box-shadow: none; background: transparent; }
.btn--ghost:hover { box-shadow: var(--shadow); background: var(--white); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: var(--border-hair);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
  color: var(--black); text-decoration: none;
}
.brand:hover { color: var(--black); }
.brand__mark { width: 1.9rem; height: 1.9rem; flex: none; }
.brand__mark svg { width: 100%; height: 100%; display: block; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav__list { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav__link {
  color: var(--fg); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.site-nav__link:hover { color: var(--brand-blue); }

.nav-toggle {
  display: none; width: 2.75rem; height: 2.75rem;
  align-items: center; justify-content: center;
  background: var(--white); border: var(--border); border-radius: var(--radius);
  box-shadow: 3px 3px 0 0 var(--black); cursor: pointer; padding: 0;
}
.nav-toggle__bar { display: block; width: 20px; height: 2.5px; background: #000; position: relative; }
.nav-toggle__bar::before, .nav-toggle__bar::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2.5px; background: #000;
}
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: var(--border);
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    transform: translateY(-140%); transition: transform 0.22s ease;
    box-shadow: 0 12px 0 -6px rgba(0,0,0,0.12);
  }
  .site-nav[data-open="true"] { transform: translateY(0); }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .site-nav__link { display: block; padding: 0.85rem 0; border-bottom: var(--border-hair); font-size: 1.05rem; }
  .site-nav .btn { margin-top: var(--space-md); width: 100%; }
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding-block: var(--space-3xl); }
.section--alt { background: var(--bg-alt); border-block: var(--border-hair); }
.section__head { max-width: 46rem; margin-bottom: var(--space-2xl); }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #000;
  background: var(--brand-mint); border: var(--border-hair); border-radius: 999px;
  padding: 0.3rem 0.8rem; margin-bottom: var(--space-md);
}
.section__lead { font-size: 1.15rem; color: var(--muted); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-block: var(--space-3xl) var(--space-3xl); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -10% auto auto;
  width: 55rem; height: 55rem; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(210,172,231,0.5), rgba(148,231,206,0.28), transparent 72%);
  filter: blur(10px);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-2xl);
  align-items: center;
}
.hero__title { margin-bottom: var(--space-md); }
.hero__title .hl {
  background: linear-gradient(transparent 62%, var(--brand-lavender) 62%);
  padding-inline: 0.05em;
}
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-lg); }
.hero__note { margin-top: var(--space-md); font-size: 0.95rem; color: var(--muted-2); }
.hero__figure {
  border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; background: var(--white); rotate: 1.2deg;
}
.hero__figure img { width: 100%; height: auto; }

.badge-poweredby {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.85rem; font-weight: 600; color: #fff;
  background: #000; border-radius: 999px; padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  text-decoration: none; margin-bottom: var(--space-lg);
}
.badge-poweredby:hover { color: #fff; }
.badge-poweredby img { height: 0.95rem; width: auto; display: block; }
.badge-poweredby__pre { opacity: 0.7; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hero__figure { rotate: 0deg; order: -1; }
}

/* ============================================================
   BENTO CARD GRIDS
   ============================================================ */
.grid { display: grid; gap: var(--space-lg); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: var(--space-xl);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-hover); }
.card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; font-weight: 800; font-size: 1.1rem;
  border: var(--border); border-radius: var(--radius); margin-bottom: var(--space-md);
  background: var(--white);
}
.card__icon {
  width: 3rem; height: 3rem; display: grid; place-items: center;
  border: var(--border); border-radius: var(--radius); margin-bottom: var(--space-md);
  background: var(--white);
}
.card__icon svg { width: 1.6rem; height: 1.6rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card__tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.2rem 0.55rem; border: var(--border-hair);
  border-radius: 999px; margin-bottom: var(--space-md); background: var(--white);
}
.card--violet { background: var(--tone-violet); }
.card--cyan { background: var(--tone-cyan); }
.card--slate { background: var(--tone-slate); }
.card--lime { background: var(--tone-lime); }
.card--rose { background: var(--tone-rose); }
.card--violet .card__icon, .card--cyan .card__icon, .card--slate .card__icon,
.card--lime .card__icon, .card--rose .card__icon,
.card--violet .card__num { background: rgba(255,255,255,0.7); }

/* feature list */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); }
.feature-list li { position: relative; padding-left: 2rem; color: var(--muted); }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: #000;
  width: 1.4rem; height: 1.4rem; display: grid; place-items: center;
  background: var(--brand-mint); border: var(--border-hair); border-radius: 50%;
  font-size: 0.8rem; line-height: 1;
}
.feature-list li strong { color: #000; display: block; }

/* two-column media row */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; }
.media-row--flip .media-row__media { order: 2; }
.media-row__media {
  border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden; background: #fff;
}
@media (max-width: 900px) {
  .media-row { grid-template-columns: 1fr; gap: var(--space-lg); }
  .media-row--flip .media-row__media { order: 0; }
}

/* ============================================================
   REFERENZEN-STRIP (horizontal scroller)
   ============================================================ */
.ref-strip {
  display: flex; gap: var(--space-lg);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 18px;
  scrollbar-width: thin; scrollbar-color: #000 transparent;
}
.ref-strip::-webkit-scrollbar { height: 8px; }
.ref-strip::-webkit-scrollbar-track { background: transparent; }
.ref-strip::-webkit-scrollbar-thumb { background: #000; border-radius: 999px; }
.ref-card {
  flex: 0 0 auto; margin: 0; position: relative;
  height: 320px; scroll-snap-align: start;
  border: var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; background: #f1eef7;
}
.ref-card img { height: 100%; width: auto; max-width: none; display: block; }
.ref-card__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 0.82rem; font-weight: 700; color: #fff; letter-spacing: 0.01em;
  padding: 1.8rem 0.9rem 0.65rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
@media (max-width: 640px) { .ref-card { height: 240px; } }

/* ============================================================
   USE CASES (chips)
   ============================================================ */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-md); list-style: none; margin: 0; padding: 0; }
.chip {
  font-weight: 600; padding: 0.7rem 1.1rem; border: var(--border); border-radius: var(--radius);
  background: var(--white); box-shadow: 3px 3px 0 0 var(--black);
}
.chip:nth-child(5n+1) { background: var(--tone-violet); }
.chip:nth-child(5n+2) { background: var(--tone-cyan); }
.chip:nth-child(5n+3) { background: var(--tone-slate); }
.chip:nth-child(5n+4) { background: var(--tone-lime); }
.chip:nth-child(5n+5) { background: var(--tone-rose); }

/* ============================================================
   FAQ (details/summary)
   ============================================================ */
.faq { display: grid; gap: var(--space-md); max-width: 50rem; margin-inline: auto; }
.faq__item {
  border: var(--border); border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow); overflow: hidden;
}
.faq__item[open] { box-shadow: var(--shadow-hover); }
.faq__q {
  list-style: none; cursor: pointer; font-weight: 700; font-size: 1.08rem;
  padding: 1.1rem 1.3rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; font-size: 1.5rem; font-weight: 800; line-height: 1; flex: none; }
.faq__item[open] .faq__q::after { content: "–"; }
.faq__a { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq__a p:last-child { margin-bottom: 0; }

/* ============================================================
   ANFRAGE FORM
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-2xl); align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-xl); } }

.contact-aside .feature-list { margin-top: var(--space-lg); }
.contact-aside__mail {
  margin-top: var(--space-lg); font-weight: 600;
}

.form {
  background: var(--white); border: var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: var(--space-xl);
  display: flex; flex-direction: column; gap: var(--space-lg);
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field .req { color: var(--destructive); }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 1rem; color: var(--fg);
  width: 100%; padding: 0.7rem 0.85rem;
  background: var(--white); border: var(--border); border-radius: var(--radius);
  transition: box-shadow 0.12s ease;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; box-shadow: 3px 3px 0 0 var(--brand-blue);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.consent { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.92rem; color: var(--muted); line-height: 1.45; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; flex: none; accent-color: var(--brand-blue); }
.consent a { font-weight: 600; }

.form__status { min-height: 1.25rem; font-size: 0.95rem; font-weight: 600; }
.form__status[data-state="success"] { color: var(--success); }
.form__status[data-state="error"] { color: var(--destructive); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { text-align: center; }
.cta-band .card {
  background: var(--brand-lavender); text-align: center; padding: var(--space-3xl) var(--space-xl);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { margin-bottom: var(--space-md); }
.cta-band__actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; margin-top: var(--space-lg); }

/* ============================================================
   FOOTER (dark band, powered-by)
   ============================================================ */
.site-footer { background: #000; color: #fff; padding-block: var(--space-2xl); }
.site-footer a { color: var(--brand-lavender); }
.site-footer a:hover { color: #fff; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: var(--space-xl); justify-content: space-between; align-items: flex-start; }
.site-footer__brand { font-weight: 800; font-size: 1.15rem; margin-bottom: 0.4rem; }
.site-footer__tag { color: rgba(255,255,255,0.65); font-size: 0.9rem; max-width: 24rem; }
.site-footer__poweredby { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: var(--space-md); font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.site-footer__poweredby img { height: 1.15rem; width: auto; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer__links a { font-weight: 600; text-decoration: none; }
.site-footer__meta { width: 100%; border-top: 1px solid rgba(255,255,255,0.18); margin-top: var(--space-lg); padding-top: var(--space-md); font-size: 0.85rem; color: rgba(255,255,255,0.55); }

/* ============================================================
   LEGAL / PROSE PAGES
   ============================================================ */
.prose { max-width: 46rem; }
.prose h1 { margin-bottom: var(--space-lg); }
.prose h2 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); margin-top: var(--space-2xl); }
.prose address { font-style: normal; line-height: 1.7; margin-block: var(--space-md); }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose table { width: 100%; border-collapse: collapse; margin-block: var(--space-md); font-size: 0.95rem; }
.prose th, .prose td { border: var(--border-hair); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); }
.prose .back-link { display: inline-block; margin-top: var(--space-2xl); font-weight: 600; }
.prose-header { border-bottom: var(--border-hair); }
.prose-header .site-header__inner { justify-content: space-between; }
/* Legal pages have no hamburger — keep their nav visible & inline on all sizes. */
@media (max-width: 860px) {
  .prose-header .site-header__inner { flex-wrap: wrap; height: auto; gap: 0.4rem 1rem; padding-block: 0.6rem; }
  .prose-header .site-nav {
    position: static; inset: auto; transform: none; flex-direction: row;
    background: transparent; border: 0; padding: 0; box-shadow: none; width: auto;
  }
  .prose-header .site-nav__list { flex-direction: row; gap: 1.1rem; width: auto; }
  .prose-header .site-nav__link { display: inline; padding: 0; border: 0; font-size: 0.95rem; }
}
