/* ── Farben & Grundwerte ── */
:root {
  --bg:        #fbf8f3;
  --bg-alt:    #f4ede2;
  --surface:   #ffffff;
  --ink:       #2a2622;
  --muted:     #6f675d;
  --line:      #e7ddcf;
  --accent:    #a8622a;   /* Honig/Holz */
  --accent-dk: #8a4f20;
  --accent-bg: #f6e7d5;
  --ok:        #2f7d4f;
  --err:       #b3261e;
  --radius:    14px;
  --shadow:    0 1px 2px rgba(60, 40, 20, .06), 0 8px 24px rgba(60, 40, 20, .07);
  --font:      system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dk); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p  { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-dk); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-small { padding: 8px 18px; font-size: .92rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 248, 243, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.15rem; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav a.btn { color: #fff; }

/* ── Hero ── */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.price-hint { color: var(--muted); }
.price-hint strong { color: var(--ink); font-size: 1.3rem; }
.hero-img img, .split-img img { border-radius: 22px; box-shadow: var(--shadow); }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); font-size: 1.08rem; margin-bottom: 36px; }

/* ── Funktionen ── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
.icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-bg);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-dk); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ── Split ── */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.split p { color: var(--muted); font-size: 1.05rem; }

/* ── Ablauf ── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 8px 4px; }
.steps p { color: var(--muted); }
.step-no {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800;
  margin-bottom: 14px;
}

/* ── Preisrechner ── */
.calc { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.calc-group { margin-bottom: 28px; }
.calc-group h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.options { display: grid; gap: 10px; }
.option {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.option:hover { border-color: #d6c4ab; }
.option:has(input:checked) { border-color: var(--accent); background: #fffaf4; }
.option-fixed { grid-template-columns: 1fr auto; cursor: default; border-color: var(--accent); background: #fffaf4; }
.option p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.option input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.option-price { font-weight: 700; white-space: nowrap; }

.km-field { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.km-field label { font-weight: 600; font-size: .95rem; }
.km-input { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.km-input input[type=range] { flex: 1; accent-color: var(--accent); }
.km-input input[type=number] { width: 84px; }
.km-note { margin: 10px 0 0; font-size: .92rem; color: var(--muted); }
.km-note.warn { color: var(--accent-dk); font-weight: 600; }

.calc-summary {
  position: sticky; top: 88px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.calc-summary ul { list-style: none; padding: 0; margin: 0 0 16px; }
.calc-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.calc-summary li span:last-child { white-space: nowrap; font-weight: 600; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.summary-total strong { font-size: 2rem; color: var(--accent-dk); }
.summary-note { color: var(--muted); font-size: .85rem; margin: 4px 0 18px; }

/* ── Anfrage ── */
.config-box { background: var(--accent-bg); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px; }
.config-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.config-box pre { margin: 0; font-family: var(--font); font-size: .95rem; white-space: pre-wrap; color: var(--ink); }

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.field.invalid input { border-color: var(--err); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* ── FAQ ── */
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: .95rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer p { margin: 0; }

/* ── Unterseiten (Impressum/Datenschutz) ── */
.legal { padding: 56px 0 80px; }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal .todo { background: #fff3cd; padding: 0 4px; border-radius: 4px; }

/* ── Mobil ── */
@media (max-width: 900px) {
  .hero-grid, .split, .calc { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .features { grid-template-columns: 1fr 1fr; }
  .calc-summary { position: static; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav a:not(.btn) { display: none; }
  .features, .steps, .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* ── Galerie „Im Einsatz“ ── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 620px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:last-child { display: none; }
}

/* ── Sofortdruck-Kacheln ── */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 8px;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
  transition: border-color .15s, background .15s;
}
.tile:hover { border-color: #d6c4ab; }
.tile:has(input:checked) { border-color: var(--accent); background: #fffaf4; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-bg); }
.tile strong { font-size: 1.35rem; }
.tile small { color: var(--muted); font-size: .8rem; }
.tile span { margin-top: 6px; font-weight: 700; font-size: .92rem; color: var(--accent-dk); }
.tiles-note { margin: 8px 2px 0; color: var(--muted); font-size: .85rem; }
@media (max-width: 380px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

/* ── AGB ── */
.legal ol, .legal ul { margin: 0 0 1em; padding-left: 1.4em; }
.legal li { margin-bottom: .35em; }
.form-hint { margin: -6px 0 0; text-align: center; font-size: .85rem; color: var(--muted); }
