@charset "UTF-8";

/* Talentview – Stylesheet für alle Seiten.
   Keine Inline-Styles (Content-Security-Policy): auch per JavaScript erzeugtes
   Markup (js/home.js) bekommt nur Klassen. */

/* ---------- Schrift ----------
   Inter, selbst gehostet (public/fonts/inter/, Lizenz OFL). Variable Schrift:
   eine Datei je Stil deckt alle Stärken ab. Der Browser lädt nur die Teile,
   deren Zeichen auf der Seite vorkommen (unicode-range) – meist nur „latin“.
   Die normale latin-Datei wird im <head> vorab geladen (layout/top.php). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter/inter-latin-wght-italic.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter/inter-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Basis ---------- */
:root {
  --navy: #0f2a4a;
  --navy-700: #173c63;
  --teal: #16b7a6;
  --teal-600: #0fa093;
  --teal-050: #e8f7f5;
  --gold: #e1af39;
  --orange: #e67e22;
  --red: #d83a25;
  --error: #b3261e;
  --ink: #1b2733;
  --slate: #5a6b7b;
  --line: #e4e9ef;
  --bg: #ffffff;
  --bg-soft: #f6f9fb;
  --bg-navy: #0c2340;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(15, 42, 74, 0.06);
  --shadow-md: 0 12px 40px rgba(15, 42, 74, 0.1);
  --maxw: 1180px;
  --ff:
    "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

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

/* Sprungmarken nicht unter dem Sticky-Header */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* Mindestens Bildschirmhöhe: bei kurzen Seiten (z. B. Rechtstexte) füllt
   <main> den Rest, der Footer sitzt unten statt mitten im Fenster */
body {
  font-family: var(--ff);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

main {
  flex: 1 0 auto;
}

/* hidden gilt immer – auch bei Elementen mit eigenem display (z. B. .btn) */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

section {
  padding: 96px 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 14px;
}

.eyebrow-light {
  color: var(--teal);
}

.lead {
  font-size: 1.12rem;
  color: var(--slate);
  max-width: 640px;
}

.center {
  text-align: center;
}

.center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* Nur für Screenreader sichtbar */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 8px 14px;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  z-index: 500;
}

.skip-link:focus {
  top: 12px;
}

/* Sichtbarer Fokus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

main:focus {
  outline: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: 100px;
  transition: 0.2s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 183, 166, 0.35);
}

.btn-primary:hover {
  background: var(--teal-600);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--bg-soft);
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Glanz beim Überfahren */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-primary:hover::after {
  left: 150%;
}

/* ---------- Header ---------- */
.scrollbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  z-index: 400;
  transition: width 0.08s linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition:
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(15, 42, 74, 0.1);
  background: rgba(255, 255, 255, 0.94);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  transition: 0.15s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 2px;
  width: 0;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.22s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 100px;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 600;
}

.lang a {
  padding: 6px 12px;
  background: #fff;
  color: var(--slate);
  transition: 0.15s;
}

.lang a:hover {
  color: var(--navy);
  background: var(--bg-soft);
}

.lang a[aria-current] {
  background: var(--navy);
  color: #fff;
}

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--teal-050), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg-soft));
  padding-top: 70px;
  overflow: hidden;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 44px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  margin-bottom: 22px;
}

.hero h1 .hl {
  color: var(--teal-600);
}

.hero .lead {
  margin-bottom: 32px;
  font-size: 1.18rem;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  color: var(--slate);
  font-size: 0.9rem;
}

.hero-meta b {
  color: var(--navy);
}

.meta-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--slate);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px dotted var(--teal-600);
  transition: 0.15s;
}

.meta-link:hover {
  color: var(--navy);
}

.meta-link .info-i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  font-style: normal;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100%;
  max-width: 900px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-image:hover img {
  transform: translateY(-6px) scale(1.01);
}

/* animierter Hintergrund */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.blob.b1 {
  width: 460px;
  height: 460px;
  background: radial-gradient(
    circle,
    rgba(22, 183, 166, 0.55),
    transparent 70%
  );
  top: -140px;
  right: -60px;
  animation: float1 16s ease-in-out infinite;
}

.blob.b2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(15, 42, 74, 0.2), transparent 70%);
  bottom: -160px;
  left: -120px;
  animation: float2 20s ease-in-out infinite;
}

.blob.b3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(225, 175, 57, 0.28),
    transparent 70%
  );
  top: 40%;
  left: 42%;
  animation: float1 18s ease-in-out infinite reverse;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(15, 42, 74, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 42, 74, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(
    ellipse 70% 60% at 60% 30%,
    #000,
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 60% 30%,
    #000,
    transparent 75%
  );
}

@keyframes float1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-26px, 26px) scale(1.06);
  }
}

@keyframes float2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -20px) scale(1.08);
  }
}

/* ---------- Modal „Wissenschaftlich fundiert“ ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 35, 64, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  padding: 38px;
  box-shadow: var(--shadow-md);
  position: relative;
  max-height: 86vh;
  overflow: auto;
}

.modal-box .eyebrow {
  margin-bottom: 8px;
}

.modal-box h3 {
  color: var(--navy);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.modal-box p {
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--slate);
  display: grid;
  place-items: center;
  transition: 0.15s;
}

.modal-close:hover {
  background: var(--bg-soft);
  color: var(--navy);
}

/* ---------- Vertrauen (Logos) ---------- */
.trust {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.trust p {
  text-align: center;
  color: var(--slate);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 42px;
}

.logos img {
  height: 40px;
  width: auto;
  transition: transform 0.2s ease;
}

.logos img:hover {
  transform: scale(1.06);
}

/* ---------- Karten ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 52px;
}

.card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: 0.25s;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d4e5e2;
}

.card .ic {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--teal-050);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}

.card:hover .ic {
  transform: scale(1.12) rotate(-5deg);
}

.card h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--slate);
  font-size: 0.98rem;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--teal), transparent 60%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s;
}

.card:hover::before {
  opacity: 1;
}

/* ---------- Modell (Kreis der 8 Funktionen) ---------- */
.oktabg {
  background: var(--bg-soft);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.checklist {
  list-style: none;
  margin-top: 26px;
  display: grid;
  gap: 16px;
}

.checklist li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--ink);
}

.check {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.check svg {
  width: 13px;
  height: 13px;
}

.radar-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radar-panel #radarBig {
  width: 100%;
  max-width: 480px;
}

.radar-svg {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  transition: transform 0.4s ease;
}

#radarBig .tv-seg {
  cursor: pointer;
  transition:
    opacity 0.22s ease,
    filter 0.22s ease;
}

#radarBig .tv-seg:focus {
  outline: none;
}

#radarBig.dimmed .tv-seg {
  opacity: 0.4;
}

#radarBig.dimmed .tv-seg.active {
  opacity: 1;
  filter: drop-shadow(0 0 7px rgba(22, 183, 166, 0.55));
}

.seg-info {
  margin-top: 22px;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 18px 22px;
  display: grid;
}

/* alle Zustände in derselben Zelle: Höhe = längster Text, nur einer sichtbar (js/home.js) */
.seg-info .si-state {
  grid-area: 1/1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  visibility: hidden;
}

.seg-info .si-state.is-active {
  visibility: visible;
}

/* ohne JavaScript gibt es keine Grafik */
.seg-info:empty {
  display: none;
}

.seg-info .si-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 7px;
}

.seg-info .si-dot {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--teal);
  flex: none;
}

.seg-info .si-dot.gold {
  background: var(--gold);
}

.seg-info .si-dot.orange {
  background: var(--orange);
}

.seg-info .si-dot.red {
  background: var(--red);
}

.seg-info h4 {
  color: var(--navy);
  font-size: 1.08rem;
  margin: 0;
}

.seg-info p {
  color: var(--slate);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.55;
}

.seg-info .si-hint {
  color: var(--slate);
  font-size: 0.92rem;
  font-style: italic;
  margin: 0;
}

/* Segmente als Liste: ohne JavaScript sichtbar, mit JavaScript Quelle der Grafik */
.seg-data {
  list-style: none;
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 480px;
}

.seg-data li {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--slate);
  font-size: 0.95rem;
}

.seg-data li[data-color="gold"] {
  border-left-color: var(--gold);
}

.seg-data li[data-color="orange"] {
  border-left-color: var(--orange);
}

.seg-data li[data-color="red"] {
  border-left-color: var(--red);
}

.seg-data .seg-name {
  display: block;
  color: var(--navy);
}

.js .seg-data {
  display: none;
}

/* ---------- Kennzahlen ---------- */
.statsband {
  background: var(--bg-navy);
  color: #fff;
}

.statsband h2 {
  color: #fff;
}

.statsband .lead {
  color: rgba(255, 255, 255, 0.75);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 52px;
}

.stat {
  text-align: center;
  container-type: inline-size;
}

/* Pfeil und Wort bleiben in einer Zeile; die Schrift richtet sich nach der
   Spaltenbreite (cqi), damit auch „↓ Fluktuation“ hineinpasst */
.stat .num {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-size: clamp(1.5rem, 14.5cqi, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat .num .num-word {
  color: var(--teal);
}

.stat .lbl {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.stat.pop .num {
  animation: statpop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.5) both;
}

@keyframes statpop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ---------- Ablauf ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 52px;
  counter-reset: s;
}

.step {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.step::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  top: -20px;
  left: 28px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}

.step:hover::before {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(22, 183, 166, 0.35);
  background: var(--teal);
}

.step h3 {
  font-size: 1.12rem;
  margin: 14px 0 8px;
}

.step p {
  color: var(--slate);
  font-size: 0.96rem;
}

/* ---------- Wissenschaft ---------- */
.science {
  background: var(--bg-soft);
}

.science .split {
  gap: 56px;
}

.quote {
  background: #fff;
  border-left: 4px solid var(--teal);
  border-radius: 14px;
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- Referenzen ---------- */
/* Flex statt Raster: eine oder zwei Referenzen stehen mittig */
.tgrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  margin-top: 52px;
  transition: opacity 0.3s ease;
}

.tgrid > .tcard {
  flex: 0 1 calc((100% - 52px) / 3);
}

/* Wechsel der Referenzen (js/home.js) */
.tgrid.is-fading {
  opacity: 0;
}

/* Knopf „Wechsel anhalten“ zeigt die Zeit bis zum nächsten Wechsel: Der
   Hintergrund füllt sich von links nach rechts. Die Animation gibt den Takt
   vor – an ihrem Ende wechselt js/home.js die Referenzen und startet sie neu.
   Dauer des Wechsels = animation-duration (hier, nur an dieser Stelle). */
.tgrid-toggle {
  margin-top: 28px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.tgrid-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--teal-050);
  transform: scaleX(0);
  transform-origin: left center;
}

.tgrid-toggle.is-running::before {
  animation: tgrid-progress 8s linear forwards;
}

.tgrid-toggle.is-paused::before {
  animation-play-state: paused;
}

@keyframes tgrid-progress {
  to {
    transform: scaleX(1);
  }
}

.tcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.tcard .stars {
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

/* Zitat auf 5 Zeilen gekürzt; ganz im Dialog #quoteModal (js/home.js) */
.tcard blockquote {
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 20px;
  font-style: italic;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}

.tcard-more {
  align-self: flex-start;
  margin: -8px 0 20px;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-600);
  text-decoration: underline;
  cursor: pointer;
}

.tcard-more:hover {
  color: var(--navy);
}

.modal-quote {
  margin: 0 0 18px;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--ink);
}

.modal-who {
  font-size: 0.92rem;
}

.tcard .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

/* flex: none – neben langem Text nicht schmaler werden (bleibt ein Kreis) */
.tcard .av {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
}

.tcard .who b {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}

.tcard .who div span {
  color: var(--slate);
  font-size: 0.82rem;
}

/* ---------- Kontakt (Abschnitt auf der Startseite) ---------- */
.cta {
  background: linear-gradient(120deg, var(--navy), var(--navy-700));
  color: #fff;
  border-radius: 28px;
  padding: 64px 56px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.cta h2 {
  color: #fff;
  margin-bottom: 14px;
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto 30px;
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}

.contact-info h2 {
  color: #fff;
  margin-bottom: 14px;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.contact-info .cta-row {
  justify-content: flex-start;
}

.cform {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.cform h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.cform p {
  color: var(--slate);
  font-size: 1rem;
  margin: 0 0 22px;
}

.cform .btn-primary {
  width: 100%;
  justify-content: center;
}

/* ---------- Unterseiten (Kontakt, Rechtstexte, Fehler) ---------- */
.page-section {
  padding: 64px 0 96px;
  background: linear-gradient(180deg, var(--bg-soft), #fff 320px);
}

.page-section h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 28px;
}

.page-content {
  max-width: 820px;
}

.page-content p,
.page-content ul,
.page-content ol {
  margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
  padding-left: 24px;
}

.page-content .lead {
  margin-bottom: 28px;
}

/* Textlinks; Buttons behalten Farbe und Aussehen ihrer .btn-Klasse */
.page-content a:not(.btn) {
  color: var(--teal-600);
  text-decoration: underline;
}

.page-content a:not(.btn):hover {
  color: var(--navy);
}

.debug {
  overflow: auto;
  padding: 16px;
  background: var(--bg-soft);
  border-radius: 10px;
  font-size: 13px;
}

/* Rechtstexte (Wrapper .legal-text, siehe LegalTextHandler) */
/* Seitentitel gibt das Layout aus */
.legal-text h1 {
  display: none;
}

.legal-text h2 {
  font-size: 1.5rem;
  margin: 40px 0 14px;
}

.legal-text h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
}

.legal-text h2:first-child,
.legal-text h1 + h2 {
  margin-top: 0;
}

.legal-text a {
  overflow-wrap: anywhere;
}

.legal-note {
  margin-bottom: 28px;
  padding: 12px 16px;
  background: var(--teal-050);
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  color: var(--ink);
}

/* ---------- News (content/news/list.php) ---------- */
/* Lesebreite wie alle Unterseiten; Bild als kleines Vorschaubild rechts,
   in einem festen Rahmen (Logos und breite Banner wirken gleich groß) */
.news-list {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 32px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.news-when {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 6px;
}

.news-item h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

.news-text p {
  margin-bottom: 12px;
}

.news-text p:last-child {
  margin-bottom: 0;
}

.news-note {
  font-size: 0.9rem;
  color: var(--slate);
  font-style: italic;
}

.news-image {
  margin: 4px 0 0;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.news-image > a,
.news-image > .news-thumb {
  display: block;
  aspect-ratio: 4/3;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.news-image > a:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
}

/* ---------- Team (content/pages/team.php) ---------- */
.team-list {
  border-top: 1px solid var(--line);
}

.team-member {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

/* Foto rund zugeschnitten; ohne Foto Initialen im gleichen Kreis */
.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  border: 1px solid var(--line);
}

.team-initials {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  border: 0;
}

.team-role {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 6px;
}

.team-member h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

/* ---------- Produktseiten (content/product/) ---------- */
.product h2 {
  font-size: 1.5rem;
  margin: 48px 0 14px;
}

/* Benannte Punkte (Trainings, Profilarten) mit Akzentlinie */
.product-list {
  margin-bottom: 16px;
}

.product-list dt {
  font-weight: 700;
  color: var(--navy);
}

.product-list dd {
  margin: 4px 0 18px;
  padding-left: 16px;
  border-left: 3px solid var(--teal);
  color: var(--slate);
}

.product-figure {
  margin: 8px 0 24px;
}

.product-figure img {
  width: 100%;
  height: auto;
}

.product-read-on {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.product-cta {
  margin-top: 32px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-navy);
  color: #fff;
}

.product .product-cta h2 {
  margin: 0 0 8px;
  color: #fff;
}

.product-cta p {
  color: rgba(255, 255, 255, 0.82);
}

/* „Mehr zu …“ unter Abschnitten der Startseite */
.section-more {
  margin-top: 36px;
}

.section-more a {
  color: var(--teal-600);
  font-weight: 600;
}

.section-more a:hover {
  color: var(--navy);
}

/* ---------- Kontaktformular (content/contact/kontakt.php) ---------- */
.kf-box {
  max-width: 640px;
}

.kf-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.kf-row {
  margin-bottom: 18px;
}

/* Einzeilige Felder paarweise nebeneinander (schmal: untereinander) */
.kf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
}

.kf-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 6px;
}

.kf-optional {
  font-weight: 400;
  color: var(--slate);
}

/* Rahmen mit mind. 3:1 Kontrast */
.kf-row input,
.kf-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #8a97a5;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--bg-soft);
  transition: 0.15s;
}

.kf-row input:focus,
.kf-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 183, 166, 0.25);
}

.kf-row textarea {
  min-height: 160px;
  resize: vertical;
}

.kf-row input.kf-short {
  max-width: 160px;
}

.has-error input,
.has-error textarea {
  border: 2px solid var(--error);
}

.kf-error {
  margin: 6px 0 0;
  color: var(--error);
  font-size: 0.92rem;
}

.kf-summary {
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 2px solid var(--error);
  border-radius: 12px;
  background: #fdf3f2;
}

.kf-summary p {
  margin: 0;
}

.kf-summary ul {
  margin: 0;
  padding-left: 20px;
}

.page-content .kf-summary a {
  color: var(--error);
}

.kf-summary-title {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: var(--error);
}

.kf-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--slate);
}

/* Ohne JavaScript: Rechenaufgabe statt Statusmeldung.
   Mit JavaScript: umgekehrt – außer die automatische Prüfung klappt nicht. */
.kf-status {
  display: none;
}

.js .kf-status {
  display: block;
}

.js .kf-fallback {
  display: none;
}

.js .pow-failed .kf-fallback {
  display: block;
}

/* Honeypot */
.kf-hp {
  position: absolute;
  left: -9999px;
}

.kf-note {
  font-size: 0.88rem;
  color: var(--slate);
}

.kf-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.kf-success {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
}

.kf-success h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 30px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.foot-brand img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.foot-brand p {
  font-size: 0.92rem;
  max-width: 280px;
}

.site-footer h2 {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 11px;
}

.site-footer ul a {
  font-size: 0.94rem;
  transition: 0.15s;
}

.site-footer ul a:hover,
.site-footer ul a[aria-current="page"] {
  color: var(--teal);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.86rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Nach oben ---------- */
.totop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(18px) scale(0.9);
  pointer-events: none;
  visibility: hidden;
  transition: 0.28s ease;
  z-index: 190;
}

.totop.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
}

.totop:hover {
  background: var(--teal);
  transform: translateY(-3px);
}

/* ---------- Einblenden beim Scrollen (nur mit JavaScript) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none;
  }

  .btn-primary::after {
    display: none;
  }

  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive (bewusst am Ende) ---------- */
@media (max-width: 1024px) {
  section {
    padding: 70px 0;
  }

  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }

  .tgrid > .tcard {
    flex-basis: 100%;
  }

  /* Karten untereinander: Zitate ungekürzt, „Ganzes Zitat lesen“ entfällt */
  .tcard blockquote {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: none;
    overflow: visible;
  }

  .news-item {
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 20px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Ohne JavaScript bleibt die Navigation als Zeile sichtbar */
  .nav {
    height: auto;
    min-height: 74px;
    flex-wrap: wrap;
  }

  .js .nav {
    height: 74px;
    flex-wrap: nowrap;
  }

  .js .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 18px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .js .nav-links.open {
    display: flex;
  }

  .js .burger {
    display: flex;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
    padding: 8px 0;
  }

  .cta {
    padding: 48px 26px;
  }
}

@media (max-width: 680px) {
  .nav-right .btn-primary {
    display: none;
  }

  .team-member {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0;
  }

  .team-photo {
    width: 96px;
    height: 96px;
  }

  .news-item {
    grid-template-columns: 1fr;
    padding: 28px 0;
  }

  .news-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  /* mobil ohne festes Format: Rahmen so hoch wie das Bild */
  .news-image > a,
  .news-image > .news-thumb {
    aspect-ratio: auto;
  }

  .news-image img {
    height: auto;
  }
}

@media (max-width: 520px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .kf-grid {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }
}
