/* ============================================================
   ec elements GmbH – Stylesheet
   Zielgruppe: CEOs & CTOs KMUs DACH | B2B Tech / KI
   Stack: Bootstrap 5.3.8 + Custom CSS | Fonts: Inter + DM Sans
   ============================================================ */

/* ─── 1. Design Tokens ──────────────────────────────────────── */
:root {
  --c-bg:           #f8fafc;
  --c-surface:      #ffffff;
  --c-surface-2:    #f1f5f9;
  --c-accent:       #0369a1;
  --c-accent-hover: #0284c7;
  --c-accent-light: #0ea5e9;
  --c-accent-soft:  #e0f2fe;
  --c-accent-border:#bae6fd;
  --c-text:         #0f172a;
  --c-text-2:       #475569;
  --c-text-muted:   #94a3b8;
  --c-border:       #e2e8f0;
  --c-dark:         #0c1629;
  --c-dark-2:       #162032;
  --c-dark-3:       #1e293b;

  /* Komplementär-Akzent Magenta */
  --c-magenta:      #f131b8;
  --c-magenta-glow: rgba(241,49,184,.35);
  --c-magenta-soft: #fce7f6;

  --font-display:   'Inter', sans-serif;
  --font-body:      'DM Sans', sans-serif;

  --section-py:     6rem;
  --section-py-sm:  3.5rem;

  --t-fast:  150ms cubic-bezier(.4,0,.2,1);
  --t-base:  260ms cubic-bezier(.4,0,.2,1);
  --t-slow:  420ms cubic-bezier(.4,0,.2,1);

  --shadow-sm:  0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.03);
  --shadow-md:  0 4px 20px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.04);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.09), 0 4px 16px rgba(0,0,0,.05);
  --shadow-xl:  0 32px 80px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.06);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
}

/* ─── 2. Base & Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Deutscher Text: automatische Silbentrennung + Wortumbruch */
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

/* Override Bootstrap primary */
:root {
  --bs-primary:       #0369a1;
  --bs-primary-rgb:   3, 105, 161;
  --bs-link-color:    #0369a1;
}

/* ─── 3. Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

.display-1, .display-2, .display-3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.text-accent     { color: var(--c-accent) !important; }
.text-accent-2   { color: var(--c-accent-light) !important; }
.text-muted-soft { color: var(--c-text-muted); }

.lead {
  font-size: 1.125rem;
  color: var(--c-text-2);
  line-height: 1.7;
}

.hi7 {
	color: #c6ff00;
	font-weight: bolder;
}

/* Section labels */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  border: 1px solid var(--c-accent-border);
  padding: .3rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.section-label.light {
  color: var(--c-accent-light);
  background: rgba(14,165,233,.12);
  border-color: rgba(14,165,233,.25);
}

/* ─── 4. Buttons ─────────────────────────────────────────────── */
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .01em;
  border-radius: var(--radius-md);
  transition: transform var(--t-fast), box-shadow var(--t-base), background var(--t-fast), border-color var(--t-fast);
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: scale(.97) translateY(0); }

.btn-primary {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(3,105,161,.30);
}
.btn-primary:hover {
  background: var(--c-accent-hover);
  border-color: var(--c-accent-hover);
  box-shadow: 0 6px 20px rgba(3,105,161,.40);
}

.btn-outline-light {
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.7);
  color: #fff;
}

.btn-lg {
  padding: .8rem 2rem;
  font-size: 1rem;
}

/* Magenta-Varianten für Section Labels, Divider, Stats, Service Cards */
.section-label.magenta {
  color: var(--c-magenta);
  background: var(--c-magenta-soft);
  border-color: rgba(241,49,184,.28);
}
.section-label.magenta.light {
  color: #f570cc;
  background: rgba(241,49,184,.12);
  border-color: rgba(241,49,184,.28);
}
.section-divider.magenta {
  background: linear-gradient(90deg, var(--c-magenta), rgba(241,49,184,.25));
}
/* KI Service Card: Magenta-Hover */
.service-card.ki-card:hover {
  border-color: rgba(241,49,184,.3);
}
.service-card.ki-card:hover::before {
  background: linear-gradient(90deg, var(--c-magenta), rgba(241,49,184,.45));
  opacity: 1;
}
.service-card.ki-card:hover .service-icon {
  background: var(--c-magenta);
  color: #fff;
}
/* Stats: magenta variant */
.stat-card.magenta .stat-number { color: #f570cc; }
.stat-card.magenta:hover {
  border-color: rgba(241,49,184,.3);
  background: rgba(241,49,184,.06);
}
/* hi7 "7" in Magenta (via class) */
.hi7-seven { color: var(--c-magenta); }

/* Karli pulse button */
.btn-karli {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  padding: .75rem 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(3,105,161,.35);
}
.btn-karli::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.btn-karli:hover::before { opacity: 1; }
.btn-karli .karli-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,.5); }
  50%       { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

/* ─── 5. Navigation ──────────────────────────────────────────── */
#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1050;
  padding: 1.25rem 0;
  transition: padding var(--t-base), background var(--t-base), box-shadow var(--t-base), backdrop-filter var(--t-base);
}

#mainNav.scrolled {
  padding: .7rem 0;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--c-border), 0 4px 24px rgba(0,0,0,.06);
}

#mainNav .navbar-brand img {
  height: 36px;
  width: auto;
  transition: opacity var(--t-base);
}

#mainNav .nav-link {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
#mainNav .nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }

#mainNav.scrolled .nav-link { color: var(--c-text-2); }
#mainNav.scrolled .nav-link:hover { color: var(--c-accent); background: var(--c-accent-soft); }

#mainNav .lang-toggle {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  padding: .3rem .7rem;
  cursor: pointer;
  transition: all var(--t-fast);
}
#mainNav.scrolled .lang-toggle {
  color: var(--c-text-muted);
  background: var(--c-surface-2);
  border-color: var(--c-border);
}
#mainNav .lang-toggle:hover { opacity: .8; }

#mainNav .btn-nav-cta {
  font-size: .875rem;
  padding: .45rem 1.25rem;
  background: var(--c-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: transform var(--t-fast), box-shadow var(--t-base), background var(--t-fast);
  box-shadow: 0 2px 8px rgba(3,105,161,.3);
}
#mainNav .btn-nav-cta:hover {
  background: var(--c-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(3,105,161,.4);
}

/* Mobile toggler */
.navbar-toggler {
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-sm);
  padding: .4rem .6rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
#mainNav.scrolled .navbar-toggler {
  border-color: var(--c-border);
}
#mainNav.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280%2C0%2C0%2C0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ─── 6. Hero Section ────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-dark);
}

/* Hero: München ↔ Berlin Crossfade alle 4 Sekunden */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* München – Neues Rathaus / Marienplatz – startet sichtbar */
.hero-bg-munich {
  position: absolute;
  inset: 0;
  background-image:
    url('./../images/rathaus-muenchen_1920x1080.webp');
  background-size: cover;
  background-position: center top;
  animation:
    crossfade-munich 8s ease-in-out infinite,
    hero-drift-a 24s ease-in-out infinite alternate;
}

/* Berlin – beginnt unsichtbar, blendet nach 4s ein */
.hero-bg-berlin {
  position: absolute;
  inset: 0;
  background-image:
    url('./../images/brandenburger-tor-berlin_1920x1080.webp');
  background-size: cover;
  background-position: center;
  animation:
    crossfade-berlin 8s ease-in-out infinite,
    hero-drift-b 20s ease-in-out infinite alternate-reverse;
}

/* Magenta-Lichtstreif beim Übergang */
.hero-bg-seam {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(241,49,184,.15) 48%,
    rgba(14,165,233,.08) 52%,
    transparent 70%);
  pointer-events: none;
  animation: seam-glow 8s ease-in-out infinite;
}

@keyframes crossfade-munich {
  0%, 42%  { opacity: 1; }
  50%, 92% { opacity: 0; }
  100%     { opacity: 1; }
}
@keyframes crossfade-berlin {
  0%, 42%  { opacity: 0; }
  50%, 92% { opacity: 1; }
  100%     { opacity: 0; }
}
@keyframes seam-glow {
  0%,  41% { opacity: 0; }
  46%       { opacity: 1; }
  50%       { opacity: 0; }
  91%       { opacity: 0; }
  96%       { opacity: 1; }
  100%      { opacity: 0; }
}
@keyframes hero-drift-a {
  from { transform: scale(1.05) translate(0, 0); }
  to   { transform: scale(1.10) translate(-1.5%, .5%); }
}
@keyframes hero-drift-b {
  from { transform: scale(1.07) translate(0, 0); }
  to   { transform: scale(1.12) translate(1.5%, -.5%); }
}

/* Stadt-Badge rechts unten im Hero */
.hero-city-badge {
  position: absolute;
  bottom: 5.5rem;
  right: 2.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .45rem;
  background: rgba(10,18,35,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.9);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .38rem 1rem;
  border-radius: 100px;
}
.hero-city-badge.munich { animation: crossfade-munich 8s ease-in-out infinite; }
.hero-city-badge.berlin { animation: crossfade-berlin 8s ease-in-out infinite; }
.hero-city-badge.munich i { color: var(--c-accent-light); font-size: .65rem; }
.hero-city-badge.berlin  i { color: var(--c-magenta);     font-size: .65rem; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(12, 22, 41, .92) 0%,
      rgba(12, 22, 41, .80) 50%,
      rgba(3, 105, 161, .35) 100%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .6;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,.18) 0%, transparent 70%);
  top: -10%; right: 5%;
  animation: glow-drift 12s ease-in-out infinite;
}

@keyframes glow-drift {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(-30px, 20px); }
  66%       { transform: translate(20px, -15px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(14,165,233,.15);
  border: 1px solid rgba(14,165,233,.3);
  color: #7dd3fc;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  animation: fade-up .6s ease both;
}

.hero-badge i { font-size: .7rem; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-title .accent-word {
  background: linear-gradient(135deg, var(--c-accent-light), #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.72);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
}

.hero-since {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.45);
  font-size: .85rem;
  font-weight: 400;
}
.hero-since::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: rgba(255,255,255,.3);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.4);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.scroll-chevron {
  width: 28px; height: 28px;
  border: 1.5px solid rgba(241,49,184,.45);   /* Magenta-Akzent */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce-down 2.4s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50%       { transform: translateY(6px); opacity: 1; }
}

/* Hero text stagger animations */
.hero-badge  { animation: fade-up .55s .1s ease both; }
.hero-title  { animation: fade-up .65s .25s ease both; }
.hero-subtitle { animation: fade-up .65s .4s ease both; }
.hero-ctas   { animation: fade-up .65s .55s ease both; }
.hero-since  { animation: fade-up .65s .65s ease both; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── 7. Leistungen / Services ───────────────────────────────── */
#leistungen {
  padding: var(--section-py) 0;
  background: var(--c-bg);
}

.section-header {
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  margin-bottom: .75rem;
}

.service-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  height: 100%;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-light));
  opacity: 0;
  transition: opacity var(--t-base);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-accent-border);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--c-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--c-accent);
  margin-bottom: 1.4rem;
  transition: background var(--t-base), color var(--t-base);
}
.service-card:hover .service-icon {
  background: var(--c-accent);
  color: #fff;
}

.service-card h4 {
  font-size: 1.125rem;
  margin-bottom: .6rem;
}
.service-card p {
  color: var(--c-text-2);
  font-size: .92rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.service-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap var(--t-fast), color var(--t-fast);
}
.service-link:hover { gap: .7rem; color: var(--c-accent-hover); }

/* ─── 8. KI / Karli Section ──────────────────────────────────── */
#ki {
  padding: var(--section-py) 0;
  background: var(--c-surface-2);
}

.ki-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.ki-visual img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform .8s ease;
}
.ki-visual:hover img { transform: scale(1.03); }

.ki-badge-floating {
  position: absolute;
  bottom: 1.75rem;
  left: 1.75rem;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: .85rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.8);
}
.ki-badge-floating .dot-live {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}
.ki-badge-floating strong { font-size: .875rem; color: var(--c-text); }
.ki-badge-floating span { font-size: .78rem; color: var(--c-text-muted); display: block; }

.ki-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.ki-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .65rem 0;
  color: var(--c-text-2);
  font-size: .95rem;
  border-bottom: 1px solid var(--c-border);
}
.ki-feature-list li:last-child { border-bottom: none; }
.ki-feature-list .feature-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--c-accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-accent);
  font-size: .8rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* ─── 9. Stats Section ───────────────────────────────────────── */
#stats {
  background: var(--c-dark);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

#stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(3,105,161,.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 50%, rgba(14,165,233,.12) 0%, transparent 60%);
}

.stat-card {
  position: relative;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  transition: border-color var(--t-base), background var(--t-base);
}
.stat-card:hover {
  border-color: rgba(14,165,233,.3);
  background: rgba(14,165,233,.06);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-number .stat-suffix {
  color: var(--c-accent-light);
  font-size: 60%;
}
.stat-label {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
  max-width: 160px;
  margin: 0 auto;
}
.stat-icon {
  font-size: 1.5rem;
  color: var(--c-accent-light);
  opacity: .6;
  margin-bottom: 1rem;
}

.stats-context {
  text-align: center;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.stats-context p {
  color: rgba(255,255,255,.45);
  font-size: .85rem;
}

/* ─── 10. Entwicklung Section ────────────────────────────────── */
#entwicklung {
  padding: var(--section-py) 0;
  background: var(--c-bg);
}

.dev-split-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.dev-split-img img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

.tech-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.5rem 0;
}
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: .35rem .9rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--c-text-2);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.tech-badge:hover {
  border-color: var(--c-accent-border);
  color: var(--c-accent);
  background: var(--c-accent-soft);
}

.method-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.method-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .6rem 0;
  font-size: .95rem;
  color: var(--c-text-2);
  border-bottom: 1px solid var(--c-border);
}
.method-list li:last-child { border-bottom: none; }
.method-list i { color: var(--c-accent); margin-top: .15rem; flex-shrink: 0; }

/* ─── 11. hi7 Rechenzentrum Section ──────────────────────────── */
#betrieb {
  position: relative;
  padding: var(--section-py) 0;
  overflow: hidden;
}

.betrieb-bg {
  position: absolute;
  inset: 0;
  background-image:
    url('./../images/server-racks_1920x1080.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.betrieb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(12,22,41,.94) 0%,
    rgba(22,32,50,.88) 60%,
    rgba(3,105,161,.4) 100%);
}

.betrieb-content { position: relative; z-index: 2; }

.betrieb-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(12px);
  transition: background var(--t-base), border-color var(--t-base), transform var(--t-base);
  height: 100%;
}
.betrieb-card:hover {
  background: rgba(255,255,255,.11);
  border-color: rgba(14,165,233,.3);
  transform: translateY(-4px);
}

.betrieb-card-icon {
  font-size: 1.75rem;
  color: var(--c-accent-light);
  margin-bottom: 1.1rem;
}
.betrieb-card h5 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: .5rem;
}
.betrieb-card p {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  line-height: 1.6;
  margin: 0;
}

.hi7-logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hi7-logo-text span { color: var(--c-accent-light); }

/* ─── 12. Beratung (Process) Section ─────────────────────────── */
#beratung {
  padding: var(--section-py) 0;
  background: var(--c-surface-2);
}

.beratung-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.beratung-img img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

.process-steps { list-style: none; padding: 0; margin: 0; }
.process-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  position: relative;
}
.process-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 18px; top: 44px;
  width: 2px;
  bottom: -1.5rem;
  background: var(--c-border);
}

.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  border: 2px solid var(--c-accent-border);
  color: var(--c-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .875rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background var(--t-base), color var(--t-base);
}
.process-step:hover .step-num {
  background: var(--c-accent);
  color: #fff;
}

.step-body h5 {
  font-size: 1rem;
  margin-bottom: .3rem;
}
.step-body p {
  font-size: .9rem;
  color: var(--c-text-2);
  margin: 0;
}

/* ─── 13. Kontakt Section ────────────────────────────────────── */
#kontakt {
  padding: var(--section-py) 0;
  background: var(--c-bg);
}

.kontakt-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.kontakt-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.kontakt-detail-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.kontakt-detail strong { display: block; font-size: .85rem; color: var(--c-text-muted); margin-bottom: .15rem; }
.kontakt-detail span { font-size: .95rem; color: var(--c-text); }

.kontakt-form-wrap {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.kontakt-form-wrap .form-label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--c-text-2);
  margin-bottom: .4rem;
}
.kontakt-form-wrap .form-control,
.kontakt-form-wrap .form-select {
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: .7rem 1rem;
  font-size: .95rem;
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.kontakt-form-wrap .form-control:focus,
.kontakt-form-wrap .form-select:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(3,105,161,.12);
  background: var(--c-surface);
  outline: none;
}
.kontakt-form-wrap textarea { resize: vertical; min-height: 130px; }

/* ─── 14. Footer ─────────────────────────────────────────────── */
footer {
  background: var(--c-dark);
  padding: 4rem 0 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.footer-tagline {
  font-size: .875rem;
  color: rgba(255,255,255,.4);
  max-width: 260px;
  line-height: 1.5;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1.1rem;
}

.footer-links {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-links li { margin-bottom: .6rem; }
.footer-links a {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-links a:hover { color: #fff; }

.footer-divider {
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 2.5rem 0 1.5rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: .82rem;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ─── 15. Karli Modal ────────────────────────────────────────── */
#karliModal .modal-content {
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);  
}

.karli-modal-header {
  background: linear-gradient(135deg, var(--c-dark), var(--c-dark-2));
  padding: 1.4rem 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
}

.karli-avatar {
  width: 42px; height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0369a1, #0ea5e9);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}
.karli-avatar::after {
  content: '';
  position: absolute;
  bottom: -2px; right: -2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--c-dark);
  animation: pulse-dot 2s infinite;
}

.karli-header-info { margin-left: 1rem; }
.karli-header-info strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  display: block;
  font-weight: 700;
}
.karli-header-info span {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
}

.modal-header .btn-close-karli {
  background: rgba(255,255,255,.1);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  margin-left: auto;
}
.modal-header .btn-close-karli:hover { background: rgba(255,255,255,.2); color: #fff; }

/* Chat area */
.karli-chat-area {
  background: #f8fafc;
  padding: 1.5rem;
  height: 60vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.chat-msg {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.25rem;
 /* animation: fade-up .3s ease both; */
}
.chat-msg.user { flex-direction: row-reverse; }

.chat-bubble {
  max-width: 78%;
  padding: .75rem 1.1rem;
  border-radius: var(--radius-lg);
  font-size: .9rem;
  line-height: 1.5;
}
.chat-msg.bot .chat-bubble {
  background: #fff;
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: 4px var(--radius-lg) var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, #0369a1, #0284c7);
  color: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg);
}

.chat-bot-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0369a1, #0ea5e9);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
  margin-top: .15rem;
}

.chat-typing .chat-bubble {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 4px var(--radius-lg) var(--radius-lg) var(--radius-lg);
  padding: .75rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.typing-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-text-muted);
  animation: typing-bounce .9s infinite;
}
.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .30s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-6px); }
}

.karli-input-area {
  border-top: 1px solid var(--c-border);
  padding: 1rem 1.5rem;
  background: var(--c-surface);
  display: flex;
  gap: .75rem;
  align-items: flex-end;
}
.karli-input-area .form-control {
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: .65rem 1rem;
  font-size: .9rem;
  font-family: var(--font-body);
  resize: none;
  min-height: 44px;
  max-height: 100px;
  overflow-y: auto;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.karli-input-area .form-control:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(3,105,161,.1);
  outline: none;
}
.karli-send-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--c-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.karli-send-btn:hover { background: var(--c-accent-hover); transform: scale(1.07); }
.karli-send-btn:active { transform: scale(.95); }

.karli-disclaimer {
  text-align: center;
  font-size: .72rem;
  color: var(--c-text-muted);
  padding: .6rem 1.5rem;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}

/* Chips for quick questions */
.karli-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0 1.5rem 1rem;
  background: var(--c-surface);
}
.karli-chip {
  font-size: .78rem;
  padding: .3rem .85rem;
  border: 1px solid var(--c-border);
  border-radius: 100px;
  background: var(--c-surface-2);
  color: var(--c-text-2);
  cursor: pointer;
  transition: all var(--t-fast);
}
.karli-chip:hover {
  border-color: var(--c-accent-border);
  color: var(--c-accent);
  background: var(--c-accent-soft);
}

/* ─── 16. Utility / Helper ───────────────────────────────────── */
.section-divider {
  width: 3rem; height: 3px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-light));
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}
.section-divider.center { margin: 1rem auto 1.5rem; }

.tag-chip {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: 100px;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border: 1px solid var(--c-accent-border);
}

/* Dark section text overrides */
.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4,
.dark-section h5 { color: #fff; }
.dark-section p,
.dark-section .lead { color: rgba(255,255,255,.65); }
.dark-section .section-label {
  color: #7dd3fc;
  background: rgba(14,165,233,.12);
  border-color: rgba(14,165,233,.25);
}
.dark-section .section-divider {
  background: linear-gradient(90deg, var(--c-accent-light), rgba(14,165,233,.3));
}

.dark-section .section-label.hi7 {
  color: #c6ff00;
  background: #455a64;
  border-color: #455a64;
}

/* ─── 17. Responsive ─────────────────────────────────────────── */
@media (max-width: 991.98px) {
  :root {
    --section-py: 4rem;
  }
  .hero-title { font-size: clamp(2.2rem, 6vw, 3.5rem); }
  .ki-visual img,
  .dev-split-img img,
  .beratung-img img { height: 320px; }

  /* Mobile Nav: Collapse-Menü bekommt eigenen Hintergrund */
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    background: rgba(10, 18, 35, .97);
    border-radius: 0 0 16px 16px;
    padding: 1rem 1.25rem;
    margin: .5rem -1rem 0;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  #mainNav.scrolled .navbar-collapse.show,
  #mainNav.scrolled .navbar-collapse.collapsing {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--c-border);
  }
  #mainNav.scrolled .navbar-collapse .nav-link {
    color: var(--c-text-2) !important;
  }
  #mainNav.scrolled .navbar-collapse .nav-link:hover {
    color: var(--c-accent) !important;
  }
  #mainNav .navbar-collapse .lang-toggle,
  #mainNav .navbar-collapse .btn-nav-cta {
    margin-top: .5rem;
  }

  /* Hero city badge: kleiner auf Mobile */
  .hero-city-badge {
    bottom: 4.5rem;
    right: 1.25rem;
    font-size: .68rem;
    padding: .3rem .8rem;
  }
}

@media (max-width: 767.98px) {
  :root { --section-py: 3rem; }
  .hero-content { padding-top: 7rem; }
  .hero-title { font-size: 2.1rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .betrieb-bg { background-attachment: scroll; }
  .kontakt-form-wrap { padding: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
}

@media (max-width: 575.98px) {
  .stat-number { font-size: 2.4rem; }
  .service-card { padding: 1.75rem; }
}

/* ─── 18. Scroll & Focus Accessibility ───────────────────────── */
*:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

/* AOS override timing */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }


/* subpage */

 /* ── Page Header ─────────────────────────────────────────── */
    .subpage-header {
      background: var(--c-dark);
      padding: 7rem 0 3.5rem;
      position: relative;
      overflow: hidden;
    }
    .subpage-header::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 60% 100% at 80% 50%, rgba(3,105,161,.2) 0%, transparent 65%),
        radial-gradient(ellipse 40% 60% at 15% 60%, rgba(241,49,184,.08) 0%, transparent 60%);
    }
    .subpage-header::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
      background-size: 56px 56px;
    }
    .subpage-header-content {
      position: relative;
      z-index: 2;
    }
    .subpage-breadcrumb {
      display: flex;
      align-items: center;
      gap: .5rem;
      margin-bottom: 1.25rem;
    }
    .subpage-breadcrumb a {
      font-size: .8rem;
      font-weight: 500;
      color: rgba(255,255,255,.45);
      text-decoration: none;
      transition: color .2s;
    }
    .subpage-breadcrumb a:hover { color: rgba(255,255,255,.8); }
    .subpage-breadcrumb .sep {
      color: rgba(255,255,255,.25);
      font-size: .75rem;
    }
    .subpage-breadcrumb .current {
      font-size: .8rem;
      color: rgba(255,255,255,.6);
    }
    .subpage-header h1 {
      font-family: var(--font-display);
      font-size: clamp(2rem, 5vw, 3.25rem);
      font-weight: 800;
      color: #fff;
      letter-spacing: -.03em;
      line-height: 1.1;
      margin: 0;
    }
    .subpage-header h1 .accent { color: #f131b8; }
    .subpage-header .header-meta {
      margin-top: 1rem;
      font-size: .85rem;
      color: rgba(255,255,255,.4);
      display: flex;
      align-items: center;
      gap: .75rem;
    }
    .subpage-header .header-meta i { font-size: .75rem; }

    /* ── Content Area ────────────────────────────────────────── */
    .subpage-content {
      padding: 5rem 0 6rem;
      background: var(--c-bg);
    }

    /* Legal content card */
    .legal-card {
      background: var(--c-surface);
      border: 1px solid var(--c-border);
      border-radius: var(--radius-xl);
      padding: 2.5rem;
      margin-bottom: 1.5rem;
      transition: box-shadow var(--t-base);
    }
    .legal-card:hover { box-shadow: var(--shadow-md); }

    .legal-card-icon {
      width: 44px; height: 44px;
      border-radius: var(--radius-md);
      background: var(--c-accent-soft);
      color: var(--c-accent);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem;
      margin-bottom: 1.25rem;
      flex-shrink: 0;
    }
    .legal-card h2 {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--c-text);
      margin-bottom: 1.1rem;
      padding-bottom: .75rem;
      border-bottom: 1px solid var(--c-border);
    }

    .legal-row {
      display: flex;
      gap: 1rem;
      padding: .55rem 0;
      border-bottom: 1px solid var(--c-surface-2);
      font-size: .92rem;
      align-items: flex-start;
    }
    .legal-row:last-child { border-bottom: none; padding-bottom: 0; }
    .legal-label {
      font-weight: 500;
      color: var(--c-text-muted);
      min-width: 150px;
      flex-shrink: 0;
      font-size: .82rem;
      letter-spacing: .01em;
      padding-top: .05rem;
    }
    .legal-value {
      color: var(--c-text);
      line-height: 1.55;
    }
    .legal-value a {
      color: var(--c-accent);
      text-decoration: none;
    }
    .legal-value a:hover { text-decoration: underline; }

    /* Disclaimer block */
    .legal-prose {
      font-size: .92rem;
      color: var(--c-text-2);
      line-height: 1.75;
    }
    .legal-prose p { margin-bottom: 1rem; }
    .legal-prose p:last-child { margin-bottom: 0; }
    .legal-prose strong { color: var(--c-text); }

    /* Sidebar card (small) */
    .sidebar-card {
      background: var(--c-surface);
      border: 1px solid var(--c-border);
      border-radius: var(--radius-lg);
      padding: 1.75rem;
      margin-bottom: 1.25rem;
    }
    .sidebar-card h3 {
      font-size: .9rem;
      font-weight: 700;
      color: var(--c-text);
      margin-bottom: 1rem;
      padding-bottom: .6rem;
      border-bottom: 1px solid var(--c-border);
    }
    .sidebar-card p {
      font-size: .85rem;
      color: var(--c-text-2);
      line-height: 1.6;
      margin: 0;
    }
    .sidebar-card a {
      color: var(--c-accent);
      text-decoration: none;
      font-weight: 500;
    }
    .sidebar-card a:hover { text-decoration: underline; }

    /* Back link */
    .back-link {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      font-size: .875rem;
      font-weight: 500;
      color: var(--c-text-2);
      text-decoration: none;
      margin-bottom: 2.5rem;
      padding: .5rem .9rem;
      border: 1px solid var(--c-border);
      border-radius: var(--radius-md);
      background: var(--c-surface);
      transition: all var(--t-fast);
    }
    .back-link:hover {
      color: var(--c-accent);
      border-color: var(--c-accent-border);
      background: var(--c-accent-soft);
      transform: translateX(-2px);
    }

    /* TMG highlight box */
    .tmg-box {
      background: var(--c-accent-soft);
      border: 1px solid var(--c-accent-border);
      border-radius: var(--radius-md);
      padding: .9rem 1.2rem;
      margin-bottom: 1.5rem;
      font-size: .82rem;
      color: var(--c-accent);
      display: flex;
      align-items: center;
      gap: .6rem;
    }

    /* Mobile adjustments */
    @media (max-width: 767.98px) {
      .subpage-header { padding: 6rem 0 2.5rem; }
      .legal-card { padding: 1.5rem; }
      .legal-label { min-width: 120px; }
      .sidebar-card { padding: 1.25rem; }
      .subpage-content { padding: 3rem 0 4rem; }
    }
    @media (max-width: 575.98px) {
      .legal-row { flex-direction: column; gap: .2rem; }
      .legal-label { min-width: unset; }
    }
    
    .subpage-header {
      background: var(--c-dark);
      padding: 7rem 0 3.5rem;
      position: relative;
      overflow: hidden;
    }
    .subpage-header::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 60% 100% at 80% 50%, rgba(3,105,161,.2) 0%, transparent 65%),
        radial-gradient(ellipse 40% 60% at 15% 60%, rgba(241,49,184,.08) 0%, transparent 60%);
    }
    .subpage-header::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
      background-size: 56px 56px;
    }
    .subpage-header-content {
      position: relative;
      z-index: 2;
    }
    .subpage-breadcrumb {
      display: flex;
      align-items: center;
      gap: .5rem;
      margin-bottom: 1.25rem;
    }
    .subpage-breadcrumb a {
      font-size: .8rem;
      font-weight: 500;
      color: rgba(255,255,255,.45);
      text-decoration: none;
      transition: color .2s;
    }
    .subpage-breadcrumb a:hover { color: rgba(255,255,255,.8); }
    .subpage-breadcrumb .sep {
      color: rgba(255,255,255,.25);
      font-size: .75rem;
    }
    .subpage-breadcrumb .current {
      font-size: .8rem;
      color: rgba(255,255,255,.6);
    }
    .subpage-header h1 {
      font-family: var(--font-display);
      font-size: clamp(2rem, 5vw, 3.25rem);
      font-weight: 800;
      color: #fff;
      letter-spacing: -.03em;
      line-height: 1.1;
      margin: 0;
    }
    .subpage-header h1 .accent { color: #f131b8; }
    .subpage-header .header-meta {
      margin-top: 1rem;
      font-size: .85rem;
      color: rgba(255,255,255,.4);
      display: flex;
      align-items: center;
      gap: .75rem;
    }
    .subpage-header .header-meta i { font-size: .75rem; }

    /* ── Content Area ────────────────────────────────────────── */
    .subpage-content {
      padding: 5rem 0 6rem;
      background: var(--c-bg);
    }

    /* Legal content card */
    .legal-card {
      background: var(--c-surface);
      border: 1px solid var(--c-border);
      border-radius: var(--radius-xl);
      padding: 2.5rem;
      margin-bottom: 1.5rem;
      transition: box-shadow var(--t-base);
    }
    .legal-card:hover { box-shadow: var(--shadow-md); }

    .legal-card-icon {
      width: 44px; height: 44px;
      border-radius: var(--radius-md);
      background: var(--c-accent-soft);
      color: var(--c-accent);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem;
      margin-bottom: 1.25rem;
      flex-shrink: 0;
    }
    .legal-card h2 {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--c-text);
      margin-bottom: 1.1rem;
      padding-bottom: .75rem;
      border-bottom: 1px solid var(--c-border);
    }
    .legal-card h3 {
      font-size: .95rem;
      font-weight: 600;
      color: var(--c-text);
      margin: 1.5rem 0 .6rem;
    }
    .legal-card h3:first-of-type { margin-top: 0; }

    .legal-row {
      display: flex;
      gap: 1rem;
      padding: .55rem 0;
      border-bottom: 1px solid var(--c-surface-2);
      font-size: .92rem;
      align-items: flex-start;
    }
    .legal-row:last-child { border-bottom: none; padding-bottom: 0; }
    .legal-label {
      font-weight: 500;
      color: var(--c-text-muted);
      min-width: 150px;
      flex-shrink: 0;
      font-size: .82rem;
      letter-spacing: .01em;
      padding-top: .05rem;
    }
    .legal-value {
      color: var(--c-text);
      line-height: 1.55;
    }
    .legal-value a {
      color: var(--c-accent);
      text-decoration: none;
    }
    .legal-value a:hover { text-decoration: underline; }

    /* Prose blocks */
    .legal-prose {
      font-size: .92rem;
      color: var(--c-text-2);
      line-height: 1.75;
    }
    .legal-prose p { margin-bottom: 1rem; }
    .legal-prose p:last-child { margin-bottom: 0; }
    .legal-prose strong { color: var(--c-text); }
    .legal-prose ul {
      padding-left: 1.25rem;
      margin-bottom: 1rem;
    }
    .legal-prose ul li { margin-bottom: .35rem; }

    /* DSGVO table */
    .dsgvo-table {
      width: 100%;
      border-collapse: collapse;
      font-size: .88rem;
      margin: .75rem 0 0;
    }
    .dsgvo-table th {
      background: var(--c-surface-2);
      color: var(--c-text);
      font-weight: 600;
      padding: .65rem .9rem;
      text-align: left;
      font-size: .8rem;
      letter-spacing: .02em;
      border-bottom: 2px solid var(--c-border);
    }
    .dsgvo-table td {
      padding: .65rem .9rem;
      border-bottom: 1px solid var(--c-border);
      color: var(--c-text-2);
      vertical-align: top;
      line-height: 1.55;
    }
    .dsgvo-table tr:last-child td { border-bottom: none; }
    .dsgvo-table td:first-child { color: var(--c-accent); font-weight: 500; white-space: nowrap; }

    /* Sidebar card */
    .sidebar-card {
      background: var(--c-surface);
      border: 1px solid var(--c-border);
      border-radius: var(--radius-lg);
      padding: 1.75rem;
      margin-bottom: 1.25rem;
    }
    .sidebar-card h3 {
      font-size: .9rem;
      font-weight: 700;
      color: var(--c-text);
      margin-bottom: 1rem;
      padding-bottom: .6rem;
      border-bottom: 1px solid var(--c-border);
    }
    .sidebar-card p {
      font-size: .85rem;
      color: var(--c-text-2);
      line-height: 1.6;
      margin: 0;
    }
    .sidebar-card a {
      color: var(--c-accent);
      text-decoration: none;
      font-weight: 500;
    }
    .sidebar-card a:hover { text-decoration: underline; }

    /* Back link */
    .back-link {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      font-size: .875rem;
      font-weight: 500;
      color: var(--c-text-2);
      text-decoration: none;
      margin-bottom: 2.5rem;
      padding: .5rem .9rem;
      border: 1px solid var(--c-border);
      border-radius: var(--radius-md);
      background: var(--c-surface);
      transition: all var(--t-fast);
    }
    .back-link:hover {
      color: var(--c-accent);
      border-color: var(--c-accent-border);
      background: var(--c-accent-soft);
      transform: translateX(-2px);
    }

    /* Intro box */
    .intro-box {
      background: var(--c-accent-soft);
      border: 1px solid var(--c-accent-border);
      border-radius: var(--radius-md);
      padding: .9rem 1.2rem;
      margin-bottom: 1.5rem;
      font-size: .82rem;
      color: var(--c-accent);
      display: flex;
      align-items: center;
      gap: .6rem;
    }

    /* Rights list */
    .rights-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .rights-list li {
      display: flex;
      gap: .85rem;
      padding: .75rem 0;
      border-bottom: 1px solid var(--c-surface-2);
      font-size: .92rem;
      align-items: flex-start;
    }
    .rights-list li:last-child { border-bottom: none; padding-bottom: 0; }
    .rights-list .right-ref {
      font-size: .78rem;
      font-weight: 700;
      color: var(--c-accent);
      background: var(--c-accent-soft);
      border: 1px solid var(--c-accent-border);
      border-radius: .35rem;
      padding: .2rem .5rem;
      white-space: nowrap;
      flex-shrink: 0;
      margin-top: .1rem;
    }
    .rights-list .right-text strong {
      display: block;
      color: var(--c-text);
      font-weight: 600;
      margin-bottom: .2rem;
    }
    .rights-list .right-text span {
      color: var(--c-text-2);
      line-height: 1.6;
    }

    /* Mobile */
    @media (max-width: 767.98px) {
      .subpage-header { padding: 6rem 0 2.5rem; }
      .legal-card { padding: 1.5rem; }
      .legal-label { min-width: 120px; }
      .sidebar-card { padding: 1.25rem; }
      .subpage-content { padding: 3rem 0 4rem; }
    }
    @media (max-width: 575.98px) {
      .legal-row { flex-direction: column; gap: .2rem; }
      .legal-label { min-width: unset; }
    }
