/* =========================================================
   MP&P Druck und Werbung – Stylesheet
   Farben und Schrift aus „MP&P Websheet_3.pdf“ übernommen
   ========================================================= */

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght.woff2") format("woff2-variations"),
       url("../fonts/source-sans-3-latin-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #002561;
  --navy-hell: #1a3d78;
  --rot: #c4151c;
  --rot-dunkel: #a01016;
  --eis: #e1f3fd;
  --cyan: #00adef;
  --weiss: #fff;
  --text: var(--navy);
  --text-leise: #3d5683;
  --linie: #b9cbe2;
  --fehler: #b00d14;
  --ok: #0a6b3a;

  --schrift: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --rand: clamp(1rem, 4vw, 2.5rem);
  --breite: 72rem;
  --radius: 10px;
  --kante: 6px;              /* die markante dicke Kartenkante aus dem PDF */
  --kopf-hoehe: 4.25rem;
  --schatten: 0 1px 2px rgb(0 37 97 / .06), 0 8px 24px -12px rgb(0 37 97 / .25);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-hoehe) + 1rem); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--weiss);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
/* Fokusring: Navy mit weißem Rand – auf Weiß, Eisblau und Rot gut sichtbar (≥ 3:1) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 5px var(--weiss);
}
/* auf dunklem Grund: Cyan (5,7:1 auf Navy) */
.fuss a:focus-visible, .karte--bonus a:focus-visible, .knopf--navy:focus-visible {
  outline-color: var(--cyan); box-shadow: none;
}
address { font-style: normal; }

.rot { color: var(--rot); }
.unsichtbar { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { display: none; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sprung {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: var(--weiss); padding: .6rem 1rem; border-radius: var(--radius);
}
.sprung:focus { top: 1rem; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 700; text-decoration: none; line-height: 1.1;
  border: 0; border-radius: var(--radius); cursor: pointer;
  padding: .8rem 1.3rem; min-height: 44px;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.knopf:active { transform: translateY(1px); }
.knopf--rot  { background: var(--rot);  color: var(--weiss); }
.knopf--rot:hover  { background: var(--rot-dunkel); }
.knopf--navy { background: var(--navy); color: var(--weiss); }
.knopf--navy:hover { background: var(--navy-hell); }
/* reine Info-Felder im Look der Knöpfe – ohne Link, ohne Hover */
.knopf--info { cursor: default; user-select: text; }
.knopf--info.knopf--rot:hover { background: var(--rot); }
.knopf--info.knopf--navy:hover { background: var(--navy); }
.knopf--info:active { transform: none; }
.knopf--klein { padding: .55rem 1rem; font-size: 1rem; }
.knopf--gross { font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); padding: .85rem 1.5rem; }

/* ---------- Kopf / Navigation ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .96);
  border-top: 6px solid var(--navy);
  backdrop-filter: saturate(1.4) blur(8px);
  transition: box-shadow .2s ease;
}
.kopf.ist-gescrollt { box-shadow: 0 6px 20px -12px rgb(0 37 97 / .45); }
.kopf__innen {
  max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand);
  height: var(--kopf-hoehe); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.kopf__marke img { height: 2.6rem; width: auto; }
/* Startseite: kleines Logo erst nach dem Scrollen; solange unsichtbar auch nicht per Tab erreichbar */
.kopf__marke { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s; }
.kopf.ist-gescrollt .kopf__marke, .kopf.navi-offen .kopf__marke { opacity: 1; visibility: visible; transition: opacity .25s ease; }

.kopf__toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -.5rem;
  background: none; border: 0; color: var(--navy); cursor: pointer; border-radius: var(--radius);
}
.kopf__toggle .icon { width: 28px; height: 28px; grid-area: 1 / 1; }
.kopf__toggle .icon--zu { display: none; }
.kopf.navi-offen .icon--auf { display: none; }
.kopf.navi-offen .icon--zu { display: block; }

.navi {
  position: absolute; inset: 100% 0 auto 0;
  display: none; flex-direction: column; gap: .25rem;
  padding: .75rem var(--rand) 1.25rem;
  background: var(--weiss); border-bottom: 1px solid var(--linie);
  box-shadow: 0 16px 24px -16px rgb(0 37 97 / .35);
}
.kopf.navi-offen .navi { display: flex; }
.navi a:not(.knopf) {
  font-weight: 600; text-decoration: none; padding: .75rem .25rem; font-size: 1.2rem;
  border-bottom: 1px solid var(--eis);
}
.navi a:not(.knopf):hover { color: var(--rot); }
.navi .knopf { margin-top: .75rem; }

@media (min-width: 52rem) {
  .kopf__toggle { display: none; }
  .navi {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 1.75rem;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .navi a:not(.knopf) { border: 0; padding: .5rem 0; font-size: 1.1rem; position: relative; }
  .navi a:not(.knopf)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 2px;
    background: var(--rot); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
  }
  .navi a:not(.knopf):hover::after { transform: scaleX(1); }
  .navi .knopf { margin: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 2rem var(--rand) 3rem;
  background: var(--weiss);
}
.hero__innen {
  position: relative; z-index: 2;
  max-width: 44rem; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero__logo { width: min(100%, 30rem); height: auto; }
.hero__titel {
  margin-top: 1.75rem;
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem);
}
.hero__titel > span { display: block; }
.hero__sub { color: var(--navy); margin-top: .2rem; }
.hero__aktionen {
  margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem;
  width: 100%;
}
.hero__aktionen .knopf { flex: 1 1 15rem; max-width: 22rem; }
.hero__link {
  margin-top: 1.5rem; display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: 1.15rem; color: var(--rot); text-decoration: none;
}
.hero__link:hover .icon { transform: translateX(3px); }
.hero__link .icon { transition: transform .15s ease; }

/* Die Figuren aus dem PDF: dekorativ, auf kleinen Bildschirmen dezent */
.hero__figur, .hero__schwarm { position: absolute; z-index: 1; pointer-events: none; height: auto; }
.hero__figur {
  width: clamp(9rem, 26vw, 22rem);
  left: clamp(-4rem, -6vw, -1rem); bottom: 1rem;
  opacity: .1;
}
.hero__schwarm { width: clamp(7rem, 18vw, 15rem); right: var(--rand); top: 1.5rem; display: none; }
h1, h2, h3, .kontakt__alternative { text-wrap: balance; }

@media (min-width: 64rem) {
  .hero { padding: 3rem var(--rand) 4rem; }
  .hero__figur { opacity: 1; bottom: 2.5rem; animation: anlauf .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero__schwarm { display: block; animation: anlauf 1.1s .15s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes anlauf {
  from { transform: translateX(-2.5rem); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ---------- Abschnitte ---------- */
.eis { background: var(--eis); }
.abschnitt {
  max-width: var(--breite); margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--rand);
}
.eis .abschnitt + .abschnitt { padding-top: 0; }

/* Weißes „Etikett“ hinter der Überschrift – wie im PDF */
.etikett {
  display: inline-block; background: var(--weiss);
  padding: .35rem 1rem .45rem; border-radius: var(--radius);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.gross { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }

/* ---------- Karten ---------- */
.raster { display: grid; gap: clamp(1rem, 2.5vw, 2rem); grid-template-columns: 1fr; }
@media (min-width: 36rem) { .raster { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .raster { grid-template-columns: repeat(3, 1fr); } }

.karte {
  background: var(--weiss);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.5rem;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.karte h3 { font-size: clamp(1.45rem, 1.25rem + .6vw, 1.8rem); margin-bottom: .45rem; }
.karte p, .zeilen li { color: var(--text); }
.karte__icon {
  width: 2.75rem; height: 2.75rem; margin: 0 auto .75rem;
  fill: none; stroke: var(--rot); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.uvm { margin-top: .35rem; color: var(--text-leise); font-style: italic; }

/* Leistungen: dicke Kante unten */
.karte--leistung { border-bottom-width: var(--kante); }
.karte--leistung:hover { transform: translateY(-3px); box-shadow: var(--schatten); }

/* Ablauf: dicke Kante oben, Nummer */
.schritte { counter-reset: schritt; }
.karte--schritt { position: relative; border-top-width: var(--kante); padding-top: 2.25rem; }
.schritt__nr {
  position: absolute; top: -1.35rem; left: 50%; transform: translateX(-50%);
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rot); color: var(--weiss); font-weight: 800; font-size: 1.3rem;
  box-shadow: 0 0 0 4px var(--eis);
}
.karte--schritt a { color: var(--rot); font-weight: 600; text-underline-offset: 3px; }
.schritte { margin-top: 1.5rem; row-gap: 2.5rem; }

/* Konditionen: kompakter, Icon links */
.raster--info { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.karte--info {
  display: flex; gap: 1rem; text-align: left; align-items: flex-start;
  border-top-width: var(--kante);
}
.karte--info .karte__icon { margin: .15rem 0 0; width: 2.4rem; height: 2.4rem; }
.karte--info h3 { margin-bottom: .3rem; }
.karte--bonus { background: var(--navy); color: var(--weiss); }
.karte--bonus p, .karte--bonus h3 { color: var(--weiss); }
.karte--bonus .karte__icon { stroke: var(--cyan); }
.abzeichen {
  display: inline-block; margin-top: .65rem;
  background: var(--rot); color: var(--weiss) !important; font-weight: 700;
  padding: .2rem .7rem; border-radius: 999px; font-size: 1rem;
}

/* ---------- Kontakt ---------- */
.kontakt {
  display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 56rem) { .kontakt { grid-template-columns: 1fr 1.1fr; } }

.kontakt__hinweis { font-weight: 700; font-size: 1.2rem; margin: .75rem 0 2rem; }
.kontakt__alternative {
  font-weight: 700; line-height: 1.05;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem);
}
.kontakt__wert {
  display: inline-block; margin: .35rem 0 2rem;
  font-weight: 700; color: var(--rot); text-decoration: none;
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem); line-height: 1.1;
  overflow-wrap: anywhere;
}
.kontakt__wert:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

.formular-karte__titel { font-size: clamp(1.5rem, 1.3rem + .7vw, 1.9rem); margin-bottom: .75rem; }
.formular {
  border: 2px solid var(--navy); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid; gap: 1.25rem;
}
.feld { display: grid; gap: .4rem; }
.feld label { color: var(--rot); font-size: 1.15rem; }
.feld .optional { color: var(--text-leise); font-size: .95rem; }
.feld textarea, .feld input[type="email"] {
  width: 100%; font: inherit; color: var(--text);
  border: 1.5px solid var(--navy); border-radius: var(--radius);
  padding: .75rem .9rem; background: var(--weiss); resize: vertical; min-height: 3rem;
}
.feld textarea:focus, .feld input:focus { border-color: var(--navy); }
.feld [aria-invalid="true"] { border-color: var(--fehler); background: #fff6f6; }
.feld__fehler { color: var(--fehler); font-size: 1rem; font-weight: 600; }

.feld--check { grid-template-columns: auto 1fr; align-items: start; column-gap: .75rem; }
.feld--check input { width: 1.3rem; height: 1.3rem; margin: .2rem 0 0; accent-color: var(--navy); }
.feld--check label { color: var(--text); font-size: 1rem; line-height: 1.45; }
.feld--check label a { color: var(--rot); }
.feld--check .feld__fehler { grid-column: 2; }

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

.formular__senden { justify-self: center; min-width: 14rem; }
.formular__senden[disabled] { opacity: .65; cursor: progress; }
.formular__status:empty { display: none; }
.formular__status {
  border-radius: var(--radius); padding: .9rem 1rem; font-weight: 600; text-align: center;
}
.formular__status.ist-ok { background: #e6f5ec; color: var(--ok); }
.formular__status.ist-fehler { background: #fdeeee; color: var(--fehler); }
.formular__status a { color: inherit; }

/* ---------- Fuß ---------- */
.fuss {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--weiss);
  padding: 2.5rem var(--rand) 2.5rem;
}
.fuss__innen {
  position: relative; z-index: 1;
  max-width: var(--breite); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem;
}
.fuss__adresse { line-height: 1.5; }
.fuss__adresse strong { font-weight: 400; }
.fuss__adresse b { font-weight: 900; }
.fuss a { text-decoration: underline; text-decoration-color: rgb(255 255 255 / .55); text-underline-offset: 3px; }
.fuss a:hover { text-decoration-color: var(--cyan); text-decoration-thickness: 2px; }
.fuss__recht { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-right: clamp(0rem, 14vw, 13rem); }
.fuss__figur {
  position: absolute; right: -1.5rem; bottom: -1.75rem; z-index: 0;
  width: clamp(8rem, 20vw, 15rem); height: auto; opacity: .35; pointer-events: none;
}
@media (min-width: 48rem) { .fuss__figur { opacity: 1; } }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.unterseite .kopf__marke { opacity: 1; visibility: visible; }
.rechtstext {
  max-width: 48rem; margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--rand) clamp(3rem, 6vw, 5rem);
}
.rechtstext h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.2rem); margin-bottom: 2rem; }
.rechtstext h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin: 2.5rem 0 .75rem; }
.rechtstext h3 { font-size: 1.2rem; margin: 1.75rem 0 .4rem; }
.rechtstext p + p { margin-top: .9rem; }
.rechtstext ul { list-style: disc; padding-left: 1.4rem; margin: .75rem 0; }
.rechtstext li + li { margin-top: .2rem; }
.rechtstext a { color: var(--rot); overflow-wrap: anywhere; }
.rechtstext .block { padding: 1.25rem 1.4rem; background: var(--eis); border-radius: var(--radius); border-left: var(--kante) solid var(--navy); }
.zurueck { display: inline-flex; align-items: center; gap: .4rem; margin-top: 3rem; font-weight: 700; color: var(--rot); text-decoration: none; }
.zurueck .icon { transform: scaleX(-1); }
mark.offen { background: #fff2a8; color: inherit; padding: 0 .2em; border-radius: 3px; }
