:root {
  --bg: #f5f1ea;
  --card: #fffdf9;
  --ink: #1d2623;
  --muted: #5f6b66;
  --green: #22332d;
  --green-2: #2f4a3f;
  --brass: #b98a45;
  --brass-dark: #94692b;
  --line: #e2dacd;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-dark); font-weight: 600; margin-bottom: .8rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
section { padding: clamp(56px, 8vw, 104px) 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(245, 241, 234, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.logo span { color: var(--brass-dark); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-size: .97rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--brass); }
.nav a.btn { border-bottom: 0; padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brass); color: #fff; }
.btn-primary:hover { background: var(--brass-dark); }
.btn-ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn-dark { background: var(--green); color: #fff; }
.btn-dark:hover { background: var(--green-2); }

/* Hero */
.hero { position: relative; padding: 0; background: var(--green); color: #fff; min-height: min(86vh, 780px); display: flex; align-items: center; overflow: hidden; }
.hero-scene { position: absolute; inset: 0; }
.hero-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 26, 23, .9) 0%, rgba(20, 26, 23, .72) 30%, rgba(20, 26, 23, .25) 50%, rgba(20, 26, 23, 0) 65%); }
.hero-text { position: relative; z-index: 1; max-width: 560px; padding: 72px 0; }
.hero .eyebrow { color: #e0b877; }
.hero p { font-size: 1.2rem; color: rgba(255, 255, 255, .86); margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Karten */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 600; color: var(--brass-dark); text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.icon { width: 52px; height: 52px; border-radius: 12px; background: #efe6d6; color: var(--brass-dark); display: grid; place-items: center; margin-bottom: 20px; }
.icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.section-head { margin-bottom: 42px; }

/* Ablauf */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; border-top: 2px solid var(--brass); padding-top: 18px; }
.steps li::before { content: "0" counter(step); font-family: var(--serif); font-size: 1.9rem; color: var(--brass-dark); display: block; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .98rem; margin: 0; }
.alt { background: #ece5d8; }

/* Teaser-Küchen */
.teaser { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.teaser:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .4); }
.teaser .pic { aspect-ratio: 2 / 1; }
.teaser .pic svg { width: 100%; height: 100%; }
.teaser .cap { padding: 16px 20px 18px; }
.teaser .cap strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
.teaser .cap span { color: var(--muted); font-size: .92rem; }

/* CTA */
.cta { background: var(--green); color: #fff; text-align: center; }
.cta p { color: rgba(255, 255, 255, .8); max-width: 56ch; margin-inline: auto; margin-bottom: 1.8em; }
.cta .hero-actions { justify-content: center; }

/* Seitentitel */
.page-head { padding: clamp(48px, 7vw, 84px) 0 0; }
.page-head + section { padding-top: 44px; }

/* Leistungen */
.service { display: grid; grid-template-columns: 64px 1fr; gap: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; scroll-margin-top: 90px; }
.service .num { font-family: var(--serif); font-size: 2rem; color: var(--brass-dark); line-height: 1; }
.service p { color: var(--muted); }
.service ul { margin: 0; padding-left: 1.1em; color: var(--ink); }
.service li { margin-bottom: .25em; }
.service li::marker { color: var(--brass); }

/* Konfigurator */
.config { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.preview { position: sticky; top: 88px; }
.preview-pic { aspect-ratio: 2 / 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #ece6da; }
.preview-pic svg { width: 100%; height: 100%; }
.preview-note { font-size: .85rem; color: var(--muted); margin: 10px 2px 0; }
.summary { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.summary h3 { font-size: 1.1rem; margin-bottom: 10px; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: .95rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.step { border: 0; padding: 0; margin: 0 0 34px; min-width: 0; }
.step legend { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; padding: 0; margin-bottom: 14px; }
.step legend small { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-dark); display: block; margin-bottom: 2px; }
.opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.opt { position: relative; display: flex; align-items: center; gap: 12px; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-size: .95rem; font-weight: 500; line-height: 1.25; transition: border-color .15s, box-shadow .15s; }
.opt:hover { border-color: #cbbfa9; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:checked) { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(185, 138, 69, .22); }
.opt:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.opt .sw { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); }
.opt.form { flex-direction: column; align-items: flex-start; gap: 6px; }
.opt.form svg { width: 60px; height: 44px; fill: var(--green-2); }
.opt.form small { color: var(--muted); font-weight: 400; }
.opt .hd { flex: none; width: 34px; height: 30px; display: grid; place-items: center; background: #ebe4d7; border-radius: 6px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: .92rem; font-weight: 600; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea { font: 400 1rem var(--sans); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(185, 138, 69, .22); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.form-msg { margin-top: 14px; font-size: .95rem; min-height: 1.4em; }
.form-msg.err { color: #a12d2d; }
.form-msg.ok { color: #2c6b4a; }

/* Footer */
.site-footer { background: #17201d; color: rgba(255, 255, 255, .78); padding: 52px 0 28px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.site-footer .logo { color: #fff; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 20px; font-size: .85rem; }

.prose { max-width: 70ch; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.todo { background: #fff3cd; border: 1px dashed #c9a227; border-radius: 6px; padding: 1px 7px; font-size: .92em; }

@media (max-width: 900px) {
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr 1fr; }
  .config { grid-template-columns: 1fr; }
  .preview { position: sticky; top: 68px; z-index: 5; background: var(--bg); padding: 10px 0; margin: -10px 0; }
  .summary { display: none; }
  .preview-note { display: none; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 14px; }
  .hero { display: block; min-height: 0; }
  .hero-scene { position: relative; inset: auto; aspect-ratio: 16 / 10; }
  .hero::after { display: none; }
  .hero-text { padding: 34px 0 48px; }
  .grid-3, .grid-2, .steps, .fields, .site-footer .cols { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 8px; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
