/* ===========================================================================
   MIRACLEAN Austria – Layout & Komponenten
   Mobile First. Breakpoints: 640px / 900px / 1100px
   =========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;           /* kein horizontales Scrollen               */
}

img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0 0 var(--sp-4); line-height: var(--lh-head); }
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.3em; }
li + li { margin-top: var(--sp-2); }
a { color: inherit; }

/* --- Fokus: immer sichtbar ------------------------------------------------ */
:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
  border-radius: 2px;
}
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible {
  outline-color: var(--signal);
}

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

/* --- Sprunglink ----------------------------------------------------------- */
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 200;
  background: var(--signal); color: var(--navy-deep);
  padding: var(--sp-3) var(--sp-5); font-weight: 800; text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: var(--sp-4); }

/* --- Raster --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 640px) { .container { padding-inline: var(--sp-6); } }

.section { padding-block: var(--sp-8); }
@media (min-width: 900px) { .section { padding-block: var(--sp-9); } }

.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #eaf0fa; }
.section--navy h2, .section--navy h3 { color: #fff; }

/* ===========================================================================
   Typografie
   =========================================================================== */
.h-display, .h1, h1 {
  font-size: clamp(1.9rem, 5vw, var(--fs-4xl));
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  text-transform: uppercase;
}
h2, .h2 {
  font-size: clamp(1.55rem, 3.4vw, var(--fs-3xl));
  font-weight: 900;
  letter-spacing: -0.018em;
  line-height: var(--lh-tight);
  text-transform: uppercase;
}
h3, .h3 {
  font-size: clamp(1.15rem, 2.6vw, var(--fs-xl));
  font-weight: 800;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--sp-3);
}
.section--navy .eyebrow, .hero .eyebrow { color: var(--signal); }

.lead { font-size: var(--fs-lg); color: var(--ink-muted); max-width: 62ch; }
.section--navy .lead { color: #c3d2ea; }

/* Gelbe Hervorhebung – Flaeche mit dunkler Schrift, nie Gelb auf Weiss */
.hl {
  background: var(--signal);
  color: var(--navy-deep);
  padding: 0 .22em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
/* Akzentstrich ueber Ueberschriften */
.rule::before {
  content: "";
  display: block;
  width: 56px; height: 5px;
  background: var(--signal);
  margin-bottom: var(--sp-4);
}

.claim {
  font-size: var(--fs-xs);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ===========================================================================
   Buttons
   =========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  min-height: var(--tap);
  padding: var(--sp-3) var(--sp-5);
  font: inherit; font-size: var(--fs-sm); font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition);
}
.btn--primary { background: var(--signal); color: var(--navy-deep); }
.btn--primary:hover {
  background: var(--signal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(253, 231, 3, .22);
}
.btn--primary:active { transform: translateY(0); box-shadow: none; }

/* Pfeil im Button: rueckt beim Ueberfahren ein Stueck nach rechts */
.btn__arrow { width: 18px; height: 18px; flex: 0 0 auto; transition: transform var(--transition); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-deep); }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ===========================================================================
   Kopfbereich
   =========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
  transition: box-shadow var(--transition);
}
/* Nach dem ersten Scrollen: dezenter Schatten, damit sich der Kopf abhebt */
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(3, 10, 23, .35); }

/* Transparente Kopfzeile: liegt am Seitenanfang direkt auf dem dunklen Hero
   und wird erst beim Scrollen (oder bei offenem Mobilmenue) zum Navy-Balken.
   Der Hero rutscht dafuer unter die Kopfzeile; ein transparenter Rand in
   Kopfzeilenhoehe haelt seinen Inhalt an der alten Position, waehrend sein
   Hintergrund bis ganz nach oben reicht. */
:root { --header-h: 64px; }
@media (min-width: 900px) { :root { --header-h: 76px; } }
.site-header--overlay {
  margin-bottom: calc(-1 * var(--header-h) - 1px);   /* plus 1px Rand */
  background: transparent;
  border-bottom-color: transparent;
  transition: background 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}
.site-header--overlay.is-scrolled,
.site-header--overlay.is-menu-open {
  background: var(--navy);
  border-bottom-color: var(--navy-line);
}
.site-header--overlay ~ main > section:first-child {
  border-top: var(--header-h) solid transparent;
  background-origin: border-box;
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  min-height: 64px;
}
@media (min-width: 900px) { .site-header__inner { min-height: 76px; } }
.brand { display: flex; align-items: center; text-decoration: none; padding-block: var(--sp-2); }
.brand img { width: auto; height: 30px; }
@media (min-width: 900px) { .brand img { height: 36px; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap);
  background: transparent; border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius); color: #fff; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* --- Mobil: aufklappendes Menue -------------------------------------------- */
.nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
  box-shadow: 0 16px 32px rgba(3, 10, 23, .45);
  padding: var(--sp-2) var(--gutter) var(--sp-5);
}
.nav.is-open { display: block; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__list li + li { margin-top: 0; }
.nav__link {
  display: flex; align-items: center;
  min-height: 52px;
  padding: var(--sp-2) 0;
  color: #dbe5f5; text-decoration: none;
  font-size: var(--fs-lg); font-weight: 700;
  border-bottom: 1px solid var(--navy-line);
  transition: color var(--transition);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--signal); }

.nav__phone a {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 52px;
  color: #dbe5f5; text-decoration: none; font-weight: 700;
  transition: color var(--transition);
}
.nav__phone a:hover { color: #fff; }
.nav__phone svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--signal); }

.nav__cta .btn { width: 100%; margin-top: var(--sp-3); }

/* Untermenue "Produkt": mobil als eingerueckte Liste immer sichtbar */
.nav__chevron { display: none; }
.nav__sub { list-style: none; margin: 0; padding: var(--sp-1) 0 var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--navy-line); }
.nav__sub li + li { margin-top: 0; }
.nav__sub a {
  display: flex; align-items: center;
  min-height: var(--tap);
  color: #9fb3d4; text-decoration: none; font-weight: 600;
}
.nav__sub a:hover { color: var(--signal); }
.nav__item--sub > .nav__link { border-bottom: 0; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav {
    display: block; position: static; padding: 0; border: 0; background: none; box-shadow: none;
  }
  .nav__list { display: flex; align-items: center; gap: var(--sp-6); }

  /* Textlinks mit gelber Unterstreichung, die beim Ueberfahren von links
     einwaechst. Die aktuelle Seite behaelt sie dauerhaft. */
  .nav__link {
    position: relative;
    min-height: var(--tap); padding: 0; border: 0;
    font-size: var(--fs-sm); letter-spacing: .02em;
  }
  .nav__link::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 6px;
    height: 2px; background: var(--signal);
    transform: scaleX(0); transform-origin: left center;
    transition: transform 220ms ease;
  }
  .nav__link:hover { color: #fff; }
  .nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
  .nav__link[aria-current="page"] { color: #fff; }

  /* Untermenue: klappt beim Ueberfahren oder per Tastatur (Fokus) auf */
  .nav__item--sub { position: relative; }
  .nav__chevron {
    display: inline-block; width: 14px; height: 14px; margin-left: 4px;
    transition: transform 200ms ease;
  }
  .nav__item--sub:hover .nav__chevron,
  .nav__item--sub:focus-within .nav__chevron { transform: rotate(180deg); }
  .nav__sub {
    position: absolute; top: 100%;
    left: calc(-1 * var(--sp-4));
    min-width: 230px;
    padding: var(--sp-2);
    background: #fff;
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
  }
  /* Unsichtbare Bruecke, damit das Menue beim Weg nach unten offen bleibt */
  .nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .nav__item--sub:hover .nav__sub,
  .nav__item--sub:focus-within .nav__sub {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s;
  }
  .nav__sub a {
    min-height: 0;
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius);
    color: var(--ink); font-size: var(--fs-sm); font-weight: 700;
  }
  .nav__sub a:hover { background: var(--mist); color: var(--navy); }

  /* Telefonnummer erst ab breiten Bildschirmen, abgesetzt durch eine Linie */
  .nav__phone { display: none; }
  .nav__cta .btn { width: auto; margin-top: 0; }
  .btn--nav { min-height: 42px; padding: var(--sp-2) var(--sp-5); font-size: var(--fs-xs); }
}
@media (min-width: 1180px) {
  .nav__phone {
    display: block;
    padding-left: var(--sp-6);
    border-left: 1px solid rgba(255, 255, 255, .16);
  }
  .nav__phone a { min-height: var(--tap); font-size: var(--fs-sm); }
}

/* ===========================================================================
   Hero
   =========================================================================== */
.hero {
  background: var(--navy-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero__grid { display: grid; gap: var(--sp-6); padding-block: var(--sp-8) 0; }
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: var(--sp-8);
    padding-block: var(--sp-9) var(--sp-8);
  }
}
.hero__title { margin-bottom: var(--sp-5); }
.hero__text { color: #c3d2ea; font-size: var(--fs-lg); max-width: 54ch; }
.hero__media { position: relative; justify-self: center; }
/* Hochformat-Zuschnitt: ueber die Hoehe begrenzen, nicht ueber die Breite,
   sonst waechst das Bild ins Absurde. */
.hero__media img {
  width: auto;
  max-width: 100%;
  max-height: 380px;
  border-radius: var(--radius-lg);
}
@media (min-width: 900px) { .hero__media img { max-height: 540px; } }

/* Kennzahlenleiste unter dem Hero */
.hero__stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--navy-line);
  border-top: 1px solid var(--navy-line);
}
@media (min-width: 900px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--navy-deep); padding: var(--sp-5) var(--sp-4); text-align: center; }
.stat__num {
  display: block; font-size: var(--fs-2xl); font-weight: 900;
  color: var(--signal); line-height: 1.1; letter-spacing: -.02em;
}
.stat__label { display: block; font-size: var(--fs-xs); color: #9fb3d4; margin-top: var(--sp-2); }

/* ===========================================================================
   Karten & Raster
   =========================================================================== */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
/* Vier Spalten erst ab 1100px: darunter werden die Karten so schmal,
   dass schon die Ueberschriften umbrechen. */
@media (min-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.card--dark { background: var(--navy-soft); border-color: var(--navy-line); color: #d7e2f4; }
.card--dark h3 { color: #fff; }
.card--feature { border-top: 5px solid var(--signal); }
.card h3 { margin-bottom: var(--sp-3); }
.card p:last-child { margin-bottom: 0; }

.card__icon {
  width: 44px; height: 44px; margin-bottom: var(--sp-4);
  display: grid; place-items: center;
  background: var(--signal); color: var(--navy-deep);
  border-radius: var(--radius);
}
.card__icon svg { width: 24px; height: 24px; }

/* Zielgruppen-Karte mit Weiterweg */
.audience { display: flex; flex-direction: column; }
.audience__link {
  margin-top: auto; padding-top: var(--sp-4);
  font-weight: 800; text-decoration: none; color: var(--navy);
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: var(--tap);
}
.audience__link:hover { text-decoration: underline; }
.audience--primary { border: 2px solid var(--navy); box-shadow: var(--shadow); }

/* ===========================================================================
   Faktenliste (belegbare Kennwerte)
   =========================================================================== */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.facts li {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  margin: 0; padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}
.section--navy .facts li { border-color: var(--navy-line); }
.facts .check {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px;
  display: grid; place-items: center;
  background: var(--signal); color: var(--navy-deep);
  border-radius: 50%; font-size: 13px; font-weight: 900;
}

/* Datentabelle */
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table caption { text-align: left; font-weight: 800; padding-bottom: var(--sp-3); }
.spec-table th, .spec-table td {
  text-align: left; padding: var(--sp-3) var(--sp-3) var(--sp-3) 0;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.spec-table th { width: 45%; font-weight: 700; color: var(--ink-muted); }
@media (min-width: 640px) { .spec-table th { width: 34%; } }

/* ===========================================================================
   Motivstrecke (Instagram-Kacheln)
   =========================================================================== */
.tiles { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-deep);
  border: 1px solid var(--navy-line);
}
.tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* Vorher/Nachher */
.split { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--sp-8); } }
.split--reverse > :first-child { order: 2; }
@media (max-width: 899px) { .split--reverse > :first-child { order: 0; } }
.split img { border-radius: var(--radius-lg); width: 100%; }

/* ===========================================================================
   Anwendungsschritte
   =========================================================================== */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--sp-5); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { margin: 0; padding-top: var(--sp-5); border-top: 3px solid var(--signal); counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block; font-size: var(--fs-2xl); font-weight: 900;
  color: var(--navy); line-height: 1; margin-bottom: var(--sp-3);
}
.section--navy .steps li::before { color: var(--signal); }

/* ===========================================================================
   FAQ
   =========================================================================== */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: var(--sp-4) 2.5rem var(--sp-4) 0;
  font-weight: 800; position: relative;
  min-height: var(--tap); display: flex; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: var(--sp-2); top: 50%;
  width: 11px; height: 11px; margin-top: -7px;
  border-right: 3px solid var(--navy); border-bottom: 3px solid var(--navy);
  transform: rotate(45deg); transition: transform var(--transition);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .faq__body { padding: 0 0 var(--sp-5); color: var(--ink-muted); max-width: 72ch; }

/* ===========================================================================
   Formulare
   =========================================================================== */
.form { display: grid; gap: var(--sp-5); }
.form__row { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: var(--sp-2); }
.field > label { font-weight: 700; font-size: var(--fs-sm); }
.field .req { color: var(--error); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-muted); }

.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  width: 100%; min-height: var(--tap);
  padding: var(--sp-3);
  background: var(--paper);
  border: 1px solid #b9c4d2;
  border-radius: var(--radius);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--error); background: var(--error-soft);
}
.field__error { font-size: var(--fs-xs); color: var(--error); font-weight: 700; min-height: 1em; }

.check-field { display: flex; gap: var(--sp-3); align-items: flex-start; }
.check-field input { width: 22px; height: 22px; min-height: 0; flex: 0 0 auto; margin-top: 3px; }
.check-field label { font-size: var(--fs-sm); line-height: 1.5; }

/* Honeypot – fuer Menschen unsichtbar, fuer Bots ausfuellbar */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.form__note { font-size: var(--fs-xs); color: var(--ink-muted); }
.form__status { padding: var(--sp-4); border-radius: var(--radius); font-weight: 700; }
.form__status--ok { background: #e8f5ee; color: var(--ok); border: 1px solid var(--ok); }
.form__status--error { background: var(--error-soft); color: var(--error); border: 1px solid var(--error); }
[hidden] { display: none !important; }

/* ===========================================================================
   Hinweiskasten
   =========================================================================== */
.callout {
  border-left: 5px solid var(--signal);
  background: var(--mist);
  padding: var(--sp-5);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }
.section--navy .callout { background: var(--navy-soft); }

/* Abschluss-Aufforderung */
.cta-band { background: var(--signal); color: var(--navy-deep); }
.cta-band .container { padding-block: var(--sp-7); }
.cta-band h2 { color: var(--navy-deep); }
.cta-band p { color: #2a2f19; max-width: 60ch; }

/* ===========================================================================
   Fussbereich
   =========================================================================== */
.site-footer { background: var(--navy-deep); color: #a9bcd8; font-size: var(--fs-sm); }
.site-footer a { color: #d7e2f4; }
.site-footer__grid { display: grid; gap: var(--sp-6); padding-block: var(--sp-8); }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h2 {
  font-size: var(--fs-xs); letter-spacing: .14em; color: var(--signal);
  margin-bottom: var(--sp-4);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: var(--sp-3); }
/* Kontaktspalte: Telefon, E-Mail und Instagram ohne Unterstreichung;
   beim Ueberfahren hellen sie sich dezent auf. */
.site-footer__contact a { text-decoration: none; }
.site-footer__contact a:hover { color: #fff; }
.site-footer__brand img { height: 32px; width: auto; margin-bottom: var(--sp-4); }
.site-footer__bottom {
  border-top: 1px solid var(--navy-line);
  padding-block: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  font-size: var(--fs-xs);
}

/* ===========================================================================
   Rechtstexte / Fliesstextseiten
   =========================================================================== */
.prose { max-width: 75ch; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-7); text-transform: none; letter-spacing: -.01em; }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--sp-5); }
.prose h2:first-child { margin-top: 0; }
.prose dl { margin: 0 0 var(--sp-5); }
.prose dt { font-weight: 700; margin-top: var(--sp-3); }
.prose dd { margin: 0 0 var(--sp-2); }

.page-head { background: var(--navy); color: #fff; padding-block: var(--sp-7); }
.page-head .lead { color: #c3d2ea; }
.breadcrumb { font-size: var(--fs-xs); color: #9fb3d4; margin-bottom: var(--sp-3); }
/* Groessere Klickflaeche ohne sichtbare Veraenderung: der Innenabstand
   vergroessert die antippbare Flaeche auf rund 44 px, der gleich grosse
   negative Aussenabstand hebt ihn fuer das Layout wieder auf. */
.breadcrumb a {
  color: #9fb3d4;
  display: inline-block;
  padding: .8rem .5rem;
  margin: -.8rem -.5rem;
}

/* --- Druck ---------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  body { color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  .nav__link::after, .nav__sub, .nav__chevron, .site-header--overlay { transition: none; }
  .btn--primary:hover { transform: none; }
}

/* ===========================================================================
   Gemeinsame Effekte (Startseite und Produktseite)
   =========================================================================== */
.btn--lg { min-height: 52px; padding: var(--sp-3) var(--sp-6); }

/* --- Flasche: Einschweben, leichtes Schweben, 3D-Neigung -----------------------
   Drei Ebenen, damit sich die Bewegungen nicht gegenseitig ueberschreiben:
   .bottle3d         -> Neigung per Maus (JS setzt --rx / --ry)
   .bottle3d__inner  -> Einschweben beim Laden, danach sanftes Schweben
   .bottle3d__glare  -> Lichtreflex, der der Maus folgt
   Einschweben und Schweben sind reines CSS. Die Neigung kommt per JS dazu.
   Bei "Bewegung reduzieren" steht die Flasche still. */
.bottle3d {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%;
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
}
.bottle3d__inner {
  position: relative;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 500ms cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}
.bottle3d.is-tilting .bottle3d__inner { transition-duration: 120ms; }
.bottle3d img {
  width: auto;
  max-width: 100%;
  position: relative;
  z-index: 1;
}
/* Lichtreflex nur ueber der Flasche: das PNG dient als Maske */
.bottle3d__glare {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.38), rgba(255,255,255,0) 45%);
  -webkit-mask: url("../img/miraclean-flasche.png") center / contain no-repeat;
          mask: url("../img/miraclean-flasche.png") center / contain no-repeat;
  transition: opacity 300ms ease;
}
.bottle3d.is-tilting .bottle3d__glare { opacity: 1; }
.bottle3d__shadow {
  display: block;
  width: 60%; height: 18px;
  margin: -6px auto 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 70%);
  filter: blur(2px);
}

@media (prefers-reduced-motion: no-preference) {
  .bottle3d { animation: bottle3d-in 1100ms cubic-bezier(.2, .7, .2, 1) both; }
  .bottle3d img { animation: bottle3d-float 6s ease-in-out 1100ms infinite; }
  .bottle3d__shadow { animation: bottle3d-shadow-float 6s ease-in-out 1100ms infinite; }
}
@keyframes bottle3d-in {
  from { opacity: 0; transform: translateY(40px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes bottle3d-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes bottle3d-shadow-float {
  0%, 100% { transform: scaleX(1);   opacity: 1; }
  50%      { transform: scaleX(.85); opacity: .7; }
}

/* Sanftes Einblenden beim Scrollen. Die Klasse .js setzt main.js nur dann,
   wenn es auch das Einblenden uebernehmen kann - ohne JS bleibt alles sichtbar. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .7, .2, 1);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  /* Elemente in einer Reihe nacheinander einblenden */
  .js [data-reveal]:nth-child(2) { transition-delay: 100ms; }
  .js [data-reveal]:nth-child(3) { transition-delay: 200ms; }
  .js [data-reveal]:nth-child(4) { transition-delay: 300ms; }
}


/* Sprungziele (z. B. produkt.html#anwendung) nicht unter der festen
   Kopfzeile verstecken */
[id] { scroll-margin-top: calc(var(--header-h) + var(--sp-4)); }
