/* ── Variables ─────────────────────────────────────────────────────── */
:root {
  --anthracite:   #101414;
  --anthracite-2: #1a2020;
  --anthracite-3: #222c2c;
  --text:    #f5f7f9;
  --muted:   #a9b0b6;
  --accent:  #c2cbd2;
  --accent-2:#e8edf0;
  --silver:  #c2cbd2;
  --silver-2:#8b949c;
  --light:   #f4f6f8;
  --darkText:#1b1d1f;
  --radius:  20px;
  --radius-sm: 12px;
  --shadow:  0 25px 80px rgba(0,0,0,.38);
  --pad:     clamp(24px, 6vw, 80px);
  --max-w:   1180px;
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --dur:     0.28s;
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--anthracite);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { margin: 0 0 16px; line-height: 1.1; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  background: linear-gradient(to bottom, rgba(10,12,12,.82), transparent);
  transition: background var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.site-header.scrolled {
  background: rgba(14,18,18,.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding-block: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.site-logo {
  height: 54px;
  width: auto;
  display: block;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.site-logo:hover { opacity: 0.85; transform: scale(0.97); }

.brand-text { font-weight: 900; letter-spacing: .14em; font-size: 1.1rem; }
.brand-text span { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.main-nav a { opacity: .72; transition: opacity var(--dur), color var(--dur); }
.main-nav a:hover, .main-nav .active { color: var(--accent); opacity: 1; }
.main-nav .btn { padding: 10px 20px; font-size: .8rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
  line-height: 1;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 800;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
  overflow: hidden;
  cursor: pointer;
  border: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
  text-decoration: none;
}
/* shimmer sweep */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.24) 50%, transparent 62%);
  transform: translateX(-110%);
  transition: transform .6s var(--ease);
  pointer-events: none;
}
.btn:hover::before { transform: translateX(110%); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #171410;
}
.btn.primary:hover {
  box-shadow: 0 14px 40px rgba(194,203,210,.45), 0 2px 8px rgba(194,203,210,.25);
}

.btn.ghost {
  border: 1.5px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(194,203,210,.08);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 28px rgba(194,203,210,.18);
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 140px var(--pad) 90px;
  background: center / cover no-repeat;
}
.hero.small { min-height: 60vh; }
.hero-home    { background-image: url('../images/gb-titel.png'); }
.hero-projects{ background-image: url('../images/projekte-header.png'); }
.hero-contact { background-image: url('https://images.unsplash.com/photo-1626885930974-4b69aa21bbf9?auto=format&fit=crop&w=2200&q=85'); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(16,20,20,.08) 0%, rgba(16,20,20,.6) 55%, var(--anthracite) 100%),
    linear-gradient(90deg, rgba(16,20,20,.9), rgba(16,20,20,.12));
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 800;
  font-size: .77rem;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  letter-spacing: -.06em;
  margin-bottom: 20px;
}
.hero h1 span {
  background: linear-gradient(90deg, #fff 20%, var(--silver) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { max-width: 660px; color: var(--muted); font-size: 1.1rem; margin-bottom: 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* ── Hero-Einblendung beim Laden ────────────────────────────────────── */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(48px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Gestaffeltes Aufsteigen mit Schärfe-Zug: eyebrow → h1 → p → buttons */
.hero-content > .eyebrow,
.hero-content > h1,
.hero-content > p,
.hero-content > .hero-actions {
  opacity: 0;
  animation: heroRise 1.15s var(--ease) forwards;
}
.hero-content > .eyebrow      { animation-delay: .10s; }
.hero-content > h1            { animation-delay: .30s; }
.hero-content > p             { animation-delay: .60s; }
.hero-content > .hero-actions { animation-delay: .80s; }

/* Bewegung reduzieren: sanftes Fade-in (keine Bewegung/Unschärfe) statt gar keiner Animation */
@media (prefers-reduced-motion: reduce) {
  .hero-content > .eyebrow,
  .hero-content > h1,
  .hero-content > p,
  .hero-content > .hero-actions { animation-name: heroFade; animation-duration: .9s; filter: none; }
}

/* ── Sections ───────────────────────────────────────────────────────── */
.section { padding: 100px var(--pad); }
.container { max-width: var(--max-w); margin-inline: auto; }
.narrow { max-width: 920px; }

.section.dark  { background: var(--anthracite); }
.section.dark2 { background: var(--anthracite-2); }
.section.light { background: var(--light); color: var(--darkText); }
.section.light .muted-text { color: #5b636a; }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p.eyebrow { margin-bottom: 10px; }

.section h2 {
  font-size: clamp(2.1rem, 4.5vw, 4.8rem);
  letter-spacing: -.055em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.section-head h2, .section h2.gradient {
  background: linear-gradient(90deg, #fff 20%, var(--silver) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section.light .section-head h2 {
  background: linear-gradient(90deg, var(--darkText) 20%, var(--silver-2) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-intro { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; max-width: 600px; }
.section.light .section-intro { color: #5b636a; }

/* ── Service Grid ───────────────────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  background: linear-gradient(145deg, var(--anthracite-2), #0c1010);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 80%, rgba(194,203,210,.07), transparent 65%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: rgba(194,203,210,.28); box-shadow: 0 32px 90px rgba(0,0,0,.5), 0 0 0 1px rgba(194,203,210,.15); }
.card:hover::after { opacity: 1; }
.card span { color: var(--accent); font-weight: 900; font-size: 2.4rem; letter-spacing: -.05em; display: block; margin-bottom: 14px; opacity: .6; }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .93rem; margin: 0; line-height: 1.6; }

/* ── Split sections ─────────────────────────────────────────────────── */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.benefit {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid rgba(16,20,20,.08);
  border-radius: 14px; padding: 13px 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.05);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.benefit:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(0,0,0,.12); border-color: rgba(16,20,20,.16); }
.benefit .ic {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--anthracite); color: var(--accent);
}
.benefit .ic svg { width: 22px; height: 22px; }
.benefit .label { font-weight: 700; color: var(--darkText); font-size: .95rem; line-height: 1.3; }
.benefit.wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } .benefit.wide { grid-column: auto; } }

/* ── Feature Split (dark with image) ───────────────────────────────── */
.feature-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 32px 90px rgba(0,0,0,.5);
}
.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.feature-img:hover img { transform: scale(1.04); }
.feature-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(194,203,210,.12), transparent 60%);
  pointer-events: none;
}

.feature-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .94rem;
  color: var(--muted);
}
.feature-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(194,203,210,.6);
}

/* ── Accent Band ────────────────────────────────────────────────────── */
.accent-band {
  background: radial-gradient(circle at 20% 0%, var(--accent-2), var(--accent));
  color: #171410;
}
.dark-text { color: #1b1d1f; }
.accent-band .section-intro { color: rgba(23,20,16,.72); margin-left: auto; margin-right: auto; }

/* ── CTA section ────────────────────────────────────────────────────── */
.section.cta { text-align: center; }
.section.cta h2 { margin-bottom: 28px; }

/* ── Gallery / Projects ─────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.project-card {
  background: linear-gradient(145deg, var(--anthracite-2), #0c1010);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(194,203,210,.25); box-shadow: 0 36px 100px rgba(0,0,0,.55); }
.project-card .img-wrap {
  overflow: hidden;
  height: 260px;
}
.project-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--ease);
}
.project-card:hover .img-wrap img { transform: scale(1.06); }
.project-card h2 { font-size: 1.2rem; margin-bottom: 8px; padding: 22px 22px 0; }
.project-card p { color: var(--muted); font-size: .9rem; padding: 0 22px 22px; line-height: 1.6; margin: 0; }

/* ── Contact ────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
}
.contact-grid h2 { font-size: clamp(1.8rem, 3vw, 3rem); margin-bottom: 20px; }
.contact-grid p { color: #5b636a; line-height: 1.7; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--darkText); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid #cdd6d2;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font: inherit;
  background: #fff;
  color: var(--darkText);
  transition: border-color var(--dur), box-shadow var(--dur);
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #c2cbd2;
  box-shadow: 0 0 0 3px rgba(194,203,210,.18);
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--anthracite-2);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 64px var(--pad) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand .site-logo { height: 48px; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: .9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-size: .77rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer-col nav { display: flex; flex-direction: column; gap: 10px; }
.footer-col nav a {
  color: var(--muted);
  font-size: .9rem;
  transition: color var(--dur);
}
.footer-col nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
}
.footer-bottom p { color: var(--muted); font-size: .82rem; margin: 0; }
.footer-bottom a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; transition: color var(--dur); }
.footer-bottom a:hover { color: var(--accent); }

/* ── Scroll reveal ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    right: var(--pad);
    top: 70px;
    background: #0e1212;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-width: 180px;
    box-shadow: 0 24px 60px rgba(0,0,0,.4);
  }
  .main-nav.open { display: flex; }
  .hero { min-height: 82vh; padding-top: 110px; }
  .section { padding: 72px var(--pad); }
  .split-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-grid, .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .feature-img { aspect-ratio: 16/9; }
  .main-nav a { padding: 6px 0; display: block; width: 100%; }
  .main-nav .btn { width: 100%; padding: 12px 20px; }
}

/* Mobile-Menü: visuelles Feedback beim Öffnen (Glyph rotiert + Akzentfarbe) */
.nav-toggle { transition: transform var(--dur) var(--ease), color var(--dur); }
.nav-toggle[aria-expanded="true"] { color: var(--accent); transform: rotate(90deg); }

/* Mobil: Bild ans Ende – erst Text, dann Bild (Technik-Split & Entwässerung-Card) */
@media (max-width: 860px) {
  .img-last-mobile > .feature-img,
  .core-card.img-last-mobile > .core-img { order: 2; }
  .core-card.img-last-mobile > .core-img { margin-top: 20px; }
}

/* ── Floating WhatsApp-Button (fix unten rechts, jede Seite) ─────────── */
.gb-social { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; flex-direction: column; gap: 12px; }
.gb-social a { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.42); transition: transform .2s var(--ease), box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.gb-social a:hover, .gb-social a:focus-visible { transform: translateY(-4px) scale(1.08); box-shadow: 0 18px 42px rgba(0,0,0,.5); outline: none; }
.gb-social a:focus-visible { box-shadow: 0 0 0 3px rgba(194,203,210,.6), 0 12px 30px rgba(0,0,0,.42); }
.gb-social .wa { background: #25d366; }
.gb-social svg { width: 30px; height: 30px; fill: #fff; }
.gb-social a::after { content: attr(data-label); position: absolute; right: 66px; top: 50%; transform: translateY(-50%) scale(.92); transform-origin: right center; background: rgba(14,18,18,.96); color: #fff; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 10px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; border: 1px solid rgba(255,255,255,.12); }
.gb-social a:hover::after, .gb-social a:focus-visible::after { opacity: 1; transform: translateY(-50%) scale(1); }
@media (max-width: 560px) { .gb-social { right: 14px; bottom: 14px; } .gb-social a { width: 52px; height: 52px; } .gb-social svg { width: 27px; height: 27px; } .gb-social a::after { display: none; } }

/* ── Smartphone: Haupt-Breakpoint ───────────────────────────────────── */
@media (max-width: 640px) {
  .section { padding: 56px var(--pad); }
  .hero { min-height: auto; padding: 104px var(--pad) 56px; }
  .hero.small { min-height: auto; }
  .section-head { margin-bottom: 32px; }
  .hero p { font-size: 1rem; }
  .section-intro { font-size: 1rem; }
  .card { padding: 26px 22px; }
  .card span { font-size: 2rem; }
  .card h3 { font-size: 1.1rem; }
  .split-grid, .contact-grid { gap: 32px; }
  .feature-img { aspect-ratio: 3/2; }
  .project-card .img-wrap { height: 210px; }
  .gallery-grid { gap: 18px; }
  .contact-form input, .contact-form textarea { padding: 13px 14px; font-size: 16px; }
  .site-footer { padding-top: 48px; }
  .footer-grid { padding-bottom: 36px; }
  .section.legal-top { padding-top: 104px; }
}

/* ── Standard-Smartphone (390–430px) ────────────────────────────────── */
@media (max-width: 430px) {
  .section { padding: 48px var(--pad); }
  .hero { padding: 96px var(--pad) 48px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .card { padding: 24px 20px; }
  .project-card .img-wrap { height: 190px; }
  .main-nav { left: var(--pad); right: var(--pad); min-width: 0; }
  .section.legal-top { padding-top: 96px; }
}

/* ── Kleine Geräte (bis 320px) ──────────────────────────────────────── */
@media (max-width: 380px) {
  .section { padding: 40px var(--pad); }
  .hero { padding: 92px var(--pad) 40px; }
  .card span { font-size: 1.8rem; }
  .card { padding: 22px 18px; }
  .footer-bottom p { font-size: .78rem; }
  .section.legal-top { padding-top: 92px; }
}

/* Übergang: aufgelistete Leistungen -> Kernleistungen */
.core-transition { display:flex; flex-direction:column; align-items:center; text-align:center; gap:14px; margin:78px 0 42px; }
.core-transition .conn { width:2px; height:60px; background:linear-gradient(var(--accent), transparent); border-radius:2px; }
.core-transition .eyebrow { margin:0; }
.core-transition h3 {
  margin:0; font-size:clamp(1.5rem,3vw,2.3rem); letter-spacing:-.04em; padding-bottom:.06em;
  background:linear-gradient(90deg,#fff 25%,var(--silver) 90%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* Kernleistungen – NUR das Bild (kein Rahmen, Schatten, Rundung, Hover) */
.core-grid { display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.core-card { display:flex; flex-direction:column; }
.core-img  { display:block; width:100%; height:auto; }
.core-card h3 { font-size:1.5rem; letter-spacing:-.03em; margin:22px 0 12px; }
.core-card p  { color:var(--muted); line-height:1.75; margin:0; }
@media (max-width:860px) { .core-grid { grid-template-columns:1fr; gap:44px; } }


/* ── Page-Loader (Startseite) ─────────────────────────────────────── */
.page-loader{
  position:fixed; inset:0; z-index:9999; display:grid; place-items:center;
  background:
    radial-gradient(circle at 50% 42%, rgba(194,203,210,.12), transparent 58%),
    var(--anthracite);
  transition: opacity .7s var(--ease), transform .8s var(--ease), visibility .8s;
}
.page-loader.is-done{ opacity:0; transform:translateY(-4%); visibility:hidden; pointer-events:none; }
.pl-inner{ display:flex; flex-direction:column; align-items:center; gap:30px; padding:24px; }
.pl-img{
  width:min(220px,56vw); height:auto; display:block;
  animation: plIn .9s var(--ease) both, plFloat 3.6s ease-in-out 1s infinite;
}
@keyframes plIn{ from{opacity:0; transform:translateY(16px) scale(.94); filter:blur(8px);} to{opacity:1; transform:none; filter:none;} }
@keyframes plFloat{ 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
.pl-bar{ position:relative; width:min(200px,52vw); height:2px; border-radius:2px; overflow:hidden; background:rgba(255,255,255,.10); }
.pl-bar span{ position:absolute; top:0; bottom:0; left:-42%; width:42%; border-radius:2px;
  background:linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: plSweep 1.15s var(--ease) infinite; }
@keyframes plSweep{ 0%{left:-45%;} 100%{left:103%;} }
@media (prefers-reduced-motion: reduce){
  .pl-img{ animation:none; } .pl-bar span{ animation:none; left:0; width:100%; opacity:.5; }
  .page-loader{ transition:opacity .3s ease, visibility .3s; }
}


/* ── Feature-Bilder: schräger Scroll-Effekt (Rein- & Rausscrollen) ── */
@keyframes imgScrollReveal {
  0%   { opacity: 0; transform: translate(28px, 64px) rotate(-2.5deg) scale(.94); }
  32%  { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  68%  { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(-28px, -64px) rotate(2.5deg) scale(.94); }
}
/* Fallback (IntersectionObserver): bidirektional per Klassenumschaltung */
@media (prefers-reduced-motion: no-preference) {
  .img-scroll {
    opacity: 0; transform: translate(28px, 60px) rotate(-2.5deg) scale(.95);
    transition: opacity .8s var(--ease), transform .9s var(--ease);
    will-change: opacity, transform;
  }
  .img-scroll.in-view { opacity: 1; transform: none; }
}
/* Bevorzugt: kontinuierlich scroll-gesteuert (view-timeline) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .img-scroll {
      opacity: 1; transform: none; transition: none;
      animation: imgScrollReveal linear both;
      animation-timeline: view();
      animation-range: entry 8% exit 92%;
    }
  }
}


/* ── Leistungsverzeichnis (Karten mit Glanzeffekt) ─────────────────── */
.lv-head { margin: 64px 0 26px; text-align: center; }
.lv-head h3 {
  margin: 8px 0 0; font-size: clamp(1.5rem,3vw,2.3rem); letter-spacing: -.04em; padding-bottom: .06em;
  background: linear-gradient(90deg,#fff 25%,var(--silver) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .lv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lv-grid { grid-template-columns: 1fr; } }
.lv-card {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    linear-gradient(150deg, rgba(255,255,255,.055), transparent 44%),
    linear-gradient(145deg, var(--anthracite-2), #0c1010);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.lv-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .55; transition: opacity var(--dur) var(--ease);
}
.lv-card::before {
  content: ""; position: absolute; top: 0; left: -125%; width: 70%; height: 100%; z-index: -1;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.16) 50%, transparent 60%);
  transform: skewX(-16deg); pointer-events: none;
}
.lv-card:hover { transform: translateY(-6px); border-color: rgba(194,203,210,.32); box-shadow: 0 34px 84px rgba(0,0,0,.52); }
.lv-card:hover::after { opacity: 1; }
.lv-top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.lv-num { font-size: 1.6rem; font-weight: 900; letter-spacing: -.04em; color: rgba(255,255,255,.16); }
.lv-card h4 { margin: 0; font-size: 1.18rem; letter-spacing: -.02em; color: #fff; }
.lv-card ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.lv-card li { position: relative; padding-left: 26px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.lv-card li::before {
  content: ""; position: absolute; left: 3px; top: .3em; width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg); border-radius: 1px;
}


/* Leistungsverzeichnis: automatischer, versetzter Schein-Effekt (nicht synchron) */
.lv-card:not(.lv-cta)::before { animation: lvShine var(--sd, 10s) var(--ease) var(--sdelay, 0s) infinite; }
.lv-card:nth-child(1) { --sd: 8s;    --sdelay: .4s; }
.lv-card:nth-child(2) { --sd: 11s;   --sdelay: 2.6s; }
.lv-card:nth-child(3) { --sd: 9.5s;  --sdelay: 5.1s; }
.lv-card:nth-child(4) { --sd: 12s;   --sdelay: 1.5s; }
.lv-card:nth-child(5) { --sd: 10.5s; --sdelay: 3.8s; }
@keyframes lvShine { 0% { left: -125%; } 10% { left: 135%; } 100% { left: 135%; } }
@media (prefers-reduced-motion: reduce) { .lv-card:not(.lv-cta)::before { animation: none; } }

/* Leistungsverzeichnis: CTA-Kachel (andere Farbe – Silber) */
.lv-cta { background: linear-gradient(150deg, var(--silver), var(--silver-2)); border-color: rgba(255,255,255,.16); display: grid; place-items: center; text-align: center; }
.lv-cta::after { display: none; }
.lv-cta-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 18px 6px; }
.lv-cta h4 { margin: 0; color: var(--darkText); font-size: 1.3rem; letter-spacing: -.02em; }
.lv-cta .btn { background: var(--anthracite); color: var(--accent); border: none; }


/* Leistungsverzeichnis: radial auslaufender, mittig hellerer Hintergrund */
.lv-band {
  padding: 6px 0 10px;
}


/* Leistungsverzeichnis: radialer Verlauf – voll breit (kein Abschneiden), untere Section-Hälfte */
.section.leistungen { position: relative; z-index: 0; }
.section.leistungen::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 66%;
  z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 62% 82% at 50% 74%,
              rgba(194,203,210,.12) 0%, rgba(194,203,210,.05) 42%, transparent 72%);
}


/* ── Navigation: moderner animierter Unterstrich (Hover + aktive Seite) ── */
.main-nav a:not(.btn) { position: relative; }
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  border-radius: 2px; background: var(--accent);
  box-shadow: 0 0 10px rgba(194,203,210,.45);
  transform: scaleX(0); transform-origin: right;
  transition: transform .34s var(--ease);
}
.main-nav a:not(.btn):hover::after,
.main-nav a:not(.btn).active::after { transform: scaleX(1); transform-origin: left; }
