:root {
  --page: #fafbfc;
  --ink: #111418;
  --muted: #65717c;
  --blue: #365f86;
  --blue-deep: #2d506f;
  --blue-soft: #eaf0f5;
  --hairline: #d8dee4;
  --white: #ffffff;
  --shell: 1180px;
  --text: 760px;
  --side: 56px;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-170%);
}
.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(100% - (2 * var(--side)), var(--shell));
  margin-inline: auto;
}
.narrow {
  max-width: var(--text);
  margin-inline: auto;
}

/* Gemeinsame gestalterische Familie mit jmuellenbach.de und kompetenzbeweis.de:
   klare Systemschrift, ruhige Flächen, große Abstände, sparsame Akzentfarbe. */
.site-header {
  background: var(--blue-deep);
  color: var(--page);
  padding: 26px 0 23px;
}
.header-inner,
.footer-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 34px;
}
.brand-wrap {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.brand {
  font-size: 17px;
  font-weight: 760;
  letter-spacing: .075em;
  text-decoration: none;
}
.brand-sub {
  font-size: 14px;
  opacity: .82;
}
.main-nav,
.site-footer nav {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
  font-size: 15px;
}
.main-nav a,
.site-footer a {
  text-decoration: none;
}

.hero {
  padding-top: 112px;
  padding-bottom: 126px;
}
.hero-kicker,
.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(50px, 7vw, 88px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 650;
}
.hero-subline {
  max-width: 920px;
  margin: 42px 0 0;
  color: var(--blue-deep);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.23;
  letter-spacing: -.022em;
}
.hero-copy {
  max-width: 760px;
  margin-top: 40px;
}
.hero-copy p {
  margin: 0 0 17px;
}
.hero-links {
  margin-top: 38px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.text-link {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.section {
  padding: 106px 0;
  border-top: 1px solid var(--hairline);
}
.section-soft {
  background: var(--blue-soft);
}
.section-dark {
  background: var(--blue-deep);
  color: var(--page);
  border-top: 0;
}
.section-dark .eyebrow {
  color: var(--page);
  opacity: .76;
}
.section-dark .text-link {
  color: var(--page);
}

.section h2,
.page-title {
  margin: 0;
  max-width: 940px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.07;
  letter-spacing: -.028em;
  font-weight: 650;
}
.section-copy {
  max-width: var(--text);
  margin-top: 40px;
}
.section-copy p {
  margin: 21px 0 0;
}
.lead {
  font-size: 22px;
  line-height: 1.45;
}
.statement {
  max-width: 900px;
  margin: 52px 0 0;
  color: var(--blue-deep);
  font-size: clamp(25px, 2.8vw, 34px);
  line-height: 1.3;
  letter-spacing: -.018em;
  font-weight: 640;
}
.section-dark .statement {
  color: var(--page);
}

.program-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.program-card {
  min-height: 220px;
  padding: 31px 32px 34px;
  border: 1px solid var(--hairline);
  background: var(--page);
}
.card-kicker {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.program-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.program-card p:last-child {
  margin: 18px 0 0;
}

.contact-mail {
  margin-top: 30px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -.02em;
}

.page-main {
  padding: 90px 0 120px;
}
.page-lead {
  max-width: 830px;
  margin: 38px 0 0;
  font-size: 23px;
  line-height: 1.45;
}
.prose {
  max-width: var(--text);
  margin-top: 60px;
}
.prose h2 {
  margin: 58px 0 0;
  font-size: 28px;
  line-height: 1.2;
}
.prose p,
.prose address {
  margin: 22px 0 0;
}
.prose address {
  font-style: normal;
}
.legal-note,
.legal-status {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  background: #e8edf2;
  padding: 30px 0 36px;
  color: var(--muted);
  border-top: 1px solid #d7dee5;
}
.footer-inner {
  font-size: 14px;
}
.footer-inner p {
  margin: 0;
}

@media (max-width: 900px) {
  :root { --side: 34px; }
  .program-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --side: 22px; }
  body { font-size: 17px; }
  .site-header { padding: 20px 0 18px; }
  .header-inner { display: block; }
  .brand-wrap { display: block; }
  .brand-sub { display: block; margin-top: 2px; }
  .main-nav {
    margin-top: 13px;
    gap: 7px;
    flex-wrap: wrap;
    white-space: normal;
  }
  .hero {
    padding-top: 76px;
    padding-bottom: 88px;
  }
  .hero-subline { margin-top: 34px; }
  .hero-copy { margin-top: 32px; }
  .section { padding: 76px 0; }
  .section-copy { margin-top: 34px; }
  .statement { margin-top: 42px; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
