/* =========================================================================
   Garten & Landschaftsbau Josef Mayr
   Stylesheet — modernes, naturverbundenes Premium-Design
   ========================================================================= */

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben */
  --green-950: #0f2418;
  --green-900: #14301f;
  --green-800: #1b3a2b;
  --green-700: #235138;
  --green-600: #2c6e49;
  --green-500: #3a8b5e;
  --accent:    #9ccf3e;   /* frisches Blattgrün */
  --accent-600:#84b82f;
  --accent-700:#6e9d23;
  --sand:      #ece4d6;
  --sand-dark: #ddd2bd;
  --cream:     #faf8f2;
  --cream-2:   #f3efe5;
  --ink:       #1b231b;
  --muted:     #616b60;
  --line:      #e4ddcf;
  --white:     #ffffff;

  /* Typografie */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Maße */
  --maxw: 1240px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(20, 48, 31, .06);
  --shadow:    0 18px 40px -18px rgba(20, 48, 31, .28);
  --shadow-lg: 0 40px 80px -30px rgba(15, 36, 24, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
/* <picture> ist nur eine Hülle für die AVIF-Auswahl und darf das Layout des
   <img> nicht beeinflussen – sonst greifen Regeln wie "img { height:100% }"
   gegen die Hülle statt gegen den Container. */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--green-900);
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 4.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); }
p  { color: var(--muted); }
strong { color: var(--ink); font-weight: 700; }

/* ---------- Sprunglink (nur bei Tastaturfokus sichtbar) ---------- */
.skip-link {
  position: absolute; left: 50%; top: 0; z-index: 300;
  transform: translate(-50%, -120%);
  background: var(--green-900); color: #fff;
  padding: .8rem 1.4rem; border-radius: 0 0 12px 12px;
  font-weight: 700; font-size: .95rem;
  transition: transform .25s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); outline: 2px solid var(--accent); outline-offset: -4px; }

/* ---------- Sichtbarer Fokus für Tastaturbedienung ---------- */
:focus-visible { outline: 3px solid var(--accent-700); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout-Helfer ---------- */
.container { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(4rem, 3rem + 6vw, 8rem) 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body);
  font-size: .82rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-600);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--accent-600);
}
.eyebrow.is-light { color: var(--accent); }
.eyebrow.is-light::before { background: var(--accent); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.2rem); }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: 1rem; font-size: 1.08rem; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.32rem); color: var(--ink); line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  text-align: center;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--green-800); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn--accent { background: var(--accent); color: var(--green-950); box-shadow: 0 14px 30px -12px rgba(132, 184, 47, .7); }
.btn--accent:hover { background: var(--accent-600); transform: translateY(-3px); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-3px); }
.btn--outline { background: transparent; color: var(--green-800); border: 1.5px solid var(--line); }
.btn--outline:hover { border-color: var(--green-600); color: var(--green-700); transform: translateY(-3px); }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; color: var(--green-700);
}
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* =========================================================================
   Header / Navigation
   ========================================================================= */
.topbar {
  background: var(--green-900); color: rgba(255,255,255,.86);
  font-size: .85rem; font-weight: 500;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 1rem; }
.topbar a { color: inherit; display: inline-flex; align-items: center; gap: .45rem; transition: color .25s; }
.topbar a:hover { color: var(--accent); }
.topbar svg { width: 15px; height: 15px; color: var(--accent); }
.topbar__left { display: flex; gap: 1.6rem; }
.topbar__right { display: flex; gap: 1.2rem; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 242, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.header.is-scrolled { background: rgba(250, 248, 242, .96); box-shadow: var(--shadow-sm); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1.5rem; }

.brand { display: flex; align-items: center; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__word-top { font-family: "Rajdhani", var(--font-body); font-weight: 600; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--green-600); }
.brand__word-name { font-family: "Rajdhani", var(--font-body); font-weight: 700; font-size: 1.55rem; letter-spacing: .06em; text-transform: uppercase; color: var(--green-900); }

.nav__menu { display: flex; align-items: center; gap: .35rem; }
.nav__menu a {
  position: relative; padding: .55rem .85rem; border-radius: 10px;
  font-weight: 600; font-size: .97rem; color: var(--ink);
  transition: color .25s, background .25s;
}
.nav__menu a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .35rem; height: 2px;
  background: var(--accent-600); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__menu a:hover { color: var(--green-700); }
.nav__menu a:hover::after { transform: scaleX(1); }

.nav__cta { display: flex; align-items: center; gap: .8rem; }
/* Ohne nowrap schrumpft der CTA im Flex-Container und bricht auf zwei Zeilen um. */
.nav__cta .btn { white-space: nowrap; }
.nav__phone { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--green-800); }
.nav__phone svg { width: 18px; height: 18px; color: var(--green-600); }

.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--green-900); margin: 4px auto; border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(560px, 86vh, 880px);
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(15,36,24,.92) 0%, rgba(20,48,31,.72) 42%, rgba(20,48,31,.25) 100%),
    linear-gradient(0deg, rgba(15,36,24,.6), rgba(15,36,24,0) 55%);
}
.hero__inner { padding: clamp(3.5rem, 8vh, 7rem) 0; max-width: 720px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem 1rem; border-radius: 999px;
  background: rgba(156, 207, 62, .16); border: 1px solid rgba(156, 207, 62, .4);
  color: var(--accent); font-weight: 700; font-size: .82rem; letter-spacing: .06em;
  margin-bottom: 1.6rem;
}
.hero__badge::before { content:""; width:8px; height:8px; border-radius:50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(156,207,62,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(156,207,62,0); } 100% { box-shadow: 0 0 0 0 rgba(156,207,62,0); } }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero__text { margin-top: 1.4rem; font-size: clamp(1.08rem, 1rem + .5vw, 1.3rem); color: rgba(255,255,255,.9); max-width: 560px; }
.hero__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__trust { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1.6rem 2.2rem; align-items: center; }
.hero__trust-item { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: rgba(255,255,255,.85); font-weight: 600; }
.hero__trust-item svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.hero__scroll {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.hero__scroll span { width: 1px; height: 38px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: scrollLine 2s infinite; }
@keyframes scrollLine { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* =========================================================================
   Leistungen
   ========================================================================= */
.services-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem,1.4rem + 2vw,3.2rem); }
.services-head .section-head { margin-bottom: 0; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 1rem + 1vw, 1.8rem); }
.service {
  position: relative; background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  display: flex; flex-direction: column;
}
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service__media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service:hover .service__media img { transform: scale(1.07); }
.service__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,36,24,.5), transparent 45%);
}
/* Symbol-Plakette: sitzt vollständig innerhalb des Bildrahmens, wird also
   nicht mehr vom overflow:hidden des Medienbereichs angeschnitten. */
.service__icon {
  position: absolute; left: 1.1rem; bottom: 1.1rem; z-index: 2;
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(250, 248, 242, .94);
  backdrop-filter: blur(6px);
  color: var(--green-700);
  display: grid; place-items: center;
  box-shadow: 0 8px 20px -6px rgba(15, 36, 24, .5);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.service__icon svg { width: 24px; height: 24px; display: block; }
.service:hover .service__icon { background: var(--accent); color: var(--green-950); transform: translateY(-4px); }
.service__body { padding: 1.7rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.service__body h3 { margin-bottom: .6rem; }
.service__body p { font-size: .98rem; flex: 1; }
.service__list { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.service__list li { font-size: .78rem; font-weight: 600; color: var(--green-700); background: var(--cream-2); border: 1px solid var(--line); padding: .25rem .65rem; border-radius: 999px; }
.service__more { margin-top: 1.1rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.service__more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .88rem; color: var(--green-700); }
.service__more summary::-webkit-details-marker { display: none; }
.service__more summary::after { content: "+"; font-size: 1.1rem; line-height: 1; color: var(--accent-700); transition: transform .25s var(--ease); }
.service__more[open] summary::after { content: "–"; }
.service__more summary:hover { color: var(--green-900); }
.service__more p { margin-top: .7rem; font-size: .92rem; color: var(--muted); }

/* =========================================================================
   Über uns
   ========================================================================= */
/* Extra Luft nach unten, damit das Foto samt grünem Markenrahmen (ragt 18px
   über die Unterkante) nicht direkt am dunkelgrünen Referenzbereich klebt. */
.about { background: var(--cream-2); padding-bottom: clamp(5.5rem, 4rem + 7vw, 10rem); }
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 1.5rem + 3vw, 5rem); align-items: center; }
.about__media { position: relative; }
.about__media img { position: relative; z-index: 1; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
/* Versetzter Markenrahmen unten/rechts. Ohne eigenen z-index (statt -1) würde
   er hinter den cremefarbenen Sektionshintergrund rutschen und wäre unsichtbar. */
.about__media::before {
  content:""; position:absolute; inset: 22px -22px -22px 22px; z-index: 0;
  border: 2px solid var(--accent); border-radius: var(--radius-lg);
}
.about__text h2 { margin-bottom: 1.2rem; }
.about__sign { margin-top: 1.6rem; display: flex; align-items: center; gap: 1rem; }
.about__sign-name { font-family: var(--font-display); font-size: 1.4rem; color: var(--green-900); }
.about__sign small { display:block; font-family: var(--font-body); font-size: .82rem; color: var(--muted); letter-spacing: .04em; }
.feature-list { margin: 1.6rem 0; display: grid; gap: 1rem; }
.feature-list li { display: flex; gap: .9rem; align-items: flex-start; }
.feature-list .tick { flex: none; width: 30px; height: 30px; border-radius: 9px; background: rgba(156,207,62,.18); color: var(--green-700); display: grid; place-items: center; margin-top: 2px; }
.feature-list .tick svg { width: 17px; height: 17px; }
.feature-list h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: .15rem; }
.feature-list p { font-size: .92rem; margin: 0; }

/* =========================================================================
   Referenzen / Galerie
   ========================================================================= */
.gallery { background: var(--green-950); color: #fff; }
.gallery .section-head h2 { color: #fff; }
.gallery .section-head p { color: rgba(255,255,255,.75); }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(15,36,24,.85), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__cap {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  opacity: 0; transform: translateY(10px); transition: .45s var(--ease);
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: translateY(0); }
.gallery__cap strong { display:block; font-family: var(--font-display); font-size: 1.15rem; }
.gallery__cap span { font-size: .82rem; color: var(--accent); font-weight: 600; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,18,12,.94); display: none; place-items: center; padding: 1.5rem; }
.lightbox.is-open { display: grid; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
.lightbox img { max-width: min(92vw, 1100px); max-height: 84vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.1); color:#fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; transition: background .25s, transform .25s; backdrop-filter: blur(4px); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: 1.2rem; } .lightbox__nav.next { right: 1.2rem; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox svg { width: 24px; height: 24px; }

/* =========================================================================
   CTA-Band
   ========================================================================= */
.cta-band { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.cta-band__bg { position:absolute; inset:0; z-index:-2; }
.cta-band__bg img { width:100%; height:100%; object-fit: cover; }
.cta-band::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(100deg, rgba(20,48,31,.95), rgba(20,48,31,.72)); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: clamp(3rem,2.5rem + 3vw,5rem) 0; }
.cta-band h2 { color: #fff; max-width: 620px; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: .8rem; max-width: 520px; }
.cta-band__actions { display: flex; flex-direction: column; gap: .9rem; flex: none; }

/* =========================================================================
   Kontakt
   ========================================================================= */
/* Karten links und Anfragekasten rechts beginnen auf derselben Höhe: die
   Überschrift steht darüber und gehört nicht mehr in die linke Spalte. */
/* stretch: das grüne Panel wird so hoch wie der Formularkasten daneben */
.contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 2rem + 4vw, 5.5rem); align-items: stretch; }

/* Linke Spalte als dunkelgrünes Kontakt-Panel – Kontrast zum weißen Formular */
.contact__panel {
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, var(--green-800) 0%, var(--green-950) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
  color: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}
.contact__panel-head { margin-bottom: 1.7rem; }
.contact__panel-head h3 { color: #fff; margin-top: .5rem; }
.contact__list { display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.contact__item { display: flex; gap: 1rem; align-items: flex-start; padding: clamp(1.25rem, .8rem + 1vw, 1.9rem) 0; }
.contact__item + .contact__item { border-top: 1px solid rgba(255,255,255,.1); }
.contact__item:first-child { padding-top: 0; }
.contact__item-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(156,207,62,.14); border: 1px solid rgba(156,207,62,.32); color: var(--accent); display: grid; place-items: center; }
.contact__item-icon svg { width: 20px; height: 20px; }
.contact__item-label { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: .25rem; }
.contact__item a, .contact__item p { font-size: 1.08rem; font-weight: 700; color: #fff; transition: color .2s; }
.contact__item a:hover { color: var(--accent); }
.contact__item p { font-weight: 600; font-size: .98rem; }
.contact__item-small { display: block; font-size: .84rem; color: rgba(255,255,255,.55); font-weight: 500; margin-top: .15rem; }
.contact__panel-cta { margin-top: 1.8rem; width: 100%; }

.form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 1.2rem + 2vw, 2.8rem); box-shadow: var(--shadow); }
.contact__map { margin-top: clamp(2rem, 1.4rem + 2vw, 3.2rem); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); line-height: 0; }
.contact__map iframe { display: block; width: 100%; }
/* Zwei-Klick-Karte: lokales Vorschaubild im Hintergrund, Hinweis darüber */
.map-consent { position: relative; isolation: isolate; min-height: 440px; border-bottom: 1px solid var(--line); }
.map-consent__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.map-consent__overlay {
  position: relative; z-index: 2;
  display: grid; place-items: center; min-height: 440px;
  padding: 2rem 1.4rem; text-align: center; line-height: 1.65;
  /* nur leicht abdunkeln – die Karte soll sichtbar bleiben */
  background: linear-gradient(rgba(15,36,24,.18), rgba(15,36,24,.3));
}
/* Der Hinweis sitzt in einem eigenen Kasten, damit er auf der Karte lesbar
   bleibt, ohne dass die Karte großflächig abgedunkelt werden muss. */
.map-consent__inner {
  max-width: 400px;
  background: rgba(250, 248, 242, .95);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(3px);
}
.map-consent__icon {
  display: grid; place-items: center; width: 50px; height: 50px;
  margin: 0 auto .9rem; border-radius: 14px;
  background: var(--green-700); color: #fff;
}
.map-consent__icon svg { width: 25px; height: 25px; }
.map-consent h3 { margin-bottom: .45rem; }
.map-consent p { font-size: .9rem; margin-bottom: 1.2rem; }
.map-consent a { color: var(--green-700); text-decoration: underline; }
/* Namensnennung ist bei OpenStreetMap-Karten Pflicht (ODbL) */
.map-consent__credit {
  position: absolute; right: .6rem; bottom: .5rem; z-index: 3;
  font-size: .7rem; font-weight: 600; color: #fff;
  background: rgba(15,36,24,.8); padding: .2rem .5rem; border-radius: 5px;
}
.contact__map-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .9rem 1.2rem; background: var(--white); line-height: 1.4; font-size: .9rem; }
.contact__map-bar span { font-weight: 600; color: var(--green-900); }
.contact__map-bar a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--green-700); }
.contact__map-bar a svg { width: 18px; height: 18px; }
.form-head { margin-bottom: 1.6rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.form-head h3 { margin-bottom: .3rem; }
.form-head p { font-size: .92rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; position: relative; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--green-900); margin-bottom: .4rem; }
.field label .req { color: var(--accent-700); }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--cream); color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field select {
  appearance: none; cursor: pointer; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23616b60' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-600); background-color: #fff; box-shadow: 0 0 0 4px rgba(156,207,62,.18); }
.checkbox { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-bottom: 1.3rem; }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green-700); flex: none; }
.checkbox a { color: var(--green-700); text-decoration: underline; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; text-align: center; }
.form-status { display: none; padding: 1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 600; font-size: .95rem; }
.form-status.ok { display: block; background: rgba(156,207,62,.16); color: var(--green-800); border: 1px solid var(--accent-600); }
.form-status.err { display: block; background: #fdecec; color: #a13a3a; border: 1px solid #e7a9a9; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { background: var(--green-950); color: rgba(255,255,255,.72); padding-top: clamp(3.5rem,3rem + 3vw,5.5rem); }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .92rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.2rem; }
.footer .brand__word-top { color: var(--accent); }
.footer .brand__word-name { color: #fff; }

/* Kopfzeile: Marke links, direkter Draht rechts */
.footer__top {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand p { margin-top: 1rem; font-size: .95rem; max-width: 430px; }
.footer__phone {
  flex: none; display: flex; flex-direction: column; gap: .25rem;
  padding: 1.1rem 1.6rem; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.footer__phone:hover { background: rgba(156,207,62,.12); border-color: var(--accent); transform: translateY(-3px); }
.footer__phone-label { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.footer__phone-num { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.6rem; color: #fff; line-height: 1.15; }
.footer__phone-num svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.footer__phone-sub { font-size: .82rem; color: rgba(255,255,255,.6); }

.footer__grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 2.5rem; padding: 2.6rem 0 3rem; }
.footer__col a, .footer__col li { display: block; font-size: .95rem; padding: .3rem 0; transition: color .25s, transform .25s; }
.footer__col a:hover { color: var(--accent); transform: translateX(4px); }
.footer__contact li { display: flex; gap: .7rem; align-items: flex-start; padding: .45rem 0; font-size: .95rem; }
.footer__contact svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.footer__small { font-size: .84rem; color: rgba(255,255,255,.5); }

/* destec-Credit „Website by [Logo]" + Hover-Popup (Standard wie auf den anderen Seiten) */
.footer-promo { position: relative; display: inline-flex; }
.footer-made-by { display: inline-flex; align-items: center; gap: 10px; opacity: .62; transition: opacity .25s; }
.footer-made-by:hover { opacity: 1; }
.footer-made-by span { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.footer-made-by img { height: 22px; width: auto; }
.destec-pop {
  position: absolute; bottom: 100%; left: 50%; margin-left: -150px; padding-bottom: 14px;
  width: 300px; max-width: min(300px, 84vw);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.96); transform-origin: bottom center;
  z-index: 50; pointer-events: none;
  transition: opacity .28s ease, transform .28s var(--ease), visibility .28s;
}
.footer-promo:hover .destec-pop, .footer-promo:focus-within .destec-pop {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto;
}
.destec-pop-inner {
  position: relative; text-align: left;
  background: linear-gradient(150deg, var(--green-700) 0%, var(--green-950) 100%);
  border: 1px solid rgba(156,207,62,.3); border-radius: 14px;
  padding: 18px 20px 20px; box-shadow: 0 24px 54px rgba(0,0,0,.55);
}
.destec-pop-inner::after {
  content: ""; position: absolute; bottom: -8px; left: 50%; margin-left: -7px;
  width: 14px; height: 14px; background: var(--green-950);
  border-right: 1px solid rgba(156,207,62,.3); border-bottom: 1px solid rgba(156,207,62,.3);
  transform: rotate(45deg);
}
.destec-pop-eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 7px; }
.destec-pop-title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.12; color: #fff; margin: 0 0 8px; }
.destec-pop-text { font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.72); margin: 0 0 14px; }
.destec-pop-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: var(--green-950);
  font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 999px; transition: background .2s, transform .2s;
}
.destec-pop-cta svg { width: 13px; height: 13px; }
.destec-pop-cta:hover { background: var(--accent-600); transform: translateY(-2px); }
/* Das 300px breite Popup ragt in schmalen Fenstern über den Rand und erzeugt
   horizontales Scrollen. Auf Touch-Geräten gibt es ohnehin kein Hover –
   dort bleibt der Logo-Link zu destec, der reicht. */
@media (max-width: 900px), (hover: none) {
  .destec-pop { display: none; }
}

.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.footer__bottom a:hover { color: var(--accent); }
.footer__bottom .legal { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90; width: 50px; height: 50px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(15px); transition: .35s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-800); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Scroll-Reveal ----------
   Wichtig: Das Ausblenden hängt an der Klasse .js, die das Inline-Skript im
   <head> setzt. Ohne JavaScript (oder wenn das Skript nicht lädt) greift die
   Regel nicht und der gesamte Inhalt ist normal sichtbar – sonst bliebe die
   Seite außer dem Hero komplett leer. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }
.js .reveal[data-delay="5"] { transition-delay: .4s; }
/* Bei reduzierter Bewegung gar nicht erst verstecken */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Text-Zeilen-Animation (Motion) ----------
   Überschriften werden per JS in Zeilen zerlegt; jede Zeile fährt maskiert
   von unten hoch. Die Masken existieren nur, wenn das Skript gelaufen ist
   (Klasse .is-split). Ohne JavaScript oder bei reduzierter Bewegung bleibt
   die Überschrift unverändert und sofort lesbar. */
/* Etwas Innenraum, damit die Maske Ober- (ü, ö) und Unterlängen (g, p, ß)
   nicht abschneidet; die negativen Außenabstände heben den Zuwachs auf, sodass
   der Zeilenabstand unverändert bleibt. */
.split-line { display: block; overflow: hidden; padding: .1em 0 .2em; margin: -.1em 0 -.2em; }
.split-line__in { display: block; will-change: transform; }
/* Bis Motion die Startwerte setzt, Zeilen unter der Maske halten – aber nur,
   wenn das Split wirklich stattgefunden hat. */
.js [data-split].is-split .split-line__in { transform: translateY(110%); }

/* =========================================================================
   Innenseiten (Impressum / Datenschutz)
   ========================================================================= */
.page-hero { background: var(--green-900); color: #fff; padding: clamp(3rem,2.5rem + 3vw,5rem) 0 clamp(2.5rem,2rem + 2vw,4rem); }
.page-hero h1 { color: #fff; }
.page-hero .crumb { display: flex; gap: .5rem; align-items: center; font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.page-hero .crumb a:hover { color: var(--accent); }
.prose { max-width: 800px; }
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; color: var(--green-800); }
.prose p, .prose li { color: var(--muted); margin-bottom: .8rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; }
.prose a { color: var(--green-700); text-decoration: underline; }
.prose strong { color: var(--ink); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 860px) {
  .nav__menu, .nav__phone { display: none; }
  .nav__toggle { display: block; }
  .nav__menu.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-top: 1px solid var(--line);
    padding: 1rem 1.2rem 1.4rem; gap: .2rem; box-shadow: var(--shadow);
  }
  .nav__menu.is-open a { padding: .85rem .6rem; border-radius: 10px; font-size: 1.05rem; }
  .nav__menu.is-open a::after { display: none; }
  .nav { position: relative; }
  .about__grid { grid-template-columns: 1fr; }
  /* Platz lassen, damit der 22px überstehende Markenrahmen nicht über den
     rechten Rand ragt und horizontales Scrollen erzeugt. */
  .about__media { max-width: min(460px, 100% - 2.5rem); margin: 0 auto 2rem; }
  .contact__grid { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .cta-band__actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .services { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery__item--wide, .gallery__item--tall { grid-column: auto; grid-row: auto; }
  .footer__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  /* galt bisher nur für .topbar__left – dadurch blieben die Öffnungszeiten
     rechts stehen und schoben die Topbar über den Bildschirmrand. */
  .hide-sm { display: none !important; }
}

/* Sehr schmale Geräte (iPhone SE u. ä.) */
@media (max-width: 400px) {
  .topbar .container { gap: .5rem; }
  .topbar__right a { white-space: nowrap; }
  .nav { gap: .6rem; }
  .nav__cta { gap: .5rem; }
  .nav__cta .btn { padding: .7rem .72rem; font-size: .76rem; }
  .nav__toggle { width: 42px; height: 42px; }
}
