/*
  ==========================================================================
  GEMEINSAMES AUSSEHEN ALLER SEITEN  (Datei: css/stil.css)
  ==========================================================================
  Die meisten Abstände und Farben stehen direkt im HTML (style="...").
  Hier stehen nur die Regeln, die auf allen Seiten gleich sind:
    1. Schriften (liegen im Ordner "schriften", nicht bei Google)
    2. Grundeinstellungen
    3. Handy-Leiste
    4. Vorher/Nachher-Knöpfe
    5. Projekte-Seite (Filter, Karten, Raum-Bilder)
    6. Karte auf der Kontaktseite

  FARBEN:  #6B3A1F Braun · #3F7A24 Grün · #2B1A10 Text · #4A3628 Fließtext
           #FBF7F1 Creme-Hintergrund · #EADFD2 Rahmenlinien · #E9F2E2 Hellgrün
  ==========================================================================
*/


/* ----------------------------- 1. SCHRIFTEN ----------------------------- */
/* Überschriften: Bricolage Grotesque · Fließtext: Source Sans 3            */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500; font-display: swap; src: url('../schriften/bricolage-grotesque-500.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url('../schriften/bricolage-grotesque-700.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap; src: url('../schriften/bricolage-grotesque-800.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url('../schriften/source-sans-3-400.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap; src: url('../schriften/source-sans-3-600.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 700; font-display: swap; src: url('../schriften/source-sans-3-700.woff2') format('woff2'); }


/* -------------------------- 2. GRUNDEINSTELLUNGEN ----------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #FBF7F1; color: #2B1A10;
  font-family: 'Source Sans 3', system-ui, sans-serif; font-size: 18px; line-height: 1.55;
}
img { max-width: 100%; }
a { color: #6B3A1F; }
a:hover { color: #3E200F; }
input, select, textarea, button { font: inherit; }
[hidden] { display: none !important; }

/* Gut sichtbarer Rahmen, wenn man mit der Tastatur (Tab-Taste) navigiert */
:focus-visible { outline: 3px solid #3F7A24; outline-offset: 2px; }

/* Wer in den Systemeinstellungen "Bewegung reduzieren" gewählt hat,
   bekommt kein sanftes Scrollen */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }


/* ---------------------------- 3. HANDY-LEISTE --------------------------- */
/* Unten auf dem Handy: "Anrufen" und "WhatsApp".
   Auf großen Bildschirmen ausgeblendet; dafür ist dort der Telefon-Knopf
   in der Kopfzeile (.dnav) zu sehen. */
.mbar { display: none; }
@media (max-width: 720px) {
  .mbar { display: flex; }
  .dnav { display: none !important; }
}


/* ------------------------ 4. VORHER/NACHHER-KNÖPFE ---------------------- */
/* Weiße Pille oben links auf dem Foto mit den Knöpfen "Vorher" / "Nachher" */
.vn-schalter {
  position: absolute; left: 14px; top: 14px;
  display: flex; gap: 4px; padding: 4px;
  border-radius: 999px; background: rgba(255,255,255,0.95);
}
.vn-knopf {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: transparent; color: #2B1A10; font-weight: 700; font-size: 15px; cursor: pointer;
}
.vn-knopf[aria-pressed="true"] { background: #6B3A1F; color: #FFFFFF; }


/* --------------------------- 5. PROJEKTE-SEITE -------------------------- */
/* Filter-Knöpfe oben ("Alle Projekte", "Innen", "Bad", "Außen & Garten") */
.filter-knopf {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid #EADFD2; background: #FFFFFF; color: #2B1A10; font-weight: 700; cursor: pointer;
}
.filter-knopf[aria-pressed="true"] { border-color: #6B3A1F; background: #6B3A1F; color: #FFFFFF; }

/* Eine Projektkarte: links großes Foto, rechts Text */
.projekt-karte {
  background: #FFFFFF; border: 1px solid #EADFD2; border-radius: 20px;
  overflow: hidden; display: flex; flex-wrap: wrap;
}
.projekt-bild { flex: 1.5 1 460px; min-width: 0; min-height: 380px; position: relative; background: #2B1A10; }
/* Das Foto füllt immer die ganze linke Hälfte der Karte */
.projekt-bild > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.bild-beschriftung {
  position: absolute; right: 14px; bottom: 14px; margin: 0; padding: 6px 12px;
  border-radius: 999px; background: rgba(43,26,16,0.85); color: #FFFFFF; font-size: 15px; font-weight: 700;
}
.projekt-text { flex: 1 1 340px; min-width: 0; padding: 30px 30px 32px; display: flex; flex-direction: column; gap: 12px; }
.projekt-text h2 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 28px; line-height: 1.15; }
.projekt-ort { margin: 0; font-size: 15px; font-weight: 700; color: #3F7A24; }
.projekt-beschreibung { margin: 0; color: #4A3628; }
.projekt-fakten { margin: 0; font-size: 15px; color: #6E5A4B; }

/* Kleine Raum-Bilder zum Umschalten */
.raeume-titel { margin: 8px 0 0; font-size: 15px; font-weight: 700; color: #6E5A4B; }
.raeume { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.raum-knopf {
  padding: 4px; border-radius: 10px; border: 2px solid #EADFD2; background: #FFFFFF;
  color: #2B1A10; cursor: pointer; text-align: left;
}
.raum-knopf[aria-pressed="true"] { border-color: #3F7A24; background: #E9F2E2; color: #1F3F10; }
.raum-knopf img { width: 100%; height: 64px; object-fit: cover; display: block; border-radius: 6px; }
.raum-knopf span { display: block; padding: 4px 2px 2px; font-size: 14px; font-weight: 700; line-height: 1.2; }

@media (max-width: 560px) {
  .projekt-bild { min-height: 260px; }
  .projekt-text { padding: 22px 20px 24px; }
  .vn-knopf { padding: 0 14px; }
}


/* ------------------------- 6. KARTE (KONTAKT) --------------------------- */
.karte iframe { width: 100%; height: 320px; border: 0; display: block; }
.karte.geladen { padding: 0 !important; display: block !important; }

/* Lange Internet-Adressen im Text dürfen umbrechen (sonst zu breit auf dem Handy) */
main a { overflow-wrap: anywhere; }

/* Lange Wörter in Überschriften notfalls umbrechen (Trennstellen im HTML mit &shy; setzen) */
h1, h2, h3 { overflow-wrap: break-word; }
