/* Richtung 01 — Klassisch-warm. Voice: geölt, gestemmt, verlässlich.
   Palette: warmes Weiß + committed Waldgrün (Zunft, Tanne, Schwarzwald),
   Holztöne kommen aus den Fotos. Feedback 12.07.: weg vom Rost-/Orangeton.
   Typo: Bitter (Slab, Überschriften) + Karla (Fließtext). */

:root {
  --bg: oklch(0.97 0.005 75);
  --ink: oklch(0.25 0.02 60);
  --muted: oklch(0.45 0.025 60);
  --rust: oklch(0.37 0.07 155);       /* Trägerfarbe: tiefes Waldgrün */
  --rust-deep: oklch(0.29 0.06 158);
  --rust-ink: oklch(0.96 0.01 120);   /* Text auf Grün */
  --wood: oklch(0.62 0.09 65);
  --line: oklch(0.86 0.02 70);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Einheitliches Foto-Grading (alte Bilder wirken wärmer & satter) */
  --grade: contrast(1.06) saturate(1.1) brightness(1.01);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Karla", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

/* Foto-Grading auf allen Inhaltsbildern (Slider-Vorher behält seinen Alt-Look) */
.hero-img img, .ueber img, .galerie img, .ba img { filter: var(--grade); }
.ba .before { filter: sepia(0.55) saturate(0.55) contrast(0.88) brightness(0.92); }

:focus-visible { outline: 2.5px solid var(--rust); outline-offset: 3px; border-radius: 3px; }

.lede, .intro { text-wrap: pretty; }

h1, h2, h3 { font-family: "Bitter", serif; line-height: 1.15; margin: 0; text-wrap: balance; }

.container { max-width: 68rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* Kopf */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.875rem 0;
}

.brand { font-family: "Bitter", serif; font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand small { display: block; font-family: "Karla", sans-serif; font-weight: 400; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); }

.nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav a:not(.brand):not(.cta) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:not(.brand):not(.cta):hover { color: var(--rust); }

.cta {
  background: var(--rust);
  color: var(--rust-ink);
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 180ms var(--ease), translate 180ms var(--ease), box-shadow 180ms var(--ease);
}
.cta:hover { background: var(--rust-deep); translate: 0 -1px; box-shadow: 0 6px 16px oklch(0.3 0.06 155 / 0.28); }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 700; }
.hero .lede { font-size: 1.15rem; color: var(--muted); margin: 1.25rem 0 2rem; max-width: 46ch; }

.hero-actions { display: flex; gap: 0.875rem; flex-wrap: wrap; }

.btn-ghost {
  color: var(--rust);
  border: 1.5px solid var(--rust);
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.btn-ghost:hover { background: var(--rust); color: var(--rust-ink); }

.hero-img { position: relative; }
.hero-img img { border-radius: 6px; aspect-ratio: 4/5; object-fit: cover; box-shadow: 0 18px 50px oklch(0.3 0.05 50 / 0.25); }
.hero-img figcaption {
  position: absolute;
  left: -0.75rem; bottom: 1.25rem;
  background: var(--rust);
  color: var(--rust-ink);
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: 3px;
}

/* Zwischenband: Zahlen/Fakten auf Rost */
.band {
  background: var(--rust);
  color: var(--rust-ink);
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.band .fact b { display: block; font-family: "Bitter", serif; font-size: 1.9rem; font-weight: 700; }
.band .fact span { font-size: 0.95rem; opacity: 0.85; }

/* Sektionen */
section.block { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.block h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 0.75rem; }
.block .intro { color: var(--muted); max-width: 58ch; margin-bottom: 2.5rem; }

/* Leistungen: zweispaltige Definitionsliste, bewusst keine Kartengalerie */
.leistungen dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 3rem;
  margin: 0;
}

.leistungen .l-item { border-top: 2px solid var(--line); padding-top: 1rem; transition: border-color 200ms var(--ease); }
.leistungen .l-item:hover { border-top-color: var(--rust); }
.leistungen dt { font-family: "Bitter", serif; font-weight: 700; font-size: 1.15rem; }
.leistungen dd { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.98rem; }

/* Über uns */
.ueber { background: oklch(0.94 0.012 75); }
.ueber-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ueber img { border-radius: 6px; aspect-ratio: 3/4; object-fit: cover; }
.ueber .hinweis { font-size: 0.85rem; color: var(--muted); border-left: none; background: var(--bg); padding: 0.75rem 1rem; border-radius: 4px; margin-top: 1.5rem; }

/* Vorher/Nachher */
.ba-wrap { max-width: 52rem; margin: 0 auto; }

.ba {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/10;
  --pos: 50%;
  touch-action: none;
  box-shadow: 0 14px 40px oklch(0.3 0.05 50 / 0.2);
}

.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); filter: sepia(0.55) saturate(0.55) contrast(0.88) brightness(0.92); }

.ba .divider {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  background: var(--rust-ink);
  translate: -1px 0;
  pointer-events: none;
}

.ba .knob {
  position: absolute;
  top: 50%; left: var(--pos);
  translate: -50% -50%;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--rust);
  color: var(--rust-ink);
  display: grid; place-content: center;
  font-weight: 700;
  pointer-events: none;
  box-shadow: 0 4px 14px oklch(0 0 0 / 0.35);
}

.ba input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

.ba .tag {
  position: absolute;
  bottom: 0.875rem;
  background: oklch(0.2 0.02 60 / 0.75);
  color: oklch(0.97 0.01 75);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  pointer-events: none;
}
.ba .tag.links { left: 0.875rem; }
.ba .tag.rechts { right: 0.875rem; }

.ba-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 1rem; }

/* Referenzen */
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.galerie figure { margin: 0; position: relative; border-radius: 6px; overflow: hidden; }
.galerie img { aspect-ratio: 4/3; object-fit: cover; transition: scale 300ms var(--ease); }
.galerie figure:hover img { scale: 1.04; }
.galerie figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 0.875rem 0.75rem;
  background: linear-gradient(to top, oklch(0.2 0.03 50 / 0.8), transparent);
  color: oklch(0.97 0.01 75);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Kontakt */
.kontakt { background: var(--rust-deep); color: var(--rust-ink); }
.kontakt h2 { color: inherit; }
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.kontakt .intro { color: oklch(0.9 0.02 65); }

.kontakt address { font-style: normal; display: grid; gap: 0.875rem; font-size: 1.05rem; }
.kontakt address a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.kontakt .k-label { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; display: block; }

.zeiten { background: oklch(0.38 0.1 40); border-radius: 6px; padding: 1.5rem; }
.zeiten table { width: 100%; border-collapse: collapse; }
.zeiten td { padding: 0.35rem 0; }
.zeiten td:last-child { text-align: right; }
.zeiten .hinweis { font-size: 0.85rem; opacity: 0.8; margin-top: 0.75rem; }

/* Fußzeile */
footer { background: var(--ink); color: oklch(0.85 0.015 70); padding: 2rem 0; font-size: 0.9rem; }
.foot-grid { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer a { color: inherit; }

/* Einblendungen: sichtbarer Grundzustand, Animation nur als Verstärkung */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 700ms var(--ease) both; }
  @keyframes rise { from { opacity: 0.001; translate: 0 18px; } }
  .hero-img img { animation: rise 900ms var(--ease) both 150ms; }
}

/* Responsiv */
@media (max-width: 820px) {
  .hero-grid, .ueber-grid, .kontakt-grid { grid-template-columns: 1fr; }
  .leistungen dl { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .nav ul { display: none; }  /* Prototyp: mobil nur Brand + CTA */
  .hero-img figcaption { left: 0.75rem; }
}
