/* =========================================================
   MS Eventprint — Landingpage
   Farben und Formen sind aus dem Flyer abgeleitet.
   Aufbau: mobile first, Media Queries nur als min-width.

   Hausschrift: der Flyer nutzt eine geometrische Grotesk.
   Es liegt keine lizenzierte Webfont-Datei im Projekt, deshalb
   laeuft die Seite auf einem System-Font-Stack. Sobald z. B.
   Montserrat als woff2 in assets/fonts/ liegt, reicht es, den
   Block unten zu aktivieren und "Montserrat" vorne in --schrift
   einzutragen.

   @font-face {
     font-family: "Montserrat";
     src: url("../fonts/montserrat-700.woff2") format("woff2");
     font-weight: 700; font-display: swap; font-style: normal;
   }
   ========================================================= */

:root {
  --cyan:        #58ABE3;   /* aus dem Flyer gemessen */
  --cyan-tief:   #0A6F9E;   /* nur fuer Cyan-Text auf Weiss */
  --cta:         #1B84C6;   /* Telefon-Knopf: blau mit weisser Schrift */
  --cta-hover:   #14719F;
  --cyan-hell:   #8CC7EC;
  --magenta:     #DB468C;
  --gelb:        #FBEE60;
  --anthrazit:   #504F4F;   /* Leitflaeche des Flyers */
  --anthrazit-0: rgba(80, 79, 79, 0);
  --tief:        #2B2B2B;
  --grau:        #F2F2F2;
  --weiss:       #FFFFFF;
  --text:        #2B2B2B;
  --text-leise:  #5C5A5A;

  --schrift: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto,
             "Helvetica Neue", Arial, sans-serif;

  --bahn: 76rem;
  --rand: 1.25rem;
  --kante: 28px;           /* Hoehe der diagonalen Schnittkante */
}

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

/* Muss gewinnen: eigene display-Regeln duerfen [hidden] nicht aushebeln */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
  overflow-x: hidden;
  padding-bottom: 4.75rem;         /* Platz fuer die feste Anrufleiste */
}

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

h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan-tief); }
/* Links im Fliesstext auf dunklem Grund: Cyan reicht dort nicht fuer den Kontrast,
   deshalb weiss mit cyanfarbener Unterstreichung (8,2:1 statt 3,3:1). */
.hero a:not(.knopf), .cta-band a:not(.knopf), .erfahrung a:not(.knopf), .cookie__fuss a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.cta-band--hell a:not(.knopf) { color: var(--cyan-tief); text-decoration-color: var(--cyan-tief); }
.knopf { text-decoration: none; }

.bahn { width: 100%; max-width: var(--bahn); margin: 0 auto; padding: 0 var(--rand); }
/* Gleiche Aussenkante fuer alle Abschnitte. Die Zeilenlaenge wird nicht
   ueber die Bahn begrenzt, sondern ueber die Inhalte, sonst springen die
   linken Kanten von Abschnitt zu Abschnitt. */
.bahn.schmal { max-width: var(--bahn); }
.schmal > h2, .schmal > h3, .schmal > p, .schmal > .untertitel,
.schmal > .video, .schmal > ul, .schmal > .erfahrung__cta { max-width: 52rem; }

.cyan { color: var(--cyan-tief); }
.nowrap { white-space: nowrap; }
.svg-lager { position: absolute; width: 0; height: 0; overflow: hidden; }

.skiplink {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--tief); color: #fff; padding: 0.75rem 1rem; font-weight: 700;
}
.skiplink:focus { left: 0; }

/* ---------- Icons ---------- */
.ic { width: 2.5rem; height: 2.5rem; flex: none; }
.ic--klein { width: 1.4em; height: 1.4em; }

/* ---------- Knoepfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6rem;
  font: inherit; font-weight: 700; line-height: 1.25;
  text-decoration: none; cursor: pointer;
  padding: 0.95rem 1.4rem;
  border: 3px solid transparent;
  border-radius: 2px;
  text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.knopf--cta    { background: var(--cta); color: #fff; font-size: 1.15rem; }
.knopf--cta:hover   { background: var(--cta-hover); }
.knopf--weiss  { background: var(--weiss); color: var(--cta); font-size: 1.15rem; }
.knopf--weiss:hover { background: #EAF4FB; }
.knopf--cyan   { background: var(--cyan); color: var(--tief); }
.knopf--cyan:hover  { background: var(--cyan-hell); }
.knopf--rand   { background: transparent; color: #fff; border-color: var(--cyan); }
.knopf--rand:hover { background: rgba(88,171,227,.18); }
.knopf--schlicht { background: transparent; color: #fff; text-decoration: underline; padding: 0.95rem 0.6rem; }
.knopf--cta, .knopf--weiss { width: 100%; }


:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}
.hero :focus-visible, .cta-band :focus-visible,
.erfahrung :focus-visible, .fuss :focus-visible, .cookie :focus-visible {
  outline-color: #fff;
}

/* ---------- Kopf ---------- */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--anthrazit);
  color: #fff;
  padding: 2.75rem 0 calc(2.25rem + var(--kante));
}
.hero__titel {
  font-size: clamp(2.35rem, 11vw, 4.75rem);
  font-weight: 800;
  text-transform: none;
}
.dtf { white-space: nowrap; }
.dtf__c { color: var(--cyan); }
.dtf__m { color: var(--magenta); }
.dtf__y { color: var(--gelb); }

.hero__sub {
  margin: 0.9rem 0 0;
  font-size: clamp(1.15rem, 5vw, 1.75rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hero__linie {
  border: 0; height: 4px; background: var(--cyan);
  margin: 1.15rem 0 1.35rem; max-width: 22rem;
}
.merkmale {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.9rem 1.6rem;
}
.merkmale li {
  display: flex; align-items: center; gap: 0.55rem;
  font-weight: 600; text-transform: uppercase;
  font-size: clamp(0.95rem, 3.8vw, 1.2rem);
  letter-spacing: 0.03em;
  color: #fff;
}
.merkmale .ic { color: var(--cyan); width: 2rem; height: 2rem; }

.hero__hook {
  margin: 1.35rem 0 0;
  font-size: 1.02rem; line-height: 1.5;
  color: rgba(255,255,255,.92);
  max-width: 34rem;
}
.hero__hook-antwort { color: var(--cyan); font-weight: 700; }
.hero__klein {
  margin: 1.1rem 0 0;
  font-size: 0.88rem; color: rgba(255,255,255,.78);
}

/* Motiv aus dem Flyer. Auf dem Handy als Streifen unter dem Text,
   ab 900px rechts neben der Headline, links weich in die dunkle Flaeche auslaufend. */
.hero__bild {
  position: relative;
  height: 10.5rem;
  margin: 1.5rem 0 calc((2.25rem + var(--kante)) * -1);
}
.hero__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 46%; }
.hero__bild::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--anthrazit) 0, var(--anthrazit-0) 34%),
    linear-gradient(90deg,  var(--anthrazit) 0, var(--anthrazit-0) 26%);
}

/* diagonale Schnittkante wie im Flyer */
.hero__kante {
  position: absolute; left: 0; right: 0; bottom: -1px;
  z-index: 2;
  height: var(--kante);
  background: var(--weiss);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ---------- Markenzeichen zwischen Hero und Vorteilen ---------- */
.markenzeichen { background: var(--weiss); display: grid; place-items: center; padding: 2rem 1rem 0.5rem; }
.markenzeichen img { width: 9rem; height: 9rem; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 2.75rem 0; }
.abschnitt--hell { background: var(--weiss); }
.abschnitt--grau { background: var(--grau); }

.h2 {
  font-size: clamp(1.4rem, 6vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin-bottom: 1rem;
}
.h2--gross { font-size: clamp(1.6rem, 7vw, 2.5rem); }

/* Untertitel unter einer Ueberschrift: erklaert die Aussage in einem Satz */
.untertitel {
  font-size: 1.05rem; line-height: 1.55;
  color: var(--text-leise);
  max-width: 44rem;
  margin: -0.35rem 0 1.6rem;
}
.erfahrung .untertitel { color: rgba(255,255,255,.86); }
.vorteile .untertitel { margin-bottom: 1.9rem; }

.leadin {
  color: var(--cyan-tief);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

/* ---------- Leistungsblock ---------- */
.leistung__logo { margin-top: 2rem; }
.leistung__logo img { width: 11rem; height: 11rem; margin: 0 auto; }

/* ---------- Vorteile ---------- */
.vorteile { background: var(--grau); }
.karten { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.karte {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  grid-template-rows: auto 1fr;
  background: var(--weiss);
  overflow: hidden;
}
.karte__icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  background: var(--anthrazit);
  color: var(--cyan);
  display: grid; place-items: center;
  padding: 1rem 0.5rem;
}
.karte__icon .ic { width: 2.75rem; height: 2.75rem; }
.karte h3 {
  grid-column: 2; grid-row: 1;
  font-size: 1.08rem; font-weight: 800;
  padding: 1rem 1.1rem 0.3rem;
}
.karte p {
  grid-column: 2; grid-row: 2;
  margin: 0; padding: 0 1.1rem 1.1rem;
  color: var(--text-leise); font-size: 0.98rem; line-height: 1.5;
}

/* ---------- CTA-Baender ---------- */
.cta-band { background: var(--anthrazit); color: #fff; padding: 2rem 0; }
.cta-band--hell { background: var(--weiss); color: var(--text); }
.cta-band__inhalt { display: grid; gap: 1.1rem; }
.cta-band__zeile {
  font-size: 1.3rem; font-weight: 800; margin: 0 0 0.45rem;
  text-transform: none; letter-spacing: 0;
}
.cta-band__klein { font-size: 0.95rem; margin: 0; color: rgba(255,255,255,.82); }
.cta-band--hell .cta-band__klein { color: var(--text-leise); }
.cta-band .knopf, .cta-band--hell .knopf { justify-self: start; }
.cta-band__text { max-width: 52rem; }

/* ---------- Andruck ---------- */
.andruck { background: var(--cyan); color: var(--tief); padding: 2.75rem 0; }
.andruck__inhalt { display: grid; gap: 1.25rem; justify-items: start; }
.andruck__icon {
  background: var(--weiss); color: var(--tief);
  width: 5rem; height: 5rem; border-radius: 50%;
  display: grid; place-items: center;
}
.andruck__icon .ic { width: 3rem; height: 3rem; }
.andruck__titel {
  font-size: clamp(1.75rem, 8vw, 3rem);
  font-weight: 800; text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.andruck__text p { font-size: 1.1rem; max-width: 34rem; }
/* Aussage, kein Knopf: ohne Flaeche, damit sie sich vom CTA unterscheidet */
.andruck__claim {
  font-size: clamp(1.15rem, 5vw, 1.6rem);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--tief);
  margin: 0.9rem 0 1.35rem;
}
/* Weisser Ring, damit sich der blaue Knopf von der Cyanflaeche abhebt */
.andruck__fuss { font-size: 0.95rem; margin: 0.7rem 0 0; }

/* ---------- Partnerschaft ---------- */
.partnerschaft .claim {
  font-weight: 800; text-transform: uppercase;
  color: var(--cyan-tief); font-size: 1.1rem; letter-spacing: 0.02em;
}

/* ---------- 20 Jahre ---------- */
.erfahrung { background: var(--anthrazit); color: #fff; }
.erfahrung .h2 { color: #fff; }
.erfahrung .cyan { color: var(--cyan); }
.erfahrung__cta { margin-top: 1.75rem; display: grid; gap: 0.75rem; justify-items: start; }
.erfahrung .cta-band__klein { color: rgba(255,255,255,.82); }

/* ---------- Video ---------- */
.h3--video {
  margin: 2.25rem 0 0; font-size: 1.15rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.video-block { padding-bottom: 2rem; }
.video { margin: 1.5rem 0 0; }
.video__rahmen {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: var(--tief); overflow: hidden;
}
.video__rahmen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__schleier {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,43,43,0) 30%, rgba(43,43,43,.35) 100%);
}
.video__start {
  position: absolute; inset: 0;
  display: grid; place-items: center; gap: 0;
  border: 0; background: transparent; cursor: pointer; padding: 0;
  color: #fff;
}
.video__kreis {
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  background: var(--cyan); color: var(--tief);
  display: grid; place-items: center;
  box-shadow: 0 0 0 5px rgba(255,255,255,.4);
  transition: transform .15s ease;
}
.video__start:hover .video__kreis { transform: scale(1.06); }
.video__kreis .ic { width: 2.2rem; height: 2.2rem; margin-left: 0.2rem; }
.video__hinweis {
  background: var(--tief); color: #fff;
  font-size: 0.9rem; line-height: 1.5;
  padding: 0.85rem 1rem;
  display: grid; gap: 0.75rem; justify-items: start;
  border-top: 3px solid var(--cyan);
}
.video__hinweis .knopf { padding: 0.6rem 1rem; font-size: 0.92rem; }

/* ---------- Fuss ---------- */
.fuss { background: var(--anthrazit); color: #fff; padding: 2rem 0 2.25rem; }
.markenleiste {
  display: flex; align-items: center; gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.markenleiste__logo { width: 5rem; height: 5rem; }
.markenleiste__ed { display: block; }
.markenleiste__ed img { width: 5rem; height: 5rem; }

.fuss__unten { padding-top: 1.5rem; }
.fuss__nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.15rem; }
.fuss__nav a, .fuss__cookie {
  color: rgba(255,255,255,.88); font: inherit; font-size: 0.9rem;
  text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer;
}
.fuss__nav a:hover, .fuss__cookie:hover { color: #fff; }

/* ---------- Kontaktliste ---------- */
.kontaktliste { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 1.1rem; }
.kontaktliste li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  grid-template-areas: "icon label" "icon wert";
  align-items: center;
  column-gap: 0.85rem;
}
.kontaktliste .ic { grid-area: icon; width: 2.25rem; height: 2.25rem; color: var(--cyan-tief); }
.kontaktliste__label {
  grid-area: label; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-leise); font-weight: 700;
}
.kontaktliste__wert { grid-area: wert; font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none; }
a.kontaktliste__wert:hover { text-decoration: underline; }

/* ---------- Feste Anrufleiste ---------- */
.anrufleiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--anthrazit);
  padding: 0.55rem var(--rand) calc(0.55rem + env(safe-area-inset-bottom));
  border-top: 3px solid var(--cyan);
}
.anrufleiste__knopf {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--cta); color: #fff;
  font-weight: 800; font-size: 1.15rem; text-decoration: none;
  padding: 0.85rem 1rem; border-radius: 2px;
}
body.cookie-offen .anrufleiste { display: none; }

/* ---------- Cookie-Dialog ---------- */
.cookie { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; }
.cookie__schatten { position: absolute; inset: 0; background: rgba(20,20,20,.62); }
.cookie__box {
  position: relative; width: 100%;
  background: var(--anthrazit); color: #fff;
  max-height: 88vh; overflow-y: auto;
}
.cookie__kante {
  height: 5px;
  background: linear-gradient(90deg,
    var(--cyan) 0 33.34%, var(--magenta) 33.34% 66.67%, var(--gelb) 66.67% 100%);
}
.cookie__body { padding: 1.35rem var(--rand) 1.5rem; }
.cookie__titel { font-size: 1.25rem; font-weight: 800; text-transform: uppercase; margin-bottom: 0.7rem; }
.cookie__text { font-size: 0.95rem; color: rgba(255,255,255,.9); }
.cookie__optionen { display: grid; gap: 1rem; margin: 1.25rem 0; }
.cookie__option { background: rgba(0,0,0,.22); padding: 0.9rem 1rem; border-left: 4px solid var(--cyan); }
.cookie__optionkopf { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.cookie__optionname { font-weight: 700; }
.cookie__pflicht { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cyan); }
.cookie__option p { margin: 0.45rem 0 0; font-size: 0.88rem; color: rgba(255,255,255,.82); }
.cookie__knoepfe { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
.cookie__fuss { margin: 1rem 0 0; font-size: 0.85rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie__fuss a { color: var(--cyan); }

.schalter { display: flex; align-items: center; gap: 0.7rem; cursor: pointer; }
.schalter input { position: absolute; opacity: 0; width: 0; height: 0; }
.schalter__spur {
  width: 3.1rem; height: 1.7rem; border-radius: 1rem; flex: none;
  background: rgba(255,255,255,.28); position: relative;
  transition: background-color .15s ease;
}
.schalter__knopf {
  position: absolute; top: 0.2rem; left: 0.2rem;
  width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #fff;
  transition: transform .15s ease;
}
.schalter input:checked + .schalter__spur { background: var(--cyan); }
.schalter input:checked + .schalter__spur .schalter__knopf { transform: translateX(1.4rem); }
.schalter input:focus-visible + .schalter__spur { outline: 3px solid #fff; outline-offset: 3px; }

/* =========================================================
   Ab 600px
   ========================================================= */
@media (min-width: 37.5em) {
  :root { --rand: 2rem; --kante: 40px; }
  .abschnitt { padding: 3.5rem 0; }
  .karte { grid-template-columns: 5.5rem 1fr; }
  .andruck__inhalt { gap: 1rem; }
  .markenleiste { gap: 2rem; }
  .fuss__nav { gap: 0.6rem 1.5rem; }
  .cookie { align-items: center; justify-content: center; padding: 2rem; }
  .cookie__box { max-width: 40rem; }
  .cookie__knoepfe { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
  .video__hinweis { grid-template-columns: 1fr auto; align-items: center; gap: 1.25rem; }
}

/* =========================================================
   Ab 900px
   ========================================================= */
@media (min-width: 56.25em) {
  :root { --kante: 60px; }
  body { padding-bottom: 0; }
  .anrufleiste { display: none; }

  .hero { padding: 4.5rem 0 calc(4.25rem + var(--kante)); }
  .hero__inhalt { position: relative; z-index: 1; }
  .hero__text { max-width: 36rem; }
  .hero__bild {
    position: absolute; top: 0; right: 0;
    width: 56%; height: 100%; margin: 0;
  }
  .hero__bild img { object-position: 46% 48%; }
  .hero__bild::after {
    background: linear-gradient(90deg, var(--anthrazit) 0, var(--anthrazit-0) 44%);
  }
  .hero__linie { max-width: 30rem; }
  .merkmale { gap: 1rem 3rem; }
  .hero__hook { font-size: 1.12rem; margin-top: 1.6rem; }

  .abschnitt { padding: 4.5rem 0; }
  .leistung { display: grid; grid-template-columns: 1fr 20rem; gap: 3rem; align-items: center; }
  .leistung__logo { margin-top: 0; }
  .leistung__logo img { width: 100%; height: auto; }

  .karten { grid-template-columns: 1fr 1fr; gap: 1.25rem; }

  .andruck { padding: 4rem 0; }
  .andruck__icon { width: 6rem; height: 6rem; }
  .andruck__icon .ic { width: 3.5rem; height: 3.5rem; }

  .kontaktliste { grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; }
  /* Alle Telefon-Knoepfe gleich breit und an derselben linken Kante */
  .knopf--cta, .knopf--weiss { width: auto; min-width: 17rem; }
}

/* =========================================================
   Bewegung reduzieren
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Nur fuer Screenreader ---------- */
.visuell-versteckt {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; white-space: nowrap;
  clip: rect(0 0 0 0); clip-path: inset(50%);
}
