/* Nordwasser – Kampagne „Fokus auf dem Lokus!"
   Werte aus Figma (Frames „DEV Entwurf Final Mobile" 390 px / „DEV Entwurf Final Desktop" 1920 px, Inhalt 1200 px).
   --u ist ein Design-Pixel: unter 390 px (mobil) bzw. 1240 px (Desktop) skaliert er mit, --fs ist der Faktor der Schriftgrößen-Schaltfläche. */

@font-face { font-family: "Overpass"; src: url("../fonts/Overpass-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --fs: 1;
  --u: calc(min(1px, 100vw / 390) * var(--fs));
  --gutter: calc(20 * min(1px, 100vw / 390));

  /* Farbstile aus Figma */
  --nw-blue: #1d70b7;
  --nw-cyan: #00a7e3;
  --nw-green: #94c122;
  --shadow: #135e9d;
  --orange-1: #ca611d;
  --orange-2: #de6e22;
  --orange-3: #e67324;
  --orange-4: #ef9124;
  --footer: #0473ba;
  --legal: #5d5757;
  --white: #fff;

  /* Verlauf Nordwasser (Winkel je Seitenverhältnis wie in Figma) */
  --nw-stops: var(--nw-blue) 32.71%, var(--nw-cyan) 56.82%, var(--nw-green) 102.19%;
  /* „Das gehört…" (Desktop): Grün nach außen gezogen (Vorgabe) */
  --nw-stops-dont: var(--nw-blue) 32.71%, var(--nw-cyan) 45.82%, var(--nw-green) 122.19%;
}
html.fs-large  { --fs: 1.125; }
html.fs-xlarge { --fs: 1.25; }

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

body {
  margin: 0;
  font-family: "Overpass", Arial, sans-serif;
  font-weight: 400;
  font-size: calc(18 * var(--u));
  line-height: 1.2;
  color: var(--white);
  background: var(--footer);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }
strong { font-weight: 700; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.br-d { display: none; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--nw-blue); padding: .75rem 1rem; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.footer__legal :focus-visible, .brand:focus-visible { outline-color: var(--nw-blue); }

section { position: relative; overflow: hidden; }

/* Seifenblasen (Deko) – Maße in Design-px */
.bubble {
  position: absolute; z-index: 0; pointer-events: none;
  width: calc(var(--s) * var(--u)); aspect-ratio: 1;
  top: calc(var(--y) * var(--u)); bottom: calc(var(--b) * var(--u));
  left: calc(var(--x) * var(--u)); right: calc(var(--r) * var(--u));
  background: url("../img/seifenblase.svg") center / contain no-repeat;
}
.bubble[style*="%"] { left: var(--x); right: var(--r); }
.bubble--d { display: none; }

/* Logo-Box: 225,84 × 86,41, Padding 24/16, Radius unten 16 */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.site-header .container { display: flex; justify-content: center; }
.brand {
  display: flex; align-items: center; justify-content: center;
  width: calc(225.84 * var(--u)); height: calc(86.41 * var(--u));
  padding: calc(24 * var(--u)) calc(16 * var(--u));
  background: var(--white); border-radius: 0 0 calc(16 * var(--u)) calc(16 * var(--u));
}
.brand img { width: auto; height: calc(38.4 * var(--u)); }

/* Headlines: ein Textfeld, Zeilen in unterschiedlichen Größen */
.hl { font-weight: 700; }
.hl > span { display: block; }

/* Button „Quiz starten": Hug 215 × 70, Padding 24/32, Bold 28/22 */
.btn {
  display: inline-block; align-self: flex-start;
  padding: calc(24 * var(--u)) calc(32 * var(--u));
  font-size: calc(28 * var(--u)); font-weight: 700; line-height: calc(22 * var(--u));
  color: var(--white); text-decoration: none; white-space: nowrap;
  background: linear-gradient(90deg, var(--orange-3) 0%, var(--orange-4) 100%);
  transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-2px); }

/* Ankerlink „Mehr Informationen": Bold 22/22, Padding 4, Rahmen unten 3 px */
.link-strong {
  align-self: flex-start; display: inline-block;
  padding: calc(4 * var(--u)) 0; border-bottom: calc(3 * var(--u)) solid var(--white);
  font-size: calc(22 * var(--u)); font-weight: 700; line-height: calc(22 * var(--u)); text-decoration: none;
}
.link-strong:hover { border-bottom-width: calc(5 * var(--u)); }

/* Hero – mobil 390 × 844 */
.hero { min-height: calc(844 * var(--u)); background: linear-gradient(14.27deg, var(--nw-stops)); }
.hero__inner { position: relative; }
.hero__text { display: flex; flex-direction: column; gap: calc(24 * var(--u)); padding-top: calc(266 * var(--u)); padding-bottom: calc(80 * var(--u)); position: relative; z-index: 1; }
.hero__title { display: flex; flex-direction: column; gap: calc(8 * var(--u)); }
.hero__visual { position: absolute; left: calc(184 * var(--u)); top: calc(130 * var(--u)); width: calc(226 * var(--u)); max-width: none; z-index: 0; }
.hero .hl { line-height: .8; }
.hero .hl__a { font-size: calc(80 * var(--u)); }
.hero .hl__b { font-size: calc(50 * var(--u)); line-height: calc(52 * var(--u)); } /* Leerzeichen-Span 65 px × 80 % */
.hero .hl__c { font-size: calc(100 * var(--u)); }
.hero__lead { font-size: calc(22 * var(--u)); line-height: calc(26 * var(--u)); max-width: calc(352 * var(--u)); }

/* Oranger Block – Padding 64/20, H2 Bold 45, Text 18 */
.info { padding: calc(64 * var(--u)) 0; background: linear-gradient(45deg, var(--orange-4) 0%, var(--orange-3) 45%, var(--orange-2) 75%, var(--orange-1) 110%); }
.info__inner { display: flex; flex-direction: column; gap: calc(8 * var(--u)); }
.info__title { font-size: calc(45 * var(--u)); line-height: 1; }
.info p { font-size: calc(18 * var(--u)); line-height: 1.22; }

/* „Das gehört nicht in die Toilette" – Padding 64/20/32/20, Gap 24 */
.dont { padding: calc(64 * var(--u)) 0 calc(32 * var(--u)); background: linear-gradient(5.6deg, var(--nw-stops-dont)); }
.dont__head { display: flex; flex-direction: column; gap: calc(24 * var(--u)); margin-bottom: calc(24 * var(--u)); }
.dont__visual { width: calc(345 * var(--u)); }
.hl--dont .hl__a { font-size: calc(50 * var(--u)); line-height: calc(60 * var(--u)); } /* Leerzeichen-Span 60 px */
.hl--dont .hl__b { font-size: calc(35 * var(--u)); line-height: 1; }
.hl--dont .hl__c { font-size: calc(80 * var(--u)); line-height: .85; }

/* Karten – 350 breit, Padding 32/20, Gap 32, #1D70B7, Schatten 0/4/8 #135E9D */
.cards { display: grid; gap: calc(24 * var(--u)); align-items: start; }
.card {
  display: flex; flex-direction: column; gap: calc(32 * var(--u));
  padding: calc(32 * var(--u)) calc(20 * var(--u));
  background: var(--nw-blue);
  box-shadow: 0 calc(4 * var(--u)) calc(8 * var(--u)) var(--shadow);
}
.card__icon { width: calc(120 * var(--u)); height: calc(120 * var(--u)); }
.card__body { display: flex; flex-direction: column; gap: calc(8 * var(--u)); }
.card__title { font-size: calc(28 * var(--u)); line-height: 1.2; }
.card__teaser { font-size: calc(22 * var(--u)); line-height: 1.2; }
.card__more { font-size: calc(20 * var(--u)); line-height: 1.2; margin-top: 1.2em; } /* Leerzeile nach dem Kurztext */
.card__more p + p { margin-top: 1.2em; }
.card__toggle {
  align-self: flex-start; display: inline-flex; align-items: center; gap: calc(16 * var(--u));
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: calc(22 * var(--u)); line-height: 1.2; color: var(--white);
}
.card__toggle-label { text-decoration: underline; text-decoration-skip-ink: auto; }
.card__toggle:hover .card__toggle-label { text-decoration-thickness: 2px; }
.card__toggle-icon { width: calc(28 * var(--u)); height: calc(28 * var(--u)); flex: none; background: url("../img/icons/plus.svg") center / contain no-repeat; }
.card__toggle[aria-expanded="true"] .card__toggle-icon { background-image: url("../img/icons/minus.svg"); }

/* „Check dein Wissen!" – Padding 0/20/64/20, Gap 16, Verlauf umgekehrt */
.quiz { padding: 0 0 calc(64 * var(--u)); background: linear-gradient(198.9deg, var(--nw-stops)); }
.quiz__inner { display: flex; flex-direction: column; gap: calc(16 * var(--u)); }
.quiz__visual { width: calc(240 * var(--u)); height: calc(165 * var(--u)); object-fit: contain; margin-left: calc(90 * var(--u)); }
.quiz__text { display: flex; flex-direction: column; gap: calc(16 * var(--u)); }
.quiz__copy { display: flex; flex-direction: column; gap: calc(8 * var(--u)); }
.quiz__kicker { font-size: calc(22 * var(--u)); line-height: 1.2; }
.hl--quiz { line-height: .9; }
.hl--quiz .hl__a { font-size: calc(50 * var(--u)); }
.hl--quiz .hl__c { font-size: calc(80 * var(--u)); }
.quiz__lead { font-size: calc(22 * var(--u)); line-height: calc(26 * var(--u)); }

/* Footer (wie www.nordwasser.de) */
.site-footer { color: var(--white); background: var(--footer); }
.site-footer::after { content: ""; display: block; height: 32px; } /* mobil: blauer Streifen unten als Platz für das Consent-Icon */
.site-footer::before { content: ""; display: block; height: calc(15 * var(--u)); background: linear-gradient(90deg, #1c6eae 2%, #00a8e4 36%, #97d10a 100%); }
.footer__inner { display: flex; flex-direction: column; align-items: center; padding-top: calc(40 * var(--u)); padding-bottom: calc(56 * var(--u)); font-size: calc(17 * var(--u)); }
.footer__tuev { order: 1; width: calc(140 * var(--u)); margin-bottom: calc(34 * var(--u)); }
.footer__contact { order: 2; display: flex; flex-direction: column; gap: calc(16 * var(--u)); }
.footer__a11y { order: 3; }
.footer__links { order: 4; margin-bottom: calc(36 * var(--u)); text-align: center; text-transform: uppercase; font-size: calc(15 * var(--u)); line-height: 2; }
.footer__logo { order: 5; }
.footer__social { order: -1; display: flex; align-items: center; gap: calc(8 * var(--u)); }
.footer__social img { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
.footer__row { display: flex; align-items: flex-start; gap: calc(10 * var(--u)); line-height: 1.45; }
.footer__row a { text-decoration: none; text-transform: uppercase; }
.footer__row a:hover, .footer__links a:hover { text-decoration: underline; }
.footer__ico { width: calc(20 * var(--u)); height: calc(20 * var(--u)); flex: none; display: grid; place-items: center; margin-top: 1px; }
.footer__ico img { width: 100%; height: 100%; }
.footer__ico--ring { border: 1px solid var(--white); border-radius: 50%; }
.footer__ico--ring img { width: 55%; height: auto; }
.footer__a11y {
  align-self: stretch; display: flex; justify-content: space-between;
  margin: calc(46 * var(--u)) 0 calc(44 * var(--u)); padding: calc(14 * var(--u)) 0;
  border-top: 1px solid rgba(255,255,255,.6); border-bottom: 1px solid rgba(255,255,255,.6);
}
.a11y-btn { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); padding: 0; border: 0; background: none; cursor: pointer; color: var(--white); font: inherit; }
.a11y-btn img { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.a11y-btn[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 3px; }
.footer__logo img { width: calc(276 * var(--u)); }

.footer__legal { position: relative; background: var(--white); padding: calc(28 * var(--u)) var(--gutter) calc(18 * var(--u)); }
.footer__legal ul { display: flex; flex-wrap: wrap; justify-content: center; max-width: calc(340 * var(--u)); margin: 0 auto; row-gap: calc(4 * var(--u)); }
.footer__legal li { color: var(--legal); font-size: calc(17 * var(--u)); }
.footer__legal li:not(:last-child)::after { content: "|"; margin: 0 .45em; }
.footer__legal a { color: var(--legal); text-decoration: none; }
.footer__legal a:hover { color: var(--footer); text-decoration: underline; }
.to-top {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: 50%;
  background: var(--footer); border: 2px solid var(--white);
}
.to-top::after { content: ""; position: absolute; left: 50%; top: 56%; width: 28%; height: 28%; border-left: 2.5px solid var(--white); border-top: 2.5px solid var(--white); transform: translate(-50%, -50%) rotate(45deg); }
.footer__links a { text-decoration: none; }


/* Hoher Kontrast */
html.hc .hero, html.hc .info, html.hc .dont, html.hc .quiz, html.hc .site-footer, html.hc body { background: #000; }
html.hc .card { background: #000; border: 2px solid #fff; box-shadow: none; }
html.hc .bubble { display: none; }
html.hc .btn { background: #ffd400; color: #000; }
html.hc .to-top { background: #000; }
html.hc .footer__legal a, html.hc .footer__legal li { color: #000; }

/* Tablet (im Design nicht vorgesehen): mobiles Layout, Karten zweispaltig */
@media (min-width: 640px) {
  :root { --u: calc(1px * var(--fs)); --gutter: 32px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__legal ul { max-width: none; }
  .hero__visual { left: auto; right: 0; width: 330px; top: 110px; }
  .dont__visual { width: 460px; margin: 0 auto; }
  .hl--dont { text-align: center; }
  .quiz__visual { width: 320px; height: auto; margin: 0 auto; }
  .quiz__lead, .info p { max-width: 600px; }
}

/* Desktop – Inhalt 1200 px, Textspalten mit 20 px Einzug */
@media (min-width: 992px) {
  :root { --u: calc(min(1px, 100vw / 1240) * var(--fs)); --gutter: 20px; }
  .br-d { display: inline; }
  .br-m { display: none; }
  .bubble { display: none; }
  .bubble--d { display: block; }

  .site-header .container { justify-content: flex-start; }
  .brand { width: calc(369.03 * var(--u)); height: calc(134.94 * var(--u)); }
  .brand img { width: calc(321 * var(--u)); height: auto; }

  /* Hero 1920 × 1080: Text 518 + Gap 32 + Maskottchen 650 × 620 */
  .hero { display: flex; align-items: center; min-height: calc(1080 * var(--u)); padding: calc(100 * var(--u)) 0; background: linear-gradient(44deg, var(--nw-stops)); }
  .hero__inner { display: flex; align-items: center; gap: calc(32 * var(--u)); }
  .hero__text { flex: 0 0 calc(518 * var(--u)); padding: 0 20px; gap: calc(32 * var(--u)); }
  .hero__visual { position: static; width: calc(650 * var(--u)); margin-left: auto; }
  .hero .hl__a { font-size: calc(100 * var(--u)); }
  .hero .hl__b { font-size: calc(70 * var(--u)); line-height: .8; }
  .hero .hl__c { font-size: calc(120 * var(--u)); }
  .hero__lead { font-size: calc(28 * var(--u)); line-height: 1.2; max-width: none; white-space: nowrap; }
  .hero .link-strong { font-size: calc(28 * var(--u)); }

  /* Oranger Block: Padding 88/20, Inhalt 950 */
  .info { padding: calc(88 * var(--u)) 0; }
  .info__inner { max-width: calc(950 * var(--u)); margin: 0 auto; }
  .info__title { font-size: calc(55 * var(--u)); line-height: 1.2; }
  .info p { font-size: calc(22 * var(--u)); line-height: 1.2; max-width: none; }

  /* Padding 88/20, Gap 32: Warnschild 570 × 459 + Titel 598 */
  .dont { padding: calc(88 * var(--u)) 0; background: linear-gradient(350deg, var(--nw-stops-dont)); }
  .dont__head { flex-direction: row; align-items: center; gap: calc(32 * var(--u)); margin-bottom: calc(32 * var(--u)); }
  .dont__visual { flex: 0 0 calc(570 * var(--u)); width: calc(570 * var(--u)); margin: 0; }
  .hl--dont { padding: 0 20px; text-align: left; line-height: .9; }
  .hl--dont .hl__a { font-size: calc(80 * var(--u)); line-height: .9; }
  .quiz__visual { height: auto; }
  .hl--dont .hl__b { font-size: calc(50 * var(--u)); line-height: .9; }
  .hl--dont .hl__c { font-size: calc(100 * var(--u)); line-height: .9; }

  /* Karten 588 × 348, Padding 32, Icon 120 + Gap 24, Titel 35, Text 24 */
  .cards { grid-template-columns: repeat(2, 1fr); gap: calc(24 * var(--u)); align-items: stretch; }
  .cards:has([aria-expanded="true"]) { align-items: start; } /* aufgeklappte Karte wächst allein */
  .card { min-height: calc(348 * var(--u)); padding: calc(32 * var(--u)); gap: calc(24 * var(--u)); }
  .card__title { font-size: calc(35 * var(--u)); }
  .card__teaser { font-size: calc(24 * var(--u)); }
  .card__more { font-size: calc(22 * var(--u)); }
  .card__toggle { margin-top: auto; font-size: calc(24 * var(--u)); }

  /* Quiz: Padding 32/20/64/20, Text 558 + Gap 32 + Herz 610 × 447 */
  .quiz { padding: calc(32 * var(--u)) 0 calc(64 * var(--u)); background: linear-gradient(183deg, var(--nw-stops)); }
  .quiz__inner { flex-direction: row-reverse; align-items: center; justify-content: flex-end; gap: calc(32 * var(--u)); }
  .quiz__text { flex: 0 0 calc(558 * var(--u)); padding: 0 20px; }
  .quiz__visual { flex: 0 0 calc(610 * var(--u)); width: calc(610 * var(--u)); margin: 0; }
  .quiz__kicker { font-size: calc(28 * var(--u)); }
  .hl--quiz .q1, .hl--quiz .q2 { display: block; }
  .hl--quiz .hl__a { font-size: calc(80 * var(--u)); }
  .hl--quiz .q2 { font-size: calc(50 * var(--u)); }
  .hl--quiz .hl__c { font-size: calc(100 * var(--u)); }
  .quiz__lead { font-size: calc(22 * var(--u)); line-height: calc(26 * var(--u)); max-width: calc(518 * var(--u)); }

  /* Footer vierspaltig wie nordwasser.de */
  .footer__inner {
    flex-direction: row; align-items: flex-start; justify-content: space-between; gap: calc(40 * var(--u));
    padding-top: calc(70 * var(--u)); padding-bottom: calc(80 * var(--u)); font-size: calc(16 * var(--u));
  }
  .footer__logo { order: 0; flex: 0 0 calc(300 * var(--u)); padding-top: calc(10 * var(--u)); }
  .footer__logo img { width: 100%; }
  .footer__links { order: 1; flex: 0 0 calc(280 * var(--u)); margin: 0; padding: 0 calc(40 * var(--u)); border-left: 1px solid rgba(255,255,255,.6); border-right: 1px solid rgba(255,255,255,.6); text-align: left; font-size: inherit; line-height: 1.5; }
  .footer__links li + li { margin-top: calc(10 * var(--u)); }
  .footer__contact { order: 2; flex: 1; gap: calc(14 * var(--u)); }
  .footer__social { order: 0; }
  .footer__tuev { order: 3; width: calc(150 * var(--u)); margin: 0; }
  .footer__a11y { display: none; }
  .site-footer::after { display: none; }
  .footer__legal { padding: calc(14 * var(--u)) var(--gutter); }
  .footer__legal li { font-size: calc(16 * var(--u)); }
  /* wie nordwasser.de: fest unten links, oberhalb des Consent-Icons (ca. 0–60 px) */
  .to-top { position: fixed; left: 20px; top: auto; bottom: 80px; width: 48px; height: 48px; transform: none; z-index: 20; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .to-top.is-visible { opacity: 1; visibility: visible; }
}

@media (min-width: 1240px) {
  .container { padding-left: 0; padding-right: 0; }
}
