/* ==========================================================================
   RVA Energietechnik – Stylesheet (Redesign)
   Farben: aus rva-energy.de (assets/css/main.css) und dem RVA-Logo (#1B3F73)
   Aufbau: mobile-first, fluide Typografie mit clamp()
   ========================================================================== */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- Markenfarben (heutige RVA-Seite) --- */
  --rva-blue: #1B3F73;          /* Markenblau (Logo) */
  --rva-blue-deep: #122C52;     /* abgedunkeltes Markenblau */
  --rva-yellow: #F2B705;        /* RVA Signalgelb (Primärfarbe) */
  --rva-yellow-dark: #D99E00;   /* Gelb Hover */
  --rva-yellow-light: rgba(242, 183, 5, 0.14);
  --rva-cyan: #00A8E8;          /* Akzent Cyan */
  --rva-cyan-light: rgba(0, 168, 232, 0.12);

  /* --- Dunkle Flächen --- */
  --ink: #0B1320;               /* Deep Tech Slate */
  --ink-2: #131E2F;
  --ink-border: #23344E;

  /* --- Helle Flächen & Linien --- */
  --bg: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-hover: #F1F5F9;
  --border: #E2E8F0;

  /* --- Text --- */
  --text: #0F172A;
  --text-muted: #475569;
  --text-on-dark: #F8FAFC;
  --text-muted-on-dark: #94A3B8;

  --success: #10B981;

  /* --- Typografie --- */
  --font-head: "Sora", "Segoe UI", Arial, Helvetica, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  --fs-hero: clamp(2.1rem, 1.25rem + 3.1vw, 4.4rem);
  --fs-h1: clamp(2rem, 1.35rem + 2.9vw, 4.25rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 2.1vw, 3.4rem);
  --fs-h3: clamp(1.2rem, 1.08rem + 0.55vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.3rem);
  --fs-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.78rem;

  /* --- Layout --- */
  --gutter: clamp(1rem, 0.4rem + 3vw, 4rem);
  --container: 92rem;
  --section-y: clamp(4rem, 2.6rem + 6vw, 9rem);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: clamp(20px, 1rem + 1vw, 32px);
  --header-h: 4.75rem;

  --shadow-sm: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Große Monitore: alles proportional mitwachsen lassen */
html { font-size: 100%; }
@media (min-width: 1680px) { html { font-size: 106.25%; } }
@media (min-width: 2200px) { html { font-size: 118.75%; } }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 4.5rem);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: inherit;
  overflow-wrap: break-word;
  hyphens: manual;
}
h1 { font-size: var(--fs-h1); font-weight: 400; }
h2 { font-size: var(--fs-h2); font-weight: 400; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4 { font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.01em; }
p { max-width: 70ch; }
strong { font-weight: 650; }

:focus-visible { outline: 3px solid var(--rva-cyan); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--rva-yellow); color: var(--ink); padding: .75rem 1.25rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--narrow { --container: 58rem; }

/* --------------------------------------------------------------------------
   Buttons (Pill-Form mit Pfeil-Kreis)
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--rva-yellow);
  --btn-fg: var(--ink);
  --btn-border: var(--rva-yellow);
  --btn-icon-bg: var(--ink);
  --btn-icon-fg: var(--rva-yellow);
  display: inline-flex; align-items: center; justify-content: space-between; gap: .9rem;
  min-height: 3.25rem;
  padding: .4rem .45rem .4rem 1.5rem;
  border: 1.5px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn__icon {
  flex: none; display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--btn-icon-bg); color: var(--btn-icon-fg);
  transition: transform .35s var(--ease);
}
.btn__icon svg { width: 1.05rem; height: 1.05rem; }
.btn:hover .btn__icon, .btn:focus-visible .btn__icon { transform: translateX(3px) rotate(-45deg); }
.btn:hover { --btn-bg: var(--rva-yellow-dark); --btn-border: var(--rva-yellow-dark); }

.btn--light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255,255,255,.55); --btn-icon-bg: #fff; --btn-icon-fg: var(--ink); }
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-border: #fff; --btn-icon-bg: var(--rva-yellow); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--text); --btn-border: var(--text); --btn-icon-bg: var(--rva-blue); --btn-icon-fg: #fff; }
.btn--outline:hover { --btn-bg: var(--text); --btn-fg: #fff; --btn-border: var(--text); --btn-icon-bg: var(--rva-yellow); --btn-icon-fg: var(--ink); }

.btn--blue { --btn-bg: var(--rva-blue); --btn-fg: #fff; --btn-border: var(--rva-blue); --btn-icon-bg: var(--rva-yellow); --btn-icon-fg: var(--ink); }
.btn--blue:hover { --btn-bg: var(--rva-blue-deep); --btn-border: var(--rva-blue-deep); }

.btn--block { width: 100%; }
.btn--sm { min-height: 2.6rem; padding: .3rem 1.1rem; font-size: .9rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--rva-blue); text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
  transition: color .25s, gap .25s var(--ease);
}
.text-link:hover { color: var(--text); gap: .75rem; }
.text-link svg { width: 1rem; height: 1rem; flex: none; }
.on-dark .text-link { color: var(--rva-yellow); }
.on-dark .text-link:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Header / Navigation (sticky, Farbwechsel beim Scrollen)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: #fff;
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.site-header::before { /* dezenter Verlauf für Lesbarkeit über Hero */
  content: ""; position: absolute; inset: 0 0 -2rem 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,19,32,.55), rgba(11,19,32,0));
  transition: opacity .4s;
}
.site-header.is-scrolled, .nav-open .site-header {
  background: rgba(255,255,255,.97);
  color: var(--text);
  box-shadow: 0 1px 0 var(--border), 0 10px 30px rgba(15,23,42,.06);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.site-header.is-scrolled::before, .nav-open .site-header::before { opacity: 0; }

.utility-bar { display: none; }
.utility-bar__inner { display: flex; gap: 1.75rem; align-items: center; font-size: .8rem; }
.utility-bar__item { display: inline-flex; align-items: center; gap: .45rem; opacity: .85; text-decoration: none; }
.utility-bar__item svg { width: .95rem; height: .95rem; }
a.utility-bar__item:hover { opacity: 1; text-decoration: underline; }

.header-main { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.logo { flex: none; display: block; position: relative; width: 6.1rem; margin-right: auto; }
.logo img { width: 100%; height: auto; transition: opacity .35s; }
.logo .logo--dark { position: absolute; inset: 0; opacity: 0; }
.is-scrolled .logo .logo--light, .nav-open .logo .logo--light { opacity: 0; }
.is-scrolled .logo .logo--dark, .nav-open .logo .logo--dark { opacity: 1; }

.main-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem .85rem; border-radius: 999px;
  font-size: .95rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  background: none; border: 0; cursor: pointer; color: inherit;
  transition: background-color .25s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: rgba(255,255,255,.14); }
.is-scrolled .nav-link:hover, .is-scrolled .nav-link[aria-expanded="true"] { background: var(--bg-hover); }
.nav-link[aria-current="page"], .nav-link.is-active { box-shadow: inset 0 -2px 0 var(--rva-yellow); border-radius: 0; }
.nav-link svg { width: .8rem; height: .8rem; transition: transform .25s; }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + .6rem); left: 50%;
  width: 22rem; padding: .6rem;
  background: #fff; color: var(--text);
  border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a {
  position: relative; display: block; padding: .9rem 1rem .9rem 2.3rem; border-radius: 12px; text-decoration: none;
  transition: background-color .2s;
}
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--bg-subtle); }
.dropdown__title { display: block; font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .01em; }
.dropdown__sub { display: block; font-size: .85rem; color: var(--text-muted); margin-top: .15rem; }
.dropdown a::before {
  content: ""; position: absolute; left: 1rem; top: 1.3rem; width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--rva-yellow);
}
.dropdown a + a::before { background: var(--rva-cyan); }

.lang-switch { display: inline-flex; align-items: center; gap: .15rem; font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
.lang-switch a, .lang-switch span {
  padding: .35rem .5rem; border-radius: 6px; text-decoration: none; line-height: 1;
}
.lang-switch a { opacity: .7; transition: opacity .2s, background-color .2s; }
.lang-switch a:hover { opacity: 1; background: rgba(127,127,127,.15); }
.lang-switch [aria-current] { color: var(--ink); background: var(--rva-yellow); }
.lang-switch__sep { opacity: .45; padding: 0 !important; }

.header-cta { display: none; }

.burger {
  flex: none; display: grid; place-items: center;
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  border: 1.5px solid currentColor; background: none; cursor: pointer; color: inherit;
}
.burger span { position: relative; display: block; width: 1.15rem; height: 1.5px; background: currentColor; transition: background-color .2s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Mobile-Menü */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: #fff; color: var(--text);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 1.5rem var(--gutter) 2.5rem;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.nav-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.mobile-nav__list > li { border-bottom: 1px solid var(--border); }
.mobile-nav__link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; font-family: var(--font-head); font-size: clamp(1.25rem, 1rem + 1.4vw, 1.6rem);
  text-decoration: none; letter-spacing: -.01em;
}
.mobile-nav__link[aria-current="page"] { color: var(--rva-blue); }
.mobile-nav__label { display: block; padding: 1rem 0 .25rem; font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .14em; color: var(--rva-yellow-dark); }
.mobile-nav__sub { display: block; padding: .6rem 0 .6rem 1rem; border-left: 2px solid var(--rva-yellow); margin: .35rem 0; text-decoration: none; font-weight: 600; }
.mobile-nav__sub small { display: block; font-weight: 400; color: var(--text-muted); font-size: .85rem; }
.mobile-nav__sub[aria-current="page"] { color: var(--rva-blue); }
.mobile-nav__cta { margin-top: 1.75rem; }
.mobile-nav__meta { margin-top: 1.75rem; display: grid; gap: .6rem; color: var(--text-muted); font-size: .95rem; }
.mobile-nav__meta a, .mobile-nav__meta span { display: inline-flex; gap: .6rem; align-items: center; text-decoration: none; }
.mobile-nav__meta svg { width: 1rem; height: 1rem; color: var(--rva-blue); }

@media (min-width: 1180px) {
  :root { --header-h: 5rem; }
  .utility-bar {
    display: block; overflow: hidden; max-height: 2.25rem;
    border-bottom: 1px solid rgba(255,255,255,.14);
    transition: max-height .35s var(--ease), border-color .35s;
  }
  .utility-bar__inner { height: 2.25rem; }
  .is-scrolled .utility-bar { max-height: 0; border-color: transparent; }
  .logo { width: 6.75rem; margin-right: 1.5rem; }
  .main-nav { display: block; margin-right: auto; }
  .header-cta { display: inline-flex; }
  .burger, .mobile-nav { display: none; }
  html { scroll-padding-top: calc(var(--header-h) + 5rem); }
}

/* --------------------------------------------------------------------------
   Sektionen & Überschriften
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section-y); position: relative; }
.section--subtle { background: var(--bg-subtle); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--blue { background: var(--rva-blue); color: #fff; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section + .section--flush-top { padding-top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--rva-blue);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--rva-yellow); flex: none; }
.on-dark .eyebrow, .cert .eyebrow, .section--dark .eyebrow, .section--blue .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--rva-yellow); }

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section-head h2 { max-width: 22ch; }
.section-head p { color: var(--text-muted); font-size: var(--fs-lead); max-width: 60ch; }
.section--dark .section-head p, .section--blue .section-head p, .on-dark .section-head p { color: var(--text-muted-on-dark); }
.section--blue .section-head p { color: rgba(255,255,255,.8); }
.section-head--center { text-align: center; justify-items: center; }
.section-head--center .eyebrow { justify-content: center; }
@media (min-width: 960px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 3rem; }
  .section-head--split .section-head__text { padding-bottom: .4rem; }
}

.lead { font-size: var(--fs-lead); line-height: 1.55; }
.muted { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Hero Startseite (Vollbild-Video)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff; background: var(--ink);
  padding: calc(var(--header-h) + 3rem) 0 clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__still { display: none; width: 100%; height: 100%; }
@media (max-width: 767px) {
  .hero__media video { display: none; }
  .hero__still { display: block; }
  .hero__media img { object-position: 50% 30%; }
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11,19,32,.78) 0%, rgba(11,19,32,.5) 45%, rgba(11,19,32,.12) 80%),
    linear-gradient(0deg, rgba(11,19,32,.7) 0%, rgba(11,19,32,0) 45%);
}
@media (prefers-reduced-motion: reduce) {
  .hero__media video { display: none; }
  .hero__still { display: block; }
}
.hero__content { max-width: 56rem; }
.page-hero .hero__content { max-width: 52rem; }
.hero h1 { font-size: var(--fs-hero); line-height: 1.06; margin-bottom: clamp(1.75rem, 1.4rem + 1vw, 2.5rem); font-weight: 400; }
.hero h1 .accent { color: var(--rva-yellow); }
.hero__text { font-size: var(--fs-lead); color: rgba(255,255,255,.86); max-width: 36rem; margin-bottom: 2rem; }
.hero__badge {
  display: inline-block; margin-bottom: 1.4rem; padding: .45rem .9rem;
  border: 1px solid rgba(242,183,5,.6); border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--rva-yellow);
  background: rgba(11,19,32,.35);
}
.hero__checks { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.9rem; font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.85); }
.hero__checks li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__checks svg { width: 1rem; height: 1rem; color: var(--rva-yellow); }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
  display: none; width: 3rem; height: 3rem; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.55); place-items: center; color: #fff;
  transition: background-color .3s, color .3s;
}
.hero__scroll:hover { background: #fff; color: var(--ink); }
.hero__scroll svg { width: 1.1rem; height: 1.1rem; }
@media (min-width: 768px) { .hero__scroll { display: grid; } }

/* --------------------------------------------------------------------------
   Unterseiten-Hero
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 0%, #1f4a86 0%, var(--rva-blue) 30%, var(--ink) 85%);
  color: #fff;
  padding: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 7rem)) 0 clamp(3.5rem, 2rem + 5vw, 7rem);
}
@media (min-width: 1180px) { .page-hero { padding-top: calc(var(--header-h) + 2.25rem + clamp(3rem, 2rem + 4vw, 6rem)); } }
.page-hero::after { /* feine Energie-Linie */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--rva-yellow) 0 22%, var(--rva-cyan) 22% 30%, transparent 30%);
}
.page-hero--image .page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero--image .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--image::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11,19,32,.9) 0%, rgba(11,19,32,.72) 50%, rgba(11,19,32,.35) 100%);
}
.page-hero__grid { display: grid; gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); align-items: center; }
.page-hero h1 { margin-bottom: 1.4rem; max-width: 18ch; }
.page-hero h1.page-hero__title--long { max-width: 24ch; }
.page-hero .lead { color: rgba(255,255,255,.9); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,.78); }
.page-hero .btn-row { margin-top: 2rem; }
.page-hero__media {
  border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.page-hero__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.page-hero__media--cutout { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.page-hero__media--cutout img {
  aspect-ratio: auto; object-fit: contain; max-height: 30rem; width: auto; max-width: 100%; margin-inline: auto;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.45));
}
.page-hero--legal { padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.page-hero--legal h1 { max-width: none; margin-bottom: 0; }
.page-hero--legal p { margin-top: 1rem; }
@media (min-width: 960px) {
  .page-hero__grid--media { grid-template-columns: 1.05fr 1fr; }
}

/* Sprungmarken-Leiste */
.subnav {
  position: sticky; top: var(--header-h); z-index: 90;
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.subnav__wrap { display: flex; align-items: center; gap: .4rem; }
.subnav__inner {
  --fade-l: 0rem; --fade-r: 0rem;
  flex: 1; min-width: 0;
  display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none;
  padding-block: .7rem; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
}
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav__inner.can-left { --fade-l: 1.5rem; }
.subnav__inner.can-right { --fade-r: 1.5rem; }
.subnav__arrow {
  flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0;
  border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--text-muted); cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, opacity .25s;
}
.subnav__arrow[hidden] { display: none; }
.subnav__arrow svg { width: 1.1rem; height: 1.1rem; }
.subnav__arrow:hover:not(:disabled) { color: var(--text); border-color: var(--text-muted); }
.subnav__arrow:disabled { opacity: .35; cursor: default; }
@media (hover: none) { .subnav__arrow { display: none; } }
.subnav a {
  flex: none; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border);
  font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--text-muted); white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s;
}
.subnav a:hover { color: var(--text); border-color: var(--text-muted); }
.subnav a.is-active { background: var(--rva-blue); border-color: var(--rva-blue); color: #fff; }

/* --------------------------------------------------------------------------
   Kennzahlen-Leiste (Trust Bar) & Metriken
   -------------------------------------------------------------------------- */
.stats { display: grid; gap: 0; }
.stat { padding: 1.6rem 0; border-top: 1px solid var(--border); }
.stat__value {
  display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
  font-family: var(--font-head); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15;
}
.stat__value .flag { width: 1.9rem; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.stat__label { color: var(--text-muted); font-size: .95rem; margin-top: .35rem; }
@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

.metrics { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.metric { border-top: 2px solid var(--text); padding-top: 1.4rem; }
.metric__value { font-family: var(--font-head); font-size: clamp(2.6rem, 1.8rem + 3vw, 4.5rem); font-weight: 400; line-height: 1; letter-spacing: -.03em; color: var(--rva-blue); }
.metric__label { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; margin: 1rem 0 .5rem; }
.metric__desc { color: var(--text-muted); font-size: .98rem; }
.metric:nth-child(odd) { border-top-color: var(--rva-yellow); }
@media (min-width: 600px) { .metrics { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; } }
@media (min-width: 1100px) { .metrics { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   Produktkarten
   -------------------------------------------------------------------------- */
.product-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.product-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-card__media {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  background: radial-gradient(90% 90% at 50% 60%, #fff 0%, var(--bg-hover) 100%);
}
@media (min-width: 1100px) { .product-card__media { aspect-ratio: 16 / 9; } }
.product-card__media--photo { background: #faf9f8; }
.product-card__media img {
  position: absolute; inset: 8% 6% 4%; width: 88%; height: 88%;
  object-fit: contain; transition: transform .8s var(--ease);
}
.product-card__media--photo img { inset: 4% 4% 0; width: 92%; height: 96%; object-fit: contain; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__tag {
  position: absolute; z-index: 1; top: 1rem; right: 1rem;
  padding: .4rem .8rem; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: .8rem; font-weight: 600;
}
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); gap: 1rem; }
.product-card__title { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); font-weight: 500; }
.product-card__lead { font-weight: 600; color: var(--rva-blue); }
.product-card .btn { margin-top: auto; align-self: flex-start; }
.product-card .checklist { margin-bottom: 1rem; }

.checklist { display: grid; gap: .65rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text-muted); }
.checklist svg { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .2rem; padding: .15rem; border-radius: 50%; background: var(--rva-yellow-light); color: var(--rva-yellow-dark); }
.checklist--cyan svg { background: var(--rva-cyan-light); color: #0077B6; }
.on-dark .checklist li { color: var(--text-muted-on-dark); }
.on-dark .checklist strong { color: #fff; }

/* --------------------------------------------------------------------------
   Feature (Baukran) – Hintergrundbild, drei gleich große Kennzahl-Kästen
   -------------------------------------------------------------------------- */
.feature-intro { max-width: 48rem; }
.feature__badge {
  display: inline-block; padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1.25rem;
  background: var(--rva-yellow); color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .12em;
}
.feature-intro h2 { margin-bottom: 1.25rem; }
.feature__text { color: rgba(255,255,255,.85); font-size: var(--fs-lead); margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.kpis { display: grid; gap: 1rem; margin-bottom: 2.25rem; }
@media (min-width: 640px) { .kpis--3 { grid-template-columns: repeat(3, 1fr); max-width: 56rem; } }
.kpi {
  display: flex; flex-direction: column; justify-content: center; gap: .3rem;
  padding: 1.1rem 1.3rem; border-radius: var(--radius);
  background: rgba(11,19,32,.72); border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.kpi__eyebrow { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .72rem; color: var(--rva-yellow); letter-spacing: .06em; }
.kpi__value { font-family: var(--font-head); font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem); font-weight: 500; color: var(--rva-yellow); line-height: 1.1; }
.kpi--cyan .kpi__value { color: var(--rva-cyan); }
.kpi--telemetry .kpi__value { color: #fff; }
.kpi__label { color: rgba(255,255,255,.82); font-size: .9rem; }

/* --------------------------------------------------------------------------
   Karten (Vorteile, Einsatzbereiche, Leistungen)
   -------------------------------------------------------------------------- */
.card-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (min-width: 1100px) { .card-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

.card {
  display: flex; flex-direction: column; gap: .85rem;
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: border-color .35s, box-shadow .35s var(--ease), transform .35s var(--ease);
}
.card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.card p { color: var(--text-muted); }
.card__icon {
  display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 14px;
  background: var(--rva-yellow-light); color: var(--rva-blue); margin-bottom: .5rem;
}
.card__icon svg { width: 1.5rem; height: 1.5rem; }
.card--accent { border-top: 3px solid var(--rva-yellow); }
.card-grid > .card--accent:nth-child(even) { border-top-color: var(--rva-cyan); }
.section--subtle .card { background: #fff; }
.card .text-link { margin-top: auto; align-self: flex-start; }

/* Karten auf Bild/Dunkel */
.on-dark .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.on-dark .card p { color: var(--text-muted-on-dark); }
.on-dark .card:hover { background: rgba(255,255,255,.1); box-shadow: none; }
.on-dark .card--accent { border-top: 3px solid var(--rva-yellow); }
.on-dark .card-grid > .card--accent:nth-child(even) { border-top-color: var(--rva-cyan); }

/* --------------------------------------------------------------------------
   Galerie mit Bildunterschriften
   -------------------------------------------------------------------------- */
.gallery { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.gallery figure { margin: 0; }
.gallery__img { overflow: hidden; border-radius: var(--radius); background: var(--bg-hover); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1s var(--ease); }
@media (max-width: 699px) { .gallery img { aspect-ratio: 4 / 3; } }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { margin-top: .9rem; font-size: .95rem; color: var(--text-muted); }
.gallery figcaption strong { display: block; color: var(--text); font-family: var(--font-head); font-weight: 600; margin-bottom: .15rem; }

/* Messe-Galerie */
.event { border-radius: var(--radius-lg); background: var(--bg-subtle); border: 1px solid var(--border); padding: clamp(1.5rem, 1rem + 2vw, 3rem); }
.badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.badge { display: inline-block; padding: .4rem .85rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; }
.badge--yellow { background: var(--rva-yellow); color: var(--ink); }
.badge--dark { background: var(--ink); color: #fff; }
.badge--outline { border: 1px solid currentColor; }
.event__text { color: var(--text-muted); font-size: var(--fs-lead); margin-bottom: 2rem; max-width: 62ch; }
.event-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 900px) { .event-gallery { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.event-gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius-sm); }
.event-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 1s var(--ease); }
@media (min-width: 900px) { .event-gallery img { aspect-ratio: 3 / 4; } }
.event-gallery figure:hover img { transform: scale(1.05); }

/* --------------------------------------------------------------------------
   Tabellen (Datenblatt) – auf dem Smartphone gestapelt
   -------------------------------------------------------------------------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: .98rem; font-feature-settings: "calt" 0; }
.spec-table th, .spec-table td { text-align: left; padding: 1rem 1.25rem; vertical-align: top; }
.spec-table thead th { font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--rva-blue); }
.spec-table thead th:first-child { border-top-left-radius: var(--radius-sm); }
.spec-table thead th:last-child { border-top-right-radius: var(--radius-sm); }
.spec-table tbody tr { border-bottom: 1px solid var(--border); }
.spec-table tbody tr:nth-child(even) { background: var(--bg-subtle); }
.spec-table td:first-child { font-weight: 600; width: 40%; }
.spec-table td:last-child { color: var(--text-muted); }
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.table-wrap .spec-table thead th { border-radius: 0; }
@media (max-width: 639px) {
  .spec-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .spec-table tr, .spec-table td { display: block; width: 100% !important; }
  .spec-table tbody tr { padding: .85rem 1rem; }
  .spec-table td { padding: 0; }
  .spec-table td:first-child { font-size: .85rem; color: var(--text); margin-bottom: .15rem; }
}

/* Varianten */
.variant-grid { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .variant-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.variant { display: flex; flex-direction: column; gap: .9rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--rva-blue); color: #fff; }
.variant p, .variant .muted { color: rgba(255,255,255,.8); }
.variant .spec-table tbody tr { border-color: rgba(255,255,255,.16); }
.variant .spec-table td:last-child { color: rgba(255,255,255,.8); }
.variant--featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.variant--featured p { color: var(--text-muted-on-dark); }
.variant--featured .spec-table tbody tr { border-color: var(--ink-border); }
.variant--featured .spec-table tbody tr:nth-child(even) { background: rgba(255,255,255,.04); }
.variant--featured .spec-table td:last-child { color: var(--text-muted-on-dark); }
.variant__label { font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .12em; color: var(--rva-yellow); }
.variant--featured .variant__label { color: var(--rva-yellow); }
.variant h3 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.9rem); font-weight: 500; }
.variant .spec-table { margin-top: .5rem; font-size: .95rem; }
.variant .spec-table td { padding: .8rem 0; }
.variant .spec-table td:first-child { padding-right: 1rem; }
.variant .spec-table tbody tr:nth-child(even) { background: none; }
@media (max-width: 639px) {
  .variant .spec-table tbody tr { padding: .8rem 0; }
  .variant .spec-table td { padding: 0; }
  .variant .spec-table td:first-child { color: #fff; padding: 0 0 .15rem; }
}

.recharge { margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--rva-blue); color: #fff; }
.recharge h3 { margin-bottom: 1.5rem; font-weight: 500; }
.recharge__grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .recharge__grid { grid-template-columns: repeat(3, 1fr); } }
.recharge__item { padding: 1.25rem 1.4rem; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.recharge__conn { font-size: .9rem; color: rgba(255,255,255,.8); }
.recharge__time { font-family: var(--font-head); font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem); color: var(--rva-yellow); line-height: 1.2; margin: .25rem 0; }
.recharge__desc { font-size: .9rem; color: rgba(255,255,255,.75); }

.variants-intro { display: grid; gap: 2rem; align-items: center; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.variants-intro .section-head { margin-bottom: 0; }
.variants-intro__img { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: #fff; }
.variants-intro__img img { width: 100%; aspect-ratio: 5 / 4; object-fit: contain; }
@media (min-width: 960px) { .variants-intro { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }

/* --------------------------------------------------------------------------
   Bildband (vollflächig)
   -------------------------------------------------------------------------- */
.image-section { position: relative; isolation: isolate; color: #fff; }
.image-section__bg { position: absolute; inset: 0; z-index: -2; }
.image-section__bg img { width: 100%; height: 100%; object-fit: cover; }
.image-section .section-head p, .image-section .card p { color: rgba(255,255,255,.85); }
.image-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,19,32,.82), rgba(11,19,32,.72)); }

/* --------------------------------------------------------------------------
   Split-Blöcke (Text + Bild)
   -------------------------------------------------------------------------- */
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse > :first-child { order: 2; } }
.split__media { border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--border); }
.split__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split h2, .split h3 { margin-bottom: 1.25rem; }
.split h3.split__title { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.6rem); font-weight: 400; }
.split p + p { margin-top: 1rem; }
.split p { color: var(--text-muted); }
.split .checklist { margin-top: 1.5rem; }

/* Zertifikate */
.cert { margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); border-radius: var(--radius-lg); background: var(--ink); color: #fff; display: grid; gap: 2rem; }
@media (min-width: 960px) { .cert { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.cert h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 400; margin-bottom: 1rem; }
.cert p { color: var(--text-muted-on-dark); }
.cert__list { display: grid; gap: 1rem; }
.cert__item { display: flex; gap: 1rem; align-items: center; padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--ink-border); background: var(--ink-2); }
.cert__item svg { flex: none; width: 2.6rem; height: 2.6rem; color: var(--rva-yellow); }
.cert__name { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.cert__desc { color: var(--text-muted-on-dark); font-size: .9rem; }

/* CTA-Band */
.cta-band { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); border-radius: var(--radius-lg); background: var(--rva-yellow); color: var(--ink); }
.cta-band h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); font-weight: 500; margin-bottom: .4rem; }
.cta-band .btn { --btn-bg: var(--ink); --btn-fg: #fff; --btn-border: var(--ink); --btn-icon-bg: var(--rva-yellow); --btn-icon-fg: var(--ink); justify-self: start; }
.cta-band .btn:hover { --btn-bg: var(--rva-blue); --btn-border: var(--rva-blue); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }

/* Team */
.team-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .team-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }
@media (min-width: 1500px) { .team-grid { grid-template-columns: repeat(5, 1fr); } }
.person { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.person__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-hover); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform 1s var(--ease); }
.person__photo--ar img { object-position: 50% 48%; }
.person:hover .person__photo img { transform: scale(1.04); }
.person__initials {
  aspect-ratio: 4 / 5; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--rva-blue), var(--ink));
  font-family: var(--font-head); font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); color: var(--rva-yellow); letter-spacing: .04em;
}
.person__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem 1.4rem 1.6rem; flex: 1; }
.person__body h3 { font-size: 1.2rem; font-weight: 600; }
.person__role { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rva-yellow-dark); }
.person__body p { color: var(--text-muted); font-size: .95rem; }
.person .text-link { margin-top: auto; align-self: flex-start; font-size: .92rem; }
.person__body p + .text-link { margin-top: auto; padding-top: 0; }
.person__body .spacer { flex: 1; }

/* Förderung */
.funding { display: grid; gap: 2rem; align-items: center; padding: clamp(1.5rem, 1rem + 2vw, 3rem); border-radius: var(--radius-lg); background: var(--bg-subtle); border: 1px solid var(--border); }
@media (min-width: 900px) { .funding { grid-template-columns: 1fr 1.4fr; gap: 3rem; } }
.funding__logos { display: grid; gap: 1.5rem; }
.funding__row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.funding__state { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.6rem; line-height: 1; }
.funding__ministry { font-size: .82rem; color: var(--text-muted); border-left: 2px solid var(--border); padding-left: .75rem; }
.funding__eu { font-weight: 700; font-size: .95rem; }
.funding p { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Anwendungsfälle
   -------------------------------------------------------------------------- */
.usecase { display: grid; gap: clamp(1.75rem, 1rem + 3vw, 4rem); padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); border-top: 1px solid var(--border); }
.usecase:first-child { border-top: 0; padding-top: 0; }
.usecase:last-child { padding-bottom: 0; }
@media (min-width: 960px) { .usecase { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.usecase__label { font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .12em; color: var(--rva-blue); margin-bottom: .9rem; display: block; }
.usecase h3 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.4rem); font-weight: 400; margin-bottom: 1rem; }
.usecase p { color: var(--text-muted); }
.usecase__products { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.recommend { flex: 1 1 15rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--rva-yellow-light); border-left: 3px solid var(--rva-yellow); }
a.recommend {
  position: relative; display: block; padding-right: 3rem; color: var(--text); text-decoration: none;
  transition: background-color .25s, transform .25s var(--ease), box-shadow .25s;
}
a.recommend:hover { background: rgba(242,183,5,.26); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
a.recommend > svg {
  position: absolute; right: 1rem; top: 50%; width: 1.1rem; height: 1.1rem; margin-top: -.55rem;
  color: var(--rva-yellow-dark); transition: transform .25s var(--ease);
}
a.recommend:hover > svg { transform: translateX(3px); }
.recommend strong { display: block; font-size: .72rem; letter-spacing: .12em; color: var(--text-muted); font-weight: 700; margin-bottom: .2rem; }
.recommend span { display: block; font-family: var(--font-head); font-weight: 600; }
.usecase__list { padding: clamp(1.4rem, 1rem + 1.5vw, 2.25rem); border-radius: var(--radius-lg); background: var(--bg-subtle); border: 1px solid var(--border); }
.usecase__list .checklist { gap: 1rem; }
.usecase__list .checklist strong { color: var(--text); }

/* --------------------------------------------------------------------------
   Formulare
   -------------------------------------------------------------------------- */
.form-section-grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); }
@media (min-width: 1000px) { .form-section-grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.form-card { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 2vw, 3rem); box-shadow: var(--shadow); }
.form-card h3, .form-card .h3 { margin-bottom: .6rem; font-size: var(--fs-h3); line-height: 1.25; }
.form-card > p { color: var(--text-muted); margin-bottom: 1.75rem; }
.form-grid { display: grid; gap: 1.1rem 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-group--full { grid-column: 1 / -1; } }
.form-group { display: grid; gap: .4rem; min-width: 0; }
.form-label { font-size: .88rem; font-weight: 600; }
.form-label span { color: var(--rva-yellow-dark); }
.form-control {
  width: 100%; min-width: 0; padding: .85rem 1rem; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--bg-subtle);
  font-size: 1rem; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.form-control::placeholder { color: #8391a7; }
.form-control:hover { border-color: #cbd5e1; }
.form-control:focus { outline: none; border-color: var(--rva-blue); background: #fff; box-shadow: 0 0 0 4px rgba(27,63,115,.12); }
select.form-control {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B3F73' stroke-width='2.2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem;
}
textarea.form-control { resize: vertical; min-height: 8rem; }
.form-check { display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; color: var(--text-muted); }
.form-check input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--rva-blue); }
.form-check a { color: var(--rva-blue); font-weight: 600; }
.form-submit { margin-top: 1.5rem; }
.form-response { margin-top: 1.25rem; }
.form-success { padding: 1.25rem; border-radius: 12px; border: 1px solid var(--success); background: rgba(16,185,129,.1); text-align: center; }
.form-success h4 { color: #047857; margin-bottom: .35rem; }
.form-success p { margin-inline: auto; font-size: .95rem; color: #065f46; }

.section--blue .section-head h2 { color: #fff; }

/* Kontaktseite */
.contact-list { display: grid; gap: 1rem; margin-top: 2.25rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.contact-item__icon { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--rva-yellow); color: var(--ink); }
.contact-item__icon svg { width: 1.2rem; height: 1.2rem; }
.contact-item h2 { font-family: var(--font-head); font-size: 1rem; font-weight: 600; margin-bottom: .3rem; letter-spacing: 0; }
.contact-item p { color: rgba(255,255,255,.8); }
.contact-item a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.contact-item a:hover { border-color: var(--rva-yellow); }
.contact-item__hint { font-size: .85rem; color: var(--rva-yellow); margin-top: .3rem; }
.page-hero--contact .form-card { box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.page-hero--contact h1 { max-width: 14ch; }

/* --------------------------------------------------------------------------
   Rechtstexte
   -------------------------------------------------------------------------- */
.legal { display: grid; gap: 0; }
.legal__block { padding-block: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem); border-top: 1px solid var(--border); }
.legal__block:first-child { border-top: 0; padding-top: 0; }
.legal h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); font-weight: 500; margin-bottom: 1rem; }
.legal h3 { font-size: 1.1rem; font-weight: 600; margin: 1.75rem 0 .6rem; }
.legal p, .legal li { color: var(--text-muted); }
.legal p + p { margin-top: .9rem; }
.legal ul { margin: .75rem 0; padding-left: 1.25rem; }
.legal li + li { margin-top: .35rem; }
.legal a { color: var(--rva-blue); word-break: break-word; }
.legal strong { color: var(--text); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--text-muted-on-dark); padding: clamp(3.5rem, 2.5rem + 4vw, 7rem) 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 3rem; } }
.footer-logo { width: 7.5rem; margin-bottom: 1.5rem; }
.footer-about { max-width: 34ch; margin-bottom: 1.5rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: .75rem; }
.footer-badges img { width: min(100%, 15rem); height: auto; border-radius: 8px; }
.site-footer h2 { font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1.25rem; }
.footer-links { display: grid; gap: .65rem; }
.footer-links a, .footer-contact a { text-decoration: none; transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--rva-yellow); }
.footer-contact { display: grid; gap: .9rem; }
.footer-contact li { display: flex; gap: .75rem; align-items: flex-start; }
.footer-contact svg { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .2rem; color: var(--rva-yellow); }
.footer-bottom {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding-top: 1.75rem; border-top: 1px solid var(--ink-border);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: .85rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-line { height: 4px; background: linear-gradient(90deg, var(--rva-yellow) 0 40%, var(--rva-cyan) 40% 55%, var(--rva-blue) 55%); }

/* --------------------------------------------------------------------------
   Cookie-Hinweis
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed; z-index: 150; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 26rem; padding: 1.4rem; border-radius: var(--radius);
  background: var(--ink-2); color: var(--text-muted-on-dark); border: 1px solid var(--ink-border);
  box-shadow: 0 20px 60px rgba(0,0,0,.35); font-size: .9rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__title { font-family: var(--font-head); font-weight: 600; color: #fff; margin-bottom: .4rem; font-size: 1rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.cookie-banner .btn { min-height: 2.5rem; padding: .3rem 1.1rem; font-size: .88rem; }
.cookie-banner .btn--light { --btn-border: rgba(255,255,255,.35); }
@media (min-width: 640px) { .cookie-banner { left: auto; right: 1.5rem; bottom: 1.5rem; } }

/* --------------------------------------------------------------------------
   Scroll-Animationen (nur wenn JS aktiv und Bewegung erlaubt)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; transform: translateY(28px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: var(--delay, 0s);
  }
  .js [data-reveal="fade"] { transform: none; }
  .js [data-reveal="zoom"] { transform: scale(.97); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }

  .hero__content > * { animation: heroIn 1.1s var(--ease) both; }
  .hero__content > *:nth-child(2) { animation-delay: .12s; }
  .hero__content > *:nth-child(3) { animation-delay: .24s; }
  .hero__content > *:nth-child(4) { animation-delay: .36s; }
  .hero__content > *:nth-child(5) { animation-delay: .48s; }
  @keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

/* Initialen-Karten ohne Foto auf schmalen Bildschirmen flacher */
@media (max-width: 559px) { .person__initials { aspect-ratio: 16 / 9; } }

/* Datenblatt-Überschrift einzeilig (ab Tablet) */
@media (min-width: 768px) { .section--datasheet .section-head h2 { max-width: none; white-space: nowrap; } }
