/* ==========================================================
   Gemeinsam wachsam – Landingpage
   Farben und Schrift aus dem Mockup
   ========================================================== */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }

:root {
  --blue: #001a41;
  --red: #e20030;
  --white: #ffffff;
  --wrap: 1040px;          /* breite Abschnitte: Header, Logos, Fälle, Footer */
  --wrap-text: 920px;      /* Textabschnitte */
  --gutter: clamp(20px, 5vw, 48px);
  --slant: clamp(48px, 9vw, 140px);   /* Höhe der Schrägen */
  --space: clamp(48px, 7vw, 96px);
}

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

html { -webkit-text-size-adjust: 100%; }
/* Nichts darf seitlich überstehen, auch nicht schräge Bilder während der Animation */
html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: clamp(16px, 1.1vw + 11px, 19px);
  line-height: 1.45;
  color: var(--white);
  background: var(--blue);
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, dl, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--text { max-width: calc(var(--wrap-text) + 2 * var(--gutter)); }
.text > * + * { margin-top: 1em; }

h2 {
  font-weight: 400;
  font-size: clamp(30px, 3.4vw + 12px, 50px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h2 + p { margin-top: 0.8em; }

/* ---------- Farbflächen und Schrägen ---------- */

.band { position: relative; padding: var(--space) 0; }
.band--blue { background: var(--blue); --prev: var(--red); }
.band--red  { background: var(--red);  --prev: var(--blue); }

/* Schräge steigt nach rechts an (Fläche oben links in Vorgängerfarbe) */
.slant-up   { padding-top: calc(var(--slant) + var(--space)); }
.slant-up::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: var(--slant);
  background: var(--prev);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
/* Schräge fällt nach rechts ab (Fläche oben rechts in Vorgängerfarbe) */
.slant-down { padding-top: calc(var(--slant) + var(--space) * 0.5); }
.slant-down::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: var(--slant);
  background: var(--prev);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* ---------- Titel und Slogans als Bild (Sticker Rand im Bild) ---------- */

.hero__title img { width: 100%; max-width: 560px; }
.slogan img { width: 85%; }

/* ---------- Header ---------- */

#header { background: var(--blue); padding: clamp(32px, 5vw, 64px) 0 0; position: relative; }
.hero__inner { display: grid; grid-template-columns: 1fr minmax(0, 40%); align-items: center; gap: 24px; }
.hero__text { position: relative; z-index: 2; }
.hero__sub { margin-top: 0.7em; font-size: clamp(22px, 2vw + 10px, 34px); }
.hero__img { margin-bottom: calc(var(--slant) * -0.6); position: relative; z-index: 2; transform: rotate(-3deg); }

/* ---------- Einleitung ---------- */

/* Grenze Blau/Rot leicht nach oben: Einleitung schiebt sich etwas über den Header */
#intro-1 { padding-bottom: var(--space); margin-top: calc(var(--slant) * -0.22); }
.lead { font-size: clamp(19px, 0.6vw + 14.5px, 22px); line-height: 1.4; }
#intro-1 .lead + p { margin-top: 1.3em; }

/* ---------- Absender im Header ---------- */

.sender { margin-bottom: clamp(48px, 7vw, 104px); }
.sender__inner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px;
}
.sender__label { font-size: 0.8em; opacity: .85; letter-spacing: .02em; }
.sender__logos { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; }
.sender__logos a { display: inline-block; transition: opacity .2s; }
.sender__logos a:hover { opacity: .8; }
/* Feste Höhe: Logos werden nicht kleiner, die Zeile bricht stattdessen um */
.sender__logos img { height: 32px; width: auto; max-width: none; }
.sender__logos .sender__kapo { height: 66px; }

/* ---------- Zitat ---------- */



.quote { display: grid; grid-template-columns: 1fr 1fr; }
.quote__img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.quote__box { background: var(--blue); padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.quote blockquote { font-size: clamp(18px, 1.2vw + 12px, 22px); line-height: 1.35; }
.quote figcaption { margin-top: 1.2em; font-size: 0.85em; line-height: 1.4; }
.quote figcaption strong { font-weight: 600; }

/* ---------- Quiz ---------- */

.btn {
  display: inline-block; margin-top: 1.6em;
  background: var(--red); color: var(--white);
  font-weight: 600; text-decoration: none;
  padding: 0.6em 1.4em; border-radius: 999px;
  border: 2px solid var(--red);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
/* Hover: Farben kehren sich um */
.btn:hover, .btn:focus-visible { background: var(--white); color: var(--red); border-color: var(--white); transform: translateY(-2px); }

/* ---------- Fälle ---------- */

#betrugsfaelle { padding-bottom: calc(var(--space) * 0.6); }

.case { padding-bottom: calc(var(--space) * 0.8); }
.case__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.case__visual { position: relative; }
.case__object { position: relative; width: 70%; }
.case__object--tall { width: 45%; margin-left: 8%; }
.case__object img { transform: rotate(-2deg); }
.case .slogan { margin-top: 30px; position: relative; z-index: 2; }

.pricetag {
  position: absolute; right: -14%; bottom: 8%;
  background: var(--white); color: var(--blue);
  font-size: clamp(13px, 0.6vw + 10px, 16px); line-height: 1.25;
  padding: 0.4em 1.3em 0.45em 0.8em;
  transform: rotate(-8deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.case__object--tall .pricetag { right: -55%; bottom: 30%; }
.pricetag strong { font-weight: 700; }

.case__text > * + * { margin-top: 1.1em; }

/* Steckbrief */
.facts { margin: 0 0 0.6em; }
.facts > div {
  display: grid; grid-template-columns: 9em 1fr; gap: 0 16px;
  padding: 0.35em 0;
}
.facts dt { letter-spacing: 0.06em; opacity: .75; }
/* Auf Rot voll Weiss, sonst zu wenig Kontrast */
.band--red .facts dt { opacity: 1; }
.facts dd { margin: 0; font-weight: 700; line-height: 1.45; }

.case__text .case__label { margin: 1.3em 0 0; font-size: 1em; font-weight: 600; }
.case__text .case__label + p { margin-top: 0.2em; }

/* ---------- Weitere Beispiele ---------- */

.more__link { font-size: clamp(24px, 2vw + 12px, 36px); line-height: 1.2; }
.more__link a { font-weight: 700; text-decoration: none; }
.more__link a:hover, .more__link a:focus-visible { text-decoration: underline; text-underline-offset: 0.15em; }

/* YouTube Shorts: Bild links, Text rechts */
.shorts { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(24px, 4vw, 56px); }
.shorts__img { position: relative; display: block; width: clamp(180px, 14vw + 60px, 240px); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 28px rgba(0, 26, 65, 0.35); }
.shorts__img img { display: block; width: 100%; height: auto; transition: scale 0.4s ease; }
.shorts__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; color: var(--white); filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5)); transition: scale 0.25s ease; }
.shorts__play svg { display: block; width: 45px; height: 56px; margin-left: 4px; } /* leicht nach rechts: Dreieck wirkt so optisch mittig */
.shorts__img:hover .shorts__play, .shorts__img:focus-visible .shorts__play { scale: 1.12; }
.shorts__img:hover img, .shorts__img:focus-visible img { scale: 1.03; }
.shorts__img:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }
@media (max-width: 600px) {
  .shorts { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .shorts__img { width: 160px; }
  .shorts__play svg { width: 37px; height: 46px; margin-left: 3px; }
}

/* ---------- Einmaleins ---------- */
.rule strong { font-weight: 600; }

.rules__title { margin-bottom: clamp(32px, 4vw, 56px); }
.rules__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px);
  grid-auto-rows: 1fr;   /* alle Karten gleich hoch */
}
.rule {
  background: rgba(255, 255, 255, .05);   /* genug Kontrast für die roten Nummern */
  border-radius: 12px;
  padding: clamp(22px, 2.4vw, 30px);
  font-size: 0.92em;
}
.rule__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 0.7em; }
.rule h3 { font-size: clamp(18px, 0.5vw + 13px, 21px); font-weight: 600; line-height: 1.25; padding-top: 0.15em; }
.rule p { line-height: 1.45; }
/* Letzte Regel als Fazit */
.rule--key { background: var(--red); }
@media (max-width: 1000px) { .rules__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .rules__grid { grid-template-columns: 1fr; grid-auto-rows: auto; } }

/* ---------- Events ---------- */

.events__grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.events__logo { width: clamp(90px, 12vw, 150px); }
#events h2 { font-size: clamp(28px, 2.6vw + 12px, 42px); }
.textlink { display: inline-block; margin-top: 1em; font-weight: 600; text-decoration: none; }
.event__facts { list-style: none; margin: 1.2em 0 0; padding: 0; font-weight: 600; }
.event__facts li + li { margin-top: 0.25em; }
/* Button auf rotem Grund: weiss mit roter Schrift (für den späteren Anmeldelink) */
.btn--light { background: var(--white); color: var(--red); border-color: var(--white); }
.btn--light:hover, .btn--light:focus-visible { background: transparent; color: var(--white); }
/* Inaktiver Button: nur Rahmen, kein Link, keine Hover Wirkung */
.btn--inactive { background: transparent; color: var(--white); border-color: var(--white); border-style: dashed; cursor: default; }
.btn--inactive:hover { background: transparent; color: var(--white); border-color: var(--white); transform: none; }

.textlink:hover, .textlink:focus-visible { text-decoration: underline; text-underline-offset: 0.15em; }

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

#mehrerfahren .text { margin-top: 1em; }
.footer__logos {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px;
  margin-top: clamp(32px, 5vw, 56px);
}
.footer__logos img { height: clamp(30px, 3.2vw, 42px); width: auto; }
.footer__logos a { display: inline-block; transition: opacity .2s; }
.footer__logos a:hover { opacity: .8; }
.footer-end { padding: clamp(20px, 3vw, 28px) 0; }

/* ---------- Logo Links ---------- */

.events__logolink { display: inline-block; transition: opacity .2s; }
.events__logolink:hover { opacity: .8; }

/* ---------- Rechtliches ---------- */

.legal { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 0.85em; }
.legal a, .legal button {
  color: var(--white); text-decoration: none;
  font: inherit; background: none; border: 0; padding: 0; cursor: pointer;
}
.legal a:hover, .legal button:hover,
.legal a:focus-visible, .legal button:focus-visible { text-decoration: underline; text-underline-offset: 0.2em; }
.legal button:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; border-radius: 4px; }

.footer-end__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 32px; }
.copyright { font-size: 0.85em; }

/* ---------- Cookie Banner ---------- */

.cookie {
  position: fixed; z-index: 50;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px 32px;
  padding: 20px 24px;
  background: var(--white); color: var(--blue);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  font-size: 0.85em; line-height: 1.45;
}
.cookie[hidden] { display: none; }
.cookie__text { flex: 1; }
.cookie__text a { color: var(--red); }
.cookie__actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie__btn {
  min-width: 120px;
  font: inherit; font-weight: 600;
  padding: 0.65em 1.4em; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--blue);
  background: var(--blue); color: var(--white);
  transition: background .2s, color .2s;
}
.cookie__btn--secondary { background: transparent; color: var(--blue); }
.cookie__btn:hover { background: #0b2c63; border-color: #0b2c63; color: var(--white); }
.cookie__btn:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

@media (max-width: 760px) {
  .cookie { flex-direction: column; align-items: stretch; left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  .cookie__actions .cookie__btn { flex: 1; min-width: 0; }
}

/* ---------- Impressum Popup ---------- */

.modal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 48px);
  overflow: auto;
  margin: auto;
  padding: clamp(28px, 5vw, 44px);
  border: 0; border-radius: 12px;
  background: var(--white); color: var(--blue);
  font-size: 0.95em;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.modal::backdrop { background: rgba(0, 26, 65, .75); }
.modal h2 { font-size: clamp(26px, 2vw + 14px, 34px); margin-bottom: 0.6em; }
.modal h3 { font-size: 1em; font-weight: 600; margin-top: 1.4em; margin-bottom: 0.3em; }
.modal p + p { margin-top: 0.6em; }
.modal a { color: var(--red); }
.modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--blue);
  font-size: 28px; line-height: 1; cursor: pointer;
}
.modal__close:hover { background: #eef0f4; }
.modal__close:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Nur für Screenreader ---------- */

.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;
}

/* ---------- Fokus ---------- */

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

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__img { width: 72%; margin: 8px 0 calc(var(--slant) * -0.5) auto; }

  .sender__inner { gap: 12px; }
  .sender__label { width: 100%; font-size: 0.75em; }
  .sender__logos { gap: 14px 18px; }
  .sender__logos img { height: 25px; }
  .sender__logos .sender__kapo { height: 53px; }

  .quote { grid-template-columns: 1fr; }

  .case__grid { grid-template-columns: 1fr; }
  .case__object { width: 72%; }
  .case__object--tall { width: 44%; margin-left: 12%; }
  .case__object--tall .pricetag { right: -70%; }
  .facts > div { grid-template-columns: 1fr; padding: 0.3em 0; }

  .events__grid { grid-template-columns: 1fr; }
  .footer__logos { gap: 28px 20px; }
}

/* ---------- Animationen beim Scrollen ----------
   Greifen nur, wenn das Script die Klasse "anim" gesetzt hat.
   Einzelne Eigenschaften (scale, rotate, translate) überschreiben
   die bestehende Schrägstellung via transform nicht. */

.anim [data-a] {
  opacity: 0;
  transition-property: opacity, translate, scale, rotate;
  transition-duration: .6s;
  transition-timing-function: cubic-bezier(.22, .8, .3, 1);
  transition-delay: var(--d, 0s);
}

/* Text gleitet von unten ein */
.anim [data-a="up"] { translate: 0 28px; }

/* Objekt wird wie ein Sticker aufgeklebt */
.anim [data-a="stick"] {
  scale: 1.25; rotate: 10deg;
  transition-duration: .7s;
  transition-timing-function: cubic-bezier(.34, 1.45, .55, 1);
}

/* Preisschild klappt in seine Lage */
.anim [data-a="tag"] {
  scale: .5; rotate: 24deg;
  transform-origin: 0 50%;
  transition-duration: .55s;
  transition-timing-function: cubic-bezier(.34, 1.6, .55, 1);
}

/* Slogan und Titel poppen auf */
.anim [data-a="pop"] {
  scale: .8; translate: 0 10px;
  transform-origin: 0 100%;
  transition-duration: .5s;
  transition-timing-function: cubic-bezier(.34, 1.56, .64, 1);
}

.anim .is-in[data-a],
.anim .is-in [data-a] {
  opacity: 1; translate: 0 0; scale: 1; rotate: 0deg;
}

/* «Bewegung reduzieren»: keine Bewegung, ausser im Testmodus (?animation) */
@media (prefers-reduced-motion: reduce) {
  html:not(.anim-force) * { transition: none !important; }
  html:not(.anim-force) [data-a] { opacity: 1 !important; translate: none !important; scale: none !important; rotate: none !important; }
}

/* ---------- Einleitung Teil 2: Zahl als Blickfang ---------- */
#intro-1 { padding-bottom: calc(var(--space) * 0.6); }
#intro-2 { padding-top: calc(var(--space) * 0.7); padding-bottom: calc(var(--space) * 0.7); }
.intro-more__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
/* Zahl und Erklärung: Die Erklärung ist so breit wie «23 Mio» (ohne Punkt) */
.stat { --num: clamp(56px, 6vw + 20px, 96px); display: inline-grid; justify-self: start; }
.stat__number { display: block; white-space: nowrap; font-weight: 600; font-size: var(--num); line-height: 1; letter-spacing: -0.02em; }
.stat__label { display: block; width: 0; min-width: calc(100% - var(--num) * 0.24); margin-top: 0.6em; font-size: 0.85em; line-height: 1.4; opacity: .85; }
@media (max-width: 760px) { .intro-more__grid { grid-template-columns: 1fr; } }

.pricetag { z-index: 3; }   /* Preisschild vor dem Sticker Rand */

/* ---------- Einmaleins Icons (Material Symbols, Apache 2.0) ---------- */
.rule__icon { flex-shrink: 0; width: clamp(36px, 1.6vw + 18px, 44px); height: clamp(36px, 1.6vw + 18px, 44px); color: var(--red); }
.rule__icon svg { display: block; width: 100%; height: 100%; }
.rule--key .rule__icon { color: var(--white); }
.rule h3 { padding-top: 0.2em; }

/* Einmaleins: mehr Platz für die Titel */
.rule { padding: clamp(20px, 1.8vw, 24px); }
.rule__head { gap: 12px; }
.rule__icon { width: clamp(32px, 1vw + 20px, 36px); height: clamp(32px, 1vw + 20px, 36px); }
.rule h3 { padding-top: 0.15em; hyphens: manual; min-width: 0; }
