*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* ScrollTrigger rundet die Spacer-Breite auf ganze Pixel; bei Bruch-Zoom (z. B. 150 %) entstünde sonst ein Subpixel-Querscroll. */
.pin-spacer { max-width: 100% !important; }
html { overflow-x: clip; }
/* Hero-Sperre: Lenis blendet die Scrollleiste aus. Rechts genau ihre Breite (--sbw, gesetzt in tape-hero.js)
   freihalten, auch für die fixe Navbar; bei der Freigabe ersetzt die Leiste diesen Rand, nichts springt. */
html.is-hero-locked { padding-right: var(--sbw, 0px); }
html.is-hero-locked .site-header { right: var(--sbw, 0px); }
html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--rose); color: var(--ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-btn);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Typo ---------- */
.h1, .h2, .hero__title, .bignum {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.02em;
  margin: 0;
}
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); letter-spacing: 0.03em; }

.eyebrow {
  margin: 0 0 var(--space-s);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--rose);
  color: var(--ink);
  font-size: var(--t-caption);
  font-weight: 600;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* Marker-Fläche hinter Wörtern (Say-Briefly-Prinzip, in Rosa) */
mark { background: none; color: inherit; }
.nowrap { white-space: nowrap; }
.marker {
  background: linear-gradient(transparent 12%, var(--rose) 12%, var(--rose) 88%, transparent 88%);
  color: var(--ink);
  padding: 0 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.3s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn i { font-size: 0.95em; transition: transform 0.3s var(--ease); }
.btn:hover .fa-arrow-right { transform: translateX(4px); }
.btn:hover .fa-play, .btn:hover .fa-phone, .btn:hover .fa-envelope { transform: scale(1.12); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.btn--red { background: var(--red); color: var(--paper); }
.btn--red:hover { background: var(--red-deep); }
.btn--line { background: transparent; color: var(--fg); border-color: currentColor; box-shadow: none; }
.btn--line:hover { background: var(--fg); color: var(--bg); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--red-deep); }
.btn--paper { background: var(--paper); color: var(--red-deep); }
.btn--paper:hover { background: var(--ink); color: var(--paper); }

/* ---------- Karten ---------- */
.card { border-radius: var(--r-card); padding: clamp(20px, 2.4vw, 36px); }
.card--paper { background: var(--paper); color: var(--ink); }
.note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--t-caption);
  color: var(--ink);
}
.note i { flex: none; color: var(--red); font-size: 1.1em; }
.note--blush { background: var(--blush); }

/* ---------- Platzhalter für nachzuliefernde Grafiken ---------- */
.placeholder {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1.5px dashed currentColor;
  border-radius: 12px;
  opacity: 0.75;
  text-align: center;
  font-weight: 700;
}
.placeholder::after {
  content: attr(data-ph);
  position: absolute;
  left: 8px; right: 8px; bottom: 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: opacity 0.6s ease;
}
.loader.is-done { opacity: 0; pointer-events: none; }
.loader__track { width: 160px; height: 2px; overflow: hidden; background: var(--rose); }
.loader__bar {
  display: block;
  height: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* ---------- Scroll-Fortschritt ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 120; height: 3px; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  height: var(--header-h);
  padding: 0 var(--gutter);
  /* Glass: Papier halbtransparent über weichgezeichnetem Inhalt */
  background: rgba(251, 246, 243, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  color: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  box-shadow: 0 0 0 rgba(58, 18, 28, 0);
  transition: border-color 0.3s, box-shadow 0.3s, height 0.4s var(--ease);
}
/* Startseite oben: deckend in der Hero-Farbe (Glas-Filter würde den Farbton verschieben). */
html:has(.hero--tape) .site-header:not(.is-scrolled) {
  background: var(--hero-bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 30px -18px rgba(58, 18, 28, 0.35);
}
.brand { display: block; flex: none; }
.brand img { width: clamp(132px, 11vw, 176px); mix-blend-mode: multiply; }

.nav-desktop { display: flex; align-items: center; gap: clamp(16px, 2vw, 36px); position: relative; }
.nav-desktop__list { display: flex; gap: clamp(18px, 2.4vw, 44px); margin: 0; padding: 0; list-style: none; }

/* Große Hover-Schrift: Buchstaben rollen, Marker wischt darunter */
.nav-link {
  position: relative;
  display: inline-block;
  padding: 4px 2px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 1.5vw + 0.4rem, 2rem);
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  transition: font-size 0.4s var(--ease);
}
.site-header.is-scrolled .nav-link { font-size: clamp(1.1rem, 0.8vw + 0.5rem, 1.35rem); }
.nav-link::before {
  content: "";
  position: absolute;
  left: -4px; right: -4px; top: 30%; bottom: 0;
  z-index: -1;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-link:hover::before, .nav-link:focus-visible::before, .nav-link.is-current::before { transform: scaleX(1); transform-origin: left; }
.nav-link__text { display: inline-flex; overflow: hidden; }
.nav-link .ch { position: relative; display: inline-block; transition: transform 0.45s var(--ease); transition-delay: calc(var(--i) * 18ms); }
.nav-link .ch::after { content: attr(data-ch); position: absolute; left: 0; top: 100%; color: var(--red); }
.nav-link:hover .ch, .nav-link:focus-visible .ch { transform: translateY(-100%); }

.nav-preview {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 220px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.25s, transform 0.4s var(--ease), left 0.4s var(--ease);
  box-shadow: 0 10px 30px -12px rgba(58, 18, 28, 0.35);
}
.nav-preview.is-on { opacity: 1; transform: none; }
.nav-preview img { width: 100%; height: 100%; object-fit: cover; }

.lang { display: flex; gap: 2px; font-size: var(--t-caption); font-weight: 700; letter-spacing: 0.08em; }
.lang a { padding: 6px 8px; border-radius: var(--r-btn); text-decoration: none; opacity: 0.5; }
.lang a[aria-current="true"] { opacity: 1; background: var(--rose); }
.lang a:hover { opacity: 1; }

/* ---------- Gooey Menu (mobil) ---------- */
.gm-defs { position: absolute; width: 0; height: 0; }
.gm { display: none; }
.gm__wrap { position: relative; }
.gm__menu {
  --pill: var(--rose);
  --blob-h: 44px;
  --item-h: 44px;
  --tracking: 0.14em;
  position: absolute;
  top: 0; left: 0;
}
.gm__goo { position: absolute; top: -80px; left: -80px; max-width: none; overflow: visible; pointer-events: none; }
.gm__blob { fill: var(--pill); }
.gm__hot { opacity: 0; transition: opacity 0.25s ease; }
.gm__hot.is-on { opacity: 1; }
.gm__hot .gm__blob { fill: var(--red); }
.gm__toggle, .gm__item {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  transition: color 0.25s ease;
}
.gm__toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--blob-h);
  padding: 0 calc(22px - var(--tracking)) 0 22px;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
}
.gm__items { position: absolute; top: 0; left: 0; z-index: 2; margin: 0; padding: 0; list-style: none; }
.gm__item {
  position: absolute;
  top: 0; left: 0;
  display: inline-flex;
  align-items: center;
  height: var(--item-h);
  padding: 0 calc(20px - var(--tracking)) 0 20px;
  border-radius: var(--r-pill);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
}
/* Eigene Bubble je Eintrag: sichtbar auch dort, wo der SVG-Goo-Filter nicht rendert */
.gm__toggle, .gm__item { background: var(--rose); }
.gm__toggle.is-hot, .gm__item.is-hot { color: var(--red-deep); }
.gm__items li { position: relative; }
/* Die li sind 0 px groß (Einträge liegen absolut), der Kringel darf überstehen. */
.gm__items .rough-annotation { overflow: visible !important; }
.gm__txt { position: relative; z-index: 1; }

@media (max-width: 899px) {
  .nav-desktop { display: none; }
  .gm { display: block; }
}

/* ---------- To-top ---------- */
.totop {
  position: fixed;
  right: var(--gutter);
  bottom: calc(var(--gutter) + env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 0;
  border-radius: 50%;
  /* Papier mit Rand und Schatten: lesbar auf Rot, auf Tinte (Footer) und auf Papier; Hover Rosa bleibt überall sichtbar. */
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(58, 18, 28, 0.14), 0 10px 24px -10px rgba(58, 18, 28, 0.55);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease), background-color 0.25s, color 0.25s;
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--rose); color: var(--red-deep); }
.totop i { font-size: 18px; transition: transform 0.3s var(--ease); }
.totop:hover i { transform: translateY(-3px); }

/* ---------- Seitenwechsel ---------- */
.wipe {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--red);
  transform: translateY(100%);
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; background: var(--paper); color: var(--ink); }
.site-footer__stage { padding: var(--space-xl) var(--gutter) var(--space-l); overflow: hidden; }
.site-footer__claim {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 9.6vw, 12rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
}
/* SV: „svåra enkelt.“ soll auf dem Handy eine Zeile bleiben. */
@media (max-width: 540px) {
  html[lang="sv"] .site-footer__claim { font-size: 1.75rem; }
}
/* Letztes Wort rot; die Zeilen-Masken erzeugt SplitText. */
.site-footer__claim .claim-last { color: var(--red); }
.site-footer__claim > div { padding-bottom: 0.06em; }
.site-footer__claim { position: relative; }
.site-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-m); margin-top: var(--space-l); }
.site-footer__logo { width: clamp(180px, 22vw, 340px); mix-blend-mode: multiply; }
/* Überdimensionierter CTA am Seitenende */
.btn--mega {
  min-height: clamp(76px, 9vw, 132px);
  padding: 0 clamp(32px, 4vw, 64px);
  border-radius: var(--r-card);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  gap: 0.5em;
}
.btn--mega i { font-size: 0.8em; }
.btn--mega:hover { transform: translateY(-4px) rotate(-1deg); }
@media (max-width: 640px) {
  .site-footer__row { flex-direction: column; align-items: stretch; }
  .btn--mega { width: 100%; }
}
/* „Mehr von Explanideo“: weitere Angebote und Kanäle */
.site-footer__more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 0 var(--gutter) var(--space-l); }
.site-footer__more-title { margin: 0; font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.site-footer__more ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer__more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: var(--r-pill);
  font-size: var(--t-caption);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.site-footer__more a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.site-footer__more i { font-size: 1.05em; }

.site-footer__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 0 var(--gutter) var(--space-l);
}
.badge-plate {
  display: grid;
  place-items: center;
  height: 92px;
  padding: 10px 16px;
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
a.badge-plate:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -14px rgba(58, 18, 28, 0.4); }
.badge-plate img { height: 72px; width: auto; max-width: none; }
.badge-plate--tall { padding: 6px 10px; }

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s) var(--space-m);
  padding: 22px calc(var(--gutter) + 64px) calc(22px + env(safe-area-inset-bottom)) var(--gutter);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-caption);
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; }
.site-footer__links a { text-decoration: none; opacity: 0.8; }
.site-footer__links a:hover { opacity: 1; text-decoration: underline; }
.site-footer__copy { margin: 0; opacity: 0.7; }
/* Mobil: Links oben über die volle Breite in einer Zeile, darunter Copyright + Sprachwahl rechts */
@media (max-width: 899px) {
  .site-footer__bar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "links" "copy";
    grid-template-columns: 1fr;
    gap: 18px 12px;
    padding-right: var(--gutter);
  }
  /* Über der Footer-Leiste würde der Nach-oben-Button die Sprachwahl verdecken. */
  .totop.is-over-bar { opacity: 0 !important; pointer-events: none; }
  .site-footer__links { grid-area: links; flex-wrap: nowrap; justify-content: space-between; gap: 8px; white-space: nowrap; }
  .site-footer__copy { grid-area: copy; }
}

/* ---------- Modal (Impressum / Datenschutz): Scroll nur innen ---------- */
.modal {
  width: min(860px, 94vw);
  max-width: none;
  height: min(86svh, 900px);
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: var(--r-card);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.modal[open] { display: flex; }
.modal::backdrop { background: rgba(58, 18, 28, 0.7); backdrop-filter: blur(4px); }
.modal__panel { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 3vw, 36px);
  border-bottom: var(--line);
}
.modal__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: 0.03em; }
.modal__close {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  font-size: 18px;
  cursor: pointer;
}
.modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(20px, 3vw, 36px);
  font-size: 1rem;
  line-height: 1.6;
}
.modal__body h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: 0.02em; margin: 1.6em 0 0.4em; }
.modal__body h2:first-child { display: none; }
.modal__body h3 { font-size: 1.1rem; margin: 1.4em 0 0.3em; }
.modal__body h4 { font-size: 1rem; margin: 1.2em 0 0.3em; }
.modal__body p, .modal__body li { max-width: 72ch; }
.modal__body a { color: var(--red); overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
