/* ============================================================
   Baukasten — Basis-Design-System
   ------------------------------------------------------------
   Eine Schrift (Inter), Tokens pro Palette, neutrale Bausteine.
   Jede Sektion darf nur diese Klassen und Tokens verwenden —
   so sehen alle acht Templates zusammenpassend aus und der
   Austausch einzelner Sektionen bricht nichts.
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/inter-latin.woff2') format('woff2');
}

:root {
  /* Palette — wird pro Template über .pal-* überschrieben */
  --brand: #0e5a6b;
  --brand-dark: #0a4b59;
  --brand-ink: #fff;
  --brand-soft: #e7f1f3;
  --accent: #b06a3b;
  --accent-soft: #f8eee5;
  --surface: #f8f5ef;
  --ink: #0c1116;
  --ink-2: #3d4753;
  --muted: #64707d;
  --line: #e6dfd2;

  /* Typografie */
  --t-display: clamp(2.1rem, 4.6vw, 3.4rem);
  --t-h2:      clamp(1.5rem, 2.6vw, 2.05rem);
  --t-h3:      1.0625rem;
  --t-body:    1rem;
  --t-small:   .9375rem;
  --t-xs:      .8125rem;

  /* Form */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;
  --pad: clamp(18px, 4vw, 32px);
  --breit: 1180px;
  --schmal: 760px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-sm: 0 1px 2px rgba(12, 17, 22, .05);
  --shadow-md: 0 8px 24px -12px rgba(12, 17, 22, .18);
  --shadow-lg: 0 26px 60px -30px rgba(12, 17, 22, .32);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: var(--t-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.022em; font-weight: 700; }
p { margin: 0; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--breit); margin-inline: auto; padding-inline: var(--pad); }
.container--schmal { max-width: var(--schmal); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--flaeche { background: var(--surface); }
.section--tief { background: var(--brand-dark); color: #eef4f5; }
.section--tief h2, .section--tief h3 { color: #fff; }
.section--tief p { color: #c8d6d9; }
.kopf { max-width: 62ch; margin-bottom: clamp(24px, 3.4vw, 40px); }
.kopf h2 { font-size: var(--t-h2); margin-top: 12px; }
.kopf p { margin-top: 12px; color: var(--muted); font-size: var(--t-small); }
.section--tief .kopf p { color: #c8d6d9; }

/* ---------- Bausteine ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent));
}
.section--tief .eyebrow { color: #9dc4cb; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-pill);
  border: 1px solid transparent; font-size: var(--t-small); font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--block { width: 100%; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  color: inherit; text-decoration: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-soft, var(--surface)); color: var(--brand);
}
.card__icon svg { width: 20px; height: 20px; }
.card h3 { font-size: var(--t-h3); color: var(--ink); text-decoration: none; }
.card:hover h3 { color: var(--brand); }
.card p { font-size: var(--t-small); color: var(--muted); }

.raster { display: grid; gap: 16px; }
.raster--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; min-height: 40px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: #fff;
  font-size: var(--t-xs); font-weight: 600; color: var(--ink); text-decoration: none;
}
.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip svg { width: 15px; height: 15px; color: var(--brand); }

.bild-platzhalter {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  background:
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 6%, transparent) 0 10px, transparent 10px 20px),
    linear-gradient(160deg, #fbf8f2, #f4efe6);
  display: grid; place-items: center; color: #9a8b78; text-align: center;
  font-size: var(--t-xs); padding: 20px;
}
.bild-platzhalter::after {
  content: attr(data-label); max-width: 30ch;
}

.notiz {
  font-size: var(--t-xs); color: var(--accent);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius-sm); padding: 10px 14px;
}

/* ---------- Reveal (dezent, respektiert reduced-motion) ---------- */
/* Standard: sichtbar. Die Animation kommt nur, wenn JS läuft — so bleibt
   die Seite ohne JS und im Screenshot vollständig. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(10px); }
html.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .raster--3, .raster--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .raster--2, .raster--3, .raster--4 { grid-template-columns: 1fr; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #fdfbf7, var(--surface)); border-bottom: 1px solid var(--line); }
.hero__titel { font-size: var(--t-display); margin-top: 16px; letter-spacing: -.03em; }
.hero__titel--gross { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.hero__text { margin-top: 18px; font-size: 1.0625rem; color: var(--muted); max-width: 46ch; }
.hero__cta { margin-top: 26px; }
.hero__note { margin-top: 14px; font-size: var(--t-xs); color: var(--muted); }
.hero__bild { aspect-ratio: 4 / 3; }
.hero--voll .hero__buehne { aspect-ratio: 16 / 9; display: grid; align-items: end; justify-items: start;
  padding: clamp(16px, 2.4vw, 30px); }
.hero__innen {
  padding: clamp(20px, 3vw, 38px); background: #fff; max-width: 44rem;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.hero__innen, .hero__innen h1 { color: var(--ink); }
.hero__innen .hero__text { max-width: 40ch; }
@media (max-width: 640px) { .hero--voll .hero__buehne { aspect-ratio: auto; min-height: 420px; } }
.hero__dreier { display: grid; gap: clamp(20px, 3vw, 40px); align-items: end; }
@media (min-width: 900px) { .hero__dreier { grid-template-columns: 1.15fr .8fr .95fr; } }
/* Das Foto in der dreier-Buehne soll die Hoehe der Textspalten fuellen,
   nicht als Briefmarke in der Ecke haengen. */
.hero__dreier .hero__bild { aspect-ratio: auto; align-self: stretch; min-height: 300px; }

/* ---------- Trust ---------- */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust__inner { display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 52px); padding-block: 20px; }
.trust__item { display: flex; align-items: baseline; gap: 9px; }
.trust__zahl { font-size: 1.3rem; font-weight: 700; letter-spacing: -.03em; }
.trust__label { font-size: var(--t-xs); color: var(--muted); }

/* ---------- Listen ---------- */
.liste { display: grid; gap: 0; }
.liste__zeile { display: flex; gap: 18px; justify-content: space-between; align-items: baseline;
  padding-block: 18px; border-bottom: 1px solid var(--line); }
.liste__zeile:first-child { border-top: 1px solid var(--line); }
.liste__zeile strong { font-size: var(--t-h3); }
.liste__zeile p { font-size: var(--t-small); color: var(--muted); margin-top: 4px; }
.liste__preis { font-weight: 700; white-space: nowrap; color: var(--brand); }

/* ---------- Schritte ---------- */
.schritte { display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 760px) { .schritte { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.schritt { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.schritt__nr { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: var(--t-xs); margin-bottom: 12px; }
.schritt h3 { font-size: var(--t-h3); }
.schritt p { margin-top: 6px; font-size: var(--t-small); color: var(--muted); }

/* ---------- Formular ---------- */
.formular { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); }
.feld { display: grid; gap: 6px; }
.feld label { font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); }
.feld input, .feld textarea, .feld select {
  width: 100%; padding: 12px 14px; min-height: 48px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink);
}
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.kontakt-daten { display: grid; gap: 8px; font-size: var(--t-small); }
.kontakt-daten a { color: var(--brand); }
