/* ═══════════════════════════════════════════════════════════════════
   OPTESO GmbH — Website CSS v2.0
   Design: Technischer Minimalismus
   Ornament: S7-STL-Code · Circuit-Traces · Klemmenblock-Rasster
   ═══════════════════════════════════════════════════════════════════ */

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

:root {
  --navy:   #14171A;
  --blue:   #1A5FB4;
  --orange: #E8700A;
  --green:  #4F8F2E;
  --white:  #FFFFFF;
  --off:    #F7F8FA;
  --border: #DDE3EC;
  --text:   #0F172A;
  --muted:  #64748B;
  --concrete: #E2E1E1;
  --font:   "Segoe UI", system-ui, Arial, sans-serif;
  --mono:   "Consolas", "Courier New", monospace;

  /* Circuit-Via Pattern — für dunkle Sections */
  --pat-circuit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='3' fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1.5'/%3E%3Ccircle cx='30' cy='30' r='1' fill='%23ffffff' fill-opacity='0.1'/%3E%3Cline x1='0' y1='30' x2='25' y2='30' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3Cline x1='35' y1='30' x2='60' y2='30' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3Cline x1='30' y1='0' x2='30' y2='25' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3Cline x1='30' y1='35' x2='30' y2='60' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");

  /* Dot-Grid — für helle Sections */
  --pat-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='0.9' fill='%2308111F' opacity='0.09'/%3E%3C/svg%3E");
}

/* ── Base ─────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Layout ───────────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 80px 0; }

.section.bg {
  background-color: var(--off);
  background-image: var(--pat-dots);
}

.section.dark {
  background-color: var(--navy);
  background-image: var(--pat-circuit);
  color: var(--white);
}
.section.dark p { color: #8AA5C0; }

/* ── Section Labels — Monospace, technisch ───────────────────── */
.section-label {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  display: block;
}
.section-label::before { content: "// "; opacity: .45; }
.section.dark .section-label { color: #6B9FD4; }

/* ── Typography ───────────────────────────────────────────────── */
h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.5px;
}
h2 {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 0;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s;
  text-decoration: none !important;
  font-family: var(--font);
  letter-spacing: .3px;
}
.btn-primary { background: var(--blue);  color: var(--white); }
.btn-primary:hover { background: #004A90; }
.btn-outline { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-white   { background: var(--white); color: var(--navy); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #3D7322; }
.btn-outline-dark { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-white:hover { background: #E8F0F9; }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.25);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.07); }

/* ── Navigation ───────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
nav a { font-weight: 600; color: var(--navy); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 3px;
  text-decoration: none !important;
  display: flex;
  align-items: center;
}
.nav-logo span { color: var(--orange); }
.nav-logo-img { height: 36px; width: auto; display: block; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all .15s;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
  border-color: var(--border);
}
.nav-links a.active { color: var(--blue); }
.nav-links .nav-cta { margin-left: 8px; border-radius: 0; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  background-color: var(--navy);
  background-image: var(--pat-circuit);
  color: var(--white);
  padding: 100px 0 88px;
  position: relative;
  overflow: hidden;
}

/* S7-STL als Hintergrund-Ornament ──────────────────────────────
   Echter S7-Code — sehr hell, wie ein Wasserzeichen.
   ─────────────────────────────────────────────────────────────── */
.hero::before {
  content:
    "NETWORK 1\A"
    "// Vorlauf-Temperatur lesen\A"
    "      L     DB10.DBD0\A"
    "      ITD\A"
    "      DTR\A"
    "      L     1.0E+002\A"
    "      /R\A"
    "      T     MW100\A"
    "\A"
    "NETWORK 2\A"
    "// Pumpe Heizkreis steuern\A"
    "      U     M    100.0\A"
    "      U     M    100.1\A"
    "      UN    M    100.2\A"
    "      =     A      4.0\A"
    "\A"
    "NETWORK 3\A"
    "// Schaltzeiten pruefen\A"
    "      CALL  FB1, DB1\A"
    "       EN       :=TRUE\A"
    "       ZEIT_EIN :=T#06H00M\A"
    "       ZEIT_AUS :=T#22H00M\A"
    "       AUSGANG  :=M200.0\A"
    "\A"
    "NETWORK 4\A"
    "// Sollwert Vergleich\A"
    "      L     MW200\A"
    "      L     MW202\A"
    "      ==I\A"
    "      =     M50.0\A"
    "\A"
    "NETWORK 5\A"
    "// BACnet ReadProperty\A"
    "      L     #DeviceId\A"
    "      T     DB99.DBW0\A"
    "      CALL  FC200\A"
    "       ObjType :=0\A"
    "       InstNr  :=1\A"
    "       PropId  :=85\A";
  position: absolute;
  top: 20px; right: 56px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 2;
  color: rgba(255,255,255,.045);
  white-space: pre;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero > .container { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.hero-eyebrow::before { content: "> "; }

.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero-sub { font-size: 17px; color: #8AA5C0; margin-bottom: 36px; max-width: 460px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-top: 2px solid var(--orange);
  padding: 28px;
}
.hero-card-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}
.hero-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.hero-stat .num { font-size: 36px; font-weight: 800; color: var(--white); display: block; line-height: 1; }
.hero-stat .label { font-size: 11px; color: #5A7090; font-family: var(--mono); margin-top: 4px; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08);
}
.badge {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #8AA5C0;
}

/* ── Feature Grid ─────────────────────────────────────────────── */
/* Gap-Trick: 1px gap + Parent-Hintergrund = sichtbare Trennlinien */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.feature-card {
  background: var(--white);
  padding: 36px 28px;
  border-top: 3px solid transparent;
  transition: border-color .2s;
}
.section.bg .feature-card { background: var(--off); }
.feature-card:hover { border-top-color: var(--blue); }
.feature-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
  border: 1px solid var(--border);
  background: var(--off);
}
.feature-card h3 { color: var(--text); }
.feature-card p  { font-size: 14px; margin-top: 6px; color: var(--muted); }
.feature-card a {
  display: inline-block; margin-top: 18px;
  font-size: 12px; font-weight: 700;
  color: var(--blue); font-family: var(--mono);
  text-decoration: none !important;
}
.feature-card a:hover { text-decoration: underline !important; }

/* ── Two-col ──────────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.two-col.reverse > :first-child { order: 2; }
.two-col.reverse > :last-child  { order: 1; }

/* ── Checklist ────────────────────────────────────────────────── */
.checklist { list-style: none; margin: 20px 0; }
.checklist li {
  padding: 9px 0 9px 28px;
  position: relative;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--green);
  font-weight: 700;
  font-family: var(--mono);
}

/* ── Domain Grid ──────────────────────────────────────────────── */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-top: 8px;
}
.domain-card {
  background: var(--white);
  padding: 28px;
  border-top: 3px solid var(--blue);
  transition: border-top-color .15s;
}
.domain-card:hover { border-top-color: var(--orange); }
.domain-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
}
.domain-card h3 { color: var(--text); font-size: 17px; }
.domain-card p  { font-size: 14px; margin-top: 8px; color: var(--muted); }
.domain-modules { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px; }
.domain-modules span {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--off);
  border: 1px solid var(--border);
  padding: 2px 8px;
  color: var(--muted);
}

/* ── Stats (dark section) ─────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.07);
}
.stat-item {
  padding: 32px 28px;
  background: rgba(255,255,255,.02);
}
.stat-item .num {
  font-size: 44px; font-weight: 800;
  color: var(--white); display: block; line-height: 1;
}
.stat-item .label {
  font-family: var(--mono);
  font-size: 11px;
  color: #4A6070;
  margin-top: 8px; display: block;
}

/* ── OT-Hub Visual ────────────────────────────────────────────── */
.ot-hub-visual {
  background-color: var(--navy);
  background-image: var(--pat-circuit);
  border-top: 2px solid var(--orange);
  padding: 28px;
}
.hub-row {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 10px 0; gap: 8px;
}
.hub-row:last-of-type { border-bottom: none; }
.hub-name  { font-family: var(--mono); font-size: 12px; color: #D0E4FF; flex: 1; }
.hub-state {
  font-family: var(--mono);
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; flex-shrink: 0;
}
.hub-state.ok  { background: rgba(22,101,52,.25); color: #6FCF97; outline: 1px solid rgba(22,101,52,.4); }
.hub-state.err { background: rgba(153,27,27,.25); color: #FCA5A5; outline: 1px solid rgba(153,27,27,.4); }
.hub-reads { font-family: var(--mono); font-size: 10px; color: #4A6070; flex-shrink: 0; }

/* ── Compliance Badges ────────────────────────────────────────── */
.compliance-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.comp-badge {
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  color: var(--navy);
  border: 1px solid var(--border);
  padding: 5px 12px;
  background: var(--off);
  display: flex; align-items: center; gap: 6px;
}
.comp-badge .dot { width: 6px; height: 6px; background: var(--green); flex-shrink: 0; }

/* ── CTA Banner ───────────────────────────────────────────────── */
.cta-banner {
  background-color: var(--navy);
  background-image: var(--pat-circuit);
  border-left: 4px solid var(--orange);
  padding: 56px 48px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); }
.cta-banner p  { color: rgba(255,255,255,.6); font-size: 17px; margin: 12px 0 32px; }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-list { max-width: 700px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  font-size: 15px; font-weight: 700; color: var(--text);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 18px 0;
}
.faq-q::after {
  content: "+";
  font-family: var(--mono);
  font-size: 20px; color: var(--orange);
  flex-shrink: 0; width: 24px; text-align: center;
}
.faq-item.open .faq-q { color: var(--blue); }
.faq-item.open .faq-q::after { content: "−"; color: var(--blue); }
.faq-a {
  display: none;
  font-size: 14px; color: var(--muted);
  padding-bottom: 18px; line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ── Wissen-Hub Artikelkarten ─────────────────────────────────── */
.wissen-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
  scroll-margin-top: 90px;
}
.wissen-meta {
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  font-size: 13px; color: var(--muted);
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.wissen-meta strong { color: var(--text); }
.wissen-los {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--orange); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}
.wissen-mythos, .wissen-fakt {
  padding: 16px 20px; border-radius: 0 6px 6px 0; margin-bottom: 16px;
}
.wissen-mythos { background: #FDF2F2; border-left: 3px solid #C0392B; }
.wissen-fakt { background: #F0F7F1; border-left: 3px solid var(--green); }
.wissen-mythos .tag, .wissen-fakt .tag {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 8px;
}
.wissen-mythos .tag { color: #C0392B; }
.wissen-fakt .tag { color: var(--green); }
.wissen-fakt blockquote { font-style: italic; margin: 4px 0; color: var(--text); }
.wissen-fakt cite { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; font-style: normal; }
.wissen-card ul { margin: 12px 0 4px 20px; }
.wissen-card ul li { margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.wissen-nav {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px;
}
.wissen-nav a {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--blue); background: var(--off); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 12px; text-decoration: none;
}
.wissen-nav a:hover { border-color: var(--blue); }

/* ── IND-Bausteinkarten ───────────────────────────────────────── */
.ind-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  scroll-margin-top: 90px;
}
.ind-card .ind-num {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--orange); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 4px;
}
.ind-card h3 { margin-bottom: 12px; }
.ind-card .ind-def {
  font-size: 14px; color: var(--muted); font-style: italic;
  border-left: 3px solid var(--border); padding-left: 14px;
  margin-bottom: 20px;
}
.ind-def cite { display: block; font-style: normal; font-size: 12px; margin-top: 6px; }
.rolle-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
}
.rolle-item {
  background: var(--off); border-radius: 8px; padding: 14px 16px;
}
.rolle-item .rolle-label {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--blue); text-transform: uppercase; letter-spacing: .5px;
  display: block; margin-bottom: 6px;
}
.rolle-item p { font-size: 13px; color: var(--text); }
@media (max-width: 800px) { .rolle-grid { grid-template-columns: 1fr; } }

/* ── Datentabellen (B3S etc.) ─────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 20px 0; }
.data-table th {
  text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .5px;
  padding: 10px 12px; border-bottom: 2px solid var(--border);
}
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:hover td { background: var(--off); }
.data-table .warn { color: var(--orange); font-size: 12px; }
.vert-badge {
  display: inline-block; background: var(--green); color: var(--white);
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; text-decoration: none;
  letter-spacing: .5px;
}
.vert-badge:hover { background: #0f4a29; }
.data-table td.col-par { font-family: var(--mono); font-weight: 700; color: var(--text); white-space: nowrap; }
.data-table td.col-vert { text-align: right; white-space: nowrap; }

/* ── Teil/Kapitel-Klappboxen (Rechtsrahmen) ──────────────────────── */
.teil-klapp {
  border: 1px solid var(--border); border-radius: 8px;
  margin: 12px 0; overflow: hidden; background: var(--white);
}
.teil-klapp-head {
  padding: 14px 18px; cursor: pointer; font-weight: 700; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--off);
}
.teil-klapp-head::after {
  content: "+"; font-family: var(--mono); color: var(--orange);
  font-size: 18px; flex-shrink: 0;
}
.teil-klapp.open .teil-klapp-head { color: var(--blue); }
.teil-klapp.open .teil-klapp-head::after { content: "−"; color: var(--blue); }
.teil-klapp-body { display: none; padding: 14px 18px 18px; }
.teil-klapp.open .teil-klapp-body { display: block; }
.teil-klapp-note { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

/* ── Hero-Logo (animiert) ─────────────────────────────────────── */
.hero-logo-wrap {
  position: relative;
  display: inline-block;
  padding: 40px;
}
.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange) 0%, var(--blue) 45%, transparent 72%);
  filter: blur(36px);
  opacity: .35;
  animation: heroGlow 6s ease-in-out infinite;
  z-index: 0;
}
.hero-logo-img {
  position: relative;
  z-index: 1;
  width: clamp(140px, 22vw, 220px);
  height: auto;
  display: block;
  margin: 0 auto;
  animation: heroLogoIn .9s cubic-bezier(.2,.8,.2,1) both, heroLogoFloat 4.5s ease-in-out .9s infinite;
}
@keyframes heroLogoIn {
  0%   { opacity: 0; transform: scale(.7) rotate(-8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes heroGlow {
  0%, 100% { opacity: .28; transform: scale(1); }
  50%      { opacity: .45; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo-img, .hero-logo-wrap::before { animation: none; }
}

/* ── Hero Scroll-Hint ─────────────────────────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--border);
  animation: scrollHintBounce 2.2s ease-in-out infinite;
}
.hero-scroll-hint svg { width: 16px; height: 16px; }
@keyframes scrollHintBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint { animation: none; }
}

/* ── Hero Hintergrund-Parallax ────────────────────────────────── */
.hero-parallax {
  background-size: 112% auto;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  animation: heroBgDrift 25s ease-in-out infinite;
}
.header-parallax {
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  animation: heroBgDrift 40s ease-in-out infinite;
}
.hero-content { height: 100%; display: flex; align-items: center; padding-left: 19vw; }
.hero-nav-links { display: flex; gap: 32px; height: 60px; align-items: center; justify-content: center; }
@keyframes heroBgDrift {
  0%, 100% { background-position: 50% 50%; }
  50%      { background-position: 53% 47%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-parallax, .header-parallax { animation: none; }
}

/* ── Page Header ──────────────────────────────────────────────── */
.page-header {
  background-color: var(--concrete);
  background-image: var(--pat-circuit);
  min-height: 300px;
  display: flex;
  align-items: center;
  color: var(--navy);
  border-bottom: 3px solid transparent;
  position: relative;
  overflow: hidden;
}
.page-header > .container { width: 100%; }
.page-header h1 { color: var(--navy); }
.page-header .sub {
  color: #3A3F44;
  font-size: 17px;
  margin-top: 14px;
  max-width: 580px;
  line-height: 1.6;
}
.page-header.accent-orange { border-bottom-color: var(--orange); }
.page-header.accent-blue   { border-bottom-color: var(--blue); }
.page-header.accent-white  { border-bottom-color: var(--white); }

/* ── Contact Form ─────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px;
}
.field input, .field select, .field textarea {
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font);
  background: var(--off);
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.field textarea { min-height: 120px; resize: vertical; }

/* ── Section-Divider (Dots rutschen rein, gruppieren sich mittig) ─── */
.section-divider {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0;
  overflow: visible;
}
.drift-dot {
  position: absolute;
  top: 0;
  width: 9px; height: 9px;
  margin-top: -4.5px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0;
  transition: left 2.6s cubic-bezier(.22,.61,.36,1), opacity .9s ease;
}
/* Beim Ankommen wird noch etwas "Energie abgebaut": eine mehrfach
   ausschwingende, abklingende Wackelbewegung statt eines einzelnen Überschwingers. */
.drift-dot.visible {
  opacity: 1;
  animation: dotSettle 1.9s cubic-bezier(.36,.07,.19,.97) 1.7s 1 both;
}
@keyframes dotSettle {
  0%   { transform: translateX(7px); }
  18%  { transform: translateX(-5px); }
  36%  { transform: translateX(3.5px); }
  54%  { transform: translateX(-2.2px); }
  72%  { transform: translateX(1.2px); }
  86%  { transform: translateX(-.5px); }
  100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .drift-dot, .drift-dot.visible { transition: none; animation: none; opacity: 1; }
}

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  background: #4B5560;
  color: rgba(255,255,255,.6);
  padding: 40px 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
}
footer a { color: rgba(255,255,255,.7); text-decoration: none; }
footer a:hover { color: var(--white); text-decoration: none; }
.footer-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
.footer-line .sep { margin: 0 12px; color: rgba(255,255,255,.25); }
.footer-brand-copy { color: rgba(255,255,255,.9); font-weight: 600; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner, .two-col, .stat-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col.reverse > :first-child { order: 1; }
  .two-col.reverse > :last-child  { order: 2; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero::before { display: none; }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
  .cta-banner { padding: 36px 24px; }

  .hero-parallax { background-size: cover; animation: none; }
  .hero-content { padding-left: 24px; padding-right: 24px; }
  .hero-nav-links {
    flex-wrap: wrap; gap: 10px 16px; height: auto;
    padding: 10px 0; font-size: 13px;
  }
  .float-icon {
    float: none !important; display: block; margin: 0 auto 20px !important;
  }
  .footer-brand-copy { display: block; margin-top: 8px; }
  .footer-line .sep:nth-last-child(2) { display: none; }
  .page-header-icon { display: none; }
}

/* ── Cookie-Hinweis (kein Banner, kurzer Slide-in) — analog Turm-Seite ── */
.cookie-hint {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 250;
  max-width: 280px;
  padding: 12px 16px;
  background: var(--navy);
  color: rgba(247,248,250,.85);
  font-size: 13px;
  line-height: 1.5;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .6s cubic-bezier(.16,1,.3,1), opacity .6s ease;
  pointer-events: none;
}
.cookie-hint a { color: var(--blue); }
.cookie-hint.in { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-hint.out { transform: translateX(-140%); opacity: 0; pointer-events: none; }
