:root {
  --bg: #f3f0ea;
  --bg-soft: #e8e3da;
  --surface: #fbf9f5;
  --heading: #1b2229;
  --text: #2c343c;
  --muted: #55606a;
  --accent: #b5470f;
  --accent-dark: #8e360a;
  --line: #cfc8bb;
  --dark: #1b2229;
  --on-dark: #eef0f2;
  --copper: #c97a3d;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(27, 34, 41, 0.16);
  --head: "Segoe UI Semibold", "Helvetica Neue", Arial, system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-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(--body);
  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(--head);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

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

:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }

.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(--dark);
  color: var(--on-dark);
  border-bottom: 3px solid var(--copper);
}
.bar { display: flex; align-items: center; gap: 16px; height: calc(var(--header-h) - 3px); position: relative; }
.brand {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  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(--on-dark);
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s, color 0.18s;
}
.nav a:hover { color: #fff; border-bottom-color: var(--line); }
.nav a[aria-current="true"] { border-bottom-color: var(--copper); color: #fff; font-weight: 600; }

.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: 600;
  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 #44505b;
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

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

/* Hero: Drehknopf links, Text rechts */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
}
.hero img.bg { width: 100%; height: 232px; object-fit: cover; object-position: 28% 42%; }
.hero .wrap { padding-top: 32px; padding-bottom: 48px; }
.hero-copy { max-width: 620px; }
.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f2b98b;
  margin-bottom: 16px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw + 0.6rem, 3.5rem);
  margin-bottom: 16px;
}
.lead { font-size: clamp(1.05rem, 0.5vw + 1rem, 1.25rem); max-width: 50ch; margin-bottom: 24px; color: var(--on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; }
  .hero img.bg { height: 100%; min-height: 600px; object-position: 38% 45%; }
  .hero .wrap { display: flex; align-items: center; padding: 64px 48px; max-width: none; }
  .hero-copy { max-width: 520px; }
}
.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: #fff;
  font-weight: 600;
  text-underline-offset: 4px;
}

/* Kupferleiste mit Muffen */
.pipe { background: var(--surface); border-bottom: 1px solid var(--line); }
.pipe::before {
  content: "";
  display: block;
  height: 10px;
  background: linear-gradient(180deg, #e0a06a 0%, var(--copper) 45%, #8b4f22 100%);
}
.pipe ul {
  list-style: none;
  margin: 0 auto;
  padding: 24px 24px 32px;
  max-width: 1120px;
  display: grid;
  gap: 24px 32px;
}
.pipe li { display: flex; flex-direction: column; position: relative; padding-left: 24px; }
.pipe li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 100%;
  min-height: 24px;
  max-height: 56px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e0a06a, var(--copper), #8b4f22);
}
.pipe .k { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pipe .v { font-family: var(--head); font-size: 1.25rem; color: var(--heading); font-weight: 700; }
.pipe .v a { text-decoration: none; }
@media (min-width: 768px) { .pipe ul { grid-template-columns: repeat(3, 1fr); } }

/* 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); margin-bottom: 32px; max-width: 22ch; }

.angebot-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .angebot-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; } .angebot-grid .photo { order: -1; } }

.stufen { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--heading); }
.stufen li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.stufen .num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--copper);
  border-radius: 50%;
  font-family: var(--head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.stufen h3 { font-size: 1.4rem; margin-bottom: 4px; }
.stufen p { color: var(--muted); max-width: 48ch; }

.photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--dark); }
.photo img { width: 100%; height: auto; }
@media (min-width: 1024px) { .photo { position: sticky; top: 96px; } }

/* Kontakt */
.dark { background: var(--dark); color: var(--on-dark); }
.dark h2 { color: #fff; }
.kontakt .bignum {
  display: inline-block;
  font-family: var(--head);
  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; }
.contact a.mail { color: var(--on-dark); text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 768px) { .contact { grid-template-columns: 1fr 1fr; align-items: end; } }

/* Footer */
.site-footer { padding: 48px 0 96px; font-size: 0.95rem; border-top: 1px solid #36424d; }
.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(--dark);
  border-top: 3px solid var(--copper);
  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; }
}
