/* ==========================================================================
   artGartenBau - Garten- und Landschaftsbau Bad Wörishofen
   Design system & components. Plain CSS, no frameworks.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Colours */
  --green-950: #15271d;
  --green-900: #1b3a2b;
  --green-800: #234a37;
  --green-700: #2f5d45;
  --green-600: #3c7355;
  --green-500: #4f8a68;

  --gold-600: #9a7b35;
  --gold-500: #b08d3f;
  --gold-400: #c7a85c;
  --olive: #6f7d4a;

  --stone-50: #faf7f1;
  --stone-100: #f3ede2;
  --stone-200: #e7ded0;
  --stone-300: #d6c9b4;

  --ink: #25271f;
  --ink-soft: #3c3f34;
  --muted: #6c6f60;
  --line: rgba(37, 39, 31, 0.12);

  --white: #ffffff;

  /* Semantic */
  --bg: var(--stone-50);
  --bg-alt: var(--stone-100);
  --surface: var(--white);
  --text: var(--ink);
  --text-muted: var(--muted);
  --accent: var(--gold-500);
  --accent-strong: var(--gold-600);

  /* Typography */
  --font-display: "Iowan Old Style", "Palatino Linotype", "Palatino", "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.1875rem;
  --fs-lg: 1.4rem;
  --fs-xl: 1.85rem;
  --fs-2xl: 2.4rem;
  --fs-3xl: clamp(2.4rem, 5vw, 3.6rem);
  --fs-hero: clamp(2.7rem, 6.2vw, 5.2rem);

  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-base: 1.7;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(21, 39, 29, 0.06), 0 2px 8px rgba(21, 39, 29, 0.05);
  --shadow-md: 0 6px 18px rgba(21, 39, 29, 0.09), 0 2px 6px rgba(21, 39, 29, 0.06);
  --shadow-lg: 0 18px 48px rgba(21, 39, 29, 0.16), 0 6px 16px rgba(21, 39, 29, 0.08);
  --shadow-gold: 0 10px 30px rgba(176, 141, 63, 0.32);

  /* Layout */
  --maxw: 1200px;
  --maxw-narrow: 760px;
  --header-h: 90px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--green-900);
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.01em;
}

p { margin: 0 0 var(--sp-4); }

a { color: var(--green-700); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-strong); }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.2em; }

strong { font-weight: 650; color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -120px;
  z-index: 1200;
  background: var(--green-900);
  color: var(--white);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: var(--sp-4); color: var(--white); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.section { padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-8); }
.section--alt { background: var(--bg-alt); }
.section--green {
  background: linear-gradient(160deg, var(--green-900), var(--green-800));
  color: var(--stone-100);
}
.section--green h1, .section--green h2, .section--green h3 { color: var(--white); }
.section--green p { color: var(--stone-100); }
.section--green .lead { color: #eef2e9; }
.section--green strong { color: var(--white); }
.section--green a:not(.btn) { color: var(--gold-400); }
.section--green a:not(.btn):hover { color: var(--white); }
.section--green ul { color: var(--stone-100); }

.narrow { max-width: var(--maxw-narrow); margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.section--green .eyebrow { color: var(--gold-400); }

.section-head { max-width: 720px; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-3xl); }
.section-head p { font-size: var(--fs-md); color: var(--text-muted); margin-bottom: 0; }
.section--green .section-head p { color: var(--stone-200); }

.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green-700);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 1.05em 1.9em;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(0); }

.btn--gold { --btn-bg: var(--accent); color: var(--green-950); }
.btn--gold:hover { --btn-bg: var(--gold-400); color: var(--green-950); box-shadow: var(--shadow-gold); }

.btn--ghost {
  --btn-bg: transparent;
  color: var(--green-800);
  border-color: rgba(37, 39, 31, 0.22);
  box-shadow: none;
}
.btn--ghost:hover { color: var(--green-900); border-color: var(--green-700); background: rgba(47, 93, 69, 0.06); }

.btn--on-dark { color: var(--white); border-color: rgba(255, 255, 255, 0.4); background: transparent; box-shadow: none; }
.btn--on-dark:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); border-color: rgba(255,255,255,0.7); }

.btn--lg { padding: 1.15em 2.4em; font-size: var(--fs-base); }
.btn__icon { width: 1.05em; height: 1.05em; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.btn-row.center { justify-content: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 650;
  color: var(--accent-strong);
}
.text-link svg { width: 1em; height: 1em; transition: transform 0.2s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(27, 58, 43, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(21, 39, 29, 0.28); background: rgba(21, 39, 29, 0.97); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: var(--header-h);
}

/* Brand: CSS logo = gardening icons + wordmark + gold subtitle (vector, retina-sharp) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  text-decoration: none;
}
.brand__icons {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  color: #fff;
  transition: opacity 0.2s var(--ease);
}
.brand__icon { height: 48px; width: auto; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.02; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.004em;
  transition: opacity 0.2s var(--ease);
}
.brand__tag {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 700;
  margin-top: 3px;
}
.brand:hover .brand__icons,
.brand:hover .brand__name { opacity: 0.88; }

/* Footer variant: larger, identical colours on the dark footer */
.brand--footer { margin-bottom: var(--sp-5); align-items: center; }
.brand--footer .brand__icon { height: 56px; }
.brand--footer .brand__name { font-size: 1.95rem; }
.brand--footer .brand__tag { font-size: 0.8rem; letter-spacing: 0.16em; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--fs-sm);
  font-weight: 550;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  position: relative;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: 2px;
  height: 2px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-menu a:hover { color: var(--white); }
.nav-menu a:hover::after,
.nav-menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-menu a[aria-current="page"] { color: var(--white); }

.nav-actions { display: flex; align-items: center; gap: var(--sp-4); }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--white);
  font-weight: 650;
  font-size: var(--fs-sm);
}
.nav-phone svg { width: 1.05em; height: 1.05em; color: var(--gold-400); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Hero (homepage) ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(15, 39, 29, 0.86) 0%, rgba(15, 39, 29, 0.55) 45%, rgba(15, 39, 29, 0.25) 100%),
    linear-gradient(0deg, rgba(15, 39, 29, 0.55), rgba(15, 39, 29, 0) 40%);
}
.hero__inner { padding-block: var(--sp-9); max-width: 760px; }
.hero h1 {
  color: var(--white);
  font-size: var(--fs-hero);
  margin-bottom: var(--sp-5);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}
.hero h1 em { font-style: italic; color: var(--gold-400); }
.hero__sub {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin-bottom: var(--sp-6);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero__meta div { line-height: 1.2; }
.hero__meta b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold-400);
}
.hero__meta span { font-size: var(--fs-xs); letter-spacing: 0.06em; color: rgba(255,255,255,0.8); text-transform: uppercase; }

.scroll-cue {
  position: absolute;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--gold-400), transparent);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Page banner (inner pages) ---------- */
.page-hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 52vh;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 39, 29, 0.55) 0%, rgba(15, 39, 29, 0.45) 40%, rgba(15, 39, 29, 0.82) 100%);
}
.page-hero__inner { padding-block: var(--sp-8) var(--sp-8); max-width: 760px; }
.page-hero h1 { color: var(--white); font-size: var(--fs-3xl); margin-bottom: var(--sp-3); }
.page-hero p { color: rgba(255, 255, 255, 0.9); font-size: var(--fs-md); margin-bottom: 0; }

/* Breadcrumb */
.breadcrumb { font-size: var(--fs-xs); letter-spacing: 0.04em; margin-bottom: var(--sp-4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 0; margin: 0; }
.breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--sp-2); color: rgba(255,255,255,0.45); }
.breadcrumb [aria-current="page"] { color: var(--gold-400); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards (services / generic) ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(176, 141, 63, 0.35); }
.card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.card p { color: var(--text-muted); margin-bottom: 0; }

.card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, var(--green-700), var(--green-600));
  color: var(--gold-400);
  margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.card-icon svg { width: 28px; height: 28px; }

.card--service { display: flex; flex-direction: column; }
.card--service .card-tag {
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 700;
}

/* Feature list (Warum-Section) */
.feature {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.feature__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: rgba(176, 141, 63, 0.14);
  color: var(--accent-strong);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.feature p { color: var(--text-muted); margin-bottom: 0; font-size: var(--fs-sm); }
.section--green .feature p { color: var(--stone-200); }
.section--green .feature__icon { background: rgba(199, 168, 92, 0.16); color: var(--gold-400); }

/* Split / media columns */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; }
.split__media .badge-float {
  position: absolute;
  bottom: -22px;
  right: -16px;
  background: var(--white);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 200px;
}
.split__media .badge-float b { font-family: var(--font-display); font-size: 1.5rem; color: var(--green-800); display: block; }
.split__media .badge-float span { font-size: var(--fs-xs); color: var(--muted); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); counter-reset: step; }
.step { position: relative; padding-top: var(--sp-6); }
.step__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold-400);
  line-height: 1;
  display: block;
  margin-bottom: var(--sp-3);
}
.step h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.step p { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: 0; }
.section--green .step p { color: var(--stone-200); }
.step::before {
  content: "";
  position: absolute;
  top: calc(var(--sp-6) + 0.6rem);
  left: 2.8rem;
  right: -1.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-400), transparent);
}
.steps .step:last-child::before { display: none; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); text-align: center; }
.stat b { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold-400); display: block; line-height: 1; }
.stat span { font-size: var(--fs-sm); color: var(--stone-200); letter-spacing: 0.03em; }

/* ---------- Preview / work strip ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.work-tile {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  display: block;
}
.work-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.work-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 39, 29, 0.78));
  opacity: 0.85;
  transition: opacity 0.3s var(--ease);
}
.work-tile figcaption {
  position: absolute;
  left: var(--sp-4);
  right: var(--sp-4);
  bottom: var(--sp-4);
  color: var(--white);
  z-index: 2;
  font-size: var(--fs-sm);
  font-weight: 600;
  transform: translateY(6px);
  opacity: 0.92;
  transition: transform 0.3s var(--ease);
}
.work-tile:hover img { transform: scale(1.07); }
.work-tile:hover figcaption { transform: translateY(0); }
.work-tile .tile-cat {
  display: inline-block;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 2px;
}

/* ---------- Gallery (galerie.html) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-bottom: var(--sp-7);
}
.filter-btn {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.6em 1.25em;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.22s var(--ease);
}
.filter-btn:hover { border-color: var(--green-600); color: var(--green-800); }
.filter-btn[aria-pressed="true"] {
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
  box-shadow: var(--shadow-sm);
}

.gallery {
  columns: 3;
  column-gap: var(--sp-4);
}
.gallery__item {
  break-inside: avoid;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  background: var(--bg-alt);
}
.gallery__item.is-hidden { display: none; }
.gallery__item button.gallery__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.gallery__item img { width: 100%; transition: transform 0.6s var(--ease-out); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 39, 29, 0.72));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.gallery__caption {
  position: absolute;
  left: var(--sp-4);
  right: var(--sp-4);
  bottom: var(--sp-4);
  color: var(--white);
  z-index: 2;
  font-size: var(--fs-sm);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.gallery__caption .tile-cat { display: block; font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-400); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item:hover .gallery__caption { opacity: 1; transform: translateY(0); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(13, 26, 19, 0.94);
  padding: var(--sp-5);
}
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox__figure img {
  max-height: 78vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.lightbox__caption { color: var(--stone-200); margin-top: var(--sp-4); font-size: var(--fs-sm); }
.lightbox__caption .tile-cat { color: var(--gold-400); letter-spacing: 0.1em; text-transform: uppercase; font-size: var(--fs-xs); display:block; margin-bottom: 2px; }
.lightbox__btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: var(--sp-5); right: var(--sp-5); }
.lightbox__prev { left: var(--sp-5); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--sp-5); top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: var(--sp-5); left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: var(--fs-xs); letter-spacing: 0.1em; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(var(--sp-5), 4vw, var(--sp-8));
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field.span-2 { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 650; color: var(--ink-soft); }
.field .req { color: var(--accent-strong); }
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--ink);
  padding: 0.85em 1em;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--stone-50);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(63, 115, 85, 0.14);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input[type="file"] { padding: 0.6em; background: var(--stone-100); cursor: pointer; }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.privacy-note { font-size: var(--fs-sm); color: var(--text-muted); }
.privacy-note a { font-weight: 650; }

/* ---------- Contact details list ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-5); }
.contact-list li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-list .ci {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: rgba(176, 141, 63, 0.14);
  color: var(--accent-strong);
}
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list b { display: block; font-family: var(--font-display); font-size: var(--fs-md); color: var(--green-900); }
.contact-list span, .contact-list a { color: var(--ink-soft); }

.location-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--green-800), var(--green-700));
  color: var(--stone-100);
  padding: var(--sp-7);
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.location-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.12) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: 0.5;
}
.location-card h3 { color: var(--white); position: relative; }
.location-card p { color: var(--stone-200); position: relative; margin-bottom: var(--sp-4); }
.location-card .pin { position: relative; color: var(--gold-400); }

/* ---------- WhatsApp button variant ---------- */
.btn--whatsapp { --btn-bg: #25d366; color: #08331c; }
.btn--whatsapp:hover { --btn-bg: #1ebe5a; color: #08331c; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35); }
.btn--whatsapp .btn__icon { width: 1.2em; height: 1.2em; }

/* ---------- Direct-contact panel (kontakt.html) ---------- */
.contact-panel {
  position: relative;
  background: linear-gradient(165deg, var(--surface), var(--stone-50));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(var(--sp-5), 4vw, var(--sp-7));
  box-shadow: var(--shadow-md);
}
.contact-panel__badge {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: var(--r-md);
  background: #25d366;
  color: #fff;
  margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.contact-panel__badge svg { width: 32px; height: 32px; }
.contact-panel h2 { margin-bottom: var(--sp-3); }
.contact-panel > p { color: var(--text-muted); }
.contact-cta { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.contact-cta .btn { width: 100%; }

/* ---------- Floating WhatsApp button (site-wide) ---------- */
.wa-fab {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 1400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--r-pill);
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(8, 51, 28, 0.32), 0 2px 8px rgba(8, 51, 28, 0.2);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.wa-fab svg { width: 32px; height: 32px; }
.wa-fab:hover { color: #fff; background: #1ebe5a; transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 36px rgba(8, 51, 28, 0.4); }
.wa-fab:active { transform: translateY(0) scale(1); }
.wa-fab:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }
.wa-fab .sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wa-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: waPulse 2.6s var(--ease) infinite;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  color: var(--white);
  padding: clamp(var(--sp-7), 6vw, var(--sp-9));
  text-align: center;
}
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15,39,29,0.92), rgba(34,74,55,0.82)); }
.cta-band h2 { color: var(--white); font-size: var(--fs-3xl); }
.cta-band p { color: rgba(255, 255, 255, 0.9); font-size: var(--fs-md); max-width: 600px; margin-inline: auto; margin-bottom: var(--sp-6); }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: var(--maxw-narrow); }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-7); }
.prose h3 { font-size: var(--fs-md); margin-top: var(--sp-6); margin-bottom: var(--sp-2); color: var(--green-800); }
.prose p { color: var(--ink-soft); }
.prose address { font-style: normal; color: var(--ink-soft); line-height: 1.8; margin-bottom: var(--sp-4); }
.prose .updated { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--green-900), var(--green-950));
  color: rgba(255, 255, 255, 0.78);
  padding-block: var(--sp-8) var(--sp-6);
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: var(--fs-sm); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: var(--gold-400); }
.footer-brand .brand { cursor: default; }
.footer-brand p { max-width: 300px; color: rgba(255,255,255,0.65); }
.footer-contact li { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-2); }
.footer-contact svg { width: 1.05em; height: 1.05em; color: var(--gold-400); flex-shrink: 0; margin-top: 0.25em; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-5);
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--fs-xs);
}
.footer-bottom nav { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::before { display: none; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: var(--sp-6); }
  .split--reverse .split__media { order: 0; }
  .split__media .badge-float { right: var(--sp-4); }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }

  .nav-menu, .nav-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand__icon { height: 36px; }
  .brand__name { font-size: 1.2rem; }
  .brand__tag { font-size: 0.58rem; letter-spacing: 0.1em; margin-top: 2px; }

  .site-header.menu-open .nav-menu {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--green-900);
    padding: var(--sp-4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
  }
  .site-header.menu-open .nav-menu a { padding: var(--sp-4); border-radius: var(--r-sm); font-size: var(--fs-md); }
  .site-header.menu-open .nav-menu a::after { display: none; }
  .site-header.menu-open .nav-menu li:not(:last-child) a { border-bottom: 1px solid rgba(255,255,255,0.08); }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
  .work-grid { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero__meta { gap: var(--sp-4); }
  .hero__meta b { font-size: 1.4rem; }
  .btn-row .btn { width: 100%; }
  .lightbox__prev { left: var(--sp-3); }
  .lightbox__next { right: var(--sp-3); }

  /* Smaller FAB on phones + keep footer legal links clear of it */
  .wa-fab { width: 54px; height: 54px; }
  .wa-fab svg { width: 28px; height: 28px; }
  .footer-bottom { padding-bottom: 64px; }
}

/* Prevent background scroll while the mobile menu is open */
body.nav-open { overflow: hidden; }

/* No-JS fallback: ensure gallery & reveal content are always visible */
.no-js .gallery__item.is-hidden { display: block; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
