@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #2e1d14;
  --muted: #5c4a3e;
  --line: #e4d6c6;
  --accent: #a8401b;
  --accent-hover: #8c3416;
  --accent-soft: #f6e3d6;
  --sage: #e9eee3;
  --sage-ink: #3d5233;
  --bg: #fdf8f2;
  --band: #f7eee3;
  --surface: #ffffff;
  --shadow: 0 10px 30px rgba(46, 29, 20, 0.08);
  --radius: 1.1rem;
  --radius-sm: 0.6rem;
  --header-h: 4rem;
  --max: 70rem;
  --pad-x: clamp(1rem, 5vw, 3.5rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: Nunito, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
main:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 0.75rem; color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 var(--pad-x);
  background: rgba(253, 248, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo img { width: 36px; height: 36px; border-radius: 6px; flex-shrink: 0; }
.logo-text {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.4rem;
}
#site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
#site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent-soft); }
#site-nav a.nav-cta {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  border: 0;
}
#site-nav a.nav-cta:hover { background: var(--accent-hover); color: #fff; }

.back-link { font-weight: 700; white-space: nowrap; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover, .nav-toggle:focus-visible { background: var(--accent-soft); }
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.site-header.is-open .nav-toggle-icon { background: transparent; }
.site-header.is-open .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.site-header.is-open .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .js-nav .nav-toggle { display: inline-flex; }
  .js-nav #site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--pad-x) 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .js-nav #site-nav[hidden] { display: none; }
  .js-nav #site-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .js-nav #site-nav a.nav-cta {
    margin-top: 0.9rem;
    text-align: center;
    padding: 0.85rem 1rem;
  }
  /* ohne JavaScript: Navigation umbrechen statt abschneiden */
  html:not(.js-nav) .site-header { height: auto; min-height: var(--header-h); flex-wrap: wrap; padding-block: 0.6rem; }
  html:not(.js-nav) #site-nav { flex-wrap: wrap; }
}
body.nav-open { overflow: hidden; }

/* Sections */
main { overflow-x: clip; }
section { padding: clamp(3rem, 8vw, 5.5rem) var(--pad-x); }
.band { background: var(--band); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-head { display: grid; gap: 0.7rem; max-width: 44rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.kicker {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
h2 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }
.lead { font-size: 1.1rem; color: var(--muted); }
.hint, .note { color: var(--muted); font-size: 0.95rem; }
.note { margin-top: 1.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn:disabled { opacity: 0.65; cursor: wait; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-hover); border-color: var(--accent-hover); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  max-width: calc(var(--max) + 2 * 3.5rem);
  margin: 0 auto;
  padding-top: clamp(2rem, 6vw, 4.5rem);
}
.hero-copy { display: grid; gap: 1.1rem; justify-items: start; }
.eyebrow {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--sage);
  color: var(--sage-ink);
  font-weight: 800;
  font-size: 0.92rem;
}
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.01em; }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 0.6rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-facts strong { display: block; color: var(--ink); font-size: 1.25rem; }
.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--band);
}

/* Module cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.card-body { display: grid; gap: 0.6rem; padding: 1.15rem 1.2rem 1.4rem; align-content: start; }
.duration {
  justify-self: start;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 800;
  font-size: 0.85rem;
}
.card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.98rem; }
.card li + li { margin-top: 0.25rem; }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.steps li {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1.4rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.step-no {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}
.steps p { color: var(--muted); }

/* Audience */
.audience {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.audience li {
  display: grid;
  gap: 0.45rem;
  padding: 1.4rem 1.4rem 1.4rem 1.6rem;
  background: var(--surface);
  border-radius: var(--radius);
  border-left: 6px solid var(--accent);
}
.audience p { color: var(--muted); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.15rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.35rem; font-weight: 700; font-size: 0.97rem; min-width: 0; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  border: 1px solid #b9a796;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input::placeholder, .field textarea::placeholder { color: #8a776a; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; }
[aria-invalid="true"] { border-color: #b3261e !important; box-shadow: 0 0 0 1px #b3261e; }
.topics { border: 1px solid #b9a796; border-radius: var(--radius-sm); padding: 0.6rem 0.9rem 0.8rem; margin: 0; }
.topics legend { padding: 0 0.3rem; }
.legend-hint { font-weight: 400; color: var(--muted); }
.check { display: flex; align-items: center; gap: 0.6rem; min-height: 40px; font-weight: 400; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); flex-shrink: 0; margin: 0; }
.field-error { color: #b3261e; font-weight: 700; font-size: 0.9rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
.form-status { min-height: 1.6em; font-weight: 700; }
.form-status.ok { color: var(--sage-ink); }
.form-status.error { color: #b3261e; }

/* Footer */
.site-footer { background: var(--ink); color: #f4e9dd; padding: 2.5rem var(--pad-x); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 0.6rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.1rem; }
.footer-brand img { border-radius: 5px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: #fff; font-weight: 700; }
.site-footer a:hover { color: #f6c9ad; }
.small { font-size: 0.88rem; color: #d9c8b7; }

/* Legal pages */
.legal-inner { max-width: 46rem; display: grid; gap: 1rem; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 0.8rem; }
.placeholder-badge {
  justify-self: start;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #fff3cd;
  border: 1px dashed #8a6d00;
  color: #5c4800;
  font-weight: 800;
}
.legal-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; margin: 0; }
.legal-list dt { font-weight: 800; }
.legal-list dd { margin: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .cards, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cards, .steps, .audience, .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .contact-form .btn { justify-self: stretch; }
  .legal-list { grid-template-columns: 1fr; }
  .legal-list dd { margin-bottom: 0.5rem; }
}
@media (max-width: 380px) {
  .logo-text { font-size: 0.98rem; }
}
.nowrap { white-space: nowrap; }
@media (max-width: 640px) {
  .hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; font-size: 0.85rem; line-height: 1.35; }
  .hero-facts strong { font-size: 1.1rem; margin-bottom: 0.15rem; }
}
@media (min-width: 641px) {
  .topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
}

/* Preise */
.audience li { border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-notice {
  display: grid;
  gap: 0.35rem;
  max-width: 46rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}
.price-notice-title { font-weight: 800; font-size: 1.08rem; color: var(--accent-hover); }
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 46rem; }
.price-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.price { font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 800; line-height: 1.1; white-space: nowrap; }
.price-cur { font-size: 0.5em; font-weight: 800; color: var(--muted); vertical-align: 0.45em; margin-right: 0.15em; }
.price-sub { color: var(--muted); font-size: 0.95rem; }
.price-facts { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 0.45rem; max-width: 46rem; }
.price-facts li { padding-left: 1.4rem; position: relative; }
.price-facts li::before { content: ""; position: absolute; left: 0.2rem; top: 0.6em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }
@media (max-width: 640px) {
  .prices { grid-template-columns: 1fr; }
  #preise > .section-inner > .btn { width: 100%; }
}
