:root {
  --green-dark: #6f8230;
  --green: #8a9f3c;
  --green-light: #a4c333;
  --cream: #f8f7f1;
  --ink: #2c3320;
  --muted: #5d654f;
  --line: #dfe3d0;
  --radius: 14px;
  --maxw: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}

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

a { color: var(--green-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--green-light); outline-offset: 3px; }

h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--green-dark); }
h3 { font-size: 1.35rem; }

.wrap { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }

/* Navigation */
.site-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav { transition: box-shadow .25s; }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; transition: min-height .25s; }
.site-nav.is-scrolled { box-shadow: 0 2px 14px rgba(44, 51, 32, .12); }
.site-nav.is-scrolled .wrap { min-height: 46px; }
.site-nav li a[aria-current="true"] { background: var(--cream); color: var(--green-dark); box-shadow: inset 0 -2px 0 var(--green); }
.brand { font-family: Georgia, serif; font-size: 1.15rem; color: var(--green-dark); text-decoration: none; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: .95rem;
}
.site-nav li a:hover { background: var(--cream); color: var(--green-dark); }
.nav-call { background: var(--green); color: #fff !important; }
.nav-call:hover { background: var(--green-dark) !important; }

@media (max-width: 720px) {
  .site-nav .wrap { flex-direction: column; padding: 6px 0; }
  .site-nav ul { flex-wrap: wrap; justify-content: center; }
  .site-nav li a { padding: 6px 10px; font-size: .9rem; }
  html { scroll-padding-top: 110px; }
}

/* Hero */
@font-face {
  font-family: "Pinyon Script";
  src: url("../fonts/pinyon-script.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
.hero {
  --d: clamp(240px, 64vw, 470px); /* Durchmesser des Kreis-Logos */
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff; text-align: center;
  padding: clamp(36px, 6vw, 64px) 0 clamp(84px, 10vw, 110px);
}
.hero::before {
  content: ""; position: absolute; inset: -60px 0; z-index: -1;
  background: linear-gradient(100deg, #899c3a 0%, #a7c834 100%);
  transform: translateY(var(--parallax, 0px));
  will-change: transform;
}
.hero-logo { position: relative; width: var(--d); margin: 0 auto; }
.hero-logo img {
  width: 100%; height: auto; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 12px 32px rgba(44, 51, 32, .25);
}
.hero-script {
  position: absolute; left: 50%; bottom: calc(var(--d) * -.11); translate: -50% 0;
  margin: 0; white-space: nowrap;
  font: 400 min(calc(var(--d) * .27), 16vw) / 1 "Pinyon Script", "Snell Roundhand", "Segoe Script", cursive;
  text-shadow: 0 2px 14px rgba(44, 51, 32, .3);
}
.hero-sub { margin: calc(var(--d) * .17) auto 18px; font-size: 1.15rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  background: #fff; color: var(--green-dark); font-weight: 600;
  text-decoration: none; transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-green { background: var(--green); color: #fff; }

/* Sektionen */
section { padding: clamp(48px, 8vw, 88px) 0; }
section:nth-of-type(even) { background: var(--cream); }
.lead { max-width: 60ch; }

.cols { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 800px) { .cols { grid-template-columns: 1fr 1fr; } }

.prices {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px;
}
.prices h3 { margin-bottom: .4em; }
.prices ul { list-style: none; margin: 0; padding: 0; }
.prices li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.prices li:last-child { border-bottom: 0; }
.prices li span:last-child { font-weight: 600; white-space: nowrap; color: var(--green-dark); }
.prices small, .note { color: var(--muted); font-size: .9rem; }

/* Galerie */
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }

/* Über mich */
.about { display: grid; gap: 32px; align-items: center; }
@media (min-width: 800px) { .about { grid-template-columns: 320px 1fr; gap: 56px; } }
.about img { border-radius: 50%; width: min(100%, 320px); aspect-ratio: 1; object-fit: cover; margin-inline: auto; }

/* Kontakt */
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 24px;
}
@media (min-width: 800px) { .contact-card { grid-template-columns: 1fr 1fr; padding: 36px; } }
.contact-card address { font-style: normal; }
.phone { font-family: Georgia, serif; font-size: 1.8rem; color: var(--green-dark); text-decoration: none; display: block; margin: 6px 0 12px; }

/* Footer */
footer { background: var(--ink); color: #d6dbc6; padding: 28px 0; font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: #fff; margin-left: 16px; }
footer a:first-child { margin-left: 0; }

/* Rechtstexte */
.legal { padding: 48px 0 72px; max-width: 760px; }
.legal h1 { font-size: 2.2rem; color: var(--green-dark); }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.5em; }

/* Nach-unten-Pfeil */
.scroll-down {
  position: absolute; left: 50%; bottom: 20px; translate: -50% 0;
  display: grid; place-items: center; width: 44px; height: 44px;
  color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 50%;
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-down:hover { background: rgba(255, 255, 255, .18); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* Einblenden beim Scrollen (nur mit JS) */
.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Zurück nach oben */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 9;
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--green); color: #fff; box-shadow: 0 4px 14px rgba(44, 51, 32, .25);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-dark); }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; color: #fff;
  width: 100vw; height: 100vh; max-width: none; max-height: none;
}
.lightbox::backdrop { background: rgba(20, 24, 14, .88); }
.lightbox-inner { height: 100%; display: grid; place-items: center; padding: 56px 16px; }
.lightbox img { max-width: min(100%, 1100px); max-height: 100%; width: auto; border-radius: 8px; }
.lightbox button {
  position: absolute; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, .3); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox .lb-next { right: 12px; top: 50%; translate: 0 -50%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before { transform: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
