/* ============================================================
   Q2M Managementberatung AG — Design System (Hellblau / Light)
   ============================================================ */

:root {
  /* Brand palette — light blue */
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --sky-tint: #f3f8ff;
  --sky-panel: #e8f1fe;

  --ink-900: #0f1f3a;
  --ink-700: #33405a;
  --ink-500: #647089;
  --ink-300: #97a2b6;

  --white: #ffffff;

  --line: #e2e9f4;
  --line-strong: #cdd9ec;
  --line-on-blue: rgba(255, 255, 255, 0.28);

  /* Type */
  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Metrics */
  --container: 1180px;
  --radius: 10px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-soft: 0 14px 40px -20px rgba(37, 99, 235, 0.28);
  --shadow-card: 0 26px 60px -28px rgba(37, 99, 235, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; letter-spacing: -0.02em; color: var(--ink-900); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { color: var(--ink-700); }
.lead { font-size: 1.18rem; color: var(--ink-500); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
section { padding: clamp(70px, 10vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head h2 { margin: 20px 0 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* "dark" sections are now soft blue panels */
.dark { background: linear-gradient(180deg, var(--sky-tint), var(--sky-panel)); color: var(--ink-700); }
.dark p { color: var(--ink-500); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--ink-900); }
.muted-bg { background: var(--sky-tint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 600; font-size: 0.95rem;
  padding: 15px 30px; border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 12px 26px -12px rgba(37,99,235,0.7); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); }
.btn-ghost { background: var(--white); color: var(--blue-700); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--line-strong); color: var(--ink-900); }
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-600); background: var(--blue-50); }
/* buttons placed on the vivid CTA band */
.cta-band .btn-primary { background: #fff; color: var(--blue-700); }
.cta-band .btn-primary:hover { background: var(--blue-50); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -32px rgba(15,31,58,0.4);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink-900); min-width: 0; }
.brand .mark {
  width: 46px; height: 46px;
  background: linear-gradient(140deg, var(--blue-500), var(--blue-700));
  display: grid; place-items: center; border-radius: 13px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: #fff; letter-spacing: -0.02em;
  box-shadow: 0 10px 22px -10px rgba(37,99,235,0.65);
}
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand .brand-text strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.brand .brand-text span { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-500); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  color: var(--ink-700); font-size: 0.92rem; font-weight: 500;
  position: relative; padding: 6px 0; transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--blue-600); border-radius: 2px;
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--blue-700); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink-900); margin: 0 auto; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background:
    radial-gradient(circle at 85% 15%, var(--blue-100) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, var(--blue-50) 0%, transparent 50%),
    linear-gradient(180deg, var(--white) 0%, var(--sky-tint) 100%);
  color: var(--ink-900); overflow: hidden;
  padding: 170px 0 110px;
}
.hero::before {
  content: ""; 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 at 75% 35%, #000 0%, transparent 65%);
  opacity: 0.7;
}
.hero::after {
  content: ""; position: absolute; right: -8%; top: 42%; transform: translateY(-50%);
  width: 540px; height: 540px; border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,0.32) 0%, transparent 62%);
  filter: blur(10px);
}
.hero-inner { position: relative; z-index: 2; max-width: 840px; }
.hero h1 { margin: 26px 0 26px; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--blue-600), var(--blue-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: 1.22rem; color: var(--ink-500); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 42px; }
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--ink-500); font-size: 0.7rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hero-scroll .line { width: 2px; height: 44px; border-radius: 2px; background: linear-gradient(var(--blue-500), transparent); animation: scrollline 2.2s var(--ease) infinite; }
@keyframes scrollline { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.stats .stat { padding: 40px 28px; text-align: center; border-right: 1px solid var(--line); }
.stats .stat:last-child { border-right: none; }
.stats .stat .num { font-family: var(--font-display); font-size: 2.5rem; color: var(--blue-600); font-weight: 700; letter-spacing: -0.02em; }
.stats .stat .label { font-size: 0.85rem; color: var(--ink-500); margin-top: 6px; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 42px 36px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-card); border-color: var(--blue-200); }
.card .icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: linear-gradient(140deg, var(--blue-500), var(--blue-700));
  color: #fff; display: grid; place-items: center; margin-bottom: 24px;
  box-shadow: 0 14px 26px -14px rgba(37,99,235,0.7);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 13px; }
.card-link { color: var(--blue-600); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; }
.card-link svg { width: 15px; height: 15px; flex: none; transition: transform 0.25s var(--ease); }
.card:hover .card-link svg { transform: translateX(5px); }
.service:hover .card-link svg { transform: translateX(5px); }

section.dark .card { background: var(--white); border-color: var(--blue-100); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: center; }
.split .visual {
  position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--blue-500), var(--blue-700));
  overflow: hidden; box-shadow: var(--shadow-card);
}
.split .visual .ring { position: absolute; border: 1px solid var(--line-on-blue); border-radius: 50%; }
.split .visual .ring.r1 { inset: 13%; }
.split .visual .ring.r2 { inset: 25%; border-color: rgba(255,255,255,0.45); }
.split .visual .ring.r3 { inset: 37%; }
.split .visual .glyph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 5rem; color: #fff;
  letter-spacing: -0.03em;
}
.split .visual .badge {
  position: absolute; bottom: 26px; left: 26px; right: 26px;
  background: rgba(255,255,255,0.16); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 14px; padding: 18px 22px;
  color: #fff; font-size: 0.9rem;
}
.feature-list { margin-top: 28px; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 15px; align-items: flex-start; }
.feature-list .tick {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-700);
  display: grid; place-items: center; font-size: 0.78rem; margin-top: 2px; font-weight: 700;
}
.feature-list strong { display: block; color: var(--ink-900); margin-bottom: 2px; }

/* ---------- Services ---------- */
.service {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--white); padding: 34px 36px; margin-bottom: 16px;
  display: grid; grid-template-columns: 64px 1fr auto; gap: 32px; align-items: start;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--blue-200); }
/* Klickbare Service-Karte (gesamte Kachel verlinkt) */
.service-link { color: inherit; text-decoration: none; cursor: pointer; }
.service-link h3 { transition: color 0.3s var(--ease); }
.service-link:hover h3 { color: var(--blue-700); }
.service-link:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; }
.service .s-num {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: #fff;
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--blue-500), var(--blue-700));
}
.service h3 { margin-bottom: 6px; }
.service .s-sub { color: var(--blue-600); font-weight: 600; font-size: 0.92rem; margin-bottom: 12px; }
.service .s-arrow { color: var(--ink-300); transition: color 0.3s var(--ease), transform 0.3s var(--ease); align-self: center; }
.service:hover .s-arrow { color: var(--blue-600); transform: translateX(6px); }

/* ---------- Documents (Investor Relations) ---------- */
.doc-group { margin-bottom: 52px; }
.doc-group h3 { margin-bottom: 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.doc-group h3 .tag { font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-100); padding: 5px 13px; border-radius: var(--radius-pill); }
.doc-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.doc {
  display: flex; align-items: center; gap: 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; min-width: 0;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.doc:hover { border-color: var(--blue-300); transform: translateX(4px); box-shadow: var(--shadow-soft); }
.doc .doc-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; }
.doc .doc-ico svg { width: 20px; height: 20px; }
.doc .doc-meta { flex: 1 1 0; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.doc .doc-meta .y { font-size: 0.78rem; color: var(--ink-500); letter-spacing: 0.04em; line-height: 1.2; }
.doc .doc-meta .t { font-weight: 600; color: var(--ink-900); line-height: 1.35; overflow-wrap: anywhere; }
.doc .doc-dl { flex: none; white-space: nowrap; }
.doc .doc-dl { color: var(--ink-500); font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.doc:hover .doc-dl { color: var(--blue-600); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 54px; align-items: start; }
.contact-info { display: grid; gap: 8px; }
.contact-item { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line-strong); }
.contact-item:last-child { border-bottom: none; }
.contact-item .ci-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--white); color: var(--blue-600); display: grid; place-items: center; border: 1px solid var(--blue-100); }
.contact-item .ci-ico svg { width: 20px; height: 20px; }
.contact-item .ci-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 4px; }
.contact-item .ci-value { color: var(--ink-900); font-size: 1.05rem; font-weight: 500; }
.contact-item a.ci-value:hover { color: var(--blue-600); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 46px; box-shadow: var(--shadow-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-700); margin-bottom: 8px; }
.field label .req { color: var(--blue-600); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 0.98rem; color: var(--ink-900);
  background: var(--sky-tint); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px var(--blue-100); }
.field textarea { resize: vertical; min-height: 130px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; }
.consent input { margin-top: 5px; accent-color: var(--blue-600); width: 16px; height: 16px; flex: none; }
.consent label { font-size: 0.84rem; color: var(--ink-500); line-height: 1.6; }
.form-note { margin-top: 16px; font-size: 0.8rem; color: var(--ink-500); }
.form-note code { background: var(--blue-50); padding: 2px 7px; border-radius: 6px; color: var(--blue-700); }
.form-status { margin-top: 16px; font-size: 0.9rem; font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--blue-700); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(circle at 85% 0%, var(--blue-100) 0%, transparent 50%),
    linear-gradient(180deg, var(--sky-tint), var(--white));
  color: var(--ink-900); padding: 200px 0 100px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; 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 at 80% 10%, #000, transparent 60%);
  opacity: 0.7;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin: 18px 0 18px; max-width: 16ch; }
.page-hero p { font-size: 1.18rem; color: var(--ink-500); max-width: 600px; }
.crumbs { font-size: 0.85rem; color: var(--ink-500); }
.crumbs a:hover { color: var(--blue-600); }
.crumbs span { color: var(--blue-600); font-weight: 600; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.6rem; margin: 46px 0 16px; }
.prose h3 { font-size: 1.2rem; margin: 30px 0 12px; }
.prose p, .prose li { color: var(--ink-700); margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.prose a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink-900); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(125deg, var(--blue-600), var(--blue-700));
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 70%);
}
.cta-band::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 640px; height: 640px; background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 60%);
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band .eyebrow { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.28); color: #fff; }
.cta-band h2 { margin: 18px auto 20px; max-width: 18ch; color: #fff; }
.cta-band p { max-width: 540px; margin: 0 auto 36px; color: rgba(255,255,255,0.88); }

/* ---------- Footer ---------- */
.site-footer { background: #0c1f3f; color: #9fb0cc; padding: 80px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 46px; padding-bottom: 54px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-top .brand { margin-bottom: 20px; color: #fff; }
.footer-top .brand .brand-text span { color: #8194b4; }
.site-footer .f-about { font-size: 0.95rem; max-width: 320px; color: #9fb0cc; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer .f-col a, .site-footer .f-col p { display: block; font-size: 0.93rem; margin-bottom: 12px; color: #9fb0cc; transition: color 0.2s var(--ease); }
.site-footer .f-col a:hover { color: var(--blue-300); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; font-size: 0.83rem; flex-wrap: wrap; color: #8194b4; }
.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom .legal a:hover { color: var(--blue-300); }

/* ---------- Scroll to top ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue-600); color: #fff;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.25s var(--ease);
  box-shadow: 0 16px 30px -12px rgba(37,99,235,0.7);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--blue-700); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

/* ---------- Responsive ---------- */
/* Tablet & schmaler Desktop: Mobil-Menü früher aktivieren,
   damit 5 Nav-Items + Brand nicht überlappen */
@media (max-width: 1024px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    background: #fff; flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 28px; padding: 60px 44px;
    transform: translateX(100%); transition: transform 0.4s var(--ease);
    box-shadow: -30px 0 60px -30px rgba(15,31,58,0.3);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; }
  .nav-toggle { display: flex; z-index: 110; }
  .nav-cta .btn { display: none; }
}
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .split, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:nth-child(2) { border-right: none; }
  .stats .stat:nth-child(1), .stats .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 38px; }
  .split .visual { aspect-ratio: 16 / 11; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .service { grid-template-columns: 52px 1fr; gap: 20px; padding: 26px 24px; }
  .service .s-arrow { display: none; }
  .form-card { padding: 30px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  section { padding: 68px 0; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stats .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stats .stat:last-child { border-bottom: none; }
  .container { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
