/* =========================================================
   Vitali Weigandt – Tischlermeister
   Statisches Design-System (kein Build, kein npm)
   ========================================================= */

:root {
  --holz-900: #2a1c12;
  --holz-800: #3a2718;
  --holz-700: #513520;
  --holz-600: #6d4726;
  --holz-500: #8b5a2b;
  --messing: #c08a3e;
  --messing-hell: #e3b872;
  --papier: #f6f1e7;
  --papier-2: #efe7d8;
  --linie: #ddd0ba;
  --text: #241a12;
  --text-leise: #6b5a48;
  --radius: 10px;
  --maxw: 1140px;
  --schatten: 0 18px 40px -22px rgba(42, 28, 18, 0.45);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--holz-700); }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section--tint { background: var(--papier-2); }
.lead { font-size: 1.12rem; color: var(--text-leise); max-width: 62ch; }
.eyebrow {
  font-family: var(--sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--messing);
  margin: 0 0 .9em;
}
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Holz-Textur (sparsam eingesetzt) ---------- */
.holz {
  background-color: var(--holz-800);
  background-image:
    repeating-linear-gradient(92deg, rgba(255,255,255,.035) 0 2px, rgba(0,0,0,.05) 2px 5px, rgba(255,255,255,0) 5px 11px),
    radial-gradient(120% 60% at 15% 0%, rgba(224,175,110,.20), transparent 60%);
  color: #f3e7d6;
}
.holz h1, .holz h2, .holz h3 { color: #fdf6ea; }
.holz p { color: #e3d3bd; }

/* ---------- Signatur: Zinken-/Schwalbenschwanz-Motiv ---------- */
.zinken-band {
  height: 20px;
  background-image:
    linear-gradient(135deg, var(--messing) 26%, transparent 26%),
    linear-gradient(225deg, var(--messing) 26%, transparent 26%);
  background-size: 20px 20px;
  opacity: .8;
}
.divider {
  position: relative;
  height: 30px;
  background-color: transparent;
  background-image:
    linear-gradient(135deg, var(--messing) 25%, transparent 25%),
    linear-gradient(225deg, var(--messing) 25%, transparent 25%);
  background-size: 30px 30px;
  background-position: 0 0;
  opacity: .55;
}

/* ---------- Kopf / Navigation ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, .92);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--linie);
}
.topbar__inner { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin-right: auto; }
.marke__zeichen {
  width: 42px; height: 42px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: var(--holz-700);
  color: var(--messing-hell);
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.marke__name { font-family: var(--serif); font-size: 1.06rem; line-height: 1.1; }
.marke__sub { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-leise); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--holz-800);
  padding: 9px 13px; border-radius: 8px; font-size: .95rem;
  position: relative;
}
.nav a:hover { background: rgba(109,71,38,.09); }
.nav a[aria-current="page"] { color: var(--holz-900); font-weight: 700; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 3px;
  background-image: linear-gradient(135deg, var(--messing) 25%, transparent 25%), linear-gradient(225deg, var(--messing) 25%, transparent 25%);
  background-size: 8px 8px;
}
.nav__cta { margin-left: 10px; }

.burger {
  display: none; width: 46px; height: 42px; border: 1px solid var(--linie);
  background: transparent; border-radius: 8px; cursor: pointer;
  padding: 0; place-items: center;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--holz-800); position: relative;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

/* ---------- Buttons (Uiverse-Stil, reines CSS) ---------- */
.btn {
  --y: 4px;
  display: inline-flex; align-items: center; gap: .55em;
  font: 600 .97rem/1 var(--sans);
  padding: 15px 24px; border-radius: 8px; border: 0; cursor: pointer;
  text-decoration: none; color: #fff8ec;
  background: var(--holz-700);
  box-shadow: 0 var(--y) 0 0 var(--holz-900);
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
}
.btn:hover { background: var(--holz-600); }
.btn:active { transform: translateY(var(--y)); box-shadow: 0 0 0 0 var(--holz-900); }
.btn--messing { background: var(--messing); color: #2a1c12; box-shadow: 0 var(--y) 0 0 #8a5f22; }
.btn--messing:hover { background: var(--messing-hell); }
.btn--outline {
  background: transparent; color: var(--holz-800);
  box-shadow: 0 var(--y) 0 0 var(--linie); border: 1px solid var(--linie);
}
.btn--outline:hover { background: rgba(109,71,38,.07); }
.btn--klein { padding: 10px 16px; font-size: .88rem; --y: 3px; }
.btn-reihe { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 104px 0 92px; overflow: hidden; }
.hero__tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: var(--messing-hell);
  margin: 0 0 18px;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero p { max-width: 56ch; }
.hero__karte {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 26px;
  box-shadow: var(--schatten);
}
.hero__karte dl { margin: 0; display: grid; gap: 14px; }
.hero__karte dt { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--messing); }
.hero__karte dd { margin: 2px 0 0; font-family: var(--serif); font-size: 1.05rem; color: #fdf6ea; }
.hero__karte a { color: #fdf6ea; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,.4); }

/* ---------- Karten ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.karte {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.karte::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  border-radius: var(--radius) var(--radius) 0 0;
  background-image: linear-gradient(135deg, var(--messing) 25%, transparent 25%), linear-gradient(225deg, var(--messing) 25%, transparent 25%);
  background-size: 10px 10px;
  opacity: 0; transition: opacity .18s ease;
}
.karte:hover { transform: translateY(-4px); box-shadow: var(--schatten); border-color: #cbb694; }
.karte:hover::before { opacity: 1; }
.karte__icon { font-size: 1.6rem; margin-bottom: 10px; }
.karte p:last-child { margin-bottom: 0; }
.karte ul { margin: 0; padding-left: 1.1em; color: var(--text-leise); font-size: .95rem; }

.projekt { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linie); background: #fff; }
.projekt__bild {
  aspect-ratio: 4 / 3;
  background-color: var(--holz-600);
  background-image:
    repeating-linear-gradient(88deg, rgba(0,0,0,.12) 0 3px, rgba(255,255,255,.06) 3px 9px),
    radial-gradient(90% 70% at 30% 20%, rgba(255,214,160,.35), transparent 70%);
  display: grid; place-items: center;
  color: #f7e9d3; font-family: var(--serif); font-size: .95rem;
  letter-spacing: .04em; text-align: center; padding: 16px;
}
.projekt__body { padding: 20px 22px 24px; }
.projekt__meta { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--messing); }

/* ---------- Hinweis: Entwurfstext ---------- */
.entwurf {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: #fdf0d5; color: #8a5f22; border: 1px dashed #d8ab5e;
  padding: 5px 11px; border-radius: 999px; margin-bottom: 14px;
}
.hinweis {
  border-left: 4px solid var(--messing);
  background: #fdf6e9;
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem; color: #6b5433;
}

/* ---------- Kontakt / Formular ---------- */
.kontakt-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.daten { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.daten li { display: grid; gap: 2px; }
.daten span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--messing); }
.daten a, .daten strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--holz-800); text-decoration: none; }
.daten a:hover { text-decoration: underline; }

.form { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 30px; box-shadow: var(--schatten); }
.feld { margin-bottom: 18px; }
.feld label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
.feld input, .feld textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: .97rem;
  border: 1px solid var(--linie); border-radius: 8px; background: var(--papier);
  color: var(--text); transition: border-color .15s ease, box-shadow .15s ease;
}
.feld input:focus, .feld textarea:focus {
  outline: none; border-color: var(--messing); box-shadow: 0 0 0 3px rgba(192,138,62,.18); background: #fff;
}
.feld textarea { min-height: 150px; resize: vertical; }
.feld--zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.optional { font-weight: 400; color: var(--text-leise); }

/* Checkbox im Uiverse-Stil, reines CSS */
.dsgvo { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--text-leise); margin: 4px 0 22px; cursor: pointer; }
.dsgvo input { position: absolute; opacity: 0; width: 0; height: 0; }
.dsgvo .box {
  flex: none; width: 22px; height: 22px; border-radius: 6px; margin-top: 2px;
  border: 1px solid #c3ae8d; background: var(--papier);
  display: grid; place-items: center; transition: background .15s ease, border-color .15s ease;
}
.dsgvo .box::after {
  content: ""; width: 6px; height: 11px; border: 2px solid #fff; border-top: 0; border-left: 0;
  transform: rotate(42deg) scale(.4); opacity: 0; transition: transform .15s ease, opacity .15s ease;
}
.dsgvo input:checked + .box { background: var(--holz-700); border-color: var(--holz-700); }
.dsgvo input:checked + .box::after { opacity: 1; transform: rotate(42deg) scale(1); }
.dsgvo input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(192,138,62,.3); }

.form__status { margin-top: 16px; font-size: .93rem; color: var(--holz-700); min-height: 1.4em; }

/* ---------- Fußbereich ---------- */
.footer { padding: 66px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 34px; }
.footer h4 { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--messing); font-family: var(--sans); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .95rem; }
.footer a { color: #e3d3bd; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__unten {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .85rem; color: #c9b79c;
}

/* ---------- Rechtstexte ---------- */
.legal { max-width: 78ch; }
.legal h2 { margin-top: 2em; }
.legal dl { display: grid; gap: 6px; margin: 0 0 1.4em; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0 0 .5em; }
.legal ul { padding-left: 1.2em; }

/* ---------- Mobil ---------- */
@media (max-width: 960px) {
  .hero__grid, .kontakt-grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .burger { display: grid; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--papier); border-bottom: 1px solid var(--linie);
    padding: 14px 22px 22px; gap: 4px; display: none;
    box-shadow: var(--schatten);
  }
  .nav.offen { display: flex; }
  .nav a { padding: 13px 10px; border-bottom: 1px solid var(--linie); border-radius: 0; }
  .nav__cta { margin: 12px 0 0; justify-content: center; }
  .section { padding: 62px 0; }
  .hero { padding: 70px 0 64px; }
}
@media (max-width: 560px) {
  .grid--3, .grid--4, .grid--2, .feld--zwei { grid-template-columns: 1fr; }
  .marke__sub { display: none; }
}
