/* ==========================================================================
   SCHATTENFUCHS Design System
   Trust-first Fachbetrieb-Website, Raum Stuttgart
   Palette: Stone-Neutrals + Fuchs-Orange (Brandfarbe), Light Theme (Lock)
   Radius-Regel: Interaktiv (Buttons/Inputs) 12px, Container (Cards/Bilder) 18px
   Fonts: Outfit Variable, selbst gehostet (DSGVO)
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Farben */
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --surface-warm: #F4F1EC;
  --ink: #1C1917;
  --ink-soft: #44403C;
  --ink-muted: #6B6560;
  --line: #E7E2DB;
  --accent: #D9640F;        /* Fuchs-Orange, Interaktion/Highlights */
  --accent-deep: #B14E08;   /* Hover / Text-Links auf hell */
  --accent-soft: #FDF0E3;   /* getönte Flächen */
  --dark: #211D1A;          /* dunkle Sektionen/Footer */
  --dark-ink: #F5F1EB;
  --wa: #1FAF5E;            /* WhatsApp */
  --wa-deep: #178A4A;

  /* Typo */
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Radius-System (dokumentierte Regel) */
  --r-interactive: 12px;
  --r-container: 18px;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);

  --shadow-card: 0 1px 2px rgb(28 25 23 / 0.05), 0 8px 28px -12px rgb(120 85 45 / 0.18);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  font-weight: 650;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1em; max-width: 65ch; }
ul { padding-left: 1.2em; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.25rem); color: var(--ink-muted); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * 0.62); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.55rem;
  border-radius: var(--r-interactive);
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-muted); color: var(--ink); }
.btn-ghost-dark { background: transparent; color: var(--dark-ink); border-color: rgb(245 241 235 / 0.35); }
.btn-ghost-dark:hover { border-color: var(--dark-ink); color: var(--dark-ink); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.06rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(250 250 248 / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; flex: none; text-decoration: none; }
.nav-logo img { height: 34px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent-deep); }
.nav-cta { flex: none; display: flex; gap: 0.6rem; }
.nav-cta .btn { padding: 0.6rem 1.1rem; font-size: 0.94rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--r-interactive);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }

@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem var(--gutter) 1.1rem;
    margin: 0;
  }
  .nav.open .nav-links a { display: block; padding: 0.55rem 0; font-size: 1.05rem; }
  .nav.open .nav-cta {
    display: flex;
    position: absolute;
    top: calc(72px + var(--menu-h, 340px));
    left: 0;
    right: 0;
    padding: 0 var(--gutter) 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Hero (Split) ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 0.5em; }
.hero .lead { margin-bottom: 1.6em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.9rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.hero-points li { display: flex; gap: 0.6rem; align-items: baseline; color: var(--ink-soft); font-weight: 500; }
.hero-points svg { width: 1.05em; height: 1.05em; flex: none; color: var(--accent); transform: translateY(2px); }
.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: var(--r-container);
  box-shadow: var(--shadow-card);
}
.hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: var(--surface);
  border-radius: var(--r-interactive);
  box-shadow: var(--shadow-card);
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-badge svg { width: 1.2em; height: 1.2em; color: var(--accent); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 16 / 11; }
}

/* ---------- Produkt-Grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.product-card {
  position: relative;
  display: block;
  border-radius: var(--r-container);
  overflow: hidden;
  text-decoration: none;
  background: var(--dark);
  box-shadow: var(--shadow-card);
}
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  transition: transform 0.5s var(--ease), opacity 0.3s;
  opacity: 0.92;
}
.product-card:hover img { transform: scale(1.04); opacity: 1; }
.product-card .pc-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem 1.2rem 1.05rem;
  background: linear-gradient(to top, rgb(20 16 12 / 0.82), transparent);
  color: #fff;
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.product-card .pc-label svg { width: 1.1em; height: 1.1em; flex: none; transition: transform 0.25s var(--ease); }
.product-card:hover .pc-label svg { transform: translateX(4px); }
@media (max-width: 860px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .product-grid { grid-template-columns: 1fr; } .product-card img { aspect-ratio: 16 / 9; } }

/* ---------- Versprechen (Liste ohne Cards) ---------- */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem 3.5rem;
}
.promise {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
}
.promise-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-interactive);
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
}
.promise-icon svg { width: 24px; height: 24px; }
.promise h3 { margin-bottom: 0.25em; }
.promise p { margin: 0; color: var(--ink-muted); }
@media (max-width: 720px) { .promise-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---------- Ablauf ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li { counter-increment: step; position: relative; padding-top: 3.2rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.steps p { margin: 0; font-size: 0.95rem; color: var(--ink-muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; gap: 1.3rem; } .steps li { padding-top: 0; padding-left: 3.4rem; } .steps li::before { top: -0.35rem; } }

/* ---------- Dunkle Sektion (Region / CTA) ---------- */
.section-dark {
  background: var(--dark);
  color: rgb(245 241 235 / 0.82);
}
.section-dark h2, .section-dark h3 { color: var(--dark-ink); }
.section-dark .lead { color: rgb(245 241 235 / 0.72); }
.section-dark a:not(.btn) { color: #F1B278; }

.region-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.city-links { display: flex; flex-wrap: wrap; gap: 0.55rem; padding: 0; margin: 1.4rem 0 0; list-style: none; }
.city-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1.5px solid rgb(245 241 235 / 0.28);
  border-radius: var(--r-interactive);
  color: var(--dark-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.city-links a:hover { border-color: var(--accent); background: rgb(217 100 15 / 0.14); color: #fff; }
@media (max-width: 860px) { .region-grid { grid-template-columns: 1fr; } }

/* ---------- Kundenstimmen ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-container);
  padding: 1.6rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.quote .stars { color: var(--accent); display: flex; gap: 2px; }
.quote .stars svg { width: 17px; height: 17px; }
.quote blockquote { margin: 0; font-size: 1.02rem; color: var(--ink-soft); }
.quote figcaption { font-size: 0.92rem; color: var(--ink-muted); font-weight: 500; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--accent-deep); transition: transform 0.25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { color: var(--ink-muted); margin: 0 0 1rem; }

/* ---------- Kontakt-Kacheln & Formular ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.contact-tile {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-container);
  padding: 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}
.contact-tile .promise-icon { margin-bottom: 0.2rem; }
.contact-tile h3 { margin: 0; }
.contact-tile p { margin: 0; color: var(--ink-muted); font-size: 0.97rem; }
.contact-tile .btn { margin-top: auto; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: grid; gap: 0.4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; color: var(--ink); font-size: 0.97rem; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-interactive);
  padding: 0.75rem 0.95rem;
  width: 100%;
}
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-field ::placeholder { color: #8A837C; }
.form-hint { font-size: 0.88rem; color: var(--ink-muted); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgb(245 241 235 / 0.75);
  padding-block: 3.5rem 2rem;
  font-size: 0.97rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  margin-bottom: 2.8rem;
}
.site-footer h4 { color: var(--dark-ink); font-size: 1.02rem; margin-bottom: 0.8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: rgb(245 241 235 / 0.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-logo img { height: 30px; width: auto; margin-bottom: 1rem; }
.footer-meta {
  border-top: 1px solid rgb(245 241 235 / 0.14);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgb(245 241 235 / 0.55);
}
.footer-meta a { color: rgb(245 241 235 / 0.7); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: none;
  gap: 0.6rem;
  padding: 0.65rem var(--gutter);
  padding-bottom: calc(0.65rem + env(safe-area-inset-bottom));
  background: rgb(250 250 248 / 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { flex: 1; padding: 0.75rem 0.5rem; font-size: 0.97rem; }
@media (max-width: 720px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
}

/* ---------- Scroll-Reveal (dezent, reduced-motion-sicher) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.center p { margin-inline: auto; }
.mt-2 { margin-top: 2rem; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Ratgeber-Artikel ---------- */
.artikel { max-width: 760px; }
.artikel .meta { font-size: 0.92rem; color: var(--ink-muted); margin-bottom: 2rem; }
.artikel h2 { margin-top: 1.8em; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.artikel h3 { margin-top: 1.4em; }
.artikel .direktantwort {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-interactive) var(--r-interactive) 0;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0 2rem;
}
.artikel .direktantwort p { margin: 0; font-weight: 500; color: var(--ink); }
.artikel ul li { margin-bottom: 0.35em; }
.ratgeber-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.ratgeber-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-container);
  padding: 1.5rem 1.5rem 1.3rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s var(--ease);
}
.ratgeber-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ratgeber-card .rc-thema { font-size: 0.85rem; font-weight: 600; color: var(--accent-deep); text-transform: uppercase; letter-spacing: 0.05em; }
.ratgeber-card h3 { margin: 0.35em 0 0.35em; color: var(--ink); }
.ratgeber-card p { margin: 0; color: var(--ink-muted); font-size: 0.96rem; }
@media (max-width: 720px) { .ratgeber-grid { grid-template-columns: 1fr; } }

/* ---------- Referenz-Projektseite ---------- */
.ref-fakten { display: flex; flex-wrap: wrap; gap: 0.55rem; padding: 0; margin: 1.2rem 0 0; list-style: none; }
.ref-fakten li { padding: 0.45rem 0.95rem; background: var(--accent-soft); color: var(--accent-deep); border-radius: var(--r-interactive); font-weight: 600; font-size: 0.92rem; }
.ref-galerie { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.ref-galerie figure { margin: 0; }
.ref-galerie figcaption { font-size: 0.9rem; color: var(--ink-muted); margin-top: 0.5rem; }
.platzhalter {
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--accent);
  border-radius: var(--r-container);
  background: repeating-linear-gradient(45deg, var(--accent-soft), var(--accent-soft) 14px, var(--surface) 14px, var(--surface) 28px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.95rem;
}
.platzhalter.quer { aspect-ratio: 16 / 9; }
@media (max-width: 720px) { .ref-galerie { grid-template-columns: 1fr; } }
