/* ==========================================================================
   Let's Do. – Lichtschicht
   Wird als Letztes geladen und hebt das Erscheinungsbild der ganzen Website an:
   hellere Flächen, sichtbare Ränder, mehr Kontrast im Text, mehr Raum für
   Überschriften. Eine Datei für Startseite und Unterseiten, damit alles
   dieselbe Linie hat. Vorgabe vom 15.11.2026: „mehr Licht, mehr Präsentation".
   ========================================================================== */

:root {
  /* Grundtöne: Nachtblau statt Schwarz */
  --bg-deep:        #0A0D15;
  --bg-section:     #0F131D;
  --bg-card:        #171C28;
  --bg-card-hover:  #1E2433;
  --bg-overlay:     rgba(10, 13, 21, 0.82);
  /* Text: Nebentexte deutlich heller */
  --text-muted:     #B4B8CE;
  --text-dim:       #A0A4BD;
  /* Flächen aus Glas */
  --licht-flaeche:  linear-gradient(180deg, rgba(255, 255, 255, 0.095) 0%, rgba(255, 255, 255, 0.04) 100%);
  --licht-flaeche-stark: linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.06) 100%);
  --licht-rand:     rgba(255, 255, 255, 0.14);
  --licht-rand-leise: rgba(255, 255, 255, 0.09);
  --licht-kante:    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

body { background-color: var(--bg-deep); }

/* ── Kopfleiste ── */
.site-nav { background: rgba(14, 18, 28, 0.62); border-bottom-color: rgba(255, 255, 255, 0.08); }
.site-nav--scrolled { background: rgba(14, 18, 28, 0.82); }
.site-nav__link { color: rgba(255, 255, 255, 0.78); }
.site-nav__dropdown { background: rgba(20, 25, 38, 0.96); border-color: var(--licht-rand-leise); }

/* ── Die große Glasfläche jedes Abschnitts ── */
.glasbox {
  background: linear-gradient(180deg, rgba(30, 36, 54, 0.56) 0%, rgba(16, 20, 31, 0.50) 100%);
  border-color: var(--licht-rand-leise);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: var(--licht-kante), 0 40px 80px -34px rgba(0, 0, 0, 0.55);
}

/* ── Überschriften der Abschnitte: mehr Auftritt ── */
.ai-gen__sub, .ai-services__sub, .ki-produkte__sub, .methode__sub, .referenzen__sub, .faq__title, .produkte__title, .pd-home__title {
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
  font-weight: 600;
  color: #fff;
  text-wrap: balance;
}
.ai-gen__header, .ai-services__header, .ki-produkte__header { margin-bottom: clamp(1.4rem, 3vh, 2.6rem); }

/* ── Karten (Lokale KI, Leistungen, Beratung) ── */
.ki-card {
  background: var(--licht-flaeche);
  border-color: var(--licht-rand);
  box-shadow: var(--licht-kante), 0 18px 40px -22px rgba(0, 0, 0, 0.6);
}
.ki-card:hover {
  background: var(--licht-flaeche-stark);
  border-color: rgba(228, 28, 34, 0.45);
  box-shadow: var(--licht-kante), 0 24px 48px -20px rgba(228, 28, 34, 0.22);
}
/* Bilder: Die Motive sind Nachtaufnahmen. Sie werden aufgehellt gezeigt, der dunkle Verlauf darüber entfällt fast. */
.ki-card__img { filter: brightness(1.28) contrast(1.03) saturate(1.08); }
.ki-card__image-gradient { background: linear-gradient(to top, rgba(16, 20, 31, 0.5) 0%, transparent 38%); opacity: 0.55; }
.ki-card:hover .ki-card__image-gradient { opacity: 0.25; }
.ki-card__step { color: rgba(255, 255, 255, 0.72); opacity: 1; font-size: clamp(0.62rem, 0.8vw, 0.72rem); }
.ki-card__icon-wrap { background: rgba(228, 28, 34, 0.14); border-color: rgba(228, 28, 34, 0.5); box-shadow: 0 0 26px rgba(228, 28, 34, 0.22); }
.ki-card__icon { opacity: 1; }
.ki-card__name { opacity: 1; }
.ki-card__tagline { color: #fff; }
.ki-card__desc, .ki-card__text { color: rgba(255, 255, 255, 0.82); }
.ki-card__tags span { color: rgba(255, 255, 255, 0.85); border-color: rgba(228, 28, 34, 0.38); background: rgba(228, 28, 34, 0.10); }

/* ── Produktkacheln (Let's Do One und die Cubes) ── */
.produkt, .product-card {
  background: var(--licht-flaeche);
  border-color: var(--licht-rand);
  box-shadow: var(--licht-kante), 0 18px 40px -24px rgba(0, 0, 0, 0.6);
}
.produkt:hover, .product-card:hover { background: var(--licht-flaeche-stark); border-color: rgba(228, 28, 34, 0.4); }
.produkt__text { color: rgba(255, 255, 255, 0.84); }
.produkte__lead { color: rgba(255, 255, 255, 0.86); }

/* ── Methode, Referenzen, FAQ, Kontakt, Assistent ── */
.methode__card { background: var(--licht-flaeche); border-color: var(--licht-rand); box-shadow: var(--licht-kante); }
.referenzen__glasbox { background: linear-gradient(180deg, rgba(30, 36, 54, 0.56), rgba(16, 20, 31, 0.50)); border-color: var(--licht-rand-leise); }
.ref-tile, .ref-case { background: var(--licht-flaeche); border-color: var(--licht-rand); }
.faq__item { border-color: var(--licht-rand-leise); }
.faq__answer, .faq__answer p { color: rgba(255, 255, 255, 0.84); }
.kontakt__input, .kontakt__textarea, .kontakt__select {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--licht-rand);
  color: #fff;
}
.kontakt__input::placeholder, .kontakt__textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
.kontakt__side, .kontakt__map { background: var(--licht-flaeche); border-color: var(--licht-rand-leise); }
.chat { background: linear-gradient(180deg, rgba(30, 36, 54, 0.72), rgba(16, 20, 31, 0.72)); border-color: var(--licht-rand); }
.ld-links { color: rgba(255, 255, 255, 0.72); }

/* ==========================================================================
   Unterseiten (Produkt- und Leistungsseiten)
   ========================================================================== */
.page-product, .page-product body { background-color: var(--bg-deep); }
/* Licht von oben: ein weiter, kühler Schein hinter dem Kopf der Seite, dazu ein Hauch Rot an der Seite */
.product-page::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: min(110vh, 980px);
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(120, 150, 230, 0.20) 0%, rgba(120, 150, 230, 0.06) 45%, transparent 75%),
    radial-gradient(36% 40% at 88% 8%, rgba(228, 28, 34, 0.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.product-page__inner { max-width: 920px; }
.product-page__title { color: #fff; }
.product-page__tagline { color: rgba(255, 255, 255, 0.84); }
.product-page__accent { opacity: 1; }

.product-hero__visual, .product-page__feature-image {
  border: 1px solid var(--licht-rand);
  box-shadow: var(--licht-kante), 0 30px 70px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.02);
  background: var(--bg-card);
}
.product-hero__image, .product-page__feature-image img { filter: brightness(1.2) contrast(1.03) saturate(1.06); }

/* Der Text steht auf einer eigenen hellen Glasfläche */
.product-page__body {
  background: var(--licht-flaeche);
  border: 1px solid var(--licht-rand-leise);
  box-shadow: var(--licht-kante);
  border-radius: 14px;
  padding: clamp(1.4rem, 3.2vw, 2.8rem) clamp(1.2rem, 3.4vw, 3rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.product-page__body > :first-child { margin-top: 0; }
.product-page__body > :last-child { margin-bottom: 0; }
.product-page__body h2 {
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem);
  line-height: 1.22;
  color: #fff;
  margin: 2.6rem 0 0.9rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--ld-red);
}
.product-page__body h3 { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); color: #fff; }
.product-page__body p, .product-page__body li {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
}
.product-page__body strong { color: #fff; font-weight: 600; }
.product-page__body li::marker { opacity: 1; }
.product-page__body hr { border-top-color: var(--licht-rand-leise); }
.product-page__punchline { opacity: 1; font-size: 0.9rem; }

.product-page__features-heading { color: #fff; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); margin-top: 2.6rem; }
.product-page__features { gap: 0.6rem; }
.product-page__features span {
  font-size: 0.78rem;
  color: #fff;
  background: rgba(228, 28, 34, 0.14);
  border-color: rgba(228, 28, 34, 0.42);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}

/* ==========================================================================
   Eine Breite für alles
   Jede Glasfläche der Startseite, der Kopf, die Unterseiten und die Fußzeile
   stehen auf denselben Außenkanten. Textlastige Abschnitte bekommen innen
   eine Lesespalte, statt selbst schmaler zu sein.
   ========================================================================== */
:root { --inhalt: min(1320px, 92vw); }

.glasbox.glasbox, .footer__inner.footer__inner { max-width: var(--inhalt); width: 100%; margin-inline: auto; }
.philosophy__glasbox > *, .faq__glasbox > *, .chat-section__glasbox > * { max-width: 900px; margin-inline: auto; }
.kontakt__glasbox > * { max-width: 1120px; margin-inline: auto; }
.pd-home__box > * { max-width: 1180px; margin-inline: auto; }

/* Unterseiten: gleiche Außenkanten wie die Startseite */
.product-page__inner.product-page__inner { max-width: var(--inhalt); width: 100%; padding-inline: clamp(0px, 2vw, 32px); }
.product-hero { grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: clamp(1.5rem, 4vw, 4rem); margin-bottom: 1.5rem; }
.product-page__title { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.product-page__tagline { font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.4rem); line-height: 1.5; max-width: 46ch; }
.product-page__feature-image { margin: clamp(1.5rem, 3vw, 2.5rem) 0; border-radius: 14px; }
.product-page__feature-image img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.product-hero__visual { border-radius: 14px; overflow: hidden; }

.product-page__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(1.25rem, 2.4vw, 2.25rem); align-items: start; }
.product-page__cols .product-page__body { margin-top: 0; }
.product-page__body > p, .product-page__body > ul, .product-page__body > ol, .product-page__body > h2, .product-page__body > h3 { max-width: 74ch; }
.product-page__aside {
  position: sticky; top: 88px;
  background: var(--licht-flaeche);
  border: 1px solid var(--licht-rand-leise);
  box-shadow: var(--licht-kante);
  border-radius: 14px;
  padding: clamp(1.2rem, 2vw, 1.8rem);
}
.product-page__aside .product-page__features-heading { margin-top: 0; }
.product-page__aside .product-page__features { margin-bottom: 1.5rem; }
.product-page__aside .product-page__actions { display: grid; gap: 0.7rem; margin: 0; }
.product-page__aside .product-page__cta { text-align: center; justify-content: center; width: 100%; }
.product-page__aside .product-page__case { margin: 0 0 1.5rem; }

@media (max-width: 980px) {
  .product-hero { grid-template-columns: minmax(0, 1fr); }
  .product-page__cols { grid-template-columns: minmax(0, 1fr); }
  .product-page__aside { position: static; }
  .product-page__feature-image img { aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) {
  .product-page__inner.product-page__inner { padding-inline: 0; width: 92vw; }
}

/* ── Fußzeile ── */
.site-footer, .footer { border-top-color: var(--licht-rand-leise); }

@media (max-width: 767px) {
  .product-page__body { border-radius: 12px; }
}

/* ==========================================================================
   Flüssiges Glas
   Vorgabe vom 15.11.2026: "Liquid Glass", höherwertig. Jede Fläche ist eine
   Scheibe mit weichen, großen Rundungen: Der Hintergrund scheint gesättigt
   und unscharf durch, oben links sitzt ein Lichtreflex, die obere Kante
   fängt Licht, unten rechts liegt ein warmer Widerschein.
   ========================================================================== */
:root {
  --glas-rund:       clamp(18px, 2.1vw, 30px);
  --glas-rund-klein: clamp(14px, 1.5vw, 22px);
  --glas-unschaerfe: blur(22px) saturate(1.7) brightness(1.06);
  --glas-kante:      inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -1px 0 rgba(255, 255, 255, 0.06), inset 1px 0 0 rgba(255, 255, 255, 0.07), inset -1px 0 0 rgba(255, 255, 255, 0.03);
  --glas-schatten:   0 30px 70px -34px rgba(0, 0, 0, 0.66), 0 2px 6px rgba(0, 0, 0, 0.18);
  --glas-scheibe:
    radial-gradient(120% 62% at 10% 0%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 56%),
    radial-gradient(90% 52% at 100% 100%, rgba(228, 28, 34, 0.08) 0%, rgba(228, 28, 34, 0) 60%),
    linear-gradient(180deg, rgba(44, 52, 76, 0.48) 0%, rgba(18, 22, 34, 0.42) 100%);
  --glas-kachel:
    radial-gradient(130% 70% at 8% 0%, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.085) 0%, rgba(255, 255, 255, 0.03) 100%);
}

/* große Scheiben */
.glasbox.glasbox, .product-page__body, .product-page__aside, .chat {
  background: var(--glas-scheibe);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--glas-rund);
  -webkit-backdrop-filter: var(--glas-unschaerfe);
  backdrop-filter: var(--glas-unschaerfe);
  box-shadow: var(--glas-kante), var(--glas-schatten);
}
.chat { overflow: hidden; }

/* Kacheln */
.ki-card, .produkt, .product-card, .methode__card, .ref-tile, .ref-case, .kontakt__side {
  background: var(--glas-kachel);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--glas-rund-klein);
  box-shadow: var(--glas-kante), 0 18px 44px -26px rgba(0, 0, 0, 0.7);
}
.ki-card:hover, .produkt:hover, .product-card:hover, .methode__card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.08), 0 28px 56px -26px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(228, 28, 34, 0.22), 0 18px 50px -24px rgba(228, 28, 34, 0.35);
}
.product-hero__visual, .product-page__feature-image { border-radius: var(--glas-rund); border-color: rgba(255, 255, 255, 0.18); box-shadow: var(--glas-kante), var(--glas-schatten); }

/* Kopfleiste: schwebende Glasleiste auf denselben Außenkanten wie der Inhalt */
.site-nav {
  top: 12px;
  left: max(4vw, calc((100vw - 1320px) / 2));
  right: max(4vw, calc((100vw - 1320px) / 2));
  height: 58px;
  padding: 0 10px 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(80% 140% at 6% 0%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(40, 48, 70, 0.52), rgba(16, 20, 31, 0.5));
  -webkit-backdrop-filter: blur(26px) saturate(1.8);
  backdrop-filter: blur(26px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -1px 0 rgba(255, 255, 255, 0.05), 0 18px 44px -20px rgba(0, 0, 0, 0.7);
}
.site-nav--scrolled {
  background:
    radial-gradient(80% 140% at 6% 0%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(34, 41, 60, 0.74), rgba(14, 18, 28, 0.74));
}
.site-nav__dropdown {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(36, 43, 63, 0.92), rgba(18, 22, 34, 0.94));
  -webkit-backdrop-filter: blur(26px) saturate(1.8);
  backdrop-filter: blur(26px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 24px 50px -22px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

/* Knöpfe: Pillen aus Glas, der rote Hauptknopf mit Glanz */
.site-nav__cta, .btn, .hero__btn, .product-page__cta, .product-page__back, .kontakt__submit, .ki-card__cta, .ki-card__hover-btn {
  border-radius: 999px;
}
.site-nav__cta, .btn--primary, .product-page__cta:not(.product-page__cta--secondary), .kontakt__submit {
  background: linear-gradient(180deg, #F2383E 0%, #D21A20 55%, #B9141A 100%);
  border: 1px solid rgba(255, 150, 150, 0.45);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 6px rgba(120, 0, 0, 0.35), 0 10px 26px -10px rgba(228, 28, 34, 0.65);
}
.site-nav__cta:hover, .btn--primary:hover, .product-page__cta:not(.product-page__cta--secondary):hover, .kontakt__submit:hover {
  background: linear-gradient(180deg, #FF4A50 0%, #E21F25 55%, #C4161C 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 6px rgba(120, 0, 0, 0.3), 0 14px 32px -10px rgba(228, 28, 34, 0.8);
}
.btn--ghost, .product-page__cta--secondary, .product-page__back {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

/* Schildchen und Eingabefelder */
.ki-card__tags span, .product-page__section {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(228, 28, 34, 0.20), rgba(228, 28, 34, 0.08));
  border: 1px solid rgba(255, 120, 120, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.product-page__features span { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.kontakt__input, .kontakt__textarea, .kontakt__select {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 8px 18px -12px rgba(0, 0, 0, 0.6);
}
.kontakt__input:focus, .kontakt__textarea:focus, .kontakt__select:focus {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 3px rgba(228, 28, 34, 0.28);
  outline: none;
}

/* Ohne Hintergrund-Unschärfe (ältere Browser): Scheiben dichter machen, damit Text lesbar bleibt */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glasbox.glasbox, .product-page__body, .product-page__aside, .chat, .site-nav { background: rgba(22, 27, 41, 0.94); }
}
@media (prefers-reduced-transparency: reduce) {
  .glasbox.glasbox, .product-page__body, .product-page__aside, .chat, .site-nav { background: rgba(22, 27, 41, 0.96); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 767px) {
  .site-nav { top: 8px; left: 10px; right: 10px; height: 54px; padding: 0 8px 0 16px; }
}

/* Rot auf Glas: die kleinen roten Zeilen etwas heller, damit sie auf den hellen Scheiben lesbar bleiben */
.produkt__kind, .ki-card__name, .ref-tile__tag, .ref-case__tag { color: #FF6168; }

/* ==========================================================================
   Bewegung und Licht
   Gehört zu assets/js/modules/bewegung.js (setzt die Klasse ld-bewegt, die
   Lichtkoordinaten --lx/--ly und die Marken data-ein / ist-da). Ohne das
   Skript oder bei „Bewegung reduzieren" greift nichts davon.
   ========================================================================== */

/* Seitenwechsel: Die alte Seite löst sich auf, die neue wird scharf; die Kopfleiste bleibt stehen */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: ld-raus 0.26s ease both; }
::view-transition-new(root) { animation: ld-rein 0.46s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes ld-raus { to { opacity: 0; filter: blur(8px); scale: 0.985; } }
@keyframes ld-rein { from { opacity: 0; filter: blur(10px); scale: 1.012; } }
.site-nav { view-transition-name: ld-kopf; }

/* Lichtreflex: ein Glanz, der mit dem Zeiger über jede Scheibe wandert */
.ld-bewegt :is(.glasbox, .produkt, .methode__card, .ref-case, .product-page__body, .product-hero__visual, .product-page__feature-image, .chat) { position: relative; }
.ld-bewegt :is(.glasbox, .ki-card, .produkt, .methode__card, .ref-case, .product-page__body, .product-page__aside, .product-hero__visual, .product-page__feature-image, .chat, .site-nav, .ld-rail)::after {
  content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  background: radial-gradient(540px circle at var(--lx, -999px) var(--ly, -999px), rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.045) 34%, transparent 62%);
  mix-blend-mode: screen;
  opacity: var(--lo, 0);
  transition: opacity 0.45s ease;
}
.ld-bewegt :is(.ki-card, .produkt, .methode__card, .ref-case)::after {
  background: radial-gradient(320px circle at var(--lx, -999px) var(--ly, -999px), rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.06) 40%, transparent 66%);
}

/* Einblenden beim Scrollen: erst unscharf und tiefer, dann scharf an seinem Platz, Geschwister leicht versetzt */
.ld-bewegt [data-ein] {
  opacity: 0; translate: 0 36px; filter: blur(10px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), translate 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.9s ease;
  transition-delay: calc(var(--i, 0) * 80ms);
}
.ld-bewegt [data-ein].ist-da { opacity: 1; translate: 0 0; filter: none; }

/* Neigen: Kacheln kippen räumlich zum Zeiger und heben sich an */
.ld-bewegt :is(.ai-gen__grid, .ai-services__grid, .ki-produkte__grid, .produkte__grid, .methode__grid, .ref-cases, .referenzen__cases) { perspective: 1500px; }
.ld-bewegt :is(.ki-card, .produkt, .methode__card, .ref-case) {
  transform-style: preserve-3d;
  transition: rotate 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), translate 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 0.9s ease, border-color 0.3s ease, box-shadow 0.35s ease, background 0.3s ease;
}
.ld-bewegt :is(.ki-card, .produkt, .methode__card, .ref-case).ld-kippt { transition-duration: 0.14s, 0.14s, 0.9s, 0.9s, 0.3s, 0.35s, 0.3s; transition-delay: 0s; }

/* Tiefe: Bilder sind etwas größer als ihr Rahmen und wandern beim Scrollen darin */
.ld-bewegt :is(.ki-card__img, .product-page__feature-image img, .product-hero__image) { scale: 1.1; will-change: translate; }

/* Knöpfe: ziehen sich zum Zeiger, über den roten Hauptknopf läuft ein Glanz */
.ld-bewegt :is(.site-nav__cta, .hero__btn, .product-page__cta, .kontakt__submit, .btn--primary) { transition: translate 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease; }
.ld-bewegt :is(.site-nav__cta, .btn--primary, .product-page__cta:not(.product-page__cta--secondary), .kontakt__submit) { position: relative; overflow: hidden; isolation: isolate; }
.ld-bewegt :is(.site-nav__cta, .btn--primary, .product-page__cta:not(.product-page__cta--secondary), .kontakt__submit)::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.5) 50%, transparent 66%);
  translate: -120% 0; transition: translate 0.75s ease;
}
.ld-bewegt :is(.site-nav__cta, .btn--primary, .product-page__cta:not(.product-page__cta--secondary), .kontakt__submit):hover::before { translate: 120% 0; }

/* Fortschrittslinie an der Unterkante der Kopfleiste */
.ld-fortschritt {
  position: absolute; left: 26px; right: 26px; bottom: -1px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(228, 28, 34, 0) 0%, #ff4a50 35%, #fff 100%);
  box-shadow: 0 0 12px rgba(255, 74, 80, 0.85);
  transform-origin: 0 50%; scale: 0 1;
}

/* Abschnittsleiste: eine schmale Glaspille am rechten Rand, der aktive Abschnitt leuchtet */
.ld-rail {
  position: fixed; right: max(10px, calc((100vw - 1320px) / 2 - 62px)); top: 50%; translate: 0 -50%; z-index: 40;
  display: grid; gap: 2px; padding: 10px 7px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(40, 48, 70, 0.5), rgba(16, 20, 31, 0.46));
  -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.ld-rail.ist-da { opacity: 1; pointer-events: auto; }
.ld-rail a { position: relative; display: grid; place-items: center; width: 22px; height: 22px; }
.ld-rail a i { width: 6px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.42); transition: height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease; }
.ld-rail a:hover i { background: #fff; }
.ld-rail a.ist-aktiv i { height: 18px; background: #ff4a50; box-shadow: 0 0 12px rgba(255, 74, 80, 0.9); }
.ld-rail a span {
  position: absolute; right: 32px; white-space: nowrap; pointer-events: none;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
  padding: 0.4em 0.9em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(20, 25, 38, 0.88);
  opacity: 0; translate: 8px 0; transition: opacity 0.25s ease, translate 0.25s ease;
}
.ld-rail a:hover span, .ld-rail a:focus-visible span { opacity: 1; translate: 0 0; }
.ld-rail a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 999px; }
@media (max-width: 1100px) { .ld-rail { display: none; } }

/* ==========================================================================
   Sprachwähler und Intro-Knopf in der Kopfleiste (templates/header.php)
   ========================================================================== */
.site-nav__desktop { margin-left: auto; }
.site-nav__werkzeug { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.site-nav__rund {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; height: 38px; min-width: 38px; padding: 0 0.85em;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 8px 20px -12px rgba(0, 0, 0, 0.8);
  color: #fff; font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; cursor: pointer; user-select: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, translate 0.25s ease;
}
.site-nav__rund:hover, .sprachwahl[open] > .site-nav__rund {
  border-color: rgba(255, 120, 124, 0.75);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 26px -10px rgba(228, 28, 34, 0.75);
}
.site-nav__rund:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.site-nav__intro { padding: 0; width: 38px; }
.site-nav__intro svg { margin-left: 2px; transition: scale 0.25s ease; }
.site-nav__intro:hover svg { scale: 1.2; color: #ff6168; }
.sprachwahl { position: relative; }
.sprachwahl > summary { list-style: none; }
.sprachwahl > summary::-webkit-details-marker { display: none; }
.sprachwahl__pfeil { opacity: 0.7; transition: rotate 0.3s ease; }
.sprachwahl[open] .sprachwahl__pfeil { rotate: 180deg; }
.sprachwahl__liste {
  position: absolute; right: -6px; top: calc(100% + 18px); z-index: 6; min-width: 236px; padding: 8px; display: grid; gap: 2px;
  border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(228, 28, 34, 0.2) 0%, rgba(228, 28, 34, 0) 60%),
    linear-gradient(180deg, rgba(38, 45, 66, 0.985), rgba(16, 20, 31, 0.99));
  -webkit-backdrop-filter: blur(28px) saturate(1.8); backdrop-filter: blur(28px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 30px 70px -24px rgba(0, 0, 0, 0.85);
  transform-origin: 90% 0; animation: sprach-auf 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes sprach-auf { from { opacity: 0; scale: 0.92; translate: 0 -8px; filter: blur(6px); } }
.sprachwahl__eintrag {
  display: flex; align-items: center; gap: 0.9em; padding: 0.55em 0.8em 0.55em 0.55em; border-radius: 15px;
  color: rgba(255, 255, 255, 0.88); font-family: var(--font-display); font-size: 0.98rem; letter-spacing: 0.01em; white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, translate 0.2s ease;
  animation: sprach-zeile 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.sprachwahl__eintrag:nth-child(2) { animation-delay: 30ms; } .sprachwahl__eintrag:nth-child(3) { animation-delay: 60ms; }
.sprachwahl__eintrag:nth-child(4) { animation-delay: 90ms; } .sprachwahl__eintrag:nth-child(5) { animation-delay: 120ms; }
.sprachwahl__eintrag:nth-child(6) { animation-delay: 150ms; } .sprachwahl__eintrag:nth-child(7) { animation-delay: 180ms; }
@keyframes sprach-zeile { from { opacity: 0; translate: 10px 0; } }
.sprachwahl__eintrag b {
  flex: none; width: 2.5em; height: 2.5em; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.07);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; color: #fff;
}
.sprachwahl__eintrag:hover, .sprachwahl__eintrag:focus-visible { background: rgba(255, 255, 255, 0.11); color: #fff; translate: 2px 0; outline: none; }
.sprachwahl__eintrag.ist-aktiv { background: rgba(228, 28, 34, 0.2); color: #fff; }
.sprachwahl__eintrag.ist-aktiv b { background: linear-gradient(180deg, #F2383E, #B9141A); border-color: rgba(255, 170, 170, 0.55); box-shadow: 0 0 16px rgba(228, 28, 34, 0.7); }
.sprachwahl__eintrag.ist-aktiv::after { content: ''; margin-left: auto; width: 7px; height: 12px; border: solid #fff; border-width: 0 2px 2px 0; rotate: 45deg; translate: -4px -2px; }
@media (min-width: 901px) and (max-width: 1240px) { .site-nav__intro { display: none; } }
@media (max-width: 900px) { .site-nav__werkzeug { margin-left: auto; margin-right: 10px; } }
@media (prefers-reduced-motion: reduce) { .sprachwahl__liste, .sprachwahl__eintrag { animation: none; } }
.footer__replay { text-decoration: none; }

/* Seitenwechsel von einer Leistungskarte: Das Bild der Karte wandert in den Kopf der Zielseite (scroll.js setzt den Namen beim Klick) */
.product-hero__visual { view-transition-name: ld-bild; }
::view-transition-group(ld-bild) { animation-duration: 0.75s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
::view-transition-old(ld-bild), ::view-transition-new(ld-bild) { height: 100%; object-fit: cover; overflow: clip; border-radius: 20px; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* Sprachwähler: runde Flaggen (templates/header.php) */
.sprachwahl__flagge { flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.5), 0 5px 12px -4px rgba(0, 0, 0, 0.85); transition: scale 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sprachwahl__knopf { padding-left: 0.4em; }
.sprachwahl__knopf .sprachwahl__flagge { width: 24px; height: 24px; }
.sprachwahl__eintrag { gap: 0.85em; }
.sprachwahl__eintrag:hover .sprachwahl__flagge { scale: 1.14; }
.sprachwahl__eintrag b, .sprachwahl__eintrag.ist-aktiv b {
  width: auto; height: auto; margin-left: auto; padding-left: 1.2em; display: inline; border: 0; border-radius: 0; background: none; box-shadow: none;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.5);
}
.sprachwahl__eintrag.ist-aktiv b { color: rgba(255, 255, 255, 0.85); }
.sprachwahl__eintrag.ist-aktiv .sprachwahl__flagge { box-shadow: 0 0 0 2px #ff4a50, 0 0 18px rgba(255, 74, 80, 0.8); }
.sprachwahl__eintrag.ist-aktiv::after { margin-left: 0.9em; }
