/* Aaron Dorn Gartenservice - stylesheet (Apple / Liquid Glass language) */

:root {
  --forest: #204632;
  --forest-dark: #14301f;
  --forest-tint: #eaf0eb;
  --bg: #f5f4ef;
  --surface: #ffffff;
  --ink: #1a1f1b;
  --ink-soft: #545e56;
  --line: #e2ddd1;
  --clay: #8a5a2b;
  --focus: #2f7d52;

  --radius: 22px;
  --radius-lg: 30px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -22px rgb(20 48 31 / 0.35);
  --shadow-lg: 0 30px 70px -20px rgb(20 48 31 / 0.4);

  --nav-h: 68px;
  --maxw: 1240px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Liquid glass, light mode: bright frosted surface catching light from the top */
  --glass-bg: rgb(255 255 255 / 0.62);
  --glass-bg-strong: rgb(255 255 255 / 0.78);
  --glass-border: rgb(255 255 255 / 0.55);
  --glass-highlight: rgb(255 255 255 / 0.9);
  --glass-shadow: 0 20px 50px -20px rgb(20 48 31 / 0.3);
  --glass-tint: rgb(32 70 50 / 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --forest: #57a077;
    --forest-dark: #2c5c3e;
    --forest-tint: #17251b;
    --bg: #0f130e;
    --surface: #171d15;
    --ink: #edf0ea;
    --ink-soft: #aab3ac;
    --line: #2a3225;
    --clay: #d29a5c;
    --focus: #74c996;
    --shadow: 0 24px 60px -20px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 34px 80px -20px rgb(0 0 0 / 0.65);

    --glass-bg: rgb(24 30 22 / 0.55);
    --glass-bg-strong: rgb(24 30 22 / 0.74);
    --glass-border: rgb(255 255 255 / 0.1);
    --glass-highlight: rgb(255 255 255 / 0.16);
    --glass-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.65);
    --glass-tint: rgb(255 255 255 / 0.03);
  }
}

#scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--forest) var(--forest-tint);
}

/* Page scrollbar — restrained, tactile, and aligned with the garden palette. */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track {
  background: var(--forest-tint);
  border-left: 1px solid var(--line);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--forest), var(--forest-dark));
  border: 3px solid var(--forest-tint);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--focus); }
::-webkit-scrollbar-thumb:active { background: var(--forest-dark); }
::-webkit-scrollbar-corner { background: var(--forest-tint); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               system-ui, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 650; line-height: 1.06; margin: 0; letter-spacing: -0.022em; }
p { margin: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* Grid children may shrink instead of widening the page on narrow screens. */
.hero-grid > *, .trust-grid > *, .contact-grid > *, .footer-grid > * { min-width: 0; }
@media (max-width: 359px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .form-row.two { gap: 10px; }
  .form-row.two input { padding-left: 10px; padding-right: 10px; }
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--forest); color: #fff; padding: 12px 20px;
  z-index: 300; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Liquid glass material
   ============================================================ */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow),
              inset 0 1px 0 var(--glass-highlight);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  background: linear-gradient(135deg, var(--glass-tint), transparent 55%);
  pointer-events: none;
}
.glass-strong { background: var(--glass-bg-strong); }

/* Dark glass: used to caption photos, independent of light/dark theme so
   text stays legible over any image. */
.glass-dark {
  background: rgb(10 14 10 / 0.45);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-color: rgb(255 255 255 / 0.16);
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.16);
}
.glass-dark::before { background: linear-gradient(135deg, rgb(255 255 255 / 0.08), transparent 55%); }

@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  white-space: nowrap; padding: 15px 28px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:active { transform: scale(0.96); transition-duration: 0.12s; }

.btn-primary { background: var(--forest); color: #fff; box-shadow: 0 14px 30px -14px rgb(20 48 31 / 0.55); }
.btn-primary:hover { background: var(--forest-dark); transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgb(20 48 31 / 0.6); }

.btn-whatsapp { background: #25D366; color: #06280d; box-shadow: 0 14px 30px -14px rgb(20 130 60 / 0.5); }
.btn-whatsapp:hover { background: #22c15e; transform: translateY(-2px); }

.btn-outline {
  color: #fff; border-color: rgb(255 255 255 / 0.5);
  background: rgb(255 255 255 / 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn-outline:hover { background: rgb(255 255 255 / 0.22); transform: translateY(-2px); }

.btn-line { background: var(--glass-bg); color: var(--forest-dark); border-color: var(--glass-border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
@media (prefers-color-scheme: dark) { .btn-line { color: var(--ink); } }
.btn-line:hover { transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ============================================================
   Header - floating glass capsule
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 100; padding: 14px 16px 0; pointer-events: none; }
.site-header .nav-row {
  pointer-events: auto;
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 10px 0 18px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: height 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled .nav-row { height: 58px; box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight), 0 10px 30px -14px rgb(0 0 0 / 0.25); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-logo { height: 34px; width: auto; display: block; }
.logo-dark { display: block; }
.logo-light { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-dark { display: none; }
  .logo-light { display: block; }
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-weight: 650; font-size: 1rem; letter-spacing: -0.01em; }
.brand-text small { font-weight: 500; font-size: 0.66rem; color: var(--ink-soft); letter-spacing: 0.06em; }

.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a {
  position: relative; text-decoration: none; font-weight: 500; font-size: 0.95rem;
  color: var(--ink-soft); padding: 8px 2px; transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--glass-border); background: var(--glass-bg-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  cursor: pointer; transition: transform 0.25s var(--ease);
}
.menu-toggle:active { transform: scale(0.9); }
.menu-toggle svg { width: 20px; height: 20px; color: var(--ink); }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .nav-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

.mobile-panel {
  pointer-events: auto;
  margin: 10px auto 0;
  max-width: var(--maxw);
  border-radius: 26px;
  overflow: hidden;
}
.mobile-panel ul { list-style: none; margin: 0; padding: 10px 18px 6px; display: flex; flex-direction: column; }
.mobile-panel a {
  display: block; padding: 15px 4px; text-decoration: none; font-weight: 500;
  font-size: 1.06rem; color: var(--ink); border-bottom: 1px solid var(--glass-border);
}
.mobile-panel .mobile-actions { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 20px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 28px 16px 72px; position: relative; }
.hero-grid { display: grid; gap: 32px; align-items: center; max-width: var(--maxw); margin: 0 auto; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; } }

.hero-copy h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--forest-dark);
}
@media (prefers-color-scheme: dark) { .hero-copy h1 { color: var(--ink); } }
.hero-copy p { margin-top: 20px; font-size: 1.18rem; color: var(--ink-soft); max-width: 46ch; letter-spacing: -0.006em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(0deg);
  transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease);
}
.hero-media.tilting, .tile.tilting, .feature-showcase.tilting, .about-media.tilting {
  transition: transform 0.12s linear;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.4; }
.hero-badge {
  position: absolute; left: 18px; bottom: 18px; padding: 11px 18px;
  border-radius: 999px; font-size: 0.86rem; font-weight: 600; color: var(--ink);
}

/* ============================================================
   Trust strip
   ============================================================ */
.trust-strip { padding: 8px 16px 0; }
.trust-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: 4px; grid-template-columns: repeat(2, 1fr);
  border-radius: var(--radius); padding: 22px 26px;
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); padding: 24px 32px; } }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.trust-item svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--forest); }
.trust-item span { font-weight: 600; font-size: 0.96rem; }

/* ============================================================
   Section shell
   ============================================================ */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -0.025em;
  color: var(--forest-dark);
}
@media (prefers-color-scheme: dark) { .section-head h2 { color: var(--ink); } }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.08rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-alt { background: var(--surface); }

/* ============================================================
   Service bento
   ============================================================ */
.service-bento { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .service-bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .service-bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; }
  .service-bento .tile-lg { grid-column: span 2; grid-row: span 2; }
}

.tile {
  position: relative; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  min-height: 230px; display: block;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 0.7s var(--ease); }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgb(10 14 10 / 0.85) 0%, rgb(10 14 10 / 0.1) 50%, transparent 72%);
}
.tile:hover img { transform: scale(1.08); }
.tile-body { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; border-radius: var(--radius-sm); color: #fff; }
.tile-body h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
.tile-body p { font-size: 0.9rem; margin-top: 4px; color: rgb(255 255 255 / 0.85); }
.tile-lg .tile-body h3 { font-size: 1.45rem; }

.services-more { margin-top: 34px; display: flex; justify-content: center; }

/* ============================================================
   Process steps
   ============================================================ */
.process-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-card { border-radius: var(--radius); padding: 28px 24px; transition: transform 0.4s var(--ease); }
.process-card:hover { transform: translateY(-4px); }
.process-num {
  font-size: 0.9rem; font-weight: 700; width: 34px; height: 34px; border-radius: 50%;
  background: var(--forest); color: #fff; display: flex; align-items: center; justify-content: center;
}
.process-card h3 { margin-top: 18px; font-size: 1.12rem; letter-spacing: -0.01em; }
.process-card p { margin-top: 8px; color: var(--ink-soft); font-size: 0.95rem; }

/* ============================================================
   Featured project (full-bleed apple-style showcase)
   ============================================================ */
.feature-showcase { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); transition: transform 0.5s var(--ease); }
.feature-showcase img { width: 100%; height: clamp(360px, 60vw, 620px); object-fit: cover; transition: transform 1.2s var(--ease); }
.feature-showcase:hover img { transform: scale(1.04); }
.feature-card {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  max-width: 460px; border-radius: var(--radius); padding: 26px 28px;
}
@media (min-width: 640px) { .feature-card { left: 36px; right: auto; bottom: 36px; } }
.feature-card h3 { font-size: 1.4rem; letter-spacing: -0.02em; color: #fff; }
.feature-card p { margin-top: 10px; color: rgb(255 255 255 / 0.85); font-size: 0.98rem; }

/* ============================================================
   Horizontal scroll-snap gallery
   ============================================================ */
.scroll-gallery {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 16px 26px; margin: 0 -16px; scrollbar-width: thin;
}
.scroll-gallery::-webkit-scrollbar { height: 8px; }
.scroll-gallery::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.scroll-card {
  flex: 0 0 auto; width: 78vw; max-width: 380px; scroll-snap-align: center;
  border-radius: var(--radius); overflow: hidden; opacity: 0.6; transform: scale(0.96);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.scroll-card.centered { opacity: 1; transform: scale(1); }
.scroll-card img { aspect-ratio: 4/3; object-fit: cover; }
.scroll-card figcaption { padding: 14px 16px; font-size: 0.92rem; color: var(--ink-soft); background: var(--surface); }

/* ============================================================
   Gallery
   ============================================================ */
.gallery-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } .gallery-grid .g-wide { grid-column: span 2; } }
.gallery-item { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; margin: 0; box-shadow: var(--shadow); transition: transform 0.4s var(--ease); }
.gallery-item:hover { transform: translateY(-6px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery-item figcaption { padding: 14px 16px; font-size: 0.92rem; color: var(--ink-soft); background: var(--surface); }

/* ============================================================
   About
   ============================================================ */
.about-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.9fr 1.1fr; } }
.about-media { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transition: transform 0.5s var(--ease); }
.about-media img { aspect-ratio: 4/3; object-fit: cover; transition: transform 0.6s var(--ease); }
.about-media:hover img { transform: scale(1.03); }
.about-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); letter-spacing: -0.025em; color: var(--forest-dark); }
@media (prefers-color-scheme: dark) { .about-copy h2 { color: var(--ink); } }
.about-copy p { margin-top: 16px; color: var(--ink-soft); font-size: 1.06rem; max-width: 58ch; }
.about-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.about-list svg { width: 22px; height: 22px; color: var(--forest); flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  margin: 0 auto; padding: 64px 32px; text-align: center;
  background: radial-gradient(120% 140% at 20% 0%, #2c5c3e 0%, #14301f 55%, #0d2116 100%);
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { font-size: clamp(1.8rem, 3.8vw, 2.5rem); letter-spacing: -0.03em; color: #fff; }
.cta-banner p { margin-top: 14px; color: rgb(255 255 255 / 0.82); font-size: 1.08rem; }
.cta-banner .hero-actions { justify-content: center; margin-top: 28px; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .contact-grid > .form-card { overflow-y: auto; overscroll-behavior: contain; }
}
.contact-card { border-radius: var(--radius); padding: 30px; }
.contact-card h3 { font-size: 1.2rem; letter-spacing: -0.01em; color: var(--forest-dark); }
@media (prefers-color-scheme: dark) { .contact-card h3 { color: var(--ink); } }
.contact-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--forest); flex-shrink: 0; margin-top: 2px; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.hours-table { width: 100%; margin-top: 20px; border-collapse: collapse; }
.hours-table td { padding: 9px 0; border-top: 1px solid var(--glass-border); font-size: 0.96rem; }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.contact-card .btn { margin-top: 22px; }

.form-card { border-radius: var(--radius); padding: 30px; }
.form-row { display: grid; gap: 18px; }
.form-row.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.form-row.two > .field { min-width: 0; margin-top: 0; }
.form-row.two input { min-width: 0; }
@media (max-width: 479px) {
  .form-row.two { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.field:first-child { margin-top: 0; }
.field label { font-weight: 600; font-size: 0.94rem; }
.field input, .field select, .field textarea {
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 13px 14px;
  font: inherit; background: var(--surface); color: var(--ink);
  transition: transform 0.25s var(--ease), border-color 0.2s;
}
.field input, .field select { min-height: 52px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input[type="file"] { padding: 6px; border-style: dashed; color: var(--ink-soft); cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 9px 14px; border: 0; border-radius: 8px;
  background: var(--forest); color: #fff; font: inherit; font-weight: 650;
  cursor: pointer; transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.field input[type="file"]:hover::file-selector-button { background: var(--forest-dark); }
.field input[type="file"]:active::file-selector-button { transform: scale(0.97); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { transform: translateY(-1px); outline: 3px solid var(--focus); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 120px; }
.field .hint { font-size: 0.82rem; color: var(--ink-soft); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field-check input[aria-invalid="true"] { border-color: #b3382c; }
.field-error { min-height: 1.2em; color: #b3382c; font-size: 0.84rem; font-weight: 600; }
.field-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: 0.9rem; line-height: 1.45; }
.field-check input { appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; border: 1px solid var(--ink-soft); border-radius: 5px; background: var(--surface); cursor: pointer; }
.field-check input:checked { border-color: var(--forest); background: var(--forest); box-shadow: inset 0 0 0 4px var(--surface); }
.field-check input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.field-check a { color: var(--forest-dark); font-weight: 650; }
.btn:disabled { cursor: wait; opacity: 0.68; transform: none; }
.form-status { margin-top: 16px; font-size: 0.95rem; font-weight: 600; }
.form-status[data-state="ok"] { color: var(--forest); }
.form-status[data-state="error"] { color: #b3382c; }

/* ============================================================
   Map
   ============================================================ */
.map-wrap { margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--forest-dark); color: rgb(255 255 255 / 0.85); padding: 60px 0 28px; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 650; text-decoration: none; }
.footer-brand img { height: 30px; width: auto; }
.footer-col h4 { color: #fff; font-size: 0.98rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgb(255 255 255 / 0.78); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.14);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 0.86rem; color: rgb(255 255 255 / 0.6);
}
.footer-bottom a { color: rgb(255 255 255 / 0.7); text-decoration: underline; }

/* ============================================================
   Utility
   ============================================================ */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================
   Leistungen page grid
   ============================================================ */
.leistungen-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .leistungen-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .leistungen-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform 0.4s var(--ease); background: var(--surface); }
.service-card:hover { transform: translateY(-6px); }
.service-card img { aspect-ratio: 4/3; object-fit: cover; transition: transform 0.6s var(--ease); }
.service-card:hover img { transform: scale(1.06); }
.service-card .body { padding: 20px; }
.service-card h3 { font-size: 1.08rem; letter-spacing: -0.01em; color: var(--forest-dark); }
@media (prefers-color-scheme: dark) { .service-card h3 { color: var(--ink); } }
.service-card p { margin-top: 8px; color: var(--ink-soft); font-size: 0.95rem; }

.legal-body { max-width: 72ch; margin: 0 auto; }
.legal-body h2 { margin-top: 36px; font-size: 1.3rem; color: var(--forest-dark); }
@media (prefers-color-scheme: dark) { .legal-body h2 { color: var(--ink); } }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-soft); margin-top: 10px; }

/* ============================================================
   Motion layer
   ============================================================ */
.btn, .tile, .gallery-item, .about-media, .process-card, .service-card,
.field input, .field select, .field textarea, .menu-toggle {
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {

  .reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .reveal.in-view { opacity: 1; transform: translateY(0); }

  .trust-grid .trust-item:nth-child(1) { --reveal-delay: 0ms; }
  .trust-grid .trust-item:nth-child(2) { --reveal-delay: 90ms; }
  .trust-grid .trust-item:nth-child(3) { --reveal-delay: 180ms; }
  .trust-grid .trust-item:nth-child(4) { --reveal-delay: 270ms; }

  .service-bento .tile:nth-child(1) { --reveal-delay: 0ms; }
  .service-bento .tile:nth-child(2) { --reveal-delay: 80ms; }
  .service-bento .tile:nth-child(3) { --reveal-delay: 160ms; }
  .service-bento .tile:nth-child(4) { --reveal-delay: 240ms; }
  .service-bento .tile:nth-child(5) { --reveal-delay: 320ms; }
  .service-bento .tile:nth-child(6) { --reveal-delay: 400ms; }

  .process-grid .process-card:nth-child(1) { --reveal-delay: 0ms; }
  .process-grid .process-card:nth-child(2) { --reveal-delay: 90ms; }
  .process-grid .process-card:nth-child(3) { --reveal-delay: 180ms; }
  .process-grid .process-card:nth-child(4) { --reveal-delay: 270ms; }

  .gallery-grid .gallery-item:nth-child(1) { --reveal-delay: 0ms; }
  .gallery-grid .gallery-item:nth-child(2) { --reveal-delay: 90ms; }
  .gallery-grid .gallery-item:nth-child(3) { --reveal-delay: 180ms; }
  .gallery-grid .gallery-item:nth-child(4) { --reveal-delay: 270ms; }
  .gallery-grid .gallery-item:nth-child(5) { --reveal-delay: 360ms; }

  .leistungen-grid .service-card:nth-child(3n+1) { --reveal-delay: 0ms; }
  .leistungen-grid .service-card:nth-child(3n+2) { --reveal-delay: 80ms; }
  .leistungen-grid .service-card:nth-child(3n+3) { --reveal-delay: 160ms; }

  .about-list li:nth-child(1) { --reveal-delay: 0ms; }
  .about-list li:nth-child(2) { --reveal-delay: 80ms; }
  .about-list li:nth-child(3) { --reveal-delay: 160ms; }
  .about-list li:nth-child(4) { --reveal-delay: 240ms; }

  .hero-copy h1 { animation: fadeUp 0.9s var(--ease) both; }
  .hero-copy p { animation: fadeUp 0.9s var(--ease) 0.1s both; }
  .hero-actions { animation: fadeUp 0.9s var(--ease) 0.2s both; }
  .hero-media { animation: fadeScale 1s var(--ease) 0.16s both; }

  @keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes fadeScale { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

  .mobile-panel {
    max-height: 0; overflow: hidden; opacity: 0; transform: translateY(-10px) scale(0.98);
    transition: max-height 0.5s var(--ease-spring), opacity 0.3s var(--ease), transform 0.4s var(--ease-spring);
  }
  .mobile-panel.open { max-height: 480px; opacity: 1; transform: translateY(0) scale(1); }

  .main-nav a::after {
    content: ""; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 2px;
    background: var(--forest); transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s var(--ease);
  }
  .main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }

  .back-to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    width: 50px; height: 50px; border-radius: 50%;
    color: var(--ink); display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; opacity: 0; transform: translateY(14px) scale(0.85);
    pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.4s var(--ease-spring);
  }
  .back-to-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .back-to-top:hover { transform: translateY(-3px) scale(1.04); }
  .back-to-top svg { width: 22px; height: 22px; }

  .form-status:not(:empty) { animation: fadeUp 0.4s var(--ease) both; }

  .scroll-card { will-change: transform, opacity; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-panel { display: none; max-height: none; opacity: 1; }
  .mobile-panel.open { display: block; }
  .back-to-top { display: none; }
  .hero-media { transform: none !important; }
}
