:root {
  --ink: #0b2b3a;
  --muted: #3d5e68;
  --brand: #007f96;
  --brand-dark: #006477;
  --orange: #c65d00;
  --bg: #f2f9fc;
  --card: #ffffff;
  --soft: #eaf7fb;
  --soft-orange: #fff4e8;
  --line: #d7e8ee;
  --shadow: 0 14px 34px rgba(9, 58, 77, .09);
  --radius: 20px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-dark); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
main { flex: 1; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid #ff7a00;
  outline-offset: 3px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.narrow { max-width: 840px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; flex: 0 0 auto; }
.brand img { width: 202px; height: 56px; object-fit: contain; }
.desktop-menu { display: flex; align-items: center; gap: 4px; }
.desktop-menu a,
.mobile-menu a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
  border-radius: 12px;
}
.desktop-menu a:hover,
.mobile-menu a:hover,
.desktop-menu a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::before { content: "☰"; color: var(--brand); }
.mobile-nav[open] summary::before { content: "×"; }
.mobile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(290px, calc(100vw - 40px));
  display: grid;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

main:focus { outline: none; }
section { scroll-margin-top: 96px; }
.section { padding: 58px 0; }
.section--soft { background: rgba(255, 255, 255, .48); border-block: 1px solid var(--line); }
.section-heading { margin-bottom: 24px; }
.section-heading h2,
.section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.section-heading p,
.section-intro { max-width: 760px; margin: 0; color: var(--muted); font-size: 1.05rem; }

.hero { padding: 44px 0 54px; }
.hero-shell {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr);
  grid-template-areas: "copy status" "image image";
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.hero-copy { grid-area: copy; padding: 44px 42px 36px; }
.eyebrow {
  width: fit-content;
  margin: 0 0 16px;
  padding: 6px 12px;
  color: var(--brand-dark);
  background: var(--soft);
  border: 1px solid #cfe9ef;
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 800;
}
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.hero-tagline {
  margin: 16px 0 8px;
  color: var(--brand-dark);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  font-weight: 850;
}
.hero-lead { max-width: 680px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.status-card {
  grid-area: status;
  align-self: center;
  margin: 30px 30px 30px 0;
  padding: 22px;
  background: #f8fcfd;
  border: 1px solid var(--line);
  border-left: 6px solid var(--brand);
  border-radius: 18px;
}
.status-badge {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 5px 10px;
  color: #005f70;
  background: #e8f7fa;
  border: 1px solid #b9e0e7;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.status-card h2 { margin: 0; font-size: 1.48rem; }
.status-card p { margin: 0; color: var(--muted); }
.status-card .status-vormerkung { margin-top: 3px; color: var(--brand-dark); font-weight: 750; }
.status-vormerkung a { color: inherit; }
.status-opportunity {
  margin-top: 17px;
  padding: 14px 15px;
  background: #fff4e8;
  border: 1px solid #f1c18f;
  border-left: 5px solid var(--orange);
  border-radius: 13px;
}
.status-opportunity-kicker {
  display: block;
  margin-bottom: 3px;
  color: #8a4509;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.status-opportunity strong {
  display: block;
  color: #623008;
  font-size: 1.12rem;
  line-height: 1.28;
}
.status-opportunity p { margin-top: 7px; color: #5e5147; font-size: .95rem; }
.status-date { display: block; margin-top: 10px; font-size: .96rem; }
.hero-image { grid-area: image; width: 100%; height: 285px; object-fit: cover; }

.special-course-card {
  margin-top: 22px;
  overflow: hidden;
  padding: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f1fbfd 100%);
  border: 1px solid #bddfe7;
  border-left: 7px solid var(--orange);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.special-course-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 28px;
  align-items: start;
}
.special-course-copy h2 { margin: 0 0 4px; }
.special-course-copy > p:last-child { max-width: 700px; margin: 12px 0 0; color: var(--muted); }
.special-course-badge {
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 12px;
  color: #fff;
  background: #984700;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 850;
  letter-spacing: .01em;
}
.special-course-lead {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1.08rem;
  font-weight: 850;
}
.special-course-action {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.special-course-action p { margin: 0 0 14px; color: var(--muted); }
.special-course-action .btn { width: 100%; }
.special-course-note { display: block; margin-top: 9px; color: var(--muted); font-size: .9rem; text-align: center; }
.special-course-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}
.special-course-facts div {
  min-width: 0;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.special-course-facts dt { color: var(--muted); font-size: .88rem; font-weight: 750; }
.special-course-facts dd { margin: 2px 0 0; color: var(--ink); font-size: 1rem; font-weight: 850; }
.special-course-location { margin: 14px 0 0; color: var(--muted); }

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  color: #fff;
  background: var(--brand-dark);
  border: 2px solid var(--brand-dark);
  border-radius: 12px;
  box-shadow: 0 9px 20px rgba(0, 100, 119, .16);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #004f5e; border-color: #004f5e; }
.btn-secondary { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: none; }
.btn-secondary:hover { color: var(--ink); background: var(--soft); border-color: #bddbe3; }
.btn-small { min-height: 42px; padding: 8px 14px; }

.availability {
  margin: 0 0 20px;
  padding: 14px 16px;
  color: #71400e;
  background: var(--soft-orange);
  border: 1px solid #f0d2b4;
  border-radius: 14px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.card {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(8, 57, 74, .055);
}
.course { display: flex; flex-direction: column; }
.course h3 { margin: 0 0 5px; font-size: 1.28rem; line-height: 1.3; }
.meta { margin: 0 0 8px; color: var(--muted); }
.price { margin: 0 0 12px; color: var(--brand-dark); font-size: 1.9rem; font-weight: 900; }
.note { margin: 0; color: var(--muted); font-size: .98rem; }
.note + .note { margin-top: 11px; }
.course-fit { margin-top: auto; padding-top: 14px; }
.lesson-bar {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.callout { margin-top: 16px; background: var(--soft); box-shadow: none; }
.callout h3 { margin: 0 0 6px; font-size: 1.08rem; }
.center { display: flex; justify-content: center; margin-top: 22px; }

.checks { margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; margin: 11px 0; padding-left: 27px; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }
.parent-card h3 { margin: 0 0 8px; font-size: 1.3rem; }
.mini-title { margin: 18px 0 4px; font-weight: 850; }
.location-card { margin-top: 20px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.location-card h3 { margin: 0 0 4px; font-size: 1.2rem; }

.about { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: center; }
.avatar {
  width: 140px;
  height: 140px;
  object-fit: cover;
  object-position: center center;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow);
  justify-self: start;
}
.about h3 { margin: 0 0 4px; font-size: 1.35rem; }

.faq-list { display: grid; gap: 10px; }
.faq-item { padding: 0; overflow: clip; }
.faq-item summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-size: 1.45rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 18px 18px; color: var(--muted); }
.faq-answer p { margin: 0; }

.steps { counter-reset: steps; }
.step { position: relative; }
.step::before {
  counter-increment: steps;
  content: counter(steps);
  position: static;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 50%;
  font-weight: 900;
  line-height: 1;
}
.step h3 { margin: 0 0 5px; font-size: 1.16rem; }

.form-shell { margin-top: 22px; }
.form-intro { margin: 0 0 20px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid > *, .field { min-width: 0; min-inline-size: 0; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, fieldset legend { font-weight: 800; }
.required { color: #9d4400; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  min-inline-size: 0;
  max-width: 100%;
  max-inline-size: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #9fbec8;
  border-radius: 10px;
}
textarea { min-height: 118px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--brand-dark); }
.hint { margin: 0; color: var(--muted); font-size: .94rem; }
.check-field { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.check-field input { width: 22px; min-height: 22px; margin-top: 2px; }
.form-actions { margin-top: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.form-actions .hint { max-width: 620px; }
.form-submit-status {
  flex: 1 1 100%;
  margin: 0;
  padding: 11px 13px;
  border-radius: 10px;
  font-weight: 750;
}
.form-submit-status[data-state="sending"] { color: var(--brand-dark); background: var(--soft); }
.form-submit-status[data-state="error"] { color: #7a2d00; background: var(--soft-orange); }
.form-submit-status[data-state="success"] { color: #155b3b; background: #eaf7f0; }
.form-actions button:disabled { cursor: wait; opacity: .7; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-grid h3 { margin: 0 0 8px; font-size: 1.25rem; }
.contact-grid address { font-style: normal; }

.legal-hero { padding: 44px 0 20px; }
.legal-hero h1 { margin: 0 0 8px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; }
.legal-hero p { margin: 0; color: var(--muted); }
.legal-content { padding: 20px 0 64px; }
.legal-block { margin-bottom: 14px; }
.legal-block h2 { margin: 0 0 8px; font-size: 1.25rem; }
.legal-block p { margin: 8px 0; }
.legal-block ul { margin: 8px 0; }
.legal-notice { border-left: 5px solid var(--orange); background: var(--soft-orange); }

.thanks { min-height: 64vh; display: grid; place-items: center; padding: 56px 0; }
.thanks-card { max-width: 720px; text-align: center; }
.thanks-card h1 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3rem); }
.thanks-card .button-row { justify-content: center; }
.thanks-card form { max-width: 460px; margin-inline: auto; text-align: left; }
.thanks-card .form-actions { margin-top: 16px; text-align: center; }
.stats-page { min-height: 72vh; padding: 48px 0 72px; }
.stats-container { max-width: 1180px; }
.stats-login-card { max-width: 560px; margin: 0 auto; text-align: center; }
.stats-login-card h1 { margin: 0 0 10px; font-size: clamp(2rem, 6vw, 3rem); }
.stats-login-card form { max-width: 430px; margin-inline: auto; text-align: left; }
.stats-login-card .form-actions { justify-content: center; }
.stats-dashboard { display: grid; gap: 22px; }
.stats-dashboard[hidden], .stats-login-card[hidden] { display: none !important; }
.stats-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
}
.stats-toolbar h1 { margin: 2px 0 4px; font-size: clamp(1.8rem, 5vw, 2.65rem); }
.stats-toolbar p { margin: 0; }
.stats-toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.stats-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stats-metric {
  min-width: 0;
  padding: 17px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.stats-metric span { display: block; color: var(--muted); font-size: .9rem; font-weight: 780; }
.stats-metric strong { display: block; margin-top: 4px; color: var(--brand-dark); font-size: clamp(1.8rem, 5vw, 2.55rem); line-height: 1; }
.stats-metric small { display: block; margin-top: 6px; color: var(--muted); }
.stats-metric--total { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }
.stats-metric--total span, .stats-metric--total strong, .stats-metric--total small { color: #fff; }
.stats-history-note {
  margin: 0;
  padding: 14px 16px;
  color: #71400e;
  background: var(--soft-orange);
  border-left: 5px solid var(--orange);
  border-radius: 12px;
}
.stats-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.chart-card { min-width: 0; padding: 20px; }
.chart-card--wide { grid-column: 1 / -1; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.chart-head h2 { margin: 0 0 4px; font-size: 1.28rem; }
.chart-head p { margin: 0; color: var(--muted); font-size: .94rem; }
.chart-badge { flex: 0 0 auto; padding: 5px 9px; color: var(--brand-dark); background: var(--soft); border-radius: 999px; font-size: .82rem; font-weight: 850; }
.chart-scroll { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.stats-chart { display: block; width: 100%; min-width: 620px; height: auto; }
.chart-grid-line { stroke: #dcebef; stroke-width: 1; }
.chart-axis-label { fill: #57727b; font-size: 11px; font-weight: 650; }
.chart-area { fill: #dff3f8; }
.chart-line { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: #fff; stroke: var(--brand-dark); stroke-width: 2; }
.chart-bar { fill: var(--brand); rx: 5; }
.chart-bar:hover { fill: var(--brand-dark); }
.chart-table { margin-top: 12px; }
.chart-table summary { color: var(--brand-dark); font-weight: 800; cursor: pointer; }
.chart-table-scroll { margin-top: 10px; overflow-x: auto; }
.chart-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.chart-table th, .chart-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.chart-table th:last-child, .chart-table td:last-child { text-align: right; }
.stats-details-card h2 { margin: 0 0 14px; font-size: 1.28rem; }
.stats-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; text-align: left; }
.stats-details div { padding: 12px 14px; background: var(--soft); border-radius: 12px; }
.stats-details dt { color: var(--muted); font-size: .88rem; font-weight: 750; }
.stats-details dd { margin: 2px 0 0; font-weight: 800; }

.site-footer { padding: 28px 0; color: #dceff3; background: var(--ink); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #fff; }

@media (max-width: 900px) {
  .hero-shell { grid-template-columns: 1fr; grid-template-areas: "copy" "status" "image"; }
  .status-card { margin: 0 30px 30px; }
  .special-course-top { grid-template-columns: 1fr; gap: 18px; }
  .special-course-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 > :last-child { grid-column: 1 / -1; }
  .stats-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-charts { grid-template-columns: 1fr; }
  .chart-card--wide { grid-column: auto; }
}

@media (max-width: 760px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .header-inner { min-height: 70px; }
  .brand img { width: 159px; height: 44px; }
  .desktop-menu { display: none; }
  .mobile-nav { display: block; }
  .hero { padding: 22px 0 34px; }
  .hero-copy { padding: 30px 22px 24px; }
  .hero h1 { font-size: clamp(2.15rem, 11vw, 3.2rem); }
  .status-card { margin: 0 18px 20px; }
  .hero-image { height: 180px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .special-course-card { padding: 22px; }
  .section { padding: 44px 0; }
  .grid-3, .grid-2, .form-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 > :last-child, .field--full { grid-column: auto; }
  .location-card { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .avatar { justify-self: center; }
  .lesson-bar { display: grid; }
  .button-row .btn { flex: 1 1 auto; }
  .stats-page { padding: 34px 0 54px; }
  .stats-toolbar { align-items: flex-start; padding: 19px; }
  .stats-toolbar, .stats-toolbar-actions { flex-direction: column; }
  .stats-toolbar-actions { width: 100%; }
  .stats-toolbar-actions .btn { width: 100%; }
  .stats-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-details { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 2.05rem; }
  .hero-copy { padding-inline: 18px; }
  .status-card { margin-inline: 14px; }
  .special-course-card { padding: 18px; border-left-width: 5px; }
  .special-course-facts { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .button-row .btn, .form-actions .btn { width: 100%; }
  .stats-metric--total { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .skip-link, .button-row { display: none !important; }
  body { color: #000; background: #fff; }
  .card { border: 1px solid #bbb; box-shadow: none; }
  a { color: #000; text-decoration: none; }
}
