/* ============================================================
   28Solutions — „Goldschmiede" (V4)
   Warmes Schwarz, Gold, Elfenbein. Dunkle Bühne, auf der die
   goldene 8 glänzt: schwebende Glas-Navigation, Karten mit
   sanften Radien, Gold-Glanz auf Schlüsselwörtern und ein
   goldenes Nadelfeld im Hero. Serifen tragen alles Lesbare;
   Space Grotesk bleibt technische Beschriftung.
   ============================================================ */

:root {
  --bg: #0b0f16;           /* warmes Schwarz */
  --bg-deep: #070a10;      /* CTA/Footer: eine Stufe tiefer */
  --card: #121826;
  --card-soft: #161e2e;

  --text: #e9eef6;         /* Elfenbein */
  --text-soft: #93a2b8;    /* gedämpftes Messing-Beige */
  --line: rgba(233, 238, 246, 0.11);
  --line-strong: rgba(233, 238, 246, 0.24);

  /* Champagner statt Casino: entsättigtes Messing-Gold, sparsam eingesetzt —
     das satte Gold gehört der 8 in der 3D-Szene, nicht der Fläche. */
  --gold: #6f9fd8;
  --gold-light: #a8c4e6;
  --gold-deep: #46698f;
  --bronze: #3a5878;
  --glow: linear-gradient(96deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  --gold-line: rgba(111, 159, 216, 0.32);

  --font-serif: 'Charter', 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --font-label: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  --nav-w: 1180px;
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 22px 60px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 17.5px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Feines Korn — nimmt dem dunklen Grund die sterile Glätte */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(111, 159, 216, 0.35); }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.1; color: var(--text); }

h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }

a { color: inherit; }
img, svg, canvas { max-width: 100%; }

.container { width: min(1180px, 92vw); margin-inline: auto; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Technische Beschriftung */
.label,
.section-no,
.chip,
.row-tags,
.footer-base,
.qa-mark {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-no { color: var(--gold); }

/* Unterstrichene Textverweise */
.textlink {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(233, 238, 246, 0.35);
  text-underline-offset: 5px;
  transition: color 0.25s, text-decoration-color 0.25s;
}
.textlink:hover { color: var(--gold-light); text-decoration-color: var(--gold); }

/* Pfeil-Link (Kartenfuß) */
.arrowlink {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}
.arrowlink i {
  font-style: normal;
  transition: transform 0.3s var(--ease-out);
}
.arrowlink:hover { color: var(--gold-light); }
.arrowlink:hover i { transform: translateX(4px); }

/* ============ Gold-Glanz auf Schlüsselwörtern ============
   site.js setzt .play, sobald das Element im Bild ist, und
   wiederholt das Aufglühen alle paar Sekunden. */

.shimmer {
  --base: var(--text);
  background-image: linear-gradient(
    100deg,
    var(--base) 0%, var(--base) 38%,
    var(--gold-light) 47%, #dbe6f2 52%, var(--gold) 57%,
    var(--base) 66%, var(--base) 100%
  );
  background-size: 320% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.shimmer.play { animation: shimmerRun 1.7s ease-in-out; }

@keyframes shimmerRun {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.72em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s,
              transform 0.25s var(--ease-out), box-shadow 0.25s, filter 0.25s;
}
.btn:active { transform: scale(0.98); }

/* Monochrom statt Gold-Fläche: Elfenbein trägt, Gold bleibt Detail */
.btn-primary { background: var(--text); color: #111827; }
.btn-primary:hover { background: #fff; box-shadow: var(--shadow-soft); }

.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

/* Varianten auf abgesetzten Flächen (Panels) — gleiche Logik */
.btn-light { background: var(--text); color: #111827; }
.btn-light:hover { background: #fff; box-shadow: var(--shadow-soft); }
.btn-ghost-inv { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost-inv:hover { border-color: var(--gold); color: var(--gold-light); }

.btn-s { min-height: 40px; padding: 0.5em 1.15em; font-size: 0.74rem; }

/* ============ Schwebende Navigation ============ */

.nav-shell {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
}

.nav-bar {
  pointer-events: auto;
  width: min(var(--nav-w), calc(100vw - 24px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.6rem 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(11, 15, 22, 0.66);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.3s, background-color 0.3s, border-color 0.3s;
}
.nav-scrolled .nav-bar {
  background: rgba(9, 12, 18, 0.9);
  border-color: rgba(233, 238, 246, 0.16);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.logo {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  color: var(--text);
  flex: none;
}
.logo-eight,
.footer-logo .logo-eight {
  display: inline-block;
  color: var(--gold);
  transition: transform 0.6s var(--ease-out);
  transform-origin: 50% 54%;
}
.logo:hover .logo-eight,
.footer-logo:hover .logo-eight { transform: rotate(90deg); }

.nav-center {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.62rem 0.95rem;
  border: none;
  background: none;
  border-radius: 999px;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s, background-color 0.25s;
}
.nav-link:hover,
.nav-item.open > .nav-link { color: var(--text); background: rgba(233, 238, 246, 0.07); }
.nav-link[aria-current="page"] { color: var(--gold-light); }

.nav-link .chev {
  width: 9px; height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s var(--ease-out);
}
.nav-item.open .chev { transform: rotate(225deg) translateY(-1px); }

.nav-cta { display: flex; align-items: center; gap: 0.5rem; flex: none; }

/* --- Mega-Menü „Lösungen" --- */

.nav-item { position: relative; }

.menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(720px, calc(100vw - 32px));
  padding: 0.8rem;
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-lift);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s var(--ease-out), visibility 0.25s;
}
.nav-item.open .menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.menu::before {
  content: '';
  position: absolute;
  top: -16px; left: 0; right: 0;
  height: 16px;
}

.menu-col { display: flex; flex-direction: column; gap: 0.2rem; }

.menu-head {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 0.5rem 0.85rem 0.35rem;
}

.menu-entry {
  display: block;
  padding: 0.72rem 0.85rem;
  border-radius: var(--r-m);
  text-decoration: none;
  transition: background-color 0.2s;
}
.menu-entry:hover { background: rgba(233, 238, 246, 0.06); }
.menu-entry strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--text);
}
.menu-entry span {
  display: block;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-top: 0.15rem;
}

/* Produktkarte im Menü: dunkles Gold-Kabinett */
.menu-product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.1rem;
  border-radius: var(--r-m);
  border: 1px solid var(--gold-line);
  background: linear-gradient(150deg, #1a2338 0%, #101623 70%);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  position: relative;
}
.menu-product::after {
  content: '∞';
  position: absolute;
  right: -6px;
  bottom: -30px;
  font-family: var(--font-label);
  font-size: 6.4rem;
  font-weight: 700;
  color: rgba(111, 159, 216, 0.32);
  transition: color 0.3s;
}
.menu-product:hover::after { color: rgba(111, 159, 216, 0.5); }
.menu-product .chip { align-self: flex-start; }
.menu-product strong {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.2;
  display: block;
}
.menu-product span {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
  display: block;
  margin-top: 0.3rem;
  max-width: 24ch;
}
.menu-product .arrowlink { color: var(--gold-light); margin-top: 0.2rem; }
.menu-product .arrowlink:hover { color: #fff; }

.chip {
  display: inline-block;
  padding: 0.22em 0.75em;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
}
.chip-solid {
  background: var(--gold);
  color: #111827;
  border-color: transparent;
}

/* --- Burger + mobiles Menü --- */

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  border-radius: 999px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-burger i {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-open .nav-burger i:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-burger i:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav-mobile {
  pointer-events: auto;
  display: none;
  width: min(var(--nav-w), calc(100vw - 24px));
  margin: 10px auto 0;
  padding: 1rem;
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: rgba(14, 19, 29, 0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lift);
  max-height: calc(100vh - 110px);
  max-height: calc(100svh - 110px);
  overflow-y: auto;
}
.nav-open .nav-mobile { display: block; }

.nav-mobile .menu-head { padding-left: 0.4rem; }

.nav-mobile .menu-entry { padding: 0.85rem 0.4rem; }

.nav-mobile .plain-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 0.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text);
}
.nav-mobile .plain-link:hover { color: var(--gold-light); }

.nav-mobile .menu-product { margin-top: 0.8rem; }

.nav-mobile .btn { width: 100%; margin-top: 0.9rem; }

@media (max-width: 940px) {
  .nav-center, .nav-cta .btn { display: none; }
  .nav-burger { display: flex; }
  .nav-bar { padding: 0.4rem 0.5rem 0.4rem 1rem; }
}

/* ============ Hero ============ */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  --lockup-h: clamp(150px, 19vw, 300px);
}

.hero-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 2rem;
}

.hero-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 18px);
}

#scene {
  display: block;
  width: calc(var(--lockup-h) * 1.5);
  height: calc(var(--lockup-h) * 1.125);
  flex: none;
  /* Standbild der 28 (exakter erster 3D-Frame): steht mit dem ersten
     Seitenaufbau. Die echte Szene übermalt es pixelgleich und setzt
     dann .live — bleibt WebGL aus, bleibt das Bild als Fallback. */
  background: url('../assets/hero-28.webp') center / 100% 100% no-repeat;
}
#scene.live { background: none; }
@media (prefers-reduced-motion: reduce) {
  /* hier zeigt die Szene sofort das statische ∞ — ein 28-Standbild davor würde springen */
  #scene { background: none; }
}

.lockup-word {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: calc(var(--lockup-h) * 0.56);
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
}

.hero-bottom {
  position: relative;
  margin-top: 1.7rem;
  min-height: 170px;
  width: min(660px, 92vw);
}

.hero-sub {
  color: var(--text-soft);
  max-width: 520px;
  margin-inline: auto;
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hero-tagline {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding-top: 0.4rem;
  pointer-events: none;
  opacity: 0;
}
.hero-tagline h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.acc-word { font-style: normal; color: var(--gold); }
.hero-tagline p {
  color: var(--text-soft);
  margin-top: 0.8rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.scroll-hint {
  position: absolute;
  z-index: 1;
  bottom: 26px;
  right: clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-soft);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.scroll-hint i {
  width: 44px;
  height: 1px;
  background: var(--text-soft);
  transform-origin: left;
  animation: scrollPulse 2.4s var(--ease-out) infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleX(0); opacity: 0; }
  40% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1) translateX(18px); opacity: 0; }
}

/* ============ Sektionen ============ */

.section { position: relative; padding: clamp(72px, 9vw, 120px) 0; }
.section-tight { padding: clamp(56px, 7vw, 90px) 0; }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 3.6vw, 3.2rem);
}
.section-head .section-no { display: block; margin-bottom: 0.9rem; }
.section-head p.lead { color: var(--text-soft); margin-top: 1rem; max-width: 58ch; }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.section-head-row .arrowlink { flex: none; margin-bottom: 0.4rem; }

/* Seitenkopf für Unterseiten */
.page-head {
  padding: clamp(140px, 20vh, 200px) 0 clamp(40px, 5vw, 64px);
}
.page-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin-top: 1rem;
}
.page-head-sub {
  color: var(--text-soft);
  max-width: 56ch;
  margin-top: 1.3rem;
  font-size: 1.08rem;
}
.page-head .hero-actions {
  justify-content: flex-start;
  margin-top: 1.7rem;
}

/* ============ Karten ============ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: clamp(1.3rem, 2.2vw, 1.8rem);
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--card-soft), var(--card) 60%);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}
a.card { text-decoration: none; }
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--gold-line);
}

.card h3 { margin-top: 0.1rem; }
.card p { color: var(--text-soft); font-size: 0.98rem; }
.card .row-tags { color: var(--text); opacity: 0.55; margin-top: auto; padding-top: 0.6rem; }
.card .arrowlink { margin-top: 0.4rem; }

/* Kleine Fall-Karten (Unterseiten) */
.fact { gap: 0.45rem; padding: clamp(1.15rem, 1.8vw, 1.5rem); border-radius: var(--r-m); }
.fact h3 { font-size: 1.08rem; }
.fact p { font-size: 0.94rem; }

/* ============ Produkt-Panorama (Auskunft) ============ */

.product-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border-radius: var(--r-l);
  border: 1px solid var(--gold-line);
  background: linear-gradient(150deg, #161e2e 0%, #0e1420 70%);
  color: var(--text);
  overflow: hidden;
  margin-top: clamp(0.9rem, 1.6vw, 1.4rem);
}
.product-panel::after {
  content: '∞';
  position: absolute;
  right: clamp(6px, 4vw, 60px);
  bottom: -70px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: clamp(11rem, 22vw, 17rem);
  line-height: 1;
  background: linear-gradient(135deg, rgba(168, 196, 230, 0.4), rgba(70, 105, 143, 0.25));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
}
.product-panel h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-top: 0.7rem;
  max-width: 17ch;
}
.product-panel .panel-sub {
  color: var(--text-soft);
  margin-top: 0.8rem;
  max-width: 46ch;
}
.product-panel .hero-actions {
  justify-content: flex-start;
  margin-top: 1.5rem;
}
.product-panel .panel-price {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: end;
  text-align: right;
  font-family: var(--font-label);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.product-panel .panel-price b {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-light);
}

/* ============ Statement-Band ============ */

.statement { text-align: left; }
.statement blockquote {
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 24ch;
}
.statement .who {
  margin-top: 1.1rem;
  color: var(--text-soft);
}

.principles {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
}
.principle {
  border-top: 1px solid var(--gold-line);
  padding-top: 1rem;
}
.principle h3 { font-size: 1.05rem; }
.principle p { color: var(--text-soft); font-size: 0.94rem; margin-top: 0.35rem; }

/* Unterbau-Sektion (Startseite): vier Fakten zur eigenen Infrastruktur */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
}

/* ============ Schritte (So läuft's) ============ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
}
.step {
  position: relative;
  padding: clamp(1.2rem, 2vw, 1.6rem);
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: var(--card);
}
.step::before {
  content: '';
  display: block;
  width: 1.7rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.step h3 { margin-top: 0.5rem; font-size: 1.12rem; }
.step p { color: var(--text-soft); font-size: 0.95rem; margin-top: 0.4rem; }

/* ============ Zitat / Ehrlichkeits-Note ============ */

.note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border-radius: var(--r-l);
  border: 1px dashed var(--gold-line);
  background: rgba(111, 159, 216, 0.045);
}
.note p {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  max-width: 34ch;
}
.note p em { font-style: normal; color: var(--gold-light); }

/* ============ Preiskarten ============ */

.price-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.3rem);
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--card-soft), var(--card) 60%);
}
.price-card.featured {
  border-color: var(--gold);
  background: linear-gradient(165deg, #161e2e, var(--card) 65%);
  box-shadow: var(--shadow-soft);
}
.price-card .plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.price-card .plan-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
}
.price-card .plan-traffic {
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 0.35rem;
}
.price-card .plan-price {
  margin-top: 1.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.price-card .plan-price b {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3vw, 2.7rem);
  line-height: 1;
}
.price-card.featured .plan-price b { color: var(--gold-light); }
.price-card .plan-price span {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.price-card .plan-for {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-top: 0.9rem;
  min-height: 3em;
}
.price-card ul {
  list-style: none;
  margin: 1.1rem 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.price-card li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--text);
}
.price-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.72em;
  height: 0.4em;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.price-card li strong { font-weight: 700; }
.price-card .btn { margin-top: auto; width: 100%; }

/* Konditionen unter den Karten */
.terms {
  margin-top: clamp(1.4rem, 2.6vw, 2rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.3rem);
}
.term {
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-m);
  background: var(--card);
  border: 1px solid var(--line);
}
.term h3 { font-size: 1rem; }
.term p { color: var(--text-soft); font-size: 0.9rem; margin-top: 0.3rem; }

.fine {
  margin-top: 1.6rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  max-width: 74ch;
}

/* ============ FAQ (Akkordeon) ============ */

.qa-list { border-top: 1px solid var(--line); }

.qa { display: block; border-bottom: 1px solid var(--line); }

.qa summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.05rem, 1.8vw, 1.4rem) 0.2rem;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.qa-mark {
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
  flex: none;
  transition: transform 0.3s var(--ease-out);
}
.qa[open] .qa-mark { transform: rotate(45deg); }
.qa-body { padding: 0 0.2rem clamp(1.05rem, 1.8vw, 1.4rem); }
.qa-body p { color: var(--text-soft); max-width: 62ch; }

/* ============ Code-Schnipsel ============ */

.snippet-demo {
  margin-top: 1rem;
  background: #05070b;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.85rem 1.05rem;
  border-radius: var(--r-s);
  font-family: 'Cascadia Code', Consolas, ui-monospace, monospace;
  font-size: 0.74rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

/* ============ Konzept-Visualisierungen ============
   Kleine Bühnen im Seitenkopf: site.js schaltet Elemente mit [data-seq]
   im Takt von [data-cycle] an (Millisekunden ab Zyklusstart, optional
   [data-off] zum Ausblenden). Reine Anschauung, aria-hidden. */

.page-head-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.viz { user-select: none; pointer-events: none; }

.viz-window {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: linear-gradient(170deg, var(--card-soft), var(--card) 70%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.viz-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.viz-dots { display: inline-flex; gap: 4px; }
.viz-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(233, 238, 246, 0.16);
}
.viz-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.viz [data-seq] {
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.viz [data-seq].on { opacity: 1; transform: none; }
.viz .pop[data-seq] { transform: scale(0.6); }
.viz .pop[data-seq].on { transform: scale(1); }

/* Zeilen (Posteingang, Lektionen) */
.viz-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: rgba(233, 238, 246, 0.03);
}
.viz-row .t {
  flex: 1;
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 0.84rem;
  line-height: 1.3;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.viz-row .t small {
  display: block;
  color: var(--text-soft);
  font-size: 0.72rem;
}
.viz-tag {
  flex: none;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 0.22em 0.7em;
}
.viz-check {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
}
.viz-check::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 4.5px;
  width: 7px;
  height: 4px;
  border-left: 2px solid #111827;
  border-bottom: 2px solid #111827;
  transform: rotate(-45deg);
}

/* Fußzeile mit Status-Häkchen */
.viz-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.viz-status b { color: var(--gold-light); font-weight: 600; }

/* Chat-Blasen */
.viz-q,
.viz-a {
  max-width: 86%;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  font-family: var(--font-serif);
  font-size: 0.86rem;
  line-height: 1.45;
}
.viz-q {
  align-self: flex-end;
  background: var(--text);
  color: #111827;
  border-bottom-right-radius: 4px;
}
.viz-a {
  align-self: flex-start;
  background: rgba(233, 238, 246, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.viz-a .src {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 0.22em 0.7em;
}
.viz-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 0.62rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.viz-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-soft);
  animation: vizTyp 1s infinite;
}
.viz-typing i:nth-child(2) { animation-delay: 0.15s; }
.viz-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes vizTyp {
  0%, 60%, 100% { opacity: 0.25; transform: none; }
  30% { opacity: 1; transform: translateY(-2px); }
}

/* Browser-Adresszeile (Vorschau → live) */
.viz-swap { display: grid; border-bottom: 1px solid var(--line); }
.viz-swap > * { grid-area: 1 / 1; }
.viz-address {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
}
.viz-url {
  flex: 1;
  min-width: 0;
  font-family: 'Cascadia Code', Consolas, ui-monospace, monospace;
  font-size: 0.66rem;
  color: var(--text-soft);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35em 0.95em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.viz-url b { color: var(--text); font-weight: 400; }

/* Skelett einer entstehenden Seite */
.viz-skel { display: flex; flex-direction: column; gap: 0.45rem; }
.viz-hero-skel {
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(150deg, rgba(111, 159, 216, 0.2), rgba(233, 238, 246, 0.05));
}
.viz-bar {
  height: 9px;
  border-radius: 4px;
  background: rgba(233, 238, 246, 0.1);
}
.viz-bar.w85 { width: 85%; }
.viz-bar.w60 { width: 60%; }

/* Lernfortschritt, Test-Badge, Zertifikats-Mail */
.viz-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(233, 238, 246, 0.08);
  overflow: hidden;
}
.viz-progress i {
  display: block;
  height: 100%;
  width: 6%;
  border-radius: inherit;
  background: var(--glow);
  transition: width 2.4s var(--ease-out);
}
.viz-progress.on i { width: 100%; }
.viz-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #111827;
  background: var(--gold);
  border-radius: 999px;
  padding: 0.4em 0.95em;
}
.viz-mail {
  border: 1px solid var(--gold-line);
  border-radius: var(--r-s);
  background: linear-gradient(150deg, #1a2338, #101623 75%);
  padding: 0.7rem 0.85rem;
}
.viz-mail .from {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.56rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.viz-mail .subj {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 0.3rem;
}
.viz-mail .code {
  margin-top: 0.35rem;
  font-family: 'Cascadia Code', Consolas, ui-monospace, monospace;
  font-size: 0.62rem;
  color: var(--gold-light);
}

@media (max-width: 940px) {
  .page-head-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .page-head-grid .viz { max-width: 480px; }
}

/* ============ Preis-Zusätze: Einmalpreis, Add-on, Kurskarten ============ */

.plan-once {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 0.45rem;
}
.plan-once b { color: var(--text); font-weight: 600; }

/* anklickbares Paket-Add-on (Auskunft zur Website dazubuchen) */
.addon {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  margin: 0 0 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: var(--r-s);
  border: 1px dashed var(--gold-line);
  background: rgba(111, 159, 216, 0.05);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}
.addon:hover { border-color: var(--gold); }
.addon-box {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 5px;
  border: 1.5px solid var(--gold);
  position: relative;
  transition: background-color 0.2s;
}
.addon[aria-pressed="true"] {
  border-style: solid;
  border-color: var(--gold);
  background: rgba(111, 159, 216, 0.12);
}
.addon[aria-pressed="true"] .addon-box { background: var(--gold); }
.addon[aria-pressed="true"] .addon-box::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 4px;
  width: 8px;
  height: 4.5px;
  border-left: 2px solid #111827;
  border-bottom: 2px solid #111827;
  transform: rotate(-45deg);
}
.addon strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.96rem;
  line-height: 1.3;
}
.addon .addon-note {
  display: block;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.45;
  margin-top: 0.2rem;
}
.addon .addon-save {
  display: none;
  margin-top: 0.35rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.addon[aria-pressed="true"] .addon-save { display: block; }

/* Kurskarten, die noch nicht buchbar sind */
.price-card.soon { border-style: dashed; }
.price-card.soon .plan-name,
.price-card.soon .plan-for,
.price-card.soon li { opacity: 0.72; }

/* ============ Kontakt-CTA (kompakt) + Footer ============ */

.cta {
  position: relative;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  color: var(--text);
  padding: clamp(64px, 9vw, 110px) 0 0;
}
.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: clamp(48px, 6vw, 80px);
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.cta .section-no { color: var(--gold); }
.cta h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  margin-top: 1rem;
  max-width: 18ch;
}
.cta-sub {
  color: var(--text-soft);
  margin: 1.2rem 0 1.8rem;
  max-width: 48ch;
  font-size: 1.02rem;
}
.mail-link {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.8vw, 2.1rem);
  line-height: 1.25;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--gold);
  text-underline-offset: 8px;
  transition: color 0.3s, text-decoration-color 0.3s;
  overflow-wrap: anywhere;
}
.mail-link:hover { color: #fff; text-decoration-color: var(--gold-light); }

.footer {
  margin-top: clamp(56px, 7vw, 90px);
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3rem) 0 1.6rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem;
}
.footer-brand p {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-top: 0.6rem;
  max-width: 24ch;
}
.footer-logo {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.footer-col h4 {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.8rem;
}
.footer-col a {
  display: block;
  padding: 0.28rem 0;
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
}
.footer-col a:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 4px; }

.footer-base {
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem 1.6rem;
  color: var(--text-soft);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}
.footer-base a { color: inherit; text-decoration: none; }
.footer-base a:hover { color: var(--gold-light); }

/* ============ Rechtsseiten-Prosa ============ */

.prose { max-width: 70ch; }
.prose h2 { font-size: 1.4rem; margin: 2.2rem 0 0.7rem; }
.prose p { color: var(--text-soft); margin-bottom: 0.9rem; }
.prose ul {
  list-style: none;
  margin: 0 0 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.prose li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-soft);
}
.prose li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6em;
  height: 1px;
  background: var(--gold);
}
.prose li strong { color: var(--text); }

/* ============ Reveals ohne GSAP (Unterseiten) ============ */

html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js-reveal [data-reveal].in { opacity: 1; transform: none; }

/* ============ Responsive ============ */

@media (max-width: 1023px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .price-deck { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .terms { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 17px; }

  .card-grid, .card-grid-2, .steps, .principles, .trust-grid { grid-template-columns: 1fr; }

  .product-panel { grid-template-columns: 1fr; }
  .product-panel .panel-price { justify-self: start; text-align: left; margin-top: 0.4rem; }
  .product-panel::after { font-size: 10rem; right: -14px; bottom: -46px; }

  .section-head-row { flex-direction: column; align-items: flex-start; gap: 0.8rem; }

  .page-head h1 br { display: none; }

  .hero { --lockup-h: clamp(120px, 34vw, 170px); }
  .hero-lockup { flex-direction: column; gap: 0.2em; }
  .lockup-word { font-size: calc(var(--lockup-h) * 0.42); }
  .hero-bottom { min-height: 230px; }
  .hero-actions .btn { width: min(100%, 320px); }
  .scroll-hint { display: none; }

  .note { flex-direction: column; align-items: flex-start; }
  .note .btn { width: 100%; }

  .footer-top { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-col a { padding: 0.45rem 0; }
}

/* ============ Reduzierte Bewegung ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .shimmer {
    background: none;
    color: inherit;
    -webkit-text-fill-color: currentColor;
  }
}
