/* ==========================================================================
   Öffentliche Website
   ========================================================================== */

body.site { background: #fff; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- Kopfzeile */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  transition: height 0.3s var(--ease);
}
.site-header .logo { color: #fff; }
.site-header .logo span em { color: var(--mint); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.site-nav a.is-active { color: #fff; }
.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn-login { color: #fff; font-weight: 600; font-size: 0.95rem; padding: 9px 12px; border-radius: 8px; text-decoration: none; }
.header-actions .btn-login:hover { background: rgba(255, 255, 255, 0.1); }

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(11, 31, 51, 0.25);
}
.site-header.is-scrolled .container { height: 64px; }
.site-header.is-scrolled .logo { color: var(--ink); }
.site-header.is-scrolled .logo span em { color: var(--brand); }
.site-header.is-scrolled .site-nav a { color: var(--muted); }
.site-header.is-scrolled .site-nav a:hover { color: var(--ink); background: var(--grey-bg); }
.site-header.is-scrolled .site-nav a.is-active { color: var(--ink); }
.site-header.is-scrolled .site-nav a.is-active::after { background: var(--brand); }
.site-header.is-scrolled .btn-login { color: var(--ink); }
.site-header.is-scrolled .btn-login:hover { background: var(--grey-bg); }
.site-header.is-scrolled .nav-toggle { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle .icon { width: 26px; height: 26px; display: block; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .site-nav, .header-actions { display: none; }
  .site-header.is-open { background: var(--ink); box-shadow: var(--shadow-lg); }
  .site-header.is-open .logo { color: #fff; }
  .site-header.is-open .logo span em { color: var(--mint); }
  .site-header.is-open .nav-toggle { color: #fff; }
  .site-header.is-open .container { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 20px; }
  .site-header.is-open .site-nav,
  .site-header.is-open .header-actions { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 4px; }
  .site-header.is-open .site-nav { order: 3; margin-top: 10px; }
  .site-header.is-open .header-actions { order: 4; margin-top: 10px; gap: 10px; }
  .site-header.is-open .site-nav a { color: rgba(255, 255, 255, 0.86); padding: 13px 12px; font-size: 1.02rem; }
  .site-header.is-open .site-nav a.is-active::after { display: none; }
  .site-header.is-open .btn-login { color: #fff; text-align: center; border: 1px solid rgba(255, 255, 255, 0.22); padding: 12px; }
}

/* ---------------------------------------------------------------- Hero */

.hero {
  position: relative;
  overflow: hidden;
  color: #dbe6f1;
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(14, 124, 102, 0.42), transparent 62%),
    radial-gradient(700px 480px at 4% 96%, rgba(29, 78, 216, 0.22), transparent 60%),
    linear-gradient(180deg, #081828 0%, #0b1f33 55%, #0d263e 100%);
  padding: 150px 0 96px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(94, 234, 212, 0.1);
  color: var(--mint);
  border: 1px solid rgba(94, 234, 212, 0.25);
  margin-bottom: 22px;
}
.eyebrow .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #5eead4 0%, #86efac 55%, #fde68a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { font-size: 1.16rem; line-height: 1.65; color: #b9c8d9; max-width: 560px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; font-size: 0.92rem; color: #a9bace; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--mint); width: 18px; height: 18px; }

/* Dashboard-Vorschau im Hero */
.hero-visual { position: relative; perspective: 1400px; }
.mock {
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  color: var(--text);
  transform: rotateY(-7deg) rotateX(3deg);
  transform-origin: left center;
  animation: mock-in 1.1s var(--ease) both 0.15s;
}
@keyframes mock-in {
  from { opacity: 0; transform: rotateY(-16deg) rotateX(8deg) translateY(36px); }
  to { opacity: 1; transform: rotateY(-7deg) rotateX(3deg) translateY(0); }
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: #f1f4f8;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--faint);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5dce6; }
.mock-bar span { margin-left: 10px; }
.mock-body { padding: 20px; }
.mock-top { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-bottom: 18px; }
.ring { position: relative; width: 104px; height: 104px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .ring-bg { stroke: var(--grey-bg); }
.ring .ring-fg {
  stroke: var(--green);
  stroke-linecap: round;
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  animation: ring 1.8s var(--ease) forwards 0.7s;
}
@keyframes ring { to { stroke-dashoffset: 38; } }
.ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { background: var(--bg); border-radius: 12px; padding: 12px; }
.mock-kpi b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); line-height: 1.1; }
.mock-kpi span { display: flex; align-items: center; gap: 6px; font-size: 0.74rem; color: var(--muted); margin-top: 4px; }
.mock-kpi .light { width: 8px; height: 8px; box-shadow: none; }

.mock-list { list-style: none; margin: 0; padding: 0; }
.mock-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: row-in 0.6s var(--ease) forwards;
}
.mock-list li:nth-child(1) { animation-delay: 0.9s; }
.mock-list li:nth-child(2) { animation-delay: 1.05s; }
.mock-list li:nth-child(3) { animation-delay: 1.2s; }
.mock-list li:nth-child(4) { animation-delay: 1.35s; }
@keyframes row-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.avatar {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-700);
  background: var(--brand-50);
}
.mock-list .who { flex: 1; min-width: 0; line-height: 1.3; }
.mock-list .who b { display: block; font-size: 0.88rem; color: var(--ink); font-weight: 600; }
.mock-list .who small { font-size: 0.76rem; color: var(--muted); }
.mock-list .badge { font-size: 0.72rem; }

/* Statuswechsel gelb → grün als Endlosschleife */
.swap { position: relative; display: inline-grid; }
.swap > * { grid-area: 1 / 1; justify-self: end; }
.swap .badge-yellow { animation: swap-a 7s infinite; }
.swap .badge-green { animation: swap-b 7s infinite; }
@keyframes swap-a { 0%, 42% { opacity: 1; transform: none; } 50%, 92% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
@keyframes swap-b { 0%, 42% { opacity: 0; transform: translateY(6px); } 50%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(6px); } }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 14px;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.5);
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.3;
  opacity: 0;
  animation: float-in 0.8s var(--ease) forwards, bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 0.86rem; }
.float-card small { color: var(--muted); }
.float-card .fc-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-a { top: -22px; right: -14px; animation-delay: 1.5s, 1.5s; }
.float-a .fc-icon { background: var(--yellow-bg); color: var(--yellow-text); }
.float-b { bottom: -24px; left: -26px; animation-delay: 1.8s, 2.4s; }
.float-b .fc-icon { background: var(--green-bg); color: var(--green-text); }
@keyframes float-in { from { opacity: 0; scale: 0.9; } to { opacity: 1; scale: 1; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }

@media (max-width: 1020px) {
  .hero { padding: 124px 0 80px; }
  .hero .container { grid-template-columns: 1fr; gap: 64px; }
  .mock { transform: none; animation-name: mock-in-flat; }
  @keyframes mock-in-flat { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
  .float-a { right: 6px; }
  .float-b { left: 6px; }
}
@media (max-width: 520px) {
  .mock-top { grid-template-columns: 1fr; justify-items: center; }
  .mock-kpis { width: 100%; }
  .float-card { display: none; }
}

/* ---------------------------------------------------------------- Laufband Branchen */

.strip { background: #0d263e; border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 20px 0; overflow: hidden; }
.strip-inner { display: flex; align-items: center; gap: 28px; }
.strip-label { flex: none; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: #7f93a8; font-weight: 600; }
.marquee { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; color: #b9c8d9; font-weight: 500; font-size: 0.96rem; white-space: nowrap; }
.marquee-track .icon { color: var(--mint); opacity: 0.8; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 700px) { .strip-label { display: none; } }

/* ---------------------------------------------------------------- Abschnitte */

.section { padding: 104px 0; }
.section-alt { background: var(--bg); }
.section-dark {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(14, 124, 102, 0.35), transparent 60%),
    linear-gradient(180deg, #0b1f33, #0d263e);
  color: #c4d2e1;
}
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.section-dark .kicker { color: var(--mint); }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -0.03em; margin-bottom: 16px; }
.section-head p { font-size: 1.1rem; color: var(--muted); margin: 0; }
.section-dark .section-head p { color: #a9bace; }

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
}

/* Einblenden beim Scrollen */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal-scale.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Kennzahlen */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -52px; position: relative; z-index: 2; }
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.stat b { display: block; font-family: var(--font-display); font-size: 2.3rem; color: var(--ink); letter-spacing: -0.04em; line-height: 1; }
.stat b small { font-size: 1.1rem; font-weight: 700; color: var(--brand); margin-left: 4px; letter-spacing: 0; }
.stat > span { display: block; margin-top: 10px; color: var(--muted); font-size: 0.93rem; line-height: 1.45; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; margin-top: -32px; } }

/* ---------------------------------------------------------------- Funktionskarten */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  overflow: hidden;
}
.feature::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--mint));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature:hover::after { transform: scaleX(1); }
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand);
  margin-bottom: 20px;
  transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature:hover .feature-icon { background: var(--brand); color: #fff; transform: scale(1.06) rotate(-4deg); }
.feature h3 { font-size: 1.18rem; margin-bottom: 10px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------------------------------------------------------------- Ablauf in Schritten */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-100) 0 10px, transparent 10px 18px);
}
.step { position: relative; text-align: center; padding: 0 6px; }
.step-num {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(140deg, var(--brand), #14a085);
  box-shadow: 0 0 0 8px #fff, 0 10px 24px -8px var(--brand-glow);
}
.section-alt .step-num { box-shadow: 0 0 0 8px var(--bg), 0 10px 24px -8px var(--brand-glow); }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .steps::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Zweispaltige Abschnitte */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); letter-spacing: -0.03em; margin-bottom: 18px; }
.split .lead { font-size: 1.08rem; color: var(--muted); margin-bottom: 26px; }
.section-dark .split .lead { color: #a9bace; }
@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse > :first-child { order: 0; }
}

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; }
.ticks .tick {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand);
  margin-top: 1px;
}
.ticks .tick .icon { width: 15px; height: 15px; stroke-width: 3; }
.section-dark .ticks .tick { background: rgba(94, 234, 212, 0.14); color: var(--mint); }
.ticks b { display: block; color: var(--ink); font-weight: 650; }
.section-dark .ticks b { color: #fff; }
.ticks span { color: var(--muted); font-size: 0.96rem; }
.section-dark .ticks span { color: #a9bace; }

/* Test-Vorschau */
.quiz-demo {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 26px;
  color: var(--text);
  max-width: 460px;
  margin: 0 auto;
  border: 1px solid var(--line);
}
.quiz-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.quiz-head small { color: var(--muted); font-weight: 600; font-size: 0.82rem; }
.timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.timer-pill .icon { width: 16px; height: 16px; color: var(--mint); }
.quiz-progress { height: 6px; background: var(--grey-bg); border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.quiz-progress i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--brand), var(--mint)); border-radius: inherit; }
.quiz-demo h4 { font-size: 1.08rem; margin-bottom: 16px; line-height: 1.4; }
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 0.93rem;
  transition: border-color 0.3s, background-color 0.3s;
}
.quiz-opt i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: all 0.3s; }
.quiz-opt.is-picked { border-color: var(--brand); background: var(--brand-50); }
.quiz-opt.is-picked i { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px #fff; }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.quiz-dots { display: flex; gap: 6px; }
.quiz-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.quiz-dots i.on { background: var(--brand); }

/* ---------------------------------------------------------------- Ampel-Erklärung */

.lights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.light-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform 0.3s var(--ease), background-color 0.3s, border-color 0.3s;
}
.light-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.08); }
.light-card .bulb { width: 46px; height: 46px; border-radius: 50%; margin-bottom: 22px; position: relative; }
.light-card .bulb::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; opacity: 0.25; background: inherit; filter: blur(12px); animation: glow 3.2s ease-in-out infinite; }
.light-card:nth-child(2) .bulb::after { animation-delay: 1s; }
.light-card:nth-child(3) .bulb::after { animation-delay: 2s; }
@keyframes glow { 0%, 100% { opacity: 0.2; transform: scale(0.9); } 50% { opacity: 0.6; transform: scale(1.15); } }
.bulb-green { background: #4ade80; }
.bulb-yellow { background: #fbbf24; }
.bulb-red { background: #f87171; }
.light-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.light-card p { margin: 0; color: #a9bace; font-size: 0.97rem; }
@media (max-width: 820px) { .lights { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Katalog */

.course {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.course-cover { margin: -26px -26px 20px; aspect-ratio: 1 / 1; overflow: hidden; background: #eef2f6; border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0; border-bottom: 1px solid var(--line); }
.course-cover img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s var(--ease); }
.course:hover .course-cover img { transform: scale(1.035); }
.course-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.course-cover + .course-top { margin-bottom: 12px; }
.course-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--ink); color: var(--mint); }
.course-icon .icon { width: 22px; height: 22px; }
.course h3 { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.3; }
.course p { color: var(--muted); font-size: 0.94rem; margin: 0 0 20px; flex: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.83rem; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); }
.course-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-meta .icon { width: 15px; height: 15px; color: var(--brand); }
.course.is-hidden { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------------------------------------------------------- Preise */

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 34px 30px 30px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.is-featured {
  background: linear-gradient(170deg, #0d263e, #0b1f33);
  border-color: transparent;
  color: #c4d2e1;
  box-shadow: 0 30px 60px -24px rgba(11, 31, 51, 0.55);
}
.plan.is-featured h3, .plan.is-featured .price b { color: #fff; }
.plan-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #14a085);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan .tagline { font-size: 0.93rem; color: var(--muted); margin-bottom: 24px; min-height: 2.8em; }
.plan.is-featured .tagline { color: #9db0c5; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price b { font-family: var(--font-display); font-size: 3rem; letter-spacing: -0.05em; color: var(--ink); line-height: 1; }
.price span { color: var(--muted); font-size: 0.95rem; }
.plan.is-featured .price span { color: #9db0c5; }
.price-note { font-size: 0.82rem; color: var(--faint); margin-bottom: 24px; }
.plan-seats {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 650;
  font-size: 0.95rem;
  margin-bottom: 22px;
}
.plan.is-featured .plan-seats { background: rgba(94, 234, 212, 0.12); color: var(--mint); }
.plan ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 11px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; }
.plan li .icon { color: var(--brand); width: 18px; height: 18px; margin-top: 3px; stroke-width: 2.6; }
.plan.is-featured li .icon { color: var(--mint); }
@media (max-width: 940px) { .pricing { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

.addon {
  margin-top: 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.addon-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--yellow-bg); color: var(--yellow-text); }
.addon h3 { font-size: 1.1rem; margin-bottom: 4px; }
.addon p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.addon .addon-price { text-align: right; white-space: nowrap; }
.addon .addon-price b { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); letter-spacing: -0.03em; }
.addon .addon-price span { display: block; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 720px) {
  .addon { grid-template-columns: 1fr; text-align: left; }
  .addon .addon-price { text-align: left; }
}

/* Preisrechner */
.calc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.calc h3 { font-size: 1.3rem; }
.calc-count { font-family: var(--font-display); font-size: 3.4rem; letter-spacing: -0.05em; color: var(--ink); line-height: 1; }
.calc-count small { font-size: 1rem; color: var(--muted); letter-spacing: 0; font-weight: 500; margin-left: 8px; }
.range {
  width: 100%;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) var(--fill, 20%), var(--grey-bg) var(--fill, 20%));
  margin: 22px 0 8px;
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}
.range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: var(--shadow); }
.range-scale { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--faint); }
.calc-result { background: var(--bg); border-radius: var(--radius-lg); padding: 26px; }
.calc-result .label-sm { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.calc-result .plan-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--ink); margin: 4px 0 2px; }
.calc-result .plan-price { font-size: 1.05rem; color: var(--text); margin-bottom: 14px; }
.calc-result .plan-price b { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: -0.03em; color: var(--ink); }
.calc-lines { list-style: none; margin: 0 0 18px; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 0.92rem; color: var(--muted); }
.calc-lines li { display: flex; justify-content: space-between; gap: 12px; }
.calc-lines b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.calc-tip { font-size: 0.88rem; padding: 10px 12px; border-radius: 10px; background: var(--yellow-bg); color: #7a4504; margin-bottom: 16px; }
.calc-tip[hidden] { display: none; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; padding: 26px; gap: 28px; } }

/* ---------------------------------------------------------------- FAQ */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--brand); transition: transform 0.3s var(--ease); width: 22px; height: 22px; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--muted); }
.faq .faq-body p:last-child { margin-bottom: 0; }
.faq details[open] .faq-body { animation: faq-in 0.35s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Abschluss-CTA */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(94, 234, 212, 0.25), transparent 60%),
    linear-gradient(120deg, #0b1f33, #0e4a47 120%);
  color: #c4d2e1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.03em; margin-bottom: 10px; }
.cta-band p { margin: 0; font-size: 1.06rem; max-width: 560px; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 44px 30px; } }

/* ---------------------------------------------------------------- Unterseiten-Kopf */

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(14, 124, 102, 0.4), transparent 62%),
    linear-gradient(180deg, #081828, #0b1f33);
  color: #b9c8d9;
  padding: 150px 0 76px;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.035em; font-weight: 800; margin-bottom: 14px; }
.page-hero p { font-size: 1.12rem; max-width: 640px; margin: 0 auto; }
.page-hero.small { padding: 124px 0 52px; }

/* ---------------------------------------------------------------- Rechtstexte */

.legal { padding: 64px 0 96px; }
.legal .prose { font-size: 1rem; }
.legal .prose h2 { font-size: 1.3rem; }
.legal-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 32px; }

/* ---------------------------------------------------------------- Kontakt */

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 34px; box-shadow: var(--shadow); }
.contact-info { display: grid; gap: 22px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .ci-icon { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.contact-item b { display: block; color: var(--ink); }
.contact-item span, .contact-item a { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------------------------------------------------------------- Fußzeile */

.site-footer { background: #081828; color: #8fa3b8; padding: 72px 0 32px; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 52px; }
.footer-grid p { margin: 16px 0 0; max-width: 300px; line-height: 1.6; }
.footer-grid h4 { color: #fff; font-family: var(--font); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: #a9bace; text-decoration: none; transition: color 0.2s; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.86rem; }
.footer-bottom span { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
