/* =================================================================
   style.css — Tischler-/Schreiner-Website
   Holz-Farbwelt, klar und ruhig. Mobile-first, responsive.
   ================================================================= */

:root {
  --holz-dunkel: #3b2a1d;
  --holz: #6b4a2b;
  --holz-hell: #a9794d;
  --sand: #f3ece3;
  --sand-dunkel: #e7dccb;
  --creme: #faf6f0;
  --text: #2a211a;
  --text-leise: #6a5d50;
  --weiss: #ffffff;
  --akzent: #b5651d;          /* warmes Orange-Braun für CTAs */
  --akzent-dunkel: #934f12;
  --notfall: #b23535;
  --rahmen: #e0d6c8;
  --schatten: 0 4px 18px rgba(59, 42, 29, 0.10);
  --schatten-stark: 0 10px 34px rgba(59, 42, 29, 0.16);
  --radius: 10px;
  --radius-gross: 18px;
  --max: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--creme);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--akzent-dunkel); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--holz-dunkel); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.2rem; }

.section { padding: 4rem 0; }
.section--sand { background: var(--sand); }
.section--dunkel { background: var(--holz-dunkel); color: var(--sand); }
.section--dunkel h2, .section--dunkel h3 { color: var(--weiss); }

.section-titel { text-align: center; margin-bottom: 0.5rem; }
.section-intro { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; color: var(--text-leise); }

/* ---------- Buttons / CTA ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primaer { background: var(--akzent); color: #fff; box-shadow: var(--schatten); }
.btn--primaer:hover { background: var(--akzent-dunkel); }
.btn--sekundaer { background: transparent; color: var(--holz-dunkel); border-color: var(--holz); }
.btn--sekundaer:hover { background: var(--holz); color: #fff; }
.btn--hell { background: #fff; color: var(--holz-dunkel); }
.btn--notfall { background: var(--notfall); color: #fff; }
.btn--notfall:hover { background: #8f2929; }
.btn--gross { padding: 1rem 2rem; font-size: 1.1rem; }

/* ---------- Top-Bar (Kontakt) ---------- */
.topbar {
  background: var(--holz-dunkel);
  color: var(--sand);
  font-size: .9rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: .4rem;
  padding-bottom: .4rem;
  flex-wrap: wrap;
}
.topbar a { color: var(--sand); }
.topbar__rechts { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- Navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--weiss); box-shadow: var(--schatten); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1.2rem;
  max-width: var(--max);
  margin: 0 auto;
}
.nav__logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; color: var(--holz-dunkel); }
.nav__logo img { height: 44px; width: auto; }
.nav__logo:hover { text-decoration: none; }

.nav__toggle {
  display: none;
  background: none; border: none;
  font-size: 1.7rem; cursor: pointer; color: var(--holz-dunkel);
  line-height: 1;
}
.nav__menu { display: flex; align-items: center; gap: .3rem; list-style: none; }
.nav__menu a {
  display: block;
  padding: .55rem .8rem;
  color: var(--text);
  border-radius: var(--radius);
  font-weight: 500;
}
.nav__menu a:hover, .nav__menu a.aktiv { background: var(--sand); color: var(--holz-dunkel); text-decoration: none; }
.nav__menu .btn { margin-left: .4rem; padding: .55rem 1.1rem; }

/* Dropdown Leistungen */
.nav__drop { position: relative; }
.nav__drop > a::after { content: " ▾"; font-size: .75rem; }
.nav__submenu {
  position: absolute; top: 100%; left: 0;
  background: #fff; box-shadow: var(--schatten-stark);
  border-radius: var(--radius); list-style: none;
  min-width: 250px; padding: .4rem; display: none;
}
.nav__drop:hover .nav__submenu { display: block; }
.nav__submenu a { padding: .55rem .7rem; font-weight: 500; }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; box-shadow: var(--schatten-stark);
    padding: .6rem; gap: .1rem;
    display: none;
  }
  .nav__menu.offen { display: flex; }
  .nav__submenu { position: static; display: block; box-shadow: none; padding-left: 1rem; min-width: 0; }
  .nav__drop > a::after { content: ""; }
  .nav__menu .btn { margin: .4rem 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(40,28,18,.62), rgba(40,28,18,.62)),
    url("../images/hero.jpg") center/cover no-repeat, var(--holz-dunkel);
  color: #fff;
  padding: 5.5rem 0;
}
.hero h1 { color: #fff; margin-bottom: 1rem; max-width: 16ch; }
.hero p { font-size: 1.2rem; max-width: 56ch; margin-bottom: 1.8rem; color: #f3ece3; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__ort { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.15); padding: .35rem .9rem; border-radius: 100px; font-size: .95rem; margin-bottom: 1.2rem; }

/* ---------- Vertrauenssignale-Leiste ---------- */
.trust-bar { background: var(--sand-dunkel); }
.trust-bar .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem; padding: 1.2rem; text-align: center; }
.trust-bar__item { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--holz-dunkel); }
.trust-bar__item .sterne { color: #e0a52a; letter-spacing: 1px; }

/* ---------- Karten-Raster ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--rahmen);
  border-radius: var(--radius-gross);
  padding: 1.6rem;
  box-shadow: var(--schatten);
  transition: transform .15s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--schatten-stark); }
.card__icon { font-size: 2rem; margin-bottom: .6rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-leise); flex: 1; }
.card__link { margin-top: 1rem; font-weight: 600; }
.card__link::after { content: " →"; }

/* Leistungskarte als ganzer Link */
a.card { color: inherit; }
a.card:hover { text-decoration: none; }

/* ---------- Vorteil-Liste ---------- */
.vorteile { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.vorteil { background: #fff; border-radius: var(--radius); padding: 1.3rem; border-left: 4px solid var(--akzent); box-shadow: var(--schatten); }
.vorteil h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.vorteil p { color: var(--text-leise); margin: 0; }

/* ---------- Ablauf-Schritte ---------- */
.ablauf { counter-reset: schritt; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ablauf__schritt { position: relative; background: #fff; border-radius: var(--radius); padding: 1.4rem 1.3rem 1.3rem; box-shadow: var(--schatten); border-top: 4px solid var(--holz); }
.ablauf__schritt::before {
  counter-increment: schritt; content: counter(schritt);
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--akzent); color: #fff; font-weight: 700; margin-bottom: .7rem;
}
.ablauf__schritt h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.ablauf__schritt p { color: var(--text-leise); margin: 0; font-size: .96rem; }

/* ---------- Leistungs-Detailseite ---------- */
.leistung-hero { background: var(--sand); padding: 3rem 0; }
.leistung-hero .breadcrumb { font-size: .9rem; color: var(--text-leise); margin-bottom: 1rem; }
.leistung-hero .breadcrumb a { color: var(--text-leise); }
.leistung-block { margin-bottom: 2.5rem; }
.leistung-block h2 { margin-bottom: .8rem; }
.merkmal-liste { list-style: none; display: grid; gap: 1.2rem; }
.merkmal-liste li { background: #fff; border: 1px solid var(--rahmen); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.merkmal-liste h3 { font-size: 1.1rem; margin-bottom: .35rem; color: var(--holz); }
.merkmal-liste p { margin: 0; color: var(--text-leise); }
.info-box { background: var(--sand); border-radius: var(--radius); padding: 1.4rem 1.6rem; border-left: 4px solid var(--holz-hell); }

/* ---------- Referenzen ---------- */
.referenz { overflow: hidden; padding: 0; }
.referenz img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--sand-dunkel); }
.referenz__body { padding: 1.3rem 1.4rem 1.5rem; }
.referenz__kat { display: inline-block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--akzent-dunkel); font-weight: 700; margin-bottom: .4rem; }
.referenz__material { font-size: .9rem; color: var(--text-leise); margin-top: .5rem; }

.stimme { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--schatten); border-top: 4px solid var(--akzent); }
.stimme p { font-style: italic; font-size: 1.05rem; }
.stimme cite { font-style: normal; font-weight: 600; color: var(--holz-dunkel); }

/* ---------- FAQ (native details) ---------- */
.faq-item { background: #fff; border: 1px solid var(--rahmen); border-radius: var(--radius); margin-bottom: .8rem; overflow: hidden; }
.faq-item summary { padding: 1.1rem 1.3rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; color: var(--holz-dunkel); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--akzent); line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-antwort { padding: 0 1.3rem 1.2rem; color: var(--text-leise); }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--holz-dunkel); color: #fff; text-align: center; padding: 3.5rem 0; }
.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { color: var(--sand); max-width: 60ch; margin: 0 auto 1.6rem; }
.cta-band .btn { margin: .3rem; }

/* ---------- Formular ---------- */
.form { max-width: 680px; margin: 0 auto; background: #fff; padding: 2rem; border-radius: var(--radius-gross); box-shadow: var(--schatten); }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--holz-dunkel); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: .75rem .85rem; border: 1px solid var(--rahmen);
  border-radius: var(--radius); font: inherit; background: var(--creme);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: 2px solid var(--akzent); border-color: var(--akzent); background: #fff; }
.form-row textarea { min-height: 130px; resize: vertical; }
.form__hinweis { font-size: .9rem; color: var(--text-leise); }
.form-grid { display: grid; gap: 0 1.2rem; grid-template-columns: 1fr 1fr; }
.form__erfolg { background: #e7f3e3; border: 1px solid #b6d8a8; color: #2f5c20; padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.2rem; display: none; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Kontakt-Spalten ---------- */
.kontakt-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1.4fr; align-items: start; }
.kontakt-info { background: var(--sand); border-radius: var(--radius-gross); padding: 1.8rem; }
.kontakt-info dt { font-weight: 700; color: var(--holz-dunkel); margin-top: 1rem; }
.kontakt-info dd { margin: 0; }
.kontakt-info a { font-size: 1.05rem; }
@media (max-width: 820px) { .kontakt-grid { grid-template-columns: 1fr; } }

/* ---------- Notfall-Box ---------- */
.notfall-box { background: #fbe9e9; border: 2px solid var(--notfall); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 1.5rem 0; }
.notfall-box h3 { color: var(--notfall); margin-bottom: .4rem; }
.notfall-box .tel { font-size: 1.5rem; font-weight: 800; color: var(--notfall); }

/* ---------- Kalkulator ---------- */
.kalk { max-width: 680px; margin: 0 auto; }
.kalk-ergebnis { background: var(--holz-dunkel); color: #fff; border-radius: var(--radius-gross); padding: 1.8rem; text-align: center; margin-top: 1.5rem; }
.kalk-ergebnis .betrag { font-size: 2.4rem; font-weight: 800; color: #fff; }
.kalk-ergebnis small { color: var(--sand); display: block; margin-top: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--holz-dunkel); color: var(--sand); padding: 3rem 0 1.5rem; }
.site-footer a { color: var(--sand); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-grid h4 { color: #fff; margin-bottom: .9rem; font-size: 1.05rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: .4rem; }
.footer__logo img { height: 50px; margin-bottom: .8rem; }
.footer__kontakt p { margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.2rem; font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; color: #cdbfae; }
.footer-bottom a { color: #cdbfae; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Hilfsklassen ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.lead { font-size: 1.15rem; color: var(--text-leise); }
.platzhalter-bild { background: var(--sand-dunkel); display: flex; align-items: center; justify-content: center; color: var(--text-leise); font-size: .9rem; min-height: 220px; border-radius: var(--radius); }

/* sichtbar nur für Screenreader */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- einfache Scroll-Einblendung ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
