/* Havolli Facility Services - Design System v2
   Farben aus dem H.F.S.-Logo (Hellgrün + Anthrazit), warmes Papierweiß, viel Luft. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

:root {
  --lime: #8cb43a;
  --lime-bright: #a3cc4d;
  --lime-600: #6f9426;
  --lime-700: #4f6b17;
  --lime-100: #e9f2d6;
  --lime-50: #f4f8ea;
  --ink: #181d17;
  --ink-2: #232a22;
  --ink-80: #3b4339;
  --ink-60: #5e665b;
  --ink-40: #8c9488;
  --line: #e4e6dc;
  --paper: #f8f7f2;
  --white: #ffffff;
  --sand: #f0eee5;

  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;
  --shadow-sm: 0 1px 2px rgba(24, 29, 23, .05), 0 4px 14px rgba(24, 29, 23, .05);
  --shadow: 0 2px 6px rgba(24, 29, 23, .04), 0 22px 50px -18px rgba(24, 29, 23, .2);
  --shadow-lg: 0 40px 90px -30px rgba(24, 29, 23, .38);

  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(72px, 10vw, 140px);
  --header-h: 82px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--lime-700); text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.9rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 650; }

::selection { background: var(--lime); color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow { max-width: calc(820px + var(--gutter) * 2); }

.section { padding: var(--section) 0; position: relative; }
.section-sm { padding: calc(var(--section) * .55) 0; position: relative; }
.bg-white { background: var(--white); }
.bg-sand { background: var(--sand); }
.bg-ink { background: var(--ink); color: #cfd6c9; }
.bg-ink h2, .bg-ink h3 { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin-bottom: 20px;
  color: var(--lime-700);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
}
.bg-ink .eyebrow, .on-dark .eyebrow { color: var(--lime-bright); }

.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); color: var(--ink-80); max-width: 60ch; line-height: 1.65; }
.bg-ink .lead { color: #c3cbbd; }
.muted { color: var(--ink-60); }

.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--lime); }
.section-head p { color: var(--ink-60); font-size: 1.12rem; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head-row .section-head { margin-bottom: 0; }

/* ------------------------------------------------------------ Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .4s var(--ease); }
.btn:hover svg:last-child { transform: translateX(4px); }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--lime); color: var(--ink); box-shadow: 0 14px 30px -14px rgba(111, 148, 38, .8); }
.btn-primary:hover { background: var(--lime-bright); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-light:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-glass {
  background: rgba(255, 255, 255, .14);
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35);
}
.btn-glass:hover { background: rgba(255, 255, 255, .2); color: var(--white); }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .45s var(--ease);
}
.link-arrow svg { width: 18px; height: 18px; color: var(--lime-600); transition: transform .4s var(--ease); }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------ Header */
.progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--lime-bright));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  /* bewusst kein will-change: transform - das würde das fixierte Handy-Menü im Header einsperren */
  transition: transform .5s var(--ease), background-color .4s, box-shadow .4s;
}
.site-header.scrolled {
  background: rgba(248, 247, 242, .9);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  backdrop-filter: saturate(1.5) blur(12px);
  box-shadow: 0 1px 0 rgba(24, 29, 23, .07);
}
.site-header.hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; }
/* Logozeichen freigestellt - auf dunklem Grund wird automatisch die Variante mit hellem Ring gezeigt */
.brand-mark {
  display: grid;
  flex: none;
  width: 52px;
  height: 52px;
  transition: transform .6s var(--ease);
}
.brand-mark img { grid-area: 1 / 1; display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s ease; }
.brand-mark .logo-on-dark { opacity: 0; }
.has-dark-hero .site-header:not(.scrolled) .brand-mark .logo-on-light,
.site-footer .brand-mark .logo-on-light { opacity: 0; }
.has-dark-hero .site-header:not(.scrolled) .brand-mark .logo-on-dark,
.site-footer .brand-mark .logo-on-dark { opacity: 1; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-size: 1.24rem; font-weight: 800; letter-spacing: -.02em; }
.brand-sub { margin-top: 4px; color: var(--ink-60); font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }

/* Header über dunklem Hero */
.has-dark-hero .site-header:not(.scrolled) .brand,
.has-dark-hero .site-header:not(.scrolled) .nav-link,
.has-dark-hero .site-header:not(.scrolled) .header-phone { color: var(--white); }
.has-dark-hero .site-header:not(.scrolled) .brand-sub { color: rgba(255, 255, 255, .72); }
.has-dark-hero .site-header:not(.scrolled) .nav-link:hover,
.has-dark-hero .site-header:not(.scrolled) .nav-item:focus-within > .nav-link { background: rgba(255, 255, 255, .14); color: var(--white); }
.has-dark-hero .site-header:not(.scrolled) .nav-toggle { background: rgba(255, 255, 255, .14); }
.nav-toggle:focus:not(:focus-visible) { outline: none; }
.has-dark-hero .site-header:not(.scrolled) .nav-toggle span,
.has-dark-hero .site-header:not(.scrolled) .nav-toggle span::before,
.has-dark-hero .site-header:not(.scrolled) .nav-toggle span::after { background: var(--white); }

.main-nav > ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 15px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-80);
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.nav-link svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.nav-link:hover, .nav-item.open > .nav-link { background: var(--lime-100); color: var(--ink); }
.nav-item:hover:not(.shut) > .nav-link svg, .nav-item.open > .nav-link svg { transform: rotate(180deg); }
.nav-link[aria-current="page"] { color: var(--ink); background: var(--lime-100); }

.dropdown {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  min-width: 270px;
  padding: 12px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  /* beim Schließen kurz warten, damit das Menü beim Weg von Button zu Menü nicht wegspringt */
  transition: opacity .25s var(--ease) .12s, transform .35s var(--ease) .12s, visibility 0s .47s;
}
.dropdown::before { content: ""; position: absolute; left: -10px; right: -10px; top: -20px; height: 20px; }
/* offen beim Drüberfahren (außer direkt nach dem Zuklicken) oder per Klick (.open, bleibt bis Klick außerhalb) */
.nav-item:hover:not(.shut) > .dropdown, .nav-item.open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s;
}
.dropdown ul { margin: 0; padding: 0; list-style: none; }
.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 650;
  text-decoration: none;
  transition: background .2s;
}
.dropdown a:hover { background: var(--lime-50); }
.dropdown a small { display: block; color: var(--ink-60); font-family: var(--font-body); font-size: .8rem; font-weight: 400; }
.dropdown .dd-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--lime-100);
  color: var(--lime-700);
  flex: none;
}
.dropdown .dd-icon svg { width: 20px; height: 20px; }

.mega { width: min(600px, 92vw); padding: 16px; left: -40px; transform: translate(0, 10px); }
.nav-item:hover:not(.shut) > .mega, .nav-item.open > .mega { transform: translate(0, 0); }
.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.mega-feature-li { grid-column: 3; grid-row: 1 / span 4; }
.mega-feature {
  grid-row: span 4;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start !important;
  min-height: 300px;
  padding: 22px !important;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(24, 29, 23, 0) 30%, rgba(24, 29, 23, .85)), var(--img) center / cover;
  color: var(--white) !important;
}
.mega-feature small { color: rgba(255, 255, 255, .8) !important; }
.mega-feature:hover { background: linear-gradient(180deg, rgba(24, 29, 23, 0) 20%, rgba(24, 29, 23, .9)), var(--img) center / cover !important; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; color: var(--lime); }

.nav-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .35s var(--ease), background .2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent !important; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile-extra { display: none; }

/* ------------------------------------------------------------ Hero (Startseite) */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(48px, 7vw, 96px);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  transform: scale(1.12);
  animation: kenburns 22s var(--ease) forwards;
  will-change: transform;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(16, 20, 15, .88) 0%, rgba(16, 20, 15, .62) 42%, rgba(16, 20, 15, .1) 75%),
    linear-gradient(0deg, rgba(16, 20, 15, .6), rgba(16, 20, 15, 0) 45%);
}
@keyframes kenburns { to { transform: scale(1); } }

.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: end; }
.hero h1 { color: var(--white); max-width: 16ch; font-size: clamp(2.3rem, 5.2vw, 4.2rem); }
.hero h1 .hl { color: var(--lime-bright); }
.hero .lead { color: rgba(255, 255, 255, .86); margin-bottom: 34px; }
.hero .eyebrow { color: var(--lime-bright); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 0; padding: 0; list-style: none; }
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  background: rgba(24, 29, 23, .45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  font-size: .92rem;
  font-weight: 500;
}
.hero-badges svg { width: 18px; height: 18px; color: var(--lime-bright); }

.hero-card {
  justify-self: end;
  width: 100%;
  max-width: 360px;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(40, 48, 38, .78), rgba(24, 29, 23, .72));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.hero-card h2 { color: var(--white); font-size: 1.15rem; margin-bottom: 14px; letter-spacing: -.01em; }
.hero-card ul { display: grid; gap: 4px; margin: 0 0 18px; padding: 0; list-style: none; }
.hero-card li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  transition: background-color .25s;
}
.hero-card li a:hover { background: rgba(255, 255, 255, .1); }
.hero-card li svg { width: 16px; height: 16px; color: var(--lime-bright); transition: transform .4s var(--ease); }
.hero-card li a:hover svg { transform: translateX(4px); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5);
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--white);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Schwebende Seifenblasen (Logo-Motiv) */
.bubbles { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bubbles span {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .75), rgba(163, 204, 77, .35) 45%, rgba(140, 180, 58, .12) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  animation: rise linear infinite;
  will-change: transform, opacity;
}
@keyframes rise {
  0% { transform: translate(0, 0) scale(.8); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(18px, -50vh) scale(1); }
  100% { transform: translate(-12px, -110vh) scale(1.1); opacity: 0; }
}

/* ------------------------------------------------------------ Seiten-Hero (Unterseiten) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 32px) 0 0;
  overflow: hidden;
}
.page-hero-inner { position: relative; padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero h1 { max-width: 17ch; font-size: clamp(2.2rem, 4.6vw, 4.1rem); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.page-hero .lead { margin-bottom: 30px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  box-shadow: var(--shadow-lg);
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media figcaption, .photo figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(24, 29, 23, .62);
  color: rgba(255, 255, 255, .9);
  font-size: .72rem;
  letter-spacing: .04em;
}
.page-hero-media .float-chip {
  position: absolute;
  left: 18px;
  top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  animation: bob 6s ease-in-out infinite;
}
.float-chip .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--lime); color: var(--ink); }
.float-chip .ic svg { width: 18px; height: 18px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.page-hero .blob {
  position: absolute;
  right: -220px;
  top: -260px;
  width: 720px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 180, 58, .22), rgba(140, 180, 58, 0) 65%);
  pointer-events: none;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: var(--ink-60);
  font-size: .88rem;
}
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--ink-40); }
.breadcrumb a { color: var(--ink-60); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

.quick-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--ink-80); font-size: .95rem; }
.quick-facts li { display: inline-flex; align-items: center; gap: 8px; }
.quick-facts svg { width: 18px; height: 18px; color: var(--lime-600); }

/* ------------------------------------------------------------ Laufband */
.marquee {
  position: relative;
  padding: 22px 0;
  background: var(--lime);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track { display: inline-flex; animation: marquee 75s linear infinite; will-change: transform; }
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.marquee span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); opacity: .85; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ Karten mit Foto */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card h3, .photo-card h3, .tile h3, .detail h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

/* Hover-Schatten als eigene Ebene: nur die Deckkraft wird animiert (flüssig bis 120 Hz) */
.photo-card, .article-card, .card, .detail, .contact-item { position: relative; isolation: isolate; }
.photo-card::before, .article-card::before, .card::before, .detail::before, a.contact-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.photo-card:hover::before, .article-card:hover::before, .card:hover::before, .detail:hover::before, a.contact-item:hover::before { opacity: 1; }

.photo-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none;
  transition: transform .6s var(--ease);
}
.photo-card:hover { transform: translateY(-6px); color: var(--ink); }
.photo-card .pc-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.photo-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo-card:hover .pc-media img { transform: scale(1.07); }
.photo-card .pc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(24, 29, 23, .35)); }
.photo-card .pc-icon {
  position: absolute;
  left: 20px;
  top: -27px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 10px 24px -8px rgba(79, 107, 23, .6);
  transition: transform .6s var(--ease);
}
.photo-card:hover .pc-icon { transform: rotate(-8deg) scale(1.06); }
.photo-card .pc-icon svg { width: 26px; height: 26px; }
.photo-card .pc-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 42px 24px 24px; }
.photo-card h3 { margin-bottom: 8px; }
.photo-card p { color: var(--ink-60); font-size: .98rem; margin-bottom: 18px; }
.photo-card .more { margin-top: auto; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.tags li { padding: 4px 11px; border-radius: 999px; background: var(--sand); color: var(--ink-80); font-size: .8rem; font-weight: 500; }

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime-700);
  font-family: var(--font-display);
  font-weight: 700;
}
.more svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
a:hover .more svg { transform: translateX(5px); }

/* Große Bild-Kachel (Branchen) */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  padding: 28px;
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(24, 29, 23, 0) 25%, rgba(24, 29, 23, .88)); transition: opacity .5s; }
.tile:hover img { transform: scale(1.08); }
.tile h3 { color: var(--white); font-size: 1.45rem; margin-bottom: 6px; }
.tile-text { display: block; transform: translateY(3.2em); transition: transform .6s var(--ease); }
.tile p { margin: 0; opacity: 0; color: rgba(255, 255, 255, .85); font-size: .95rem; transition: opacity .5s var(--ease); }
.tile:hover .tile-text, .tile:focus-visible .tile-text { transform: none; }
.tile:hover p, .tile:focus-visible p { opacity: 1; }
.tile .tile-arrow {
  position: absolute;
  right: 22px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(24, 29, 23, .4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  transition: background-color .4s, transform .6s var(--ease);
}
.tile .tile-arrow svg { width: 20px; height: 20px; transform: rotate(-45deg); }
.tile:hover .tile-arrow { background: var(--lime); color: var(--ink); transform: rotate(45deg); }
.tile.wide { grid-column: span 2; }

/* Textkarte */
.card {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-60); font-size: .98rem; }
.card .ic {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border-radius: 15px;
  background: var(--lime-100);
  color: var(--lime-700);
  transition: background .4s, color .4s, transform .6s var(--ease);
}
.card:hover .ic { background: var(--lime); color: var(--ink); transform: rotate(-8deg); }
.card .ic svg { width: 24px; height: 24px; }
.bg-ink .card { background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.bg-ink .card p { color: #aeb7a8; }
.bg-ink .card .ic { background: rgba(140, 180, 58, .16); color: var(--lime-bright); }

a.card { display: block; color: var(--ink); text-decoration: none; }
a.card:hover { color: var(--ink); }

/* ------------------------------------------------------------ Split / Foto */
h2 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.split.top { align-items: start; }
.split.wide-left { grid-template-columns: 1.15fr .85fr; }

.photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 16 / 10; }

.photo-stack { position: relative; padding: 0 0 60px 60px; }
.photo-stack .photo.small {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 1;
  border: 8px solid var(--paper);
  box-shadow: var(--shadow);
}
.bg-white .photo-stack .photo.small { border-color: var(--white); }
.photo-stack .stamp {
  position: absolute;
  right: -14px;
  top: -14px;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  box-shadow: var(--shadow);
  animation: spin-slow 24s linear infinite;
}
.stamp b { display: block; font-size: 2rem; letter-spacing: -.04em; }
.stamp small { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.stamp > span { animation: spin-slow 24s linear infinite reverse; display: block; }

/* Check-Liste */
.check-list { display: grid; gap: 14px; margin: 0 0 1.6em; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 38px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15em;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23181d17' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.check-list.two { grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.bg-ink .check-list li { color: #d8dfd2; }

/* ------------------------------------------------------------ Zahlen */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); overflow: hidden; }
.stat { padding: clamp(26px, 3vw, 40px); text-align: left; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.stat b em { font-style: normal; color: var(--lime); }
.stat > span { display: block; margin-top: 10px; color: var(--ink-60); font-size: .95rem; }

/* ------------------------------------------------------------ Ablauf */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.process::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 28px;
  height: 2px;
  background: var(--line);
}
.process .line {
  position: absolute;
  left: 28px;
  top: 28px;
  height: 2px;
  width: calc(100% - 56px);
  background: var(--lime);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 1.8s var(--ease) .2s;
}
.process.in .line { transform: scaleX(1); }
.process li { position: relative; counter-increment: step; }
.process li::before {
  content: counter(step, decimal-leading-zero);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--lime), var(--shadow-sm);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
}
.bg-sand .process li::before { background: var(--sand); }
.process h3 { font-size: 1.15rem; margin-bottom: 6px; }
.process p { margin: 0; color: var(--ink-60); font-size: .98rem; }

/* ------------------------------------------------------------ Detail-Liste */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.detail {
  display: flex;
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease);
}
.detail:hover { transform: translateY(-3px); }
.detail .num {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--lime-100);
  color: var(--lime-700);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
}
.detail h3 { font-size: 1.12rem; margin-bottom: 6px; }
.detail p { margin: 0; color: var(--ink-60); font-size: .98rem; }

/* Text-Inhalt */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--lime-600); }
.prose .note {
  margin: 1.6em 0;
  padding: 20px 24px;
  border-left: 4px solid var(--lime);
  border-radius: 0 16px 16px 0;
  background: var(--lime-50);
  color: var(--ink-80);
  font-size: .98rem;
}
.prose .todo { padding: 1px 6px; border-radius: 6px; background: #fff1c2; color: #6b4e00; font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: .97rem; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-family: var(--font-display); background: var(--sand); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(36px, 5vw, 72px); align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.side-card { padding: 26px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.side-card h2 { font-size: 1.1rem; margin-bottom: 12px; }
.side-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.side-card ul a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--ink-80); text-decoration: none; font-size: .95rem; transition: background-color .2s; }
.side-card ul a:hover, .side-card ul a[aria-current="page"] { background: var(--lime-50); color: var(--ink); }
.side-card ul a svg { width: 16px; height: 16px; flex: none; color: var(--lime-600); transition: transform .4s var(--ease); }
.side-card ul a:hover svg { transform: translateX(4px); }
.side-card ul a[aria-current="page"] { font-weight: 600; }
.side-card.dark { background: var(--ink); color: #cfd6c9; }
.side-card.dark h2 { color: var(--white); }
.side-card.dark p { font-size: .95rem; }
.side-card.dark .btn { width: 100%; margin-top: 8px; }

.toc { counter-reset: toc; }
.toc a::before { counter-increment: toc; content: counter(toc) "."; margin-right: 8px; color: var(--lime-600); font-weight: 700; }

/* Artikel-Karten */
.article-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; transition: transform .6s var(--ease); }
.article-card:hover { transform: translateY(-6px); color: var(--ink); }
.article-card .ac-media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.article-card .ac-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.article-card:hover .ac-media img { transform: scale(1.06); }
.article-card .ac-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.article-card .ac-meta { margin-bottom: 8px; color: var(--lime-700); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.article-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.article-card p { color: var(--ink-60); font-size: .96rem; }

/* ------------------------------------------------------------ Versprechen-Band */
.promise {
  position: relative;
  padding: clamp(40px, 6vw, 80px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #cfd6c9;
  overflow: hidden;
  isolation: isolate;
}
.promise h2 { color: var(--white); max-width: 18ch; }
.promise blockquote {
  margin: 0 0 24px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.promise blockquote em { font-style: normal; color: var(--lime-bright); }
.promise .ring {
  position: absolute;
  right: -140px;
  bottom: -200px;
  z-index: -1;
  width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 60px solid rgba(140, 180, 58, .14);
}

/* ------------------------------------------------------------ Einsatzgebiet */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: .94rem; transition: background .3s, color .3s, transform .4s var(--ease); }
.chips li:hover { background: var(--lime); transform: translateY(-2px); }
.bg-ink .chips li { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: #e3e8de; }
.bg-ink .chips li:hover { background: var(--lime); color: var(--ink); }

/* ------------------------------------------------------------ FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 20px; background: var(--white); box-shadow: var(--shadow-sm); transition: box-shadow .4s; overflow: hidden; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lime-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6b17' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .5s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--lime); }
.faq .faq-body { padding: 0 26px 24px; color: var(--ink-80); }
.faq .faq-body p:last-child { margin: 0; }

/* ------------------------------------------------------------ CTA */
.cta {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr auto;
  align-items: center;
  gap: 32px;
  padding: clamp(36px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background: var(--lime);
  overflow: hidden;
  isolation: isolate;
}
.cta h2 { margin-bottom: 10px; max-width: 16ch; }
.cta p { margin: 0; color: #29321e; font-size: 1.12rem; max-width: 48ch; }
.cta .bubbles span { background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .3) 50%, rgba(255, 255, 255, .08) 70%); }
.cta .btn-row { position: relative; z-index: 1; }
.cta > div:not(.bubbles) { position: relative; z-index: 1; }

/* ------------------------------------------------------------ Kontakt */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none;
  transition: transform .5s var(--ease);
}
a.contact-item:hover { transform: translateX(6px); color: var(--ink); }
.contact-item .ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--lime); color: var(--ink); flex: none; }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item small { display: block; color: var(--ink-60); font-size: .82rem; }
.contact-item strong { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; }

.form-card { padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-size: .92rem; font-weight: 700; }
.field label .opt { color: var(--ink-60); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime-600); background: var(--white); box-shadow: 0 0 0 4px rgba(140, 180, 58, .2); }
.consent { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-80); font-size: .92rem; }
.consent { -webkit-tap-highlight-color: transparent; }
/* Kein Effekt nach dem Anklicken - nur bei Tastaturbedienung ein dezenter Hinweis */
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--lime-600); flex: none; outline: none; transition: none; animation: none; }
.consent input:focus, .consent input:focus-visible { outline: none; box-shadow: none; }
.consent:has(input:focus-visible) span { text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: .25em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 14px 0 0; color: var(--ink-60); font-size: .85rem; }

/* AGB */
.agb-section { margin-bottom: 1.8em; }
.agb-section h2 { font-size: 1.22rem; margin: 0 0 .6em; }
.agb-section p { margin-bottom: .55em; }

/* Sitemap */
.sitemap-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.sitemap-cols h2 { font-size: 1.15rem; }
.sitemap-cols ul { margin: 0; padding-left: 1.1em; }
.sitemap-cols li { margin-bottom: .4em; }

/* 404 */
.error-code { font-family: var(--font-display); font-size: clamp(6rem, 20vw, 11rem); font-weight: 800; line-height: .9; letter-spacing: -.06em; color: var(--lime); }

/* ------------------------------------------------------------ Footer */
.site-footer { position: relative; padding: clamp(72px, 9vw, 120px) 0 30px; background: var(--ink); color: #b9c2b3; font-size: .97rem; overflow: hidden; }
.site-footer a { color: #e3e8de; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--lime-bright); }
/* Buttons im Footer behalten ihre eigene Schriftfarbe (sonst wird sie beim Drüberfahren grün auf grün) */
.site-footer .btn-primary, .site-footer .btn-primary:hover { color: var(--ink); }
.site-footer .btn-glass, .site-footer .btn-glass:hover { color: var(--white); }
.footer-cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-cta h2 { margin: 0; color: var(--white); font-size: clamp(2rem, 5vw, 3.6rem); max-width: 14ch; }
.footer-cta h2 em { font-style: normal; color: var(--lime-bright); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h2 { margin-bottom: 16px; color: var(--white); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.footer-grid ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer-brand .brand { color: var(--white); margin-bottom: 18px; }
.footer-brand .brand-sub { color: #93a08d; }
.footer-brand p { max-width: 32ch; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .07); transition: background .3s, transform .4s var(--ease); }
.social a:hover { background: var(--lime); color: var(--ink); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 60px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); color: #8d9887; font-size: .86rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; }
.footer-word {
  position: absolute;
  left: 50%;
  bottom: -0.22em;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .03);
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 20rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}


/* ------------------------------------------------------------ Schwebende Kontakt-Leiste
   Immer sichtbar am rechten Rand. Beim Scrollen gleitet sie federnd nach (--dock-y wird per JS gesetzt);
   animiert werden nur transform und opacity. */
/* Dezent: unten rechts in der Ecke, klein und leicht durchsichtig - voll sichtbar erst beim Drüberfahren */
.float-dock {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  display: grid;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(24, 29, 23, .45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 12px 30px -16px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  opacity: .78;
  transform: translate3d(0, var(--dock-y, 0px), 0) rotate(var(--dock-r, 0deg));
  transition: transform .7s cubic-bezier(.34, 1.56, .64, 1), opacity .3s var(--ease);
  animation: dock-in 1s var(--ease) .8s both;
  will-change: transform;
}
.float-dock:hover, .float-dock:focus-within { opacity: 1; }
@keyframes dock-in { from { translate: 90px 0; opacity: 0; } }

.dock-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  text-decoration: none;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background-color .3s, color .3s;
  animation: dock-btn-in .8s cubic-bezier(.34, 1.56, .64, 1) both;
}
.dock-btn:nth-child(1) { animation-delay: 1s; }
.dock-btn:nth-child(2) { animation-delay: 1.1s; }
.dock-btn:nth-child(3) { animation-delay: 1.2s; }
@keyframes dock-btn-in { from { scale: .4; opacity: 0; } to { scale: 1; opacity: 1; } }
.dock-btn svg { width: 18px; height: 18px; position: relative; z-index: 1; }
.dock-btn.dock-phone { color: var(--lime-bright); }
.dock-btn:hover, .dock-btn:focus-visible { background: var(--lime); color: var(--ink); transform: scale(1.1) translateX(-3px); }

.dock-label {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(12px, -50%);
  transition: opacity .3s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.dock-btn:hover .dock-label, .dock-btn:focus-visible .dock-label { opacity: 1; transform: translate(0, -50%); }
.nav-open .float-dock { opacity: 0; pointer-events: none; }

/* ------------------------------------------------------------ Seitenwechsel (wie A&S) */
.page-transition { position: fixed; inset: 0; z-index: 10000; overflow: hidden; pointer-events: none; visibility: hidden; }
.page-transition__plane {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 26%, rgba(140, 180, 58, .32), transparent 34rem),
    radial-gradient(circle at 80% 76%, rgba(163, 204, 77, .18), transparent 30rem),
    var(--ink);
  transform: translate3d(-100%, 0, 0);
  transition: transform 760ms var(--ease-io);
  will-change: transform;
}
.page-transition__plane::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 4px;
  background: linear-gradient(180deg, var(--lime-bright), var(--lime-600));
  box-shadow: 0 0 28px rgba(140, 180, 58, .45);
}
.page-transition__brand {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: min(360px, calc(100vw - 40px));
  padding: 18px 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 28px 72px rgba(0, 0, 0, .4);
  opacity: 0;
  transform: translate(-50%, -45%) scale(.96);
  transition: opacity 300ms ease 230ms, transform 460ms var(--ease) 190ms;
}
.page-transition__brand .brand-mark { width: 64px; height: 64px; }
.page-transition__brand strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.page-transition__brand small { display: block; margin-top: 7px; color: var(--lime-700); font-size: .7rem; font-weight: 800; letter-spacing: .16em; }
body.pt-active .page-transition { visibility: visible; }
body.pt-active .page-transition__plane { transform: translate3d(0, 0, 0); }
body.pt-active .page-transition__brand { opacity: 1; transform: translate(-50%, -50%) scale(1); }
/* Ankommen auf der neuen Seite: Fläche gleitet nach rechts weg */
html.pt-enter .page-transition { visibility: visible; }
html.pt-enter .page-transition__plane { transform: translate3d(0, 0, 0); transition: none; }
html.pt-enter .page-transition__brand { opacity: 1; transform: translate(-50%, -50%) scale(1); transition: none; }
html.pt-leave .page-transition { visibility: visible; }
html.pt-leave .page-transition__plane { transform: translate3d(100%, 0, 0); transition: transform 760ms var(--ease-io) 120ms; }
html.pt-leave .page-transition__brand { opacity: 0; transform: translate(-50%, -55%) scale(.96); transition: opacity 220ms ease, transform 360ms var(--ease); }

/* ------------------------------------------------------------ Scroll-Animationen */
/* Nur transform und opacity werden animiert - das übernimmt der Grafikchip, flüssig bis 120 Hz. */
.js [data-anim] { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-anim="up"] { opacity: 0; transform: translateY(32px); }
.js [data-anim="left"] { opacity: 0; transform: translateX(-40px); }
.js [data-anim="right"] { opacity: 0; transform: translateX(40px); }
.js [data-anim="zoom"] { opacity: 0; transform: scale(.94); }
/* Bild-Enthüllung: ein Vorhang in Hintergrundfarbe fährt nach oben weg */
.js [data-anim="clip"]::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 5;
  background: var(--curtain, var(--paper));
  transform-origin: 50% 0;
  transition: transform 1.2s var(--ease-io);
  transition-delay: var(--d, 0s);
  pointer-events: none;
}
.bg-white [data-anim="clip"] { --curtain: var(--white); }
.js [data-anim="clip"] img { transform: scale(1.25); transition: transform 1.6s var(--ease); }
.js [data-anim].in { opacity: 1; transform: none; }
.js [data-anim="clip"].in::after { transform: scaleY(0); }
.js [data-anim="clip"].in img { transform: scale(1); }

/* Überschriften: Wort für Wort von unten einblenden */
/* Genug Innenabstand, damit Unterlängen (g, p, j, y) nach der Animation nicht abgeschnitten werden */
.js .split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .04em .24em; margin: -.06em -.04em -.24em; }
.js .split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0s)); }
.js .split-words.in .w > span { transform: none; }

[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-anim], .js .split-words .w > span { opacity: 1 !important; transform: none !important; }
  .js [data-anim="clip"]::after { display: none; }
  .js [data-anim="clip"] img { transform: none !important; }
  .page-transition, .bubbles { display: none !important; }
}

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1200px) {
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .header-phone span { display: none; }
}

@media (max-width: 1040px) {
  :root { --header-h: 74px; }
  .nav-toggle { display: block; }
  .header-actions .btn, .header-phone { display: none; }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    padding: calc(var(--header-h) + 12px) var(--gutter) 40px;
    overflow-y: auto;
    visibility: hidden;
    transition: visibility 0s .7s;
  }
  /* Kreis-Animation per transform statt clip-path - läuft auf dem Grafikchip */
  .main-nav::before {
    content: "";
    position: fixed;
    z-index: -1;
    right: calc(46px - 150vmax);
    top: calc(37px - 150vmax);
    width: 300vmax;
    height: 300vmax;
    border-radius: 50%;
    background: var(--paper);
    transform: scale(0);
    transition: transform .7s var(--ease-io);
  }
  .nav-open .main-nav { visibility: visible; transition: visibility 0s; }
  .nav-open .main-nav::before { transform: scale(1); }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .nav-open .site-header .brand, .nav-open .site-header .brand-name { color: var(--ink) !important; }
  .nav-open .site-header .brand-sub { color: var(--ink-60) !important; }
  .nav-open .nav-toggle { background: var(--white) !important; }
  .nav-open .nav-toggle span::before, .nav-open .nav-toggle span::after { background: var(--ink) !important; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s var(--ease); }
  .nav-open .main-nav > ul > li { opacity: 1; transform: none; }
  .nav-open .main-nav > ul > li:nth-child(1) { transition-delay: .15s; }
  .nav-open .main-nav > ul > li:nth-child(2) { transition-delay: .2s; }
  .nav-open .main-nav > ul > li:nth-child(3) { transition-delay: .25s; }
  .nav-open .main-nav > ul > li:nth-child(4) { transition-delay: .3s; }
  .nav-open .main-nav > ul > li:nth-child(5) { transition-delay: .35s; }
  .nav-link { width: 100%; justify-content: space-between; padding: 18px 4px; border-radius: 0; font-size: 1.3rem; color: var(--ink) !important; background: none !important; }
  .nav-link svg { width: 20px; height: 20px; }
  .dropdown, .mega {
    position: static;
    width: auto;
    min-width: 0;
    padding: 0 0 14px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav-item.open > .dropdown { display: block; }
  .nav-item.open > .nav-link svg { transform: rotate(180deg); }
  .nav-item:hover:not(.shut):not(.open) > .nav-link svg { transform: none; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-feature-li { display: none; }
  .dropdown a small { display: none; }
  .dropdown a { padding: 8px 4px; font-size: 1.02rem; }
  .nav-mobile-extra { display: grid; gap: 10px; margin-top: 28px; opacity: 0; transition: opacity .5s .4s; }
  .nav-open .nav-mobile-extra { opacity: 1; }
  .nav-mobile-extra .btn { width: 100%; }

  .hero-grid, .split, .split.wide-left, .contact-grid, .page-hero-grid, .content-grid { grid-template-columns: 1fr; }
  .hero-card { justify-self: start; max-width: 520px; }
  .sidebar { position: static; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr 1fr; gap: 32px 22px; }
  .process::before, .process .line { display: none; }
  .cta { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .sitemap-cols { grid-template-columns: 1fr 1fr; }
  .photo-stack { padding: 0 0 40px 40px; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 1.1rem; }
  .brand-sub { font-size: .6rem; }
  .hero { min-height: 92svh; }
  .hero-card, .scroll-cue { display: none; }
  .bubbles span:nth-child(n+8) { display: none; }
  .hero-badges li { font-size: .85rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .card-grid, .card-grid.two, .card-grid.four, .detail-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .check-list.two { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .sitemap-cols { grid-template-columns: 1fr; }
  .tile { min-height: 320px; }
  .tile-text { transform: none; }
  .tile p { opacity: 1; }
  .photo-stack { padding: 0 0 30px 24px; }
  .photo-stack .stamp { width: 100px; height: 100px; right: -6px; }
  .stamp b { font-size: 1.6rem; }

  /* Kontakt-Leiste auf dem Handy: noch etwas kleiner, unten rechts */
  .float-dock { right: max(10px, env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); gap: 5px; padding: 5px; }
  .dock-btn { width: 38px; height: 38px; }
  .dock-btn svg { width: 17px; height: 17px; }
  .dock-label { display: none; }
}

/* Fix Handy-Menü: Untermenüs wurden per Hover-/Öffnen-Regel um -50 % nach links verschoben (abgeschnitten) */
@media (max-width: 1040px) {
  .nav-item:hover:not(.shut) > .dropdown, .nav-item.open > .dropdown,
  .nav-item:hover:not(.shut) > .mega, .nav-item.open > .mega {
    transform: none;
    left: auto;
    width: auto;
  }
  /* Beim geöffneten Menü keine Inhalte unter der Kopfzeile durchscrollen lassen */
  .nav-open .site-header { background: var(--paper) !important; }
}

/* Handy-Menü beginnt unterhalb der Kopfzeile, damit Menüeinträge nicht über Logo und Schrift laufen */
@media (max-width: 1040px) {
  .main-nav { top: var(--header-h); bottom: 0; padding-top: 12px; }
}

/* Kopieren & Speichern verhindern - Ausnahme: Formularfelder */
html, body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img, svg, picture, video, canvas { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; }
img { pointer-events: none; }
a img, button img { pointer-events: none; }
