/* Landingpages sinnraumhorizont.de / .at — Farben aus .claude/rules/design-system.md.
   Keine Webfonts, keine fremden Ressourcen: Systemschrift wie auf der CH-Landing. */
:root {
  --brown-dark: #4a3728;
  --brown-mid: #9e774d;
  --gold: #c8a97e;
  --accent-light: #e0c090;
  --cream: #f5ece0;
  --bar: #2c1f14;
  --text: #3a2a1e;
  --muted: #6a5040;
  --link: #0d6efd;
  --link-hover: #0a58ca;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--brown-mid);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: underline; }
a:hover { color: var(--link-hover); }

/* Topbar: wie die Moodle-Navbar der CH-Landing (60px, Braun) */
.topbar { background: var(--brown-dark); }
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 8px 16px; min-height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.topbar img { display: block; height: 44px; width: auto; border-radius: 3px; }
.topbar .btn { padding: 8px 16px; font-size: .95rem; }

/* Buttons: dunkel mit hellem Gold (Kontrastregel design-system.md) */
.btn {
  display: inline-block; background: var(--brown-dark); color: var(--accent-light);
  border: 0; border-radius: 8px; padding: 14px 32px; font-size: 1rem; font-weight: 700;
  text-decoration: none; cursor: pointer; font-family: inherit;
}
.btn:hover, .btn:focus { background: #5b4432; color: var(--accent-light); }
.btn-gold { background: var(--gold); color: var(--brown-dark); }
.btn-gold:hover, .btn-gold:focus { background: #b8996e; color: var(--brown-dark); }
.topbar .btn { background: var(--gold); color: var(--brown-dark); }

/* Rahmen: weisse Fläche auf braunem Grund wie #page .main-inner der CH-Landing
   (max. 830px, 24px Abstand oben, Radius 8px, Innenabstand 24px/23px). */
main {
  width: calc(100% - 32px); max-width: 830px; margin: 24px auto 48px;
  background: #fff; border-radius: 8px; padding: 24px 23px;
}

/* Hero: Bild der CH-Landing mit demselben Verlauf darüber */
.hero {
  position: relative; background: var(--brown-dark) url("/assets/hero.webp") center / cover no-repeat;
  color: var(--cream); text-align: center; padding: 80px 24px 72px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(42, 28, 16, .82) 0%, rgba(90, 58, 30, .72) 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; margin: 0 auto 16px;
  color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.hero p {
  max-width: 580px; margin: 0 auto 28px; font-size: clamp(1rem, 2.5vw, 1.2rem); line-height: 1.65;
  color: #f0d9b8; text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.start-note {
  display: inline-block; background: rgba(42, 28, 16, .45); border: 1px solid var(--gold);
  color: var(--accent-light); border-radius: 8px; padding: 10px 16px; margin: 0 0 28px;
  font-size: .98rem; max-width: 580px;
}

/* Abschnitte: randlos im Rahmen. Weiss, Creme-Verlauf (--tint) oder Creme (--cream)
   wie die Abschnitte der CH-Landing. */
.card { background: #fff; padding: 56px 24px; }
.card--tint { background: linear-gradient(135deg, var(--cream) 0%, #fff 100%); }
.card--cream { background: var(--cream); }
.card--tint .steps li, .card--tint .regions li,
.card--cream .steps li, .card--cream .regions li { background: #fff; }
/* Alle Abschnittstitel zentriert (Entscheid 2026-10-06). Abschnitte mit Raster oder Bild bekommen mehr
   Luft darunter (.center), kurze Einleitungssaetze direkt unter dem Titel stehen ebenfalls zentriert;
   lange Textabsaetze (.lead, Einleitung) bleiben linksbuendig. */
.card h2 { color: var(--brown-dark); font-size: 1.55rem; font-weight: 700; line-height: 1.25; margin: 0 0 20px; text-align: center; }
.card h2.center { margin-bottom: 40px; }
.card h2 + p:not(.lead) { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }

/* Kacheln wie .sr-value-card der CH-Landing */
.values { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.value {
  display: flex; align-items: flex-start; gap: 14px; padding: 20px;
  background: var(--cream); border: 1px solid #d4b896; border-radius: 12px;
}
.value > div { flex: 1; min-width: 0; }
.value h3 { font-size: .975rem; margin: 0 0 6px; }
.card .value p { font-size: .855rem; line-height: 1.55; color: #7a5c3a; margin: 0; }
.value-icon {
  width: 36px; height: 36px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: #fff8ee; border: 1px solid rgba(212, 184, 150, .75);
  box-shadow: 0 2px 8px rgba(74, 55, 40, .08); color: var(--brown-dark);
}
.value-icon svg {
  width: 25px; height: 25px; display: block; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.value-icon .icon-fill { fill: var(--accent-light); stroke: none; }
.value-icon .icon-soft { stroke: var(--brown-mid); }

/* Gesamtuebersicht aller Reihen: kompakte Liste mit Vorschaubild */
.catalog-intro { text-align: center; color: #7a5c3a; margin: -28px 0 24px; }
.catalog { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #d4b896; border-radius: 12px; }
.catalog li { display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-top: 1px solid #eadcc8;
  font-size: .9rem; line-height: 1.5; color: #5a3e2b; }
.catalog li:first-child { border-top: 0; }
.catalog li > div { flex: 1; min-width: 0; }
.catalog img { flex: none; width: 88px; height: 66px; object-fit: cover; border-radius: 8px; }
.catalog-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.catalog strong { color: var(--brown-dark); font-size: 1rem; }
.card .catalog p { margin: 3px 0 0; }
.catalog-meta { display: inline-flex; gap: 6px; }
.catalog-meta span { font-size: .77rem; font-weight: 600; color: var(--brown-dark); background: #f0ebe4;
  padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.card h3 { color: var(--brown-dark); font-size: 1.12rem; margin: 0 0 6px; }
.card p { margin: 0 0 14px; }
.lead { font-size: 1.08rem; }

.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
.steps li { background: var(--cream); border-radius: 8px; padding: 20px 18px 16px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--brown-dark); color: var(--accent-light);
  font-weight: 700; margin-bottom: 10px;
}

/* Wappen-Raster */
.regions { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.regions li { text-align: center; background: var(--cream); border-radius: 8px; padding: 14px 8px 12px;
  font-size: .92rem; line-height: 1.3; color: var(--brown-dark); font-weight: 600; }
.regions img { display: block; width: auto; height: 64px; margin: 0 auto 8px; }
/* Kleinere Wappen: DE 16 Bundesländer in zwei Zeilen zu 8, AT 9 in einer Zeile */
.regions--8 { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.regions--9 { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.regions--8 li, .regions--9 li { padding: 10px 4px 8px; font-size: .72rem; hyphens: auto; overflow-wrap: break-word; }
.regions--8 img, .regions--9 img { height: 40px; margin-bottom: 6px; }

/* Formular */
#warteliste { scroll-margin-top: 16px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; color: var(--brown-dark); margin-bottom: 5px; }
.opt { font-weight: 400; color: var(--muted); }
input[type=email], input[type=text], select {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #b89a78; border-radius: 4px; background: #fff; color: var(--text);
}
input:focus, select:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); font-size: .95rem; line-height: 1.5; }
.consent input { margin-top: 4px; width: 20px; height: 20px; flex: 0 0 auto; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .9rem; color: var(--muted); margin-top: 14px; }
.alert { border-radius: 6px; padding: 12px 14px; margin: 0 0 16px; background: #fdecea; color: #7a1c14; border: 1px solid #f3b8b1; }
.alert[hidden] { display: none; }

.draft { background: #fff4d6; border: 1px solid #e0c090; color: #6a4a10; border-radius: 6px; padding: 10px 14px; margin: 0 0 18px; font-weight: 600; }

/* Footer */
footer { background: var(--bar); color: #cbb089; padding: 22px 16px 28px; font-size: .92rem; text-align: center; }
footer a { color: var(--accent-light); }
footer a:hover { color: #fff; }
footer p { margin: 6px 0; }

@media (max-width: 900px) {
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .values { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  main { width: calc(100% - 96px); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  main { margin: 16px auto 32px; padding: 12px 8px; }
  .card { padding: 32px 16px; }
  .card h2 { font-size: 1.35rem; }
  .steps, .form-grid { grid-template-columns: 1fr; }
  .regions--8 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .regions--8 li, .regions--9 li { font-size: .78rem; }
  .regions--9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topbar img { height: 36px; }
  .topbar .btn { padding: 7px 12px; font-size: .88rem; }
}

@media (max-width: 620px) {
  .hero { padding: 48px 16px 40px; }
  .hero .btn { width: 100%; text-align: center; }
}

@media (max-width: 620px) {
  .catalog li { gap: 12px; padding: 12px; }
  .catalog img { width: 64px; height: 48px; border-radius: 6px; }
  .catalog strong { font-size: .95rem; }
  .catalog-intro { margin-top: -30px; }
}

/* Bundeslaender-Auswahl im Formular (Mehrfachauswahl) */
.regions-pick { border: 0; margin: 0; padding: 0; min-width: 0; }
.regions-pick legend { font-weight: 600; color: var(--brown-dark); padding: 0; margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { position: relative; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 13px 5px 10px;
  font-size: .88rem; font-weight: 400; line-height: 1.4; color: var(--brown-dark); background: #fff;
  border: 1px solid #d4b896; border-radius: 20px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.pill:hover { border-color: var(--brown-mid); background: var(--cream); }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.pill img { flex: none; width: 18px; height: 20px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(74, 55, 40, .2)); }
.pill:has(input:checked) { background: var(--brown-dark); color: var(--accent-light); border-color: var(--brown-dark); }
.pill:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Abschnitt "Wer dahintersteckt" */
.about-person { display: flex; gap: 28px; align-items: flex-start; max-width: 780px; margin: 0 auto; }
.about-person img { flex: none; width: 160px; height: 160px; object-fit: cover; border-radius: 50%;
  border: 4px solid #fff; box-shadow: 0 2px 12px rgba(74, 55, 40, .18); }
.about-person h3 { margin: 4px 0 2px; font-size: 1.3rem; }
.about-person p { margin: 0 0 12px; line-height: 1.65; }
.card .about-person .about-tagline { color: #7a5c3a; font-style: italic; margin-bottom: 14px; }
.about-contact { margin-top: 18px; font-weight: 600; }
@media (max-width: 620px) {
  .about-person { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .about-person img { width: 132px; height: 132px; }
}
