:root {
  --bg: #f4efe6;
  --bg-soft: #e9e1d2;
  --surface: #fffcf6;
  --heading: #2a2330;
  --text: #3a3340;
  --muted: #5d5562;
  --accent: #8f3a26;
  --accent-dark: #6e2a1a;
  --line: #d6ccba;
  --dark: #2a2330;
  --on-dark: #f4efe6;
  --sw1: #8f3a26;
  --sw2: #c58a2e;
  --sw3: #7b8a63;
  --sw4: #2f4a63;
  --sw5: #d9cdb4;
  --sw6: #6a3d5c;
  --sw7: #b8624a;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(42, 35, 48, 0.16);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --header-h: 64px;
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@view-transition { navigation: auto; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(17px, 0.4vw + 16px, 19px);
  line-height: 1.6;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.dark :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 16px; height: var(--header-h); position: relative; }
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--heading);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav { display: none; gap: 32px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s, color 0.18s;
}
.nav a:hover { color: var(--accent-dark); }
.nav a[aria-current="true"] { border-bottom-color: var(--accent); color: var(--heading); font-weight: 700; }

.hcall {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s;
}
.hcall:hover { background: var(--accent-dark); }
.hcall svg, .nav-toggle svg { width: 20px; height: 20px; flex: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--heading);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 767px) {
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { min-height: 48px; border-bottom: 1px solid var(--line); }
}
@media (min-width: 768px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .hcall { display: inline-flex; }
}

/* Hero: headline left, curtain photo right, a strip of fabric swatches under both */
.hero { padding: 48px 0 0; scroll-margin-top: 80px; }
.hero-grid { display: grid; gap: 32px; align-items: end; }
.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2rem, 3.6vw + 1rem, 3.75rem); margin-bottom: 16px; max-width: 16ch; }
.lead { font-size: clamp(1.05rem, 0.4vw + 1rem, 1.2rem); max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }

.hero-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--on-dark); color: var(--dark); }
.btn-light:hover { background: #fff; }
.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--heading);
  font-weight: 700;
  text-underline-offset: 4px;
}

.swatches { display: flex; height: 48px; margin-top: 48px; }
.swatches span { flex: 1; }
.swatches span:nth-child(1) { background: var(--sw1); }
.swatches span:nth-child(2) { background: var(--sw2); }
.swatches span:nth-child(3) { background: var(--sw3); }
.swatches span:nth-child(4) { background: var(--sw4); }
.swatches span:nth-child(5) { background: var(--sw5); }
.swatches span:nth-child(6) { background: var(--sw6); }
.swatches span:nth-child(7) { background: var(--sw7); }

@media (min-width: 900px) {
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
  .hero-photo img { aspect-ratio: 4 / 5; }
  .swatches { margin-top: 64px; height: 64px; }
}

/* Sections */
.section { padding: 64px 0; scroll-margin-top: 80px; }
@media (min-width: 1024px) { .section { padding: 96px 0; } }
.section-title { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.75rem); max-width: 20ch; }
.section-intro { max-width: 52ch; margin-top: 16px; }

/* Leistungen: three rows of unequal weight */
.rows { display: grid; gap: 64px; margin-top: 48px; }
.row { display: grid; gap: 24px; align-items: center; }
.row h3 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.25rem); margin-bottom: 16px; }
.row p { max-width: 52ch; }
.row ul { list-style: none; margin: 24px 0 0; padding: 0; border-top: 2px solid var(--heading); max-width: 52ch; }
.row li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.row .tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); }
.photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.photo-wide img { aspect-ratio: 4 / 3; }

@media (min-width: 900px) {
  .rows { gap: 96px; }
  .row { grid-template-columns: 1fr 1fr; gap: 64px; }
  .row.flip .photo { order: 2; }
  .row.solo { grid-template-columns: 1.1fr 0.9fr; }
}

/* Beratung */
.beratung { background: var(--bg-soft); }
.way-grid { display: grid; gap: 32px; margin-top: 48px; }
.way { border-top: 2px solid var(--heading); padding-top: 16px; }
.way h3 { font-size: 1.5rem; margin-bottom: 8px; }
.way p { max-width: 44ch; }
@media (min-width: 900px) {
  .way-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* Kontakt */
.dark { background: var(--dark); color: var(--on-dark); }
.dark h2 { color: #fff; }
.kontakt h2 { margin-bottom: 32px; }
.kontakt .bignum {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 6vw + 1rem, 4.5rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
  margin-bottom: 32px;
  min-height: 44px;
}
.contact { display: grid; gap: 32px; }
.contact address { font-style: normal; font-size: 1.15rem; }
.contact .small { margin-top: 16px; max-width: 44ch; }
.contact a { text-underline-offset: 4px; }
.hours { list-style: none; margin: 0 0 32px; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.24); max-width: 360px; }
@media (min-width: 768px) { .contact { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Footer */
.site-footer { padding: 48px 0 96px; font-size: 0.95rem; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer .name { font-weight: 700; color: #fff; }
.site-footer .links { display: flex; gap: 24px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-underline-offset: 4px; }
@media (min-width: 768px) { .site-footer { padding-bottom: 48px; } }

/* Call bar (phones) */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 8px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateY(110%);
  transition: transform 0.3s ease-out;
}
.callbar.show { transform: translateY(0); }
.callbar .btn { width: 100%; }
@media (min-width: 768px) { .callbar { display: none; } }

/* Legal */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.35rem; margin: 32px 0 8px; }
.legal p, .legal li { max-width: 65ch; }
.legal ul { padding-left: 24px; }
.todo { background: #f4d9a8; color: #4a2c00; padding: 0 4px; border-radius: 4px; }

/* Reveal: only with JS and motion allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
  .js .rv.in { opacity: 1; transform: none; }
}
