:root {
  --braun: #3E2B1C;
  --braun-2: #5a4330;
  --gold: #B99553;
  --gold-hell: #D8BD83;
  --sand: #EAE0CE;
  --creme: #F7F4EB;
  --weiss: #ffffff;
  --text: #2a2018;
  --text-2: #6b5d4f;
  --linie: #e2d8c6;
  --radius: 10px;
  --serif: Cambria, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--creme); line-height: 1.65; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--braun); }
h1, h2, h3 { font-family: var(--serif); color: var(--braun); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 .6rem; }
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 62ch; }
section { padding: clamp(56px, 8vw, 104px) 0; }
.sand { background: var(--sand); }
.dunkel { background: var(--braun); color: var(--creme); }
.dunkel h2, .dunkel h3 { color: var(--creme); }
.dunkel .lead { color: #d9cdb8; }

/* Kopfzeile */
header { position: sticky; top: 0; z-index: 50; background: rgba(247,244,235,.96); border-bottom: 1px solid var(--linie); backdrop-filter: saturate(1.2); }
.kopf { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--braun); }
.marke img { width: 46px; height: 46px; }
.marke span { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
nav a { text-decoration: none; font-size: .95rem; color: var(--text); }
nav a:hover { color: var(--gold); }
.knopf { display: inline-flex; align-items: center; gap: 8px; background: var(--braun); color: var(--creme); text-decoration: none; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 2px solid var(--braun); }
.knopf:hover { background: var(--braun-2); }
.knopf.hell { background: transparent; color: var(--braun); }
.knopf.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.dunkel .knopf.hell { color: var(--creme); border-color: var(--creme); }
.menue-knopf { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--braun); cursor: pointer; }

/* Start */
.held { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(40px, 6vw, 80px) 0; }
.held h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: .25em; }
.held h1 em { font-style: normal; color: var(--gold); }
.held .knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.held-bild { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 18px 50px -24px rgba(62,43,28,0.60); }
.held-bild img { width: 100%; height: 100%; object-fit: cover; }
.siegel { position: absolute; left: 16px; bottom: 16px; background: var(--creme); border-radius: 12px; padding: 10px 14px; font-size: .85rem; color: var(--braun); font-weight: 600; }
.punkte { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; padding: 0; list-style: none; color: var(--text-2); font-size: .95rem; }
.punkte li::before { content: "✓ "; color: var(--gold); font-weight: 700; }

/* Leistungen */
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 36px; }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: 14px; padding: 26px; }
.karte .nr { font-family: var(--serif); color: var(--gold); font-size: 1.05rem; }
.karte ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--text-2); }
.karte li { margin: .15rem 0; }

/* Oberflächen */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.filter button { font: inherit; font-size: .92rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--braun); background: transparent; color: var(--braun); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--braun); color: var(--creme); }
.gruppe { margin-top: 34px; }
.gruppe > h3 { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--linie); padding-bottom: 10px; }
.gruppe > h3 small { font-family: var(--sans); font-weight: 400; font-size: .9rem; color: var(--text-2); }
.finishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 18px; }
.finish { background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.finish .muster { height: 150px; background-color: #e3d6bf; position: relative; }
.finish .muster img { width: 100%; height: 100%; object-fit: cover; }
.finish .inhalt { padding: 16px 18px 18px; }
.finish h4 { margin: 0 0 4px; font-family: var(--serif); color: var(--braun); font-size: 1.12rem; }
.finish p { margin: 0; font-size: .93rem; color: var(--text-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: .74rem; padding: 3px 9px; border-radius: 999px; background: var(--sand); color: var(--braun); }
/* gezeichnete Struktur-Muster (ohne Fotos) */
.m-kratz { background-image: radial-gradient(circle at 20% 30%, rgba(62,43,28,0.47) 1.2px, transparent 1.6px), radial-gradient(circle at 70% 60%, rgba(62,43,28,0.36) 1px, transparent 1.5px); background-size: 7px 7px, 9px 9px; }
.m-scheibe { background-image: radial-gradient(circle, rgba(62,43,28,0.57) 1.6px, transparent 2px); background-size: 9px 9px; }
.m-rille { background-image: repeating-linear-gradient(0deg, rgba(62,43,28,0.45) 0 1.5px, transparent 1.5px 7px), repeating-linear-gradient(0deg, rgba(62,43,28,0.18) 0 1px, transparent 1px 11px); }
.m-filz { background-image: radial-gradient(rgba(62,43,28,0.26) .7px, transparent 1px); background-size: 4px 4px; }
.m-glatt { background: linear-gradient(135deg, #f4efe6, #e6dccb); }
.m-modell { background-image: repeating-radial-gradient(circle at 30% 40%, rgba(62,43,28,0.26) 0 6px, transparent 6px 14px); }
.m-kalk { background: linear-gradient(120deg, #e9dfcf, #f6f1e8 40%, #ddcfb9 70%, #f1ebe0); }
.m-beton { background: linear-gradient(135deg, #b9b5ad, #d6d2ca 45%, #a9a59d); }
.m-farbe { background: linear-gradient(90deg, #EAE0CE 0 14.3%, #D8BD83 14.3% 28.6%, #B99553 28.6% 42.9%, #8B6D36 42.9% 57.1%, #7B1E2B 57.1% 71.4%, #3F6B4A 71.4% 85.7%, #2F4F7A 85.7%); }
.hinweis { margin-top: 26px; font-size: .92rem; color: var(--text-2); }

/* Projekte */
.galerie { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: 36px; }
.galerie figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: #ddd; }
.galerie img { width: 100%; height: 100%; object-fit: cover; }
.galerie figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; background: rgba(62,43,28,.85); color: var(--creme); font-size: .85rem; padding: 6px 10px; border-radius: 8px; }
.g6 { grid-column: span 6; aspect-ratio: 4/5; }
.g4 { grid-column: span 4; aspect-ratio: 3/4; }
.g3 { grid-column: span 3; aspect-ratio: 3/4; }
.vorher-nachher { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; grid-column: span 12; }
.vorher-nachher figure { aspect-ratio: 4/5; }
.label { position: absolute; top: 10px; left: 10px; background: var(--creme); color: var(--braun); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }

/* Ablauf */
.schritte { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 36px; counter-reset: s; }
.schritt { border-top: 2px solid var(--gold); padding-top: 16px; }
.schritt::before { counter-increment: s; content: "0" counter(s); font-family: var(--serif); font-size: 2rem; color: var(--gold); display: block; }
.schritt p { color: var(--text-2); margin: .3rem 0 0; }
.dunkel .schritt p { color: #d9cdb8; }

/* Über uns / Gebiet */
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.orte { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.orte li { background: var(--weiss); border: 1px solid var(--linie); border-radius: 999px; padding: 5px 13px; font-size: .9rem; }

/* Kontakt */
.kontakt { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 30px; }
.kontakt a.karte { text-decoration: none; color: inherit; display: block; }
.kontakt a.karte:hover { border-color: var(--gold); }
.kontakt .gross { font-family: var(--serif); font-size: 1.2rem; color: var(--braun); overflow-wrap: anywhere; }

footer { background: #2c1f14; color: #cbbfa9; padding: 34px 0; font-size: .9rem; }
footer .fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
footer a { color: var(--gold-hell); }

/* Rechtstexte */
.recht { background: var(--weiss); border: 1px solid var(--linie); border-radius: 14px; padding: clamp(22px, 4vw, 44px); margin: 40px auto; max-width: 860px; }
.recht h2 { font-size: 1.5rem; margin-top: 1.6em; }
.recht h1 { font-size: 2.2rem; }
.offen { background: #fff3c4; padding: 0 4px; border-radius: 3px; }

@media (max-width: 1100px) {
  nav ul { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--creme); border-bottom: 1px solid var(--linie); padding: 8px 16px 16px; }
  nav ul.offen-menue { display: flex; }
  nav li a { display: block; padding: 10px 0; }
  .menue-knopf { display: block; }
  .kopf { position: relative; }
}
@media (max-width: 900px) {
  .held, .zwei { grid-template-columns: 1fr; }
  .held-bild { aspect-ratio: 4/3; }
  .g6, .g4 { grid-column: span 12; }
  .g3 { grid-column: span 6; }
  nav ul { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--creme); border-bottom: 1px solid var(--linie); padding: 8px 16px 16px; }
  nav ul.offen-menue { display: flex; }
  nav li a { display: block; padding: 10px 0; }
  .menue-knopf { display: block; }
  .kopf .knopf { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .vorher-nachher { grid-template-columns: 1fr; }
}

/* Icons, Marke, Lightbox (Abgleich mit Lovable-Version) */
.ic { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.15em; }
.marke span { display: flex; flex-direction: column; line-height: 1.1; }
.marke small { font-family: var(--sans); font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-top: 3px; }
.marke img { width: 52px; height: 52px; }
.held h1 { font-size: clamp(3rem, 7vw, 5.6rem); line-height: 1.02; }
.punkte { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.punkte li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.punkte li::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #fff; font-size: .75rem; flex: none; }
.kontakt .karte > .ic { width: 26px; height: 26px; color: var(--gold); margin-bottom: 10px; }
.fuss-links { display: inline-flex; align-items: center; gap: 6px; }
.fuss-links .ic { width: 18px; height: 18px; margin-left: 10px; }
.nur-mobil { display: none; }
.menue-knopf .ic { width: 26px; height: 26px; }
#lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(30,20,12,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
#lightbox[hidden] { display: none; }
#lightbox img { max-width: 100%; max-height: 82vh; border-radius: 10px; object-fit: contain; }
#lightbox p { color: var(--creme); margin-top: 12px; }
#lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: var(--creme); font-size: 2.4rem; cursor: pointer; }
@media (max-width: 1100px) { .nur-mobil { display: block; } }
@media (max-width: 520px) { .punkte { grid-template-columns: 1fr; } }
