/* ===================================================================
   M&C Akademie — moderne One-Page-Website im 3D-/Hochglanz-Stil
   =================================================================== */

:root {
  --navy: #131b3a;
  --navy-2: #1c2752;
  --red: #d61f2c;
  --red-light: #ff4757;
  --red-dark: #7a0f1a;
  --bg: #f6f7fb;
  --white: #ffffff;
  --ink-soft: #4b5170;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-soft: 0 20px 60px -20px rgba(19, 27, 58, 0.35);
  --shadow-lift: 0 30px 80px -25px rgba(19, 27, 58, 0.45);
  --radius: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Sora', 'Inter', sans-serif;
  line-height: 1.1;
  margin: 0 0 .5em;
}

p { line-height: 1.75; color: var(--ink-soft); }

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

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 10000;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  padding: 12px 20px;
  border-radius: 10px;
  transition: top .25s var(--ease);
}
.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--red-light);
  outline-offset: 3px;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--red-light), var(--red));
  z-index: 9999;
  transition: width .1s linear;
  box-shadow: 0 0 12px rgba(214,31,44,.6);
}

.cursor-glow {
  position: fixed;
  width: 380px; height: 380px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(214,31,44,.08), transparent 70%);
  transform: translate(-50%, -50%);
  left: var(--cx, 50vw);
  top: var(--cy, 50vh);
  transition: opacity .3s;
  opacity: 0;
}
body.cursor-active .cursor-glow { opacity: 1; }

/* ---------- Kopfbereich ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}

.header-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(246, 247, 251, 0);
  backdrop-filter: blur(0px);
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease), box-shadow .35s var(--ease);
  z-index: -1;
}

.site-header.scrolled {
  height: 140px;
}
.site-header.scrolled .brand-mark-wrap {
  width: 220px;
}
.site-header.scrolled::before {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 30px -12px rgba(19,27,58,.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 12px;
  width: 400px;
  transition: width .35s var(--ease);
  animation: logoFloat 6s ease-in-out infinite;
}
.brand-mark {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.06); }

.brand-mark-wrap::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 35%;
  height: 220%;
  background: linear-gradient(75deg, transparent 0%, rgba(255,255,255,.75) 50%, transparent 100%);
  transform: rotate(20deg);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: logoShine 5.5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-1.4deg); }
}

@keyframes logoShine {
  0% { left: -60%; opacity: 0; }
  6% { opacity: 1; }
  26% { left: 140%; opacity: 0; }
  100% { left: 140%; opacity: 0; }
}

.brand-mark-wrap.large { width: 190px; margin-bottom: 18px; }

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

.nav-links a[data-nav] {
  position: relative;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
  padding: 6px 0;
}
.nav-links a[data-nav]::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  transition: width .3s var(--ease);
  border-radius: 2px;
}
.nav-links a[data-nav]:hover::after,
.nav-links a[data-nav].active::after { width: 100%; }
.nav-links a[data-nav].active { color: var(--red); }

.nav-cta {
  background: linear-gradient(135deg, var(--red-light), var(--red));
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 10px 24px -8px rgba(214,31,44,.55);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(214,31,44,.65);
}

.menu-btn {
  position: relative;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(19,27,58,.25);
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(6px);
  border-radius: 100px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--navy);
  cursor: pointer;
  transition: box-shadow .3s, transform .3s, background .3s, color .3s;
}
.menu-btn[aria-expanded="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.menu-btn:hover { box-shadow: 0 8px 20px -6px rgba(19,27,58,.3); transform: translateY(-1px); }

/* ---------- Hero-Bereich ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 32px 100px;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 15% 10%, #eef0fb 0%, transparent 60%),
    radial-gradient(900px 700px at 90% 80%, #fdeeee 0%, transparent 55%),
    var(--bg);
}

.hero-grid {
  position: absolute;
  inset: -10% -10%;
  background-image:
    linear-gradient(rgba(19,27,58,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19,27,58,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(700px) rotateX(58deg) translateY(0);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 70%);
  z-index: 0;
}

.hero-orbs { position: absolute; inset: 0; z-index: 0; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .55;
  transform: translate3d(calc(var(--px, 0) * 10px * var(--depth)), calc(var(--py, 0) * 10px * var(--depth)), 0);
  transition: transform .2s linear;
  animation: float 9s ease-in-out infinite;
}
.orb-1 { width: 320px; height: 320px; left: -6%; top: -10%; background: radial-gradient(circle at 30% 30%, #ffb1b8, #d61f2c 70%); animation-delay: 0s; opacity: .38; filter: blur(6px); }
.orb-2 { width: 200px; height: 200px; right: 10%; top: 8%; background: radial-gradient(circle at 30% 30%, #cfd6ff, #4d5aa8 75%); animation-delay: 1.2s; }
.orb-3 { width: 260px; height: 260px; right: -4%; bottom: 6%; background: radial-gradient(circle at 30% 30%, #ff8b95, #7a0f1a 75%); animation-delay: 2.4s; }
.orb-4 { width: 150px; height: 150px; left: 30%; bottom: -4%; background: radial-gradient(circle at 30% 30%, #fff, #b7bdea 75%); animation-delay: .6s; }

@keyframes float {
  0%, 100% { margin-top: 0px; }
  50% { margin-top: -26px; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(214,31,44,.08);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 800;
  color: var(--navy);
  text-shadow: 0 1px 0 #fff, 0 12px 30px rgba(19,27,58,.12);
}
.hero-title .accent {
  position: relative;
  background: linear-gradient(120deg, var(--red) 10%, var(--red-light) 45%, var(--red-dark) 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
  filter: drop-shadow(0 2px 0 rgba(255,255,255,.9)) drop-shadow(0 10px 24px rgba(19,27,58,.18));
}
@keyframes shine {
  to { background-position: 200% center; }
}

.hero-sub {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy-2);
  margin-bottom: 18px;
}

.hero-lead { font-size: 1.05rem; max-width: 520px; margin-bottom: 34px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(1px) scale(.98); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red-light), var(--red) 60%, var(--red-dark));
  box-shadow: 0 16px 34px -12px rgba(214,31,44,.6), inset 0 1px 0 rgba(255,255,255,.35);
  animation: ctaPulse 3.2s ease-in-out infinite;
}
.btn-primary:hover {
  animation-play-state: paused;
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -12px rgba(214,31,44,.7), inset 0 1px 0 rgba(255,255,255,.4);
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 16px 34px -12px rgba(214,31,44,.6), inset 0 1px 0 rgba(255,255,255,.35); }
  50% { box-shadow: 0 20px 46px -10px rgba(214,31,44,.9), inset 0 1px 0 rgba(255,255,255,.5); }
}

.btn-ghost {
  color: var(--navy);
  background: rgba(255,255,255,.7);
  border: 1.5px solid rgba(19,27,58,.15);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

.btn-block { width: 100%; }

/* Schwebende 3D-Karte im Hero-Bereich */
.hero-card-3d {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%) perspective(1200px) rotateY(calc(-14deg + var(--px, 0) * 6deg)) rotateX(calc(6deg + var(--py, 0) * -4deg));
  z-index: 2;
  width: 320px;
  animation: cardFloat 7s ease-in-out infinite;
  perspective: 1200px;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(calc(-50% + var(--py, 0) * -6px)) perspective(1200px) rotateY(calc(-14deg + var(--px, 0) * 6deg)) rotateX(calc(6deg + var(--py, 0) * -4deg)); }
  50% { transform: translateY(calc(-50% - 16px + var(--py, 0) * -6px)) perspective(1200px) rotateY(calc(-10deg + var(--px, 0) * 6deg)) rotateX(calc(3deg + var(--py, 0) * -4deg)); }
}

.hero-card-inner {
  position: relative;
  background: linear-gradient(155deg, rgba(255,255,255,.85), rgba(255,255,255,.5));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 34px 30px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255,255,255,.6);
  overflow: hidden;
}
.hero-card-inner::after {
  content: "";
  position: absolute;
  top: -80%;
  left: -70%;
  width: 40%;
  height: 260%;
  background: linear-gradient(75deg, transparent 0%, rgba(255,255,255,.8) 50%, transparent 100%);
  transform: rotate(20deg);
  pointer-events: none;
  animation: logoShine 7s ease-in-out infinite 1.5s;
}
.hero-card-glow {
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(214,31,44,.4), transparent 70%);
  top: -70px; right: -70px;
  border-radius: 50%;
  filter: blur(10px);
}
.hero-card-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--red-light), var(--red));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px -6px rgba(214,31,44,.6);
}
.hero-card-inner h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--navy);
}
.hero-card-inner ul { margin: 0; padding: 0; list-style: none; }
.hero-card-inner li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy-2);
  border-top: 1px solid rgba(19,27,58,.08);
}
.hero-card-inner li:first-child { border-top: none; }
.hero-card-inner li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-light), var(--red));
  box-shadow: 0 0 8px rgba(214,31,44,.6);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(19,27,58,.3);
  border-radius: 100px;
  z-index: 2;
}
.scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 8px; opacity: 1; }
  70% { opacity: 1; }
  100% { top: 24px; opacity: 0; }
}

/* ---------- Trenner ---------- */
.divider { line-height: 0; margin-top: -2px; position: relative; z-index: 1; }
.divider svg { width: 100%; height: 70px; display: block; fill: var(--white); }
.divider-flip svg { fill: var(--bg); }

/* ---------- Allgemeine Sektionsstile ---------- */
.section { padding: 100px 0; position: relative; }
.info-section { background: var(--white); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--navy); }
.section-head p { font-size: 1.02rem; }
.section-head.light .kicker { color: #ffd7d9; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: rgba(255,255,255,.85); }

/* ---------- Info-Sektion ---------- */
.info-columns {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: center;
}
.info-text p { margin-bottom: 20px; }
.lead-out { color: var(--navy) !important; }
.lead-out strong { color: var(--red); }

.info-visual { position: relative; }
.info-visual-inner {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  transform: perspective(1000px) rotateX(var(--rx, 4deg)) rotateY(var(--ry, -5deg));
  transition: transform .2s ease-out;
  overflow: hidden;
  aspect-ratio: 16/10.5;
}
.info-visual-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.16) 50%, transparent 58%);
  pointer-events: none;
  z-index: 1;
}
.info-visual-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.info-visual:hover .info-visual-inner img { transform: scale(1.04); }
.info-visual-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(19,27,58,.05) 30%, rgba(19,27,58,.55) 100%);
  pointer-events: none;
}
.info-visual-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(255,255,255,.22), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  z-index: 1;
}
.info-visual:hover .info-visual-inner::before { opacity: 1; }

.stat-chip {
  position: absolute;
  background: rgba(255,255,255,.95);
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  min-width: 108px;
}
.stat-chip strong { display: block; font-family: 'Sora', sans-serif; font-size: 1.5rem; color: var(--red); font-weight: 800; white-space: nowrap; }
.stat-chip strong small { display: block; font-size: .44em; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1px; }
.stat-chip span { font-size: .74rem; color: var(--ink-soft); font-weight: 600; }
.stat-chip-a { left: -24px; bottom: -22px; }
.stat-chip-b { right: -18px; top: -22px; }

.stats-row {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--red-light), var(--red-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: .84rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }

/* ---------- Programme-Sektion ---------- */
.programme-section {
  position: relative;
  overflow: hidden;
  color: #fff;
}
.programme-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(255,255,255,.12), transparent 55%),
    radial-gradient(700px 500px at 100% 100%, rgba(0,0,0,.25), transparent 60%),
    linear-gradient(150deg, #e2202d 0%, #9c141f 55%, #4a0910 120%);
  background-size: 100% 100%, 100% 100%, 240% 240%;
  animation: programmeGradientPan 16s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes programmeGradientPan {
  0% { background-position: 0% 0%, 0% 0%, 0% 30%; }
  100% { background-position: 0% 0%, 0% 0%, 100% 70%; }
}
.programme-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .5;
}
.programme-section .container { position: relative; z-index: 1; }

.programme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.prog-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  padding: 34px 32px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .2s ease-out, box-shadow .3s ease-out;
  box-shadow: 0 20px 44px -20px rgba(0,0,0,.4);
}
/* .reveal setzt auf demselben Element ebenfalls `transform` für die Einblend-Animation;
   diese beiden Regeln mit höherer Spezifität fassen die 3D-Neigung in dieselbe
   Eigenschaft zusammen, damit keine der beiden Deklarationen die andere stillschweigend überschreibt. */
.prog-card.reveal { transform: perspective(1000px) rotateX(var(--rx, 3deg)) rotateY(var(--ry, -3deg)) translateY(36px); }
.prog-card.reveal.in-view { transform: perspective(1000px) rotateX(var(--rx, 3deg)) rotateY(var(--ry, -3deg)) translateY(0); }
.prog-card:hover { box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.prog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 45%, rgba(255,255,255,.14) 52%, transparent 60%);
  pointer-events: none;
}
.prog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.prog-card:hover::before { opacity: 1; }

.prog-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.55));
  color: var(--red);
  margin-bottom: 20px;
  box-shadow: 0 12px 24px -10px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.7);
}
.prog-icon svg { width: 28px; height: 28px; }

.prog-card h3 { font-size: 1.28rem; color: #fff; margin-bottom: 4px; }
.prog-sub { font-weight: 700; font-size: .85rem; color: #ffd7d9; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.prog-card p { color: rgba(255,255,255,.85); font-size: .95rem; }
.prog-list { list-style: none; padding: 0; margin: 0 0 14px; }
.prog-list li {
  padding-left: 22px;
  position: relative;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  font-size: .92rem;
}
.prog-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
}

/* ---------- Kontakt ---------- */
.kontakt-section { background: var(--white); }
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
.kontakt-intro h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); }
.kontakt-intro p { margin-bottom: 16px; }
.kontakt-cta-line { font-weight: 700; color: var(--navy-2) !important; }
.mail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--red);
  border-bottom: 2px solid rgba(214,31,44,.3);
  padding-bottom: 2px;
  transition: border-color .3s;
}
.mail-link:hover { border-color: var(--red); }

.kontakt-form {
  background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(246,247,251,.9));
  border: 1px solid rgba(19,27,58,.08);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lift);
}

.field { position: relative; margin-bottom: 22px; }
.field input, .field textarea {
  width: 100%;
  padding: 18px 16px 8px;
  border-radius: 12px;
  border: 1.5px solid rgba(19,27,58,.15);
  background: #fff;
  font-family: inherit;
  font-size: .96rem;
  color: var(--navy);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(214,31,44,.12);
}
.field label {
  position: absolute;
  left: 17px; top: 17px;
  font-size: .96rem;
  color: #8a90ac;
  pointer-events: none;
  transition: all .2s var(--ease);
  background: transparent;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: 6px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.form-note {
  margin: 14px 0 0;
  font-size: .88rem;
  font-weight: 600;
  min-height: 1.2em;
  color: var(--red);
  text-align: center;
}
.form-note.success { color: #1e8a52; }

/* ---------- Fußbereich ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 70px 0 34px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  width: 600px; height: 260px;
  background: radial-gradient(circle, rgba(214,31,44,.35), transparent 70%);
  transform: translateX(-50%);
  filter: blur(20px);
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}
.footer-address p { margin: 0 0 6px; color: rgba(255,255,255,.75); }
.footer-address strong { color: #fff; font-family: 'Sora', sans-serif; }
.footer-address a:hover { color: var(--red-light); }

.footer-social { display: flex; gap: 12px; justify-content: center; }
.social-btn {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s;
}
.social-btn svg { width: 18px; height: 18px; position: relative; z-index: 1; }
.social-btn:hover {
  transform: translateY(-4px) scale(1.08);
  background: linear-gradient(135deg, var(--red-light), var(--red));
  box-shadow: 0 10px 22px -8px rgba(214,31,44,.7);
}
/* Lauflicht: die Icons leuchten nacheinander von links nach rechts auf */
.social-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-light), var(--red));
  box-shadow: 0 10px 22px -8px rgba(214,31,44,.7);
  opacity: 0;
  pointer-events: none;
  animation: socialLauflicht 3s ease-in-out infinite;
}
.footer-social .social-btn:nth-child(1)::after { animation-delay: 0s; }
.footer-social .social-btn:nth-child(2)::after { animation-delay: .6s; }
.footer-social .social-btn:nth-child(3)::after { animation-delay: 1.2s; }
.footer-social .social-btn:nth-child(4)::after { animation-delay: 1.8s; }
.footer-social .social-btn:nth-child(5)::after { animation-delay: 2.4s; }
@keyframes socialLauflicht {
  0%, 4%, 24%, 100% { opacity: 0; }
  10%, 18% { opacity: 1; }
}

.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.footer-meta p { margin: 0; font-size: .85rem; }
.to-top {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--red-light), var(--red));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(214,31,44,.6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Einblenden beim Scrollen ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsives Layout ---------- */
@media (max-width: 980px) {
  .info-columns, .kontakt-grid { grid-template-columns: 1fr; }
  .hero-card-3d { position: static; transform: none; margin-top: 56px; width: 100%; max-width: 420px; animation: none; }
  .hero { flex-direction: column; align-items: flex-start; padding-top: calc(var(--header-h) + 30px); }
  .hero-content { width: 100%; max-width: 100%; }
  .hero-lead { max-width: 100%; }
  .hero-actions { flex-wrap: wrap; }
  .programme-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-social { order: -1; }
  .footer-meta { align-items: center; }
  .stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
}

@media (max-width: 760px) {
  :root { --header-h: 92px; }
  .brand-mark-wrap { width: 150px; }
  .site-header.scrolled { height: 68px; }
  .site-header.scrolled .brand-mark-wrap { width: 110px; }
  .nav-links {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: linear-gradient(160deg, var(--navy), var(--navy-2));
    transform: translateY(-100%);
    opacity: 0;
    transition: transform .45s var(--ease), opacity .45s var(--ease);
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links a { color: #fff !important; font-size: 1.3rem; }
  .nav-links a[data-nav]::after { display: none; }
  .nav-cta { align-self: center; }
  .menu-btn { display: inline-flex; }
  .hero-title { font-size: clamp(2.3rem, 10vw, 3.2rem); }
}

@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .kontakt-form { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
