/* ============================================
   Greenkeeper-Ratingen — Stylesheet
   Autor: Thorsten Joormann | Tel: +49 162 16 15 396
   ============================================ */

:root {
  --forest:      #1A1F17;
  --forest-mid:  #2A3226;
  --stone:       #F5F0E8;
  --stone-mid:   #EAE4D8;
  --moss:        #3D5C2E;
  --sandstone:   #B8A882;
  --leaf:        #8FB87A;
  --gold:        #C9A24B;
  --gold-bright: #D9B868;
  --text-muted:  #6B6B5A;
  --radius:      14px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'Space Mono', monospace;

  --pad-x:   clamp(1.5rem, 6vw, 6rem);
  --pad-sec: clamp(5rem, 10vw, 9rem);
  --container: min(1320px, 100% - 3rem);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--stone);
  color: var(--forest);
  overflow-x: hidden;
}

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

/* ─── NAV ────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(26, 31, 23, 0.96);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  line-height: 1;
}

/* Logo: Amberbaum-Linienzeichnung + altenglischer Schriftzug */
.logo-tree {
  width: 38px;
  height: auto;
  flex-shrink: 0;
}
.lt-stroke {
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.lt-ring {
  stroke: var(--gold);
  stroke-width: 1.6;
  fill: none;
}
.lt-fill { fill: var(--gold); }

.logo-word {
  font-family: 'UnifrakturMaguntia', var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}
.logo-word-sep { letter-spacing: 0; padding: 0 0.04em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: rgba(245,240,232,0.75);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--sandstone); }
.nav-links .nav-cta {
  background: var(--moss);
  color: var(--stone) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  transition: background 0.2s !important;
}
.nav-links .nav-cta:hover { background: #4e7a3b !important; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 102;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--stone);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── HERO ───────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero.jpg') center/cover no-repeat,
              linear-gradient(160deg, #1A1F17 0%, #2E4A20 60%, #3D5C2E 100%);
  transform: scale(1.04);
  transition: transform 10s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(26,31,23,0.88) 0%,
    rgba(26,31,23,0.55) 55%,
    rgba(26,31,23,0.15) 100%
  );
}

.hero-coords {
  position: absolute;
  top: 7rem;
  right: var(--pad-x);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(245,240,232,0.35);
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-x) clamp(4rem, 8vh, 8rem);
  max-width: 860px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--sandstone);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--stone);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.5s forwards;
}
.hero-headline em {
  font-style: italic;
  color: var(--leaf);
}

.hero-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: rgba(245,240,232,0.7);
  font-weight: 300;
  max-width: 440px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s 0.75s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s 1s forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  background: var(--moss);
  color: var(--stone);
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: #4e7a3b; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: rgba(245,240,232,0.8);
  padding: 0.9rem 2rem;
  border: 1px solid rgba(245,240,232,0.3);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--sandstone); color: var(--sandstone); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: rgba(245,240,232,0.3);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(245,240,232,0.35));
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(0.5); opacity: 0.9; }
}

/* ─── CONTAINER ──────────────────────────── */
.container {
  width: var(--container);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--forest);
}
.section-title em { font-style: italic; color: var(--moss); }

/* ─── SERVICES ───────────────────────────── */
.services {
  padding: var(--pad-sec) 0;
  background: var(--stone);
}

.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 3.5rem;
}
.services-intro-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.service-card {
  position: relative;
  aspect-ratio: 5/4;
  overflow: hidden;
  cursor: default;
  border-radius: var(--radius);
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-card:hover .service-card-bg { transform: scale(1.06); }

/* Placeholder gradients per service */
.service-card:nth-child(1) .service-card-bg {
  background-image: url('../img/service-planung.jpg'),
    linear-gradient(135deg, #2E4A20 0%, #1A1F17 100%);
}
.service-card:nth-child(2) .service-card-bg {
  background-image: url('../img/service-pflaster.jpg'),
    linear-gradient(135deg, #4A3C28 0%, #1A1F17 100%);
}
.service-card:nth-child(3) .service-card-bg {
  background-image: url('../img/service-rasen.jpg'),
    linear-gradient(135deg, #2A4028 0%, #3D5C2E 100%);
}
.service-card:nth-child(4) .service-card-bg {
  background-image: url('../img/service-zaun.jpg'),
    linear-gradient(135deg, #1A2820 0%, #3D5C2E 100%);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(26,31,23,0.92) 0%,
    rgba(26,31,23,0.3) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 2.2rem;
  transition: background 0.4s;
}
.service-card:hover .service-card-overlay {
  background: linear-gradient(
    0deg,
    rgba(61,92,46,0.92) 0%,
    rgba(26,31,23,0.5) 60%,
    transparent 100%
  );
}

.service-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 400;
  color: var(--stone);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.service-card-desc {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.75);
  font-weight: 300;
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.service-card:hover .service-card-desc { max-height: 80px; }

.service-card-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--sandstone);
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s 0.1s, transform 0.3s 0.1s;
}
.service-card:hover .service-card-link { opacity: 1; transform: translateX(0); }
.service-card-link::after {
  content: '→';
  font-family: var(--font-body);
}

/* ─── ABOUT ──────────────────────────────── */
.about {
  background: var(--forest);
  padding: var(--pad-sec) 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 7rem;
  align-items: center;
}

.about-quote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--stone);
  line-height: 1.3;
  position: relative;
}
.about-quote::before {
  content: '"';
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  font-size: 8rem;
  color: rgba(61,92,46,0.25);
  font-style: normal;
  line-height: 1;
  font-family: var(--font-display);
}
.about-quote .hl { color: var(--leaf); }

.about-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.about-text {
  font-size: 1rem;
  color: rgba(245,240,232,0.65);
  line-height: 1.85;
  font-weight: 300;
}
.about-text strong { color: var(--stone); font-weight: 500; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(245,240,232,0.1);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--sandstone);
  line-height: 1;
}
.stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: rgba(245,240,232,0.35);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ─── PROJECTS ───────────────────────────── */
.projects {
  padding: var(--pad-sec) 0;
  background: var(--stone-mid);
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 2rem;
}
.projects-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s;
  white-space: nowrap;
}
.projects-link:hover { color: var(--forest); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: default;
}
.project-item:first-child { grid-column: span 2; aspect-ratio: 16/9; }
.project-item:not(:first-child) { aspect-ratio: 4/3; }

.project-item-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-item:hover .project-item-bg { transform: scale(1.05); }

.project-item:nth-child(1) .project-item-bg {
  background-image: url('../img/projekt-1.jpg'),
    linear-gradient(160deg, #2E4A20 0%, #1A1F17 100%);
}
.project-item:nth-child(2) .project-item-bg {
  background-image: url('../img/projekt-2.jpg'),
    linear-gradient(160deg, #3D5C2E 0%, #2A3226 100%);
}
.project-item:nth-child(3) .project-item-bg {
  background-image: url('../img/projekt-3.jpg'),
    linear-gradient(160deg, #4A3C28 0%, #2A3226 100%);
}

.project-label {
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  background: rgba(26,31,23,0.85);
  color: var(--stone);
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  backdrop-filter: blur(4px);
  border-radius: 1px;
}

/* ─── CONTACT ────────────────────────────── */
.contact {
  padding: var(--pad-sec) 0;
  background: var(--stone);
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8rem;
  align-items: start;
}

.contact-details { display: flex; flex-direction: column; gap: 2rem; }

.contact-detail-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.35rem;
}
.contact-detail-value {
  font-size: 0.95rem;
  color: var(--forest);
  font-weight: 400;
  line-height: 1.6;
}
.contact-detail-value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-detail-value a:hover { color: var(--moss); }

.contact-opening {
  padding: 1.75rem;
  background: var(--stone-mid);
  border-left: 2px solid var(--moss);
  border-radius: 2px;
}
.contact-opening-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.75rem;
}
.contact-opening-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--forest);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(26,31,23,0.08);
}
.contact-opening-row:last-child { border-bottom: none; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--stone-mid);
  border: 1px solid rgba(26,31,23,0.14);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--forest);
  width: 100%;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--moss);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 130px; }

.form-privacy {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.form-privacy a { color: var(--moss); }

.form-submit {
  display: flex;
  justify-content: flex-end;
}

/* ─── RATGEBER / DOWNLOADS ───────────────── */
.downloads {
  background: var(--forest);
  padding: var(--pad-sec) 0;
}
.downloads-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 3rem;
}
.downloads .section-label { color: var(--leaf); }
.downloads .section-title { color: var(--stone); }
.downloads .section-title em { color: var(--gold); }
.downloads-intro {
  font-size: 1rem;
  color: rgba(245,240,232,0.6);
  line-height: 1.8;
  font-weight: 300;
}

.downloads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.download-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem;
  background: rgba(245,240,232,0.03);
  border: 1px solid rgba(201,162,75,0.22);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.download-card:hover {
  border-color: var(--gold);
  background: rgba(201,162,75,0.06);
  transform: translateY(-3px);
}
.download-icon {
  flex-shrink: 0;
  width: 46px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--forest);
  background: var(--gold);
  border-radius: 2px;
  position: relative;
}
.download-icon::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  border-width: 0 9px 9px 0;
  border-style: solid;
  border-color: var(--forest) var(--forest) transparent transparent;
}
.download-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--stone);
  line-height: 1.15;
  margin-bottom: 0.45rem;
}
.download-desc {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.6);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 0.9rem;
}
.download-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── KARTE ──────────────────────────────── */
.contact-map { margin-top: 5rem; }
.contact-map-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1rem;
}
.contact-map-frame {
  position: relative;
  height: clamp(280px, 38vw, 420px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(26,31,23,0.14);
  /* dezente Naturtönung der Karte, passend zur Markenwelt */
  filter: grayscale(0.25) sepia(0.08) saturate(0.92);
}
.contact-map-frame iframe { display: block; }
.contact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s;
}
.contact-map-link:hover { color: var(--forest); }

/* ─── FOOTER ─────────────────────────────── */
footer {
  background: var(--forest);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-tree { width: 30px; }
.footer-logo .logo-word { font-size: 1.35rem; }

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.78rem;
  color: rgba(245,240,232,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--sandstone); }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(245,240,232,0.25);
}

/* ─── REVEAL ANIMATIONS ──────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ─── MOBILE NAV OVERLAY ─────────────────── */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--forest);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 101;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .nav-links .nav-cta { padding: 0.75rem 2rem; }
  .nav-burger { display: flex; }
}

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 860px) {
  .services-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { aspect-ratio: auto; min-height: 360px; }
  .service-card-desc { max-height: none; }
  .service-card-link { opacity: 1; transform: translateX(0); }

  .about-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .about-quote::before { font-size: 5rem; }

  .projects-header { flex-direction: column; align-items: flex-start; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-item:first-child { grid-column: span 1; aspect-ratio: 4/3; }

  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ─── LEGAL PAGES (Impressum / Datenschutz) ─ */
.legal-page { background: var(--stone); min-height: 100vh; }

.legal-hero {
  background: var(--forest);
  padding: 9rem 0 3.5rem;
}
.legal-hero .container { display: flex; flex-direction: column; gap: 1rem; }
.legal-back {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sandstone);
  text-decoration: none;
  width: fit-content;
}
.legal-back:hover { color: var(--gold); }
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--stone);
  line-height: 1.1;
}
.legal-hero h1 em { font-style: italic; color: var(--gold); }

.legal-body { padding: var(--pad-sec) 0; }
.legal-body .container { max-width: 760px; }

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--moss);
  margin: 2.5rem 0 0.75rem;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p,
.legal-body address {
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.legal-body strong { color: var(--forest); font-weight: 500; }
.legal-body a { color: var(--moss); }

/* ─── COOKIE-BANNER ──────────────────────── */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  background: var(--forest);
  border: 1px solid rgba(201,162,75,0.4);
  border-top: 2px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  padding: 1.25rem 1.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cookie-banner.show { opacity: 1; transform: translateY(0); }
.cookie-banner[hidden] { display: none; }

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.cookie-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.cookie-text p {
  font-size: 0.82rem;
  color: rgba(245,240,232,0.7);
  line-height: 1.55;
  font-weight: 300;
}
.cookie-text a { color: var(--sandstone); }
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.4rem;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.cookie-accept {
  background: var(--gold);
  color: var(--forest);
  border: 1px solid var(--gold);
}
.cookie-accept:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.cookie-decline {
  background: transparent;
  color: rgba(245,240,232,0.8);
  border: 1px solid rgba(245,240,232,0.3);
}
.cookie-decline:hover { border-color: var(--sandstone); color: var(--sandstone); }

@media (max-width: 700px) {
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}

/* ─── COOKIE-GATE (blockierend, Startseite) ── */
.cookie-gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cookie-gate.show { opacity: 1; }
.cookie-gate[hidden] { display: none; }

.cookie-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,18,13,0.88);
  backdrop-filter: blur(7px);
}

.cookie-gate-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  text-align: center;
  background: var(--forest);
  border: 1px solid rgba(201,162,75,0.35);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: translateY(14px);
  transition: transform 0.4s ease;
}
.cookie-gate.show .cookie-gate-card { transform: translateY(0); }

.cookie-gate-card .logo-tree {
  width: 42px;
  margin: 0 auto 0.6rem;
}
.cookie-gate-card .logo-word {
  display: block;
  font-size: 1.55rem;
  margin-bottom: 1.15rem;
}
.cookie-gate-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--stone);
  margin-bottom: 0.75rem;
}
.cookie-gate-text {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(245,240,232,0.68);
  font-weight: 300;
  margin-bottom: 1.6rem;
}
.cookie-gate-text a { color: var(--gold); }

.cookie-gate-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.3rem;
}
.cookie-gate-actions .cookie-btn { flex: 1; text-align: center; }

.cookie-gate-links {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.35);
}
.cookie-gate-links a {
  color: rgba(245,240,232,0.55);
  text-decoration: none;
}
.cookie-gate-links a:hover { color: var(--gold); }

body.gate-locked { overflow: hidden; }

@media (max-width: 480px) {
  .cookie-gate-actions { flex-direction: column; }
}

/* Downloads responsive */
@media (max-width: 860px) {
  .downloads-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .downloads-grid { grid-template-columns: 1fr; }
}

/* ─── MOBILE AKTIONSLEISTE ───────────────── */
.mobile-actionbar { display: none; }

@media (max-width: 860px) {
  .mobile-actionbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(20,24,17,0.94);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(201,162,75,0.3);
  }
  .mab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-align: center;
    padding: 14px 12px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
  }
  .mab-call {
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(201,162,75,0.55);
  }
  .mab-cta {
    background: var(--moss);
    color: var(--stone);
  }
  /* Platz schaffen, damit Footer nicht verdeckt wird */
  body { padding-bottom: 74px; }
}

/* Logo auf schmalen Geräten verkleinern (kein Überlauf) */
@media (max-width: 520px) {
  .logo-word { font-size: 1.3rem; }
  .logo-tree { width: 30px; }
}
@media (max-width: 360px) {
  .logo-word { font-size: 1.12rem; }
}

/* ═══════════════════════════════════════════
   RICHTUNG 4 — Erdig-dunkle, animierte Sektionen
   (ersetzt die hellen Creme-Hintergründe)
   ═══════════════════════════════════════════ */
.services, .about, .projects, .downloads, .contact {
  position: relative;
  overflow: hidden;
}
.container { position: relative; z-index: 1; }

/* dunkle Basisfarbe (überschreibt die hellen Hintergründe) */
.services, .contact { background-color: var(--forest); }
.projects { background-color: #20271E; }

/* Textur-Ebene */
.services::before, .about::before, .projects::before,
.downloads::before, .contact::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
}
.services::before  { background-image: linear-gradient(rgba(20,24,17,0.88), rgba(20,24,17,0.93)), url('../img/textures/tex-erde.webp'); }
.about::before     { background-image: linear-gradient(rgba(20,24,17,0.85), rgba(20,24,17,0.92)), url('../img/textures/tex-laublicht.webp'); }
.projects::before  { background-image: linear-gradient(rgba(20,24,17,0.88), rgba(20,24,17,0.93)), url('../img/textures/tex-moos.webp'); }
.downloads::before { background-image: linear-gradient(rgba(20,24,17,0.90), rgba(20,24,17,0.94)), url('../img/textures/tex-moos.webp'); }
.contact::before   { background-image: linear-gradient(rgba(20,24,17,0.86), rgba(20,24,17,0.93)), url('../img/textures/tex-laublicht.webp'); }

/* wandernde Licht-Animation */
.services::after, .about::after, .projects::after,
.downloads::after, .contact::after {
  content: '';
  position: absolute; inset: -30%; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 48% at 22% 28%, rgba(61,92,46,0.45), transparent 70%),
    radial-gradient(44% 54% at 78% 68%, rgba(74,58,40,0.50), transparent 72%),
    radial-gradient(40% 50% at 60% 18%, rgba(143,184,122,0.12), transparent 70%);
  filter: blur(10px);
  animation: bgdrift 22s ease-in-out infinite alternate;
}
.about::after     { animation-delay: -5s; }
.projects::after  { animation-delay: -10s; }
.downloads::after { animation-delay: -7s; }
.contact::after   { animation-delay: -14s; }
@keyframes bgdrift {
  0%   { transform: translate(-3%, -2%) scale(1.06); }
  100% { transform: translate(4%, 3%) scale(1.16); }
}

/* Text-Anpassungen für die nun dunklen Sektionen */
.services .section-title,
.projects .section-title,
.contact .section-title { color: var(--stone); }
.services .section-title em,
.projects .section-title em,
.contact .section-title em { color: var(--gold); }
.services .section-label,
.projects .section-label,
.contact .section-label { color: var(--leaf); }
.services-intro-text { color: rgba(245,240,232,0.65); }

.projects-link { color: var(--gold); }
.projects-link:hover { color: var(--stone); }

.contact-detail-label { color: var(--gold); }
.contact-detail-value { color: var(--stone); }
.contact-detail-value a:hover { color: var(--leaf); }
.contact-opening {
  background: rgba(245,240,232,0.05);
  border-left-color: var(--gold);
}
.contact-opening-title { color: var(--gold); }
.contact-opening-row {
  color: rgba(245,240,232,0.85);
  border-bottom-color: rgba(245,240,232,0.1);
}
.contact-map-label { color: var(--leaf); }
.contact-map-frame { border-color: rgba(201,162,75,0.25); }

/* Formular auf dunklem Grund */
.form-field label { color: rgba(245,240,232,0.55); }
.form-field input,
.form-field textarea,
.form-field select {
  background: rgba(245,240,232,0.06);
  border-color: rgba(245,240,232,0.18);
  color: var(--stone);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(245,240,232,0.4); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--gold);
  background: rgba(245,240,232,0.1);
}
.contact select option { color: #1A1F17; }
.form-privacy { color: rgba(245,240,232,0.6); }
.form-privacy a { color: var(--gold); }

/* Rechtsseiten ebenfalls erdig-dunkel */
.legal-page { background-color: var(--forest); }
.legal-body { position: relative; overflow: hidden; }
.legal-body::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center;
  background-image: linear-gradient(rgba(20,24,17,0.90), rgba(20,24,17,0.94)), url('../img/textures/tex-erde.webp');
}
.legal-body h2 { color: var(--gold); }
.legal-body p, .legal-body address { color: rgba(245,240,232,0.72); }
.legal-body strong { color: var(--stone); }
.legal-body a { color: var(--leaf); }

@media (prefers-reduced-motion: reduce) {
  .services::after, .about::after, .projects::after,
  .downloads::after, .contact::after { animation: none; }
}

/* ─── REDUCED MOTION ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-eyebrow, .hero-headline, .hero-sub, .hero-actions {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .hero-bg { transition: none; }
  .scroll-line { animation: none; }
}
