/* ═══════════════════════════════════════════════
   Bütler Elektro AG — High-End Website (Light / Grün)
   ═══════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f5;
  --bg-card: #ffffff;
  --line: rgba(0, 0, 0, 0.10);
  --text: #0a0a0a;
  --text-dim: #6b6b6b;
  --accent: #111111;
  --accent-deep: #000000;
  --accent-lime: #555555;
  --accent-soft: rgba(0, 0, 0, 0.06);
  --accent-glow: rgba(0, 0, 0, 0.18);
  --grad: linear-gradient(120deg, #111111 0%, #333333 55%, #555555 100%);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.10);
  --radius: 20px;
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }

/* ════════ PRELOADER ════════ */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-bolt {
  width: 56px; height: 56px; color: var(--accent);
  animation: boltPulse 1s ease-in-out infinite;
  filter: drop-shadow(0 0 18px var(--accent-glow));
}
.preloader-bolt svg { width: 100%; height: 100%; }
@keyframes boltPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}
.preloader-bar {
  width: 160px; height: 2px; background: var(--line);
  border-radius: 2px; overflow: hidden;
}
.preloader-bar span {
  display: block; height: 100%; width: 40%;
  background: var(--accent);
  animation: loadBar 1.1s var(--ease) infinite;
}
@keyframes loadBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* ════════ CURSOR GLOW ════════ */
.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 600px; height: 600px;
  margin: -300px 0 0 -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.18s ease-out;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ════════ NAVIGATION ════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transition: padding 0.4s var(--ease), background 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(0, 0, 0, 0.05);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text);
  font-family: var(--font-head);
}
.nav-logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px var(--accent-glow);
  transition: transform 0.35s var(--ease);
}
.nav-logo:hover .nav-logo-mark { transform: rotate(-12deg) scale(1.08); }
.nav-logo-mark svg { width: 22px; height: 22px; }
.nav-logo-text { font-size: 17px; font-weight: 400; letter-spacing: 0.2px; }
.nav-logo-text strong { font-weight: 700; }
.nav-logo-img {
  height: 30px; width: auto; display: block;
  transition: height 0.4s var(--ease);
}
.nav.scrolled .nav-logo-img { height: 26px; }
.footer-logo .nav-logo-img { height: 36px; }
@media (max-width: 520px) { .nav-logo-img, .nav.scrolled .nav-logo-img { height: 22px; } }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  color: var(--text-dim); text-decoration: none;
  font-size: 15px; font-weight: 400;
  padding: 8px 14px; border-radius: 10px;
  transition: color 0.3s;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--text); }

.nav-cta {
  margin-left: 10px;
  background: var(--accent); color: #fff !important;
  font-weight: 600; padding: 10px 20px; border-radius: 12px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--accent-glow); }
.nav-cta-arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.nav-cta:hover .nav-cta-arrow { transform: translateX(4px); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-burger span {
  width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: 0.35s var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════ HERO ════════ */
.hero {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 140px 24px 100px;
  background: #0a0e14;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }

/* ── Hero-Diashow: Industriegebäude ↔ Haus (Crossfade) ── */
.hero-slide {
  position: absolute; inset: 0;
  background-position: center 44%;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-slide-industrie { background-image: url("../assets/hero-industrie.jpg?v=2"); }
.hero-slide-haus {
  background-image: url("../assets/hero.jpg");
  opacity: 0;
  animation: heroXfade 16s ease-in-out infinite;
}
@keyframes heroXfade {
  0%, 42%  { opacity: 0; }
  50%, 92% { opacity: 1; }
  100%     { opacity: 0; }
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.60) 0%, rgba(8, 10, 14, 0.26) 40%, rgba(8, 10, 14, 0.76) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide-haus { animation: none; }
}

/* ── Hero über Foto: dekorative Layer aus, heller Text ── */
.hero-grid, .hero-orb, .hero-circuit { display: none; }
.hero .hero-title { color: #fff; text-shadow: 0 2px 34px rgba(0, 0, 0, 0.45); }
.hero .hero-sub { color: rgba(255, 255, 255, 0.86); text-shadow: 0 1px 18px rgba(0, 0, 0, 0.4); }
.hero .hero-em {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}
.hero .hero-badge {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.92);
}
.hero .hero-badge-dot { background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, 0.9); }
.hero .hero-meta, .hero .hero-meta-item { color: rgba(255, 255, 255, 0.82); }
.hero .hero-meta-item svg { color: #fff; }
.hero .hero-meta-sep { background: rgba(255, 255, 255, 0.35); }
.hero a.hero-meta-item:hover { color: #fff; }
.hero .btn-primary { background: #fff; color: #0a0a0a; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45); }
.hero .btn-primary:hover { background: #ececec; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55); }
.hero .btn-ghost { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.18); color: #fff; }

/* ── Navigation transparent über dem Hero (oben) ── */
.nav:not(.scrolled) .nav-logo-img { filter: invert(1) brightness(2.2); }
.nav:not(.scrolled) .nav-link { color: rgba(255, 255, 255, 0.82); }
.nav:not(.scrolled) .nav-link:hover, .nav:not(.scrolled) .nav-link.active { color: #fff; }
.nav:not(.scrolled) .nav-link::after { background: #fff; }
.nav:not(.scrolled) .nav-cta { background: #fff; color: #0a0a0a !important; }
.nav:not(.scrolled) .nav-cta:hover { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4); }
.nav:not(.scrolled) .nav-burger span { background: #fff; }

/* ── Mobiles Menü offen: dunkle Elemente auf hellem Overlay ── */
.nav-links.open .nav-link { color: var(--text-dim); }
.nav-links.open .nav-link:hover, .nav-links.open .nav-link.active { color: var(--text); }
.nav-links.open .nav-cta { background: var(--accent); color: #fff !important; }
.nav-burger.open span { background: var(--text) !important; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(90px);
  animation: orbFloat 14s ease-in-out infinite alternate;
}
.hero-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.10), transparent 70%);
  top: -140px; right: -80px;
}
.hero-orb-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.14), transparent 70%);
  bottom: -160px; left: -120px;
  animation-delay: -7s;
}
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-60px, 50px) scale(1.15); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
  opacity: 0.7;
}
.hero-circuit { position: absolute; inset: 0; width: 100%; height: 100%; }
.circuit-line {
  fill: none; stroke: rgba(0, 0, 0, 0.22); stroke-width: 1.5;
  stroke-dasharray: 8 14;
  animation: circuitFlow 2.6s linear infinite;
}
.circuit-line-2 { animation-duration: 3.4s; stroke: rgba(0, 0, 0, 0.10); }
.circuit-line-3 { animation-duration: 4.2s; stroke: rgba(0, 0, 0, 0.14); animation-direction: reverse; }
@keyframes circuitFlow { to { stroke-dashoffset: -88; } }
.circuit-node {
  fill: var(--accent); opacity: 0.55;
  animation: nodeBlink 2.2s ease-in-out infinite;
}
.circuit-node:nth-of-type(2) { animation-delay: 0.5s; }
.circuit-node:nth-of-type(3) { animation-delay: 1s; }
.circuit-node:nth-of-type(4) { animation-delay: 1.4s; }
.circuit-node:nth-of-type(5) { animation-delay: 1.8s; }
@keyframes nodeBlink { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 880px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  font-size: 14px; color: var(--text-dim);
  margin-bottom: 34px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: nodeBlink 1.8s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(46px, 9vw, 104px);
  font-weight: 700; line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 30px;
}
.hero-line { display: block; }
.hero-em {
  font-style: normal; position: relative; white-space: nowrap;
  background: linear-gradient(100deg, var(--accent-deep) 15%, var(--accent) 45%, var(--accent-lime) 85%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-em-spark {
  -webkit-text-fill-color: initial;
  font-size: 0.5em; vertical-align: super;
  display: inline-block;
  animation: sparkWiggle 2.4s ease-in-out infinite;
}
@keyframes sparkWiggle {
  0%, 100% { transform: rotate(0) scale(1); }
  25% { transform: rotate(-12deg) scale(1.15); }
  60% { transform: rotate(8deg) scale(0.95); }
}

.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-dim);
  max-width: 620px; margin: 0 auto 44px;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 54px; }

.hero-meta {
  display: flex; align-items: center; justify-content: center;
  gap: 22px; flex-wrap: wrap;
  color: var(--text-dim); font-size: 15px;
}
.hero-meta-item {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--text-dim); text-decoration: none;
  transition: color 0.3s;
}
a.hero-meta-item:hover { color: var(--accent); }
.hero-meta-item svg { width: 17px; height: 17px; color: var(--accent); }
.hero-meta-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* ════════ BUTTONS ════════ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 14px;
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
  will-change: transform;
}
.btn span { transition: transform 0.3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 6px 22px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 12px 40px var(--accent-glow); }
.btn-ghost {
  background: #fff; color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: #fff; color: #0a0a0a; }
.btn-dark:hover { box-shadow: 0 12px 36px rgba(0, 0, 0, 0.30); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ════════ MARQUEE ════════ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0; overflow: hidden;
  background: var(--bg-soft);
  position: relative; z-index: 2;
}
.marquee-track {
  display: flex; align-items: center; gap: 38px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-head);
  font-size: 19px; font-weight: 500; white-space: nowrap;
  color: var(--text-dim);
  transition: color 0.3s;
}
.marquee-track span:hover { color: var(--accent); }
.marquee-track i { font-style: normal; font-size: 14px; color: var(--accent); opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ════════ STATS ════════ */
.stats { padding: 90px 0 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat {
  text-align: center; padding: 36px 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #fafafa, #ffffff);
  transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.stat:hover { border-color: rgba(0, 0, 0, 0.30); transform: translateY(-6px); box-shadow: var(--shadow); }
.stat-value {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 58px); font-weight: 700;
  color: var(--accent); line-height: 1;
}
.stat-value sup { font-size: 0.5em; }
.stat-label { margin-top: 10px; color: var(--text-dim); font-size: 15px; }

/* ════════ SECTION HEADS ════════ */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 70px; }
.section-tag {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(34px, 5.4vw, 56px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.08;
  margin-bottom: 18px;
}
.section-title em {
  font-style: normal; color: var(--accent);
}
.section-sub { color: var(--text-dim); font-size: 18px; }

/* ════════ SERVICES ════════ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.service-card {
  position: relative;
  padding: 38px 30px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
  transform-style: preserve-3d;
}
.service-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 0, 0, 0.05), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  border-color: rgba(0, 0, 0, 0.30);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 24px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, background 0.4s, color 0.4s;
}
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-6deg);
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 26px var(--accent-glow);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 {
  font-family: var(--font-head);
  font-size: 21px; font-weight: 600; line-height: 1.25;
  margin-bottom: 12px;
}
.service-card p { color: var(--text-dim); font-size: 15.5px; }
.service-num {
  position: absolute; top: 26px; right: 28px;
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  color: var(--accent); opacity: 0.4;
}

/* ════════ ABOUT ════════ */
.about { background: var(--bg-soft); }
.about::before, .about::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--line);
}
.about::before { top: 0; }
.about::after { bottom: 0; }
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 80px;
  align-items: center;
}
.about-text { max-width: 860px; margin: 0 auto; }
.about-text .section-tag { margin-bottom: 14px; }
.about-text .section-title { margin-bottom: 26px; }
.about-text p { color: var(--text-dim); font-size: 17px; margin-bottom: 18px; }
.about-values { list-style: none; margin-top: 34px; display: grid; gap: 18px; }
.about-values li { display: flex; gap: 16px; align-items: flex-start; }
.about-value-icon {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
}
.about-values strong { display: block; font-weight: 600; font-size: 16.5px; }
.about-values span:not(.about-value-icon) { color: var(--text-dim); font-size: 15px; }

.about-card {
  border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(160deg, #ffffff, #f4f4f5);
  padding: 44px 40px;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.about-card::before {
  content: ""; position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
}
.about-card-year {
  font-family: var(--font-head);
  font-size: 72px; font-weight: 700; line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-card-label { color: var(--text-dim); margin-top: 8px; font-size: 16px; }
.about-card-divider { height: 1px; background: var(--line); margin: 30px 0; }

.timeline { display: grid; gap: 24px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px;
  width: 1px; background: var(--line);
}
.timeline-item { display: flex; gap: 18px; position: relative; }
.timeline-dot {
  flex-shrink: 0; margin-top: 5px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  z-index: 1;
}
.timeline-dot-pulse { animation: dotPulse 1.8s ease-out infinite; }
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  100% { box-shadow: 0 0 0 14px transparent; }
}
.timeline-item strong { font-family: var(--font-head); font-size: 15px; color: var(--accent); }
.timeline-item p { color: var(--text-dim); font-size: 15px; margin: 2px 0 0 !important; }

/* ════════ TEAM ════════ */
.team-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.team-card {
  text-align: center; padding: 30px 14px 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 19px;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 6px 22px var(--accent-glow);
  transition: transform 0.4s var(--ease);
}
.team-card:hover .team-avatar { transform: scale(1.12) rotate(6deg); }
.team-card strong { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.team-card span { font-size: 13px; color: var(--text-dim); }

/* ════════ JOBS ════════ */
.jobs { padding-bottom: 0; }
.jobs-card {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 90px 40px;
  border-radius: 32px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 30px 70px var(--accent-glow);
}
.jobs-card::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at center, transparent 35%, black 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 35%, black 90%);
}
.jobs-bolt {
  width: 64px; height: 64px; margin: 0 auto 22px;
  color: #fff; opacity: 0.95;
  animation: boltPulse 2.2s ease-in-out infinite;
  position: relative;
}
.jobs-bolt svg { width: 100%; height: 100%; }
.jobs-card h2 {
  font-family: var(--font-head);
  font-size: clamp(36px, 5.6vw, 60px); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 18px;
  position: relative;
}
.jobs-card h2 em { font-style: normal; text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.jobs-card p {
  max-width: 560px; margin: 0 auto 36px;
  font-size: 18px; font-weight: 400; opacity: 0.92;
  position: relative;
}
.jobs-card .btn { position: relative; }

/* ════════ CONTACT ════════ */
.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px;
  align-items: start;
}
.contact-info { display: grid; gap: 14px; }
.contact-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card);
  text-decoration: none; color: var(--text);
  transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}
a.contact-item:hover { border-color: rgba(0, 0, 0, 0.30); transform: translateX(6px); box-shadow: var(--shadow); }
.contact-item-icon {
  flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.contact-item-icon svg { width: 22px; height: 22px; }
.contact-item strong { display: block; font-weight: 600; margin-bottom: 3px; }
.contact-item div span { color: var(--text-dim); font-size: 15px; line-height: 1.55; }

.contact-form {
  padding: 38px 34px;
  border: 1px solid var(--line); border-radius: 24px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  display: grid; gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { position: relative; }
.form-field input, .form-field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 13px;
  padding: 22px 18px 10px;
  color: var(--text);
  font-family: var(--font-body); font-size: 16px;
  outline: none; resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}
.form-field label {
  position: absolute; left: 18px; top: 16px;
  color: var(--text-dim); font-size: 16px;
  pointer-events: none;
  transition: all 0.25s var(--ease);
}
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
  top: 7px; font-size: 11.5px; letter-spacing: 0.6px;
  color: var(--accent); text-transform: uppercase;
}
.form-note { text-align: center; font-size: 13px; color: var(--text-dim); }

/* ════════ FOOTER ════════ */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 110px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px; padding: 70px 24px 50px;
}
.footer-brand p { color: var(--text-dim); font-size: 15px; margin-top: 18px; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-head); font-size: 15px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text); margin-bottom: 18px;
}
.footer-col a, .footer-col span {
  display: block;
  color: var(--text-dim); text-decoration: none;
  font-size: 15px; margin-bottom: 11px;
  transition: color 0.3s, transform 0.3s var(--ease);
}
.footer-col a:hover { color: var(--accent); transform: translateX(4px); }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-dim); font-size: 14px;
}
.footer-top { color: var(--text-dim); text-decoration: none; transition: color 0.3s; }
.footer-top:hover { color: var(--accent); }

/* ════════ REVEAL ANIMATIONS ════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-hero {
  opacity: 0;
  transform: translateY(34px);
  animation: heroIn 1s var(--ease) forwards;
  animation-delay: calc(var(--d, 0s) + 0.5s);
}
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

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

/* ════════ RESPONSIVE ════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .nav-burger { display: flex; z-index: 102; }
  .nav-links {
    position: fixed; inset: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center;
    gap: 22px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
    z-index: 101;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-link { font-size: 24px; font-family: var(--font-head); }
  .nav-cta { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom-inner { flex-direction: column; gap: 10px; }
  .hero-meta-sep { display: none; }
  .hero-meta { flex-direction: column; gap: 12px; }
  .jobs-card { padding: 64px 26px; }
}

/* ════════ WHATSAPP CHAT WIDGET ════════ */
.wa-widget {
  position: fixed; right: 24px; bottom: 24px;
  z-index: 200;
  display: flex; flex-direction: column; align-items: flex-end; gap: 16px;
  pointer-events: none; /* Container klick-durchlässig — nur Fab/Panel fangen Klicks */
}
.wa-fab, .wa-panel { pointer-events: auto; }

/* Schwebender Button */
.wa-fab {
  position: relative;
  width: 62px; height: 62px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 14px 42px rgba(37, 211, 102, 0.5); }
.wa-fab svg { width: 32px; height: 32px; position: absolute; transition: opacity 0.25s, transform 0.35s var(--ease); }
.wa-fab-close { opacity: 0; transform: rotate(-90deg) scale(0.6); width: 26px !important; height: 26px !important; }
.wa-widget.open .wa-fab-icon { opacity: 0; transform: rotate(90deg) scale(0.6); }
.wa-widget.open .wa-fab-close { opacity: 1; transform: rotate(0) scale(1); }
/* dezenter Puls-Ring zur Aufmerksamkeit */
.wa-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: waPulse 2.4s ease-out infinite;
}
.wa-widget.open .wa-fab::before { display: none; }
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Chat-Panel */
.wa-panel {
  width: min(340px, calc(100vw - 40px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  transform-origin: bottom right;
  opacity: 0; visibility: hidden;
  transform: translateY(16px) scale(0.92);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s;
}
.wa-widget.open .wa-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.wa-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 16px;
  background: #111111; color: #fff;
}
.wa-avatar {
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  display: grid; place-items: center;
}
.wa-avatar svg { width: 26px; height: 26px; }
.wa-head-txt { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.wa-head-txt strong { font-family: var(--font-head); font-size: 15.5px; font-weight: 600; }
.wa-status { font-size: 11.5px; color: rgba(255, 255, 255, 0.7); display: flex; align-items: center; gap: 6px; }
.wa-status i { width: 7px; height: 7px; border-radius: 50%; background: #4ad06b; box-shadow: 0 0 8px #4ad06b; }
.wa-close {
  background: none; border: 0; cursor: pointer;
  color: rgba(255, 255, 255, 0.75); font-size: 26px; line-height: 1;
  padding: 0 2px; transition: color 0.25s;
}
.wa-close:hover { color: #fff; }

.wa-body {
  padding: 22px 18px;
  background: #f4f4f5;
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
}
.wa-bubble {
  background: #fff;
  border-radius: 4px 16px 16px 16px;
  padding: 13px 15px;
  font-size: 14.5px; color: var(--text); line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  max-width: 90%;
  animation: waBubbleIn 0.5s var(--ease) both;
}
@keyframes waBubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wa-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px;
  background: #fff; border-top: 1px solid var(--line);
}
.wa-foot input {
  flex: 1; min-width: 0;
  border: 1px solid var(--line); border-radius: 100px;
  padding: 11px 16px;
  font-family: var(--font-body); font-size: 14.5px; color: var(--text);
  outline: none; background: #f4f4f5;
  transition: border-color 0.25s, background 0.25s;
}
.wa-foot input:focus { border-color: var(--accent); background: #fff; }
.wa-send {
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: #111111; color: #fff;
  display: grid; place-items: center;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.wa-send:hover { transform: scale(1.08); background: #000; }
.wa-send svg { width: 20px; height: 20px; }

@media (max-width: 520px) {
  .wa-widget { right: 16px; bottom: 16px; }
  .wa-fab { width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab::before { display: none; }
}

/* ════════ OFFERTE-POPUP ════════ */
.anchor-offset { position: absolute; top: -90px; }
.contact.section { position: relative; }

.offer-modal {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.offer-modal.open { opacity: 1; visibility: visible; }
.offer-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 10, 14, 0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}
.offer-dialog {
  position: relative; z-index: 1;
  width: min(460px, 100%);
  max-height: calc(100vh - 48px); overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  padding: 34px 30px 28px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
  transform: translateY(18px) scale(0.96);
  transition: transform 0.35s var(--ease);
}
.offer-modal.open .offer-dialog { transform: translateY(0) scale(1); }
.offer-x {
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--bg-soft); color: var(--text-dim);
  font-size: 24px; line-height: 1;
  display: grid; place-items: center;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.offer-x:hover { background: #111; color: #fff; transform: rotate(90deg); }

.offer-head { margin-bottom: 22px; }
.offer-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.4px;
  color: var(--text); background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 100px; margin-bottom: 14px;
}
.offer-badge i { width: 7px; height: 7px; border-radius: 50%; background: #25d366; box-shadow: 0 0 8px #25d366; }
.offer-head h3 {
  font-family: var(--font-head); font-size: 27px; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 8px;
}
.offer-head p { color: var(--text-dim); font-size: 15px; }

/* Formular-Feinschliff im Popup (nutzt bestehende .form-field-Styles) */
.offer-dialog .offerte-form,
.offer-dialog .apply-form { display: grid; gap: 16px; }
.offer-dialog .btn-block { margin-top: 4px; }

/* ════════ BILDER: SERVICE-KARTEN, ÜBER UNS, JOBS ════════ */

/* Service-Karten mit Bild-Header */
.service-card { padding: 0; overflow: hidden; }
.service-media {
  position: relative;
  aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--bg-soft);
}
.service-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .service-media img { transform: scale(1.06); }
.service-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.28));
}
.service-card .service-icon {
  position: relative; z-index: 2;
  margin: -42px 0 16px 30px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}
.service-card h3 { padding: 0 30px; }
.service-card p { padding: 0 30px 34px; }
.service-card .service-num {
  top: 16px; right: 20px; z-index: 3;
  color: #fff; opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

/* Über uns: Foto-Hintergrund + heller Text */
.about {
  background:
    linear-gradient(rgba(8, 10, 14, 0.52), rgba(8, 10, 14, 0.60)),
    url("../assets/about.jpg") center / cover no-repeat;
}
.about::before, .about::after { background: rgba(255, 255, 255, 0.12); }
.about .section-tag { color: rgba(255, 255, 255, 0.72); }
.about .section-title, .about .section-title em { color: #fff; }
.about-text p { color: rgba(255, 255, 255, 0.82); }
.about-values strong { color: #fff; }
.about-values li span:not(.about-value-icon) { color: rgba(255, 255, 255, 0.7); }
.about-value-icon { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* Jobs: Foto-Hintergrund statt schwarzer Fläche */
.jobs-card {
  background:
    linear-gradient(rgba(8, 10, 14, 0.60), rgba(8, 10, 14, 0.72)),
    url("../assets/jobs.jpg") center / cover no-repeat;
}

/* ════════ MOBILE-FIXES ════════ */
@media (max-width: 520px) {
  /* Footer-Logo nicht bis an den Rand */
  .footer-logo .nav-logo-img { height: 28px; }
  /* Platz unten, damit der WhatsApp-Button Inhalte nicht verdeckt */
  .footer-bottom { padding-bottom: 84px; }
}

/* Anker-Ziele nicht unter der fixen Navigation verstecken (Menü-Sprünge) */
section[id], main[id] { scroll-margin-top: 84px; }

/* FIX: backdrop-filter auf der Nav macht sie zum Bezugsrahmen für das
   position:fixed Menü-Overlay → Menü würde nur die Nav-Leiste füllen.
   Auf Mobile daher soliden Hintergrund statt Blur verwenden. */
@media (max-width: 768px) {
  .nav.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.96);
  }
}

/* ════════ OFFERTE: ERFOLGS-ZUSTAND ════════ */
.offerte-success {
  text-align: center;
  padding: 26px 8px;
  animation: waBubbleIn 0.5s var(--ease) both;
}
.offerte-success-icon {
  width: 58px; height: 58px; margin: 0 auto 16px;
  border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  font-size: 30px; line-height: 1;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}
.offerte-success h4 {
  font-family: var(--font-head); font-size: 22px; font-weight: 700;
  margin-bottom: 8px; color: var(--text);
}
.offerte-success p { color: var(--text-dim); font-size: 15px; max-width: 320px; margin: 0 auto; }

/* ════════ TEAM: ANSPRECHPARTNER + NAMENSLISTE ════════ */
.team-lead {
  display: grid; grid-template-columns: 380px 1fr;
  align-items: stretch;
  max-width: 900px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 24px;
  background: var(--bg-card); overflow: hidden;
  box-shadow: var(--shadow);
}
.team-lead-photo { position: relative; min-height: 320px; }
.team-lead-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 62% calc(18% - 65px);
  display: block;
}
.team-lead-info { padding: 40px 42px; display: flex; flex-direction: column; justify-content: center; }
.team-lead-tag {
  font-size: 12.5px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 10px;
}
.team-lead-info h3 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.6vw, 34px); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.team-lead-info p { color: var(--text-dim); font-size: 16px; margin-bottom: 26px; max-width: 400px; }
.team-lead-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.team-lead-actions .btn { padding: 13px 24px; font-size: 15px; }

.team-list-title {
  text-align: center;
  font-size: 13px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-dim);
  margin: 54px 0 22px;
}
.team-list {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.team-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-card);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.team-chip:hover { border-color: rgba(0, 0, 0, 0.28); transform: translateY(-2px); }
.team-chip-avatar {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-soft); color: var(--text-dim);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
}
.team-chip-name { font-size: 15px; font-weight: 500; line-height: 1.25; }
.team-chip-name small { display: block; font-size: 12.5px; font-weight: 400; color: var(--text-dim); }

@media (max-width: 820px) {
  .team-lead { grid-template-columns: 1fr; }
  .team-lead-photo { min-height: 300px; }
  .team-lead-photo img { object-position: 62% calc(12% - 65px); }
  .team-lead-info { padding: 28px 24px 32px; }
  .team-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .team-list { grid-template-columns: 1fr; }
}

/* ════════ CHAT-BOT IM WHATSAPP-WIDGET ════════ */
.wa-body {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 340px; min-height: 220px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.wa-bubble { max-width: 88%; align-self: flex-start; animation: waBubbleIn 0.4s var(--ease) both; }
.wa-bubble-user {
  align-self: flex-end;
  background: #111; color: #fff;
  border-radius: 16px 4px 16px 16px;
}
.wa-bubble-action { background: transparent; box-shadow: none; padding: 2px 0; }
.wa-call {
  display: inline-block;
  background: #25d366; color: #fff; text-decoration: none;
  font-weight: 600; font-size: 14.5px;
  padding: 11px 18px; border-radius: 100px;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s var(--ease);
}
.wa-call:hover { transform: translateY(-2px); }
.wa-quick { display: flex; flex-wrap: wrap; gap: 8px; animation: waBubbleIn 0.4s var(--ease) both; }
.wa-quick button {
  border: 1.5px solid rgba(0, 0, 0, 0.16); border-radius: 100px;
  background: #fff; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text);
  padding: 9px 15px;
  transition: border-color 0.25s, background 0.25s, transform 0.2s var(--ease);
}
.wa-quick button:hover { border-color: #111; transform: translateY(-1px); }
.wa-typing { display: flex; gap: 5px; align-items: center; padding: 15px 16px; }
.wa-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  animation: waDot 1s ease-in-out infinite;
}
.wa-typing span:nth-child(2) { animation-delay: 0.15s; }
.wa-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes waDot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-4px); opacity: 1; } }
.wa-foot input:disabled { opacity: 0.55; cursor: not-allowed; }
.wa-send:disabled { opacity: 0.45; cursor: not-allowed; }

/* ════════ IMPRESSUM & DATENSCHUTZ POPUPS ════════ */
.legal-dialog { width: min(640px, 100%); padding: 40px 38px 34px; }
.legal-body h3 {
  font-family: var(--font-head); font-size: 27px; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 6px;
}
.legal-body .legal-stand { color: var(--text-dim); font-size: 14px; margin-bottom: 22px; }
.legal-body h4 {
  font-family: var(--font-head); font-size: 17px; font-weight: 600;
  margin: 22px 0 8px;
}
.legal-body p { color: #333; font-size: 15px; line-height: 1.6; margin-bottom: 10px; }
.legal-body a { color: var(--accent); }

/* Footer-Legal-Links */
.footer-legal { display: inline-flex; align-items: center; gap: 18px; }
.footer-link {
  background: none; border: 0; cursor: pointer; padding: 0;
  font-family: var(--font-body); font-size: inherit; color: inherit;
  opacity: 0.75; transition: opacity 0.25s;
}
.footer-link:hover { opacity: 1; }
@media (max-width: 520px) { .footer-legal { gap: 14px; flex-wrap: wrap; } }
