/* Schriften werden selbst gehostet (keine Verbindung zu Google-Servern, DSGVO). */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --ink: #071C3B;  /* Dunkelblau aus dem Logo */
  --navy: #1B2A4A;
  --sage: #4F8A75;
  --sage-dark: #3C6C5B; /* für Text und Buttons: ausreichender Kontrast */
  --sage-light: #E6EFEB;
  --cream: #FAF8F3;
  --white: #FFFFFF;
  --text: #2B3445;
  --border: #DDD8CC;
  --error: #9B2C2C;
  --radius: 14px;
  --font-head: "Nunito", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 8vw, 3.5rem); font-weight: 800; hyphens: manual; }
h2 { font-size: clamp(1.6rem, 5vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--sage-dark); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.small { font-size: .9rem; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--white); padding: .5rem 1rem; }

/* Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 248, 243, .96);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: .75rem; min-height: 72px; }
.brand { display: flex; margin-right: auto; }
.brand img { height: 44px; width: auto; }
.main-nav { display: none; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--sage-dark); }

/* Buttons */
.btn {
  display: inline-block;
  padding: .75rem 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--sage-dark); border-color: var(--sage-dark); color: var(--white); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-small { padding: .45rem 1rem; font-size: .95rem; }
.btn-large { padding: .95rem 1.8rem; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); }

/* Dachzeilen wie "HAMBURG" im Logo */
.eyebrow {
  color: var(--sage-dark);
  font-size: .8rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: .6rem;
}

/* Hero */
.hero { padding: 2.75rem 0 3rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.h1-ort {
  display: block; margin-top: .35em;
  font-size: .6em; font-weight: 300;
  letter-spacing: .32em; text-transform: uppercase;
}
.lead { font-size: clamp(1.15rem, 3.5vw, 1.4rem); max-width: 32ch; }
.hero-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.75rem; }

.house { width: 100%; max-width: 400px; margin: 0 auto; color: var(--ink); }
.house-roof {
  display: block; width: 100%; height: 130px; overflow: visible;
  fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
}
.house-body {
  position: relative;
  margin: -21px 7.5% 0;
  padding: 1.5rem 1.5rem 3.5rem;
  border: solid var(--ink);
  border-width: 0 4px 4px;
  border-radius: 0 0 10px 10px;
}
.facts { margin: 0; text-align: center; }
.facts div + div { margin-top: .85rem; }
.facts dt { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-dark); }
.facts dd { margin: 0; font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; line-height: 1.35; }
.house-sprout { position: absolute; bottom: -2px; left: calc(50% - 24px); width: 48px; height: 48px; color: var(--sage); }
.house-anchor { position: absolute; right: -28px; bottom: -14px; width: 52px; height: 52px; background: var(--cream); padding: 3px; }

.icon { display: block; width: 44px; height: 44px; margin-bottom: .85rem; color: var(--sage-dark); }

/* Abschnitte */
.section { padding: 3.25rem 0; scroll-margin-top: 72px; border-top: 1px solid var(--border); }
.section-alt { background: var(--sage-light); }
.section-navy { background: var(--navy); color: var(--cream); text-align: center; }
.section-navy h2 { color: var(--white); }
.section-navy .eyebrow { color: #A9CDBF; }
.section-navy .icon { margin: 0 auto 1rem; color: var(--cream); width: 52px; height: 52px; }
.section-intro { margin-bottom: 1.5rem; }

.grid { display: grid; gap: 1rem; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.card > :last-child { margin-bottom: 0; }

.checks { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.checks li { position: relative; padding-left: 1.6rem; margin-bottom: .35rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--sage-dark); font-weight: 700; }
.text-link { font-weight: 700; text-decoration: none; }

/* Module */
.modules { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: modul; }
.modules li {
  counter-increment: modul;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}
.modules li::before {
  content: counter(modul);
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; margin-bottom: .75rem;
  border-radius: 50%;
  border: 2px solid var(--ink); color: var(--ink);
  font-family: var(--font-head); font-weight: 800;
}
.module-day { display: block; font-size: .85rem; font-weight: 700; color: var(--sage-dark); }
.modules p { margin: 0; }

/* Zertifikat und Preis */
.certificate-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; }
.notice { border-top: 1px solid rgba(250, 248, 243, .3); padding-top: 1.25rem; margin: 0; }
.price-card { text-align: center; }
.price { font-size: 1.15rem; margin-bottom: .25rem; }
.price strong { display: block; font-family: var(--font-head); font-size: 3.25rem; color: var(--ink); line-height: 1.1; }
.price-card .btn { margin-top: .5rem; }

/* Formular */
.form { display: grid; gap: 1.15rem; }
.form p { margin: 0; }
.form .hp { position: absolute; left: -9999px; }
.field { display: grid; gap: .35rem; min-width: 0; align-content: start; }
.field-row { display: grid; gap: 1.15rem; }
fieldset.field { border: 0; padding: 0; margin: 0; }
label, legend { font-weight: 700; color: var(--ink); font-size: .98rem; }
legend { padding: 0; margin-bottom: .35rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea {
  width: 100%;
  padding: .75rem .85rem;
  border: 1px solid #A9A392;
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  font: inherit;
}
textarea { resize: vertical; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.choice {
  display: flex; align-items: center; gap: .55rem;
  padding: .75rem .85rem;
  border: 1px solid #A9A392; border-radius: 10px;
  font-weight: 500; cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--sage-dark); background: var(--sage-light); box-shadow: inset 0 0 0 1px var(--sage-dark); }
input[type="radio"] { accent-color: var(--sage-dark); width: 1.1rem; height: 1.1rem; margin: 0; flex: none; }
.summary { background: var(--cream); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; }
.total { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: var(--ink); margin: .5rem 0 .15rem !important; }
.form-error { color: var(--error); font-weight: 700; }
.success { border: 2px solid var(--sage); background: var(--white); font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.success p:last-child { margin: 0; }

/* Kurstermine */
.badge-frei {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: #13753F; color: var(--white);
  font-family: var(--font-head); font-size: .85rem; font-weight: 800; line-height: 1.4;
}
.badge-frei::before { content: ""; width: .55rem; height: .55rem; flex: none; border-radius: 50%; background: #8CFFB5; animation: puls 1.8s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .badge-frei::before { animation: none; } }

.hero-frei { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.5rem; color: var(--ink); font-weight: 700; text-decoration: none; }

.termin { display: flex; flex-direction: column; align-items: flex-start; border: 2px solid #13753F; }
.termin h3 { margin: 1rem 0 .75rem; font-size: 1.5rem; }
.tage { list-style: none; margin: 0 0 1.25rem; padding: 0; width: 100%; }
.tage li { display: flex; justify-content: space-between; gap: .75rem; padding: .45rem 0; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.tage span { color: var(--sage-dark); font-weight: 700; }
.termin .btn { margin-top: auto; }

.termin-wahl { display: grid; gap: .6rem; }
.choice-termin { flex-wrap: wrap; }
.choice-text { margin-right: auto; color: var(--ink); }

.termin.zu { border-color: var(--border); }
.zu .badge-frei { background: #6B7080; }
.zu .badge-frei::before { display: none; }
.choice.zu { opacity: .6; cursor: default; }

.consent { display: flex; align-items: flex-start; gap: .7rem; font-weight: 500; font-size: .92rem; }
.consent input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--ink); }

/* Fußzeile */
.site-footer { background: var(--ink); color: var(--cream); padding: 2.75rem 0 2rem; font-size: .95rem; }
.site-footer a:not(.btn) { color: var(--cream); }
.footer-logo { display: block; width: 200px; height: auto; margin-bottom: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(250, 248, 243, .25); }

/* Unterseiten */
.page { padding: 2.5rem 0 3.5rem; overflow-wrap: break-word; }
.page h1 { font-size: clamp(1.7rem, 7vw, 2.5rem); hyphens: auto; }
.page h2 { font-size: 1.3rem; margin-top: 2rem; hyphens: auto; }
.page h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.page .card h2 { margin-top: 0; }
.ph { background: #FFF0C2; color: #4A3B00; border-radius: 4px; padding: 0 .25em; overflow-wrap: anywhere; }

/* Ab Tablet */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .modules { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .card.form { padding: 2rem; }
}

/* Ab Desktop */
@media (min-width: 900px) {
  .hero { padding: 5rem 0; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 3rem; }
  .section { padding: 4.5rem 0; }
  .main-nav { display: flex; gap: 1.25rem; margin-right: .75rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .modules { grid-template-columns: repeat(3, 1fr); }
}
