/* ==========================================================================
   TCLG event technology — Landing Page Styles
   Dark / cinematic / premium
   Based on the TCLG Design System (Navy + Blue + Teal, Magenta accent)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1.  Fonts  (self-hosted, no external requests)
   ------------------------------------------------------------------------
   Brand fonts per TCLG Design System:
     • Exo 2     — display / headings
     • DM Sans   — body / UI
     • DM Mono   — monospace / specs
   Sources: Google Fonts (OFL license), self-hosted from /fonts/
-------------------------------------------------------------------------- */
/* WOFF2 zuerst (alle modernen Browser), TTF als Fallback */
@font-face {
  font-family: 'Exo 2';
  src: url('fonts/Exo2-Variable.woff2') format('woff2'),
       url('fonts/Exo2-Variable.ttf')   format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('fonts/Exo2-Italic-Variable.woff2') format('woff2'),
       url('fonts/Exo2-Italic-Variable.ttf')   format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-Variable.woff2') format('woff2'),
       url('fonts/DMSans-Variable.ttf')   format('truetype-variations');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-Italic-Variable.woff2') format('woff2'),
       url('fonts/DMSans-Italic-Variable.ttf')   format('truetype-variations');
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('fonts/DMMono-Regular.woff2') format('woff2'),
       url('fonts/DMMono-Regular.ttf')   format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('fonts/DMMono-Medium.woff2') format('woff2'),
       url('fonts/DMMono-Medium.ttf')   format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('fonts/DMMono-Italic.woff2') format('woff2'),
       url('fonts/DMMono-Italic.ttf')   format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2.  Design Tokens  (mirror the TCLG design system)
-------------------------------------------------------------------------- */
:root {
  /* Brand colors */
  --color-navy-900:    #060D1E;
  --color-navy-800:    #0A1628;
  --color-navy-700:    #0D1E3A;
  --color-navy-600:    #0C2B5A;
  --color-navy-card:   #122040;
  --color-blue-primary: #0C41AB;
  --color-blue-medium:  #246AA9;
  --color-blue-steel:   #577290;
  --color-blue-light:   #7B9CC4;
  --color-blue-pale:    #B5CCEA;

  --color-teal-600: #2D8A9C;
  --color-teal-500: #48A5B5;
  --color-teal-400: #6BBFCC;
  --color-teal-200: #B3E2EA;

  --color-rose-500:    #93727B;
  --color-magenta-500: #D916C8;
  --color-magenta-400: #E861DE;

  /* Semantic */
  --bg-page:           var(--color-navy-900);
  --bg-surface:        var(--color-navy-800);
  --bg-surface-raised: var(--color-navy-700);
  --bg-card:           var(--color-navy-card);
  --bg-overlay:        rgba(6, 13, 30, 0.88);

  --fg-primary:   #ffffff;
  --fg-secondary: var(--color-blue-pale);
  --fg-muted:     var(--color-blue-light);
  --fg-dim:       var(--color-blue-steel);

  --color-brand:        var(--color-blue-primary);
  --color-brand-hover:  #1B55C8;
  --color-accent:       var(--color-teal-500);
  --color-accent-hover: var(--color-teal-400);
  --color-highlight:    var(--color-magenta-500);

  --border-default: rgba(87, 114, 144, 0.22);
  --border-hover:   rgba(72, 165, 181, 0.45);
  --border-strong:  rgba(87, 114, 144, 0.5);

  /* Typography */
  --font-display: 'Exo 2', 'Avenir Next', 'Futura', 'Helvetica Neue', system-ui, sans-serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  --font-mono:    'DM Mono', 'JetBrains Mono', 'Menlo', 'Consolas', monospace;

  /* Spacing scale (8px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   8px;
  --radius-xl:   12px;
  --radius-2xl:  16px;
  --radius-pill: 999px;

  /* Shadows / glow */
  --shadow-sm:   0 1px 4px rgba(12, 65, 171, 0.18);
  --shadow-md:   0 4px 24px rgba(6, 13, 30, 0.5);
  --shadow-lg:   0 18px 60px rgba(6, 13, 30, 0.7), 0 2px 8px rgba(12, 65, 171, 0.2);
  --shadow-glow:        0 0 32px rgba(72, 165, 181, 0.35);
  --shadow-glow-magenta:0 0 32px rgba(217, 22, 200, 0.32);

  /* Transitions */
  --t-fast:   150ms cubic-bezier(.22,.61,.36,1);
  --t-base:   240ms cubic-bezier(.22,.61,.36,1);
  --t-slow:   420ms cubic-bezier(.22,.61,.36,1);
  --t-reveal: 800ms cubic-bezier(.16,.84,.34,1);

  /* Layout */
  --container:    1240px;
  --container-wide: 1440px;
  --nav-h:        72px;
  --section-pad-y: clamp(64px, 10vw, 128px);
  --gutter:       clamp(20px, 4vw, 64px);

  /* Tweakable (overridden by JS) */
  --accent: var(--color-teal-500);
  --accent-rgb: 72, 165, 181;
  --magenta-intensity: 1;
}

/* --------------------------------------------------------------------------
   3.  Reset + Base
-------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
/* Anchor-Targets bekommen Offset für Sticky-Header (z.B. /#kontakt).
   Nur scroll-margin, kein scroll-padding — sonst stacken sich die Offsets. */
main section[id] { scroll-margin-top: calc(var(--nav-h, 72px) + 8px); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; border: none; background: none; color: inherit; cursor: pointer; }
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--color-accent-hover); }
input, textarea, select { font: inherit; color: inherit; }

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

/* ---- Skip-to-Main Link (Barrierefreiheit) ---- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  background: var(--accent);
  color: var(--color-navy-900);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.18s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---- Globale Focus-Indicator-Verbesserung (Barrierefreiheit) ----
   Sichtbarer Outline auf allen interaktiven Elementen bei Tastatur-Navigation. */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Buttons/Links: leicht ausgleichen damit Outline schön wirkt */
.btn:focus-visible,
.nav-links a:focus-visible,
.service-card:focus-visible,
.ref-card:focus-visible {
  outline-offset: 3px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--color-navy-600); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-blue-steel); }

/* --------------------------------------------------------------------------
   4.  Type helpers
-------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
.eyebrow.centered { justify-content: center; }

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.2;
}
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
}
.lead {
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.65;
  color: var(--fg-secondary);
  max-width: 56ch;
}
.muted { color: var(--fg-muted); }
.mono { font-family: var(--font-mono); }

/* highlight word in headings */
.hl-accent, .hl-grad {
  background: linear-gradient(110deg, var(--accent) 30%, var(--color-magenta-400) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* Fallback für Browser ohne background-clip */
}

/* --------------------------------------------------------------------------
   5.  Buttons
-------------------------------------------------------------------------- */
.btn[hidden] { display: none !important; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--t-base); }
.btn-primary {
  background: var(--color-brand);
  color: #fff;
  box-shadow: 0 4px 24px rgba(12, 65, 171, 0.35);
}
.btn-primary:hover {
  background: var(--color-brand-hover);
  color: #fff;
  box-shadow: 0 6px 32px rgba(12, 65, 171, 0.5);
}
.btn-primary:hover svg { transform: translateX(3px); }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.5);
}
.btn-secondary:hover {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--color-accent-hover);
  border-color: rgba(var(--accent-rgb), 0.8);
}
.btn-secondary:hover svg { transform: translateX(3px); }
.btn-ghost {
  background: transparent;
  color: var(--fg-secondary);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 36px; font-size: 15px; }

/* --------------------------------------------------------------------------
   6.  Layout helpers
-------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-pad-y); position: relative; }
.section-header { margin-bottom: clamp(48px, 6vw, 80px); }
.section-header h2 { margin-top: var(--space-3); max-width: 18ch; }
.section-header.centered { text-align: center; }
.section-header.centered h2 { margin-inline: auto; }

.row-split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   7.  Header / Nav
-------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 80;
  display: flex;
  align-items: center;
  padding-inline: var(--gutter);
  background: transparent;
  transition: background var(--t-base), backdrop-filter var(--t-base), border-color var(--t-base), height var(--t-base);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(6, 13, 30, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border-default);
  height: 64px;
}

.site-header .inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-primary);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.logo-img {
  height: 26px;
  width: auto;
  flex-shrink: 0;
  display: block;
  /* Slight lift so the brand-blue wordmark stays readable on dark navy
     without changing brand color identity. */
  filter: brightness(1.35) saturate(1.05);
}
.logo-img-lg { height: 30px; }
.logo-tagline {
  font-family: var(--font-display);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.2;
  color: var(--fg-muted);
  text-transform: uppercase;
  padding-left: 12px;
  margin-left: 4px;
  border-left: 1px solid var(--border-default);
  white-space: nowrap;
}
@media (max-width: 520px) {
  .logo-tagline { display: none; }
  .logo-img { height: 22px; }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-secondary);
  border-radius: var(--radius-md);
  transition: color var(--t-fast), background var(--t-fast);
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--accent); background: rgba(var(--accent-rgb), 0.08); }
.nav-links a.is-active { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: var(--space-3); }
.nav-cta .btn { padding: 9px 18px; font-size: 13px; }

.burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background var(--t-fast);
  z-index: 90;
}
.burger:hover { background: rgba(255,255,255,0.06); }
.burger span {
  display: block;
  position: relative;
  width: 20px; height: 2px;
  background: var(--fg-primary);
  border-radius: 2px;
  transition: transform var(--t-base), top var(--t-base), opacity var(--t-base);
}
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0;
  width: 20px; height: 2px; background: var(--fg-primary);
  border-radius: 2px;
  transition: transform var(--t-base), top var(--t-base);
}
.burger span::before { top: -6px; }
.burger span::after  { top:  6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  inset: 64px 0 0 0;
  z-index: 75;
  background: var(--bg-overlay);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  padding: var(--space-8) var(--gutter) var(--space-12);
  transform: translateY(-110%);
  transition: transform var(--t-slow);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--fg-primary);
  border-bottom: 1px solid var(--border-default);
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.mobile-menu a:hover, .mobile-menu a:focus { color: var(--accent); padding-left: 8px; }
.mobile-menu a::after {
  content: '→';
  color: var(--fg-dim);
  font-size: 18px;
}
.mobile-menu .btn { margin-top: var(--space-8); align-self: stretch; }

/* --------------------------------------------------------------------------
   8.  Hero
-------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + var(--space-12));
  padding-bottom: var(--space-20);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -10% -5% -5% -5%;
  z-index: -2;
  will-change: transform;
}
.hero-bg svg { width: 100%; height: 100%; }

/* Hero-Image: liegt zwischen Polygonen und Vignette, wird per JS aktiviert.
   Wenn aktiv, blenden wir die Polygone aus (siehe .hero.has-image). */
.hero-image {
  position: absolute; inset: 0; z-index: -3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 600ms ease;
}
.hero.has-image .hero-image { opacity: 1; z-index: -2; }
.hero.has-image .hero-bg    { display: none; }
.hero.has-image .hero-vignette {
  /* Overlay-Stärke via CSS-Variable steuerbar (per JS aus content.json).
     --hero-overlay-strength: 0 (kein Overlay) bis 1 (max Overlay).
     Default 0.5 entspricht moderatem Cinematic-Look. */
  --o: var(--hero-overlay-strength, 0.5);
  background:
    linear-gradient(105deg,
      rgba(6,13,30, calc(1.3 * var(--o))) 0%,
      rgba(6,13,30, calc(0.6 * var(--o))) 45%,
      rgba(6,13,30, calc(0.1 * var(--o))) 75%,
      rgba(6,13,30, calc(0.4 * var(--o))) 100%
    ),
    linear-gradient(180deg,
      rgba(6,13,30, calc(0.1 * var(--o))) 0%,
      rgba(6,13,30, calc(0.3 * var(--o))) 60%,
      rgba(6,13,30, calc(1.5 * var(--o))) 92%,
      var(--bg-page) 100%
    );
}
.hero-vignette {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(72,165,181, calc(0.12 * var(--magenta-intensity))) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(217, 22, 200, calc(0.12 * var(--magenta-intensity))) 0%, transparent 55%),
    linear-gradient(180deg, rgba(6,13,30,0.55) 0%, rgba(6,13,30,0.95) 90%, var(--bg-page) 100%);
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(87,114,144,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87,114,144,0.08) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  opacity: 0.6;
}

.hero-content {
  position: relative;
  max-width: 880px;
}
.hero-content .eyebrow { margin-bottom: var(--space-6); }
.hero-content h1 { margin-bottom: var(--space-6); }
.hero-content h1 .line { display: block; }
.hero-content p { margin-bottom: var(--space-10); max-width: 56ch; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--fg-secondary); line-height: 1.65; }
.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.hero-meta {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--space-12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  color: var(--fg-dim);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
.hero-scroll {
  display: inline-flex; align-items: center; gap: 10px;
  pointer-events: auto; cursor: pointer;
}
.hero-scroll-line {
  display: inline-block; width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  position: relative; overflow: hidden;
}
.hero-scroll-line::after {
  content: ''; position: absolute; inset: 0;
  background: var(--accent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 10px var(--accent); }
  50%      { box-shadow: 0 0 18px var(--accent); }
}
@keyframes scroll-line {
  0%       { transform: translateX(-100%); }
  60%,100% { transform: translateX(100%); }
}

/* Hero text fade-in on load */
.hero .stagger { opacity: 0; transform: translateY(28px); animation: fade-up 900ms cubic-bezier(.16,.84,.34,1) forwards; }
.hero .stagger:nth-child(1) { animation-delay: 100ms; }
.hero .stagger:nth-child(2) { animation-delay: 250ms; }
.hero .stagger:nth-child(3) { animation-delay: 450ms; }
.hero .stagger:nth-child(4) { animation-delay: 700ms; }
@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   9.  Services Section
-------------------------------------------------------------------------- */
.services { background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-surface) 40%, var(--bg-surface) 100%); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-5);
}
.service-card {
  grid-column: span 2;
  position: relative;
  padding: var(--space-8) var(--space-6) var(--space-6);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.22) 0%, transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(12, 65, 171, 0.20) 0%, transparent 50%),
    linear-gradient(155deg, rgba(72, 165, 181, 0.06) 0%, rgba(20, 30, 60, 0.45) 40%, var(--bg-surface-raised) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t-base), border-color var(--t-base), background var(--t-base), box-shadow var(--t-base);
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 60px rgba(var(--accent-rgb), 0.03),
    0 4px 16px rgba(0, 0, 0, 0.28);
}
/* Subtle grid pattern overlay — gives "technical" feel */
.service-card > * { position: relative; z-index: 1; }
.services-grid .service-card {
  background-image:
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.35) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(45, 107, 255, 0.30) 0%, transparent 55%),
    linear-gradient(rgba(var(--accent-rgb), 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.06) 1px, transparent 1px),
    linear-gradient(155deg, rgba(72, 165, 181, 0.10) 0%, rgba(20, 40, 90, 0.55) 50%, var(--bg-surface-raised) 100%);
  background-size: auto, auto, 40px 40px, 40px 40px, auto;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
}
/* layout: 3 in top row, 2 centered in bottom row */
.service-card:nth-child(4) { grid-column: 2 / span 2; }
.service-card:nth-child(5) { grid-column: 4 / span 2; }

/* Stronger ambient glow + corner accent on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.28) 0%, transparent 55%),
    linear-gradient(135deg, rgba(12, 65, 171, 0.22), transparent 55%);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
  z-index: -1;
}
/* Animated top edge accent line */
.service-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px -12px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(var(--accent-rgb), 0.15);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after  { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  color: var(--accent);
  margin-bottom: var(--space-6);
  transition: background var(--t-base), border-color var(--t-base);
}
.service-icon svg { width: 24px; height: 24px; stroke: currentColor; }
.service-card:hover .service-icon {
  background: rgba(var(--accent-rgb), 0.18);
  border-color: rgba(var(--accent-rgb), 0.5);
}
.service-card h3 { margin-bottom: var(--space-3); position: relative; }
.service-card p { color: var(--fg-muted); font-size: 14.5px; line-height: 1.65; margin-bottom: var(--space-6); position: relative; flex-grow: 1; }
.service-card .more {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  position: relative;
  align-self: flex-start;
}
.service-card .more svg { width: 14px; height: 14px; transition: transform var(--t-base); }
.service-card:hover .more svg { transform: translateX(4px); }

.service-num {
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: rgba(var(--accent-rgb), 0.7);
  letter-spacing: 0.12em;
  z-index: 2;
}
/* Decorative giant number watermark — inside card */
.service-card .service-num-bg {
  position: absolute;
  bottom: 8px;
  right: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 150px;
  line-height: 1;
  color: rgba(var(--accent-rgb), 0.10);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  transition: color var(--t-base), transform var(--t-base);
  z-index: 0;
  text-shadow: 0 0 40px rgba(var(--accent-rgb), 0.15);
}
.service-card:hover .service-num-bg {
  color: rgba(var(--accent-rgb), 0.18);
  transform: translateY(-4px) scale(1.05);
}

/* --------------------------------------------------------------------------
   10.  About Section
-------------------------------------------------------------------------- */
.about { background: var(--bg-surface); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-text h2 { margin-top: var(--space-3); margin-bottom: var(--space-6); }
.about-text p { color: var(--fg-secondary); font-size: 16px; line-height: 1.75; margin-bottom: var(--space-4); max-width: 56ch; white-space: pre-line; }

/* Mehrzeiliger Admin-Text: Zeilenumbrüche aus dem Admin-Panel sichtbar machen.
   Single \n → Zeilenumbruch · Leerzeile → optischer Absatz-Abstand. */
.hero-content p[data-content],
.lead[data-content],
.testimonial-quote,
.panel-body .lead,
.news-card p[data-content],
.ref-info p[data-content] {
  white-space: pre-line;
}
.about-pillars {
  margin-top: var(--space-10);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.about-pillar { padding: var(--space-5) 0; border-top: 1px solid var(--border-default); }
.about-pillar h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.about-pillar p { font-size: 13.5px; color: var(--fg-muted); margin: 0; line-height: 1.55; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.stat {
  padding: var(--space-8) var(--space-6);
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute;
  inset: auto -20% -40% auto;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18), transparent 70%);
  pointer-events: none;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  display: flex; align-items: baseline; gap: 2px;
}
.stat-num .unit { font-size: 0.45em; color: var(--fg-muted); margin-left: 4px; font-weight: 600; }
.stat-label {
  margin-top: var(--space-3);
  color: var(--fg-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.stat:nth-child(odd)  { transform: translateY(-12px); }
.stat:nth-child(2)    { transform: translateY(12px); }
.stat:nth-child(3)    { transform: translateY(-12px); }
.stat:nth-child(4)    { transform: translateY(12px); }

/* --------------------------------------------------------------------------
   10b. Trust Section (Logos + Testimonials)
-------------------------------------------------------------------------- */
.trust { background: var(--bg-page); }

.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: var(--space-8) 0;
  margin-bottom: var(--space-16);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}
.client-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--fg-secondary);
  opacity: 0.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity var(--t-base), color var(--t-base), text-shadow var(--t-base);
  cursor: default;
  position: relative;
}
.client-logo:hover {
  opacity: 1;
  color: var(--fg-primary);
  text-shadow: 0 0 24px rgba(var(--accent-rgb), 0.4);
}
/* Drop-in slot for real <img> logos later: keeps height consistent */
.client-logo img {
  height: 28px;
  width: auto;
  display: block;
  filter: grayscale(1) brightness(1.4);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.testimonial {
  position: relative;
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), 0.32) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(45, 107, 255, 0.28) 0%, transparent 55%),
    linear-gradient(155deg, rgba(72, 165, 181, 0.10) 0%, rgba(20, 40, 90, 0.50) 50%, var(--bg-surface-raised) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 60px rgba(var(--accent-rgb), 0.03),
    0 4px 16px rgba(0, 0, 0, 0.28);
}
/* Giant decorative quote mark in background */
.testimonial-mark {
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: 'Exo 2', var(--font-display);
  font-weight: 800;
  font-size: 240px !important;
  line-height: 0.65;
  color: rgba(var(--accent-rgb), 0.07) !important;
  opacity: 1 !important;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: color var(--t-base);
}
.testimonial:hover .testimonial-mark {
  color: rgba(var(--accent-rgb), 0.12) !important;
}
.testimonial > *:not(.testimonial-mark) { position: relative; z-index: 1; }
.testimonial::after {
  content: '';
  position: absolute;
  inset: auto -20% -40% auto;
  width: 70%; height: 80%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-base);
  z-index: -1;
}
/* Subtle top accent line (matches service-card style) */
.testimonial::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.5), transparent);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}
.testimonial:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px -12px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(var(--accent-rgb), 0.15);
}
.testimonial:hover::after { opacity: 1; }
.testimonial:hover::before { opacity: 1; }

/* .testimonial-mark — siehe Watermark-Regel oben */
.testimonial-quote {
  color: var(--fg-secondary);
  font-size: 15.5px;
  line-height: 1.7;
  flex-grow: 1;
  font-style: normal;
  position: relative;
}
.testimonial-quote::before { content: ''; }
.testimonial-author {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.testimonial-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--fg-primary);
}
.testimonial-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

/* --------------------------------------------------------------------------
   11.  References Section
-------------------------------------------------------------------------- */
.references { background: var(--bg-surface); }
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.ref-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-default);
  isolation: isolate;
  transition: transform var(--t-slow), border-color var(--t-base);
}
.ref-card:hover { border-color: var(--border-hover); transform: translateY(-6px); }
.ref-img {
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: transform var(--t-slow);
}
.ref-card:hover .ref-img { transform: scale(1.06); }
.ref-img svg, .ref-img .ph, .ref-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ph {
  display: flex; align-items: center; justify-content: center;
}
.ref-overlay {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg,
      rgba(6,13,30,0.35) 0%,
      rgba(6,13,30,0.15) 25%,
      rgba(6,13,30,0.55) 55%,
      rgba(6,13,30,0.95) 100%);
  transition: background var(--t-base);
}
.ref-card:hover .ref-overlay {
  background:
    linear-gradient(180deg,
      rgba(6,13,30,0.55) 0%,
      rgba(6,13,30,0.40) 30%,
      rgba(6,13,30,0.75) 60%,
      rgba(6,13,30,0.97) 100%);
}
.ref-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-6);
  z-index: 1;
}
.ref-info .ref-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  display: flex; gap: var(--space-3); align-items: center;
}
.ref-info .ref-meta .sep { color: var(--fg-dim); }
.ref-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.ref-info .ref-meta { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.ref-info p {
  color: var(--fg-secondary);
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 36ch;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-base), transform var(--t-base);
}
.ref-card:hover .ref-info p { opacity: 1; transform: translateY(0); }
.ref-info .ref-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-base) 50ms, transform var(--t-base) 50ms;
}
.ref-card:hover .ref-cta { opacity: 1; transform: translateY(0); }
.ref-info .ref-cta svg { width: 14px; height: 14px; transition: transform var(--t-base); }
.ref-card:hover .ref-cta svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   12.  News Section
-------------------------------------------------------------------------- */
.news { background: var(--bg-page); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.news-card {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--t-base), border-color var(--t-base);
  display: flex;
  flex-direction: column;
}
.news-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.news-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-default);
}
.news-thumb .ph { width: 100%; height: 100%; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-tag {
  position: absolute;
  top: var(--space-4); left: var(--space-4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: rgba(6, 13, 30, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: var(--accent);
}
.news-body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex-grow: 1;
}
.news-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.news-card h3 { font-size: 1.18rem; line-height: 1.25; }
.news-card p { color: var(--fg-muted); font-size: 14px; line-height: 1.6; }
.news-card .more {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  margin-top: auto;
  padding-top: var(--space-2);
}
.news-card .more svg { width: 14px; height: 14px; transition: transform var(--t-base); }
.news-card:hover .more svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   13.  Contact Section
-------------------------------------------------------------------------- */
.contact {
  background: linear-gradient(180deg, var(--bg-page) 0%, #04091A 100%);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60%; height: 80%;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.16), transparent 60%);
  pointer-events: none;
}
.contact::after {
  content: '';
  position: absolute;
  inset: auto auto -20% -10%;
  width: 50%; height: 70%;
  background: radial-gradient(ellipse, rgba(217, 22, 200, calc(0.14 * var(--magenta-intensity))), transparent 60%);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  position: relative;
}
.contact-info-list { list-style: none; margin-top: var(--space-10); display: grid; gap: var(--space-6); }
.contact-info-list li { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-info-list .icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
}
.contact-info-list .icon svg { width: 16px; height: 16px; }
.contact-info-list .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 2px;
}
.contact-info-list .value { color: var(--fg-primary); font-size: 15px; white-space: pre-line; }
.contact-info-list a.value { color: var(--fg-primary); }
.contact-info-list a.value:hover { color: var(--accent); }

/* Form */
.contact-form {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-lg);
}
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: var(--space-6);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.form-row.single { grid-template-columns: 1fr; }
.field { position: relative; }
.field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: block;
  margin-bottom: 6px;
}
.field label .req { color: var(--color-highlight); }
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  color: var(--fg-primary);
  font-size: 15px;
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  font-family: var(--font-body);
}
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: var(--border-strong); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
  background: var(--bg-page);
}
.field input.is-invalid,
.field textarea.is-invalid,
.field select.is-invalid { border-color: var(--color-highlight); box-shadow: 0 0 0 3px rgba(217, 22, 200, 0.16); }
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-dim); }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B9CC4' stroke-width='2'><polyline points='6 9 12 15 18 9'></polyline></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

.field input[type="date"] { color-scheme: dark; }

.file-drop {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 18px;
  background: var(--bg-card);
  border: 1.5px dashed var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  position: relative;
  margin-bottom: var(--space-3);
}
.file-drop:hover { border-color: var(--border-hover); }
.file-drop.is-drag { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.06); }
.file-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  flex-shrink: 0;
}
.file-drop .icon svg { width: 18px; height: 18px; }
.file-drop .file-label { font-size: 14px; color: var(--fg-secondary); }
.file-drop .file-label small { display: block; color: var(--fg-dim); font-size: 12px; margin-top: 2px; }
.file-drop .file-name { color: var(--accent); font-weight: 500; }

.checkbox-row {
  display: flex; gap: var(--space-3);
  align-items: flex-start;
  margin: var(--space-4) 0 var(--space-6);
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.55;
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg-card);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background var(--t-fast), border-color var(--t-fast);
  margin-top: 1px;
}
.checkbox-row input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 6px; height: 11px;
  border: solid #04091A;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-row input[type="checkbox"].is-invalid {
  border-color: var(--color-highlight);
  box-shadow: 0 0 0 3px rgba(217, 22, 200, 0.16);
}
.checkbox-row a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.form-success {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  animation: fade-up 700ms ease-out;
}
.form-success .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(72, 165, 181, 0.15);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: var(--space-6);
}
.form-success .check svg { width: 28px; height: 28px; }
.form-success h3 { font-size: 1.5rem; margin-bottom: var(--space-3); }
.form-success p { color: var(--fg-muted); max-width: 38ch; margin: 0 auto; }

.form-error {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: 8px;
  background: rgba(217, 22, 200, 0.08);
  border: 1px solid rgba(217, 22, 200, 0.35);
  color: #ff8de2;
  font-size: 0.9rem;
}
#formSubmit[disabled] { opacity: .65; cursor: progress; }

/* ─────────── Kontakt-Karte (Leaflet) ─────────── */
.contact-map {
  width: 100%;
  height: 280px;
  margin-top: var(--space-6);
  border-radius: 14px;
  border: 1px solid var(--border-default);
  overflow: hidden;
  background: var(--bg-card);
  /* Subtile fade-out edges für Cinematic-Look */
  position: relative;
  isolation: isolate;
}
.contact-map .leaflet-container {
  background: #0A1530;
  font-family: var(--font-sans);
}
.contact-map .leaflet-control-attribution {
  background: rgba(6, 13, 30, 0.85);
  color: var(--fg-muted);
  font-size: 10px;
  padding: 2px 6px;
}
.contact-map .leaflet-control-attribution a { color: var(--accent); }
.contact-map .leaflet-control-zoom a {
  background: rgba(11, 21, 48, 0.95);
  color: var(--fg-primary);
  border: 1px solid var(--border-default);
}
.contact-map .leaflet-control-zoom a:hover {
  background: var(--bg-card);
  color: var(--accent);
}
.contact-map .leaflet-popup-content-wrapper,
.contact-map .leaflet-popup-tip {
  background: var(--bg-card);
  color: var(--fg-primary);
  border: 1px solid var(--border-default);
}
.contact-map .leaflet-popup-content {
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 14px;
}
.contact-map .leaflet-popup-content strong { color: var(--accent); }
.contact-map .leaflet-popup-close-button { color: var(--fg-muted); }

/* Custom Brand-Marker */
.tclg-marker { background: transparent; border: none; }
.tclg-marker-pin {
  width: 40px; height: 50px;
  color: var(--accent);
  filter: drop-shadow(0 4px 8px rgba(72, 165, 181, 0.5));
  animation: pin-bounce 1.2s ease-out;
}
.tclg-marker-pin svg { width: 100%; height: 100%; }
@keyframes pin-bounce {
  0%   { transform: translateY(-30px); opacity: 0; }
  60%  { transform: translateY(6px); opacity: 1; }
  80%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

.map-route-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-3);
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t-fast);
}
.map-route-link:hover { color: var(--fg-primary); }
.map-route-link svg { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   14.  Footer
-------------------------------------------------------------------------- */
.site-footer {
  background: #04091A;
  border-top: 1px solid var(--border-default);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
.footer-brand p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-top: var(--space-4);
  max-width: 32ch;
}

/* Social Media Icons */
.social-list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.social-list:empty { display: none; }
.social-list a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--t-fast);
}
.social-list a:hover {
  color: var(--fg-primary);
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  transform: translateY(-2px);
}
.social-list svg {
  width: 16px;
  height: 16px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; display: grid; gap: var(--space-2); }
.footer-col a { color: var(--fg-muted); font-size: 14px; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--fg-primary); }
.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-default);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--fg-dim);
}
.footer-bottom .legal { display: flex; gap: var(--space-6); }
.footer-bottom a { color: var(--fg-dim); }
.footer-bottom a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   15.  Service Detail (slide-in panel from right)
-------------------------------------------------------------------------- */
.panel-backdrop {
  position: fixed; inset: 0;
  background: rgba(2, 6, 18, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 100;
  pointer-events: none;
  transition: background var(--t-slow), backdrop-filter var(--t-slow);
}
.panel-backdrop.is-open {
  background: rgba(2, 6, 18, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}
.panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(640px, 100vw);
  background: var(--bg-surface);
  border-left: 1px solid var(--border-default);
  z-index: 110;
  transform: translateX(102%);
  transition: transform var(--t-slow);
  display: flex;
  flex-direction: column;
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.panel.is-open { transform: translateX(0); }

.panel-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  overflow: hidden;
  flex-shrink: 0;
}
.panel-hero .ph { width: 100%; height: 100%; }
/* Wenn Bild gesetzt: .ph wird zum Cover-Background */
.panel-hero .ph.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.panel-hero::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(6,13,30,0.6) 80%, var(--bg-surface) 100%);
}
.panel-close {
  position: absolute;
  top: var(--space-4); right: var(--space-4);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(6, 13, 30, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-default);
  color: var(--fg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  z-index: 2;
}
.panel-close:hover {
  background: rgba(217, 22, 200, 0.2);
  border-color: var(--color-highlight);
  transform: rotate(90deg);
}
.panel-close svg { width: 18px; height: 18px; }

.panel-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: var(--space-8) clamp(28px, 4vw, 48px) var(--space-8);
}
.panel-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.panel-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: var(--space-5); }
.panel-body .lead { color: var(--fg-secondary); font-size: 16px; margin-bottom: var(--space-8); line-height: 1.7; max-width: none; }

.panel-features {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.panel-features li {
  display: flex;
  gap: var(--space-3);
  padding: 16px 18px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  line-height: 1.5;
}
.panel-features li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
  box-shadow: 0 0 8px var(--accent);
}
.panel-features strong { font-family: var(--font-display); font-weight: 600; color: var(--fg-primary); display: block; margin-bottom: 2px; }
.panel-features span.muted { display: block; color: var(--fg-muted); font-size: 13.5px; }

.panel-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.panel-spec {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}
.panel-spec .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.panel-spec .value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--fg-primary);
}

.panel-cta {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-6) clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--border-default);
  background: var(--bg-surface-raised);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.panel-cta .btn {
  flex: 1 1 100%;          /* default: volle Breite (stacked) */
  min-width: 0;            /* erlaubt Schrumpfen unter intrinsic width */
  white-space: normal;     /* lange Beschriftungen dürfen umbrechen */
  text-align: center;
}
@media (min-width: 520px) {
  .panel-cta .btn { flex: 1 1 0; }  /* ab 520px nebeneinander */
}

/* --------------------------------------------------------------------------
   16.  Reference Modal (centered)
-------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0;
  z-index: 120;
  background: rgba(2, 6, 18, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  pointer-events: none;
  transition: background var(--t-slow), backdrop-filter var(--t-slow);
}
.modal-backdrop.is-open {
  background: rgba(2, 6, 18, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
}
.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  width: min(900px, 100%);
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.96) translateY(20px);
  opacity: 0;
  transition: transform var(--t-slow), opacity var(--t-slow);
  box-shadow: var(--shadow-lg);
}
.modal-backdrop.is-open .modal { transform: scale(1) translateY(0); opacity: 1; }

.modal-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-card);
}
.modal-hero .ph { width: 100%; height: 100%; }
.modal-close {
  position: absolute;
  top: var(--space-4); right: var(--space-4);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(6, 13, 30, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-default);
  color: var(--fg-primary);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: background var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}
.modal-close:hover { background: rgba(217, 22, 200, 0.2); border-color: var(--color-highlight); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }

.modal-body {
  padding: var(--space-8) clamp(28px, 4vw, 48px) var(--space-10);
  overflow-y: auto;
}
.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.modal-meta .sep { color: var(--fg-dim); }
.modal-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: var(--space-5); }
.modal-body p { color: var(--fg-secondary); margin-bottom: var(--space-5); line-height: 1.7; }
.modal-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-default);
}
.modal-facts > div .label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 4px;
}
.modal-facts > div .val {
  font-family: var(--font-display); font-weight: 600;
  font-size: 16px; color: var(--fg-primary);
}

/* --------------------------------------------------------------------------
   17.  Cookie banner
-------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 95;
  max-width: 520px;
  background: rgba(13, 30, 58, 0.92);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-lg);
  transform: translateY(140%);
  transition: transform var(--t-slow);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  display: flex; gap: var(--space-2); align-items: center;
}
.cookie-banner h4 svg { width: 16px; height: 16px; color: var(--accent); }
.cookie-banner p { font-size: 13px; color: var(--fg-muted); line-height: 1.6; }
.cookie-banner p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: 13px; flex: 1; min-width: 0; }

/* Cookie-Modal (Detail-Einstellungen) */
.cookie-modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 9, 26, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 220ms ease;
}
/* Wichtig: hidden-Attribut MUSS display: grid überschreiben — sonst fängt das
   unsichtbare Backdrop alle Klicks auf der ganzen Seite ab. */
.cookie-modal-backdrop[hidden] {
  display: none !important;
}
.cookie-modal-backdrop.is-open { opacity: 1; }
.cookie-modal {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  background: linear-gradient(180deg, #0F1B38 0%, #0B1530 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  display: flex; flex-direction: column;
  transform: translateY(8px);
  transition: transform 220ms ease;
}
.cookie-modal-backdrop.is-open .cookie-modal { transform: translateY(0); }
.cookie-modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cookie-modal-head h3 { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.cookie-modal-close {
  background: transparent; border: 0; color: var(--fg-muted);
  cursor: pointer; padding: 4px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 6px;
}
.cookie-modal-close:hover { background: rgba(255,255,255,0.06); color: var(--fg); }
.cookie-modal-close svg { width: 18px; height: 18px; }
.cookie-modal-body {
  padding: var(--space-5) var(--space-6);
  overflow-y: auto;
  flex: 1;
}
.cookie-modal-body > p { font-size: 13.5px; color: var(--fg-muted); line-height: 1.6; margin: 0 0 var(--space-5); }
.cookie-category {
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.cookie-category:first-of-type { border-top: 0; padding-top: 0; }
.cookie-toggle {
  display: flex; align-items: center; gap: var(--space-3);
  cursor: pointer;
  user-select: none;
}
.cookie-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.cookie-switch {
  flex-shrink: 0;
  width: 40px; height: 22px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  position: relative;
  transition: background 180ms ease;
}
.cookie-switch::before {
  content: ''; position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 180ms ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.cookie-toggle input:checked + .cookie-switch { background: var(--primary, #2D6BFF); }
.cookie-toggle input:checked + .cookie-switch::before { transform: translateX(18px); }
.cookie-toggle input:disabled + .cookie-switch { opacity: 0.7; cursor: not-allowed; }
.cookie-label { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cookie-label strong { font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.cookie-label small { font-size: 12px; color: var(--fg-muted); }
.cookie-desc {
  margin: var(--space-2) 0 0 52px;
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.55;
}
.cookie-modal-foot {
  display: flex; gap: var(--space-3); flex-wrap: wrap;
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cookie-modal-foot .btn { padding: 10px 18px; font-size: 13px; flex: 1; min-width: 0; }

@media (max-width: 520px) {
  .cookie-desc { margin-left: 0; }
  .cookie-modal-foot { flex-direction: column; }
  .cookie-modal-foot .btn { flex: none; width: 100%; }
}

/* --------------------------------------------------------------------------
   18.  Tweaks Panel
-------------------------------------------------------------------------- */
.tweaks {
  position: fixed;
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 130;
  width: 280px;
  background: rgba(13, 30, 58, 0.95);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-5) var(--space-6);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: var(--space-4);
  font-size: 13px;
}
.tweaks.is-open { display: flex; }
.tweaks-header {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-default);
}
.tweaks-header .close {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  color: var(--fg-muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.tweaks-header .close:hover { background: rgba(255,255,255,0.1); color: var(--fg-primary); }
.tweaks-header .close svg { width: 12px; height: 12px; }
.tweak-group { display: flex; flex-direction: column; gap: var(--space-3); }
.tweak-group .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.swatch-row { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--t-fast), border-color var(--t-fast);
  position: relative;
}
.swatch:hover { transform: scale(1.1); }
.swatch.is-active { border-color: #fff; }
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 3px;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
}
.segmented button {
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  border-radius: 4px;
  transition: background var(--t-fast), color var(--t-fast);
}
.segmented button.is-active { background: rgba(var(--accent-rgb), 0.18); color: var(--accent); }
.segmented button:hover { color: var(--fg-primary); }

input[type="range"].slider {
  appearance: none; -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--bg-page);
  border-radius: 999px;
  outline: none;
}
input[type="range"].slider::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.2);
  transition: box-shadow var(--t-fast);
}
input[type="range"].slider::-webkit-slider-thumb:hover { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.3); }
input[type="range"].slider::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

.tweaks-trigger {
  position: fixed;
  bottom: var(--gutter);
  right: var(--gutter);
  width: 48px; height: 48px;
  background: rgba(13, 30, 58, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  z-index: 125;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}
.tweaks-trigger:hover { background: rgba(13, 30, 58, 1); transform: rotate(45deg); border-color: var(--accent); }
.tweaks-trigger svg { width: 18px; height: 18px; }
.tweaks-trigger.is-hidden { display: none; }

/* --------------------------------------------------------------------------
   19.  Reveal animations (Intersection Observer driven)
-------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-reveal), transform var(--t-reveal);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity var(--t-reveal), transform var(--t-reveal); }
.reveal-stagger.is-in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: 60ms; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 140ms; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 220ms; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 380ms; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 460ms; }

/* --------------------------------------------------------------------------
   20.  Placeholder visuals (low-poly + gradients)
-------------------------------------------------------------------------- */
.ph {
  position: relative;
  background:
    radial-gradient(circle at 30% 30%, rgba(72, 165, 181, 0.22), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(12, 65, 171, 0.35), transparent 55%),
    linear-gradient(135deg, #0A1628 0%, #122040 50%, #0D1E3A 100%);
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: auto var(--space-4) var(--space-4) var(--space-4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  pointer-events: none;
}
.ph svg.polypattern {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   21.  Responsive
-------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .burger { display: inline-flex; }
  .nav-cta { gap: var(--space-2); }
  .nav-cta .btn-primary { padding: 8px 14px; font-size: 12px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { grid-column: span 1; min-height: 280px; }
  .service-card:nth-child(4) { grid-column: span 1; }
  .service-card:nth-child(5) { grid-column: 1 / -1; }

  .about-grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .stats { max-width: 640px; margin: 0 auto; }
  .about-pillars { grid-template-columns: repeat(2, 1fr); }

  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .testimonials { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .client-logos { gap: var(--space-6) var(--space-10); }
}

@media (max-width: 640px) {
  :root {
    --section-pad-y: 80px;
  }
  .hero { padding-top: calc(64px + var(--space-8)); }
  .hero-meta { font-size: 10px; flex-direction: column; align-items: flex-start; gap: var(--space-3); bottom: var(--space-6); }
  .hero-meta .hide-mobile { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) { grid-column: span 1; min-height: auto; }

  .about-pillars { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat:nth-child(odd), .stat:nth-child(even) { transform: none; }

  .ref-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-3); }

  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: var(--space-4); }
  .cookie-actions { flex-direction: column; }

  .tweaks { left: 12px; right: 12px; bottom: 80px; width: auto; }
  .tweaks-trigger { right: 12px; bottom: 12px; }
}

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