/* ==========================================================================
   BRUNNER HOLZBAU · Demo-Website (Zimmerei & Bedachungen)
   Eigenständiges Design (NICHT Causa-Schwarz/Weiss): warmes Anthrazit,
   Amber-Orange-Akzent, Holz-/Schiefer-Stimmung. Schrift: Manrope.
   --------------------------------------------------------------------------
   Diese Datei wird von index.html UND den Rechtsseiten genutzt.
   Farben/Abstände zentral hier oben anpassbar.
   ========================================================================== */

:root {
  --bg:           #15140f;   /* tiefes warmes Anthrazit (dunkle Sektionen)   */
  --bg-2:         #1f1d17;   /* etwas heller (Karten auf Dunkel)             */
  --hell:         #f6f2ea;   /* warmes Off-White (helle Sektionen)           */
  --hell-2:       #efe9dd;   /* Karten auf Hell                              */
  --text:         #1c1a14;   /* Haupttext auf Hell                           */
  --text-hell:    #f4efe6;   /* Text auf Dunkel                              */
  --muted:        #6f6757;   /* gedämpfter warmer Ton                        */
  --muted-hell:   #b6ad9c;   /* gedämpft auf Dunkel                          */
  --akzent:       #d98324;   /* Amber-Orange (Buttons, Highlights)          */
  --akzent-d:     #bd6c14;   /* dunkler beim Hover                           */
  --holz:         #9a7752;   /* Holzton (feine Akzente)                      */
  --rand:         rgba(28,26,20,.12);
  --rand-hell:    rgba(244,239,230,.14);
  --radius:       16px;
  --radius-s:     11px;
  --breite:       1180px;
  --schrift:      'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--schrift);
  background: var(--hell);
  color: var(--text);
  font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.dunkel { background: var(--bg); color: var(--text-hell); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--akzent); margin-bottom: 14px;
}
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
h2.titel { font-size: clamp(30px, 4.5vw, 46px); }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 620px; }
.dunkel .lead { color: var(--muted-hell); }
.zentriert { text-align: center; } .zentriert .lead { margin: 14px auto 0; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 15.5px;
  cursor: pointer; border: 2px solid transparent; transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--akzent); color: #fff; }
.btn-primary:hover { background: var(--akzent-d); }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-ghost:hover { background: rgba(217,131,36,.12); border-color: var(--akzent); color: var(--akzent); }
.btn-gross { padding: 17px 34px; font-size: 16.5px; }

/* ---- Causa-Demo-Balken (oben) ---------------------------------------- */
.demo-balken {
  background: #0f0e0b; color: #e9e3d6; font-size: 13.5px;
  text-align: center; padding: 9px 16px; letter-spacing: .01em;
}
.demo-balken a { color: var(--akzent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---- Kopf / Navigation ----------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21,20,15,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rand-hell); color: var(--text-hell);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.logo .mark { width: 30px; height: 30px; color: var(--akzent); }
.logo small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-hell); margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--text-hell); opacity: .82; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; color: var(--akzent); }
.nav-rechts { display: flex; align-items: center; gap: 16px; }
.burger { display: none; width: 44px; height: 40px; background: none; border: 1px solid var(--rand-hell); border-radius: 9px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; cursor: pointer; }
.burger span { width: 19px; height: 2px; background: var(--text-hell); }

/* ---- BILD-SYSTEM (nummerierte Platzhalter) ---------------------------
   <div class="bild" data-nr="01" data-motiv="…">
     <img src="bilder/01.jpg" alt="…" onerror="this.remove()">
   </div>
   → Fehlt die Datei, zeigt der Platz die Nummer + Motiv. Sobald
     bilder/01.jpg existiert, deckt das Foto den Platzhalter automatisch.
   --------------------------------------------------------------------- */
.bild {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(135deg, #26231b, #3a3327);
  aspect-ratio: 4 / 3;
}
.bild::after {
  content: 'Bild ' attr(data-nr) ' · ' attr(data-motiv);
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 22px; color: #c9bfa9; font-size: 13.5px; font-weight: 600;
  letter-spacing: .02em; line-height: 1.5;
}
.bild::before {
  content: attr(data-nr); position: absolute; top: 14px; left: 16px; z-index: 1;
  font-size: 13px; font-weight: 800; color: #15140f; background: var(--akzent);
  padding: 3px 10px; border-radius: 999px;
}
.bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; min-height: 86vh; display: flex; align-items: flex-end; color: #fff; }
.hero .bild { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; z-index: 0; }
.hero .bild::after { color: #7c7361; }
.hero-overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(15,14,11,.92) 0%, rgba(15,14,11,.45) 45%, rgba(15,14,11,.25) 100%); }
.hero-inhalt { position: relative; z-index: 2; padding: 0 0 84px; max-width: 740px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); }
.hero p { font-size: clamp(17px, 1.9vw, 21px); color: #e7e0d2; margin: 22px 0 34px; max-width: 600px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; color: #cdc4b1; font-size: 14.5px; font-weight: 600; }
.hero-trust span { display: flex; align-items: center; gap: 8px; }
.hero-trust .pkt { color: var(--akzent); }

/* ---- Leistungen ------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.karte { background: #fff; border: 1px solid var(--rand); border-radius: var(--radius); padding: 32px; transition: transform .18s, box-shadow .2s; }
.karte:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(28,26,20,.10); }
.karte .ikon { width: 52px; height: 52px; border-radius: 13px; background: rgba(217,131,36,.13); color: var(--akzent); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.karte h3 { font-size: 21px; margin-bottom: 10px; }
.karte p { color: var(--muted); font-size: 15.5px; }

/* ---- Erfahrung / Warum ------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.badge-jahre { display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 132px; height: 132px; border-radius: 50%; background: var(--akzent); color: #fff; margin-bottom: 26px; }
.badge-jahre b { font-size: 44px; font-weight: 800; line-height: 1; }
.badge-jahre span { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.check-liste { list-style: none; display: grid; gap: 15px; margin-top: 8px; }
.check-liste li { display: flex; gap: 13px; align-items: flex-start; font-size: 16px; }
.check-liste .hk { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--akzent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; margin-top: 1px; }

/* ---- Referenzen / Galerie -------------------------------------------- */
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ref { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--rand); }
.ref .bild { border-radius: 0; aspect-ratio: 4 / 3; }
.ref-text { padding: 18px 20px; }
.ref-text h4 { font-size: 17px; margin-bottom: 3px; }
.ref-text p { font-size: 13.5px; color: var(--muted); }

/* ---- Ablauf ----------------------------------------------------------- */
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.schritt .nr { font-size: 46px; font-weight: 800; color: rgba(217,131,36,.35); line-height: 1; margin-bottom: 12px; }
.dunkel .schritt .nr { color: rgba(217,131,36,.55); }
.schritt h3 { font-size: 20px; margin-bottom: 8px; }
.schritt p { color: var(--muted); font-size: 15px; }
.dunkel .schritt p { color: var(--muted-hell); }

/* ---- Testimonials ----------------------------------------------------- */
.stimme { background: var(--bg-2); border: 1px solid var(--rand-hell); border-radius: var(--radius); padding: 30px; }
.stimme .sterne { color: var(--akzent); letter-spacing: 3px; margin-bottom: 14px; }
.stimme blockquote { font-size: 17px; line-height: 1.6; color: var(--text-hell); margin-bottom: 18px; }
.stimme .wer { font-size: 14px; color: var(--muted-hell); font-weight: 600; }
.stimme .wer b { color: var(--text-hell); }

/* ---- FAQ -------------------------------------------------------------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--rand); }
.faq-frage { width: 100%; background: none; border: 0; cursor: pointer; display: flex; justify-content: space-between; gap: 18px;
  padding: 24px 4px; text-align: left; font-family: inherit; font-size: 18px; font-weight: 700; color: var(--text); }
.faq-frage .pm { color: var(--akzent); font-size: 24px; transition: transform .2s; flex-shrink: 0; }
.faq-item.offen .pm { transform: rotate(45deg); }
.faq-antwort { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-antwort p { padding: 0 4px 24px; color: var(--muted); font-size: 16px; }

/* ---- Kontakt / Offerte ------------------------------------------------ */
.kontakt-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.feld { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.feld label { font-size: 13.5px; font-weight: 600; color: var(--muted-hell); }
.feld input, .feld textarea {
  padding: 13px 15px; background: var(--bg-2); border: 1px solid var(--rand-hell); border-radius: var(--radius-s);
  color: #fff; font-family: inherit; font-size: 15px; outline: none; transition: border-color .2s; width: 100%;
}
.feld textarea { min-height: 110px; resize: vertical; }
.feld input:focus, .feld textarea:focus { border-color: var(--akzent); }
.feld-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kontakt-info { display: grid; gap: 16px; }
.info-zeile { display: flex; gap: 14px; align-items: flex-start; }
.info-zeile .ik { color: var(--akzent); flex-shrink: 0; margin-top: 2px; }
.info-zeile b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-hell); margin-bottom: 2px; }
.platz { color: var(--holz); font-style: italic; }   /* "Hier könnte … stehen" */
.check-zeile { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--muted-hell); margin: 4px 0 18px; }
.check-zeile a { color: var(--akzent); text-decoration: underline; }
.danke { color: var(--akzent); font-weight: 700; margin-top: 12px; display: none; }

/* ---- Footer ----------------------------------------------------------- */
.footer { background: #0f0e0b; color: var(--muted-hell); padding: 64px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--rand-hell); }
.footer h5 { color: var(--text-hell); font-size: 14px; letter-spacing: .04em; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a:hover { color: var(--akzent); }
.footer-unten { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; }
.footer-unten .rechts { display: flex; gap: 18px; }
.demo-hinweis { background: rgba(217,131,36,.1); border: 1px solid rgba(217,131,36,.3); border-radius: var(--radius-s);
  padding: 14px 18px; font-size: 13.5px; color: #d9cdb6; margin-top: 26px; }
.demo-hinweis b { color: var(--akzent); }

/* ---- Rechtsseiten (Fliesstext) --------------------------------------- */
.rechtstext { max-width: 800px; margin: 0 auto; padding: 60px 0; }
.rechtstext h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.rechtstext h2 { font-size: 21px; margin: 34px 0 10px; }
.rechtstext p, .rechtstext li { color: var(--muted); margin-bottom: 12px; }
.rechtstext ul { padding-left: 22px; }
.rechtstext a { color: var(--akzent); text-decoration: underline; }
.zurueck { display: inline-flex; align-items: center; gap: 7px; color: var(--akzent); font-weight: 700; margin-bottom: 28px; }

/* ---- Reveal beim Scrollen -------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.sichtbar { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   MOBILE · ab hier ist ALLES auf das Handy ausgelegt.
   Nur @media-Blöcke + das mobile-only Element .mobil-bar. Desktop bleibt
   unangetastet.
   ========================================================================== */

/* Feste Aktionsleiste: Standard versteckt, nur auf schmalen Screens sichtbar. */
.mobil-bar { display: none; }

/* ---- Tablet ----------------------------------------------------------- */
@media (max-width: 900px) {
  .grid-3, .galerie, .schritte { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .split, .kontakt-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ---- Handy (Hochformat) ----------------------------------------------- */
@media (max-width: 640px) {
  /* Rhythmus & Typo */
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  h2.titel { font-size: clamp(27px, 8vw, 38px); }
  .lead { font-size: 16.5px; }

  /* Hero im Hochformat: Text unten, gestapelte Vollbreit-Buttons */
  .hero { min-height: 84vh; }
  .hero-inhalt { padding: 0 0 90px; }
  .hero h1 { font-size: clamp(34px, 11vw, 50px); }
  .hero p { font-size: 16.5px; margin: 18px 0 26px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta .btn { width: 100%; }
  .hero-trust { gap: 8px 20px; margin-top: 24px; font-size: 13.5px; }

  /* Buttons fingerfreundlich */
  .btn { justify-content: center; }
  .btn-gross { padding: 16px 26px; }

  /* Alles einspaltig */
  .grid-3, .grid-2, .galerie, .schritte, .feld-2, .footer-top { grid-template-columns: 1fr !important; }
  .karte { padding: 26px; }
  .faq-frage { font-size: 16.5px; padding: 20px 2px; }

  /* ---- Vollbild-Navigation (App-Gefühl) ---- */
  /* backdrop-filter würde das fixe Overlay im Header einsperren -> mobil aus. */
  .header { backdrop-filter: none; background: rgba(21,20,15,.97); }
  .nav { height: 64px; }
  .nav-rechts .btn { display: none; }
  .nav-links { display: none; }
  .burger { display: flex; position: relative; z-index: 60; }
  .burger span { transition: transform .3s ease, opacity .2s ease; }
  .nav-links.offen {
    display: flex; position: fixed; inset: 0; z-index: 45;
    flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    background: rgba(16,15,11,.985); backdrop-filter: blur(6px); padding: 80px 24px 40px;
  }
  .nav-links.offen li { padding: 0; width: 100%; text-align: center; }
  .nav-links.offen a { display: inline-block; font-size: 28px; font-weight: 800; letter-spacing: -.01em;
    color: var(--text-hell); opacity: .92; padding: 12px 0; }
  .nav-links.offen a:hover { color: var(--akzent); opacity: 1; }
  /* Hamburger wird zum X (rein per CSS, sobald das Menü offen ist) */
  .nav-links.offen ~ .nav-rechts .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-links.offen ~ .nav-rechts .burger span:nth-child(2) { opacity: 0; }
  .nav-links.offen ~ .nav-rechts .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ---- Feste Aktionsleiste unten (Daumen-Reichweite) ---- */
  .mobil-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 10px;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom, 0px));
    background: rgba(16,15,11,.95); backdrop-filter: blur(12px); border-top: 1px solid var(--rand-hell);
  }
  .mobil-bar a { flex: 1; display: flex; align-items: center; justify-content: center; height: 50px;
    border-radius: 999px; font-weight: 700; font-size: 15px; }
  .mobil-bar .geist { border: 1.5px solid var(--rand-hell); color: var(--text-hell); }
  .mobil-bar .haupt { background: var(--akzent); color: #fff; }
  body:has(.mobil-bar) { padding-bottom: 74px; }
}
