/* =============================================
   Gartenservice Younes – Stylesheet
   Mobile-first, responsive, accessible
   ============================================= */

/* ---- SELF-HOSTED FONTS (DSGVO-konform, keine Drittanbieter) ----
   Inter 400/500/600 + Playfair Display 700, latin + latin-ext subsets.
   `unicode-range` lazy-loads latin-ext only when those characters appear. */

@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/playfair-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/playfair-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- TOKENS ---- */
:root {
  --color-primary:       #2d5a3d;
  --color-primary-light: #4a7c59;
  --color-primary-pale:  #e8f0e0;
  --color-accent:        #8b6914;
  --color-accent-light:  #c8a84b;
  --color-gold:          #f0d060;
  --color-surface:       #ffffff;
  --color-bg:            #fafaf7;
  --color-bg-alt:        #f4f0e8;
  --color-text:          #1c2b1f;
  --color-text-muted:    #5a6b5e;
  --color-border:        #d4e4c8;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --text-xs:   clamp(0.75rem,  1.5vw, 0.8rem);
  --text-sm:   clamp(0.875rem, 1.8vw, 0.95rem);
  --text-base: clamp(1rem,     2vw,   1.05rem);
  --text-lg:   clamp(1.1rem,   2.5vw, 1.2rem);
  --text-xl:   clamp(1.25rem,  3vw,   1.4rem);
  --text-2xl:  clamp(1.5rem,   4vw,   1.9rem);
  --text-3xl:  clamp(2rem,     5vw,   2.8rem);
  --text-4xl:  clamp(2.5rem,   6vw,   3.8rem);

  --space-1:  0.5rem;
  --space-2:  1rem;
  --space-3:  1.5rem;
  --space-4:  2rem;
  --space-6:  3rem;
  --space-8:  4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 4px rgba(45,90,61,.08);
  --shadow-md:  0 4px 16px rgba(45,90,61,.12);
  --shadow-lg:  0 12px 40px rgba(45,90,61,.16);
  --shadow-xl:  0 24px 64px rgba(45,90,61,.20);

  --transition: 250ms ease-out;
  --transition-slow: 400ms ease-out;

  --nav-height: 70px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Lock background scroll while mobile menu is open */
body.nav-open { overflow: hidden; }

/* Anchor offset for fixed header (works with native scroll-behavior) */
section[id] { scroll-margin-top: calc(var(--nav-height) + 16px); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- UTILITIES ---- */
.container {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-6); }
}

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

.section__header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.section__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-bg-alt);
  padding: 0.35em 1em;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-accent-light);
  margin-bottom: var(--space-2);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}
.section__title em { font-style: italic; color: var(--color-accent); }

.section__desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.8em;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  min-height: 48px;
}
.btn:focus-visible { outline: 3px solid var(--color-accent-light); outline-offset: 3px; }

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--ghost:hover {
  background: var(--color-primary-pale);
  transform: translateY(-2px);
}

.btn--full { width: 100%; justify-content: center; }

/* ---- REVEAL ANIMATION ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =============================================
   HEADER / NAV
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo-img {
  height: 48px;
  width: auto;
}

.nav__menu {
  display: none;
  gap: var(--space-1);
  align-items: center;
}

@media (min-width: 768px) {
  .nav__menu { display: flex; }
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.5em 0.9em;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: var(--color-primary); background: var(--color-primary-pale); }

.nav__link--cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 0.55em 1.2em;
  border-radius: var(--radius-full);
}
.nav__link--cta:hover { background: var(--color-primary-light); color: #fff; }

.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) { .nav__burger { display: none; } }

/* Mobile menu */
.nav__menu.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  max-height: calc(100vh - var(--nav-height));
  max-height: calc(100dvh - var(--nav-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-bottom: 2px solid var(--color-border);
  padding: var(--space-3);
  gap: var(--space-1);
  box-shadow: var(--shadow-md);
  animation: slideDown 0.25s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .nav__menu.open { animation: none; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav__menu.open .nav__link { font-size: var(--text-base); padding: 0.75em 1em; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh; /* fallback */
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, #c8e6b8 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 80%, #d4e8c0 0%, transparent 50%),
    linear-gradient(160deg, #f4f0e8 0%, #eaf4e0 50%, #f0f8e8 100%);
}

/* Decorative circles */
.hero__bg::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -5%;
  width: min(520px, 60vw);
  height: min(520px, 60vw);
  border-radius: 50%;
  background: radial-gradient(circle, #b8d890 0%, transparent 70%);
  opacity: 0.45;
}
.hero__bg::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: min(380px, 50vw);
  height: min(380px, 50vw);
  border-radius: 50%;
  background: radial-gradient(circle, #c8e4a8 0%, transparent 70%);
  opacity: 0.35;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-block: var(--space-8);
}
@media (min-width: 768px) {
  .hero__content { padding-block: var(--space-12); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(139,105,20,0.1);
  border: 1px solid rgba(139,105,20,0.25);
  padding: 0.4em 1em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.hero__badge::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__badge::before { animation: none; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.15;
  margin-bottom: var(--space-3);
}
.hero__title em { font-style: italic; color: var(--color-accent); }

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: var(--space-4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  align-items: center;
  row-gap: var(--space-3);
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}
.stat__divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
}
/* Hide divider on very small screens (where stats wrap) */
@media (max-width: 480px) {
  .stat__divider { display: none; }
  .hero__stats { gap: var(--space-3) var(--space-4); }
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  animation: fadeInUp 1s 1.5s both;
}
.hero__scroll-line {
  width: 1.5px;
  height: 36px;
  background: linear-gradient(to bottom, var(--color-primary-light), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(0.5); opacity: 0.2; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 0.6; transform: translateX(-50%) translateY(0); }
}
/* Hide scroll hint on small screens — saves vertical space and reduces paint */
@media (max-width: 600px) {
  .hero__scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-hint, .hero__scroll-line { animation: none; }
}

/* =============================================
   LEISTUNGEN
   ============================================= */
.leistungen { background: var(--color-bg); }

.leistungen__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 580px) {
  .leistungen__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .leistungen__grid { grid-template-columns: repeat(3, 1fr); }
}

.leistung-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.leistung-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.leistung-card__icon {
  width: 56px; height: 56px;
  background: var(--color-primary-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  color: var(--color-primary);
  transition: background var(--transition);
}
.leistung-card__icon svg { width: 28px; height: 28px; }
.leistung-card:hover .leistung-card__icon { background: var(--color-primary); color: #fff; }

.leistung-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.leistung-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-3);
}

.leistung-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}
.leistung-card__list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: 1.2em;
  position: relative;
}
.leistung-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary-light);
  font-weight: 700;
}

/* =============================================
   ÜBER UNS
   ============================================= */
.ueber-uns { background: var(--color-bg-alt); }

.ueber-uns__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 900px) {
  .ueber-uns__grid { grid-template-columns: 1fr 1fr; }
}

.ueber-uns__img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.ueber-uns__img-placeholder {
  background: var(--color-primary-pale);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow-xl);
}
.ueber-uns__img-placeholder svg { width: 100%; height: auto; display: block; }

.ueber-uns__badge-floating {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-3);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.ueber-uns__badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1;
}
.ueber-uns__badge-text {
  font-size: var(--text-xs);
  opacity: 0.85;
}

.ueber-uns__lead {
  font-size: var(--text-lg);
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: var(--space-2);
  line-height: 1.6;
}
.ueber-uns__body {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.ueber-uns__values {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.value {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.value__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--color-primary-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-top: 2px;
}
.value__icon svg { width: 18px; height: 18px; }
.value strong { display: block; color: var(--color-primary); font-weight: 600; }
.value small { color: var(--color-text-muted); font-size: var(--text-sm); }

/* =============================================
   EINSATZGEBIET
   ============================================= */
.einsatzgebiet { background: var(--color-bg); }

.einsatzgebiet__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 900px) {
  .einsatzgebiet__grid { grid-template-columns: 1fr 1fr; }
}

.map__container {
  background: var(--color-primary-pale);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.map__svg { width: 100%; height: auto; }

.einsatzgebiet__list h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.orte__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6em;
  margin-bottom: var(--space-4);
}
.orte__grid li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: 1.2em;
  position: relative;
}
.orte__grid li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-primary-light);
  font-size: 0.8em;
}

.einsatzgebiet__note {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  background: var(--color-primary-pale);
  border-left: 3px solid var(--color-primary-light);
  padding: var(--space-2) var(--space-3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.einsatzgebiet__note svg { flex-shrink: 0; color: var(--color-primary); margin-top: 2px; }

/* =============================================
   ABLAUF
   ============================================= */
.ablauf { background: var(--color-bg); }

.ablauf__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  counter-reset: ablauf;
  list-style: none;
  padding: 0;
}
@media (min-width: 640px) {
  .ablauf__steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .ablauf__steps { grid-template-columns: repeat(4, 1fr); }
}

.ablauf-step {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  padding-top: calc(var(--space-4) + 18px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.ablauf-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.ablauf-step__num {
  position: absolute;
  top: -20px;
  left: var(--space-3);
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.ablauf-step__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.ablauf-step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Connecting line between steps on desktop */
@media (min-width: 1000px) {
  .ablauf__steps { position: relative; }
  .ablauf-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2px;
    right: calc(-1 * var(--space-3) / 2 - 12px);
    width: var(--space-3);
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-light), transparent);
    opacity: 0.4;
  }
}

/* =============================================
   KONTAKT
   ============================================= */
.kontakt { background: var(--color-bg-alt); }

.kontakt__center {
  display: flex;
  justify-content: center;
}

.kontakt__card {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  color: #fff;
  width: min(100%, 480px);
  box-shadow: var(--shadow-xl);
}

.kontakt__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.kontakt__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kontakt__icon svg { width: 20px; height: 20px; }
.kontakt__item strong {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 2px;
}
.kontakt__item a,
.kontakt__item span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: #fff;
}
.kontakt__item a:hover { text-decoration: underline; }

/* WhatsApp Button */
.btn--whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  width: 100%;
  margin-top: var(--space-4);
  padding: 1em 1.8em;
  background: #25D366;
  color: #fff;
  font-size: var(--text-lg);
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  min-height: 60px;
  text-decoration: none;
}
.btn--whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.5);
}
.btn--whatsapp:focus-visible {
  outline: 3px solid #25D366;
  outline-offset: 3px;
}
.btn--whatsapp span {
  font-size: var(--text-base);
  font-weight: 700;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.75);
  padding-top: var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-8);
}
@media (min-width: 580px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer__logo {
  height: 50px;
  width: auto;
  margin-bottom: var(--space-2);
}
.footer__brand p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
}

.footer__links h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer__links ul { display: flex; flex-direction: column; gap: 0.5em; }
.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.82);
  transition: color var(--transition);
}
.footer__links a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: var(--space-3);
}
.footer__bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.65);
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  width: 48px; height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.back-to-top:hover { background: var(--color-primary-light); transform: translateY(-2px); }

/* =============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================= */

/* Global focus-visible ring (keyboard navigation) */
:focus-visible {
  outline: 3px solid var(--color-accent-light);
  outline-offset: 3px;
  border-radius: 3px;
}
/* Remove outline for mouse users, keep for keyboard */
:focus:not(:focus-visible) { outline: none; }

/* Skip-to-content link for screen readers & keyboard users */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-2);
  background: var(--color-primary);
  color: #fff;
  padding: 0.6em 1.2em;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-sm);
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Performance: only promote elements that actively transform on user interaction.
   `will-change` is pricey — applied conservatively to elements with hover lift. */
.leistung-card:hover,
.btn--primary:hover,
.btn--whatsapp:hover,
.back-to-top.visible {
  will-change: transform;
}

/* Defer paint of off-screen sections until they approach the viewport.
   `contain-intrinsic-size` reserves layout space so the scrollbar doesn't jump. */
.section {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* Lazy-load image placeholder style */
img[loading="lazy"] {
  background: var(--color-primary-pale);
}

/* High contrast mode support */
@media (forced-colors: active) {
  .btn--primary,
  .btn--whatsapp,
  .nav__link--cta {
    border: 2px solid ButtonText;
  }
  .leistung-card { border: 2px solid CanvasText; }
}

/* Print styles */
@media print {
  .header, .back-to-top, .btn--whatsapp, .hero__scroll-hint { display: none !important; }
  .hero { min-height: auto; padding-top: var(--space-4); }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}
