/* ---------- Schriften (lokal, aus node_modules/@fontsource) ---------- */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('/fonts/barlow/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('/fonts/barlow/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('/fonts/barlow/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-condensed/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url('/fonts/barlow-condensed/barlow-condensed-latin-800-normal.woff2') format('woff2'); }

/* ---------- Grundwerte ---------- */
:root {
  --accent: #A63827;
  --accent-dark: #7E281B;
  --accent-on-dark: #E2725F;
  --ink: #1E1A17;
  --ink-soft: #2E2824;
  --muted: #4A433D;
  --label: #6A6058;
  --line: #E6DBC8;
  --sand: #F3EDE3;
  --on-dark: #E9E2D6;
  --on-dark-muted: #CFC6B8;
  --font: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --max: 1240px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent-on-dark); outline-offset: 2px; }
input, select, textarea, button { font: inherit; color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 104px; padding-bottom: 104px; }
.h2 { margin: 0 0 16px; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5vw, 72px); line-height: 1; }
.lead { margin: 0 0 48px; max-width: 34em; color: var(--muted); }
.muted { color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: 40px; }
.section-head .h2, .section-head .lead { margin: 0; }
.dark { background: var(--ink); color: #fff; }
.sand { background: var(--sand); }

/* ---------- Platzhalter für fehlende Fotos ---------- */
.ph { background-color: var(--line); background-image: repeating-linear-gradient(135deg, rgba(120,84,44,.10) 0 2px, transparent 2px 14px); display: flex; align-items: flex-end; padding: 16px; }
.ph-alt { background-color: #B9A68A; background-image: repeating-linear-gradient(45deg, rgba(60,40,20,.14) 0 2px, transparent 2px 12px); }
.ph-dark { background-color: #2B2521; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 16px); }
.ph-label { background: #fff; color: var(--muted); padding: 6px 12px; font-size: 14px; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 3px; border: 2px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 15px 30px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { color: var(--ink); }
.btn--outline-light { border-color: #fff; color: #fff; }
.btn--outline-light:hover { color: #fff; background: rgba(255,255,255,.1); }

/* ---------- Kopf ---------- */
.topbar { background: var(--ink); color: var(--on-dark); font-size: 15px; }
.topbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-top: 10px; padding-bottom: 10px; }
.topbar-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.topbar a { color: #fff; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 1px 0 var(--line); }
.site-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 30px; font-weight: 600; font-size: 17px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:not(.btn):hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; padding: 0; display: block; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-hint { position: absolute; right: 24px; top: 24px; background: rgba(0,0,0,.45); color: var(--on-dark); padding: 6px 12px; font-size: 13px; }
.hero-inner { position: relative; padding-top: 120px; padding-bottom: 128px; }
.hero-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(60px, 9vw, 140px); line-height: .9; }
.hero-title .line { display: block; }
.beam { height: 14px; width: min(560px, 80%); background: var(--accent); margin: 28px 0 32px; transform-origin: left center; }
.hero-text { margin: 0 0 36px; font-size: 21px; color: var(--on-dark); max-width: 32em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Leistungsband ---------- */
.band { background: var(--accent); color: #fff; border-bottom: 6px solid var(--ink); }
.band-inner { list-style: none; margin: 0 auto; padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 28px; font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.2; }
.band-inner li { display: flex; align-items: center; gap: 28px; }
.band-inner li + li::before { content: ''; width: 10px; height: 10px; background: var(--ink); }

/* ---------- Leistungen ---------- */
.svc { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.svc-list { display: none; }
.svc-panels { display: grid; gap: 64px; flex: 1 1 100%; }
.svc-panel { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.svc-panel-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1.1; }
.svc-img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius); }
.svc-text { margin: 0; font-size: 20px; color: var(--ink-soft); max-width: 34em; }
.zoom { overflow: hidden; border-radius: var(--radius); width: 100%; }
.zoom .zi { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.zoom:hover .zi { transform: scale(1.05); }

/* Mit JavaScript: Liste links, eine Leistung rechts */
.js .svc-list { display: flex; flex-direction: column; flex: 1 1 340px; min-width: 0; border-top: 2px solid var(--ink); }
.js .svc-panels { flex: 1.35 1 460px; min-width: 0; display: block; }
.js .svc-panel { display: none; }
.js .svc-panel.is-active { display: flex; animation: fadein .35s ease both; }
.js .svc-panel-title { display: none; }
.svc-tab { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 2px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1.1; }
.svc-tab::after { content: ''; width: 16px; height: 6px; background: #C9BBA5; flex: none; transition: width .2s ease; }
.svc-tab[aria-selected="true"] { background: var(--accent); color: #fff; border-bottom-color: var(--ink); font-weight: 800; }
.svc-tab[aria-selected="true"]::after { width: 40px; background: #fff; }
.svc-tab:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }

/* ---------- Ablauf ---------- */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; }
.step { border-top: 6px solid var(--accent); padding-top: 20px; }
.step-nr { display: block; font-family: var(--display); font-weight: 800; font-size: 88px; line-height: .9; color: #3F3732; }
.step-title { margin: 12px 0 8px; font-size: 23px; }
.step p { margin: 0; color: var(--on-dark-muted); }

/* ---------- Vorher/Nachher ---------- */
.ba { --pos: 50%; position: relative; height: 520px; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.ba-layer { position: absolute; inset: 0; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-layer > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after .ph { justify-content: flex-end; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; }
.ba-knob::before, .ba-knob::after { content: ''; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -5px; border: solid #fff; border-width: 0 0 3px 3px; }
.ba-knob::before { left: 11px; transform: rotate(45deg); }
.ba-knob::after { right: 11px; transform: rotate(-135deg); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:has(.ba-range:focus-visible) .ba-knob { box-shadow: 0 0 0 4px var(--ink); }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gallery-item { position: relative; margin: 0; height: 260px; }
.gallery-item > img, .gallery-item > .ph { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .ph-label { display: none; }
.gallery-item figcaption { position: absolute; left: 12px; bottom: 12px; background: #fff; padding: 6px 10px; font-size: 14px; }

/* ---------- Über uns ---------- */
.about { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.about > * { flex: 1 1 420px; min-width: 0; }
.about-figure { position: relative; padding-bottom: 48px; }
.about-img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius); align-items: flex-start; }
.mascot { position: absolute; right: -16px; bottom: 0; width: 190px; background: #fff; border-radius: var(--radius); padding: 10px; transform: rotate(4deg); box-shadow: 8px 8px 0 var(--accent); }
.signature { margin: 28px 0 0; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.2; }
.signature span { display: block; font-family: var(--font); font-weight: 500; font-size: 17px; color: var(--muted); }

/* ---------- Anruf-Block ---------- */
.callband { background: var(--accent); color: #fff; }
.callband-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 72px; padding-bottom: 72px; }
.callband-text { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; max-width: 16em; }
.callband-phone { color: #fff; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6vw, 84px); line-height: 1; border-bottom: 6px solid var(--ink); padding-bottom: 6px; }
.callband-phone:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- Kontakt ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-info { flex: 1 1 380px; min-width: 0; }
.contact-list { display: grid; gap: 20px; margin: 32px 0 0; font-size: 19px; }
.contact-list dt { font-size: 15px; color: var(--label); }
.contact-list dd { margin: 0; }
.big-link { color: var(--ink); font-weight: 600; text-decoration: none; font-size: 26px; }
.break { font-weight: 600; word-break: break-all; }
.form { flex: 1.2 1 440px; min-width: 0; background: var(--sand); border-top: 8px solid var(--accent); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.form-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.1; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 16px; }
.field input, .field select, .field textarea { padding: 12px 14px; border: 1px solid #A89B88; border-radius: 3px; background: #fff; min-height: 48px; font-weight: 400; }
.field textarea { resize: vertical; }
.field [aria-invalid="true"], .check [aria-invalid="true"] { border-color: var(--accent); outline: 2px solid var(--accent); }
.field-error { color: var(--accent-dark); font-weight: 600; font-size: 15px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.form-hint { margin: 0; font-size: 14px; color: var(--label); }
.form .btn { align-self: flex-start; border: none; }
.notice { margin: 0; padding: 12px 16px; border-radius: 3px; font-weight: 600; }
.notice--ok { background: #E3EEDF; color: #1F4A1A; }
.notice--error { background: #F6DEDA; color: var(--accent-dark); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Fuß ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding-top: 40px; padding-bottom: 40px; }
.footer-name { font-family: var(--display); font-weight: 700; font-size: 24px; color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.footer-nav a { color: #fff; padding: 10px 0; }

.text-page { max-width: 820px; }
.text-page p { white-space: pre-line; margin: 0 0 16px; }
.text-h { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.2; margin: 40px 0 8px; }

/* ---------- Bewegung ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes beam { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .25s; } .d3 { animation-delay: .4s; } .d4 { animation-delay: .7s; } .d5 { animation-delay: .9s; }
.beam { animation: beam 1s .55s cubic-bezier(.7,0,.2,1) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .beam, .js .svc-panel.is-active { animation: none; }
  .zoom .zi, .btn, .svc-tab::after { transition: none; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .hero-inner { padding-top: 80px; padding-bottom: 88px; }
  .band-inner { font-size: 22px; justify-content: flex-start; gap: 4px 20px; }
  .band-inner li + li::before { display: none; }
  .svc-tab { font-size: 28px; padding: 14px 16px; }
  .svc-img { height: 260px; }
  .ba { height: 360px; }
  .form { padding: 24px; }
  .mascot { width: 130px; right: 0; }
  /* Kompakter Kopf: Navigation wird später zum Menü-Button (nächster Baustein) */
  .topbar { display: none; }
  .site-header-inner { flex-wrap: nowrap; gap: 12px; }
  .logo img { height: 32px; }
  .nav a:not(.btn) { display: none; }
  .nav .btn { min-height: 44px; padding: 10px 16px; font-size: 16px; }
  .hero-hint { top: auto; bottom: 12px; left: 12px; right: 12px; font-size: 12px; }
}
