/* ============================================================
   Kirner & Lilla Elektrofachbetrieb GmbH – Stylesheet
   Farbwelt nach Firmenlogo: Blau #335da8 · Grün #1b924b · Eisblau #bbe1e4
   ============================================================ */

:root {
  --navy-900: #14264d;          /* dunkles CI-Blau (Hero, Kontakt, Footer) */
  --navy-800: #1c3467;
  --navy-700: #264584;
  --navy-600: #335da8;          /* Logo-Blau */
  --accent: #1b924b;            /* Logo-Grün: Buttons, Badges, Icons */
  --accent-dark: #14713a;
  --accent-bright: #4ecb81;     /* helleres Grün für Text auf dunklem Blau */
  --ice: #bbe1e4;               /* Eisblau aus dem Logo */
  --text: #1c2333;
  --text-muted: #5a6478;
  --text-inverse: #f4f6fb;
  --text-inverse-muted: #aebbd6;
  --surface: #ffffff;
  --surface-alt: #f2f6fb;
  --border: #e0e7f2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 38, 77, 0.08);
  --shadow-lift: 0 18px 40px rgba(20, 38, 77, 0.14);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 0.5em; }
h3 { font-size: 1.15rem; }

a { color: inherit; }

.accent { color: var(--ice); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-accent {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(27, 146, 75, 0.35);
}
.btn-accent:hover { background: #22a95a; }

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: var(--text-inverse);
}
.btn-ghost:hover { border-color: var(--ice); color: var(--ice); }

.btn-dark {
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-dark:hover { background: var(--navy-700); }

.btn-small { padding: 0.5rem 1.15rem; font-size: 0.92rem; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(20, 38, 77, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 10px 0;
}
.brand-logo { height: 52px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}
.nav-links a:not(.btn) {
  color: var(--navy-700);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: color 0.15s ease;
}
.nav-links a:not(.btn):hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--navy-600);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--text-inverse);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg svg { width: 100%; height: 100%; }

/* Stromimpulse, die durch die Leiterbahnen wandern */
.hero-bg .current path {
  stroke-dasharray: 45 1400;
  stroke-dashoffset: 1445;
  animation: current-flow 7s linear infinite;
  filter: drop-shadow(0 0 5px rgba(78, 203, 129, 0.9));
}
.hero-bg .current path:nth-child(2) { animation-delay: 1.7s; animation-duration: 5.5s; }
.hero-bg .current path:nth-child(3) { animation-delay: 3.1s; animation-duration: 6.2s; }
.hero-bg .current path:nth-child(4) { animation-delay: 4.5s; animation-duration: 5.8s; }
@keyframes current-flow {
  to { stroke-dashoffset: 0; }
}

/* pulsierende Knotenpunkte */
.hero-bg .nodes circle {
  animation: node-pulse 2.6s ease-in-out infinite;
}
.hero-bg .nodes circle:nth-child(2) { animation-delay: 0.6s; }
.hero-bg .nodes circle:nth-child(3) { animation-delay: 1.2s; }
.hero-bg .nodes circle:nth-child(4) { animation-delay: 1.8s; }
@keyframes node-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg .current path, .hero-bg .nodes circle { animation: none; }
  .hero-bg .current path { stroke-dasharray: none; opacity: 0.3; }
}

.hero-inner {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
  max-width: 780px;
}

.hero-kicker {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(187, 225, 228, 0.45);
  color: var(--ice);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 1.4rem;
}

.hero-sub {
  margin-top: 1.3rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-inverse-muted);
  max-width: 620px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  list-style: none;
  margin-top: 2.6rem;
  color: var(--text-inverse-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Umfirmierung / Ankündigung ---------- */
.notice-band {
  background: var(--surface-alt);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}

.notice-badge {
  flex-shrink: 0;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-top: 0.2rem;
}

.notice p { color: var(--text-muted); font-size: 0.98rem; }
.notice p strong { color: var(--text); display: block; margin-bottom: 0.25rem; font-size: 1.05rem; }

@media (max-width: 600px) {
  .notice { flex-direction: column; gap: 0.8rem; }
}

/* ---------- Zeitstrahl (Über uns) ---------- */
.timeline-title { margin-top: 2.4rem; margin-bottom: 1rem; }

.timeline {
  list-style: none;
  position: relative;
  padding-left: 1.9rem;
  display: grid;
  gap: 1.15rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(var(--accent), var(--navy-600));
  border-radius: 2px;
}
.timeline li { position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -1.9rem;
  top: 0.32em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 3px solid var(--accent);
  box-sizing: border-box;
}
.timeline strong {
  display: block;
  color: var(--navy-700);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.timeline span { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--surface-alt); }

.section-kicker {
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2.8rem;
  font-size: 1.08rem;
}

.section-dark {
  background: var(--navy-900);
  color: var(--text-inverse);
}
.section-dark .section-kicker { color: var(--accent-bright); }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.4rem;
}
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(27, 146, 75, 0.5);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--navy-600);
  color: #ffffff;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 28px; height: 28px; }

.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--text-muted); font-size: 0.96rem; }

.card-tags {
  margin-top: 0.8rem;
  font-size: 0.8rem !important;
  font-weight: 600;
  color: var(--navy-600) !important;
  letter-spacing: 0.02em;
}

.card.job ul {
  margin-top: 0.8rem;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: grid;
  gap: 0.35rem;
}
.job-sub {
  color: var(--accent-dark) !important;
  font-weight: 700;
  font-size: 0.88rem !important;
}

#karriere .center { margin-top: 2.6rem; }

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--navy-800);
  color: var(--text-inverse);
  padding: 3rem 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 800;
  color: var(--accent-bright);
  line-height: 1.1;
}
.stat strong em { font-style: normal; font-size: 0.55em; }
.stat span {
  color: var(--text-inverse-muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Split (Über uns) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split-text p { margin-bottom: 1.1rem; color: var(--text-muted); }
.split-text p strong { color: var(--text); }

.checklist {
  list-style: none;
  margin-top: 1.4rem;
  display: grid;
  gap: 0.65rem;
}
.checklist li {
  padding-left: 2rem;
  position: relative;
  font-weight: 600;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.6-4-4 1.7-1.7 2.3 2.3 4.9-4.9 1.7 1.7z"/%3E%3C/svg%3E') center/contain no-repeat;
          mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.6-4-4 1.7-1.7 2.3 2.3 4.9-4.9 1.7 1.7z"/%3E%3C/svg%3E') center/contain no-repeat;
}

.seals {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}
.seals img {
  height: 96px;
  width: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow);
}

.split-visual svg {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-lift);
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.4rem;
}

.contact-card {
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}
.contact-card h3 { color: var(--accent-bright); margin-bottom: 0.8rem; font-size: 1.02rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-card p { color: var(--text-inverse-muted); }
.contact-card a { color: var(--text-inverse); font-weight: 600; text-decoration-color: rgba(78, 203, 129, 0.5); }
.contact-card a:hover { color: var(--accent-bright); }

.hours { width: 100%; border-collapse: collapse; color: var(--text-inverse-muted); }
.hours td { padding: 0.35rem 0; }
.hours td:last-child { text-align: right; color: var(--text-inverse); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f1d3b;
  color: var(--text-inverse-muted);
  padding: 1.6rem 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { color: var(--text-inverse-muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent-bright); }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.legal {
  padding: clamp(3rem, 7vw, 5rem) 0;
  max-width: 760px;
}
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal p, .legal ul { margin-bottom: 1rem; color: var(--text-muted); }
.legal ul { padding-left: 1.3rem; }
.legal a { color: var(--navy-700); font-weight: 600; }

/* ---------- Galerie „Einblicke“ ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}

.gallery figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery figure:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery figure:hover img { transform: scale(1.05); }

.gallery figcaption {
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-700);
  background: var(--surface);
  position: relative;
}

/* ---------- Lightbox ---------- */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(10, 18, 38, 0.88);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}
.lightbox.show { opacity: 1; }

.lightbox figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  text-align: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox figcaption {
  color: var(--text-inverse);
  font-weight: 600;
  margin-top: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.4rem;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.lightbox-close:hover { color: #fff; transform: rotate(90deg); }

body.lightbox-open { overflow: hidden; }

/* ---------- Job-Popup „Wir suchen dich!“ ---------- */
.jobpop[hidden] { display: none; }
.jobpop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.jobpop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 38, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.jobpop-card {
  position: relative;
  width: min(480px, 100%);
  text-align: center;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: var(--text-inverse);
  border: 1px solid rgba(78, 203, 129, 0.35);
  border-radius: 22px;
  padding: 2.6rem 2rem 2.2rem;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 60px rgba(78, 203, 129, 0.12);
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.jobpop.show .jobpop-backdrop { opacity: 1; }
.jobpop.show .jobpop-card { opacity: 1; transform: none; }

.jobpop-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  background: none;
  border: 0;
  color: var(--text-inverse-muted);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.3rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.jobpop-close:hover { color: #fff; transform: rotate(90deg); }

.jobpop-boltwrap {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 203, 129, 0.22), transparent 70%);
}
.jobpop-bolt {
  width: 52px;
  height: 52px;
  color: var(--accent-bright);
  filter: drop-shadow(0 0 10px rgba(78, 203, 129, 0.8));
  animation: bolt-pulse 1.8s ease-in-out infinite;
}
@keyframes bolt-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(78, 203, 129, 0.7)); }
  50%      { transform: scale(1.12); filter: drop-shadow(0 0 20px rgba(78, 203, 129, 1)); }
}

.jobpop-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ice);
  opacity: 0;
  animation: spark-fly 2.2s ease-out infinite;
}
.jobpop-spark.s1 { top: 12%; left: 18%; animation-delay: 0s; }
.jobpop-spark.s2 { top: 20%; right: 10%; animation-delay: 0.55s; }
.jobpop-spark.s3 { bottom: 14%; left: 8%;  animation-delay: 1.1s; }
.jobpop-spark.s4 { bottom: 8%;  right: 16%; animation-delay: 1.65s; }
@keyframes spark-fly {
  0%   { opacity: 0; transform: scale(0.4) translate(0, 0); }
  15%  { opacity: 1; }
  60%  { opacity: 0; transform: scale(1) translate(var(--fly-x, 18px), -22px); }
  100% { opacity: 0; }
}
.jobpop-spark.s1 { --fly-x: -20px; }
.jobpop-spark.s3 { --fly-x: -14px; }

.jobpop-kicker {
  color: var(--ice);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.jobpop h2 {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  margin-bottom: 0.7rem;
}
.jobpop h2 .zap {
  color: var(--accent-bright);
  text-shadow: 0 0 18px rgba(78, 203, 129, 0.65);
  animation: zap-flicker 3.5s linear infinite;
}
@keyframes zap-flicker {
  0%, 100% { opacity: 1; }
  92%  { opacity: 1; }
  93%  { opacity: 0.35; }
  94%  { opacity: 1; }
  96%  { opacity: 0.5; }
  97%  { opacity: 1; }
}

.jobpop-text {
  color: var(--text-inverse-muted);
  max-width: 360px;
  margin: 0 auto 1.2rem;
}

.jobpop-perks {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.jobpop-perks li::before {
  content: "⚡ ";
}

.jobpop-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.jobpop-later {
  color: var(--text-inverse-muted);
  border: 2px solid rgba(255, 255, 255, 0.18);
}
.jobpop-later:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

body.jobpop-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .jobpop-bolt, .jobpop-spark, .jobpop h2 .zap { animation: none; }
  .jobpop-card, .jobpop-backdrop { transition: none; }
}

/* ---------- Scroll-Reveal ----------
   Ausgeblendet wird nur, wenn JS aktiv ist (html.js),
   damit Inhalte ohne JavaScript immer sichtbar bleiben. */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-visual { max-width: 420px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 24px rgba(20, 38, 77, 0.12);
    padding: 0.6rem 4%;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) {
    display: block;
    padding: 0.9rem 0.2rem;
    font-size: 1.05rem;
  }
  .nav-links .btn { margin: 0.6rem 0 1rem; }
}
