/* Root variables and global defaults */
:root {
  --bg: #f5f7fb;
  --bg-alt: #eef1f7;
  --gradient: radial-gradient(circle at 20% 20%, rgba(47, 108, 207, 0.12), transparent 35%), radial-gradient(circle at 80% 0%, rgba(92, 157, 255, 0.12), transparent 32%), linear-gradient(135deg, #f7f9fc 0%, #eef2f8 60%, #e8edf6 100%);
  --text: #0f1b2b;
  --muted: #4d5b6a;
  --border: rgba(15, 27, 43, 0.08);
  --glass: rgba(255, 255, 255, 0.75);
  --shadow: 0 12px 30px rgba(15, 27, 43, 0.12);
  --accent: #2f6ccf;
  --accent-strong: #5c9dff;
  --danger: #ff7a7a;
  --radius: 18px;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

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

body {
  margin: 0;
  font-family: "Segoe UI", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--gradient), var(--bg);
  line-height: 1.6;
  scroll-behavior: smooth;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-video {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #f3f7fb url('../images/bg/weiser-hintergrund-2-poster.jpg') center center / cover no-repeat;
}

.bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}

.bg-video--static video {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .bg-video video {
    display: none;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

h1, h2, h3, h4 {
  margin: 0 0 0.5rem;
  color: var(--text);
  line-height: 1.2;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
  scroll-margin-top: 96px;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.text-zone {
  position: relative;
  z-index: 1;
}

.text-glass {
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(15, 27, 43, 0.08);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 26px rgba(15, 27, 43, 0.12);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}


.section-header p {
  max-width: 720px;
  margin: 0.5rem auto 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--accent-strong);
  margin-bottom: 0.4rem;
  display: inline-block;
}

.lead {
  font-size: 1.1rem;
  margin: 1rem 0;
  max-width: 62ch;
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.mini-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  margin-top: auto;
}

.mini-list li {
  margin-bottom: 0.3rem;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-sizing: border-box;
  padding: 0.9rem 1.2rem;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  color: var(--text);
  background: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(47, 108, 207, 0.28);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: rgba(15, 27, 43, 0.04);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--accent-strong);
  border-color: rgba(47, 108, 207, 0.6);
  box-shadow: 0 8px 18px rgba(11, 26, 46, 0.12);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(78, 153, 255, 0.12);
  border-color: rgba(47, 108, 207, 0.85);
  box-shadow: 0 12px 28px rgba(11, 26, 46, 0.2);
}

.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(47, 108, 207, 0.35);
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(15, 27, 43, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
  font-weight: 700;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-main {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.brand-accent-underline {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-strong);
  position: relative;
  display: inline-block;
}

.brand-accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 25%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: var(--nav-font-size, 1rem); /* Desktop-Menüschrift bewusst konstant */
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a.active {
  color: var(--text);
  background: rgba(15, 27, 43, 0.06);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(15, 27, 43, 0.06);
}

.nav-item {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: transparent;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: var(--nav-font-size, 1rem);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus-visible {
  color: var(--text);
  background: rgba(15, 27, 43, 0.06);
}

.dropdown-toggle .caret {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  margin-top: -2px;
}

.nav-item.open .dropdown-toggle .caret,
.nav-item.has-dropdown:hover .dropdown-toggle .caret,
.nav-item.has-dropdown:focus-within .dropdown-toggle .caret {
  transform: rotate(135deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 210px;
  padding: 0.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(11, 19, 32, 0.12);
  list-style: none;
  display: none;
  z-index: 10;
}

.dropdown-menu li + li {
  margin-top: 0.15rem;
}

.dropdown-menu a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  color: var(--muted);
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  color: var(--text);
  background: rgba(15, 27, 43, 0.06);
}

.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu,
.nav-item.has-dropdown.open .dropdown-menu {
  display: block;
}

.nav-links .nav-accent {
  border: 1px solid var(--accent-strong);
  color: var(--accent-strong);
  background: linear-gradient(120deg, rgba(78, 153, 255, 0.08), rgba(78, 153, 255, 0.02));
}

.nav-links .nav-accent:hover,
.nav-links .nav-accent.active {
  color: var(--text);
  background: linear-gradient(120deg, rgba(78, 153, 255, 0.16), rgba(78, 153, 255, 0.06));
  border-color: rgba(78, 153, 255, 0.5);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.22rem;
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.65rem;
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  padding-top: 7rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  padding: 2.5rem;
}

.hero-content h1 {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
}

.hero-title {
  font-size: clamp(2.4rem, 3vw + 1rem, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
  color: var(--text);
}

.hero-title span {
  display: block;
}

.hero-title .hero-brand {
  color: var(--accent);
}

.hero-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0 1.2rem;
}

.hero-side {
  display: flex;
  align-items: stretch;
  perspective: 1200px;
}

.dash-card {
  padding: 1.05rem;
  width: 100%;
  display: grid;
  gap: 0.6rem;
  transform-style: preserve-3d;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  opacity: 0;
  filter: blur(8px);
  animation: panelReveal 0.7s ease forwards;
  animation-delay: 0.05s;
}

.dash-card:hover {
  transform: translateY(-6px) rotateX(1deg) rotateY(-1deg);
  box-shadow: 0 14px 36px rgba(15, 27, 43, 0.18);
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dash-subline {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.4);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
}

.pill-live {
  background: rgba(92, 157, 255, 0.16);
  border-color: rgba(92, 157, 255, 0.35);
  color: var(--accent);
  animation: livePulse 2.4s ease-in-out infinite;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.55rem;
}

.dash-kpi {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  display: grid;
  gap: 0.05rem;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(6px);
  animation: kpiReveal 0.6s ease forwards;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dash-kpi:nth-child(1) { animation-delay: 0.15s; }
.dash-kpi:nth-child(2) { animation-delay: 0.25s; }
.dash-kpi:nth-child(3) { animation-delay: 0.35s; }

.dash-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 27, 43, 0.18);
  border-color: rgba(15, 27, 43, 0.12);
  background: rgba(255, 255, 255, 0.48);
}

.kpi-label {
  font-size: 0.9rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.kpi-value {
  font-weight: 700;
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
}

.kpi-hidden {
  display: none;
}

.kpi-trend {
  font-size: 0.9rem;
  color: var(--accent);
  transition: transform 0.3s ease, color 0.3s ease;
  position: relative;
  z-index: 1;
}

.kpi-trend.neutral {
  color: var(--muted);
}

.kpi-viz {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.viz-bullet {
  display: none;
}

.viz-semi {
  width: 100%;
  display: grid;
  gap: 0.3rem;
  place-items: center;
}

.semi-arc {
  width: 100%;
  height: auto;
  max-width: 220px;
  overflow: visible;
}

.semi-track {
  fill: none;
  stroke: rgba(15, 27, 43, 0.12);
  stroke-width: 10;
  stroke-linecap: round;
}

.semi-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 0 400;
  transition: stroke-dasharray 1s ease;
}

.semi-labels {
  text-align: center;
  display: grid;
  gap: 0.2rem;
  margin-top: -0.6rem;
}

.semi-value {
  font-weight: 700;
  font-size: 1.1rem;
}

.semi-caption {
  color: var(--muted);
  font-size: 0.9rem;
}

.viz-donut {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.22), transparent 42%);
  box-shadow: inset 0 0 0 1px rgba(15, 27, 43, 0.08), 0 6px 18px rgba(15, 27, 43, 0.12);
  --fill: 0.78;
  --angle: 0deg;
  --donut-bg: conic-gradient(var(--accent) 0deg var(--angle, 0deg), rgba(47, 108, 207, 0.14) var(--angle, 0deg) 360deg);
  --donut-overlay: transparent;
}

.viz-donut::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--donut-bg);
  mask: radial-gradient(circle at center, transparent 38%, #000 38%);
  z-index: 0;
}

.viz-donut::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--donut-overlay);
  mask: radial-gradient(circle at center, transparent 34%, #000 34%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.donut-value {
  font-weight: 700;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.donut-overlay-visible::after {
  opacity: 1;
}

.trend-pulse {
  color: #e68a3f;
  transform: translateY(-2px);
}

.viz-bars {
  display: grid;
  grid-auto-flow: column;
  gap: 0.25rem;
  align-items: end;
  height: 36px;
}

.viz-bars span {
  width: 6px;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(92, 157, 255, 0.9), rgba(47, 108, 207, 0.45));
  height: var(--h, 60%);
  box-shadow: 0 4px 12px rgba(47, 108, 207, 0.18);
}

.viz-line {
  width: 100%;
  display: grid;
  gap: 0.3rem;
  align-items: center;
}

.line-track {
  position: relative;
  width: 100%;
  height: 18px;
  background: rgba(15, 27, 43, 0.14);
  border: 1px solid rgba(15, 27, 43, 0.12);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

.line-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: inherit;
  transition: width 0.9s ease-out;
  animation: linePulse 2.4s ease-in-out infinite;
}

.line-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.line-value {
  font-weight: 700;
  color: var(--text);
}

.line-caption {
  font-weight: 600;
}

/* Scroll reveal */
.reveal-section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  will-change: opacity, transform;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@keyframes linePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 108, 207, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(47, 108, 207, 0.08); }
}

@keyframes dashPulse {
  0%, 100% { transform: scaleX(0.95); opacity: 0.9; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes panelReveal {
  from { opacity: 0; filter: blur(12px); transform: translateY(10px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes kpiReveal {
  from { opacity: 0; filter: blur(8px); transform: translateY(12px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes shimmer {
  0% { transform: translateX(-10%); opacity: 0.4; }
  50% { opacity: 0.9; }
  100% { transform: translateX(12%); opacity: 0.4; }
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(92, 157, 255, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(92, 157, 255, 0.05); }
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.metric-number {
  font-size: 1.6rem;
  font-weight: 700;
}

.metric-label {
  display: block;
  color: var(--muted);
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  padding: 2.3rem;
  align-items: center;
}

.about-text {
  padding-right: 1rem;
  max-width: 680px;
  display: grid;
  gap: 1rem;
}

.bullet-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.bullet-list li {
  margin-bottom: 0.7rem;
  line-height: 1.55;
}

.about-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-frame {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(47, 108, 207, 0.2), rgba(255, 255, 255, 0.7));
  box-shadow: var(--shadow);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%);
}

/* Services */
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card {
  padding: 1.6rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, z-index 0.2s ease;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-card:hover {
  transform: translateY(-8px) translateX(0) scale(1.01);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(47, 108, 207, 0.3);
  z-index: 2;
}

/* Service card directional reveal */
.service-card--from-left,
.service-card--from-right {
  opacity: 0;
  transition: opacity 0.55s ease-out, transform 0.55s ease-out, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  will-change: opacity, transform;
}

.service-card--from-left {
  transform: translateX(-20px);
}

.service-card--from-right {
  transform: translateX(20px);
}

.service-card--from-left.is-visible,
.service-card--from-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .service-card--from-left,
  .service-card--from-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* References */
.references-hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 1.5rem;
  padding: 1.6rem;
}

.references-hero__content h1 {
  margin-bottom: 0.35rem;
}

.references-hero__hint {
  color: var(--muted);
  margin: 0.4rem 0 0.8rem;
}

.references-hero__aside {
  display: grid;
}

.mini-card {
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.filter-chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: rgba(47, 108, 207, 0.5);
  box-shadow: 0 10px 24px rgba(11, 26, 46, 0.16);
}

.filter-chip.is-active {
  background: linear-gradient(120deg, rgba(78, 153, 255, 0.18), rgba(78, 153, 255, 0.08));
  border-color: rgba(47, 108, 207, 0.55);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.references-featured-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.reference-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.reference-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.reference-tag {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(47, 108, 207, 0.18);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.85rem;
}

.reference-grid article {
  padding: 1.4rem;
}

.reference-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  will-change: opacity, transform;
  display: grid;
  gap: 0.85rem;
}

.reference-card.reference-card--featured {
  padding: 1.6rem;
  grid-template-rows: auto auto 1fr auto auto;
}

.reference-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reference-media {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(47, 108, 207, 0.1));
  box-shadow: 0 10px 30px rgba(11, 26, 46, 0.18);
  aspect-ratio: 16 / 9;
}

@supports not (aspect-ratio: 16 / 9) {
  .reference-media::before {
    content: "";
    display: block;
    padding-top: 56.25%;
  }
  .reference-media > * {
    position: absolute;
    inset: 0;
  }
}

.reference-media-frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.reference-media-link {
  display: block;
  height: 100%;
  color: inherit;
}

.reference-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.reference-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.reference-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(10, 25, 43, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.reference-media.is-playing-video .reference-video {
  opacity: 1;
}

.reference-media.is-playing-video .reference-preview {
  opacity: 0;
}

.ref--no-media {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.25), rgba(47, 108, 207, 0.12));
  display: grid;
  place-items: center;
  cursor: default;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.ref-no-media {
  width: 100%;
  height: 100%;
  padding: 1.1rem 1.4rem;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 0.5rem;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.ref-no-media__icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(78, 153, 255, 0.18), rgba(11, 26, 46, 0.12));
  border: 1px solid rgba(47, 108, 207, 0.28);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  position: relative;
}

.ref-no-media__icon::before,
.ref-no-media__icon::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.ref-no-media__icon::before {
  top: 17px;
}

.ref-no-media__icon::after {
  bottom: 17px;
}

.ref-no-media__text { 
  display: grid;
  gap: 0.15rem;
}

.ref-no-media__title {
  font-weight: 700;
  color: var(--text);
}

.ref-no-media__subtitle {
  color: var(--muted);
  font-weight: 600;
}

.reference-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0.65rem 0.8rem;
  background: linear-gradient(180deg, rgba(7, 16, 30, 0.05) 0%, rgba(7, 16, 30, 0.45) 100%);
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 3;
}

.reference-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(11, 26, 46, 0.75);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.reference-media-toggle {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(11, 26, 46, 0.7);
  color: #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .reference-media--video:hover .reference-overlay {
    opacity: 0;
  }
}

.reference-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.2rem 0 0;
}

.pill-ghost {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.reference-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: auto;
}

.reference-detail {
  display: none;
  gap: 0.65rem;
}

.detail-section h4 {
  margin: 0.2rem 0;
}

.detail-section ul {
  padding-left: 1.1rem;
  display: grid;
  gap: 0.3rem;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.detail-cta {
  margin-top: 0.8rem;
}

.reference-card.is-visible .detail-section {
  opacity: 1;
}

.reference-return {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
}

.reference-grid .reference-card:nth-child(1) {
  transition-delay: 0s;
}

.reference-grid .reference-card:nth-child(2) {
  transition-delay: 0.08s;
}

.reference-grid .reference-card:nth-child(3) {
  transition-delay: 0.16s;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.8rem;
}

.cta-card h2 {
  margin: 0.15rem 0;
}

.reference-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(7, 13, 22, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 80;
}

.reference-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.reference-modal__dialog {
  position: relative;
  max-width: 840px;
  width: min(90vw, 860px);
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 68px rgba(7, 13, 22, 0.35);
  padding: 1.6rem;
  max-height: 88vh;
  overflow-y: auto;
  z-index: 1;
}

.reference-modal__backdrop {
  position: absolute;
  inset: 0;
}

.reference-modal__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.reference-modal__pill {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(47, 108, 207, 0.18);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.9rem;
}

.reference-modal__summary {
  color: var(--muted);
}

.reference-modal__body {
  display: grid;
  gap: 0.8rem;
}

.reference-modal__footer {
  margin-top: 0.8rem;
  display: flex;
  justify-content: flex-end;
}

.modal-close {
  margin-left: auto;
  border: 1px solid var(--border);
  background: rgba(11, 26, 46, 0.06);
  color: var(--text);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .reference-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Blog */
.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.blog-card {
  padding: 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.blog-card--reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  will-change: opacity, transform;
}

.blog-card--reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-grid .blog-card--reveal:nth-child(1) { transition-delay: 0s; }
.blog-grid .blog-card--reveal:nth-child(2) { transition-delay: 0.08s; }
.blog-grid .blog-card--reveal:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .blog-card--reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 960px) {
  .references-hero__grid {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
  .reference-modal__dialog {
    width: 100%;
    max-width: 100%;
    height: 88vh;
  }
}

@media (max-width: 720px) {
  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .reference-media-toggle {
    bottom: 0.5rem;
    right: 0.5rem;
  }
}

.blog-articles {
  display: grid;
  gap: 1.5rem;
}

.blog-article {
  padding: 2rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-article h2 {
  margin: 0.2rem 0;
}

.blog-article h3 {
  margin-top: 0.6rem;
}

.blog-article ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.blog-article--reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.blog-article--reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-section.is-visible .blog-article--reveal {
  opacity: 1;
  transform: translateY(0);
}

.blog-articles .blog-article--reveal:nth-child(1) { transition-delay: 0s; }
.blog-articles .blog-article--reveal:nth-child(2) { transition-delay: 0.08s; }
.blog-articles .blog-article--reveal:nth-child(3) { transition-delay: 0.16s; }

.article-meta {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.blog-card .text-link {
  transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .blog-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 38px rgba(15, 27, 43, 0.14);
  }

  .blog-card:hover .text-link {
    color: var(--accent-strong);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card {
    transform: none;
    transition: box-shadow 0.15s ease;
  }

  .blog-card:hover {
    transform: none;
  }

  .blog-article--reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.blog-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  overflow: hidden;
}

.faq-item--reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out, box-shadow 0.2s ease, background 0.2s ease;
  will-change: opacity, transform;
}

.faq-item--reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 700;
  text-align: left;
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  display: inline-block;
  transition: transform 0.2s ease;
  font-weight: 700;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease, padding 0.25s ease;
  opacity: 0;
  padding: 0 1.2rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  opacity: 1;
  padding: 0 1.2rem 1rem;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
  .faq-item--reveal.is-visible:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 27, 43, 0.14);
    background: rgba(255, 255, 255, 0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item--reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Contact */
.form-card {
  padding: 2rem;
}

.contact-shell {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 2.25rem 2rem;
  border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.2));
  border: 1px solid rgba(15, 27, 43, 0.08);
  box-shadow: 0 18px 36px rgba(15, 27, 43, 0.14);
  border-radius: inherit;
  z-index: 0;
}

.contact-shell > * {
  position: relative;
  z-index: 1;
}

.contact-card {
  margin-top: 1.5rem;
  padding: 2.25rem;
}

.contact-card .form-actions {
  margin-top: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-hint {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(47, 108, 207, 0.7);
  box-shadow: 0 0 0 3px rgba(47, 108, 207, 0.25);
}

.form-field input.invalid,
.form-field textarea.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px rgba(255, 122, 122, 0.25);
}

.checkbox-field {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.form-status {
  min-height: 1.4rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.35rem;
  margin-left: 0;
}

.form-status.is-success {
  color: var(--accent-strong);
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-pending {
  color: var(--muted);
  font-style: italic;
}

.status-note {
  margin-top: 0.75rem;
  color: var(--muted);
}

.status-note.status-success {
  color: var(--accent-strong);
  font-weight: 600;
}

.field-error {
  min-height: 1.1rem;
  margin: 0;
  color: var(--danger);
  font-size: 0.9rem;
}

.checkbox-field + .field-error {
  margin-left: calc(18px + 0.65rem);
}

.honeypot-wrapper {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

body.form-focus .contact-card {
  box-shadow: 0 20px 42px rgba(15, 27, 43, 0.18);
}

@media (max-width: 768px) {
  .contact-shell {
    padding: 1.75rem 1.25rem;
  }
  .contact-card {
    padding: 1.75rem;
  }
}

/* Downloads */
.download-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.download-grid article {
  padding: 1.4rem;
}

.download-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.download-card--reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out, box-shadow 0.2s ease, background 0.2s ease;
  will-change: opacity, transform;
}

.download-card--reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .download-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(15, 27, 43, 0.12);
    background: rgba(255, 255, 255, 0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-card--reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.download-note {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.mini-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.mini-nav a {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 22px rgba(15, 27, 43, 0.08);
  font-weight: 600;
}

.mini-nav a:hover,
.mini-nav a:focus-visible {
  color: var(--text);
  border-color: rgba(47, 108, 207, 0.25);
}

.impressum-block {
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(15, 27, 43, 0.08);
}

.impressum-block:last-of-type {
  border-bottom: none;
}

.impressum-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.6rem 1rem;
  margin-top: 0.8rem;
}

.impressum-grid .imp-label {
  font-weight: 700;
  color: var(--muted);
}

.impressum-grid .imp-value {
  color: var(--text);
}

.impressum-grid a {
  color: var(--accent);
  font-weight: 600;
}

.impressum-card {
  padding: 1.8rem 2.1rem;
}

.imp-bullets {
  list-style: disc;
  margin: 0.5rem 0 0 1.2rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Configurator */
.config-hero {
  max-width: 900px;
  margin: 0 auto;
}

/* Configurator */
.config-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.config-columns {
  display: grid;
  gap: 1rem;
}

.config-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.config-card--reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out, box-shadow 0.2s ease, background 0.2s ease;
  will-change: opacity, transform;
}

.config-card--reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.config-card h3 {
  margin: 0;
}

.config-options-list {
  display: grid;
  gap: 0.65rem;
}

.config-option-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.2rem 0;
}

.config-option {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--text);
  border-radius: 6px;
  background: #fff;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.config-option[type="radio"] {
  border-radius: 50%;
}

.config-option:checked {
  border-color: var(--accent-strong);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 0 3px rgba(47, 108, 207, 0.2);
}

.config-option[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 5px 6px 6px 5px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.config-option[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}

.config-option:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(47, 108, 207, 0.15);
}

.config-option:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(47, 108, 207, 0.18);
}

.config-option:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.config-option-row label {
  font-weight: 600;
  color: var(--text);
}

.config-option-row .option-hint {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.95rem;
}

.config-options-list p.option-label {
  margin: 0.85rem 0 0.25rem;
}

.config-summary {
  position: sticky;
  top: 96px;
  align-self: start;
}

.config-summary-block h4 {
  margin: 0.2rem 0 0.3rem;
}

.config-summary-block ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.25rem;
}

.config-note {
  margin-top: 0.8rem;
  color: var(--muted);
}

.config-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.config-status {
  min-height: 1.2rem;
  color: var(--muted);
  font-weight: 600;
}

.config-status.success {
  color: var(--accent-strong);
}

.config-status.error {
  color: var(--danger);
}

.preset-group {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}

.preset-option {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease, background 0.15s ease;
  background: rgba(255, 255, 255, 0.88);
}

.preset-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.preset-option strong {
  font-size: 1rem;
}

.preset-option small {
  color: var(--muted);
  line-height: 1.4;
}

.preset-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 27, 43, 0.12);
}

.preset-option.active {
  border-color: rgba(47, 108, 207, 0.45);
  background: linear-gradient(135deg, rgba(47, 108, 207, 0.12), rgba(92, 157, 255, 0.12));
  box-shadow: 0 16px 30px rgba(15, 27, 43, 0.15);
}

.option-help-btn {
  margin-left: auto;
  background: rgba(47, 108, 207, 0.12);
  color: var(--accent-strong);
  border: 1px solid rgba(47, 108, 207, 0.25);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.option-help-btn:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(47, 108, 207, 0.18);
}

.option-help-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 27, 43, 0.12);
}

.option-help {
  display: none;
  margin-top: 0.4rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 27, 43, 0.08);
  background: rgba(15, 27, 43, 0.04);
  color: var(--text);
  line-height: 1.5;
}

.option-help.open {
  display: block;
}

.section-sublabel {
  margin: 0.85rem 0 0.25rem;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 820px) {
  .config-grid {
    grid-template-columns: 1fr;
  }

  .config-summary {
    position: relative;
    top: 0;
  }

  .preset-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .config-card {
    padding: 1.1rem;
  }
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  padding: 2rem 0;
  box-shadow: 0 -8px 18px rgba(15, 27, 43, 0.06);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand .brand {
  text-decoration: none;
  gap: 0.7rem;
}

.footer-logo {
  width: 52px;
  height: 52px;
}

.footer-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-demo-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
}

.footer-copy {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-legal {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.footer-legal h4 {
  margin-bottom: 0.4rem;
}

@media (max-width: 720px) {
  .footer-content {
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

/* Configurator page overrides: disable reveal */
body.configurator-page .reveal-section,
body.configurator-page .config-card--reveal,
body.configurator-page .config-card--reveal.is-visible,
body.configurator-page .config-grid {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

body.configurator-page .config-grid {
  height: auto;
  overflow: visible;
}

/* Legal pages: disable scroll reveals and transitions */
body.no-scroll-effects .reveal-section,
body.no-scroll-effects .service-card--from-left,
body.no-scroll-effects .service-card--from-right,
body.no-scroll-effects .reference-card,
body.no-scroll-effects .blog-card--reveal,
body.no-scroll-effects .blog-article--reveal,
body.no-scroll-effects .faq-item--reveal,
body.no-scroll-effects .download-card--reveal,
body.no-scroll-effects .config-card--reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  filter: none !important;
}

body.no-scroll-effects {
  overflow-x: hidden;
}

/* Checklist page */
body.checklist-page {
  background: #ffffff;
  color: #0f1b2b;
  line-height: 1.6;
}

body.checklist-page::before,
body.checklist-page::after {
  display: none;
}

body.report-page {
  background: #ffffff;
  color: #0f1b2b;
  line-height: 1.6;
}

body.report-page::before,
body.report-page::after {
  display: none;
}

.report-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.report-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.report-brand-logo img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
}

.report-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.report-brand-text .brand-main {
  font-size: 1.1rem;
  font-weight: 700;
}

.report-brand-text .brand-accent-underline {
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.report-brand-text .brand-accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 25%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.report-intro h1 {
  margin: 0 0 0.4rem;
}

.report-hint {
  color: var(--muted);
}

.report-actions {
  margin-top: 0.8rem;
}

.report-main {
  padding: 2rem 0 3rem;
  display: grid;
  gap: 1rem;
}

.report-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  background: #fff;
  box-shadow: 0 10px 20px rgba(15, 27, 43, 0.05);
}

.report-section h2 {
  margin: 0 0 0.5rem;
}

.report-selection-text {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.report-section ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.report-option {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.report-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-strong);
}

.report-option.is-selected span {
  font-weight: 700;
}

.report-option.is-selected span::before {
  content: "✓ ";
  color: var(--accent-strong);
}

.report-section p {
  margin: 0.2rem 0 0;
}

.report-warning {
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(255, 196, 0, 0.12);
  border: 1px solid rgba(255, 196, 0, 0.4);
  color: #7a4d00;
}

.report-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
}

.checklist-header {
  padding: 3rem 0 1rem;
}

.checklist-main {
  padding: 0 0 3rem;
}

.checklist-grid {
  display: grid;
  gap: 1.2rem;
}

.checklist-card {
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 16px rgba(15, 27, 43, 0.06);
}

.checklist-card h2 {
  margin: 0 0 0.6rem;
}

.checklist-card h3 {
  margin: 0.8rem 0 0.4rem;
}

.checklist-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.checklist-card li {
  display: flex;
  gap: 0.6rem;
}

.checklist-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.checklist-card .hint {
  color: var(--muted);
  font-size: 0.95rem;
  margin-left: 0.35rem;
}

.checklist-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem;
  font: inherit;
  min-height: 120px;
}

.checklist-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 92%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  z-index: 60;
  box-shadow: var(--shadow);
}

.cookie-banner p {
  margin: 0;
}

.hidden {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
    padding: 0.5rem 0.35rem 0.5rem 0.5rem;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 5%;
    width: 90%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.8rem;
    display: none;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .dropdown-toggle,
  .nav-links a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.8rem;
    justify-content: space-between;
    text-align: left;
    font-size: 1rem; /* Mobile kann separat angepasst werden */
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 0.35rem;
    box-shadow: none;
    display: none;
  }

  .nav-item.has-dropdown:hover .dropdown-menu,
  .nav-item.has-dropdown:focus-within .dropdown-menu {
    display: none;
  }

  .nav-item.has-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 0.65rem 0.75rem;
  }

  .hero {
    padding-top: 6rem;
  }

  .hero-grid,
  .about-layout {
    padding: 1.4rem;
  }

  .metrics {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .config-grid {
    grid-template-columns: 1fr;
  }

  .config-summary {
    position: relative;
    top: 0;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
  }
  .brand-main {
    font-size: 0.95rem;
  }
  .brand-accent-underline {
    font-size: 0.9rem;
  }
}

@media (max-width: 720px) {
  .mini-nav {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .impressum-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 5.25rem;
  }

  .hero-grid {
    gap: 1rem;
    max-width: 100%;
  }

  .hero-side {
    display: none;
  }

  .hero-content {
    width: 100%;
    max-width: min(90%, 360px);
    margin: 0 auto;
    text-align: left;
  }

  .hero-title::after {
    width: 48px;
    margin-top: 0.35rem;
  }

  .hero-content .lead {
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.5rem;
    margin: 1.4rem 0 1.1rem;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-highlights {
    display: none;
  }

  .section {
    padding: 4rem 0;
  }

  .section#blog,
  .section#faq,
  .section#downloads {
    display: none;
  }

  .reference-card.hide-on-mobile {
    display: none;
  }

  .section-header {
    margin-bottom: 1.8rem;
  }

  .section-header h2 {
    line-height: 1.25;
  }

  .section-header p {
    font-size: 1rem;
    line-height: 1.6;
  }

.hide-on-mobile {
  display: none !important;
}
}

.footer-links a[href$="agb.html"],
.footer-links a[href$="widerruf.html"] {
  text-decoration: none;
}

.legal-card {
  width: 100%;
  box-sizing: border-box;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 2.1rem;
  display: grid;
  gap: 1.1rem;
  max-width: 1100px;
  margin: 0 auto;
}

body.no-scroll-effects .legal-card,
body.no-scroll-effects .legal-section,
body.no-scroll-effects .legal-section p,
body.no-scroll-effects .legal-section li {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.legal-toc-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  background: rgba(255, 255, 255, 0.62);
  position: relative;
  z-index: 1;
}

.legal-toc-wrap summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}

.legal-toc {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.45rem 0.55rem;
  margin-top: 0.35rem;
}

.legal-toc a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  min-width: 0;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease;
}

.legal-toc__badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(47, 108, 207, 0.08);
  color: var(--accent-strong);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legal-toc__label {
  flex: 1;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.no-scroll-effects .legal-toc__label {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.legal-section {
  width: 100%;
  box-sizing: border-box;
  scroll-margin-top: 96px;
  display: grid;
  gap: 0.65rem;
}

.legal-section h2 {
  margin-bottom: 0.2rem;
}

.legal-section ol {
  padding-left: 1.15rem;
  display: grid;
  gap: 0.38rem;
  list-style: decimal;
}

.legal-section ul {
  padding-left: 1.05rem;
  display: grid;
  gap: 0.26rem;
  list-style: disc;
}

.legal-section p,
.legal-section li {
  overflow-wrap: break-word;
  word-break: break-word;
}

.legal-section li ul {
  margin-top: 0.25rem;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  border-color: rgba(47, 108, 207, 0.65);
  box-shadow: 0 0 0 2px rgba(47, 108, 207, 0.12);
  transform: translateY(-1px);
}

.legal-toc a:focus-visible {
  outline: none;
}

.legal-toc a.is-active {
  border-color: rgba(47, 108, 207, 0.8);
  background: rgba(47, 108, 207, 0.08);
  color: var(--text);
}

.legal-details {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.5);
}

.legal-details summary {
  cursor: pointer;
  font-weight: 700;
}

body.no-scroll-effects .legal-toc-wrap summary,
body.no-scroll-effects .legal-details summary {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.legal-details__body {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.legal-form .form-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.legal-form label {
  font-weight: 700;
}

.legal-form input,
.legal-form textarea,
.legal-form select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.legal-form textarea {
  resize: vertical;
}

.legal-form .checkbox-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.widerruf-form .checkbox-row label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.35;
  cursor: pointer;
  padding: 6px 0;
}

.widerruf-form .checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 2px;
  accent-color: var(--accent, #2f6ccf);
}

.widerruf-form .checkbox-hint {
  margin: 6px 0 14px 32px;
  font-size: 0.95em;
  opacity: 0.85;
}

.widerruf-form .form-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.95rem;
}

.widerruf-form .form-fieldset legend {
  font-weight: 700;
  font-size: 1rem;
  padding: 0 0.25rem;
}

.widerruf-form textarea[data-autogrow="true"] {
  min-height: 220px;
  resize: vertical;
  overflow-y: hidden;
}

@media (max-width: 720px) {
  .widerruf-form .checkbox-row input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }
}

.legal-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.legal-form .form-hint {
  margin-top: 0.4rem;
  color: var(--muted);
}

.legal-form .form-status {
  margin-top: 0.3rem;
  font-weight: 700;
}

@media (min-width: 1200px) {
  .legal-toc {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
}

@media (max-width: 960px) {
  .legal-card {
    padding: 1.5rem 1.35rem;
  }

  .legal-toc {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 720px) {
  .legal-card {
    padding: 1.2rem 1.05rem;
  }

  .legal-toc {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.35rem 0.4rem;
  }

  .legal-toc__badge {
    width: 26px;
    height: 26px;
  }

  .legal-toc__label {
    font-size: 0.93rem;
  }
}

@media (max-width: 540px) {
  .legal-card {
    padding: 1.05rem 0.95rem;
  }

  .legal-toc {
    grid-template-columns: 1fr;
    gap: 0.3rem 0.35rem;
  }

  .legal-toc a {
    min-height: 48px;
  }

  .legal-section ol {
    padding-left: 1rem;
  }

  .legal-section ul {
    padding-left: 0.9rem;
  }

  .legal-section {
    gap: 0.55rem;
  }
}

@media print {
  header,
  .footer,
  .nav-container,
  .nav-links,
  .reference-media,
  .btn,
  .form-actions,
  .nav-toggle {
    display: none !important;
  }

  body,
  body::before,
  body::after {
    background: #fff !important;
    opacity: 1 !important;
  }

  .section {
    padding: 0;
  }

  .glass-card,
  .text-glass,
  .legal-card {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
  }

  .legal-toc-wrap {
    border: none;
    padding: 0 0 0.25rem;
  }

  .legal-toc {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.2rem 0.4rem;
  }

  .legal-toc a {
    border: none;
    background: transparent;
    padding: 0.1rem 0;
    min-height: auto;
    box-shadow: none;
    color: #000;
  }

  .legal-toc__badge {
    background: transparent;
    border: 1px solid #888;
    color: #000;
    width: 22px;
    height: 22px;
    font-size: 0.85rem;
  }

  .legal-toc__label {
    -webkit-line-clamp: unset;
    color: #000;
  }

  .legal-form input,
  .legal-form textarea,
  .legal-form select {
    border: 1px solid #444;
    background: #fff;
  }
}

@media (max-width: 540px) {
  .hero-content h1 {
    font-size: 1.9rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 100%;
    padding: 0.76rem 0.95rem;
    font-size: 0.94rem;
  }

  .hero-actions .btn-ghost {
    display: none;
  }

  .hide-mobile {
    display: none !important;
  }

  .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-main {
    font-size: 0.92rem;
  }

  .brand-accent-underline {
    font-size: 0.88rem;
  }

  .config-card {
    padding: 1.1rem;
  }
}
