:root {
  --ink: #1d2124;
  --text: #4a4f54;
  --muted: #7d8287;
  --line: #e7e3dd;
  --tint: #f6f3ef;
  --white: #fff;
  --brown: #785134;
  --brown-dark: #5f3f28;
  --brown-light: #c9a57f;
  --radius: 14px;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Inter, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
.hidden { display: none; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: #c4c8cc; }

h1, h2, h3 { color: var(--ink); letter-spacing: -.025em; line-height: 1.1; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
.section--dark h2 { color: #fff; }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brown); margin-bottom: .8rem; }
.section--dark .kicker { color: var(--brown-light); }
.lead { font-size: 1.12rem; max-width: 34em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem; border: 1.5px solid transparent; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--primary { background: var(--brown); color: #fff; }
.btn--primary:hover { background: var(--brown-dark); }
.btn--ghost { border-color: #cfc9c1; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.link { display: inline-block; margin-top: 1.2rem; font-weight: 600; color: var(--brown); }
.link::after { content: " →"; }
.link:hover { color: var(--brown-dark); }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { display: grid; place-items: center; width: 52px; height: 44px; border: 3px solid #63625f; color: var(--brown); font-weight: 400; font-size: 1.35rem; letter-spacing: .02em; line-height: 1; }
.logo__text { font-size: .72rem; line-height: 1.2; color: var(--brown); font-weight: 500; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: .95rem; font-weight: 500; color: var(--ink); }
.nav a { padding: 4px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav a:hover { border-color: var(--brown); }

/* Hero */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 1.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 2.2rem; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .95rem; color: var(--ink); font-weight: 500; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 14px; height: 8px; border-left: 2px solid var(--brown); border-bottom: 2px solid var(--brown); transform: rotate(-45deg) translateY(-3px); }
.hero__img { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: 0 30px 60px -30px rgba(29,33,36,.35); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: settle 1.4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes settle { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }

/* Leistungen */
.head { margin-bottom: clamp(32px, 5vw, 56px); }
.head .lead { margin-top: 1rem; }
.head--row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.head--row .lead { margin: 0; max-width: 26em; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--tint); border-radius: var(--radius); padding: 28px 24px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(29,33,36,.35); }
.card__icon { width: 36px; height: 36px; fill: none; stroke: var(--brown); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .96rem; }

/* Vorher/Nachher */
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split__img { position: relative; border-radius: 20px; overflow: hidden; }
.split__img figcaption { position: absolute; inset: auto 0 14px 0; display: flex; justify-content: space-around; }
.split__img figcaption span { background: rgba(29,33,36,.78); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.split__text h2 { margin-bottom: 1rem; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 330px; gap: 14px; }
.g { position: relative; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--tint); }
.g--wide { grid-column: span 2; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.g:hover img { transform: scale(1.04); }
.g span { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .8rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; }

/* Kontakt */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__info h2 { margin-bottom: 1rem; }
.contact__list { margin-top: 2rem; display: grid; gap: 18px; color: #fff; }
.contact__list span { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #8b9096; margin-bottom: 2px; }
.contact__list a { font-size: 1.15rem; font-weight: 600; }
.contact__list a:hover { color: var(--brown-light); }
.form { background: #fff; color: var(--text); border-radius: 20px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; color: var(--ink); }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid #dcd7d0; border-radius: 10px; background: #fff; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(120,81,52,.15); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .85rem; color: var(--text); }
.check input { margin-top: 4px; accent-color: var(--brown); flex: none; }
.check a { text-decoration: underline; }

/* Footer */
.footer { background: #15181a; color: #8b9096; font-size: .9rem; padding: 24px 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; }
.footer a:hover { color: #fff; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(15,17,19,.92); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; }
.lightbox__close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* Dezente Einblendung */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Unterseiten */
.page { padding: clamp(48px, 7vw, 88px) 0; }
.page h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.6rem; }
.prose { max-width: 46em; }
.prose h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
.prose p { margin-bottom: .9rem; }
.prose a { color: var(--brown); text-decoration: underline; }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .header__inner { justify-content: space-between; height: 68px; }
  .hero__grid, .split, .contact { grid-template-columns: 1fr; }
  .hero__img { aspect-ratio: 4 / 3; order: -1; }
}
@media (max-width: 520px) {
  .btn--sm span { display: none; }
  .btn--sm { padding: 11px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; padding: 20px; }
  .card__icon { grid-row: span 2; margin: 0; }
  .row { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 160px; gap: 10px; }
  .actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__img img { animation: none; }
}
