:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1f1c1a;
  --muted: #6b635c;
  --line: #e7e0d6;
  --accent: #b5703f;
  --accent-dark: #8f5530;
  --dark: #1a1715;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

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

a { color: var(--accent-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .3s, box-shadow .3s;
}

.site-header.scrolled,
.site-header.solid {
  background: rgba(250, 247, 242, .95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 52px; width: auto; }
.logo-dark { display: none; }
.scrolled .logo-light, .solid .logo-light, .nav-open .logo-light { display: none; }
.scrolled .logo-dark, .solid .logo-dark, .nav-open .logo-dark { display: block; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
}

.scrolled .nav-links a, .solid .nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform .3s, opacity .3s;
}

.scrolled .nav-toggle span, .solid .nav-toggle span { background: var(--ink); }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: url("images/tafel.jpg") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,16,13,.82) 0%, rgba(20,16,13,.45) 60%, rgba(20,16,13,.25) 100%);
}

.hero .container { position: relative; padding-top: 76px; }
.hero-content { max-width: 680px; }
.hero .eyebrow { color: #e8b48c; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 540px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.section { padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31,28,26,.08); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.6rem; }
.card-body p { color: var(--muted); margin: 0; font-size: .97rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.split-media { position: relative; }
.split-media img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

.split-media .badge {
  position: absolute;
  right: -24px;
  bottom: 40px;
  background: var(--accent);
  color: #fff;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.3;
  box-shadow: 0 18px 40px rgba(0,0,0,.15);
}

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }

.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .8rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.bg-alt { background: #f2ece3; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step { counter-increment: step; }

.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.step p { color: var(--muted); margin: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

.cta {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 120px 0;
  background: url("images/saal.jpg") center / cover no-repeat;
}

.cta::before { content: ""; position: absolute; inset: 0; background: rgba(20,16,13,.72); }
.cta .container { position: relative; max-width: 720px; }
.cta p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
}

.contact-info dl { margin: 2rem 0 0; }
.contact-info dt { font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-top: 1.4rem; }
.contact-info dd { margin: .2rem 0 0; font-size: 1.1rem; }
.contact-info dd a { color: var(--ink); text-decoration: none; }
.contact-info dd a:hover { color: var(--accent); }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form .full { grid-column: 1 / -1; }

.form label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .4rem;
}

.form input, .form select, .form textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: .97rem;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .2s, background .2s;
}

.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.form textarea { min-height: 140px; resize: vertical; }

.form .consent {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--muted);
  font-weight: 400;
}

.form .consent input { width: auto; margin-top: .3rem; accent-color: var(--accent); }

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 70px 0 30px;
  font-size: .95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.site-footer .logo { margin-bottom: 1.2rem; }
.site-footer .logo img { height: 60px; }
.site-footer .logo-light { display: block; }
.site-footer .logo-dark { display: none; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.8rem;
  font-size: .85rem;
}

.legal { padding: 150px 0 100px; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.legal h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.legal p, .legal li { color: #3b3632; }
.legal ul { padding-left: 1.2rem; }

.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; }
.legal-table th, .legal-table td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { width: 42%; font-weight: 600; padding-right: 1rem; }

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  transform: translateY(150%);
  transition: transform .4s ease;
}

.cookie-banner.show { transform: translateY(0); }
.cookie-banner h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.cookie-banner p { font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; }
.cookie-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: .7rem 1.3rem; font-size: .88rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .split-media .badge { right: 16px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .section { padding: 80px 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s, opacity .3s;
  }

  .nav-links a { color: var(--ink); display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-open { background: var(--bg); }
  .nav-open .nav-toggle span { background: var(--ink); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .form { grid-template-columns: 1fr; padding: 1.6rem; }
  .container { padding: 0 16px; }
  .cookie-banner { left: 16px; right: 16px; bottom: 16px; }
  .legal-table th { width: 45%; }
}

.legal { overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .legal-table th, .legal-table td { display: block; width: auto; padding: 0; border: 0; }
  .legal-table th { padding-top: .9rem; }
  .legal-table td { padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
}
