/* =========================================================
   Intomedia – Redesign (eigenständiges, editoriales System)
   Marke erhalten: Logo, Blau #009ddf, Grau. Aber klar neue
   Formsprache: typo-getriebener Hero, editoriale Service-Zeilen,
   versetzte Blau-Blöcke, tiefes Petrol als Anker.
   Type: Jost (Display) · Manrope (Body) · Sorts Mill Goudy (Zitate)
   ========================================================= */

:root {
  --white:   #ffffff;
  --paper:   #eef3f6;      /* kühles Hellgrau-Blau für Wechselsektionen */
  --text:    #4a4a4a;
  --heading: #23272b;
  --muted:   #7c7c7c;
  --line:    rgba(16, 36, 48, 0.12);
  --line-2:  rgba(16, 36, 48, 0.20);

  --blue:      #009ddf;
  --blue-deep: #0086c0;
  --blue-ink:  #0e2f42;
  --blue-tint: rgba(0, 157, 223, 0.10);

  --dark:     #0e2430;      /* tiefes Petrol – Markenanker */
  --dark-2:   #123040;
  --on-dark:  #e8eef2;
  --on-dark-mut: #93a6b1;
  --dark-line: rgba(255, 255, 255, 0.14);

  --font-display: "Jost", system-ui, sans-serif;
  --font-body:    "Manrope", system-ui, sans-serif;
  --font-serif:   "Sorts Mill Goudy", Georgia, serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 220ms;
  --z-header: 100;
  --z-overlay: 200;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.06rem); line-height: 1.65;
  color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.015em; color: var(--heading); text-wrap: balance; }
p { margin: 0; }
dl, dd { margin: 0; }
ul { margin: 0; padding: 0; }

::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--dark); color: #fff; padding: 0.7rem 1.1rem; border-radius: var(--radius); z-index: var(--z-overlay); transition: top var(--dur) var(--ease-out); }
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Blau-Marker hinter Schlüsselwort */
.mark { background: linear-gradient(180deg, transparent 62%, rgba(0,157,223,0.28) 62%); padding: 0 0.06em; }
.txt-blue { color: var(--blue); }

.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--blue); margin: 0 0 1.1rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); }

.section-title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); font-weight: 600; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }

/* ---------- Buttons ---------- */
.btn { --bg: var(--blue); --fg: #fff; --bd: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 500; font-size: 0.98rem; letter-spacing: 0.03em;
  line-height: 1; white-space: nowrap; padding: 0.95rem 1.6rem; border-radius: 999px;
  border: 1.5px solid var(--bd); background: var(--bg); color: var(--fg); cursor: pointer;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(0,157,223,0.7); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.btn-primary:hover { --bg: var(--blue-deep); --bd: var(--blue-deep); }
.btn-ghost { --bg: transparent; --fg: var(--heading); --bd: var(--line-2); }
.btn-ghost:hover { --bg: var(--heading); --fg: #fff; --bd: var(--heading); box-shadow: none; }
.btn-light { --bg: #fff; --fg: var(--blue-ink); --bd: #fff; }
.btn-light:hover { --bg: transparent; --fg: #fff; box-shadow: none; }
.btn-outline { --bg: transparent; --fg: var(--heading); --bd: var(--heading); }
.btn-outline:hover { --bg: var(--heading); --fg: #fff; box-shadow: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-display); font-weight: 600; color: var(--blue); transition: gap var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.link-arrow span { transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover { color: var(--blue-deep); } .link-arrow:hover span { transform: translateX(4px); }

/* ---------- versetzter Blau-Block hinter Bild ---------- */
.figure-block { position: relative; }
.figure-block > img { position: relative; z-index: 1; border-radius: var(--radius); width: 100%; object-fit: cover; }
.figure-block::before { content: ""; position: absolute; z-index: 0; inset: auto -18px -18px auto; width: 62%; height: 70%; background: var(--blue); border-radius: var(--radius); }
.figure-block.flip::before { inset: auto auto -18px -18px; }

/* ================= HEADER ================= */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line); transition: box-shadow var(--dur) var(--ease-out); }
.site-header.is-scrolled { box-shadow: 0 8px 30px -22px rgba(0,0,0,0.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; transition: height var(--dur) var(--ease-out); }
.site-header.is-scrolled .header-inner { height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 40px; width: auto; transition: height var(--dur) var(--ease-out); }
.site-header.is-scrolled .brand-logo { height: 34px; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); }
.main-nav > a { font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--heading); position: relative; padding: 0.3rem 0; transition: color var(--dur) var(--ease-out); }
.main-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1.5px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); }
.main-nav > a:not(.nav-cta):hover { color: var(--blue); }
.main-nav > a:not(.nav-cta):hover::after, .main-nav > a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav > a[aria-current="page"] { color: var(--blue); }
.nav-cta { padding: 0.66rem 1.3rem; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--heading); border-radius: 2px; transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= HERO (typo-getrieben) ================= */
.hero { padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-title { font-size: clamp(2.6rem, 1.3rem + 5vw, 5rem); font-weight: 600; margin: 0 0 1.4rem; letter-spacing: -0.02em; }
.hero-lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); color: var(--muted); max-width: 32rem; line-height: 1.55; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-media { position: relative; }
.hero-media > .figure-block > img { aspect-ratio: 4 / 5; }
.hero-badge { position: absolute; left: -20px; bottom: 30px; z-index: 2; display: flex; align-items: center; gap: 0.7rem; background: var(--dark); color: #fff; padding: 0.95rem 1.25rem; border-radius: var(--radius); box-shadow: 0 22px 46px -22px rgba(0,0,0,0.6); }
.hero-badge-num { font-family: var(--font-display); font-weight: 700; font-size: 2.3rem; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.hero-badge-label { font-family: var(--font-display); font-weight: 500; font-size: 0.82rem; line-height: 1.15; color: var(--on-dark); }

/* ================= SERVICE-ZEILEN (editorial) ================= */
.svc-rows { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.svc-row:nth-child(even) .svc-figure { order: 2; }
.svc-figure > .figure-block > img { aspect-ratio: 5 / 4; }
.svc-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--blue); text-stroke: 1.5px var(--blue); margin-bottom: 1rem; }
.svc-kicker { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; color: var(--blue); margin-bottom: 0.7rem; }
.svc-q { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 600; margin-bottom: 1rem; max-width: 22ch; }
.svc-text { color: var(--text); max-width: 46ch; margin-bottom: 1.4rem; }

/* ================= STATS ================= */
.trust { background: var(--dark); color: var(--on-dark); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.trust-inner { max-width: 62rem; }
.trust .eyebrow { color: var(--blue); }
.trust-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); color: #fff; margin-bottom: 1.4rem; }
.trust-text { font-size: clamp(1.1rem, 1rem + 0.55vw, 1.4rem); line-height: 1.6; color: var(--on-dark); max-width: 58ch; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); border-top: 1px solid var(--dark-line); padding-top: clamp(1.75rem, 4vw, 2.75rem); }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.2rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-num::after { content: attr(data-suffix); color: var(--blue); }
.stat-label { margin-top: 0.6rem; color: var(--on-dark-mut); font-size: 0.95rem; }

/* ================= PRAXIS + VIDEO ================= */
.praxis { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.praxis-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.praxis-copy { max-width: 34rem; }
.praxis-text { font-size: 1.13rem; margin: 1.3rem 0; }
.praxis-note { color: var(--muted); }
.video-consent { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--dark); box-shadow: 0 40px 80px -46px rgba(0,0,0,0.5); }
.video-poster { width: 100%; height: 100%; object-fit: cover; }
.video-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; width: 100%; height: 100%; background: rgba(14,36,48,0.4); border: none; cursor: pointer; color: #fff; transition: background-color var(--dur) var(--ease-out); }
.video-play:hover { background: rgba(14,36,48,0.55); }
.video-play-icon { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.45rem; padding-left: 5px; transition: transform var(--dur) var(--ease-out); box-shadow: 0 18px 40px -16px rgba(0,157,223,0.9); }
.video-play:hover .video-play-icon { transform: scale(1.08); }
.video-play-text { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; }
.video-hint { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.78); font-size: 0.78rem; pointer-events: none; }

/* ================= ZITATE ================= */
.quotes { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--paper); }
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.quote { margin: 0; position: relative; padding-top: 2.4rem; }
.quote::before { content: "\201C"; position: absolute; top: -1.2rem; left: -0.3rem; font-family: var(--font-serif); font-size: 5.5rem; line-height: 1; color: var(--blue); }
.quote-text { font-family: var(--font-serif); font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem); line-height: 1.45; color: var(--heading); margin: 0 0 1.5rem; max-width: 38ch; }
.quote-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--heading); }
.quote-role { color: var(--muted); font-size: 0.94rem; }

/* ================= MAGAZIN / KARTEN ================= */
.magazine { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.magazine-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: end; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.magazine-intro { color: var(--muted); max-width: 44ch; font-size: 1.05rem; }
.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.25rem); }
.mag-card { height: 100%; }
.mag-link { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.mag-link:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(0,0,0,0.35); }
.mag-thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.mag-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.mag-link:hover .mag-thumb img { transform: scale(1.06); }
.mag-body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.3rem 1.5rem; }
.mag-meta { display: flex; align-items: center; gap: 0.7rem; font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.7rem; }
.mag-cat { color: var(--blue); font-weight: 600; }
.mag-meta time { font-variant-numeric: tabular-nums; }
.mag-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.7rem; line-height: 1.18; }
.mag-excerpt { color: var(--text); font-size: 0.94rem; line-height: 1.6; margin-bottom: 1.2rem; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.mag-body .link-arrow { margin-top: auto; align-self: flex-start; font-size: 0.94rem; }
.magazine-more { margin-top: clamp(2.25rem, 5vw, 3.25rem); text-align: center; }

/* ================= PAGE-HERO (Unterseiten) ================= */
.page-hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: end; }
.page-title { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); font-weight: 600; letter-spacing: -0.02em; }
.page-lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--text); max-width: 52ch; margin-top: 1.2rem; }
.breadcrumb { display: flex; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); margin-bottom: 1.2rem; font-family: var(--font-display); }
.breadcrumb a:hover { color: var(--blue); } .breadcrumb span { color: var(--line-2); }

/* ================= TRAINING-KARTEN (Listen) ================= */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section.alt { background: var(--paper); }
.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.tcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.7rem; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.tcard:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -32px rgba(0,0,0,0.35); }
.tcard h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.tcard .tsub { font-family: var(--font-display); font-weight: 500; color: var(--blue); font-size: 0.98rem; margin-bottom: 0.9rem; }
.tcard p { color: var(--text); font-size: 0.96rem; line-height: 1.6; margin-bottom: 1.1rem; }
.tmeta { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0.3rem; font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.9rem; }
.tmeta b { color: var(--heading); font-weight: 600; }
.tcard .link-arrow { margin-top: auto; align-self: flex-start; }

/* Intro-Block (zweispaltig) */
.intro-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.intro-2 .lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); color: var(--text); }

/* Prose (Impressum/Datenschutz) */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 0.6rem; }
.prose h3 { font-size: 1.15rem; margin: 1.4rem 0 0.4rem; }
.prose p, .prose ul { margin-bottom: 1rem; color: var(--text); }
.prose ul { padding-left: 1.2rem; list-style: disc; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ================= KONTAKT ================= */
.contact { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-panel { background: var(--dark); color: var(--on-dark); border-radius: var(--radius); padding: clamp(2rem, 4vw, 3rem); }
.contact-panel .eyebrow { color: var(--blue); }
.contact-title { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.75rem); color: #fff; margin-bottom: 1.6rem; }
.contact-org { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: #fff; margin-bottom: 0.4rem; }
.contact-addr { color: var(--on-dark-mut); margin-bottom: 1.4rem; }
.contact-lines { list-style: none; display: grid; gap: 0.6rem; }
.contact-lines li { display: flex; align-items: baseline; gap: 0.9rem; font-size: 1.02rem; }
.contact-lines a:hover { color: var(--blue); }
.contact-tag { display: inline-grid; place-items: center; width: 1.3rem; color: var(--blue); font-weight: 700; font-family: var(--font-display); }

/* Formular */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-display); font-weight: 500; font-size: 0.92rem; color: var(--heading); }
.field label .req { color: var(--blue); }
.field input, .field textarea { font-family: var(--font-body); font-size: 1rem; color: var(--heading); padding: 0.8rem 0.9rem; border: 1.5px solid var(--line-2); border-radius: var(--radius); background: var(--white); transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.field textarea { resize: vertical; min-height: 130px; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; color: var(--text); }
.check input { margin-top: 0.2rem; accent-color: var(--blue); }
.form-error { color: #c0392b; font-size: 0.85rem; }
.form-note { color: var(--muted); font-size: 0.85rem; }
.form-success { background: var(--blue-tint); border: 1px solid var(--blue); color: var(--blue-ink); padding: 1rem 1.2rem; border-radius: var(--radius); font-weight: 500; }

/* ================= FOOTER ================= */
.site-footer { background: var(--dark); color: var(--on-dark-mut); padding: clamp(2.75rem, 5vw, 3.75rem) 0 2.25rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.footer-logo { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-tag { margin-top: 0.9rem; color: var(--on-dark-mut); max-width: 26ch; }
.footer-nav { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav a { color: var(--on-dark); font-family: var(--font-display); font-weight: 500; font-size: 0.92rem; transition: color var(--dur) var(--ease-out); }
.footer-nav a:hover { color: var(--blue); }
.footer-legal { text-align: right; font-size: 0.9rem; line-height: 1.9; }
.footer-legal-links { display: flex; gap: 1.2rem; justify-content: flex-end; margin-top: 0.4rem; }
.footer-legal-links a:hover { color: var(--blue); }

/* ================= REVEAL ================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .hero-grid, .praxis-grid, .contact-grid, .intro-2, .page-hero-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .svc-row:nth-child(even) .svc-figure { order: 0; }
  .hero-media, .svc-figure { max-width: 34rem; }
  .magazine-head { grid-template-columns: 1fr; align-items: start; }
  .mag-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; text-align: left; }
  .footer-legal-links { justify-content: flex-start; }
  .page-hero-grid .page-lead { max-width: none; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav { position: fixed; inset: 82px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); padding: 0.5rem var(--gutter) 1.75rem; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(0,0,0,0.4); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out); }
  .main-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav > a { padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .main-nav > a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 1rem; justify-content: center; }
  .quote-grid, .mag-grid, .form-row, .stats { grid-template-columns: 1fr; }
  .stats { gap: 1.5rem; } .stat { display: flex; align-items: baseline; gap: 1rem; } .stat-label { margin-top: 0; }
  .figure-block::before { display: none; }
  .hero-badge { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ================= SPRACHUMSCHALTER ================= */
.lang-switch { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; padding-left: 0.4rem; }
.lang-switch a { color: var(--muted); padding: 0.2rem 0.15rem; transition: color var(--dur) var(--ease-out); }
.lang-switch a:hover { color: var(--blue); }
.lang-switch a[aria-current="true"] { color: var(--heading); border-bottom: 2px solid var(--blue); }
.lang-switch .sep { color: var(--line-2); font-weight: 400; }

/* ================= REFERENZEN-WALL (Firmen) ================= */
.refwall { padding: clamp(3rem, 6vw, 5rem) 0; }
.ref-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ref-chips li { list-style: none; }
.ref-chips span { display: inline-block; font-family: var(--font-display); font-weight: 500; font-size: 0.92rem; color: var(--heading); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1rem; transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out); }
.ref-chips li:hover span { border-color: var(--blue); color: var(--blue); background: var(--blue-tint); }
.ref-columns { columns: 3 220px; column-gap: 2.5rem; }
.ref-columns li { list-style: none; break-inside: avoid; padding: 0.42rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--text); }
.ref-columns li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin-right: 0.7rem; vertical-align: middle; }

/* ================= TEAM ================= */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.team-card { display: flex; align-items: center; gap: 0.9rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.team-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -30px rgba(0,0,0,0.4); border-color: var(--blue); }
.team-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-ink); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.02em; }
.team-name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--heading); line-height: 1.2; }
.team-role { font-size: 0.82rem; color: var(--muted); }

/* Footer: erweiterte Navi in zwei Spalten */
.footer-nav.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1.4rem; }
@media (max-width: 720px) {
  .lang-switch { padding: 0.9rem 0 0; }
  .ref-columns { columns: 1; }
}

/* ================= MEGA-DROPDOWN NAVIGATION ================= */
.nav-top { display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--heading); padding: 0.3rem 0; position: relative; transition: color var(--dur) var(--ease-out); }
.nav-top:hover, .nav-top.cur { color: var(--blue); }
.nav-top .caret { font-size: 0.7em; transition: transform var(--dur) var(--ease-out); }
.has-mega { display: inline-flex; align-items: center; }
.has-mega:hover .caret, .has-mega:focus-within .caret { transform: rotate(180deg); }
.mega { position: absolute; top: 100%; right: var(--gutter); background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 30px 60px -28px rgba(0,0,0,0.4); padding: 1.6rem; display: grid; grid-template-columns: repeat(5, minmax(148px, 1fr)); gap: 1.4rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur); z-index: 120; }
.mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.mega-sm { grid-template-columns: 1fr; min-width: 250px; padding: 1.1rem 1.3rem; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-col .mega-head { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--heading); margin-bottom: 0.7rem; padding-bottom: 0.45rem; border-bottom: 2px solid var(--blue); }
.mega-col ul { list-style: none; display: grid; gap: 0.15rem; }
.mega-col li a { display: block; font-size: 0.9rem; color: var(--text); padding: 0.25rem 0; transition: color var(--dur) var(--ease-out); }
.mega-col li a:hover { color: var(--blue); }
.mega-cta { background: var(--paper); border-radius: 8px; padding: 1.1rem; }
.mega-cta p { font-size: 0.85rem; color: var(--muted); margin: 0.4rem 0 1rem; }
.mega-cta .btn { width: 100%; }

.video-hint { z-index: 2; }
.video-hint a { color: #fff; text-decoration: underline; text-underline-offset: 2px; pointer-events: auto; }

/* ================= DETAIL- / BIO- / ARTIKEL-LAYOUT ================= */
.detail { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.detail-aside { position: sticky; top: 100px; display: grid; gap: 1.25rem; }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.aside-card h3 { font-size: 1.1rem; margin-bottom: 0.8rem; }
.aside-card .tmeta { border-top: none; padding-top: 0; margin-bottom: 1.1rem; }
.aside-card .btn { width: 100%; }
.prose h2 { font-size: 1.4rem; margin: 1.8rem 0 0.6rem; }
.prose > p:first-of-type { font-size: 1.15rem; color: var(--heading); }
.bio-head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.5rem; }
.bio-avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-ink); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; }

/* Übersicht / Sitemap */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.sitemap-col h2 { font-size: 1.15rem; margin-bottom: 0.8rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--blue); }
.sitemap-col ul { list-style: none; display: grid; gap: 0.35rem; }
.sitemap-col li a { color: var(--text); font-size: 0.95rem; transition: color var(--dur) var(--ease-out); }
.sitemap-col li a:hover { color: var(--blue); }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
}
@media (max-width: 720px) {
  .mega { position: static; opacity: 1; visibility: visible; transform: none; display: block; box-shadow: none; border: none; padding: 0.2rem 0 0.6rem 0.6rem; }
  .mega-sm { min-width: 0; }
  .mega-col { margin-bottom: 0.6rem; }
  .mega-cta { display: none; }
  .nav-top .caret { display: none; }
  .has-mega { display: block; }
  .mega-col .mega-head { border: none; padding-bottom: 0.2rem; margin-bottom: 0.2rem; color: var(--blue); }
}

/* ================= FIX: Dropdown direkt unter dem Menüpunkt ================= */
.has-mega { position: relative; }
.mega { right: 0; left: auto; }
.mega-sm { left: 0; right: auto; }
@media (max-width: 720px) { .mega, .mega-sm { left: 0; right: auto; } }

/* ================= REFERENZEN-MARQUEE ("Rad") ================= */
.refmarquee { padding: clamp(2.5rem, 5vw, 4rem) 0; overflow: hidden; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: clamp(2.5rem, 5vw, 4.5rem); width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 46px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.62; transition: filter var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out); }
.marquee img:hover { filter: none; opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* ================= TEAM MIT FOTOS ================= */
.team-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.team-card { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.team-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-info { padding: 0.9rem 1.05rem 1.1rem; }
.team-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--heading); line-height: 1.2; }
.team-role { display: block; margin-top: 0.2rem; font-size: 0.85rem; color: var(--muted); line-height: 1.3; }

/* ================= BIO-PORTRAIT ================= */
.bio-layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.bio-portrait { border-radius: var(--radius); overflow: hidden; position: sticky; top: 100px; box-shadow: 0 30px 60px -34px rgba(0,0,0,0.4); }
.bio-portrait img { width: 100%; display: block; }
.bio-role { color: var(--blue); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 1.2rem; }
@media (max-width: 800px) { .bio-layout { grid-template-columns: 1fr; } .bio-portrait { position: static; max-width: 280px; } }

/* Trainings-Mega kompakter, damit sie nicht links überläuft */
.mega:not(.mega-sm) { grid-template-columns: repeat(5, minmax(118px, 1fr)); gap: 1rem; padding: 1.25rem; max-width: calc(100vw - 2 * var(--gutter)); }
.mega:not(.mega-sm) .mega-col li a { font-size: 0.85rem; padding: 0.2rem 0; }
.mega-cta p { font-size: 0.8rem; }

/* ================= FIX: kein horizontaler Überlauf (Mobil-Footer) ================= */
html, body { overflow-x: hidden; }
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav.two { grid-template-columns: 1fr 1fr; }
  .footer-legal { text-align: left; }
  .footer-legal-links { justify-content: flex-start; flex-wrap: wrap; }
}
