/* =========================================================
   Haarwerk Schneider — Haupt-Stylesheet
   Markenfarben: Salbeigrün #8AA493, Creme #F5F1E8
   ========================================================= */

/* ── Lokale Webfonts (selbst gehostet, DSGVO-konform) ────
   Inhaber-Hinweis: Schriftdateien unter /fonts/ ablegen.
   Bis dahin greifen die System-Font-Fallbacks.            */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: local('Cormorant Garamond');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: local('Inter');
}

/* ── Farbpalette & Tokens ──────────────────────────────── */
:root {
  --primary:        #8AA493;   /* Salbeigrün (Markenfarbe) */
  --primary-deep:   #4A6356;   /* Tieferes Waldgrün für Text/Akzent, AA-Kontrast */
  --primary-soft:   #DCE5DF;   /* Heller Salbei-Ton für Flächen */
  --cream:          #F5F1E8;   /* Creme (Markenfarbe), Haupt-Hintergrund */
  --card:           #FBF9F4;   /* Warmes Off-White für Karten */
  --ink:            #2E3A33;   /* Haupt-Textfarbe (dunkles Grün-Grau) */
  --ink-soft:       #5E6B63;   /* Sekundärtext */
  --line:           rgba(74, 99, 86, 0.14);
  --shadow:         0 18px 50px -28px rgba(46, 58, 51, 0.35);
  --radius:         18px;
  --radius-sm:      10px;
  --maxw:           1180px;
  --ease:           cubic-bezier(0.22, 1, 0.36, 1);

  --serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: var(--ink);
}

::selection { background: var(--primary); color: #fff; }

:focus-visible {
  outline: 2px solid var(--primary-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Layout-Helfer ─────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(64px, 11vw, 130px) 0; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: 18px;
  display: inline-block;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink-soft); max-width: 60ch; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 15px 30px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.btn-primary { background: var(--primary-deep); color: #fff; }
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--primary-deep); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* ── Header / Navigation ───────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 232, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
}
.brand .leaf { color: var(--primary); font-size: 0.8em; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--primary);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta { margin-left: 8px; }
.nav-links .nav-cta a { color: #fff; }
.nav-links .nav-cta a:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    padding: 12px 28px 28px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.45s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 18px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ── Hero ──────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(60px, 9vw, 120px) 0 clamp(60px, 9vw, 110px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.04;
  margin-bottom: 26px;
}
.hero h1 em { font-style: italic; color: var(--primary-deep); }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { position: relative; display: inline-block; width: 100%; }
.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--primary-soft);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  left: -22px; bottom: 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  max-width: 220px;
}
.hero-badge strong { font-family: var(--serif); font-size: 1.5rem; color: var(--primary-deep); display: block; }
.hero-badge span { font-size: 13px; color: var(--ink-soft); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 3 / 4; max-width: 460px; }
  .hero-badge { left: 16px; }
}

/* ── Section headings ──────────────────────────────────── */
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: 18px; }

/* ── Feature / Value cards ─────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ic {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-deep);
  margin-bottom: 20px;
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ── Service list ──────────────────────────────────────── */
.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row:hover { padding-left: 10px; }
.service-row .num { font-family: var(--serif); font-size: 1.5rem; color: var(--primary); width: 2.4ch; }
.service-row h3 { font-size: 1.6rem; margin-bottom: 6px; }
.service-row p { color: var(--ink-soft); font-size: 0.98rem; max-width: 60ch; }
@media (max-width: 700px) {
  .service-row { grid-template-columns: auto 1fr; gap: 18px; }
  .service-row .row-cta { grid-column: 1 / -1; }
}

/* ── Split / about ─────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 76px); align-items: center; }
.split.reverse .split-media { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }
.split-media {
  aspect-ratio: 5 / 6;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--primary-soft);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* ── Banded section (sage) ─────────────────────────────── */
.band { background: var(--primary-soft); }
.band-deep { background: var(--primary-deep); color: var(--cream); }
.band-deep h2, .band-deep h3 { color: #fff; }
.band-deep .lead, .band-deep p { color: rgba(245, 241, 232, 0.85); }
.band-deep .eyebrow { color: var(--primary-soft); }

/* ── Gallery ───────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery .tile {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--primary-soft);
  position: relative;
}
.gallery .tile.tall { aspect-ratio: 3 / 4; }
.gallery .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery .tile:hover img { transform: scale(1.05); }
.gallery .placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--primary-deep);
  font-family: var(--serif); font-size: 1.1rem;
  background: repeating-linear-gradient(45deg, var(--primary-soft), var(--primary-soft) 14px, #d3ded6 14px, #d3ded6 28px);
}
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ── CTA band ──────────────────────────────────────────── */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 18px; }
.cta-band .hero-actions { justify-content: center; margin-top: 30px; }

/* ── Forms ─────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ── Info list (contact) ───────────────────────────────── */
.info-list { list-style: none; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ic {
  flex: none; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-deep);
}
.info-list .ic svg { width: 20px; height: 20px; }
.info-list strong { display: block; font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: 0.03em; }
.info-list a, .info-list span { color: var(--ink-soft); text-decoration: none; }
.info-list a:hover { color: var(--primary-deep); }

/* ── Hours table ───────────────────────────────────────── */
.hours { list-style: none; }
.hours li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.hours li.closed span:last-child { color: var(--primary-deep); font-style: italic; }

/* ── Map (click to load) ───────────────────────────────── */
.map-shell {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--primary-soft);
  border: 1px solid var(--line);
}
.map-consent {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center;
  padding: 30px; gap: 14px;
}
.map-consent p { color: var(--ink-soft); font-size: 0.95rem; max-width: 42ch; }
.map-shell iframe { width: 100%; height: 100%; border: 0; }

/* ── WhatsApp float ────────────────────────────────────── */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(245, 241, 232, 0.78); padding-top: clamp(56px, 8vw, 88px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer p { color: rgba(245, 241, 232, 0.6); font-size: 0.95rem; max-width: 40ch; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { color: rgba(245, 241, 232, 0.66); text-decoration: none; font-size: 0.95rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--primary); }

/* ── Selenova Footer-Credit ── */
.selenova-credit {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', 'Inter', system-ui, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s ease;
}
.selenova-credit a {
  color: #fff;
  text-decoration: none;
  margin-left: 0.4em;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.selenova-credit a:hover {
  color: var(--primary);
  border-bottom-color: currentColor;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 48px;
}
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── Cookie / Consent banner ───────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 18px; right: 18px; bottom: 18px;
  z-index: 200;
  max-width: 520px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(46,58,51,0.45);
  padding: 22px 24px;
  transform: translateY(140%);
  transition: transform 0.5s var(--ease);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 16px; }
.cookie-banner p a { color: var(--primary-deep); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 11px 22px; font-size: 14px; }

/* ── Legal pages typography ────────────────────────────── */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 10px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.legal h3 { font-size: 1.15rem; margin: 26px 0 10px; font-family: var(--sans); font-weight: 600; }
.legal p, .legal li { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--primary-deep); }
.legal .updated { font-size: 0.85rem; color: var(--ink-soft); }

/* ── Animation: reveal on scroll ───────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Page hero (sub-pages) ─────────────────────────────── */
.page-hero { padding: clamp(56px, 9vw, 104px) 0 clamp(30px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 18px; }
.breadcrumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }
.breadcrumb a { color: var(--primary-deep); text-decoration: none; }
