/* Danwood Berlin – Grundgestaltung nach docs/design-vorgaben.md */
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --dunkel: #38383D;
  --text: #4E4E55;
  --text-hell: #6F6F77;
  --flaeche: #F4F4F4;
  --weiss: #FFFFFF;
  --linie: #EBEBEB;
  --linie-dunkel: #C8C8CC;
  --rot: #D02630;
  --radius: 16px;
  --radius-klein: 10px;
  --breite: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  font-family: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--dunkel); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }
.abschnitt { padding: 80px 0; }
.abschnitt.grau { background: var(--flaeche); }
.einleitung { max-width: 680px; color: var(--text-hell); font-size: 18px; }
.klein { font-size: 14px; color: var(--text-hell); }

/* Schaltflächen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 500; font-size: 16px;
  text-decoration: none; border: 1.5px solid var(--dunkel); cursor: pointer;
  transition: background .15s, color .15s;
  font-family: inherit;
}
/* Hauptaktion in Danwood-Rot (wie Vorlage „Webauftritt“) */
.btn-dunkel { background: var(--rot); border-color: var(--rot); color: var(--weiss); }
.btn-dunkel:hover { background: #A81E27; border-color: #A81E27; }
.btn-rahmen { background: transparent; color: var(--dunkel); }
.btn-rahmen:hover { background: var(--dunkel); color: var(--flaeche); }
.btn-hell { background: var(--weiss); color: var(--dunkel); border-color: var(--weiss); }

/* Kopfleiste */
.kopf {
  position: sticky; top: 12px; z-index: 50;
  margin: 12px auto 0; max-width: calc(var(--breite) - 0px);
  padding: 0 12px;
}
.kopf-innen {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-radius: var(--radius); box-shadow: 0 4px 24px rgba(0,0,0,.08);
  padding: 10px 14px 10px 18px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--dunkel); }
.logo-zeichen { width: auto; height: 46px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-weight: 600; font-size: 18px; }
.logo-text span { font-size: 12px; color: var(--text-hell); }
.menue { display: flex; gap: 22px; }
.menue a { text-decoration: none; font-size: 15px; color: var(--text); }
.menue a:hover, .menue a[aria-current="page"] { color: var(--dunkel); text-decoration: underline; text-underline-offset: 4px; }
.kopf-aktionen { display: flex; gap: 8px; }
.kopf-aktionen .btn { padding: 10px 16px; font-size: 15px; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--dunkel); margin: 5px 0; }

/* Titelbild */
.hero { position: relative; margin-top: -72px; min-height: 640px; display: flex; align-items: flex-end; color: var(--weiss); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(20,20,24,.72) 100%); }
.hero h1, .hero p { text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 64px; width: 100%; }
.hero h1 { color: var(--weiss); max-width: 760px; }
.hero p { max-width: 600px; font-size: 19px; }
.hero-aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero .btn-rahmen { color: var(--weiss); border-color: var(--weiss); }
.hero .btn-rahmen:hover { background: var(--weiss); color: var(--dunkel); }

/* Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.kachel { background: var(--flaeche); border-radius: var(--radius); padding: 28px 24px; }
.abschnitt.grau .kachel { background: var(--weiss); }
.kachel .nr { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--dunkel); color: var(--weiss); align-items: center; justify-content: center; font-weight: 500; margin-bottom: 16px; }
.kachel h3 { margin-bottom: 8px; }
.kachel p { margin: 0; color: var(--text-hell); }

/* Bildkarten */
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.karte { background: var(--weiss); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linie); display: flex; flex-direction: column; }
.karte img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.karte-text { padding: 20px 22px 24px; }
.karte-text p { color: var(--text-hell); margin: 0; }

/* Zweispaltig */
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.zwei img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.liste { list-style: none; padding: 0; margin: 0 0 24px; }
.liste li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--linie); position: relative; }
.liste li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 12px; height: 7px; border-left: 2px solid var(--dunkel); border-bottom: 2px solid var(--dunkel); transform: rotate(-45deg); }

/* Bildergalerie */
.galerie { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.galerie img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-klein); }

/* Grundrisse Bemusterungshaus */
.grundrisse { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.grundrisse figure { margin: 0; background: var(--weiss); border-radius: var(--radius-klein); padding: 10px; }
.zwei .grundrisse img { aspect-ratio: auto; object-fit: contain; border-radius: 0; height: 180px; }
.grundrisse figcaption { font-size: 13px; color: var(--text-hell); text-align: center; margin-top: 6px; }

/* Rechtstexte */
.rechtstext h2 { font-size: 22px; margin-top: 1.6em; }

/* Hinweisbox */
.hinweis { background: var(--flaeche); border-left: 3px solid var(--dunkel); border-radius: var(--radius-klein); padding: 16px 20px; font-size: 15px; }

/* Formular */
.formular-box { background: var(--weiss); border-radius: var(--radius); padding: 32px; box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formular .voll { grid-column: 1 / -1; }
.formular label { display: block; font-size: 14px; font-weight: 500; color: var(--dunkel); margin-bottom: 6px; }
.formular input, .formular select, .formular textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--linie-dunkel); border-radius: var(--radius-klein);
  font: inherit; color: var(--dunkel); background: var(--weiss);
}
.formular input:focus, .formular select:focus, .formular textarea:focus { outline: 2px solid var(--dunkel); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: auto; margin-top: 4px; }
.entwurf-banner { background: #FFF6D6; color: #5A4A00; text-align: center; font-size: 13px; padding: 6px 12px; }

/* FAQ */
details { border-bottom: 1px solid var(--linie); padding: 18px 0; }
summary { cursor: pointer; font-weight: 500; color: var(--dunkel); font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; }

/* Fußzeile */
.fuss { background: var(--dunkel); color: #D6D6DA; padding: 56px 0 28px; font-size: 15px; }
.fuss a { color: #D6D6DA; text-decoration: none; }
.fuss a:hover { color: var(--weiss); text-decoration: underline; }
.fuss-raster { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.fuss h3 { color: var(--weiss); font-size: 16px; margin-bottom: 12px; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: 6px; }
.fuss-unten { border-top: 1px solid #55555B; margin-top: 40px; padding-top: 20px; font-size: 13px; color: #A8A8AE; }

/* Mobile feste Schaltfläche */
.mobil-cta { display: none; }

@media (max-width: 960px) {
  .menue, .kopf-aktionen .btn-rahmen { display: none; }
  .burger { display: block; }
  .menue.offen { display: flex; flex-direction: column; position: absolute; top: 64px; left: 12px; right: 12px; background: var(--weiss); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.1); padding: 16px 20px; gap: 14px; }
  .kacheln { grid-template-columns: 1fr 1fr; }
  .karten { grid-template-columns: 1fr 1fr; }
  .galerie { grid-template-columns: repeat(2, 1fr); }
  .zwei { grid-template-columns: 1fr; gap: 28px; }
  .fuss-raster { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .abschnitt { padding: 56px 0; }
  .hero { min-height: 560px; }
  .hero p { font-size: 17px; }
  .hero::after { background: linear-gradient(180deg, rgba(20,20,24,.25) 0%, rgba(20,20,24,.82) 75%); }
  .kacheln, .karten, .formular { grid-template-columns: 1fr; }
  .kopf-aktionen .btn-dunkel { display: none; }
  .fuss-raster { grid-template-columns: 1fr; }
  .formular-box { padding: 22px; }
  .mobil-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; }
  .mobil-cta .btn { width: 100%; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
  body { padding-bottom: 76px; }
}

/* Bigin-Formular an das Seitendesign anpassen */
.bigin-formular .wf-parent, .bigin-formular .wf-wrapper { background: transparent !important; padding: 0 !important; margin: 0 !important; max-width: none !important; box-shadow: none !important; }
.bigin-formular .wf-form-component { font-family: inherit !important; font-size: 16px !important; }
.bigin-formular .wf-label { font-family: inherit !important; font-size: 14px !important; font-weight: 500 !important; color: var(--dunkel) !important; }
.bigin-formular .wf-field-input, .bigin-formular .wf-field-dropdown, .bigin-formular textarea { font-family: inherit !important; font-size: 16px !important; border-radius: var(--radius-klein) !important; border: 1px solid var(--linie-dunkel) !important; color: var(--dunkel) !important; }
.bigin-formular .wf-btn { background: var(--rot) !important; border: 0 !important; color: #fff !important; border-radius: 999px !important; font-family: inherit !important; font-size: 16px !important; font-weight: 500 !important; padding: 14px 22px !important; width: 100% !important; cursor: pointer; }
.bigin-formular .wf-btn:hover { background: #A81E27 !important; }
.bigin-formular .wform-btn-wrap { width: 100% !important; }
.bigin-formular label.cP, .bigin-formular .cP div { font-family: inherit !important; font-size: 14px !important; line-height: 1.5 !important; }
.bigin-formular iframe.iframe-container { width: 100%; min-height: 160px; border: 0; }
