/* dombuy.de — Stylesheet
   Farbsystem: Ink / warmes Off-White / Petrol als Vertrauensfarbe / Amber als Akzent */

:root {
  --ink: #12171a;
  --ink-soft: #3d474d;
  --muted: #6b767d;
  --line: #e2ded6;
  --bg: #faf8f4;
  --surface: #ffffff;
  --petrol: #0e4f4a;
  --petrol-dark: #0a3a36;
  --amber: #b26b12;
  --amber-soft: #fdf3e4;
  --green: #1f7a4d;
  --red: #a8321f;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(18, 23, 26, .05), 0 8px 24px -12px rgba(18, 23, 26, .18);
  --maxw: 1140px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--petrol-dark); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); margin-top: 2.2em; }
h3 { font-size: 1.2rem; margin-top: 1.8em; }
p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 .8em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--petrol); }
.nav { margin-left: auto; display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--petrol); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: .9rem; cursor: pointer; }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 8px; border: 1px solid transparent;
  font-family: var(--font-sans); font-size: .96rem; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: .15s ease;
}
.btn-primary { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: var(--petrol-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.hero p.lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 62ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-facts { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-facts div strong { display: block; font-family: var(--font-serif); font-size: 1.7rem; }
.hero-facts div span { font-size: .85rem; color: var(--muted); }

/* ---------- Filterleiste ---------- */
.toolbar {
  position: sticky; top: 68px; z-index: 40;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.toolbar .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.toolbar input[type="search"], .toolbar select {
  font-family: inherit; font-size: .92rem; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink);
}
.toolbar input[type="search"] { flex: 1 1 240px; min-width: 200px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  font-size: .84rem; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  cursor: pointer; font-family: inherit;
}
.chip:hover { border-color: var(--petrol); color: var(--petrol); }
.chip[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.result-count { font-size: .88rem; color: var(--muted); margin: 18px 0 0; }

/* ---------- Domain-Karten ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin: 24px 0 64px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; transition: .18s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card h3 { font-size: 1.32rem; margin: 0; word-break: break-word; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--petrol); }
.card .claim { font-size: .94rem; color: var(--ink-soft); margin: 10px 0 16px; }
.card .cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tag { font-size: .74rem; padding: 3px 9px; border-radius: 4px; background: #f1efe9; color: var(--ink-soft); }
.card-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; }
.price small { display: block; font-family: var(--font-sans); font-size: .72rem; color: var(--muted); font-weight: 400; letter-spacing: .02em; }

.score {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem;
  background: var(--amber-soft); color: var(--amber); border: 1px solid #f0dfc4;
}
.score.high { background: #e8f4ee; color: var(--green); border-color: #cbe6d8; }

.badge { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; }
.badge-verfuegbar { background: #e8f4ee; color: var(--green); }
.badge-reserviert { background: var(--amber-soft); color: var(--amber); }
.badge-verkauft { background: #f4eceb; color: var(--red); }
.badge-demo { background: #eef0f3; color: var(--muted); }

/* ---------- Detailseite ---------- */
.detail-head { padding: 48px 0 32px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--petrol); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding: 40px 0 72px; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; gap: 32px; } }

.buybox {
  position: sticky; top: 92px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.buybox .price { font-size: 2.1rem; margin: 4px 0 2px; }
.buybox .vat { font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.buybox ul { list-style: none; padding: 0; margin: 20px 0 0; font-size: .87rem; color: var(--ink-soft); }
.buybox ul li { padding: 7px 0 7px 24px; position: relative; border-top: 1px solid var(--line); }
.buybox ul li:first-child { border-top: none; }
.buybox ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

table.crit { width: 100%; border-collapse: collapse; margin: 18px 0 28px; font-size: .95rem; }
table.crit th, table.crit td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
table.crit td.val { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; width: 1%; }
.bar { display: inline-block; vertical-align: middle; width: 90px; height: 6px; border-radius: 3px; background: #eceae4; margin-right: 12px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--petrol); border-radius: 3px; }

.factbox { display: flex; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 28px 0; }
.factbox div { flex: 1 1 150px; padding: 14px 16px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); margin-top: -1px; }
.factbox div:last-child { border-right: none; }
.factbox dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.factbox dd { margin: 2px 0 0; font-weight: 600; font-size: .95rem; }

ul.checklist { list-style: none; padding: 0; }
ul.checklist li { padding: 6px 0 6px 26px; position: relative; }
ul.checklist li::before { content: "→"; position: absolute; left: 0; color: var(--amber); }

.callout { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 24px 0; font-size: .95rem; }
.callout strong { display: block; margin-bottom: 4px; }

/* ---------- Formular ---------- */
.form-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.form-section > h3 { margin-top: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .87rem; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: .8rem; color: var(--muted); font-weight: 400; margin-top: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: .95rem; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--petrol); outline-offset: -1px; border-color: var(--petrol); }
.field textarea { min-height: 110px; resize: vertical; }
.req { color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: .9rem; }
.check input { margin-top: 4px; flex: 0 0 auto; width: 17px; height: 17px; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-error { background: #fdf1ef; border: 1px solid #f0cdc6; color: var(--red); padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: .92rem; }
.form-ok { background: #edf7f1; border: 1px solid #c9e5d5; color: var(--green); padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: .92rem; }

/* ---------- Prozess ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; margin: 28px 0; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 68px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 22px; top: 22px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--petrol); color: #fff; display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; font-size: .95rem;
}
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; font-size: .93rem; color: var(--ink-soft); }

/* ---------- Rechtstexte ---------- */
.legal { padding: 48px 0 80px; }
.legal h2 { font-size: 1.3rem; margin-top: 2.4em; }
.legal h3 { font-size: 1.02rem; }
.legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: .5em; }
.legal .updated { font-size: .85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cdd3d6; padding: 56px 0 32px; margin-top: 40px; font-size: .92rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #2a3136; margin-top: 40px; padding-top: 22px; font-size: .84rem; color: #8b969b; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.notice-demo { background: var(--amber-soft); border-bottom: 1px solid #f0dfc4; color: #7a4a0d; font-size: .86rem; padding: 10px 0; text-align: center; }

@media print { .site-header, .toolbar, .site-footer, .buybox { display: none; } }
