@charset "UTF-8";
/* ============================================================
   dertiofant.de – Design-Prototyp (Relaunch)
   Design-Tokens abgeleitet aus dem Tiorfan-Marketingmaterial:
   Pink #E5127D, Himmelblau #35B6E9, Pastellflächen, runde Formen.
   Öffentlicher Bereich führt mit Himmelblau/Petrol (markenfrei),
   Pink bleibt Akzent (Maskottchen-Ohren, Musterbestellung).
   Fachkreis-Bereich darf die volle Marke zeigen.
   ============================================================ */

/* Schriften (Baloo 2, Nunito) werden lokal über css/fonts.css geladen, keine Verbindung zu Google Fonts. */

:root {
  /* Marke */
  --pink:        #e5127d;
  --pink-dark:   #b80d63;
  --pink-50:     #fdeef5;
  --sky:         #2eaede;
  --sky-dark:    #1f85ab;
  --petrol:      #1b607f;
  --sky-50:      #eaf6fc;
  --cream:       #fff8f3;
  --peach:       #f7b6a1;

  /* Neutral */
  --ink:         #2f3a42;
  --muted:       #5d6b75;
  --line:        #e4e9ec;
  --bg:          #ffffff;

  /* Geometrie */
  --radius:      22px;
  --radius-sm:   14px;
  --maxw:        1140px;
  --shadow:      0 10px 30px rgba(31, 96, 127, .10);
  --shadow-soft: 0 6px 18px rgba(31, 96, 127, .07);

  --font-head: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--sky-dark); }

sup { font-size: .6em; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--petrol);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--petrol);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; margin-top: 0; }
h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); }

.eyebrow {
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--sky-dark);
  margin: 0 0 10px;
}

.lead { font-size: 1.15rem; color: var(--muted); }

p { margin: 0 0 1em; }

.measure { max-width: 68ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--petrol);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.logo img { width: 44px; height: 44px; object-fit: contain; }
.logo .dot { color: var(--pink); }

.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  color: var(--ink);
  text-decoration: none;
}
.main-nav a:hover { background: var(--sky-50); color: var(--sky-dark); }
.main-nav a[aria-current="page"] { background: var(--sky-50); color: var(--sky-dark); }

.main-nav a.nav-muster {
  color: var(--pink);
  border: 2px solid var(--pink);
  margin-left: 6px;
}
.main-nav a.nav-muster:hover { background: var(--pink); color: #fff; }

.main-nav a.nav-pro {
  color: var(--petrol);
  border: 2px solid var(--petrol);
  margin-left: 6px;
}
.main-nav a.nav-pro:hover { background: var(--petrol); color: #fff; }

.burger {
  display: none;
  margin-left: auto;
  border: 2px solid var(--petrol);
  color: var(--petrol);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font: 700 1rem var(--font-body);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  white-space: nowrap;
  font: 800 1rem var(--font-body);
  border-radius: 999px;
  padding: 14px 28px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sky); color: #fff; box-shadow: 0 8px 20px rgba(46,174,222,.35); }
.btn-primary:hover { background: var(--sky-dark); }
.btn-ghost { border-color: var(--petrol); color: var(--petrol); background: #fff; }
.btn-ghost:hover { background: var(--petrol); color: #fff; }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 8px 20px rgba(229,18,125,.32); }
.btn-pink:hover { background: var(--pink-dark); }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 72px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-copy .btn + .btn { margin-left: 12px; }
.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: 58% 42% 55% 45% / 52% 48% 55% 45%;
  box-shadow: var(--shadow);
}
/* Freigestellte Grafiken (Maskottchen, Packshot) nie beschneiden */
img.deco {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
.hero-visual img.packshot {
  aspect-ratio: auto;
  object-fit: contain;
  height: auto;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
}
.hero-visual .mascot {
  position: absolute;
  bottom: -12px;
  left: -34px;
  width: clamp(110px, 14vw, 170px);
  /* Maskottchen ist freigestellt: keine Bildmaske, kein Beschnitt */
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 16px rgba(31,96,127,.18));
}

/* Start-Hero: großes Einzelbild (ohne Collage) */
.hero-lg .wrap { grid-template-columns: 1fr 1.2fr; gap: 44px; }
.hero-lg .hero-visual img { aspect-ratio: 4 / 3.6; max-height: 520px; object-position: 50% 30%; }
.hero-lg .hero-visual .mascot { width: clamp(120px, 16vw, 195px); bottom: -18px; left: -44px; }
@media (max-width: 960px) {
  .hero-lg .hero-visual .mascot { left: auto; right: -10px; }
}

/* Pastell-Blobs im Hintergrund */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  z-index: -1;
  pointer-events: none;
}
.blob-sky   { background: var(--sky-50); }
.blob-rose  { background: var(--pink-50); }
.blob-cream { background: var(--cream); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.tint-sky  { background: var(--sky-50); }
section.tint-rose { background: var(--pink-50); }
section.tint-cream{ background: var(--cream); }

.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Vertrauensleiste ---------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 28px;
  padding: 18px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  font-size: .95rem;
  color: var(--muted);
}
.trust b { color: var(--ink); font-weight: 700; }
.trust .tick {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sky-50);
  color: var(--sky-dark);
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .8rem;
  margin-right: 8px;
  flex: 0 0 auto;
}
.trust-item { display: inline-flex; align-items: center; }

/* ---------- Themen-Karten ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
a.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-family: var(--font-head); color: var(--petrol); font-size: 1.3rem; }
.card-body p { margin: 0; color: var(--muted); font-size: .98rem; }
.card-step {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sky-dark);
}
.card-more { margin-top: auto; padding-top: 12px; font-weight: 800; color: var(--sky-dark); }
a.card:hover .card-more { text-decoration: underline; }

/* ---------- Split (Text + Bild) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.split.rev { grid-template-columns: .95fr 1.05fr; }
.split-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split-img.blobby img { border-radius: 55% 45% 48% 52% / 50% 55% 45% 50%; }

/* ---------- Checkliste / Bullets ---------- */
.checklist { list-style: none; margin: 0 0 1em; padding: 0; }
.checklist li {
  position: relative;
  padding: 6px 0 6px 38px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--sky-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231f85ab' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.checklist.pinkdots li::before {
  background-color: var(--pink-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23e5127d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* ---------- Warnzeichen ---------- */
.warn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.warn-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--peach);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.warn-item .no {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--cream);
  color: #c96f4e;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 .95rem var(--font-head);
}
.warn-item .ico {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--cream);
  color: #c96f4e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.warn-item .ico svg { width: 19px; height: 19px; }

/* Warnzeichen erscheinen beim Scrollen nacheinander */
.warn-grid .warn-item:nth-child(2) { transition-delay: .12s; }
.warn-grid .warn-item:nth-child(3) { transition-delay: .24s; }
.warn-grid .warn-item:nth-child(4) { transition-delay: .36s; }
.warn-grid .warn-item:nth-child(5) { transition-delay: .48s; }
.warn-grid .warn-item:nth-child(6) { transition-delay: .60s; }
.warn-grid .warn-item:nth-child(7) { transition-delay: .72s; }
.warn-grid .warn-item:nth-child(8) { transition-delay: .84s; }
@media (prefers-reduced-motion: reduce) {
  .warn-grid .warn-item { transition-delay: 0s; }
}

.notfall {
  margin-top: 22px;
  background: var(--cream);
  border: 1px solid #f2d9c8;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: .98rem;
  color: var(--muted);
}
.notfall b { color: var(--ink); }

/* ---------- FAQ / Accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.acc-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.acc-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 0;
  text-align: left;
  padding: 18px 22px;
  font: 700 1.05rem var(--font-body);
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
}
.acc-head:hover { color: var(--sky-dark); }
.acc-head .ico {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--sky-50);
  color: var(--sky-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform .2s ease;
}
.acc-panel { display: none; padding: 0 22px 20px; color: var(--muted); }
.acc-panel p:last-child { margin-bottom: 0; }
.acc-item.open .acc-panel { display: block; }
.acc-item.open .acc-head .ico { transform: rotate(45deg); }

/* ---------- Prev/Next ---------- */
.prevnext {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 56px;
}
.prevnext a {
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 14px 22px;
  font-weight: 800;
  color: var(--petrol);
  max-width: 48%;
}
.prevnext a small {
  display: block;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.prevnext a:hover { border-color: var(--sky); }
.prevnext .next { margin-left: auto; text-align: right; }

/* ---------- Quellen ---------- */
.sources {
  font-size: .88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.sources ol { margin: 8px 0 0; padding-left: 20px; }
.sources li { margin: 4px 0; }

/* ---------- Fachkreis ---------- */
.pro-banner {
  background: var(--petrol);
  color: #fff;
  font-size: .92rem;
  text-align: center;
  padding: 8px 16px;
}
.pro-banner b { color: #ffd7ea; }

.brandmark {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--pink);
}

.pro-hero { background: linear-gradient(135deg, var(--pink-50) 0%, var(--sky-50) 100%); }

.pro-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pro-card h3 { margin: 0; color: var(--petrol); font-family: var(--font-head); font-size: 1.25rem; }
.pro-card.accent {
  border: 2px solid var(--pink);
  background: linear-gradient(180deg, #fff 60%, var(--pink-50) 100%);
}
.pro-card .btn { align-self: flex-start; margin-top: auto; }

.dose-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.dose-table th, .dose-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.dose-table th { background: var(--sky-50); color: var(--petrol); font-family: var(--font-head); }

.dose-table td b { font-weight: 700; color: var(--petrol); }
.dose-table td { vertical-align: top; }
.dose-claim {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 10px;
}

/* ---------- Login / Formulare ---------- */
.gate { max-width: 460px; margin: 56px auto; }
.gate-note {
  background: var(--sky-50);
  border: 1px solid #cfe9f6;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: .95rem;
  color: var(--petrol);
  margin-bottom: 22px;
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.form-card label { display: block; font-weight: 800; font-size: .92rem; margin: 16px 0 6px; }
.form-card label:first-of-type { margin-top: 0; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: 600 1rem var(--font-body);
  color: var(--ink);
  background: #fff;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: none;
  border-color: var(--sky);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.form-hint { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* Fachkreis-Zugang (DocCheck) */
.gate .btn + .form-hint { margin-top: 12px; }
.gate-links { margin: 18px 0 0; font-size: .9rem; text-align: center; }
.gate-links a { color: var(--muted); margin: 0 8px; }
.gate-fehler {
  background: var(--pink-50);
  border: 1px solid #f3c2da;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--pink-dark);
  font-weight: 700;
  font-size: .95rem;
}
.gate-oder { display: flex; align-items: center; gap: 10px; margin: 22px 0 14px; color: var(--muted); font-size: .85rem; }
.gate-oder::before, .gate-oder::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gate-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 600 !important; cursor: pointer; }
.form-card .gate-check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
/* Vorschau-Gate auf den Fachkreisseiten (auf dertiofant.de entfernt der Server diesen Block) */
.fk-overlay { display: none; }
.fk-overlay.open {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: rgba(27, 96, 127, .55);
  backdrop-filter: blur(6px);
}
.fk-overlay .form-card { width: 100%; max-width: 460px; margin: auto; }
.fk-overlay h2 { font-size: 1.45rem; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  background: var(--petrol);
  color: #d8e9f2;
  font-size: .95rem;
}
.site-footer .wrap { padding: 48px 24px 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.site-footer h4 { color: #fff; font-family: var(--font-head); margin: 0 0 12px; font-size: 1.05rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #d8e9f2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal .freigabe {
  margin-left: auto;
  letter-spacing: .04em;
  color: #cfe3ee;
}
@media (max-width: 720px) {
  .footer-legal .freigabe { margin-left: 0; }
}
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 32px;
  padding-top: 18px;
  font-size: .85rem;
  color: #a9c6d6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* ---------- Fokus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

/* ---------- Vollbild-Breaker ---------- */
.fullbleed {
  position: relative;
  min-height: clamp(380px, 55vh, 560px);
  overflow: hidden;
  padding: 0;
}
.fullbleed img.fullbleed-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fullbleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,96,127,0) 55%, rgba(31,96,127,.28) 100%);
}
.fullbleed .fullbleed-quote {
  position: absolute;
  left: 24px;
  bottom: 34px;
  z-index: 2;
  max-width: 400px;
  background: rgba(255,242,235,.93);
  border-radius: 49% 51% 48% 52% / 58% 55% 45% 42%;
  padding: 36px 46px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.4;
  text-align: center;
  color: #e5836b;
}
@media (min-width: 961px) {
  .fullbleed .fullbleed-quote { left: calc(50% - var(--maxw)/2 + 24px); }
}
@media (max-width: 960px) {
  .fullbleed { min-height: 260px; }
  .fullbleed .fullbleed-quote { left: 16px; right: 16px; bottom: 16px; font-size: 1rem; }
}
@media (max-width: 600px) {
  .fullbleed { min-height: 200px; }
  .fullbleed .fullbleed-quote { padding: 10px 14px; font-size: .95rem; }
}

/* ---------- Reveal (dezent) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .split, .split.rev { grid-template-columns: 1fr; gap: 32px; }
  .split.rev .split-img { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .warn-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .burger { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 14px 16px; }
  .main-nav a.nav-muster, .main-nav a.nav-pro { margin-left: 0; margin-top: 8px; text-align: center; }

  .hero { padding: 40px 0 48px; }
  .hero-visual .mascot { left: auto; right: -10px; }
  .hero-copy .btn + .btn { margin-left: 0; }
  .prevnext a { max-width: 100%; }
}

/* ---------- Wellen-Abbinder (Footer) ---------- */
.site-footer { position: relative; margin-top: 110px; }
.site-footer::before {
  content: "";
  position: absolute;
  top: -88px;
  left: 0;
  right: 0;
  height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,70 C300,130 620,10 900,40 C1140,66 1320,20 1440,55 L1440,120 L0,120 Z' fill='%231b607f'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}

.deco-blob {
  position: absolute;
  border-radius: 53% 47% 50% 50% / 46% 55% 45% 54%;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 960px) {
  .site-footer { margin-top: 80px; }
}

/* ============================================================
   Mobil-Feinschliff (Telefone bis 600 px)
   ============================================================ */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  section { padding: 40px 0; }
  .section-head { margin-bottom: 26px; }

  .card img { max-height: 190px; }
  h1 { font-size: clamp(1.85rem, 8.4vw, 2.1rem); }
  h2 { font-size: 1.42rem; }
  .lead { font-size: 1.05rem; }
  .eyebrow { font-size: .78rem; letter-spacing: .1em; }

  .hero { padding: 28px 0 36px; }
  .hero .wrap { gap: 26px; }
  .hero-lg .wrap { gap: 26px; }
  /* Startseite: Bild wandert mobil als kompaktes Kopfbild ueber die Headline */
  .hero-lg .hero-visual { order: -1; margin-bottom: 4px; }
  .hero-lg .wrap { gap: 22px; }

  /* Hero-Bild wirkt mobil als kompakter Kopfbereich, nicht als Vollbild */
  .hero-visual img:not(.packshot):not(.mascot),
  .hero-lg .hero-visual img:not(.packshot):not(.mascot) {
    aspect-ratio: 16 / 9;
    max-height: 168px;
    object-fit: cover;
    object-position: 50% 50%;
  }
  /* Packshot: kompakt und auf einer weichen Flaeche statt frei im Raum */
  .hero-visual img.packshot { max-height: 250px; width: auto; margin: 0 auto; }
  /* Packung steht frei auf der Flaeche, weicher Schatten statt Kasten */
  .hero-visual:has(.packshot) {
    width: fit-content;
    margin: 4px auto 0;
    position: relative;
  }
  .hero-visual:has(.packshot)::before {
    content: "";
    position: absolute;
    inset: -14% -22%;
    background: radial-gradient(closest-side, #fff 0%, rgba(255,255,255,.65) 55%, rgba(255,255,255,0) 100%);
    z-index: 0;
  }
  .hero-visual img.packshot {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 12px 20px rgba(31,96,127,.16));
  }

  /* Buttons im Kopfbereich nebeneinander statt gestapelt */
  .hero-copy p:last-of-type { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
  .hero-copy .btn { flex: 0 1 auto; width: auto; margin: 0; padding: 12px 20px; font-size: .94rem; }

  /* Maskottchen sitzt vollstaendig im Bildbereich, nichts wird angeschnitten */
  .hero-visual .mascot,
  .hero-lg .hero-visual .mascot {
    width: 78px;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    right: 6px;
    left: auto;
    bottom: -12px;
  }

  /* Kopfbereich kompakt halten: der naechste Abschnitt soll angerissen sein */
  .hero-lg .hero-copy .lead { font-size: .97rem; line-height: 1.55; }
  .hero-lg h1 { font-size: 1.72rem; }
  .hero-lg .hero-copy p:last-of-type {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
  }
  .hero-lg .hero-copy .btn {
    flex: 0 1 auto;
    width: auto;
    margin: 0;
    padding: 12px 20px;
    font-size: .94rem;
  }

  .btn { padding: 14px 20px; width: 100%; }

  .card-body h3 { font-size: 1.15rem; }
  .pro-card h3 { font-size: 1.15rem; }

  /* Dosiertabelle: Karten statt Querscrollen */
  .dose-claim { font-size: 1rem; }
  .dose-table, .dose-table thead, .dose-table tbody,
  .dose-table tr, .dose-table th, .dose-table td { display: block; width: auto; }
  .dose-table thead { position: absolute; left: -9999px; }
  .dose-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 6px 14px 10px;
    margin-bottom: 14px;
    background: #fff;
  }
  .dose-table td { border-bottom: none; padding: 7px 0; }
  .dose-table td + td { border-top: 1px solid var(--line); }
  .dose-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .8rem;
    color: var(--petrol);
    margin-bottom: 1px;
  }
  .dose-table td:first-child { font-size: 1.1rem; }
  .dose-table td:first-child::before { content: "Packungsgröße"; }

  /* Bilder in Text-Bild-Abschnitten: kompaktes Band statt hoher Block,
     eng am zugehoerigen Text (Inline-Seitenverhaeltnisse werden ueberschrieben) */
  .split, .split.rev { gap: 20px; }
  /* Bilder als schmales Band: klein genug, dass Text und Bild zusammen lesbar bleiben */
  .split-img img:not(.deco),
  .split > div > img:not(.deco) {
    aspect-ratio: 16 / 10 !important;
    width: 100%;
    max-height: 190px;
    object-fit: cover;
  }
  .split > div > img.deco { max-width: 160px !important; }
  .split > div > img.deco { max-width: 190px !important; }
  .split-img.blobby img { border-radius: 42% 58% 45% 55% / 48% 44% 56% 52%; }

  /* Kompakter Footer: zwei Spalten statt drei gestapelter Bloecke */
  .site-footer { margin-top: 64px; font-size: .9rem; }
  .site-footer .wrap { padding: 30px 18px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .site-footer h4 { font-size: .95rem; margin-bottom: 8px; }
  .site-footer ul { display: grid; gap: 4px; }
  .site-footer li { margin: 0; line-height: 1.35; }
  .site-footer a { display: inline-block; padding: 3px 0; }
  .footer-legal { gap: 4px 14px; margin-top: 22px; padding-top: 14px; font-size: .78rem; }

  .form-card { padding: 22px 18px; }
  .gate { margin: 36px auto; }
}

/* ============================================================
   Tablet (601-960 px): einspaltiges Layout, aber Flaeche nutzen
   ============================================================ */
@media (min-width: 601px) and (max-width: 960px) {
  section { padding: 48px 0; }

  /* Zwei Spalten, wo eine Spalte unnoetig lang wuerde */
  .cards { grid-template-columns: 1fr 1fr; }
  .warn-grid { grid-template-columns: 1fr 1fr; }

  /* Ungerade Kartenzahl: die letzte Karte laeuft ueber die volle Breite
     und wird quer gelegt, damit keine halbe Reihe stehen bleibt */
  .cards > .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
  }
  .cards > .card:last-child:nth-child(odd) img {
    width: 44%;
    height: auto;
    aspect-ratio: auto;
    object-fit: cover;
  }
  .cards > .card:last-child:nth-child(odd) .card-body { flex: 1; justify-content: center; }
  .cards > .pro-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }

  /* Kopfbereich: Text und Bild bleiben nebeneinander, Bild bewusst klein */
  .hero { padding: 34px 0 42px; }
  .hero .wrap, .hero-lg .wrap {
    grid-template-columns: 1.15fr .85fr;
    gap: 28px;
    align-items: center;
  }
  .hero-lg .hero-visual { order: 0; }
  .hero-visual img:not(.packshot):not(.mascot),
  .hero-lg .hero-visual img:not(.packshot):not(.mascot) {
    aspect-ratio: 4 / 4.2;
    max-height: 300px;
    width: auto;
    max-width: 100%;
    margin-left: auto;
    object-fit: cover;
    object-position: 50% 30%;
  }
  .hero-visual .mascot,
  .hero-lg .hero-visual .mascot {
    width: 84px;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    left: auto;
    right: 4px;
    bottom: -10px;
  }
  .hero-visual img.packshot { max-height: 340px; width: auto; margin: 0 auto; }
  .hero-copy .btn { width: auto; }
  .hero-lg .hero-copy p:last-of-type { display: flex; flex-wrap: wrap; gap: 12px; }
  .hero-lg .hero-copy .btn { flex: 0 1 auto; margin: 0; }

  /* Bilder in Text-Bild-Abschnitten als ruhiges Band */
  .split, .split.rev { gap: 26px; }
  .split-img img:not(.deco),
  .split > div > img:not(.deco) {
    aspect-ratio: 4 / 3 !important;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
  }
  .split > div > img.deco { max-width: 230px !important; }
}

/* Sehr schmale Telefone (bis 400 px): Bilder noch einmal zurueckgenommen */
@media (max-width: 400px) {
  .split-img img:not(.deco),
  .split > div > img:not(.deco) { max-height: 160px; }
  .split > div > img.deco { max-width: 140px !important; }
  .hero-visual img.packshot { max-height: 200px; }
  .hero-visual img:not(.packshot):not(.mascot),
  .hero-lg .hero-visual img:not(.packshot):not(.mascot) { max-height: 150px; }
  .card img { aspect-ratio: 16/9; }
}

/* Enger Desktop-Bereich (961-1080 px): Navigation kompakt halten,
   damit die Menuepunkte nicht auf zwei Zeilen umbrechen */
@media (min-width: 961px) and (max-width: 1080px) {
  .site-header .wrap { gap: 12px; }
  .logo { font-size: 1.25rem; }
  .logo img { width: 36px; height: 36px; }
  .main-nav ul { gap: 0; }
  .main-nav a { padding: 9px 9px; font-size: .88rem; }
  .main-nav a.nav-muster, .main-nav a.nav-pro { margin-left: 4px; padding: 9px 12px; }
}

/* Deko-Kreise nur auf grossen Schirmen: auf kleinen Fenstern koennen sie
   durch die geaenderte Reihenfolge ueber dem Text liegen */
@media (max-width: 960px) {
  .hero-visual .deco-blob { display: none; }
  .hero .blob { opacity: .55; }
}

/* Schmaler Desktop (961-1200 px): Fotos nicht dominieren lassen */
@media (min-width: 961px) and (max-width: 1200px) {
  .split-img img:not(.deco),
  .split > div > img:not(.deco) {
    max-height: 330px;
    object-fit: cover;
  }
  .hero-visual img:not(.packshot):not(.mascot) {
    max-height: 360px;
    width: auto;
    max-width: 100%;
    margin-left: auto;
  }
  .split > div > img.deco { max-width: 210px !important; }
  .hero-visual .mascot { width: clamp(90px, 11vw, 130px); }
}

/* Ab 760 px ist Platz fuer Text und Bild nebeneinander: Fotos laufen dann
   nicht mehr ueber die volle Breite und wirken dadurch deutlich ruhiger */
@media (min-width: 760px) and (max-width: 960px) {
  .split, .split.rev {
    grid-template-columns: 1.05fr .95fr;
    gap: 30px;
    align-items: center;
  }
  .split.rev .split-img { order: 0; }
  .split-img img:not(.deco),
  .split > div > img:not(.deco) { max-height: 280px; }
}

/* Zwischenbereich 601-759 px: einspaltig, Bild aber schmaler als die Spalte */
@media (min-width: 601px) and (max-width: 759px) {
  .split-img img:not(.deco),
  .split > div > img:not(.deco) {
    max-width: 420px;
    max-height: 260px;
    margin: 0 auto;
  }
}

/* ---------- Pflichttext (Ziel der Anzeigen) ---------- */
.pt-box {
  background: var(--sky-50);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-size: .95rem;
  line-height: 1.65;
}
.pt-box p { margin: 0; }
.pt-box b { color: var(--petrol); }
.pt-quellen li { scroll-margin-top: 90px; border-radius: 6px; transition: background-color .4s ease; }
.pt-quellen li:target { background: var(--pink-50); color: var(--ink); }

/* ---------- DocCheck-Anmeldung (offizieller DocCheck-Login-Knopf) ---------- */
.dc-hinweis { text-align: center; font: 800 1.15rem var(--font-head); color: var(--ink); margin: 0 0 6px; }
.dc-pfeil { display: block; width: 22px; height: 30px; margin: 0 auto 10px; color: #f2b233; }
.dc-login { display: block; width: fit-content; max-width: 100%; margin: 0 auto 18px; border-radius: 8px; overflow: hidden; line-height: 0; box-shadow: 0 8px 20px rgba(204, 0, 51, .22); transition: transform .15s ease, box-shadow .15s ease; }
.dc-login img { display: block; width: 300px; max-width: 100%; height: auto; }
.dc-login:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(204, 0, 51, .3); }
.dc-login:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

