/* ==========================================================================
   Rauch-Connect — Monochromes Theme (Logo-inspiriert)
   Dark & Light Mode · Geometrisch · Professionell
   ========================================================================== */

:root {
  --font-display: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-xs: clamp(0.5rem, 0.4rem + 0.3vw, 0.75rem);
  --space-sm: clamp(0.75rem, 0.6rem + 0.5vw, 1.25rem);
  --space-md: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  --space-lg: clamp(2.5rem, 1.5rem + 3vw, 5rem);
  --space-xl: clamp(4rem, 2.5rem + 5vw, 7.5rem);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 72px;
  --header-offset: 1rem;
}

/* ---------- Dark Mode (Standard) ---------- */
[data-theme="dark"] {
  --bg: #000000;
  --bg-subtle: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;

  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --text-dim: #737373;

  --accent: #e5e5e5;
  --accent-soft: rgba(229, 229, 229, 0.12);
  --accent-border: rgba(255, 255, 255, 0.14);
  --accent-border-strong: rgba(255, 255, 255, 0.28);

  --logo-filter: brightness(0) invert(1);
  --header-bg: rgba(10, 10, 10, 0.82);
  --header-scrolled: rgba(0, 0, 0, 0.94);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --grid-line: rgba(255, 255, 255, 0.07);
  --btn-primary-bg: #f5f5f5;
  --btn-primary-text: #0a0a0a;
  --btn-primary-hover: #ffffff;
  --map-filter: invert(0.92) hue-rotate(180deg) brightness(0.75);
}

/* ---------- Light Mode ---------- */
[data-theme="light"] {
  --bg: #fafafa;
  --bg-subtle: #f0f0f0;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f5;

  --text: #0a0a0a;
  --text-muted: #525252;
  --text-dim: #737373;

  --accent: #171717;
  --accent-soft: rgba(0, 0, 0, 0.06);
  --accent-border: rgba(0, 0, 0, 0.1);
  --accent-border-strong: rgba(0, 0, 0, 0.2);

  --logo-filter: none;
  --header-bg: rgba(255, 255, 255, 0.88);
  --header-scrolled: rgba(255, 255, 255, 0.96);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  --grid-line: rgba(0, 0, 0, 0.085);
  --btn-primary-bg: #0a0a0a;
  --btn-primary-text: #fafafa;
  --btn-primary-hover: #262626;
  --map-filter: none;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--header-offset) * 2 + 1rem);
  background: var(--bg);
  min-height: 100%;
  transition: background 0.35s ease;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: transparent;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: color 0.35s ease;
  position: relative;
  z-index: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 110% 80% at 50% 0%, black 25%, transparent 92%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 1.8rem + 2.2vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.35rem); }

p { color: var(--text-muted); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.container--wide {
  max-width: min(1440px, 96vw);
}

.section-leistungen .section-head {
  max-width: 820px;
  margin-inline: auto;
}
.section-leistungen .cards-grid {
  gap: clamp(1rem, 1.4vw, 1.75rem);
}
.section-leistungen .service-card-media img {
  aspect-ratio: 4 / 3;
}
@media (min-width: 1200px) {
  .section-leistungen .service-card__body {
    padding: 1.35rem 1.25rem 1.5rem;
  }
  .section-leistungen .service-card h3 {
    font-size: 1.12rem;
  }
}

section { position: relative; }
section[id] {
  scroll-margin-top: calc(var(--header-h) + var(--header-offset) + 1.25rem);
}
.section-pad { padding: var(--space-xl) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--space-sm);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section-head { max-width: 680px; margin-bottom: var(--space-lg); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead {
  margin-top: var(--space-sm);
  max-width: 620px;
  margin-inline: auto;
  font-size: 1.02rem;
  line-height: 1.55;
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--text);
  transition: transform 0.3s var(--ease-spring), background 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  transform: scale(1.06);
  border-color: var(--accent-border-strong);
  background: var(--bg-card-hover);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  transition: transform 0.3s var(--ease-spring), background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid transparent;
}
.btn-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent-border-strong);
}
.btn-outline:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid var(--accent-border);
}
.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-border-strong);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: var(--header-offset);
  left: 1rem;
  right: 1rem;
  width: auto;
  max-width: 1180px;
  margin-inline: auto;
  transform: none;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-radius: var(--radius-md);
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow);
  overflow: visible;
  transition: top 0.4s var(--ease-out), background 0.4s ease, border-color 0.4s ease;
}

.site-header.is-scrolled {
  top: 0.5rem;
  background: var(--header-scrolled);
  border-color: var(--accent-border-strong);
}

.site-header .container,
.site-header .header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-sm);
  padding: 0 1.25rem;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  justify-self: start;
  min-width: 0;
  transition: opacity 0.3s ease;
}
.brand:hover { opacity: 0.85; }
.brand img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  filter: var(--logo-filter);
  transition: filter 0.35s ease;
}
.ascii-logo-frame {
  position: absolute;
  right: clamp(-10rem, -8vw, -4rem);
  top: clamp(5.5rem, 16vh, 9rem);
  z-index: 1;
  pointer-events: none;
  overflow: visible;
  transform: scale(clamp(0.46, 0.38 + 0.9vw, 0.82));
  transform-origin: top right;
}
.ascii-logo-frame .ascii {
  display: inline-block !important;
  margin: 0;
  padding: 0;
  border: none !important;
  background: transparent !important;
  color: #000000 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  white-space: pre !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 0.34;
}
[data-theme="dark"] .ascii-logo-frame .ascii {
  filter: invert(1) brightness(1.05);
  opacity: 0.28;
}
[data-theme="light"] .ascii-logo-frame .ascii {
  filter: none;
  opacity: 0.3;
}
.brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Hauptnavigation ---------- */
.main-nav {
  justify-self: center;
  position: relative;
  z-index: 1310;
  overflow: visible;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  overflow: visible;
}

.nav-link,
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--text-muted);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.nav-dropdown-trigger:hover {
  color: var(--text);
  background: var(--bg-card-hover);
}

.nav-link.active,
.nav-dropdown-trigger.active,
.nav-dropdown.is-open .nav-dropdown-trigger {
  color: var(--text);
  background: var(--bg-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .nav-link.active,
[data-theme="light"] .nav-dropdown-trigger.active,
[data-theme="light"] .nav-dropdown.is-open .nav-dropdown-trigger {
  background: var(--bg-elevated);
}

.nav-chevron {
  width: 14px;
  height: 14px;
  opacity: 0.65;
  transition: transform 0.3s var(--ease-out);
}
.nav-dropdown.is-open .nav-chevron { transform: rotate(180deg); }

.nav-dropdown { position: relative; }

/* Unsichtbare Brücke zwischen Trigger und Menü – verhindert sofortiges Schließen */
.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.85rem;
  display: none;
}

@media (min-width: 1021px) {
  .nav-dropdown::after { display: block; }
}

/* Nested Tools submenu under Leistungen */
.nav-submenu {
  position: relative;
}

.nav-submenu-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-submenu-trigger:hover,
.nav-submenu.is-open .nav-submenu-trigger,
.nav-submenu-trigger.active {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-chevron--sub {
  width: 14px;
  height: 14px;
  opacity: 0.65;
  transition: transform 0.25s var(--ease-out);
}

@media (min-width: 1021px) {
  .nav-chevron--sub {
    transform: rotate(-90deg);
  }

  .nav-submenu.is-open .nav-chevron--sub {
    transform: rotate(-90deg);
  }

  .nav-submenu-menu {
    position: absolute;
    top: 0;
    left: calc(100% + 0.35rem);
    min-width: 200px;
    padding: 0.4rem;
    border-radius: var(--radius-md);
    background: var(--header-scrolled);
    border: 1px solid var(--accent-border-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1410;
  }

  .nav-submenu.is-open .nav-submenu-menu,
  .nav-submenu:hover .nav-submenu-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Hover bridge */
  .nav-submenu-menu::before {
    content: "";
    position: absolute;
    left: -0.5rem;
    top: 0;
    bottom: 0;
    width: 0.55rem;
  }
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  transform: translateY(6px);
  min-width: 220px;
  padding: 0.4rem;
  border-radius: var(--radius-md);
  background: var(--header-scrolled);
  border: 1px solid var(--accent-border-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out), visibility 0.25s;
  z-index: 1400;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.85rem;
  height: 0.85rem;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 1021px) {
  .nav-dropdown.is-open .nav-dropdown-menu {
    transform: translateY(0);
  }
}

.nav-dropdown-item {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-dropdown-item:hover {
  color: var(--text);
  background: var(--accent-soft);
}
.nav-dropdown-item.active {
  color: var(--text);
  background: var(--bg-card);
}

.nav-backdrop {
  display: none;
}

.nav-mobile-actions {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
  position: relative;
  z-index: 1301;
  flex-shrink: 0;
}

.lang-dropdown {
  position: relative;
  flex-shrink: 0;
  z-index: 1400;
}

.lang-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 48px;
  min-height: 40px;
  height: 40px;
  padding: 0 0.4rem 0 0.35rem;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lang-dropdown-toggle .lang-code {
  display: none;
}

.lang-dropdown-toggle .lang-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.lang-dropdown-toggle .lang-chevron {
  display: block;
  width: 12px;
  height: 12px;
  opacity: 0.75;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.lang-dropdown-toggle:hover,
.lang-dropdown.is-open .lang-dropdown-toggle {
  border-color: var(--accent-border-strong);
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--text) 8%);
}

.lang-flag {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
}

.lang-code {
  display: none;
}

.lang-chevron {
  width: 12px;
  height: 12px;
  opacity: 0.7;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.lang-dropdown.is-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 0;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  border-radius: 12px;
  border: 1px solid var(--accent-border);
  background: var(--bg-elevated, var(--bg));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  z-index: 1500;
}

.lang-dropdown-menu[hidden] {
  display: none;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 44px;
  min-height: 40px;
  padding: 0.35rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.lang-option .lang-flag {
  font-size: 1.25rem;
}

.lang-option:hover {
  background: var(--accent-soft);
}

.lang-option.is-active {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}

.legal-lang-note {
  display: none;
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 42rem;
}

[data-lang="en"] .legal-lang-note {
  display: block;
}


.btn-header {
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  min-height: 40px;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 1302;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  transition: background 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
}
.menu-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-border-strong);
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.35s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + var(--header-offset) * 2 + 2rem);
  overflow: hidden;
}

.hero-accent {
  position: absolute;
  right: -6%;
  top: 10%;
  width: min(50vw, 520px);
  height: auto;
  object-fit: contain;
  opacity: 0.12;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
[data-theme="light"] .hero-accent {
  opacity: 0.1;
  filter: grayscale(1);
}
[data-theme="dark"] .hero-accent {
  opacity: 0.16;
  filter: brightness(0) invert(1);
}

.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 720px; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--accent-border);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-md);
  color: var(--text-dim);
  animation: fade-up 0.8s var(--ease-out) both;
}
.hero-kicker .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin-bottom: var(--space-sm);
  animation: fade-up 0.8s var(--ease-out) 0.1s both;
}
.hero h1 .accent {
  color: var(--text-dim);
  font-weight: 600;
}

.hero-lead {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.15rem);
  max-width: 560px;
  margin-bottom: var(--space-lg);
  animation: fade-up 0.8s var(--ease-out) 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  animation: fade-up 0.8s var(--ease-out) 0.3s both;
}
.hero-actions .btn svg {
  width: 18px;
  height: 18px;
}

.nav-mobile-actions .btn {
  white-space: nowrap;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--accent-border);
  animation: fade-up 0.8s var(--ease-out) 0.4s both;
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text);
}
.hero-stats .stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

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

.scroll-cue {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-cue .line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Page Hero ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + var(--header-offset) * 2 + var(--space-xl));
  padding-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}
.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: var(--space-sm);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.page-hero .breadcrumb a:hover { color: var(--text); }
.page-hero p.lead {
  max-width: 620px;
  font-size: 1.05rem;
  margin-top: var(--space-sm);
}
.page-hero .hero-actions { margin-top: var(--space-md); }

.page-hero--split .page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.page-hero-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow);
  line-height: 0;
}
.page-hero-media__frame {
  overflow: hidden;
  border-radius: inherit;
}
.page-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: var(--space-sm);
}
.page-hero-icon img,
.page-hero-icon svg {
  width: min(100%, 280px);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.12));
}
.page-hero-media--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  padding: var(--space-md);
  margin-inline: auto;
}
.page-hero-media--icon img {
  width: min(100%, 280px);
  max-width: 280px;
  aspect-ratio: 1;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}
.page-hero-media img,
.page-hero-media__frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-card-media {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 1px solid var(--accent-border);
  background: var(--bg-elevated);
  flex-shrink: 0;
  line-height: 0;
}
.service-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-card__body {
  position: relative;
  z-index: 1;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  background: var(--bg-card);
}

/* ---------- Service Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  align-items: stretch;
}
.cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid > *,
.values-grid > *,
.process-grid > *,
.testimonials-grid > * {
  min-width: 0;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 0;
  transition: transform 0.4s var(--ease-spring), border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-border-strong);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow);
}
.service-card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text);
  margin-bottom: var(--space-sm);
  transition: transform 0.4s var(--ease-spring);
}
.card-icon svg { width: 22px; height: 22px; }
.service-card:hover .card-icon { transform: scale(1.08); }

.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { font-size: 0.93rem; flex-grow: 1; }
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-sm);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  transition: gap 0.3s var(--ease-out);
}
.service-card .card-link svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.service-card:hover .card-link { gap: 0.65rem; }
.service-card:hover .card-link svg { transform: translateX(3px); }

/* ---------- Split Layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease-out);
  margin: 0;
  background: var(--bg-card);
}
.split-media:hover { transform: scale(1.01); }
.split-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  display: block;
}
.split-media__frame {
  overflow: hidden;
  line-height: 0;
  background: var(--bg-elevated);
}
.split-media__frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  display: block;
}
.split-media--wide img { aspect-ratio: 16 / 9; }
@media (max-width: 767px) {
  .split-media--wide,
  .split-media--wide img {
    max-height: 280px;
    object-fit: cover;
  }
}
.split-media figcaption {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-dim);
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--accent-border);
  background: var(--bg-card);
}

.visual-block {
  aspect-ratio: 4/3;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.visual-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--accent-soft) 25%, transparent 25%),
    linear-gradient(225deg, var(--accent-soft) 25%, transparent 25%),
    linear-gradient(45deg, var(--accent-soft) 25%, transparent 25%),
    linear-gradient(315deg, var(--accent-soft) 25%, transparent 25%);
  background-size: 24px 24px;
  opacity: 0.5;
}
.visual-block img {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  filter: var(--logo-filter);
  opacity: 0.35;
}

.split-text p { margin-bottom: var(--space-sm); }
.split-text .tagline {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  font-size: 1.02rem;
  margin-top: var(--space-sm);
}

/* ---------- Value Cards ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.value-card {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  transition: transform 0.4s var(--ease-spring), background 0.4s ease, border-color 0.4s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--accent-border-strong);
}
.value-card .num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-dim);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.value-card h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.value-card p { font-size: 0.92rem; }

/* ---------- Projects ---------- */
.section-projects {
  border-top: 1px solid var(--accent-border);
  border-bottom: 1px solid var(--accent-border);
}
.section-projects .section-head {
  max-width: 42rem;
  margin-bottom: var(--space-lg);
}
.section-projects .section-head .lead {
  margin-top: var(--space-sm);
  font-size: 1.02rem;
  line-height: 1.55;
}

.projects-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-border);
  background: var(--bg-card);
  padding: 1.5rem;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease-spring);
}
.project-card:hover {
  border-color: var(--accent-border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.project-card--hidden {
  display: none;
}
.projects-grid.is-expanded .project-card--hidden {
  display: block;
}

.project-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.project-badge svg {
  width: 0.75rem;
  height: 0.75rem;
}
.project-badge--featured::before {
  content: "★";
  font-size: 0.68rem;
  line-height: 1;
}
.project-badge--featured {
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid var(--accent-border);
}
.project-badge--nda {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--accent-border);
}
.project-category {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.project-card h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  hyphens: auto;
}
.project-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  hyphens: auto;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: gap 0.25s ease, opacity 0.25s ease;
}
.project-link::after {
  content: "↗";
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.75;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.project-link svg {
  width: 0.9rem;
  height: 0.9rem;
}
.project-link:hover {
  gap: 0.6rem;
  opacity: 0.8;
}
.project-link:hover::after {
  transform: translate(1px, -1px);
  opacity: 1;
}

.projects-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-md);
}
.projects-toggle {
  min-width: 220px;
}

/* ---------- Partners ---------- */
.partners-band {
  background: var(--bg-subtle);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--accent-border);
  border-bottom: 1px solid var(--accent-border);
}
.partners-band p.lead { max-width: 640px; }
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.partner-logos .partner-card {
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-spring), opacity 0.3s ease;
}

.partner-logos .partner-card:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}

.partner-logos .partner-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(220px, 42vw);
  height: clamp(48px, 8vw, 64px);
}

.partner-logos .partner-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* ---------- Partner Page ---------- */
.partner-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  align-items: stretch;
}
.partner-detail-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-border);
  background: var(--bg-card);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--ease-spring);
}
.partner-detail-card:hover {
  border-color: var(--accent-border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.partner-detail-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--accent-border);
}
.partner-detail-card__logo img {
  max-width: min(220px, 100%);
  max-height: clamp(48px, 10vw, 72px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.partner-detail-card__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.partner-detail-card h3 {
  margin: 0;
}
.partner-detail-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.partner-detail-card .feature-list {
  margin-top: 0;
}
.partner-detail-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: var(--space-xs);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  transition: gap 0.3s var(--ease-out);
}
.partner-detail-card .card-link svg {
  width: 16px;
  height: 16px;
}
.partner-detail-card:hover .card-link {
  gap: 0.65rem;
}

/* ---------- CTA ---------- */
.cta-band {
  background: var(--bg-card);
  border: 1px solid var(--accent-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 0.3rem; }

/* ---------- Testimonials ---------- */
.testimonials-section .section-head {
  max-width: 760px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}
.testimonial-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid var(--accent-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease, background 0.3s ease;
}
.testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--text);
  opacity: 0.18;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border-strong);
}
.testimonial-topic {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-sm);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}
.testimonial-rating svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.testimonial-quote {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: var(--space-md);
  text-wrap: pretty;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--accent-border);
}
.testimonial-author strong {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 600;
}
.testimonial-author span {
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: start;
}
.contact-info-card,
.contact-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--accent-border);
}
.contact-info-card h3 { margin-bottom: var(--space-sm); }
.contact-list { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-md); }
.contact-list a, .contact-list span {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.contact-list a:hover { color: var(--text); }
.contact-list svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-dim); }

.social-row { display: flex; gap: 0.7rem; margin-top: var(--space-md); }
.social-row a {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  transition: transform 0.3s var(--ease-spring), background 0.3s ease;
}
.social-row a:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: var(--accent-border-strong);
}
.social-row svg { width: 18px; height: 18px; }

.map-frame {
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--accent-border);
}
.map-frame iframe { width: 100%; height: 220px; border: 0; filter: var(--map-filter); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.form-group { margin-bottom: var(--space-sm); display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  min-height: 44px;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-border-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.radio-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.radio-pills input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pills label {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-border);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
}
.radio-pills input:checked + label {
  background: var(--btn-primary-bg);
  border-color: transparent;
  color: var(--btn-primary-text);
}

.form-note { font-size: 0.8rem; color: var(--text-dim); margin-top: var(--space-xs); }
.form-feedback {
  display: none;
  margin-top: var(--space-sm);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}
.form-feedback.success { background: rgba(34,197,94,0.12); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); display: block; }
.form-feedback.error { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); display: block; }

button.btn-submit { width: 100%; margin-top: var(--space-sm); }

/* ---------- Feature List ---------- */
.feature-list { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-md); }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.feature-list li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
  margin-top: 0.55rem;
  transform: rotate(45deg);
}

/* ---------- Process Steps ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  counter-reset: step;
}
.process-step {
  padding: var(--space-md);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  counter-increment: step;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}
.process-step h3 { margin-bottom: 0.4rem; font-size: 1rem; }
.process-step p { font-size: 0.9rem; }

/* ---------- Mission Timeline ---------- */
.mission-timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-top: 0.25rem;
}
.mission-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent-border-strong) 8%,
    var(--accent-border-strong) 92%,
    transparent
  );
}
.mission-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
}
.mission-timeline__item:last-child { padding-bottom: 0; }
.mission-timeline__marker {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  margin-top: 1.35rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
  transition: transform 0.35s var(--ease-spring), background 0.35s ease;
}
.mission-timeline__item:hover .mission-timeline__marker {
  transform: scale(1.12);
  background: var(--accent-soft);
}
.mission-timeline__content {
  padding: var(--space-md);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--ease-spring);
}
.mission-timeline__item:hover .mission-timeline__content {
  border-color: var(--accent-border-strong);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}
.mission-timeline__step {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}
.mission-timeline__content h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}
.mission-timeline__content p {
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: var(--space-xl) 0 var(--space-md);
  border-top: 1px solid var(--accent-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--accent-border);
}
.footer-brand .brand { margin-bottom: var(--space-sm); }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer-col h4 {
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
}
.footer-col a, .footer-col span {
  display: block;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease;
}
.footer-social a:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border-strong);
}
.footer-social svg { width: 16px; height: 16px; }

.back-to-top {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-border);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-spring);
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 1;
  transform: none;
}
.reveal .split-text,
.reveal.section-head,
.reveal.service-card__body,
.reveal.value-card,
.reveal.cta-band,
.reveal.partner-detail-card,
.reveal.partner-logos,
.reveal.contact-form-card,
.reveal.contact-info-card,
.reveal.legal-content,
.reveal.process-step,
.reveal.mission-timeline__item,
.reveal.project-card,
.reveal.projects-actions {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible .split-text,
.reveal.is-visible.section-head,
.reveal.is-visible.service-card__body,
.reveal.is-visible.value-card,
.reveal.is-visible.cta-band,
.reveal.is-visible.partner-detail-card,
.reveal.is-visible.partner-logos,
.reveal.is-visible.contact-form-card,
.reveal.is-visible.contact-info-card,
.reveal.is-visible.legal-content,
.reveal.is-visible.process-step,
.reveal.is-visible.mission-timeline__item,
.reveal.is-visible.project-card,
.reveal.is-visible.projects-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Bilder immer sofort laden und anzeigen */
.split-media,
.split-media img,
.page-hero-media,
.page-hero-media img,
.service-card-media,
.service-card-media img,
.partner-logos img {
  opacity: 1 !important;
  transform: none !important;
}

/* ---------- Utilities ---------- */
.bg-subtle { background: var(--bg-subtle); }
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }

.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}
.legal-content p, .legal-content address {
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  font-style: normal;
}
.legal-content h3 {
  margin-top: var(--space-md);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}
.legal-content ul {
  color: var(--text-muted);
  margin: 0 0 var(--space-sm) 1.25rem;
  padding: 0;
}
.legal-content li { margin-bottom: 0.35rem; }
.legal-content code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--accent-border);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-sm) 0 var(--space-md);
  font-size: 0.92rem;
}
.legal-table th,
.legal-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border: 1px solid var(--accent-border);
  color: var(--text-muted);
  vertical-align: top;
}
.legal-table th {
  background: var(--bg-subtle);
  color: var(--text);
  font-weight: 600;
}
.legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-sm) 0 var(--space-md);
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-border);
}
.legal-table-wrap .legal-table {
  margin: 0;
  min-width: 520px;
}
.legal-table-wrap .legal-table th,
.legal-table-wrap .legal-table td {
  white-space: normal;
}
.cookie-settings-link--inline {
  display: inline;
  vertical-align: baseline;
}

@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .value-card:hover,
  .project-card:hover,
  .partner-detail-card:hover,
  .testimonial-card:hover,
  .split-media:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ---------- Responsive ---------- */
/* Desktop/tablet: tighten pill nav when Start + 2 dropdowns + Kontakt crowd */
@media (min-width: 1021px) and (max-width: 1180px) {
  .nav-panel {
    gap: 0.15rem;
    padding: 0.25rem;
  }
  .nav-link,
  .nav-dropdown-trigger {
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
    gap: 0.25rem;
  }
  .nav-chevron {
    width: 12px;
    height: 12px;
  }
  .site-header .container,
  .site-header .header-inner {
    padding: 0 0.9rem;
    gap: 0.5rem;
  }
  .nav-dropdown-menu {
    min-width: 200px;
  }
}

@media (max-width: 1100px) {
  .cards-grid,
  .cards-grid.cols-3,
  .cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .page-hero--split .page-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .page-hero-media { max-width: 560px; }
  .ascii-logo-frame { display: none; }
  .section-pad { padding: clamp(2rem, 5vw, 3.25rem) 0; }
  .hero-inner { max-width: 100%; }
  .cards-grid { gap: 1.15rem; }
  .service-card__body { padding: 1.1rem; }
  .split { gap: var(--space-lg); }
  .cta-band { padding: var(--space-md); }
  .partners-band { padding: var(--space-lg) 0; }
}

@media (max-width: 1020px) {
  .brand-text { display: none; }
  .btn-header { display: none; }

  :root {
    --header-h: 64px;
    --header-offset: 0.65rem;
  }

  .site-header {
    left: max(0.4rem, env(safe-area-inset-left));
    right: max(0.4rem, env(safe-area-inset-right));
    top: max(0.4rem, env(safe-area-inset-top));
    width: auto;
    max-width: none;
    transform: none;
    z-index: 1300;
    height: var(--header-h);
    min-height: var(--header-h);
  }

  .site-header.is-scrolled {
    top: max(0.25rem, env(safe-area-inset-top));
  }

  .site-header .container,
  .site-header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.55rem;
    gap: 0.35rem;
    min-width: 0;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 9rem);
    position: relative;
    z-index: 1301;
  }

  .brand img {
    height: 28px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    min-width: 0;
  }

  .lang-dropdown-toggle {
    min-width: 44px;
    min-height: 40px;
    height: 40px;
    width: auto;
    padding: 0 0.3rem 0 0.25rem;
    gap: 0.08rem;
    flex-shrink: 0;
  }

  .lang-dropdown-toggle .lang-flag {
    font-size: 1.1rem;
  }

  .lang-dropdown-toggle .lang-chevron {
    display: block;
    width: 11px;
    height: 11px;
    opacity: 0.8;
  }

  .lang-dropdown-menu {
    right: -0.15rem;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex-shrink: 0;
  }

  .menu-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex-shrink: 0;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 1290;
    pointer-events: none;
    justify-self: auto;
    width: auto;
    height: auto;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  [data-theme="light"] .nav-backdrop { background: rgba(0, 0, 0, 0.5); }
  .main-nav.is-open { pointer-events: auto; }
  .main-nav.is-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav:not(.is-open) .nav-backdrop {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .main-nav:not(.is-open) .nav-panel {
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
  }

  .nav-panel {
    position: fixed;
    top: calc(var(--header-h) + var(--header-offset) + max(0.4rem, env(safe-area-inset-top)) + 0.55rem);
    left: max(0.65rem, env(safe-area-inset-left));
    right: max(0.65rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.9rem;
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--accent-border-strong);
    box-shadow: var(--shadow);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateY(8px);
    opacity: 0;
    visibility: hidden;
    z-index: 1295;
    transition: transform 0.35s var(--ease-out), opacity 0.35s ease, visibility 0.35s;
  }
  .main-nav.is-open .nav-panel {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link,
  .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    font-size: 1rem;
    padding: 0.85rem 1rem;
    min-height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--accent-border);
  }

  .nav-dropdown { width: 100%; }

  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 0;
    width: 100%;
    padding: 0;
    margin-top: 0.3rem;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    display: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s var(--ease-out);
  }
  .nav-dropdown.is-open .nav-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    /* Room for 5 Leistung + 3 Tool items without awkward clipping */
    max-height: min(56vh, 520px);
    padding: 0.1rem 0 0.2rem 0.55rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-submenu {
    width: 100%;
  }

  .nav-submenu-trigger {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
  }

  .nav-submenu-menu {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.4rem;
    padding-left: 0.65rem;
  }

  .nav-submenu.is-open .nav-submenu-menu {
    display: flex;
  }

  .nav-submenu.is-open .nav-chevron--sub {
    transform: rotate(180deg);
  }

  .nav-dropdown-item {
    display: block;
    padding: 0.8rem 0.95rem 0.8rem 1.1rem;
    font-size: 0.95rem;
    color: var(--text);
    border-left: none;
    margin-left: 0;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    margin-bottom: 0;
    min-height: 42px;
  }
  .nav-dropdown-item:hover,
  .nav-dropdown-item.active {
    background: var(--bg-card-hover);
    color: var(--text);
  }

  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: auto;
    flex-shrink: 0;
    padding-top: 0.85rem;
    border-top: 1px solid var(--accent-border);
  }
  .nav-mobile-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }
}

/* Very small phones: keep brand + 3 action buttons from overflowing */
@media (max-width: 380px) {
  .site-header .container,
  .site-header .header-inner {
    padding: 0 0.4rem;
    gap: 0.25rem;
  }

  .brand {
    max-width: calc(100% - 8.6rem);
  }

  .brand img {
    height: 26px;
  }

  .header-actions {
    gap: 0.2rem;
  }

  .lang-dropdown-toggle {
    min-width: 40px;
    min-height: 40px;
    height: 40px;
    padding: 0 0.15rem;
    gap: 0;
  }

  .lang-dropdown-toggle .lang-flag {
    font-size: 1rem;
  }

  .lang-dropdown-toggle .lang-chevron {
    width: 10px;
    height: 10px;
  }

  .theme-toggle,
  .menu-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

/* Short phones: keep panel scrollable and CTA reachable */
@media (max-width: 1020px) and (max-height: 700px) {
  .nav-panel {
    gap: 0.35rem;
    padding: 0.75rem;
  }

  .nav-link,
  .nav-dropdown-trigger {
    padding: 0.7rem 0.85rem;
    min-height: 40px;
    font-size: 0.95rem;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    max-height: min(38vh, 300px);
    gap: 0.3rem;
    padding-left: 0.45rem;
  }

  .nav-dropdown-item {
    padding: 0.65rem 0.85rem 0.65rem 1rem;
    min-height: 40px;
    font-size: 0.9rem;
  }

  .nav-mobile-actions {
    padding-top: 0.65rem;
  }
}

@media (max-width: 767px) {
  body::before { display: none; }

  .ascii-logo-frame {
    display: none;
  }

  .container {
    padding: 0 clamp(1rem, 4vw, 1.25rem);
  }

  .section-head {
    margin-bottom: var(--space-md);
  }

  .section-head .lead {
    font-size: 0.96rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + var(--header-offset) + 0.5rem);
    padding-bottom: var(--space-md);
    align-items: flex-start;
  }

  .hero-inner {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 4.6vw + 0.9rem, 2.05rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
  }

  .hero-kicker {
    font-size: 0.74rem;
    padding: 0.35rem 0.8rem;
    margin-bottom: var(--space-sm);
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }

  .hero-lead {
    font-size: 0.96rem;
    line-height: 1.55;
    max-width: 100%;
    margin-bottom: var(--space-md);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: var(--space-md);
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.1rem;
    white-space: normal;
    text-align: center;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    padding-top: var(--space-sm);
  }

  .hero-stats > div {
    min-width: 0;
  }

  .hero-stats .stat-num {
    font-size: 1.35rem;
  }

  .hero-stats .stat-label {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .page-hero .breadcrumb {
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }

  .split-media figcaption {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
    padding: 0.85rem 1rem;
  }

  .section-leistungen .service-card-media img {
    aspect-ratio: 16 / 10;
  }

  .service-card__body {
    padding: 1rem;
  }

  .testimonial-card {
    padding: var(--space-md);
  }

  .testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .project-card {
    padding: 1.15rem;
  }

  .partner-logos {
    justify-content: center;
    gap: var(--space-md);
  }
  .partner-logos .partner-card__media {
    width: min(200px, 44vw);
    height: clamp(44px, 10vw, 60px);
  }
  .partner-detail-card__logo img {
    max-height: clamp(44px, 12vw, 64px);
  }

  .partners-band .lead {
    font-size: 0.96rem;
  }

  .mission-timeline__content {
    padding: var(--space-sm) var(--space-md);
  }

  .mission-timeline__content h3 {
    font-size: 1rem;
  }

  .back-to-top {
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
    z-index: 80;
  }

  :root { --header-offset: 0.5rem; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media__frame img { max-height: 280px; }
  .page-hero--split .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-media { max-width: 100%; }
  .page-hero-icon img,
  .page-hero-icon svg {
    width: min(68vw, 220px);
  }
  .page-hero-media--icon {
    padding: var(--space-sm) 0;
  }
  .page-hero-media--icon img {
    width: min(68vw, 220px);
  }
  .page-hero-media__frame { max-height: 240px; }
  .page-hero-media__frame img { max-height: 240px; }
  .cards-grid,
  .cards-grid.cols-2,
  .cards-grid.cols-3,
  .values-grid,
  .process-grid,
  .testimonials-grid { grid-template-columns: 1fr; }
  .container--wide {
    max-width: 100%;
  }
  .section-leistungen .service-card h3 {
    font-size: 1.05rem;
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .section-leistungen .service-card p {
    font-size: 0.92rem;
    line-height: 1.55;
  }
  .partner-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .footer-brand { grid-column: 1 / -1; }
  .cta-band {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .cta-band .btn {
    width: 100%;
    justify-content: center;
  }
  .form-row { grid-template-columns: 1fr; }
  .radio-pills { gap: 0.5rem; }
  .radio-pills label {
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
    text-align: center;
    font-size: 0.82rem;
    padding: 0.55rem 0.75rem;
  }
  .map-frame iframe { height: 200px; }
  .keyboost-preview {
    margin-top: var(--space-md);
  }
  .keyboost-meta {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .page-hero {
    padding-top: calc(var(--header-h) + var(--header-offset) + var(--space-md));
    padding-bottom: var(--space-md);
  }

  .page-hero h1 {
    font-size: clamp(1.55rem, 4.6vw + 0.9rem, 2.1rem);
    line-height: 1.15;
  }

  .page-hero p.lead {
    font-size: 0.96rem;
    max-width: 100%;
  }

  .legal-content h2 {
    font-size: 1.12rem;
    line-height: 1.35;
  }

  .legal-table {
    font-size: 0.86rem;
  }
  .legal-table-wrap .legal-table {
    min-width: 460px;
  }
  .legal-table th,
  .legal-table td {
    padding: 0.55rem 0.6rem;
  }

  .rc-site-popup__panel {
    padding: 2.5rem 1rem 1rem;
  }

  .rc-site-popup__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rc-site-popup__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .site-header {
    left: max(0.35rem, env(safe-area-inset-left));
    right: max(0.35rem, env(safe-area-inset-right));
    border-radius: var(--radius-sm);
    top: max(0.35rem, env(safe-area-inset-top));
  }
  .site-header .container,
  .site-header .header-inner {
    padding: 0 0.45rem;
  }

  .nav-panel {
    left: max(0.5rem, env(safe-area-inset-left));
    right: max(0.5rem, env(safe-area-inset-right));
    bottom: max(0.6rem, env(safe-area-inset-bottom));
    padding: 0.8rem;
    gap: 0.4rem;
  }

  .nav-link,
  .nav-dropdown-trigger {
    font-size: 0.95rem;
    padding: 0.75rem 0.85rem;
  }

  .nav-dropdown-item {
    font-size: 0.9rem;
    padding: 0.7rem 0.85rem 0.7rem 1rem;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    max-height: min(48vh, 440px);
    gap: 0.35rem;
    padding-left: 0.45rem;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 6.2vw + 0.65rem, 1.85rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .projects-grid {
    gap: 0.85rem;
  }

  .project-card {
    min-width: 0;
    padding: 1rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .hero-stats > div {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
  }

  .hero-stats .stat-label {
    font-size: 0.82rem;
  }

  .scroll-cue { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-info-card, .contact-form-card { padding: var(--space-md); }
  .projects-toggle {
    width: 100%;
    min-width: 0;
    max-width: 320px;
  }
  .radio-pills label {
    flex: 1 1 100%;
  }
  .cookie-consent {
    padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  }
  .cookie-consent__inner {
    padding: var(--space-sm);
  }
}

@media (max-width: 767px) and (min-width: 481px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .btn-primary {
    grid-column: 1 / -1;
  }
}

@media (hover: none) {
  .service-card:hover,
  .split-media:hover,
  .btn:hover,
  .value-card:hover,
  .testimonial-card:hover,
  .project-card:hover,
  .partner-detail-card:hover,
  .mission-timeline__item:hover .mission-timeline__content,
  .mission-timeline__item:hover .mission-timeline__marker {
    transform: none;
  }
  .mission-timeline__item:hover .mission-timeline__content {
    box-shadow: none;
  }
}

@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;
  }
}

/* ---------- Cookie Consent ---------- */
body.cookie-consent-open { overflow: hidden; }
body.cookie-consent-open > *:not(.cookie-consent) {
  pointer-events: none;
  user-select: none;
}

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.cookie-consent.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cookie-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}
[data-theme="light"] .cookie-consent__backdrop {
  background: rgba(10, 10, 10, 0.45);
}

.cookie-consent__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(90vh, 640px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--accent-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.4s var(--ease-spring);
}
.cookie-consent.is-visible .cookie-consent__dialog {
  transform: translateY(0) scale(1);
}

.cookie-consent__inner {
  padding: var(--space-md);
}

.cookie-consent__inner h2 {
  margin: 0.35rem 0 var(--space-sm);
  font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.75rem);
}

.cookie-consent__lead {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: var(--space-md);
}

.cookie-consent__options {
  display: none;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: var(--space-md);
}
.cookie-consent.is-custom .cookie-consent__options {
  display: flex;
}

.cookie-consent__option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-border);
  background: var(--bg-subtle);
}
.cookie-consent__option input {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--text);
  flex-shrink: 0;
}
.cookie-consent__option strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.cookie-consent__option span {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-dim);
}
.cookie-consent__option.is-required {
  opacity: 0.85;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-sm);
}
.cookie-consent__actions .btn {
  flex: 1 1 auto;
  min-width: 140px;
  justify-content: center;
  text-align: center;
}

.cookie-consent__legal {
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.45;
}
.cookie-consent__legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-consent__legal a:hover { color: var(--text); }

.cookie-settings-link {
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--text-dim);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.cookie-settings-link:hover { color: var(--text); }

.footer-admin-btn {
  font-size: 0.78rem;
  padding: 0.4rem 0.85rem;
  min-height: auto;
  color: var(--text-dim);
  border-color: var(--accent-border);
  background: transparent;
  flex-shrink: 0;
}

.footer-admin-btn:hover {
  color: var(--text);
  border-color: var(--accent-border-strong);
  background: var(--accent-soft);
}

@media (max-width: 520px) {
  .cookie-consent__actions { flex-direction: column; }
  .cookie-consent__actions .btn { width: 100%; min-width: 0; }
}

/* ---------- Keyboost Page ---------- */
.keyboost-meta {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.keyboost-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}
.keyboost-preview__card {
  width: min(100%, 340px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-border-strong);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.keyboost-preview__header {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--accent-border);
  background: var(--bg-elevated);
}
.keyboost-preview__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-border-strong);
}
.keyboost-preview__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.keyboost-preview__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.keyboost-preview__password {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--accent-border);
  color: var(--text);
  letter-spacing: 0.04em;
}
.keyboost-preview__entropy {
  font-size: 0.82rem;
  color: var(--text-dim);
}
.keyboost-preview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.keyboost-preview__actions span {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-border);
  color: var(--text-muted);
}

.keyboost-note {
  margin-top: var(--space-md);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.keyboost-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.keyboost-note a:hover { color: var(--text); }

.btn svg { flex-shrink: 0; }
.hero-actions .btn,
.keyboost-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
@media (min-width: 1021px) {
  .btn-header {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
  }
}

/* ==========================================================================
   Wartungsmodus & dynamische Pop-ups
   ========================================================================== */

.rc-maintenance {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--bg);
}

.rc-maintenance__card {
  max-width: 520px;
  width: 100%;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--accent-border-strong);
  border-radius: 20px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.rc-maintenance__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 1rem;
}

.rc-maintenance h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.rc-maintenance p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.rc-site-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
}

.rc-site-popup.is-visible {
  pointer-events: auto;
}

body.rc-site-popup-open {
  overflow: hidden;
  touch-action: none;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

.rc-site-popup__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.rc-site-popup.is-visible .rc-site-popup__backdrop {
  opacity: 1;
}

.rc-site-popup__panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: calc(100dvh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  border: 1px solid var(--accent-border-strong);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  padding: 2.85rem 1.25rem 1.25rem;
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  overscroll-behavior: contain;
}

.rc-site-popup.is-visible .rc-site-popup__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.rc-site-popup__dismiss {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.rc-site-popup__dismiss:hover {
  color: var(--text);
  border-color: var(--accent-border-strong);
}

.rc-site-popup__badge {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.rc-site-popup__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rc-site-popup__title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.rc-site-popup__body {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.rc-site-popup__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rc-site-popup__actions .btn {
  min-height: 42px;
}

.rc-site-popup__close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- IPv4 Subnetz-Rechner ---------- */
.ip-calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: start;
  max-width: 100%;
}

.ip-calc-grid > * {
  min-width: 0;
}

.ip-calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.ip-calc-card h2 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
}

.ip-calc-form .form-group {
  margin-bottom: 1rem;
}

.ip-calc-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.ip-calc-form input[type="text"],
.ip-calc-form input[type="number"],
.ip-calc-form select,
.ip-calc-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  max-width: 100%;
  touch-action: manipulation;
}

.ip-calc-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

.ip-calc-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 0.25rem;
  touch-action: manipulation;
}

.ip-family-tab,
.ip-mode-tab {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.ip-family-tab {
  min-height: 48px;
}

.ip-mode-tab {
  min-height: 44px;
}

.ip-calc-form textarea {
  min-height: 9rem;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.5;
}

.ip-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}

.ip-family-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ip-family-tab {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ip-family-tab:hover {
  color: var(--text);
  border-color: var(--accent);
}

.ip-family-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

[data-theme="light"] .ip-family-tab.active {
  color: #fff;
}

.ip-mode-tab {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  border-radius: calc(var(--radius-md) - 2px);
  padding: 0.55rem 0.85rem;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ip-mode-tab:hover {
  color: var(--text);
}

.ip-mode-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.ip-shared-fields[hidden] {
  display: none;
}

.ip-calc-form input[type="text"]:focus,
.ip-calc-form input[type="number"]:focus,
.ip-calc-form select:focus,
.ip-calc-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.ip-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.25rem 0 1rem;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.45;
}

.ip-check-row input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.ip-calc-note {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ip-calc-error {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(220, 53, 69, 0.12);
  color: #c0392b;
  border: 1px solid rgba(220, 53, 69, 0.25);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

[data-theme="dark"] .ip-calc-error {
  color: #ff8a8a;
}

.ip-results {
  display: grid;
  gap: 0.65rem;
}

.ip-result-row {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.ip-result-row:last-child {
  border-bottom: none;
}

.ip-result-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.ip-result-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.ip-table-hint {
  display: none;
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ip-subnet-cards {
  display: none;
}

.ip-subnet-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  background: var(--bg-subtle);
}

.ip-subnet-card__title {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.ip-subnet-card__list {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.ip-subnet-card__row {
  display: grid;
  grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
}

.ip-subnet-card__row dt {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ip-subnet-card__row dd {
  margin: 0;
}

.ip-subnet-card__row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.ip-subnet-table-wrap {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.ip-subnet-meta {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.ip-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.ip-subnet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 640px;
}

.ip-subnet-table th,
.ip-subnet-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.ip-subnet-table th {
  background: var(--bg-subtle);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ip-subnet-table tbody tr:last-child td {
  border-bottom: none;
}

.ip-subnet-table tbody tr:nth-child(even) {
  background: rgba(127, 127, 127, 0.05);
}

@media (max-width: 900px) {
  .ip-calc-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ip-result-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (max-width: 767px) {
  .ip-calc-card {
    padding: 1.15rem;
  }

  .ip-calc-card h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .ip-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .ip-mode-tab {
    flex: unset;
    font-size: 0.88rem;
    padding: 0.65rem 0.5rem;
    text-align: center;
  }

  .ip-calc-note {
    margin-top: 0.85rem;
    font-size: 0.84rem;
  }

  .ip-result-row {
    padding: 0.65rem 0;
  }

  .ip-result-label {
    font-size: 0.82rem;
    font-weight: 600;
  }

  .ip-result-value {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .ip-table-hint {
    display: none;
  }

  .ip-table-scroll {
    display: none;
  }

  .ip-subnet-cards {
    display: grid;
    gap: 0.75rem;
  }

  .ip-subnet-card__row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  #ip-results-card {
    scroll-margin-top: 5.5rem;
  }
}

@media (min-width: 768px) {
  .ip-calc-submit {
    width: auto;
    min-width: 10rem;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .ip-table-hint {
    display: block;
  }
}

/* ---------- Meine IP (ip.me-ähnlich) ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.meine-ip-panel {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

.meine-ip-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.meine-ip-address {
  margin: 0;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(1.6rem, 6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  word-break: break-all;
  overflow-wrap: anywhere;
  color: var(--text);
}

.meine-ip-meta,
.meine-ip-status {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.meine-ip-status.is-error {
  color: #c0392b;
}

.meine-ip-error {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.25);
  color: #c0392b;
  font-size: 0.92rem;
}

[data-theme="dark"] .meine-ip-error,
[data-theme="dark"] .meine-ip-status.is-error {
  color: #ff8a8a;
}

.meine-ip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.meine-ip-actions .btn {
  min-height: 44px;
  touch-action: manipulation;
}

.meine-ip-details {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.55rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.meine-ip-row {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}

.meine-ip-row:last-of-type {
  border-bottom: none;
}

.meine-ip-label {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.meine-ip-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.meine-ip-privacy-note {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.meine-ip-empty {
  margin: 0;
  color: var(--text-muted);
}

.meine-ip-skeleton {
  height: 8rem;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--bg-subtle), var(--border), var(--bg-subtle));
  background-size: 200% 100%;
  animation: meine-ip-pulse 1.2s ease-in-out infinite;
}

@keyframes meine-ip-pulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.meine-ip-lookup {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.meine-ip-lookup h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.meine-ip-lookup > p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.meine-ip-lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.meine-ip-lookup-form input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.meine-ip-lookup-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.meine-ip-lookup-form .btn {
  min-height: 48px;
  white-space: nowrap;
}

.meine-ip-legal-box {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 0.9rem;
  line-height: 1.5;
}

.meine-ip-legal-box strong {
  display: block;
  margin-bottom: 0.45rem;
}

.meine-ip-legal-box ul {
  margin: 0;
  padding-left: 1.1rem;
}

.meine-ip-legal-box li + li {
  margin-top: 0.35rem;
}

.meine-ip-faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 0.65rem;
}

.meine-ip-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.meine-ip-faq-item button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  padding: 1rem 1.1rem;
  cursor: pointer;
  min-height: 48px;
  touch-action: manipulation;
}

.meine-ip-faq-body {
  display: none;
  padding: 0 1.1rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.meine-ip-faq-item.is-open .meine-ip-faq-body {
  display: block;
}

.meine-ip-faq-body pre {
  margin: 0.75rem 0 0;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.meine-ip-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.25rem;
}

@media (max-width: 767px) {
  .meine-ip-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .meine-ip-lookup-form {
    grid-template-columns: 1fr;
  }

  .meine-ip-actions {
    flex-direction: column;
  }

  .meine-ip-actions .btn {
    width: 100%;
  }
}

/* ---------- WHOIS Lookup ---------- */
.whois-panel {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

.whois-form label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.whois-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.whois-form-row input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.whois-form-row input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.whois-form-row .btn {
  min-height: 48px;
  white-space: nowrap;
  touch-action: manipulation;
}

.whois-status {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.whois-error {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.25);
  color: #c0392b;
  font-size: 0.92rem;
}

[data-theme="dark"] .whois-error {
  color: #ff8a8a;
}

.whois-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.whois-meta code {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  word-break: break-all;
}

.whois-output {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  max-height: min(60vh, 520px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  scroll-margin-top: 5.5rem;
}

.whois-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.whois-actions .btn {
  min-height: 44px;
  touch-action: manipulation;
}

.whois-panel .meine-ip-legal-box {
  margin-top: 1.75rem;
}

.whois-panel .meine-ip-legal-box p {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
}

@media (max-width: 767px) {
  .whois-form-row {
    grid-template-columns: 1fr;
  }

  .whois-actions {
    flex-direction: column;
  }

  .whois-actions .btn {
    width: 100%;
  }
}
