/* Schriften lokal eingebunden (keine Verbindung zu Google – DSGVO).
   Cormorant Garamond für Überschriften, Archivo für Text. */
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-wdth.woff2") format("woff2-variations"), url("assets/fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

/* Farbpalette */
:root {
  --ink: #1c241d;          /* Text – Schwarz mit einem Hauch Grün */
  --paper: #f5f3ee;        /* Seitenhintergrund */
  --white: #ffffff;
  --stone: #d9d4c7;        /* Linien */
  --muted: #5b6158;        /* Sekundärtext */
  --green: #2f4a32;        /* Akzent, Kontaktfläche */
  --green-deep: #233826;   /* Hover, Fußzeile */
  --green-pale: #c9d8c3;   /* Text auf Grün */

  --font: "Archivo", system-ui, -apple-system, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --gutter: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
address { font-style: normal; }
ul { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.contact :focus-visible, .footer :focus-visible, .btn:focus-visible { outline-color: var(--white); box-shadow: 0 0 0 4px var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Typografie: ruhige Serifen-Überschriften, sachliche Grotesk für Text */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -.005em; margin: 0; }
h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 1; margin-bottom: 1.6rem; }
h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 1.4rem; }
h3 { font-size: 1.75rem; font-weight: 600; line-height: 1.1; }
body { font-size: 1rem; line-height: 1.7; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 54ch; margin: 0; }

/* Buttons */
.btn { display: inline-block; background: var(--green); color: var(--white); text-decoration: none; padding: .95rem 1.5rem; font-weight: 500; letter-spacing: .01em; border: 1px solid var(--green); border-radius: 2px; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Kopfzeile */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(245, 243, 238, .92); backdrop-filter: blur(10px); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.45rem; letter-spacing: .06em; }
.brand img { width: 40px; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--green); }
.nav-phone { font-weight: 600 !important; padding-left: 2rem; border-left: 1px solid var(--stone); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero: der Vorher/Nachher-Vergleich ist das Erste, was man sieht */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(72px, 10vw, 136px); }
.hero-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 48px 72px; margin-bottom: clamp(48px, 6vw, 88px); }
.hero-text .lead { margin-bottom: 2rem; }
.hero-logo { width: 100%; max-width: 400px; justify-self: center; }
.compare-hero .compare-box { aspect-ratio: 16 / 9; max-height: 80vh; width: 100%; border-radius: 2px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Vorher/Nachher-Regler */
.compare-box { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); border-radius: 2px; --pos: 50%; }
.compare-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-box::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); pointer-events: none; }
.compare-box::before { content: ""; position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; z-index: 1; pointer-events: none; box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c241d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat; }
.compare-box input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 2; }
.compare-box:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 3px; }
.tag { position: absolute; bottom: 14px; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; padding: .2rem .8rem; border-radius: 2px; pointer-events: none; }
.tag-before { left: 12px; background: rgba(28, 36, 29, .78); color: var(--white); }
.tag-after { right: 12px; background: var(--white); color: var(--ink); }
.compare figcaption, .gallery figcaption { font-size: .95rem; color: var(--muted); margin-top: .6rem; }

/* Abschnitte */
.section { padding: clamp(80px, 11vw, 152px) 0; border-top: 1px solid var(--stone); }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }

/* Leistungen als Liste mit echtem Foto je Leistung */
.services { margin-top: 2.5rem; border-top: 1px solid var(--ink); }
.services li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 168px; gap: 40px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--stone); }
.services p { margin: 0; color: var(--muted); max-width: 52ch; }
.services img { width: 168px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }

/* Warum wir */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.why h2 { margin: 0; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Projekte */
#projekte .lead { margin-bottom: 2.5rem; }
.compare-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery { margin-top: 56px; columns: 3 260px; column-gap: 24px; }
.gallery figure { break-inside: avoid; margin-bottom: 24px; }
.gallery img { width: 100%; border-radius: 2px; }

/* Kontakt: Grün als große Fläche */
.contact { background: var(--green); color: var(--white); padding: clamp(64px, 9vw, 120px) 0; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.contact p { color: var(--green-pale); font-size: 1.15rem; max-width: 46ch; margin: 0; }
.contact address { display: flex; flex-direction: column; gap: .5rem; }
.contact address a { text-decoration: none; color: var(--green-pale); font-size: 1.15rem; }
.contact address a:hover { color: var(--white); text-decoration: underline; }
.contact .contact-phone { color: var(--white); font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.1; margin-bottom: .4rem; }

/* Fußzeile */
.footer { background: var(--green-deep); color: var(--green-pale); padding: 48px 0; font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-logo { width: 150px; }
.footer p { margin: 0; text-align: right; }
.footer a { color: var(--white); }

/* Mobiler Anruf-Button */
.call-fab { display: none; position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: var(--green); place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); z-index: 30; }
.call-fab svg { width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linejoin: round; }

/* Rechtliche Seiten */
.legal { padding: 56px var(--gutter) 96px; max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.7rem; margin: 2.2rem 0 .6rem; }
.legal .todo { background: #fff0b3; padding: 0 .3em; }
.legal ~ .footer p, .footer-legal { text-align: left; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 960px) {
  .services li { grid-template-columns: minmax(0, 1fr) 120px; gap: 8px 20px; }
  .services h3 { grid-column: 1; }
  .services p { grid-column: 1; }
  .services img { grid-column: 2; grid-row: 1 / span 2; width: 120px; aspect-ratio: 1; }
  .why, .contact-inner, .hero-head { grid-template-columns: 1fr; gap: 28px; }
  .hero-logo { max-width: 240px; order: -1; justify-self: start; }
  .compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-grid .compare:last-child { grid-column: span 2; }
  .compare-grid .compare:last-child .compare-box { aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--stone); padding: 4px var(--gutter) 20px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--stone); font-size: 1.1rem; }
  .nav-phone { padding-left: 0; border-left: 0; border-bottom: 0 !important; color: var(--green); }
  .call-fab { display: grid; }
  .compare-hero .compare-box { aspect-ratio: 4 / 3; }
  .hero-cta, .hero-cta .btn { width: 100%; text-align: center; }
  .checks { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-grid .compare:last-child { grid-column: auto; }
  .gallery { columns: 2; column-gap: 12px; margin-top: 40px; }
  .gallery figure { margin-bottom: 16px; }
  .gallery figcaption { font-size: .85rem; }
  .footer p { text-align: left; }
}
