/* ==========================================================================
   Gartengestaltung Pillmaier – Stylesheet
   Designsystem abgeleitet vom Logo: Waldgrün (Schrift), Bronze (Signatur),
   Creme (Logo-Hintergrund), Salbei/Mint (bisherige Drucksachen).
   Keine externen Ressourcen, keine Webfonts von Drittanbietern.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Optionale lokale Webfonts
   Wer statt der Systemschriften z. B. „Cormorant Garamond“ und „Inter“ nutzen
   möchte: .woff2-Dateien (OFL-Lizenz) nach /assets/fonts legen, Blöcke unten
   aktivieren und die Font-Stacks in :root anpassen. Nicht von Google laden!
   -------------------------------------------------------------------------- */
/*
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
*/

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Farben */
  --color-primary: #63888e;          /* Primärgrün (Buttons, große Schrift, Icons, Flächen) */
  --color-primary-dark: #3a5a5f;     /* dunklere Stufe: kleine Schrift, Links, Flächen mit kleiner Schrift (≥ 4,5:1) */
  --color-primary-soft: #7fa1a6;
  --color-heading: #22363a;          /* Überschriften */
  --color-secondary: #6e6243;        /* Bronze der Signatur „Pillmaier“ */
  --color-secondary-light: #cdbf97;
  --color-accent: #c6d8c2;           /* Akzent Salbei/Mint */
  --color-accent-strong: #a9c2a4;
  --color-accent-light: #e5eee3;     /* sehr helle Akzentfläche */
  --color-sand: #f1eadc;             /* warmes Beige */
  --color-background: #faf7f0;       /* Creme */
  --color-surface: #fffdf8;
  --color-text: #1c2526;
  --color-text-muted: #4a5555;
  --color-border: #e2dbcc;
  --color-border-strong: #8a8571;    /* ≥ 3:1 für Formularränder */
  --color-on-primary: #faf7f0;
  --color-dark: #22393c;
  --color-on-dark: #f3eee2;
  --color-on-dark-muted: #cbd8d5;
  --color-error: #9b2c1a;
  --color-error-bg: #fbeee9;
  --color-success: #2f5a2a;
  --color-focus: #3a5a5f;
  --color-link: #3a5a5f;             /* Text-Links, kleine Akzent-Texte, Icons */
  --color-display: #63888e;          /* große Akzent-Schrift (Hero, Zahlen) */
  --color-field-bg: #ffffff;
  --color-tag-bg: rgb(255 255 255 / 0.5);
  --color-header-bg: rgb(250 247 240 / 0.86);
  --color-header-bg-solid: rgb(250 247 240 / 0.96);
  --hero-glow-a: rgb(198 216 194 / 0.9);
  --hero-glow-b: rgb(241 234 220 / 0.9);
  --frame-outline: rgb(255 255 255 / 0.6);
  --media-filter: none;              /* Illustrationen */
  --photo-filter: none;              /* Fotos */
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a5a5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: light;

  /* Typografie */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --fs-300: 0.875rem;
  --fs-400: 1.0625rem;
  --fs-500: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-600: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --fs-700: clamp(1.9rem, 1.45rem + 2.1vw, 3.1rem);
  --fs-800: clamp(2.5rem, 1.7rem + 4vw, 5.2rem);

  --lh-tight: 1.08;
  --lh-snug: 1.25;
  --lh-body: 1.65;

  /* Formen & Tiefe */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-pill: 999px;
  --radius-arch: 999px 999px var(--radius-lg) var(--radius-lg);

  --shadow-sm: 0 1px 2px rgb(24 44 47 / 0.05);
  --shadow: 0 1px 2px rgb(24 44 47 / 0.04), 0 10px 28px -14px rgb(24 44 47 / 0.16);
  --shadow-lg: 0 2px 4px rgb(24 44 47 / 0.04), 0 28px 56px -28px rgb(24 44 47 / 0.28);

  /* Layout */
  --container-width: 1240px;
  --container-narrow: 820px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-space: clamp(4.5rem, 3rem + 7vw, 9rem);
  --header-h: 72px;

  /* Bewegung */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.35s;
}


/* --------------------------------------------------------------------------
   1b. Dark Mode – „Garten bei Nacht“
   Aktiv über data-theme="dark" auf <html> (gesetzt von assets/js/theme.js:
   gespeicherte Wahl oder Systemeinstellung).
   -------------------------------------------------------------------------- */
:root[data-theme="dark"] {
  --color-primary-dark: #3a5a5f;     /* Flächen mit heller Schrift bleiben gleich */
  --color-primary-soft: #86b0b5;
  --color-heading: #eef2ec;
  --color-secondary: #cbb98f;
  --color-secondary-light: #d9caa3;
  --color-accent: #22362f;
  --color-accent-strong: #36514a;
  --color-accent-light: #1a2a26;
  --color-sand: #16211f;
  --color-background: #0f1718;
  --color-surface: #152022;
  --color-text: #e2e8e4;
  --color-text-muted: #a6b4af;
  --color-border: #253638;
  --color-border-strong: #6f8683;
  --color-dark: #0a1112;
  --color-on-dark-muted: #b9c8c4;
  --color-error: #ff9f8c;
  --color-error-bg: #33201b;
  --color-success: #a4d69e;
  --color-focus: #a3cace;
  --color-link: #a3cace;
  --color-display: #8bb6bb;
  --color-field-bg: #0e1617;
  --color-tag-bg: rgb(255 255 255 / 0.03);
  --color-header-bg: rgb(15 23 24 / 0.82);
  --color-header-bg-solid: rgb(15 23 24 / 0.96);
  --hero-glow-a: rgb(58 90 95 / 0.45);
  --hero-glow-b: rgb(110 98 67 / 0.18);
  --frame-outline: rgb(255 255 255 / 0.12);
  --media-filter: brightness(0.8) saturate(0.85) contrast(1.05);
  --photo-filter: brightness(0.93) saturate(0.95);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3cace' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 30px -14px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 30px 60px -28px rgb(0 0 0 / 0.75);
  color-scheme: dark;
}

@media (min-width: 64em) {
  :root { --header-h: 84px; }
}

/* --------------------------------------------------------------------------
   2. Reset & Basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* verhindert horizontales Scrollen, ohne position: sticky zu stören */
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }

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

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  color: var(--color-heading);
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

p { text-wrap: pretty; }

::selection { background: var(--color-accent-strong); color: var(--color-heading); }

/* Fokus – überall klar sichtbar */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: 0.75rem;
  z-index: 1000;
  padding: 0.85rem 1.25rem;
  background: var(--color-primary-dark);
  color: var(--color-on-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-space); position: relative; }

/* --------------------------------------------------------------------------
   3. Typo-Bausteine
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-secondary);
}
.eyebrow .icon { width: 1.35rem; height: 1.35rem; stroke-width: 2.6; color: var(--color-primary-soft); }
.eyebrow--light { color: var(--color-secondary-light); }
.eyebrow--light .icon { color: var(--color-accent-strong); }

.section-title { font-size: var(--fs-700); line-height: 1.12; }
.section-lead {
  margin-top: 1.25rem;
  font-size: var(--fs-500);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 40rem;
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head--center .section-title { max-width: 22ch; margin-inline: auto; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--color-link);
  --btn-border: currentColor;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border: 1.5px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 1.1875rem; /* 19px fett = „großer Text“ nach WCAG → 3:1 genügt für Weiß/Creme auf #63888e */
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn__icon { width: 1.2em; height: 1.2em; transition: transform var(--dur) var(--ease); }
.btn--lg { min-height: 56px; padding: 0.95rem 1.85rem; }

.btn--primary {
  --btn-bg: var(--color-primary);
  --btn-fg: #fff;
  --btn-border: var(--color-primary);
  box-shadow: 0 10px 24px -14px rgb(24 44 47 / 0.7);
}
/* sanfte „Füllung“ von unten beim Hover */
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-primary-dark);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}

.btn--ghost {
  --btn-fg: var(--color-link);
  --btn-border: rgb(63 97 102 / 0.35);
}

.btn--light {
  --btn-bg: var(--color-on-dark);
  --btn-fg: #22363a; /* bleibt dunkel – Button liegt immer auf dunkler Fläche */
  --btn-border: var(--color-on-dark);
}

@media (hover: hover) {
  .btn:hover .btn__icon { transform: translateX(4px); }
  .btn--primary:hover::before { transform: translateY(0); }
  .btn--primary:hover { box-shadow: 0 14px 28px -14px rgb(24 44 47 / 0.8); }
  .btn--ghost:hover { --btn-border: var(--color-primary-dark); background: rgb(63 97 102 / 0.05); }
  .btn--light:hover { --btn-bg: #fff; }
}
.btn:active { transform: translateY(1px); }

/* --------------------------------------------------------------------------
   5. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.nav-open .site-header {
  background: var(--color-header-bg-solid);
  border-bottom-color: var(--color-border);
  box-shadow: 0 8px 24px -20px rgb(24 44 47 / 0.4);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled { backdrop-filter: saturate(1.2) blur(10px); background: var(--color-header-bg); }
  /* backdrop-filter würde das fixierte Mobilmenü einschließen – bei offenem Menü deaktivieren */
  .nav-open .site-header.is-scrolled { backdrop-filter: none; background: var(--color-background); }
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: block; flex: none; border-radius: 6px; }
.brand__logo {
  width: 134px;
  height: auto;
  transition: width 0.4s var(--ease);
}
@media (min-width: 64em) {
  .brand__logo { width: 156px; }
  .is-scrolled .brand__logo { width: 138px; }
}

/* Logo: helle Variante im Dark Mode */
.brand__pic--dark { display: none; }
[data-theme="dark"] .brand__pic--light { display: none; }
[data-theme="dark"] .brand__pic--dark { display: block; }

.site-nav { margin-left: auto; }

/* ---------- Theme-Schalter (Sonne / Mond) ---------- */
.theme-switch {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  margin-left: 0.4rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.no-js .theme-switch { display: none; }
.theme-switch__track {
  position: relative;
  display: block;
  width: 62px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #e9f1e6 0%, #c6d8c2 100%);
  box-shadow: inset 0 0 0 1.5px rgb(58 90 95 / 0.8), inset 0 2px 6px rgb(24 44 47 / 0.12); /* Rand >= 3:1 (WCAG 1.4.11) */
  overflow: hidden;
  transition: background 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
/* Sterne (nur nachts sichtbar) */
.theme-switch__stars {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.2px 1.2px at 12px 9px, #fff 99%, transparent),
    radial-gradient(1px 1px at 22px 22px, #fff 99%, transparent),
    radial-gradient(1.4px 1.4px at 8px 24px, #fff 99%, transparent),
    radial-gradient(1px 1px at 27px 12px, #fff 99%, transparent),
    radial-gradient(0.8px 0.8px at 18px 5px, #fff 99%, transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
/* kleine Wolke / Blatt-Schimmer bei Tag */
.theme-switch__track::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 11px;
  width: 16px;
  height: 7px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.85);
  box-shadow: -5px 3px 0 -1px rgb(255 255 255 / 0.7);
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
}
.theme-switch__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: 0 2px 6px rgb(24 44 47 / 0.3);
  transition: transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.6s var(--ease);
}
.theme-switch__thumb svg {
  position: absolute;
  width: 18px;
  height: 18px;
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
}
.theme-switch__sun { fill: #f1b64a; stroke: #8f5a0b; stroke-width: 1.6; stroke-linecap: round; }
.theme-switch__moon { fill: #dfe7ea; stroke: none; opacity: 0; transform: rotate(-90deg) scale(0.4); }

[data-theme="dark"] .theme-switch__track {
  background: linear-gradient(135deg, #1d3a40 0%, #0b1a1d 100%);
  box-shadow: inset 0 0 0 1.5px rgb(163 202 206 / 0.7), inset 0 2px 8px rgb(0 0 0 / 0.5);
}
[data-theme="dark"] .theme-switch__stars { opacity: 1; transform: none; }
[data-theme="dark"] .theme-switch__track::after { opacity: 0; transform: translateX(10px); }
[data-theme="dark"] .theme-switch__thumb { transform: translateX(28px); background: #2c4a50; box-shadow: 0 0 0 3px rgb(163 202 206 / 0.12), 0 0 14px rgb(163 202 206 / 0.45); }
[data-theme="dark"] .theme-switch__sun { opacity: 0; transform: rotate(90deg) scale(0.4); }
[data-theme="dark"] .theme-switch__moon { opacity: 1; transform: none; }

@media (hover: hover) {
  .theme-switch:hover .theme-switch__thumb { box-shadow: 0 0 0 5px rgb(99 136 142 / 0.18), 0 2px 6px rgb(24 44 47 / 0.3); }
  .theme-switch:hover .theme-switch__sun { transform: rotate(45deg); }
}
.theme-switch:focus-visible { outline-offset: 2px; }

/* Kreisförmiger Übergang beim Umschalten (View Transitions API) */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

/* Mobile Toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid rgb(63 97 102 / 0.3);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-link);
  font-weight: 600;
  font-size: 0.9375rem;
}
.nav-toggle__bars { position: relative; width: 20px; height: 14px; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Mobile Panel */
.site-nav__panel {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--color-background);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.site-nav__panel.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
}
.site-nav__list { display: grid; gap: 0.25rem; }
.site-nav__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-heading);
  text-decoration: none;
}
.site-nav__cta { align-self: stretch; }
.site-nav__contact { display: grid; gap: 0.75rem; }
.site-nav__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  color: var(--color-text-muted);
  text-decoration: none;
}

/* Ohne JavaScript: Menü als normale Liste anzeigen */
.no-js .nav-toggle { display: none; }

/* Sehr schmale Bildschirme (z. B. 320 px oder 400 % Zoom): alles in der Kopfzeile muss sichtbar bleiben */
@media (max-width: 23.99em) {
  .brand__logo { width: 112px; }
  .site-header__inner { gap: 0.75rem; }
  .nav-toggle { padding: 0.5rem 0.75rem; }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* bleibt für Screenreader lesbar */
  .theme-switch { margin-left: 0; }
}
.no-js .site-header { position: absolute; }
.no-js .site-nav__panel { position: static; visibility: visible; opacity: 1; transform: none; padding: 0; background: none; flex-direction: row; }
.no-js .site-nav__list { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.no-js .site-nav__link { font-family: var(--font-sans); font-size: 0.95rem; border: 0; min-height: 44px; }
.no-js .site-nav__cta, .no-js .site-nav__contact { display: none; }

@media (min-width: 64em) {
  .nav-toggle { display: none; }
  .site-nav__panel,
  .no-js .site-nav__panel {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2.25rem);
    padding: 0;
    background: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-nav__list,
  .no-js .site-nav__list { display: flex; gap: clamp(0.25rem, 1.4vw, 1.25rem); }
  .site-nav__link,
  .no-js .site-nav__link {
    position: relative;
    min-height: 44px;
    padding: 0 0.35rem;
    border: 0;
    font-family: var(--font-sans);
    font-size: 0.9688rem;
    font-weight: 500;
    color: var(--color-text);
  }
  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 0.35rem; right: 0.35rem; bottom: 8px;
    height: 1.5px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
  }
  .site-nav__link:hover::after,
  .site-nav__link[aria-current="true"]::after { transform: scaleX(1); }
  .site-nav__link[aria-current="true"] { color: var(--color-link); }
  .site-nav__cta, .no-js .site-nav__cta { display: inline-flex; align-self: auto; min-height: 46px; padding-inline: 1.35rem; }
  .site-nav__contact { display: none; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 5vw, 4rem));
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 105% -10%, var(--hero-glow-a), transparent 60%),
    radial-gradient(40rem 30rem at -15% 110%, var(--hero-glow-b), transparent 60%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* lange Wörter dürfen die Spalte nicht sprengen (große Systemschrift) */
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.hero__eyebrow { margin-bottom: 1.5rem; }
.hero__title {
  font-size: var(--fs-800);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  hyphens: auto;
}
.hero__title-accent {
  position: relative;
  display: inline-block;
  font-style: italic;
  color: var(--color-display);
  padding-bottom: 0.12em;
}
.swash {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.32em;
  overflow: visible;
  fill: none;
  stroke: var(--color-secondary);
  stroke-width: 2.4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.swash path { stroke-dasharray: 420; stroke-dashoffset: 0; }

.hero__lead {
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: var(--fs-500);
  line-height: 1.6;
  color: var(--color-text-muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}
.hero__pillars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  margin-top: 2.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
}
.hero__pillars li { display: inline-flex; align-items: center; }
.hero__pillars li + li::before {
  content: "";
  width: 5px; height: 5px;
  margin-inline: 0.9rem;
  border-radius: 50%;
  background: var(--color-accent-strong);
  box-shadow: 0 0 0 1px var(--color-primary-soft) inset;
}

.hero__visual {
  position: relative;
  width: min(100%, 520px);
  margin-inline: auto;
}
.hero__blob {
  position: absolute;
  inset: 6% -8% -4% 8%;
  z-index: -1;
  background: var(--color-accent);
  border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%;
}
.hero__frame {
  position: relative;
  aspect-ratio: 600 / 700;
  border-radius: var(--radius-arch);
  overflow: hidden;
  background: var(--color-accent);
  box-shadow: var(--shadow-lg);
  outline: 1px solid var(--frame-outline);
  outline-offset: -10px;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: var(--media-filter);
  will-change: transform;
}
/* Vorstellungskarte im Hero (Link zu „Über uns“) */
.hero__person {
  position: absolute;
  left: -0.5rem;
  bottom: 7%;
  display: grid;
  gap: 0.75rem;
  width: min(17rem, 78%);
  padding: 1rem 1.1rem 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
  text-decoration: none;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.hero__person-top { display: flex; align-items: center; gap: 0.9rem; }
.hero__person-photo {
  position: relative;
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: var(--color-accent);
  transition: background-color 0.45s var(--ease), transform 0.45s var(--ease-out);
}
.hero__person-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: var(--photo-filter); }
/* dezenter „Hallo“-Puls um das Foto */
.hero__person-photo::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  opacity: 0;
}
.hero__person-facts { display: grid; gap: 0.1rem; }
.hero__badge-pre {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1;
  color: var(--color-secondary);
}
.hero__badge-year {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--color-display);
}
.hero__badge-text { font-size: 0.875rem; line-height: 1.35; color: var(--color-text-muted); }
.hero__person-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-link);
}
.hero__person-link .icon { transition: transform var(--dur) var(--ease); }
@media (hover: hover) {
  .hero__person:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -28px rgb(24 44 47 / 0.45); border-color: var(--color-accent-strong); }
  .hero__person:hover .hero__person-photo { background: var(--color-primary); transform: scale(1.05); }
  .hero__person:hover .hero__person-link .icon { transform: translateX(5px); }
}
.hero__person:focus-visible { outline-offset: 4px; border-radius: var(--radius-lg); }

.hero__note {
  position: absolute;
  right: -0.5rem;
  top: 12%;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 15rem;
  padding: 0.65rem 1rem;
  background: var(--color-primary-dark);
  color: var(--color-on-primary);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: var(--shadow);
}
.hero__note .icon { stroke-width: 4; }

@media (min-width: 40em) {
  .hero__person { left: -1.5rem; }
  .hero__note { right: -1.5rem; }
}

@media (min-width: 64em) {
  .hero {
    min-height: min(100vh, 960px);
    display: flex;
    align-items: center;
    padding-bottom: 6rem;
  }
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .hero__visual { width: 100%; max-width: 500px; margin-right: 0; }
}

/* Hero-Einstiegsanimation (nur ohne Reduced Motion) */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * {
    animation: fade-up 0.9s var(--ease-out) both;
  }
  .hero__content > :nth-child(2) { animation-delay: 0.08s; }
  .hero__content > :nth-child(3) { animation-delay: 0.16s; }
  .hero__content > :nth-child(4) { animation-delay: 0.24s; }
  .hero__content > :nth-child(5) { animation-delay: 0.32s; }
  .hero__frame { animation: fade-in 1.2s var(--ease-out) 0.1s both; }
  .hero__img { animation: slow-zoom 2.4s var(--ease-out) both; }
  .hero__person { animation: fade-up 0.9s var(--ease-out) 0.55s both; }
  .hero__person-photo::after { animation: hello 3.2s var(--ease-out) 1.8s 1; } /* einmalig, < 5 s (WCAG 2.2.2) */
  .hero__note { animation: fade-up 0.9s var(--ease-out) 0.7s both; }
  .hero__blob { animation: blob 4.5s ease-in-out 0.3s 1 both; } /* einmalig, < 5 s (WCAG 2.2.2) */
  .swash path { stroke-dashoffset: 420; animation: draw 1.4s var(--ease-out) 0.7s forwards; }
}

@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slow-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes hello { 0% { opacity: 0.8; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes blob {
  from { border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; transform: rotate(0deg); }
  to   { border-radius: 46% 54% 58% 42% / 44% 56% 46% 54%; transform: rotate(4deg); }
}

/* --------------------------------------------------------------------------
   7. Fakten-Leiste
   -------------------------------------------------------------------------- */
.facts {
  border-block: 1px solid var(--color-border);
  background: var(--color-surface);
}
.facts__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.facts__item {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(0.75rem, 2vw, 2rem);
  border-color: var(--color-border);
  border-style: solid;
  border-width: 0;
}
.facts__item:nth-child(odd) { border-right-width: 1px; padding-left: 0; }
.facts__item:nth-child(-n+2) { border-bottom-width: 1px; }
.facts__value {
  display: flex;
  align-items: flex-end;
  min-height: clamp(2rem, 1.5rem + 2vw, 2.9rem);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem);
  line-height: 1;
  color: var(--color-display);
}
.facts__value--word { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.05rem); line-height: 1.15; font-style: italic; }
.facts__label { font-size: 0.9375rem; line-height: 1.45; color: var(--color-text-muted); max-width: 16rem; }

@media (min-width: 64em) {
  .facts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts__item,
  .facts__item:nth-child(odd) { border-width: 0 1px 0 0 !important; padding-left: clamp(0.75rem, 2vw, 2rem); }
  .facts__item:first-child { padding-left: 0; }
  .facts__item:last-child { border-right-width: 0 !important; }
}
@media (max-width: 22.5em) {
  .facts__list { grid-template-columns: 1fr; }
  .facts__item { border-width: 0 0 1px 0 !important; padding-inline: 0; }
  .facts__item:last-child { border-bottom-width: 0 !important; }
}

/* --------------------------------------------------------------------------
   8. Leistungen
   -------------------------------------------------------------------------- */
.services__layout {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.services__hint {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--color-accent-strong);
  color: var(--color-text-muted);
  font-size: 0.9688rem;
  max-width: 30rem;
}

.services__grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (min-width: 40em) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 75em) {
  .services__layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); align-items: start; }
  .services__intro { position: sticky; top: calc(var(--header-h) + 2.5rem); }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}

/* Planausschnitte: je Karte ein gezoomter Ausschnitt der Gartenplan-Illustration */
.service-card__plan {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-accent);
  border-bottom: 1px solid var(--color-border);
}
.service-card__plan::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/gartenplan.svg?v=20261030");
  background-repeat: no-repeat;
  filter: var(--media-filter);
  transition: transform 0.9s var(--ease-out);
}
.service-card__plan::after { /* feiner Innenrahmen wie auf einem Plan */
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: calc(var(--radius-lg) - 10px) calc(var(--radius-lg) - 10px) 6px 6px;
  pointer-events: none;
}
.service-card__plan--planung::before { background-size: 100% auto; background-position: 50% 60.4%; }
.service-card__plan--wege::before { background-size: 182% auto; background-position: 61.1% 71.7%; }
.service-card__plan--terrasse::before { background-size: 162% auto; background-position: 13.0% 16.0%; }
.service-card__plan--zaun::before { background-size: 300% auto; background-position: 100.0% 37.4%; }
.service-card__plan--pflanzung::before { background-size: 214% auto; background-position: 18.7% 99.9%; }
.service-card__plan--gehoelz::before { background-size: 273% auto; background-position: 100.0% 21.1%; }
.service-card__badge {
  position: relative;
  z-index: 1;
  margin-top: -26px;
  margin-bottom: 0.2rem;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-link);
  box-shadow: var(--shadow);
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), transform 0.45s var(--ease-out);
}
.service-card__badge svg {
  width: 28px; height: 28px;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.service-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0 clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 1.9rem);
}
.service-card__title { font-size: var(--fs-600); line-height: 1.2; }
.service-card__text { color: var(--color-text-muted); }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.25rem; }
.tags li {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--color-text-muted);
  background: var(--color-tag-bg);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-color: rgb(63 97 102 / 0.3);
  text-underline-offset: 0.35em;
  transition: text-decoration-color var(--dur) var(--ease);
}
.service-card__link .icon { transition: transform var(--dur) var(--ease); }

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-strong);
  }
  .service-card:hover .service-card__plan::before { transform: scale(1.08); } /* „Lupe“ über dem Plan */
  .service-card:hover .service-card__badge {
    background: var(--color-primary);
    color: #fff;
    transform: rotate(-6deg);
  }
  .service-card__link:hover { text-decoration-color: currentColor; }
  .service-card__link:hover .icon { transform: translateX(4px); }
}

/* CTA-Band */
.cta-band {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius-xl);
  background: var(--color-sand);
  overflow: hidden;
}
.cta-band__deco {
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 220px;
  height: 220px;
  fill: none;
  stroke: rgb(110 98 67 / 0.14);
  stroke-width: 1;
  pointer-events: none;
}
.cta-band__title {
  font-family: var(--font-serif);
  font-size: var(--fs-600);
  line-height: 1.2;
  color: var(--color-heading);
  margin-bottom: 0.4rem;
}
.cta-band__text p:not(.cta-band__title) { color: var(--color-text-muted); }
.cta-band .btn { justify-self: start; position: relative; }
@media (min-width: 48em) {
  .cta-band { grid-template-columns: 1fr auto; }
}

/* --------------------------------------------------------------------------
   9. Über uns
   -------------------------------------------------------------------------- */
.about { background: var(--color-sand); }
.about__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.about__portrait { width: min(100%, 440px); margin-inline: auto; }
.about__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-arch);
  overflow: hidden;
  background: var(--color-accent);
  box-shadow: var(--shadow-lg);
}
.about__frame picture { height: 100%; }
.about__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: var(--photo-filter); }
.portrait-placeholder {
  position: absolute;
  inset: 14px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 2rem;
  border: 1.5px dashed rgb(63 97 102 / 0.35);
  border-radius: calc(var(--radius-lg) - 6px);
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 38%, rgb(255 255 255 / 0.55), transparent 55%),
    var(--color-accent);
}
.portrait-placeholder__icon {
  width: 96px; height: 96px;
  fill: none; stroke: var(--color-primary-soft); stroke-width: 1.2; stroke-linecap: round;
  opacity: 0.7;
}
.portrait-placeholder__text {
  max-width: 14rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-link);
}
.about__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.25rem 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(110 98 67 / 0.25);
}
.about__name { font-family: var(--font-serif); font-size: 1.35rem; color: var(--color-heading); }
.about__role { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-secondary); }

.about__content > p:not(.eyebrow):not(.section-lead) { margin-top: 1rem; color: var(--color-text-muted); max-width: 40rem; }

.about__facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: 2.25rem;
  border: 1px solid rgb(110 98 67 / 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgb(110 98 67 / 0.2);
}
@media (min-width: 30em) {
  .about__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.about__facts > div { padding: 1rem 1.25rem; background: var(--color-surface); }
.about__facts dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-secondary); }
.about__facts dd { margin-top: 0.2rem; font-size: 0.9688rem; line-height: 1.45; color: var(--color-text); }

.about__quote {
  position: relative;
  margin-top: 2.25rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--color-secondary-light);
}
.about__quote blockquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-600);
  line-height: 1.35;
  color: var(--color-heading);
}
.about__quote blockquote p::before { content: "„"; }
.about__quote blockquote p::after { content: "“"; }
.about__quote figcaption {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-secondary);
}
/* Handschriftliche Signatur „Maximilian Pillmaier“, „schreibt“ sich beim Einblenden */
.signature {
  display: block;
  width: min(330px, 100%);
  aspect-ratio: 760 / 103;
  margin-top: 0.5rem;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.9s cubic-bezier(0.45, 0.05, 0.35, 1) 0.5s;
}
.js .about__quote:not(.is-visible) .signature { clip-path: inset(0 100% 0 0); }
.signature__img { width: 100%; height: auto; }
.signature__img--dark { display: none; }
[data-theme="dark"] .signature__img--light { display: none; }
[data-theme="dark"] .signature__img--dark { display: block; }

.about__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.5rem;
}
.about__cta-text { font-family: var(--font-serif); font-size: 1.35rem; color: var(--color-heading); }

@media (min-width: 64em) {
  .about__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .about__portrait { margin: 0; }
}

/* --------------------------------------------------------------------------
   10. Ablauf
   -------------------------------------------------------------------------- */
.process {
  --color-focus: var(--color-on-dark);
  background:
    radial-gradient(50rem 30rem at 100% 0%, rgb(99 136 142 / 0.45), transparent 60%),
    var(--color-dark);
  color: var(--color-on-dark);
}
.process .section-title { color: var(--color-on-dark); }
.process .section-lead { color: var(--color-on-dark-muted); }

.steps {
  position: relative;
  display: grid;
  gap: 2.5rem;
  counter-reset: step;
}
/* vertikale Linie (mobil) */
.steps::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: rgb(243 238 226 / 0.25);
}
.step {
  position: relative;
  display: grid;
  align-content: start;
  grid-template-columns: 56px 1fr;
  column-gap: 1.25rem;
  row-gap: 0.5rem;
}
.step__num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-dark);
  border: 1px solid rgb(243 238 226 / 0.35);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-secondary-light);
  position: relative;
  z-index: 1;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.step.is-visible .step__num,
.no-js .step__num { border-color: var(--color-secondary-light); }
.step__title { font-size: 1.4rem; color: var(--color-on-dark); align-self: center; }
.step p { color: var(--color-on-dark-muted); grid-column: 2; }

@media (min-width: 64em) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .steps::before {
    left: 28px; right: 12%;
    top: 28px; bottom: auto;
    width: auto; height: 1px;
    transform-origin: left;
  }
  .js .steps::before { transform: scaleX(0); transition: transform 1.6s var(--ease-out) 0.2s; }
  .js .steps.is-visible::before { transform: scaleX(1); }
  .step { grid-template-columns: 1fr; row-gap: 1rem; }
  .step__num { grid-row: auto; }
  .step__title { margin-top: 0.75rem; align-self: start; }
  .step p { grid-column: 1; }
}

.process__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding: 1rem 1.25rem;
  border: 1px solid rgb(243 238 226 / 0.2);
  border-radius: var(--radius-pill);
  color: var(--color-on-dark);
  text-align: center;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.process__note .icon { color: var(--color-secondary-light); stroke-width: 4; }

/* --------------------------------------------------------------------------
   11. Projekte / Galerie
   -------------------------------------------------------------------------- */
.projects__head { display: grid; gap: 1.25rem; align-items: end; }
.projects__head .section-lead { margin-top: 0; }
@media (min-width: 64em) {
  .projects__head { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
}

.filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 48em) { .filter { flex-wrap: wrap; overflow: visible; } }
.filter__btn {
  flex: none;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.filter__btn[aria-pressed="true"] {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-on-primary);
  font-weight: 600;
}
/* nicht nur Farbe: aktiver Filter bekommt zusätzlich einen Punkt */
.filter__btn[aria-pressed="true"]::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
}
@media (hover: hover) {
  .filter__btn:not([aria-pressed="true"]):hover { border-color: var(--color-link); color: var(--color-link); }
}

.gallery {
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  grid-template-columns: minmax(0, 1fr);
}
.gallery__item { position: relative; min-height: 240px; }
.gallery__item[hidden] { display: none; }
.gallery__item--feature { min-height: 0; }

@media (min-width: 40em) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 260px; grid-auto-flow: dense; }
  .gallery__item { min-height: 0; }
  .gallery__item--feature { grid-column: span 2; grid-row: span 2; }
  .gallery__item--tall { grid-row: span 2; }
}
@media (min-width: 64em) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 250px; }
  .gallery__item--wide { grid-column: span 2; }
}

.gallery__figure,
.gallery__link {
  position: relative;
  display: block;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
@media (hover: hover) {
  .gallery__link:hover .gallery__img { transform: scale(1.04); }
}

.gallery__caption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  pointer-events: none;
}
.gallery__caption--static { position: static; padding: 0.9rem 0.25rem 0; }
.gallery__cat {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.gallery__note {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgb(24 44 47 / 0.78);
  color: var(--color-on-dark);
  font-size: 0.8125rem;
}
.gallery__caption--static .gallery__cat { background: var(--color-accent); box-shadow: none; }
.gallery__caption--static .gallery__note { background: none; color: var(--color-text-muted); padding-inline: 0; }

/* „Aus der Praxis“ – Bildstrecke eines echten Projekts (01 → 02 → 03) */
.projects__more[hidden] { display: none; }
.case__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.case__tag {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-tag-bg);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
/* .case davor: muss stärker sein als die Listen-Grundregel ol[class] { padding: 0 } */
.case .case__steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 340px);
  gap: 1rem;
  margin: -0.75rem calc(var(--gutter) * -1) 0;
  padding: 0.75rem var(--gutter) 2.5rem;   /* oben: Platz für Fokus-Rahmen, unten: Abstand zum Wisch-Balken */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;                   /* Wischen ist selbsterklärend – kein Balken über dem Text */
  -webkit-overflow-scrolling: touch;
}
.case__steps::-webkit-scrollbar { display: none; }
.case__item { scroll-snap-align: start; }
@media (min-width: 40em) {
  .case .case__steps {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
    margin: 0;
    padding: 0 0 1.25rem;
    overflow: visible;
    scroll-snap-type: none;
  }
  /* versetzte, „redaktionelle“ Anordnung (Tablet: 2 × 2) */
  .case__item:nth-child(even) { margin-top: 3rem; }
}
@media (min-width: 64em) {
  .case .case__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .case__item:nth-child(2) { margin-top: 3rem; }
  .case__item:nth-child(3) { margin-top: 1.25rem; }
  .case__item:nth-child(4) { margin-top: 2.25rem; }
}
.case__link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-accent);
  box-shadow: var(--shadow-lg);
}
/* Ergebnis als Doppelbild: zwei Querformate übereinander, zusammen so hoch wie eine Hochformat-Karte */
.case__duo {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
  aspect-ratio: 3 / 4;
}
.case__link--wide { aspect-ratio: auto; height: 100%; min-height: 0; }
.case__badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgb(255 253 248 / 0.92);
  color: var(--color-primary-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}
.case__link--wide .case__zoom { top: 0.6rem; right: 0.6rem; width: 38px; height: 38px; }

.case__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--photo-filter);
  transition: transform 0.9s var(--ease-out);
}
.case__zoom {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(255 253 248 / 0.9);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.case__zoom svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.case__link::after {            /* Fokus-Rahmen als Ebene über dem Bild – wird nie abgeschnitten */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.case__link:focus-visible { outline: none; }
.case__link:focus-visible::after { box-shadow: inset 0 0 0 3px var(--color-focus), inset 0 0 0 5px rgb(255 255 255 / 0.6); }
.case__link:focus-visible .case__zoom { opacity: 1; transform: none; }
@media (hover: hover) {
  .case__link:hover .case__img { transform: scale(1.04); }
  .case__link:hover .case__zoom { opacity: 1; transform: none; }
}
@media (hover: none) { .case__zoom { opacity: 1; transform: none; } }
.case__caption {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-inline: 0.25rem;
}
.case__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-display);
}
.case__title { display: block; font-weight: 700; color: var(--color-heading); }
.case__text { display: block; font-size: 0.9375rem; line-height: 1.45; color: var(--color-text-muted); }
.case__note { margin-top: 0.25rem; font-size: 0.875rem; color: var(--color-text-muted); }
@media (min-width: 40em) { .case__note { margin-top: 0; text-align: right; } }

/* Mehrere Projekte: Projekt-Auswahl (Tabs) – immer ein Projekt sichtbar; ohne JS alle untereinander */
/* Projekt-Auswahl: Wischleiste auf dem Handy, umbrechende Reihe ab Tablet */
.projekt-wahl {
  display: flex; gap: 0.6rem;
  margin: -0.5rem calc(var(--gutter) * -1) clamp(1.75rem, 4vw, 3rem);
  padding: 0.5rem var(--gutter);
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.projekt-wahl::-webkit-scrollbar { display: none; }
@media (min-width: 40em) {
  .projekt-wahl { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; }
}
.projekt-wahl__tab {
  flex: none; display: flex; align-items: center; gap: 0.75rem;
  min-height: 44px; padding: 0.4rem 1.25rem 0.4rem 0.4rem;
  border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-pill);
  background: var(--color-surface); color: var(--color-text); text-align: left;
  scroll-snap-align: start; cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.projekt-wahl__bild { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; filter: var(--photo-filter); }
.projekt-wahl__text { display: grid; line-height: 1.25; }
.projekt-wahl__titel { font-weight: 700; color: var(--color-heading); }
.projekt-wahl__unter { font-size: 0.8125rem; color: var(--color-text-muted); }
@media (hover: hover) {
  .projekt-wahl__tab:hover { border-color: var(--color-primary-dark); }
}
.projekt-wahl__tab:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.projekt-wahl__tab[aria-selected="true"] { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.projekt-wahl__tab[aria-selected="true"] .projekt-wahl__titel,
.projekt-wahl__tab[aria-selected="true"] .projekt-wahl__unter { color: var(--color-on-primary); }

/* Projekte */
.case + .case { margin-top: clamp(3.5rem, 8vw, 6rem); }
.projekt-wahl:not([hidden]) ~ .case { margin-top: 0; }
.case[hidden] { display: none !important; }
.case.is-neu { animation: projekt-ein 0.45s var(--ease-out) both; }
@keyframes projekt-ein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .case.is-neu { animation: none; } }

.case__head { max-width: 40rem; }
.case__kicker {
  margin-bottom: 0.6rem; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-secondary);
}
.case__heading {
  font-family: var(--font-serif); font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.15; color: var(--color-heading);
}
.case__lead { margin-top: 0.75rem; line-height: 1.6; color: var(--color-text-muted); }
.case__head .case__meta { margin-top: 1.1rem; }

/* Zwei-Bild-Projekte: Text neben den Bildern */
@media (min-width: 64em) {
  .case--duo {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 4vw, 4rem); align-items: center;
  }
  .case--duo .case__meta { margin-bottom: 0; }
  .case--duo .case__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Weiterblättern unter dem Projekt */
.projekt-weiter {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  margin-top: 0.5rem;
}
.projekt-weiter__btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 44px; padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-pill);
  background: var(--color-surface); color: var(--color-link);
  font-weight: 600; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.projekt-weiter__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.projekt-weiter__btn--vor { margin-left: auto; }
@media (hover: hover) { .projekt-weiter__btn:hover { border-color: var(--color-primary-dark); } }
.projekt-weiter__btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

/* Platzhalter (bis echte Projektfotos vorliegen) */
.placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-color: var(--color-accent);
}
.placeholder__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-link);
  box-shadow: var(--shadow);
}
.placeholder__icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.placeholder--deck {
  background: repeating-linear-gradient(0deg, #e2d3b3 0 26px, #d6c4a0 26px 28px);
}
.placeholder--paving {
  background-color: #ece5d7;
  background-image:
    linear-gradient(#dcd3c1 2px, transparent 2px),
    linear-gradient(90deg, #dcd3c1 2px, transparent 2px);
  background-size: 64px 40px, 64px 80px;
}
.placeholder--stone {
  background-color: #e9e3d6;
  background-image:
    linear-gradient(#d7cebc 2px, transparent 2px),
    linear-gradient(90deg, #d7cebc 2px, transparent 2px);
  background-size: 90px 90px;
}
.placeholder--fence {
  background: repeating-linear-gradient(90deg, #e4ebe0 0 34px, #cfd9ca 34px 40px);
}
.placeholder--plants {
  background-color: #d5e0cc;
  background-image: radial-gradient(circle, #bccdb0 22%, transparent 24%), radial-gradient(circle, #c7d6bb 16%, transparent 18%);
  background-size: 46px 46px, 30px 30px;
  background-position: 0 0, 15px 20px;
}
.placeholder--garden {
  background:
    radial-gradient(circle at 20% 30%, #c3d3b8 0 60px, transparent 61px),
    radial-gradient(circle at 78% 64%, #b8caac 0 90px, transparent 91px),
    radial-gradient(circle at 55% 20%, #cfdcc6 0 40px, transparent 41px),
    #dce6d6;
}

/* Vorher/Nachher-Slider */
.ba { height: 100%; display: flex; flex-direction: column; }
.ba__stage {
  --pos: 50%;
  position: relative;
  flex: 1;
  min-height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-accent);
  touch-action: pan-y;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: var(--media-filter); }
.ba__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba__img--before { filter: grayscale(1) sepia(0.25) contrast(0.85) brightness(1.03); }
.ba__label {
  position: absolute;
  top: 0.9rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgb(24 44 47 / 0.78);
  color: var(--color-on-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  pointer-events: none;
}
.ba__label--before { left: 0.9rem; }
.ba__label--after { right: 0.9rem; }
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  transform: translateX(-1px);
  background: var(--color-surface);
  box-shadow: 0 0 0 1px rgb(24 44 47 / 0.15);
  pointer-events: none;
}
.ba__handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 52px; height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: var(--shadow);
}
.ba__handle svg {
  max-width: none;
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 18px; height: 18px;
  transform: translateY(-50%);
  fill: none; stroke: var(--color-primary); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
}
.ba__handle svg:first-child { right: 4px; }
.ba__handle svg:last-child { left: 4px; }
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.ba__stage:has(.ba__range:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.ba__stage:has(.ba__range:focus-visible) .ba__handle::after { box-shadow: 0 0 0 3px var(--color-link); }

/* Lightbox */
.lightbox {
  width: min(100vw - 2rem, 1200px);
  max-width: none;
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-dark);
  color: var(--color-on-dark);
  --color-focus: var(--color-on-dark);
}
.lightbox::backdrop { background: rgb(14 30 32 / 0.82); }
.lightbox__inner { position: relative; padding: 3.5rem 1rem 1rem; }
.lightbox__img { max-height: calc(100vh - 10rem); width: auto; margin-inline: auto; border-radius: var(--radius); }
.lightbox__caption { padding-top: 0.75rem; text-align: center; color: var(--color-on-dark-muted); }
.lightbox__btn, .lightbox__close {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid rgb(243 238 226 / 0.3);
  border-radius: 50%;
  background: rgb(34 57 60 / 0.85);
  color: var(--color-on-dark);
}
.lightbox__btn svg, .lightbox__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 0.5rem; right: 0.5rem; }
.lightbox__btn { top: 50%; transform: translateY(-50%); }
.lightbox__btn--prev { left: 0.5rem; }
.lightbox__btn--next { right: 0.5rem; }
.lightbox__btn[hidden] { display: none; }

/* --------------------------------------------------------------------------
   12. Abschluss-CTA
   -------------------------------------------------------------------------- */
.cta-final { padding-block: var(--section-space); }
.cta-final__inner {
  --color-focus: var(--color-on-dark);
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(40rem 22rem at 0% 100%, rgb(110 98 67 / 0.35), transparent 60%),
    radial-gradient(40rem 22rem at 100% 0%, rgb(99 136 142 / 0.6), transparent 60%),
    var(--color-primary-dark);
  color: var(--color-on-dark);
  text-align: center;
  overflow: hidden;
}
.cta-final__deco {
  position: absolute;
  left: -40px; top: -40px;
  width: 260px; height: 260px;
  fill: none; stroke: rgb(243 238 226 / 0.1); stroke-width: 1;
  pointer-events: none;
}
.cta-final__inner > * { max-width: 100%; min-width: 0; }
.cta-final__title { font-size: var(--fs-700); color: var(--color-on-dark); max-width: min(24ch, 100%); overflow-wrap: anywhere; position: relative; }
.cta-final__text { max-width: 34rem; font-size: var(--fs-500); color: var(--color-on-dark); position: relative; }
.cta-final .btn { margin-top: 0.75rem; }

/* Wenn die Abschluss-CTA direkt an den Kontakt anschließt: Abstand reduzieren */
.cta-final + .contact { padding-top: 0; }

/* --------------------------------------------------------------------------
   13. Kontakt & Formular
   -------------------------------------------------------------------------- */
.contact__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
@media (min-width: 64em) {
  .contact__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .contact__info { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.contact-list { display: grid; gap: 0.75rem; margin-top: 2.25rem; }
.contact-list__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
a.contact-list__link:hover { border-color: var(--color-primary-soft); box-shadow: var(--shadow); }
.contact-list__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-link);
}
.contact-list__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-list__label { display: block; font-size: 0.8125rem; color: var(--color-text-muted); }
.contact-list__value { display: block; font-weight: 600; color: var(--color-heading); overflow-wrap: anywhere; }

.contact__good-to-know {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--color-accent);
}
.contact__good-title { font-family: var(--font-serif); font-size: 1.2rem; color: var(--color-heading); margin-bottom: 0.75rem; }
.checklist { display: grid; gap: 0.6rem; }
.checklist li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.9688rem; color: var(--color-text); }
.checklist .icon { margin-top: 0.2em; color: var(--color-link); stroke-width: 4; }

.form-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}
.form-card:focus { outline: none; }
.form-card__title { font-size: var(--fs-600); margin-bottom: 0.5rem; }

.form { display: grid; gap: 1.35rem; }
.form[hidden] { display: none; } /* nach erfolgreichem Absenden ausblenden */
.form__hint { font-size: 0.875rem; color: var(--color-text-muted); }
.form__row { display: grid; gap: 1.35rem; }
@media (min-width: 40em) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field { display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.field--group { border: 0; padding: 0; margin: 0; }
.field__label { font-weight: 600; font-size: 0.9688rem; color: var(--color-text); padding: 0; }
.field__req { color: var(--color-error); margin-left: 0.1rem; }
.field__optional { font-weight: 400; color: var(--color-text-muted); font-size: 0.875rem; }
.field__hint { font-size: 0.875rem; color: var(--color-text-muted); }
.field__meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
/* Zeichenzähler – nur sichtbar kurz vor dem Limit */
.char-count {
  margin-left: auto;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.char-count.is-low { color: var(--color-error); font-weight: 600; }

.field__input {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 12px;
  background: var(--color-field-bg);
  font-size: 1rem; /* ≥16px verhindert Zoom auf iOS */
  line-height: 1.4;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field__input:hover { border-color: var(--color-primary-soft); }
.field__input:focus { outline: none; border-color: var(--color-link); box-shadow: 0 0 0 3px rgb(63 97 102 / 0.22); }
.field__input:focus-visible { outline: 2px solid var(--color-link); outline-offset: 2px; }
.field__textarea { min-height: 140px; resize: vertical; }
.field__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: var(--select-arrow);
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
}

.field__input[aria-invalid="true"] { border-color: var(--color-error); background-color: var(--color-error-bg); }
.field__error {
  display: none;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-error);
}
.field__error:not(:empty) { display: flex; }
.field__error:not(:empty)::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 1.2rem; height: 1.2rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: var(--color-error);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
}

/* Chips (Checkboxen) */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.chip { position: relative; display: inline-flex; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.chip__inner {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-field-bg);
  font-size: 0.9375rem;
  line-height: 1.2;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip__check {
  width: 0; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  transition: width 0.25s var(--ease);
}
.chip input:hover + .chip__inner { border-color: var(--color-link); }
.chip input:checked + .chip__inner {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-on-primary);
  font-weight: 600;
}
.chip input:checked + .chip__inner .chip__check { width: 16px; }
.chip input:focus-visible + .chip__inner { outline: 3px solid var(--color-focus); outline-offset: 2px; }

/* Upload */
.upload__zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 1.25rem;
  border: 1.5px dashed var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-background);
  text-align: center;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.upload__zone:hover,
.upload__zone.is-dragover { border-color: var(--color-primary-dark); background: var(--color-accent); }
.upload__zone:focus-within { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.upload__input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload__cta { display: flex; align-items: center; gap: 0.85rem; pointer-events: none; color: var(--color-text-muted); }
.upload__cta strong { color: var(--color-link); }
.upload__icon { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--color-primary); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: none) { .upload__or { display: none; } }

.upload__list { display: grid; gap: 0.5rem; }
.upload__list:empty { display: none; }
.upload__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-background);
  font-size: 0.875rem;
}
.upload__thumb { width: 48px; height: 48px; flex: none; border-radius: 6px; object-fit: cover; background: var(--color-accent); }
.upload__meta { flex: 1; min-width: 0; }
.upload__name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.upload__size { color: var(--color-text-muted); }
.upload__remove {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted);
}
.upload__remove:hover { background: var(--color-error-bg); color: var(--color-error); }
.upload__remove svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; }

/* Checkbox Datenschutz */
.field--check {
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  align-items: start;
}
.check__input {
  width: 24px; height: 24px;
  margin: 0.1rem 0 0;
  accent-color: var(--color-link);
  cursor: pointer;
}
.check__label { font-size: 0.9375rem; line-height: 1.55; color: var(--color-text); cursor: pointer; }
.check__label a { color: var(--color-link); font-weight: 600; }
.field--check .field__error { grid-column: 1 / -1; }
.check__input[aria-invalid="true"] { outline: 2px solid var(--color-error); outline-offset: 2px; }

/* Honeypot */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__submit[disabled] { opacity: 0.7; cursor: progress; }
.form__submit.is-loading .btn__icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__after { font-size: 0.9375rem; color: var(--color-text-muted); }

.form__summary {
  padding: 1.1rem 1.25rem;
  border: 1.5px solid var(--color-error);
  border-radius: var(--radius);
  background: var(--color-error-bg);
}
.form__summary:focus { outline: 3px solid var(--color-error); outline-offset: 2px; }
.form__summary-title { font-weight: 700; color: var(--color-error); margin-bottom: 0.4rem; }
.form__summary ul { margin: 0; padding-left: 1.2rem; }
.form__summary a { color: var(--color-error); font-weight: 600; }

.form__status:empty { display: none; }
.form__status {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--color-error-bg);
  color: var(--color-error);
  font-weight: 600;
}

.form-success {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1rem;
  text-align: center;
}
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-success);
}
.form-success__icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.form-success__title { font-family: var(--font-serif); font-size: var(--fs-600); color: var(--color-heading); }
.form-success p:not(.form-success__title) { color: var(--color-text-muted); max-width: 26rem; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  --color-focus: var(--color-on-dark);
  background: var(--color-dark);
  color: var(--color-on-dark-muted);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  font-size: 0.9688rem;
}
.site-footer__grid {
  display: grid;
  gap: 2.5rem 2rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.site-footer__brand img { width: 200px; height: auto; }
.site-footer__claim { margin-top: 1.25rem; font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; color: var(--color-on-dark); }
.site-footer__pillars { margin-top: 0.4rem; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-secondary-light); }
.site-footer__heading {
  margin-bottom: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-on-dark);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.1rem; }
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--color-on-dark-muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.site-footer a:hover { color: var(--color-on-dark); text-decoration: underline; }
.site-footer address { font-style: normal; display: grid; gap: 0.1rem; }
.site-footer address span { line-height: 1.6; }
.site-footer__strong { color: var(--color-on-dark); font-weight: 600; }
.site-footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  font-size: 0.875rem;
}
.site-footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: rgb(243 238 226 / 0.14);
}
.site-footer address a { min-height: 32px; }

@media (min-width: 40em) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1.2fr 1fr; }
}

/* --------------------------------------------------------------------------
   15. Mobiler Sticky-CTA
   -------------------------------------------------------------------------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  gap: 0.6rem;
  padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
  background: var(--color-header-bg-solid);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -10px 30px -20px rgb(24 44 47 / 0.5);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.4s var(--ease-out), visibility 0s linear 0.4s;
}
.mobile-cta.is-visible {
  transform: none;
  visibility: visible;
  transition: transform 0.4s var(--ease-out), visibility 0s;
}
.mobile-cta__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.1rem;
  border: 1.5px solid rgb(63 97 102 / 0.35);
  border-radius: var(--radius-pill);
  color: var(--color-link);
  font-weight: 600;
  text-decoration: none;
}
.mobile-cta__main { flex: 1; }
.no-js .mobile-cta { display: none; }

@media (max-width: 47.99em) {
  /* Platz schaffen, damit die Leiste keine Inhalte verdeckt */
  .has-mobile-cta body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (min-width: 48em) {
  .mobile-cta { display: none; }
}

/* --------------------------------------------------------------------------
   16. Scroll-Reveal (nur mit JS und ohne Reduced Motion)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   17. Rechtstexte (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */
.legal {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: var(--section-space);
}
.legal__inner { max-width: var(--container-narrow); }
.legal h1 { font-size: var(--fs-700); margin-bottom: 1.5rem; }
.legal h2 { font-size: var(--fs-600); margin-top: 2.75rem; margin-bottom: 0.75rem; }
.legal h3 { font-size: 1.2rem; margin-top: 1.75rem; margin-bottom: 0.5rem; }
.legal p, .legal ul, .legal address { margin-bottom: 1rem; color: var(--color-text); }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: 0.35rem; }
.legal address { font-style: normal; }
.legal a { color: var(--color-link); font-weight: 500; }
.legal__note {
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  border-left: 3px solid var(--color-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-sand);
  font-size: 0.9375rem;
}
.placeholder-text { background: #fff3c4; color: #3a2f00; padding: 0 0.25em; border-radius: 3px; font-weight: 600; }
.legal__back { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; }
.legal__back .icon { transform: rotate(180deg); }

/* --------------------------------------------------------------------------
   18. Reduced Motion – global
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   20. Farbverlauf (wie Flyer & Visitenkarte) – seit 15.10.2026
   Teal/Petrol-Mint → helles Mint → zartes Gelbgrün als fester Seitenhintergrund.
   Zum Entfernen: diesen kompletten Abschnitt bis zum Dateiende löschen.
   -------------------------------------------------------------------------- */
:root {
  /* Verlaufsfarben hell */
  --grad-teal: #8cc2bd;
  --grad-mint: #c6e2d5;
  --grad-lime: #e2e8b2;
  --page-gradient:
    radial-gradient(70rem 50rem at 100% 0%, rgb(118 178 175 / 0.7), transparent 60%),
    radial-gradient(60rem 45rem at 0% 100%, rgb(228 233 170 / 0.95), transparent 60%),
    linear-gradient(155deg, var(--grad-teal) 0%, var(--grad-mint) 50%, var(--grad-lime) 100%);

  /* halbtransparente Flächen, damit der Verlauf durchscheint */
  --glass: rgb(255 253 248 / 0.66);
  --glass-strong: rgb(255 253 248 / 0.84);
  --color-header-bg: rgb(190 222 211 / 0.8);
  --color-header-bg-solid: rgb(190 222 211 / 0.97);

  /* Kontrast auf dem farbigen Grund leicht nachgeschärft */
  --color-text-muted: #2f3b3a;
  --color-display: #335c66;
  --color-link: #274349;
  --color-secondary: #463d25;
  --color-border: rgb(55 85 88 / 0.18);
}

:root[data-theme="dark"] {
  /* Verlauf „bei Nacht“: tiefes Petrol → dunkles Moosgrün */
  --page-gradient:
    radial-gradient(70rem 50rem at 100% 0%, rgb(60 122 124 / 0.55), transparent 60%),
    radial-gradient(60rem 45rem at 0% 100%, rgb(86 100 42 / 0.42), transparent 60%),
    linear-gradient(155deg, #143636 0%, #0f2022 50%, #1c2818 100%);
  --glass: rgb(21 32 34 / 0.72);
  --glass-strong: rgb(21 32 34 / 0.88);
  --color-header-bg: rgb(14 28 29 / 0.8);
  --color-header-bg-solid: rgb(14 28 29 / 0.96);
  --color-text-muted: #b2c0bb;
  --color-display: #93c1c4;
  --color-secondary: #d6c597;
  --color-border: rgb(163 202 206 / 0.14);
}

/* Verlauf als fester Hintergrund über die ganze Seite */
html, body { background: transparent; }
html { background-color: var(--grad-mint); }
:root[data-theme="dark"] { background-color: #0f1f20; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--page-gradient);
  pointer-events: none;
}

/* Bereiche durchsichtig machen, Karten als helles „Milchglas“ */
.hero__bg { display: none; }
.facts { background: var(--glass); border-color: var(--color-border); }
.about { background: transparent; }
.cta-band { background: var(--glass); }
.service-card,
.contact-list__link,
.about__facts > div { background: var(--glass-strong); }
.form-card { background: var(--glass-strong); }
.contact__good-to-know { background: var(--glass); }
.mobile-cta { background: var(--color-header-bg-solid); }
@supports (backdrop-filter: blur(1px)) {
  .service-card, .form-card, .facts, .cta-band { backdrop-filter: blur(6px); }
}

/* „Ablauf“ als dunkles Petrol-Band im gleichen Farbklang */
.process {
  background:
    radial-gradient(50rem 30rem at 100% 0%, rgb(142 195 191 / 0.28), transparent 60%),
    radial-gradient(40rem 26rem at 0% 100%, rgb(150 165 90 / 0.18), transparent 60%),
    linear-gradient(155deg, #2b4f53 0%, #22393c 55%, #2a3a26 100%);
  background-color: #22393c;
}
:root[data-theme="dark"] .process {
  background:
    radial-gradient(50rem 30rem at 100% 0%, rgb(58 112 116 / 0.3), transparent 60%),
    rgb(8 16 17 / 0.7);
  background-color: rgb(8 16 17 / 0.7);
}

/* Abschluss-CTA im Verlauf der Visitenkarte (dunklere Variante für weiße Schrift) */
.cta-final__inner {
  background:
    radial-gradient(40rem 22rem at 0% 100%, rgb(150 165 90 / 0.35), transparent 60%),
    linear-gradient(120deg, #3a5a5f 0%, #3f6a6f 55%, #4b6b55 100%);
  background-color: #3f6a6f;
}

/* Footer: tiefes Petrol mit leichtem Verlauf */
.site-footer {
  background: linear-gradient(155deg, #1b3436 0%, #172a2c 60%, #1d2a1c 100%);
  background-color: #172a2c;
}
:root[data-theme="dark"] .site-footer { background: rgb(6 12 13 / 0.85); }

/* --------------------------------------------------------------------------
   19. Druck
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .mobile-cta, .filter, .form-card, .lightbox, .hero__visual { display: none !important; }
  html, body { background: #fff !important; color: #000; }
  body::before { display: none; }
  .process, .site-footer, .cta-final__inner { background: #fff !important; color: #000 !important; }
  .process *, .site-footer *, .cta-final__inner * { color: #000 !important; }
}
