/* dieleinwand.de – Design-System „Atelier“
   Edle, ruhige Galerie-Optik. Mobile-first. Kein Framework. */

:root {
  --paper: #faf8f4;
  --paper-2: #f2efe8;
  --ink: #1c1a17;
  --ink-2: #4a463f;
  --ink-3: #6f6a60;
  --line: #e3ded4;
  --accent: #8a6a34;
  --accent-ink: #6d5426;
  --accent-soft: #f0e9db;
  --danger: #9c3b2e;
  --ok: #3e6b4f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(28 26 23 / .06), 0 8px 28px rgb(28 26 23 / .08);
  --shadow-lg: 0 2px 6px rgb(28 26 23 / .08), 0 18px 50px rgb(28 26 23 / .14);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); }

p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-underline-offset: .18em; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .6em 1em;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(250 248 244 / .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  letter-spacing: .02em; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.logo em { font-style: normal; color: var(--accent-ink); }

.main-nav { display: none; margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.main-nav a {
  text-decoration: none; color: var(--ink-2); font-size: .95rem; font-weight: 500;
  padding: .4em 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }

.header-cta { margin-left: auto; }
.nav-burger {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; color: var(--ink);
}
.nav-burger svg { width: 1.25rem; height: 1.25rem; }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .header-cta { margin-left: 0; }
  .nav-burger { display: none; }
}

/* Mobile Drawer */
.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--paper); padding: 1.2rem var(--gutter) 2rem;
  overflow-y: auto; overscroll-behavior: contain;
  display: none;
}
body.nav-open .drawer { display: block; }
body.nav-open { overflow: hidden; }
.drawer ul { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.drawer li + li { border-top: 1px solid var(--line); }
.drawer a {
  display: block; padding: .85em 0; text-decoration: none;
  color: var(--ink); font-size: 1.05rem; font-weight: 500;
}
.drawer .drawer-group { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); padding: 1.2em 0 .3em; }
@media (min-width: 900px) { .drawer { display: none !important; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s;
  min-height: 44px;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink-3); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: .5em 1.1em; min-height: 38px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2rem, 6vw, 3.5rem);
  background:
    radial-gradient(60% 90% at 80% -10%, rgb(138 106 52 / .08), transparent),
    var(--paper);
}
.hero-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 3rem; } }
.kicker {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 1rem;
}
.hero p.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.hero-visual { border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; background: var(--paper-2); }

/* ---------- Sectionen / Karten ---------- */
.section { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 46em; margin-bottom: 2rem; }
.section-head p { color: var(--ink-2); margin: 0; }

.card-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; display: block;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-media { aspect-ratio: 4 / 3; background: var(--paper-2); object-fit: cover; width: 100%; }
.card-body { padding: 1rem 1.1rem 1.2rem; }
.card-body h3 { margin: 0 0 .25em; font-size: 1.1rem; }
.card-body p { margin: 0; color: var(--ink-3); font-size: .92rem; }

/* ---------- USP-/Schritt-Leisten ---------- */
.usp-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.usp { display: flex; gap: .8rem; align-items: flex-start; }
.usp svg { flex: none; width: 1.5rem; height: 1.5rem; color: var(--accent-ink); margin-top: .15rem; }
.usp strong { display: block; font-size: .98rem; }
.usp span { color: var(--ink-3); font-size: .92rem; }

.steps { counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding-top: 3.2rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--ink-2); margin: 0; font-size: .95rem; }

/* ---------- Zitate ---------- */
.quotes { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; font-size: .98rem; color: var(--ink-2);
}
.quote footer { margin-top: .8rem; font-weight: 600; color: var(--ink); font-size: .9rem; }

/* ---------- Formulare ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75em .9em; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.field .hint { font-size: .85rem; color: var(--ink-3); margin-top: .3rem; }

/* ---------- Preisbox / Tabelle ---------- */
.price-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.price-table th, .price-table td { padding: .65em .8em; border-bottom: 1px solid var(--line); text-align: left; }
.price-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.price-table tr:hover td { background: var(--accent-soft); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.pricebox {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; box-shadow: var(--shadow);
}
.pricebox .price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.pricebox .fine { color: var(--ink-3); font-size: .85rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc9bd; margin-top: 3rem; }
.footer-grid {
  display: grid; gap: 2rem; padding: 3rem 0 2rem;
  grid-template-columns: 1fr; font-size: .95rem;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8em; }
.site-footer a { color: #cfc9bd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .45em; }
.footer-legal {
  border-top: 1px solid rgb(255 255 255 / .12); padding: 1.2rem 0 2rem;
  font-size: .85rem; color: #9a948a; display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.badge {
  display: inline-block; padding: .25em .7em; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: .78rem; font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
