/* ──────────────────────────────────────────────────────────────────
   meidok · Material Symbols Rounded (self-hosted)
   ──────────────────────────────────────────────────────────────────
   Ersetzt den bisherigen <link>-Import von fonts.googleapis.com.
   Vorteile:
     · Keine Verbindung zu Google → DSGVO-sauber ohne Consent.
     · Icons laden auch wenn das Consent-Banner abgelehnt wurde
       (Icons sind funktionaler Inhalt, kein Tracking).
     · Keine externe Abhängigkeit / kein Mixed-Content-Risiko.

   Voraussetzung:
     Die Variable-Font-Datei muss vor dem ersten Page-Load in
     `files/meidok-marketingwebsite/fonts/` liegen, exakter Name:
       MaterialSymbolsRounded[FILL,GRAD,opsz,wght].woff2

     Bezugsquelle (Apache 2.0, freie Nutzung):
       https://github.com/google/material-design-icons
       → variablefont/MaterialSymbolsRounded[FILL,GRAD,opsz,wght].woff2

   Einbinden:
     In den Theme-CSS-Imports VOR `meidok-tokens.css` laden, damit die
     `.material-symbols-rounded`-Klasse überall verfügbar ist.
   ────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: 100 700;
  font-display: block; /* block statt swap — kein FOIT-Aufblitzen
                          der Ligatur-Namen wie „wifi_off" */
  src: url('../../files/meidok-marketingwebsite/fonts/MaterialSymbolsRounded[FILL,GRAD,opsz,wght].woff2')
       format('woff2-variations'),
       url('../../files/meidok-marketingwebsite/fonts/MaterialSymbolsRounded[FILL,GRAD,opsz,wght].woff2')
       format('woff2');
}

.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';

  /* Variation-Axes: wght 400, opsz 24, FILL 0, GRAD 0 — entspricht
     genau der bisherigen Google-Fonts-URL @24,400,0,0. */
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}

/* Optionale Modifier — nur falls ihr sie irgendwo nutzen wollt: */
.material-symbols-rounded.is-filled  { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.material-symbols-rounded.is-bold    { font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24; }
.material-symbols-rounded.is-emphasis{ font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 200, 'opsz' 24; }

/* ──────────────────────────────────────────────────────────────────
   meidok · Design Tokens
   ──────────────────────────────────────────────────────────────────
   Drop this stylesheet first; everything else builds on top.
   Self-hosts Outfit + Nunito from /files/meidok-marketingwebsite/fonts/.
   Material Symbols Rounded wird ebenfalls self-hosted ausgeliefert —
   @font-face dafür in meidok-material-symbols.css (separate Datei,
   weil sie vor allem anderen geladen sein muss).
   ────────────────────────────────────────────────────────────────── */

/* ── Web fonts ─────────────────────────────────────────────────── */
@font-face {
  font-family: "Outfit";
  src: url("../../files/meidok-marketingwebsite/fonts/Outfit-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../../files/meidok-marketingwebsite/fonts/Nunito-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../../files/meidok-marketingwebsite/fonts/Nunito-Italic-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

/* Material Symbols loaded via <link> in the Contao page layout — see
   theme/layout.html5. We only configure variation settings here. */
.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 22px;
  line-height: 1;
  user-select: none;
  display: inline-block;
  vertical-align: middle;
}

/* ── Tokens ────────────────────────────────────────────────────── */
:root {
  /* Brand blues */
  --md-blue-900: #0f3163;
  --md-blue-700: #1d4d91;
  --md-blue-500: #3b6bbf;
  --md-blue-300: #6cb4e4;
  --md-blue-200: #a4d8f9;
  --md-blue-100: #e0f0ff;
  --md-blue-50:  #f4f9ff;

  /* Brand orange — load-bearing accent */
  --md-orange-600: #ea8717;
  --md-orange-500: #ef661b;
  --md-orange-100: #fdebd9;

  /* Cool neutrals */
  --md-ink:       #080001;
  --md-graphite:  #1a2233;
  --md-slate-700: #3a4c67;
  --md-slate-500: #5c6b85;
  --md-slate-400: #8593aa;
  --md-slate-300: #b6c1d2;
  --md-slate-200: #d3dbe6;
  --md-slate-100: #dfe7ef;
  --md-slate-50:  #eef2f7;
  --md-paper:     #f7f9fc;
  --md-white:     #ffffff;

  /* Semantic */
  --md-success: #0c9a58;
  --md-warning: #e0c80e;
  --md-danger:  #ed1605;
  --md-info:    #ef661b;

  /* Dark hero surfaces (Variante B) */
  --md-hero-dark:  #06112a;
  --md-hero-deep:  #0a1c3d;

  /* Roles */
  --md-fg-1: var(--md-graphite);
  --md-fg-2: var(--md-slate-700);
  --md-fg-3: var(--md-slate-500);
  --md-bg-app: var(--md-paper);
  --md-bg-surface: var(--md-white);
  --md-border: var(--md-slate-200);

  /* Radii */
  --md-radius-sm: 6px;
  --md-radius-md: 10px;
  --md-radius-lg: 14px;
  --md-radius-pill: 999px;

  /* Spacing */
  --md-space-2: 8px;
  --md-space-3: 12px;
  --md-space-4: 16px;
  --md-space-6: 24px;
  --md-space-8: 32px;
  --md-space-10: 40px;
  --md-space-12: 48px;
  --md-space-16: 64px;

  /* Elevation */
  --md-shadow-1: 0 1px 2px rgba(15, 49, 99, 0.06), 0 1px 1px rgba(15, 49, 99, 0.04);
  --md-shadow-2: 0 4px 12px rgba(15, 49, 99, 0.08), 0 1px 2px rgba(15, 49, 99, 0.05);
  --md-shadow-3: 0 12px 32px rgba(15, 49, 99, 0.12), 0 2px 6px rgba(15, 49, 99, 0.06);

  /* Type families */
  --md-font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --md-font-ui:      "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --md-font-body:    "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --md-font-mono:    ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Motion */
  --md-ease:        cubic-bezier(.2, .6, .2, 1);
  --md-dur-fast:    120ms;
  --md-dur-normal:  200ms;
}

/* Sensible body defaults */
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Kein horizontales Scrollen — verhindert weiße Streifen rechts,
     wenn fixe Elemente (z. B. der versteckte Mobile-Drawer mit
     transform: translateX(100%)) auf iOS minimal überstehen. */
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--md-bg-app);
  color: var(--md-fg-1);
  font-family: var(--md-font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
}

.visible {
  display: none;
}

/* ──────────────────────────────────────────────────────────────────
   meidok · Components (atoms used across all CEs)
   ──────────────────────────────────────────────────────────────────
   Requires meidok-tokens.css. Pure visual primitives — buttons,
   badges, cards, form inputs, icon tiles, divider rules. Each CE
   only adds layout on top of these.
   ────────────────────────────────────────────────────────────────── */

/* ── Buttons ──────────────────────────────────────────────────── */

.md-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--md-radius-pill);
  font-family: var(--md-font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition:
    background var(--md-dur-fast) var(--md-ease),
    color var(--md-dur-fast) var(--md-ease),
    border-color var(--md-dur-fast) var(--md-ease),
    transform var(--md-dur-fast) var(--md-ease),
    box-shadow var(--md-dur-fast) var(--md-ease);
}
.md-btn:active { transform: scale(.985); }

.md-btn--lg { height: 52px; padding: 0 26px; font-size: 15.5px; }
.md-btn--xl { height: 58px; padding: 0 28px; font-size: 17px; font-weight: 700; }

.md-btn--primary {
  background: var(--md-blue-700);
  color: #fff;
}
.md-btn--primary:hover { background: #173f78; }

.md-btn--orange {
  background: var(--md-orange-600);
  color: #fff;
  box-shadow:
    0 12px 32px rgba(234, 135, 23, .35),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}
.md-btn--orange:hover { background: #c97011; }

.md-btn--secondary {
  background: #fff;
  color: var(--md-blue-700);
  border-color: var(--md-slate-300);
}
.md-btn--secondary:hover {
  background: var(--md-slate-50);
  border-color: var(--md-blue-300);
}

.md-btn--ghost {
  background: transparent;
  color: var(--md-blue-700);
}
.md-btn--ghost:hover { background: var(--md-slate-50); }

.md-btn--ghost-light {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.md-btn--ghost-light:hover { background: rgba(255, 255, 255, .14); }

.md-btn--danger {
  background: var(--md-danger);
  color: #fff;
}
.md-btn--danger:hover { background: #c10f00; }

.md-btn[disabled],
.md-btn--disabled {
  background: var(--md-slate-300);
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── Badges & pills ───────────────────────────────────────────── */

.md-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--md-radius-pill);
  font-family: var(--md-font-display);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.md-badge .md-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.md-badge--info    { background: var(--md-blue-100); color: var(--md-blue-700); }
.md-badge--info    .md-badge__dot { background: var(--md-blue-700); }
.md-badge--success { background: #e3f6ec; color: #0c6c3f; }
.md-badge--success .md-badge__dot { background: var(--md-success); }
.md-badge--warning { background: #fcf7d6; color: #6e6100; }
.md-badge--warning .md-badge__dot { background: #b09b00; }
.md-badge--danger  { background: #fde3e0; color: #a30d00; }
.md-badge--danger  .md-badge__dot { background: var(--md-danger); }
.md-badge--orange  { background: var(--md-orange-100); color: #a04610; }
.md-badge--orange  .md-badge__dot { background: var(--md-orange-600); }
.md-badge--neutral { background: var(--md-slate-50); color: var(--md-slate-700); }
.md-badge--neutral .md-badge__dot { background: var(--md-slate-400); }

/* ── Cards ────────────────────────────────────────────────────── */

.md-card {
  background: var(--md-white);
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius-md);
  box-shadow: var(--md-shadow-1);
  padding: var(--md-space-6);
}
.md-card--raised  { box-shadow: var(--md-shadow-2); }
.md-card--floating { box-shadow: var(--md-shadow-3); border: 0; }
.md-card--dark {
  background: var(--md-hero-dark);
  color: #fff;
  border-color: rgba(255, 255, 255, .12);
}

/* ── Form fields ──────────────────────────────────────────────── */

.md-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.md-field__label {
  font-family: var(--md-font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--md-fg-2);
}
.md-field__help {
  font-family: var(--md-font-body);
  font-size: 12px;
  color: var(--md-fg-3);
}

.md-input,
.md-select,
.md-textarea {
  height: 44px;
  padding: 0 14px;
  border-radius: var(--md-radius-md);
  border: 1px solid var(--md-border);
  background: #fff;
  font-family: var(--md-font-body);
  font-size: 15px;
  color: var(--md-fg-1);
  outline: none;
  transition:
    border-color var(--md-dur-fast) var(--md-ease),
    box-shadow var(--md-dur-fast) var(--md-ease);
  appearance: none;
  width: 100%;
}
.md-textarea {
  height: 88px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.55;
}
.md-input::placeholder,
.md-textarea::placeholder { color: var(--md-slate-400); }
.md-input:focus,
.md-select:focus,
.md-textarea:focus {
  border-color: var(--md-blue-500);
  box-shadow: 0 0 0 3px rgba(59, 107, 191, .22);
}
.md-input--error,
.md-textarea--error {
  border-color: var(--md-danger);
  box-shadow: 0 0 0 3px rgba(237, 22, 5, .18);
}
.md-input[disabled],
.md-select[disabled],
.md-textarea[disabled] {
  background: var(--md-slate-50);
  color: var(--md-slate-400);
  cursor: not-allowed;
}

/* ── Icon tiles ───────────────────────────────────────────────── */

.md-icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--md-blue-100);
  color: var(--md-blue-700);
  flex-shrink: 0;
}
.md-icon-tile .material-symbols-rounded { font-size: 26px; }
.md-icon-tile--orange { background: var(--md-orange-100); color: #a04610; }
.md-icon-tile--success { background: #e3f6ec; color: #0c6c3f; }
.md-icon-tile--neutral { background: var(--md-slate-50); color: var(--md-slate-700); }
.md-icon-tile--dark {
  background: linear-gradient(135deg, var(--md-orange-600) 0%, #c96a0e 100%);
  color: #fff;
}
.md-icon-tile--xl { width: 56px; height: 56px; border-radius: 16px; }
.md-icon-tile--xl .material-symbols-rounded { font-size: 28px; }

/* ── Dividers ─────────────────────────────────────────────────── */

.md-rule {
  height: 1px;
  width: 100%;
  background: var(--md-border);
  border: 0;
  margin: var(--md-space-6) 0;
}
.md-rule--strong { background: var(--md-graphite); height: 1.5px; }

/* ── Section container & layout helpers ───────────────────────── */

.md-section {
  padding: var(--md-space-16) var(--md-space-12);
}
.md-section--tight { padding: var(--md-space-12) var(--md-space-12); }
.md-section--dark {
  background: var(--md-hero-dark);
  color: #fff;
}
.md-section--paper {
  background: var(--md-paper);
}

.md-container {
  max-width: 1320px;
  margin: 0 auto;
}

/* Focus ring — shared across interactive elements */
:where(.md-btn, .md-input, .md-select, .md-textarea, a, button):focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 107, 191, .28);
  border-radius: var(--md-radius-sm);
}

/* ──────────────────────────────────────────────────────────────────
   meidok · Hero (rsce_meidok_hero)
   ──────────────────────────────────────────────────────────────────
   Variante B "Stimmungsvoll & Mutig". Requires meidok-tokens.css.
   Selector convention: .meidok-hero (block) + element/modifier suffixes.
   ────────────────────────────────────────────────────────────────── */

.meidok-hero {
  position: relative;
  min-height: 720px;
  background: var(--md-hero-dark);
  color: #fff;
  overflow: hidden;
  font-family: var(--md-font-body);
  isolation: isolate;
}

/* Background variants ──────────────────────────────────────────── */

.meidok-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.meidok-hero__screenshot {
  position: absolute;
  right: 8%;
  bottom: 0;
  width: 46%;
  z-index: 1;
  opacity: .45;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}

.meidok-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(108, 180, 228, .35) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(29, 77, 145, .55) 0%, transparent 60%),
    linear-gradient(180deg, #06112a 0%, #0a1c3d 100%);
}

/* Overlays sit above any background ────────────────────────────── */
.meidok-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(6, 17, 42, .35) 0%,
      rgba(6, 17, 42, .55) 60%,
      rgba(6, 17, 42, .92) 100%);
  pointer-events: none;
}

.meidok-hero__grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 1px;
  mix-blend-mode: overlay;
}

/* Stage (content) ──────────────────────────────────────────────── */

.meidok-hero__stage {
  position: relative;
  z-index: 5;
  max-width: 1080px;
  margin: 0 auto;
  padding: 120px 64px 140px;
  text-align: center;
}

.meidok-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--md-font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .95);
  margin-bottom: 32px;
}
.meidok-hero__eyebrow::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--md-orange-600);
  box-shadow:
    0 0 0 4px rgba(234, 135, 23, .25),
    0 0 12px var(--md-orange-600);
  animation: meidok-hero-pulse 2s ease-in-out infinite;
}
@keyframes meidok-hero-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}

.meidok-hero__headline {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 28px;
  text-wrap: balance;
}

.meidok-hero__sub {
  font-family: var(--md-font-body);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, .8);
  max-width: 680px;
  margin: 0 auto 40px;
}

/* CTAs ─────────────────────────────────────────────────────────── */

.meidok-hero__ctas {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.meidok-hero__cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--md-orange-600);
  color: #fff;
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.005em;
  text-decoration: none;
  box-shadow:
    0 12px 32px rgba(234, 135, 23, .35),
    inset 0 1px 0 rgba(255, 255, 255, .18);
  transition:
    transform var(--md-dur-fast) var(--md-ease),
    background var(--md-dur-fast) var(--md-ease);
}
.meidok-hero__cta-primary:hover {
  background: #c97011;
  transform: translateY(-1px);
}
.meidok-hero__cta-primary:active {
  transform: translateY(0) scale(.985);
}

.meidok-hero__cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 58px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  font-family: var(--md-font-display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  transition: background var(--md-dur-fast) var(--md-ease);
}
.meidok-hero__cta-ghost:hover { background: rgba(255, 255, 255, .14); }

/* Accent details ──────────────────────────────────────────────── */

.meidok-hero__tagline {
  position: absolute;
  left: 64px;
  bottom: 40px;
  z-index: 5;
  color: rgba(255, 255, 255, .55);
  font-family: var(--md-font-display);
  font-weight: 500;
  font-size: 13px;
}
.meidok-hero__tagline-dot { opacity: .4; }

.meidok-hero__scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(255, 255, 255, .55);
  font-family: var(--md-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.meidok-hero__scroll-hint::after {
  content: '';
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), transparent);
}

/* Responsive ──────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .meidok-hero { min-height: 560px; }
  .meidok-hero__stage { padding: 80px 24px 100px; }
  .meidok-hero__tagline,
  .meidok-hero__scroll-hint { display: none; }
  .meidok-hero__ctas {
    flex-direction: column;
    align-items: center;   /* statt stretch — Buttons werden nicht
                              auf Container-Breite gezogen */
    gap: 12px;
  }
  .meidok-hero__cta-primary,
  .meidok-hero__cta-ghost {
    width: 100%;
    max-width: 320px;       /* komfortable Touch-Breite, mittig
                              statt voll-bündig zum Hero-Rand */
    justify-content: center;
  }
}

/* ──────────────────────────────────────────────────────────────────
   meidok · Typography
   ──────────────────────────────────────────────────────────────────
   Requires meidok-tokens.css. Sets sensible base type for the page
   and exposes semantic helper classes used across all CEs.
   ────────────────────────────────────────────────────────────────── */

body {
  font-family: var(--md-font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--md-fg-1);
}

/* Headings — display family, tight leading, balanced wrap. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--md-font-display);
  color: var(--md-fg-1);
  margin: 0 0 var(--md-space-4);
  text-wrap: balance;
}

h1 {
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
h2 {
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.022em;
}
h3 {
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.012em;
}
h4 {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
h5, h6 {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--md-fg-2);
}

/* Paragraphs */
p {
  margin: 0 0 var(--md-space-4);
  text-wrap: pretty;
}
p:last-child { margin-bottom: 0; }

/* Links — brand blue, subtle underline */
a {
  color: var(--md-blue-700);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: color-mix(in oklab, var(--md-blue-700) 40%, transparent);
  transition: color var(--md-dur-fast) var(--md-ease);
}
a:hover {
  color: var(--md-blue-500);
  text-decoration-color: currentColor;
}

/* ─── Semantic helpers ────────────────────────────────────────── */

.md-eyebrow {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--md-blue-700);
}

.md-tagline {
  font-family: var(--md-font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--md-slate-700);
}
.md-tagline .pt { opacity: .5; margin: 0 1px; }

.md-meta {
  font-family: var(--md-font-mono);
  font-weight: 500;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--md-fg-3);
}

.md-label {
  font-family: var(--md-font-display);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--md-fg-2);
}

.md-small {
  font-family: var(--md-font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: var(--md-fg-2);
}

.md-code,
code {
  font-family: var(--md-font-mono);
  font-weight: 500;
  font-size: 0.92em;
  background: var(--md-slate-50);
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius-sm);
  padding: 1px 6px;
  color: var(--md-slate-700);
}

/* Drop-cap utility used in editorial copy blocks */
.md-dropcap {
  float: left;
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 0.85;
  margin: 6px 10px 0 0;
  color: var(--md-blue-700);
}

/* Italic display utility — used in editorial-feel headlines */
.md-italic {
  font-style: italic;
  font-weight: 500;
}

/* Numeric tabular-figures helper — for stats / km / time */
.md-tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ──────────────────────────────────────────────────────────────────
   meidok · Stats Strip (rsce_meidok_stats_strip)
   ──────────────────────────────────────────────────────────────────
   Dark horizontal band. Sits below the Hero. 2–6 stat tiles in a row.
   Requires meidok-tokens.css.
   ────────────────────────────────────────────────────────────────── */

.meidok-stats {
  background: var(--md-hero-deep);
  color: rgba(255, 255, 255, .85);
  padding: 36px 64px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.meidok-stats__grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

/* Adjust column count to the actual number of stats (2–6). */
.meidok-stats__grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.meidok-stats__grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.meidok-stats__grid[data-count="4"] { grid-template-columns: repeat(4, 1fr); }
.meidok-stats__grid[data-count="5"] { grid-template-columns: repeat(5, 1fr); }
.meidok-stats__grid[data-count="6"] { grid-template-columns: repeat(6, 1fr); }

.meidok-stats__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meidok-stats__value {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: clamp(28px, 2.5vw, 40px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.meidok-stats__unit {
  color: var(--md-orange-600);
  margin-left: 2px;
}

.meidok-stats__label {
  font-family: var(--md-font-body);
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .65);
  text-wrap: balance;
}

/* Responsive — wrap to 2 cols on tablet, 1 col on phone. */
@media (max-width: 960px) {
  .meidok-stats__grid[data-count="3"],
  .meidok-stats__grid[data-count="4"],
  .meidok-stats__grid[data-count="5"],
  .meidok-stats__grid[data-count="6"] {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .meidok-stats { padding: 28px 24px; }
  .meidok-stats__grid[data-count="2"],
  .meidok-stats__grid[data-count="3"],
  .meidok-stats__grid[data-count="4"],
  .meidok-stats__grid[data-count="5"],
  .meidok-stats__grid[data-count="6"] {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────────────────────────────────────────────────
   meidok · Highlight Grid (rsce_meidok_highlight_grid)
   ──────────────────────────────────────────────────────────────────
   Light section, two-column card grid. Feature-marked cards render
   on dark with orange icon-tile.
   Requires meidok-tokens.css + meidok-typography.css.
   ────────────────────────────────────────────────────────────────── */

.meidok-highlights {
  background: var(--md-bg-surface);
  color: var(--md-fg-1);
  padding: 96px 64px;
}

.meidok-highlights__container {
  max-width: 1320px;
  margin: 0 auto;
}

/* ── Intro head ────────────────────────────────────────────────── */

.meidok-highlights__head {
  max-width: 760px;
  margin-bottom: 64px;
}
.meidok-highlights__eyebrow {
  display: block;
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--md-blue-700);
  margin-bottom: 16px;
}
.meidok-highlights__headline {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--md-fg-1);
  margin: 0 0 18px;
  text-wrap: balance;
}
.meidok-highlights__lede {
  font-family: var(--md-font-body);
  font-size: 19px;
  line-height: 1.5;
  color: var(--md-fg-2);
  margin: 0;
}

/* ── Grid ──────────────────────────────────────────────────────── */

.meidok-highlights__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── Card ──────────────────────────────────────────────────────── */

.meidok-highlights__card {
  position: relative;
  background: #fff;
  border: 1px solid var(--md-slate-200);
  border-radius: 22px;
  padding: 36px 36px 32px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: flex-start;
  overflow: hidden;
  transition:
    transform 160ms var(--md-ease),
    box-shadow 160ms var(--md-ease);
}
.meidok-highlights__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15, 49, 99, .1);
}

.meidok-highlights__card-num {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--md-blue-700);
  opacity: .15;
  position: absolute;
  right: 28px;
  top: 24px;
  pointer-events: none;
}

.meidok-highlights__card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--md-blue-100) 0%, var(--md-blue-200) 100%);
  color: var(--md-blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.meidok-highlights__card-icon .material-symbols-rounded {
  font-size: 28px;
}

.meidok-highlights__card-kicker {
  font-family: var(--md-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--md-blue-700);
  font-weight: 700;
  margin-bottom: 6px;
}

.meidok-highlights__card-title {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 0 0 8px;
  color: var(--md-fg-1);
  text-wrap: balance;
}

.meidok-highlights__card-text {
  font-family: var(--md-font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--md-fg-2);
  margin: 0;
}

/* ── Featured variant — dark stage ────────────────────────────── */

.meidok-highlights__card--featured {
  background: var(--md-hero-dark);
  border-color: transparent;
  color: #fff;
}
.meidok-highlights__card--featured .meidok-highlights__card-icon {
  background: linear-gradient(135deg, var(--md-orange-600) 0%, #c96a0e 100%);
  color: #fff;
}
.meidok-highlights__card--featured .meidok-highlights__card-kicker {
  color: var(--md-blue-300);
}
.meidok-highlights__card--featured .meidok-highlights__card-title {
  color: #fff;
}
.meidok-highlights__card--featured .meidok-highlights__card-text {
  color: rgba(255, 255, 255, .7);
}
.meidok-highlights__card--featured .meidok-highlights__card-num {
  color: var(--md-blue-300);
  opacity: .25;
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 960px) {
  .meidok-highlights { padding: 64px 32px; }
  .meidok-highlights__grid { grid-template-columns: 1fr; }
  .meidok-highlights__head { margin-bottom: 40px; }
}
@media (max-width: 560px) {
  .meidok-highlights__card {
    padding: 28px 24px 24px;
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }
  .meidok-highlights__card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .meidok-highlights__card-icon .material-symbols-rounded { font-size: 24px; }
  .meidok-highlights__card-num {
    font-size: 40px;
    right: 18px;
    top: 16px;
  }
  .meidok-highlights__card-title { font-size: 20px; }
}

/* ──────────────────────────────────────────────────────────────────
   meidok · Header (Layout-Element, kein RSCE)
   ──────────────────────────────────────────────────────────────────
   Sticky-Header über dem Hero. Zwei Zustände:
     · transparent  (Default — sitzt auf dem dunklen Hero)
     · is-scrolled  (nach ~32px Scroll — Weiß + Hairline-Shadow)
   Markup-agnostisch geschrieben: die Klassen sind unsere; sobald das
   echte Contao-Markup steht (mod_navigation o.ä.), passen wir die
   Selektoren ggf. an oder liefern ein nav_meidok.html5 Template-
   Override mit, damit kein !important-Krieg entsteht.
   ────────────────────────────────────────────────────────────────── */

.meidok-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: stretch;
  background: transparent;
  transition:
    background var(--md-dur-normal) var(--md-ease),
    box-shadow var(--md-dur-normal) var(--md-ease),
    height var(--md-dur-normal) var(--md-ease),
    border-color var(--md-dur-normal) var(--md-ease);
  border-bottom: 1px solid transparent;
}

/* Auf Seiten OHNE dunklen Hero direkt unter dem Header (also alles
   außer der Startseite — gesteuert per Body-Klasse `has-hero`) muss
   der Hauptinhalt um die Header-Höhe nach unten geschoben werden,
   sonst klebt er hinter dem fixed Header. */
body:not(.has-hero) { padding-top: 64px; }

.meidok-header__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

/* ── Logo ─────────────────────────────────────────────────────── */
.meidok-header__logo {
  display: inline-flex;
  align-items: center;
  height: 32px;
  text-decoration: none;
  outline: none;
  border-radius: var(--md-radius-sm);
}
.meidok-header__logo:focus-visible {
  box-shadow: 0 0 0 3px rgba(108, 180, 228, .45);
}
.meidok-header__logo img {
  height: 28px;
  width: auto;
  transition: opacity var(--md-dur-normal) var(--md-ease);
}
.meidok-header__logo img.meidok-header__logo-light { display: block; }
.meidok-header__logo img.meidok-header__logo-dark  { display: none;  }

/* ── Nav (Desktop) ────────────────────────────────────────────── */
.meidok-header__nav { justify-self: center; }

.meidok-header__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.meidok-header__link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--md-radius-pill);
  font-family: var(--md-font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--md-dur-fast) var(--md-ease),
    background var(--md-dur-fast) var(--md-ease);
}
.meidok-header__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}
.meidok-header__link.is-active,
.meidok-header__link[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}
.meidok-header__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 180, 228, .55);
}

/* ── CTA (Desktop) ────────────────────────────────────────────── */
.meidok-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--md-radius-pill);
  background: var(--md-orange-600);
  color: #fff;
  font-family: var(--md-font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    0 6px 16px rgba(234, 135, 23, .28),
    inset 0 1px 0 rgba(255, 255, 255, .18);
  transition:
    transform var(--md-dur-fast) var(--md-ease),
    background var(--md-dur-fast) var(--md-ease),
    box-shadow var(--md-dur-fast) var(--md-ease);
}
.meidok-header__cta:hover {
  background: #c97011;
  transform: translateY(-1px);
}
.meidok-header__cta:active { transform: translateY(0) scale(.985); }
.meidok-header__cta:focus-visible {
  outline: none;
  box-shadow:
    0 6px 16px rgba(234, 135, 23, .28),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 0 0 3px rgba(234, 135, 23, .45);
}
.meidok-header__cta-arrow {
  font-family: var(--md-font-display);
  font-weight: 500;
  transition: transform var(--md-dur-fast) var(--md-ease);
}
.meidok-header__cta:hover .meidok-header__cta-arrow {
  transform: translateX(2px);
}

/* ── Burger (Mobile) ──────────────────────────────────────────── */
.meidok-header__burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  border-radius: var(--md-radius-sm);
  justify-self: end;
}
.meidok-header__burger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 180, 228, .55);
}
.meidok-header__burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform var(--md-dur-normal) var(--md-ease),
    top var(--md-dur-normal) var(--md-ease),
    opacity var(--md-dur-fast) var(--md-ease),
    background var(--md-dur-normal) var(--md-ease);
}
.meidok-header__burger span:nth-child(1) { top: 15px; }
.meidok-header__burger span:nth-child(2) { top: 21px; }
.meidok-header__burger span:nth-child(3) { top: 27px; }

/* ── State: scrolled ─────────────────────────────────────────── */
.meidok-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
          backdrop-filter: blur(12px) saturate(140%);
  height: 64px;
  border-bottom-color: var(--md-border);
  box-shadow: var(--md-shadow-1);
}
.meidok-header.is-scrolled .meidok-header__logo img.meidok-header__logo-light { display: none;  }
.meidok-header.is-scrolled .meidok-header__logo img.meidok-header__logo-dark  { display: block; }
.meidok-header.is-scrolled .meidok-header__link {
  color: var(--md-fg-2);
}
.meidok-header.is-scrolled .meidok-header__link:hover {
  color: var(--md-blue-700);
  background: var(--md-blue-50);
}
.meidok-header.is-scrolled .meidok-header__link.is-active,
.meidok-header.is-scrolled .meidok-header__link[aria-current="page"] {
  color: var(--md-blue-700);
  background: var(--md-blue-100);
}
.meidok-header.is-scrolled .meidok-header__burger span { background: var(--md-graphite); }

/* ── State: drawer open (Burger → X) ─────────────────────────── */
.meidok-header.is-drawer-open .meidok-header__burger span:nth-child(1) {
  top: 21px; transform: rotate(45deg);
}
.meidok-header.is-drawer-open .meidok-header__burger span:nth-child(2) {
  opacity: 0;
}
.meidok-header.is-drawer-open .meidok-header__burger span:nth-child(3) {
  top: 21px; transform: rotate(-45deg);
}

/* ── Drawer (Mobile slide-in) ────────────────────────────────── */
.meidok-header__drawer {
  position: fixed;
  inset: 72px 0 0 0;
  z-index: 99;
  background: var(--md-white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform var(--md-dur-normal) var(--md-ease);
  visibility: hidden;
  overflow-y: auto;
}
/* Drawer-Open/Scroll-State wird über Body-Klasse + Geschwister-Selektor
   gesteuert, weil der Drawer kein Kind des Header-Elements mehr ist
   (siehe Erklärung im Snippet-Template). */
body.meidok-drawer-open .meidok-header__drawer {
  transform: translateX(0);
  visibility: visible;
}
.meidok-header.is-scrolled ~ .meidok-header__drawer { inset: 64px 0 0 0; }

/* Im Drawer wird DIESELBE Section ($this->section('header_nav'))
   ausgegeben wie im Desktop-Nav — also kommt dort auch wieder eine
   <ul class="meidok-header__menu"> an. Hier überschreiben wir die
   Desktop-Defaults so, dass das gleiche Markup im Drawer als große,
   vertikal gestapelte Touch-Liste rendert. */
.meidok-header__drawer .meidok-header__menu {
  flex-direction: column;
  gap: 2px;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--md-border);
  /* Contao wickelt die Section noch in <div id="header_nav"><div class="inside"> —
     diese Wrapper sind inert für unser Layout, aber falls du den Drawer in CSS
     anders strukturieren willst, hier ist der Hook. */
}
.meidok-header__drawer .meidok-header__menu > li { width: 100%; }
.meidok-header__drawer .meidok-header__link {
  height: 56px;
  width: 100%;
  padding: 0 16px;
  border-radius: var(--md-radius-md);
  font-size: 18px;
  font-weight: 500;
  color: var(--md-fg-1);
  background: transparent;
}
.meidok-header__drawer .meidok-header__link:hover {
  background: var(--md-bg-app);
  color: var(--md-blue-700);
}
.meidok-header__drawer .meidok-header__link.is-active,
.meidok-header__drawer .meidok-header__link[aria-current="page"] {
  background: var(--md-blue-100);
  color: var(--md-blue-700);
}

.meidok-header__drawer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  margin-top: 24px;
  padding: 0 20px;
  border-radius: var(--md-radius-pill);
  background: var(--md-orange-600);
  color: #fff !important;
  font-family: var(--md-font-display);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow:
    0 8px 20px rgba(234, 135, 23, .28),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}

/* ── Backdrop unter dem Drawer ───────────────────────────────── */
.meidok-header__backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(6, 17, 42, .55);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--md-dur-normal) var(--md-ease),
    visibility var(--md-dur-normal) var(--md-ease);
}
body.meidok-drawer-open .meidok-header__backdrop {
  opacity: 1;
  visibility: visible;
}

/* ── Body-Lock wenn Drawer offen ─────────────────────────────── */
body.meidok-drawer-open { overflow: hidden; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 880px) {
  .meidok-header__inner {
    grid-template-columns: auto 1fr auto;
    padding: 0 20px;
    gap: 16px;
  }
  .meidok-header__nav,
  .meidok-header__cta { display: none; }
  .meidok-header__burger { display: block; }
}

@media (min-width: 881px) {
  .meidok-header__drawer,
  .meidok-header__backdrop { display: none; }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .meidok-header,
  .meidok-header__drawer,
  .meidok-header__burger span,
  .meidok-header__cta,
  .meidok-header__link { transition: none; }
}

/* ──────────────────────────────────────────────────────────────────
   meidok · Footer (Layout-Element, kein RSCE)
   ──────────────────────────────────────────────────────────────────
   Dunkler Brand-Blau-Footer, der die Seite gegen den Hero balanciert.
   Vier-Spalten-Top (Brand + 3 Link-Spalten), Legal-Reihe unten.
   ────────────────────────────────────────────────────────────────── */

.meidok-footer {
  background: var(--md-hero-deep);
  color: rgba(255, 255, 255, .72);
  font-family: var(--md-font-body);
  padding: 88px 0 32px;
  margin-top: auto; /* falls Body als Flex-Col gesetzt ist, klebt's unten */
  position: relative;
  isolation: isolate;
}

/* Subtiler Glow oben — Echo des Hero-Lichts, statt harter Kante */
.meidok-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 280px;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(108, 180, 228, .12) 0%,
    transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.meidok-footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Top: Brand + 3 Spalten ───────────────────────────────────── */
.meidok-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* ── Brand-Block ──────────────────────────────────────────────── */
.meidok-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 340px;
}
.meidok-footer__logo img {
  height: 30px;
  width: auto;
  display: block;
}
.meidok-footer__mission {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .68);
  margin: 0;
}
.meidok-footer__tagline {
  font-family: var(--md-font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, .42);
  margin-top: 4px;
}
.meidok-footer__tagline-dot { opacity: .55; }

/* Social-Reihe */
.meidok-footer__social {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.meidok-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--md-radius-pill);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .08);
  transition:
    background var(--md-dur-fast) var(--md-ease),
    color var(--md-dur-fast) var(--md-ease),
    border-color var(--md-dur-fast) var(--md-ease),
    transform var(--md-dur-fast) var(--md-ease);
}
.meidok-footer__social-link:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
  transform: translateY(-1px);
}
.meidok-footer__social-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 180, 228, .45);
}
.meidok-footer__social-link svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ── Link-Spalten ─────────────────────────────────────────────── */

/* Contao wickelt jedes mod_customnav in <nav class="mod_customnav block"> mit
   einem zusätzlichen Skip-Navigation-Link davor und einem leeren <span> dahinter.
   Wir neutralisieren das Wrapper-<nav> und verstecken die .invisible-Hilfslinks. */
.meidok-footer .mod_customnav {
  display: block;
  margin: 0;
  padding: 0;
}
.meidok-footer .invisible {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Spalten-Heading: Contao's mod_customnav rendert die Modul-Headline selbst
   als <hN>Headline</hN> (ohne Klasse) BEVOR unser Nav-Template eingebunden
   wird. Wir stylen also einfach jedes hN direkt im Footer + zusätzlich
   unsere eigene Klasse für den Fall, dass das Template doch greift. */
.meidok-footer h1,
.meidok-footer h2,
.meidok-footer h3,
.meidok-footer h4,
.meidok-footer h5,
.meidok-footer h6,
.meidok-footer__heading {
  font-family: var(--md-font-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  margin: 0 0 20px;
}
.meidok-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.meidok-footer__link {
  font-family: var(--md-font-body);
  font-size: 14.5px;
  color: rgba(255, 255, 255, .68);
  text-decoration: none;
  transition: color var(--md-dur-fast) var(--md-ease);
  display: inline-block;
}
.meidok-footer__link:hover { color: #fff; }
.meidok-footer__link:focus-visible {
  outline: none;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* ── Legal-Reihe ──────────────────────────────────────────────── */
.meidok-footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .42);
  flex-wrap: wrap;
}
.meidok-footer__copy {
  font-family: var(--md-font-display);
  font-weight: 500;
}
.meidok-footer__copy strong {
  font-weight: 600;
  color: rgba(255, 255, 255, .65);
}
.meidok-footer__legal-nav .meidok-footer__menu {
  flex-direction: row;
  gap: 24px;
}
.meidok-footer__legal-nav .meidok-footer__link {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .42);
}
.meidok-footer__legal-nav .meidok-footer__link:hover {
  color: rgba(255, 255, 255, .85);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .meidok-footer { padding-top: 64px; }
  .meidok-footer__inner { padding: 0 24px; }
  .meidok-footer__top {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
  }
  /* Brand spannt über alle 3 Spalten, Spalten rutschen darunter */
  .meidok-footer__brand {
    grid-column: 1 / -1;
    max-width: 480px;
  }
}
@media (max-width: 720px) {
  /* Legal-Nav (Impressum, Datenschutz, …) untereinander statt nebeneinander,
     sobald der horizontale Platz knapp wird. */
  .meidok-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .meidok-footer__legal-nav { width: 100%; }
  .meidok-footer__legal-nav .meidok-footer__menu {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 560px) {
  .meidok-footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 48px;
  }
  .meidok-footer__brand { grid-column: auto; }
  .meidok-footer__legal-nav .meidok-footer__menu { gap: 12px; }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .meidok-footer__social-link,
  .meidok-footer__link { transition: none; }
}

/* ──────────────────────────────────────────────────────────────────
   meidok · Beta Intro (rsce_meidok_beta_intro)
   ──────────────────────────────────────────────────────────────────
   1:1-Port aus Landing B. Dunkles Stage, links Intro + Reasons,
   rechts eine weiße Form-Card mit dem Contao-Anmeldeformular.

   Die Form-Card-Styles wirken nicht direkt auf das RSCE-Markup,
   sondern auf das ggf. daneben gestellte `mod_form`-Modul, dem im
   Backend die CSS-Klasse `lpb-form` zugewiesen wurde.
   ────────────────────────────────────────────────────────────────── */

/* ── Stage ──────────────────────────────────────────────────────── */
.meidok-beta {
  background: var(--md-hero-deep);
  color: #fff;
  padding: 96px 64px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.meidok-beta::before {
  content: '';
  position: absolute;
  right: -120px; top: -120px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 180, 228, .25) 0%, transparent 65%);
  pointer-events: none;
}

.meidok-beta__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: flex-start;
}

/* Wenn kein Formular ausgewählt ist, spannt das Intro die volle Breite */
.meidok-beta--no-form .meidok-beta__inner {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

/* ── Intro (linke Spalte) ──────────────────────────────────────── */
.meidok-beta__eyebrow {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--md-orange-600);
  margin-bottom: 16px;
  display: block;
}

.meidok-beta__title {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: #fff;
  margin: 0 0 20px;
  text-wrap: balance;
}

.meidok-beta__lede {
  font-family: var(--md-font-body);
  font-size: 17px;
  color: rgba(255, 255, 255, .75);
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 480px;
}

/* ── Reasons ──────────────────────────────────────────────────── */
.meidok-beta__reasons {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.meidok-beta__reason {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: flex-start;
}
.meidok-beta__reason-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--md-orange-600);
}
.meidok-beta__reason-icon .material-symbols-rounded {
  font-size: 22px;
}
.meidok-beta__reason-title {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  margin: 0;
}
.meidok-beta__reason-text {
  font-family: var(--md-font-body);
  font-size: 14.5px;
  color: rgba(255, 255, 255, .65);
  margin: 4px 0 0;
  line-height: 1.5;
}

/* ──────────────────────────────────────────────────────────────────
   Form Card — wirkt auf das mod_form, dem im Backend die CSS-Klasse
   `lpb-form` zugewiesen wurde. Mappt Contaos Default-Widget-Klassen
   (.widget, .widget-text, .widget-textarea, .widget-select, .widget-
   submit, .widget-explanation, .widget-headline) auf unser Design.
   ────────────────────────────────────────────────────────────────── */

.meidok-beta .lpb-form,
.lpb-form {
  background: #fff;
  border-radius: 22px;
  padding: 36px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .35),
    0 8px 24px rgba(0, 0, 0, .12);
  color: var(--md-graphite);
}

/* Reset Contao-Defaults innerhalb der Card */
.lpb-form a { color: var(--md-blue-700); }
.lpb-form .invisible {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Headline (Form Field „Überschrift" mit Titel „Beta-Tester werden") */
.lpb-form h1, .lpb-form h2, .lpb-form h3,
.lpb-form h4, .lpb-form h5, .lpb-form h6 {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.012em;
  color: var(--md-graphite);
  margin: 0 0 4px;
  text-transform: none;
}

/* Form-Body wird zum 2-Spalten-Grid; jedes Widget spannt per Default
   beide Spalten, nur Widgets mit CSS-Klasse `w50` belegen eine Hälfte. */
.lpb-form .formbody,
.lpb-form > form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
}
.lpb-form .widget {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.lpb-form .widget.w50 { grid-column: span 1; }

/* Explanation- und Headline-Widgets immer volle Breite */
.lpb-form .widget-explanation,
.lpb-form .widget-headline,
.lpb-form .widget-textarea,
.lpb-form .widget-submit {
  grid-column: 1 / -1;
}

/* Subtitle unter der Headline (Form Field „Erklärungstext" mit
   CSS-Klasse `form-subtitle`) */
.lpb-form .widget-explanation.form-subtitle,
.lpb-form .form-subtitle {
  font-family: var(--md-font-body);
  font-size: 14px;
  color: var(--md-slate-500);
  margin: 0 0 12px;
}
.lpb-form .widget-explanation.form-subtitle p,
.lpb-form .form-subtitle p { margin: 0; }

/* Labels */
.lpb-form .widget > label,
.lpb-form .widget label:first-child {
  font-family: var(--md-font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--md-graphite);
  margin: 0;
}
.lpb-form .mandatory {
  color: var(--md-orange-600);
  margin-left: 2px;
}

/* Inputs, Selects, Textareas */
.lpb-form input[type="text"],
.lpb-form input[type="email"],
.lpb-form input[type="tel"],
.lpb-form input[type="password"],
.lpb-form input[type="url"],
.lpb-form input[type="number"],
.lpb-form select,
.lpb-form textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font: inherit;
  font-family: var(--md-font-body);
  font-size: 14.5px;
  color: var(--md-graphite);
  background: #fff;
  border: 1.5px solid var(--md-border);
  border-radius: var(--md-radius-md);
  box-sizing: border-box;
  transition:
    border-color var(--md-dur-fast) var(--md-ease),
    box-shadow var(--md-dur-fast) var(--md-ease);
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
.lpb-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c6b85' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 7px;
  padding-right: 36px;
}
.lpb-form textarea {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}
.lpb-form input::placeholder,
.lpb-form textarea::placeholder {
  color: var(--md-slate-400);
}
.lpb-form input:focus,
.lpb-form select:focus,
.lpb-form textarea:focus {
  outline: none;
  border-color: var(--md-blue-500);
  box-shadow: 0 0 0 3px rgba(59, 107, 191, .18);
}

/* Validierungsfehler */
.lpb-form .error,
.lpb-form input.error,
.lpb-form select.error,
.lpb-form textarea.error {
  border-color: var(--md-danger);
}
.lpb-form p.error {
  margin: 4px 0 0;
  font-family: var(--md-font-body);
  font-size: 12.5px;
  color: var(--md-danger);
  border: 0;
  padding: 0;
}

/* Submit-Button */
.lpb-form .widget-submit { margin-top: 10px; }
.lpb-form button[type="submit"],
.lpb-form .submit {
  width: 100%;
  height: 54px;
  padding: 0 24px;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  background: var(--md-orange-600);
  color: #fff;
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.005em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(234, 135, 23, .3);
  transition:
    background var(--md-dur-fast) var(--md-ease),
    transform var(--md-dur-fast) var(--md-ease);
}
.lpb-form button[type="submit"]:hover,
.lpb-form .submit:hover {
  background: #c97011;
  transform: translateY(-1px);
}
.lpb-form button[type="submit"]:active,
.lpb-form .submit:active { transform: translateY(0) scale(.985); }

/* Legal-Zeile unter dem Button (Form Field „Erklärungstext" mit
   CSS-Klasse `form-legal`) */
.lpb-form .widget-explanation.form-legal,
.lpb-form .form-legal {
  font-family: var(--md-font-body);
  font-size: 11.5px;
  color: var(--md-slate-500);
  text-align: center;
  margin: 14px 0 0;
}
.lpb-form .widget-explanation.form-legal p,
.lpb-form .form-legal p { margin: 0; }

/* Bestätigungs-Meldung nach Absenden */
.lpb-form .confirmation {
  padding: 20px;
  background: var(--md-blue-50);
  border: 1px solid var(--md-blue-200);
  border-radius: var(--md-radius-md);
  color: var(--md-blue-700);
  font-family: var(--md-font-body);
  font-size: 15px;
  line-height: 1.5;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .meidok-beta { padding: 64px 24px; }
  .meidok-beta__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .meidok-beta__title { font-size: clamp(28px, 6vw, 36px); }
  .lpb-form { padding: 28px; }
}

@media (max-width: 560px) {
  .lpb-form .formbody,
  .lpb-form > form { grid-template-columns: 1fr; }
  .lpb-form .widget.w50 { grid-column: 1 / -1; }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lpb-form button[type="submit"],
  .lpb-form .submit,
  .lpb-form input,
  .lpb-form select,
  .lpb-form textarea { transition: none; }
}

/* ──────────────────────────────────────────────────────────────────
   meidok · Personal Quote (rsce_meidok_personal_quote)
   ──────────────────────────────────────────────────────────────────
   1:1-Port aus Landing B `.lp-b .personal`. Dunkles Stage,
   Foto links (4:5), Pull-Quote rechts mit orangen Anführungszeichen.
   ────────────────────────────────────────────────────────────────── */

.meidok-quote {
  background: var(--md-hero-deep);
  color: #fff;
  padding: 96px 64px;
  position: relative;
  isolation: isolate;
}

.meidok-quote__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: center;
}

/* ── Foto ─────────────────────────────────────────────────────── */
.meidok-quote__face {
  width: 100%;
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  background: rgba(255, 255, 255, .04);
}
.meidok-quote__face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.92) contrast(1.05);
}
.meidok-quote__face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 17, 42, .55) 100%);
  pointer-events: none;
}
.meidok-quote__credit {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--md-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  z-index: 1;
}

/* ── Text ─────────────────────────────────────────────────────── */
.meidok-quote__body {
  min-width: 0; /* damit lange Quotes nicht das Grid sprengen */
}

.meidok-quote__eyebrow {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--md-orange-600);
  margin-bottom: 20px;
  display: block;
}

.meidok-quote__text {
  font-family: var(--md-font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: #fff;
  margin: 0 0 28px;
  text-wrap: balance;
}
.meidok-quote__text::before {
  content: '"';
  color: var(--md-orange-600);
  margin-right: 4px;
}
.meidok-quote__text::after {
  content: '"';
  color: var(--md-orange-600);
  margin-left: 4px;
}

.meidok-quote__who {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.meidok-quote__role {
  font-family: var(--md-font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, .65);
  margin-top: 2px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .meidok-quote { padding: 64px 24px; }
  .meidok-quote__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .meidok-quote__face {
    max-width: 320px;
    margin: 0 auto;
  }
  .meidok-quote__text {
    font-size: clamp(22px, 5vw, 30px);
  }
}

/* ──────────────────────────────────────────────────────────────────
   meidok · News Teaser (rsce_meidok_news_teaser)
   ──────────────────────────────────────────────────────────────────
   1:1-Port aus Landing B `.lp-b .news`. Magazin-Stil:
   helles Paper, dünner Toptrennstrich, kein Teaserbild,
   3 (bzw. 1–6) Cards nebeneinander.
   ────────────────────────────────────────────────────────────────── */

.meidok-news {
  background: var(--md-paper);
  padding: 96px 64px;
}

.meidok-news__head {
  max-width: 1280px;
  margin: 0 auto 56px;
}

.meidok-news__eyebrow {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--md-orange-600);
  margin-bottom: 12px;
  display: block;
}

.meidok-news__title {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
  color: var(--md-fg-1);
}

.meidok-news__row {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.meidok-news__row[data-count="1"] { grid-template-columns: minmax(0, 480px); }
.meidok-news__row[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.meidok-news__row[data-count="4"] { grid-template-columns: repeat(4, 1fr); }
.meidok-news__row[data-count="5"],
.meidok-news__row[data-count="6"] { grid-template-columns: repeat(3, 1fr); }

/* ── Card ─────────────────────────────────────────────────────── */
.meidok-news__card {
  border-top: 1px solid var(--md-graphite);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--md-dur-fast) var(--md-ease);
}
.meidok-news__card:hover {
  transform: translateY(-2px);
  color: inherit;
}
.meidok-news__card:hover .meidok-news__card-title { color: var(--md-blue-700); }
.meidok-news__card:hover .meidok-news__card-more  { color: var(--md-blue-500); }
.meidok-news__card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 107, 191, .28);
  border-radius: var(--md-radius-sm);
}

.meidok-news__card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.meidok-news__card-date {
  font-family: var(--md-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-fg-3);
}
.meidok-news__card-tag {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-orange-600);
}

.meidok-news__card-title {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--md-fg-1);
  margin: 0;
  text-wrap: balance;
  transition: color var(--md-dur-fast) var(--md-ease);
}

.meidok-news__card-teaser {
  font-family: var(--md-font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--md-fg-2);
  margin: 0;
}

.meidok-news__card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--md-font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--md-blue-700);
  margin-top: auto;
  transition: color var(--md-dur-fast) var(--md-ease);
}
.meidok-news__card-more .material-symbols-rounded {
  font-size: 16px;
}

/* ── „Alle News"-Link unter dem Grid ───────────────────────── */
.meidok-news__viewall-wrap {
  max-width: 1280px;
  margin: 48px auto 0;
  display: flex;
  justify-content: center;
}
.meidok-news__viewall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--md-radius-pill);
  border: 1.5px solid var(--md-blue-700);
  color: var(--md-blue-700);
  background: transparent;
  font-family: var(--md-font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition:
    background var(--md-dur-fast) var(--md-ease),
    color var(--md-dur-fast) var(--md-ease),
    transform var(--md-dur-fast) var(--md-ease);
}
.meidok-news__viewall:hover {
  background: var(--md-blue-700);
  color: #fff;
  transform: translateY(-1px);
}
.meidok-news__viewall .material-symbols-rounded {
  font-size: 18px;
  transition: transform var(--md-dur-fast) var(--md-ease);
}
.meidok-news__viewall:hover .material-symbols-rounded { transform: translateX(2px); }

/* ── Empty State (Backend-Vorschau, wenn noch keine News da sind) ─ */
.meidok-news__empty {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  border: 1px dashed var(--md-border);
  border-radius: var(--md-radius-md);
  color: var(--md-fg-3);
  font-family: var(--md-font-body);
  font-size: 14px;
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .meidok-news { padding: 64px 24px; }
  .meidok-news__row,
  .meidok-news__row[data-count="2"],
  .meidok-news__row[data-count="4"],
  .meidok-news__row[data-count="5"],
  .meidok-news__row[data-count="6"] {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .meidok-news__title { font-size: clamp(28px, 6vw, 38px); }
}

/* ──────────────────────────────────────────────────────────────────
   meidok · Final CTA (rsce_meidok_final_cta)
   ──────────────────────────────────────────────────────────────────
   1:1-Port aus Landing B `.lp-b .final-cta`. Schmaler Gradient-
   Streifen direkt vor dem Footer: links Eyebrow + Headline, rechts
   ein einzelner orangener Pill-Button (typischerweise mailto:).
   ────────────────────────────────────────────────────────────────── */

.meidok-finalcta {
  background: linear-gradient(135deg,
    var(--md-blue-700) 0%,
    var(--md-blue-700) 40%,
    var(--md-hero-dark) 100%);
  padding: 36px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Inhalt wird auf dieselbe Content-Breite begrenzt wie der Footer
   darüber/darunter — sonst wandern Headline und Button auf weiten
   Viewports an die Bildschirmkanten und verlieren die vertikale
   Linie zum Footer-Grid. */
.meidok-finalcta__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

/* Orangener Lichtblob oben rechts — Echo des Hero-Glows */
.meidok-finalcta::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 135, 23, .35) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.meidok-finalcta__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.meidok-finalcta__eyebrow {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--md-orange-600);
  margin-bottom: 8px;
  display: block;
}

.meidok-finalcta__title {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin: 0;
  color: #fff;
  text-wrap: balance;
  max-width: 600px;
}

.meidok-finalcta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--md-orange-600);
  color: #fff;
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(234, 135, 23, .35);
  position: relative;
  z-index: 1;
  transition:
    background var(--md-dur-fast) var(--md-ease),
    transform var(--md-dur-fast) var(--md-ease);
}
.meidok-finalcta__btn:hover {
  background: #c97011;
  transform: translateY(-1px);
}
.meidok-finalcta__btn:active {
  transform: translateY(0) scale(.985);
}
.meidok-finalcta__btn:focus-visible {
  outline: none;
  box-shadow:
    0 8px 24px rgba(234, 135, 23, .35),
    0 0 0 3px rgba(255, 255, 255, .55);
}
.meidok-finalcta__btn .material-symbols-rounded {
  font-size: 20px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 720px) {
  .meidok-finalcta { padding: 28px 0; }
  .meidok-finalcta__inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 20px;
    text-align: left;
  }
  .meidok-finalcta__title { font-size: clamp(20px, 5vw, 24px); }
  .meidok-finalcta__btn { justify-content: center; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .meidok-finalcta__btn { transition: none; }
}

/* ──────────────────────────────────────────────────────────────────
   meidok · News Detail (news_full_meidok)
   ──────────────────────────────────────────────────────────────────
   Stylesheet für die News-Detailseite. Wirkt auf das Markup, das
   das Custom-News-Template `news_full_meidok.html5` ausgibt.
   ────────────────────────────────────────────────────────────────── */

/* ── Hauptartikel ─────────────────────────────────────────────── */

.meidok-newsdetail {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 24px;
  font-family: var(--md-font-body);
  color: var(--md-fg-1);
}

/* Breadcrumb zurück */
.meidok-newsdetail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-family: var(--md-font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--md-blue-700);
  text-decoration: none;
  transition: color var(--md-dur-fast) var(--md-ease);
}
.meidok-newsdetail__back:hover { color: var(--md-blue-500); }
.meidok-newsdetail__back .material-symbols-rounded { font-size: 18px; }

/* Meta-Zeile */
.meidok-newsdetail__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-family: var(--md-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-fg-3);
}
.meidok-newsdetail__tag {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--md-orange-600);
}
.meidok-newsdetail__meta-sep {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--md-slate-300);
}

/* Title */
.meidok-newsdetail__title {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--md-fg-1);
  margin: 0 0 20px;
  text-wrap: balance;
}

/* Lede (Teaser) */
.meidok-newsdetail__lede {
  font-family: var(--md-font-body);
  font-size: 19px;
  line-height: 1.55;
  color: var(--md-fg-2);
  margin: 0 0 36px;
  max-width: 60ch;
}

/* Header-Bild */
.meidok-newsdetail__hero {
  margin: 0 0 36px;
  border-radius: var(--md-radius-lg);
  overflow: hidden;
  box-shadow: var(--md-shadow-2);
}
.meidok-newsdetail__hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* Body — Prose */
.meidok-newsdetail__body {
  font-family: var(--md-font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--md-fg-1);
}
.meidok-newsdetail__body > * + * { margin-top: 1em; }
.meidok-newsdetail__body h2 {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.014em;
  margin: 1.8em 0 0.4em;
  color: var(--md-fg-1);
  text-wrap: balance;
}
.meidok-newsdetail__body h3 {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  margin: 1.4em 0 0.3em;
  color: var(--md-fg-1);
}
.meidok-newsdetail__body p { margin: 0 0 1em; }
.meidok-newsdetail__body a {
  color: var(--md-blue-700);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in oklab, var(--md-blue-700) 40%, transparent);
}
.meidok-newsdetail__body a:hover {
  color: var(--md-blue-500);
  text-decoration-color: currentColor;
}
.meidok-newsdetail__body ul,
.meidok-newsdetail__body ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}
.meidok-newsdetail__body li + li { margin-top: 0.4em; }
.meidok-newsdetail__body blockquote {
  margin: 1.6em 0;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--md-orange-600);
  font-family: var(--md-font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.32;
  letter-spacing: -0.008em;
  color: var(--md-fg-1);
}
.meidok-newsdetail__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--md-radius-md);
  margin: 1.6em 0;
  display: block;
}
.meidok-newsdetail__body figure { margin: 1.6em 0; }
.meidok-newsdetail__body figcaption {
  font-family: var(--md-font-mono);
  font-size: 12px;
  color: var(--md-fg-3);
  margin-top: 8px;
  letter-spacing: 0.04em;
}
.meidok-newsdetail__body code {
  font-family: var(--md-font-mono);
  font-size: 0.92em;
  background: var(--md-slate-50);
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius-sm);
  padding: 1px 6px;
}
.meidok-newsdetail__body hr {
  border: 0;
  height: 1px;
  background: var(--md-border);
  margin: 2.4em 0;
}

/* ── Prev / Next Nav ──────────────────────────────────────────── */

.meidok-newsnav {
  max-width: 1080px;
  margin: 56px auto 0;
  padding: 32px 24px;
  border-top: 1px solid var(--md-border);
  border-bottom: 1px solid var(--md-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.meidok-newsnav__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--md-dur-fast) var(--md-ease);
}
.meidok-newsnav__item--prev { text-align: left; }
.meidok-newsnav__item--next { text-align: right; align-items: flex-end; }
.meidok-newsnav__item:hover { transform: translateY(-1px); }
.meidok-newsnav__item:hover .meidok-newsnav__title { color: var(--md-blue-700); }

.meidok-newsnav__direction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--md-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--md-fg-3);
}
.meidok-newsnav__direction .material-symbols-rounded { font-size: 16px; }

.meidok-newsnav__title {
  font-family: var(--md-font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: var(--md-fg-1);
  transition: color var(--md-dur-fast) var(--md-ease);
  text-wrap: balance;
}

.meidok-newsnav__placeholder {
  display: flex;
  align-items: center;
  font-family: var(--md-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--md-fg-3);
}
.meidok-newsnav__item--prev.meidok-newsnav__placeholder { justify-content: flex-start; }
.meidok-newsnav__item--next.meidok-newsnav__placeholder { justify-content: flex-end; }

/* ── „Mehr aus der Werkstatt" Recirculation ───────────────────── */

.meidok-newsmore {
  padding: 80px 24px;
  background: var(--md-paper);
}
.meidok-newsmore__head {
  max-width: 1280px;
  margin: 0 auto 36px;
}
.meidok-newsmore__eyebrow {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--md-orange-600);
  margin-bottom: 8px;
  display: block;
}
.meidok-newsmore__title {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.014em;
  margin: 0;
  color: var(--md-fg-1);
}
.meidok-newsmore__row {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* Cards verwenden dieselbe BEM-Klasse wie der Teaser, damit beide
   Sections optisch zusammen rhymen */
.meidok-newsmore .meidok-news__card { border-top-color: var(--md-graphite); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 720px) {
  .meidok-newsdetail { padding: 36px 20px 16px; }
  .meidok-newsnav {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 20px;
  }
  .meidok-newsnav__item--next { text-align: left; align-items: flex-start; }
  .meidok-newsmore { padding: 56px 20px; }
  .meidok-newsmore__row { grid-template-columns: 1fr; gap: 28px; }
}

/* ──────────────────────────────────────────────────────────────────
   meidok · News-Liste (/news Übersichts-Seite)
   ──────────────────────────────────────────────────────────────────
   Wrapper-Styles für das `mod_newslist`-Modul mit dem Custom-Template
   `news_latest_meidok.html5`. Die einzelnen Cards reuses dieselben
   `.meidok-news__card`-Styles aus `meidok-news-teaser.css` — diese
   Datei stylet nur den umgebenden Grid + Pagination.
   ────────────────────────────────────────────────────────────────── */

/* Wenn Du in /news eine eigene Page-Header-Section hast, schließt
   das `.mod_newslist`-Wrapper darunter an. Wir geben dem Wrapper
   eine eigene Klasse via „CSS-Klasse" im Modul-Backend: `meidok-newslist`. */

.meidok-newslist {
  padding: 56px 24px 96px;
  background: var(--md-paper);
}

.meidok-newslist > h1,
.meidok-newslist > h2,
.meidok-newslist > h3 {
  max-width: 1280px;
  margin: 0 auto 36px;
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--md-fg-1);
}

/* Cards-Grid — wickelt um die einzelnen <a class="meidok-news__card"> */
.meidok-newslist .layout_latest,
.meidok-newslist .layout_short {
  /* Single news item — Contao wickelt nichts darum, also rendert
     der Wrapper als Grid-Cell. Dafür gibt's `.meidok-news__card`. */
  display: contents;
}

.meidok-newslist > .layout_latest:first-of-type,
.meidok-newslist > .layout_short:first-of-type {
  /* Erste Card eröffnet das Grid implizit */
}

/* mod_newslist rendert in Contao 5:
     <div class="mod_newslist block">
       <h1>...</h1>          (optional headline)
       <div class="layout_latest block">  ← unser Card-Template darin
       <div class="layout_latest block">
       ...
     </div>
   Wir packen die layout-divs in ein Grid via Container Query auf
   .mod_newslist. */

.mod_newslist.meidok-newslist {
  display: block; /* Reset Contao defaults */
}
.mod_newslist.meidok-newslist > h1 { margin-bottom: 36px; }

/* Card-Grid via Grid auf einem virtuellen Wrapper. Da Contao kein
   eigenes Wrapper-Div um die Cards rendert, machen wir die direkten
   `.layout_latest`-Container zu Grid-Items eines auto-fit Grids. */
.mod_newslist.meidok-newslist {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 96px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.mod_newslist.meidok-newslist > h1,
.mod_newslist.meidok-newslist > h2,
.mod_newslist.meidok-newslist > h3,
.mod_newslist.meidok-newslist > .pagination,
.mod_newslist.meidok-newslist > .empty {
  grid-column: 1 / -1;
}
.mod_newslist.meidok-newslist > .layout_latest,
.mod_newslist.meidok-newslist > .layout_short {
  /* Contao wickelt unser news_latest_meidok in <div class="layout_latest block">;
     wir lassen den Wrapper, packen ihn aber ohne eigene Optik. */
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}

/* ── Pagination ────────────────────────────────────────────── */

.mod_newslist.meidok-newslist .pagination {
  margin: 56px auto 0;
  font-family: var(--md-font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--md-fg-2);
  display: flex;
  justify-content: center;
}
.mod_newslist.meidok-newslist .pagination p {
  display: none; /* „Seite X von Y" — meidok zeigt nur die Zahlen */
}
.mod_newslist.meidok-newslist .pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  align-items: center;
}
.mod_newslist.meidok-newslist .pagination li a,
.mod_newslist.meidok-newslist .pagination li.active strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--md-radius-md);
  text-decoration: none;
  color: var(--md-fg-2);
  background: transparent;
  border: 1px solid var(--md-border);
  transition:
    background var(--md-dur-fast) var(--md-ease),
    color var(--md-dur-fast) var(--md-ease),
    border-color var(--md-dur-fast) var(--md-ease);
}
.mod_newslist.meidok-newslist .pagination li a:hover {
  border-color: var(--md-blue-300);
  color: var(--md-blue-700);
  background: var(--md-blue-50);
}
.mod_newslist.meidok-newslist .pagination li.active strong {
  background: var(--md-blue-700);
  border-color: var(--md-blue-700);
  color: #fff;
}

/* Empty State, wenn Archiv noch leer ist */
.mod_newslist.meidok-newslist .empty {
  padding: 24px;
  border: 1px dashed var(--md-border);
  border-radius: var(--md-radius-md);
  color: var(--md-fg-3);
  font-family: var(--md-font-body);
  font-size: 14px;
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 720px) {
  .mod_newslist.meidok-newslist {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 20px 64px;
  }
}

/* ──────────────────────────────────────────────────────────────────
   meidok · Feature List (rsce_meidok_feature_list)
   ──────────────────────────────────────────────────────────────────
   Liste aus 1–10 Features, je mit Icon + Titel + Text.
   Layout-Varianten: 1-spaltig (gestapelt, voll-breit) oder 2-spaltig.
   Vier Tones.
   ────────────────────────────────────────────────────────────────── */

.meidok-features {
  padding: 96px 24px;
}
.meidok-features__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.meidok-features__head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.meidok-features__eyebrow {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--md-orange-600);
  margin-bottom: 12px;
  display: block;
}
.meidok-features__title {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.meidok-features__lede {
  font-family: var(--md-font-body);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--md-fg-2);
  margin: 0;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ── List Grid ──────────────────────────────────────────────── */
.meidok-features__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 32px;
}
.meidok-features--cols2 .meidok-features__list {
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
}
.meidok-features--cols3 .meidok-features__list {
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}

/* ── Item ───────────────────────────────────────────────────── */
.meidok-features__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: flex-start;
}
.meidok-features__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--md-blue-100);
  color: var(--md-blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.meidok-features__icon .material-symbols-rounded { font-size: 24px; }

.meidok-features__item-title {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  margin: 4px 0 6px;
  color: var(--md-fg-1);
  letter-spacing: -0.005em;
}
.meidok-features__item-text {
  font-family: var(--md-font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--md-fg-2);
  margin: 0;
}

/* ── Tones ──────────────────────────────────────────────────── */
.meidok-features--paper { background: var(--md-paper); }
.meidok-features--white { background: #fff; }
.meidok-features--blue {
  background: var(--md-blue-50);
}
.meidok-features--dark {
  background: var(--md-hero-deep);
  color: #fff;
}
.meidok-features--dark .meidok-features__title,
.meidok-features--dark .meidok-features__item-title { color: #fff; }
.meidok-features--dark .meidok-features__lede,
.meidok-features--dark .meidok-features__item-text { color: rgba(255,255,255,.7); }
.meidok-features--dark .meidok-features__icon {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--md-orange-600);
}

/* Featured-Variante: dunkler Tile mit orangem Icon — kann pro Item
   gesetzt werden, z. B. für 1–2 hervorgehobene Punkte. */
.meidok-features__item--featured .meidok-features__icon {
  background: var(--md-graphite);
  color: var(--md-orange-600);
}
.meidok-features--dark .meidok-features__item--featured .meidok-features__icon {
  background: var(--md-orange-600);
  color: #fff;
  border-color: transparent;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 880px) {
  .meidok-features { padding: 64px 20px; }
  .meidok-features--cols2 .meidok-features__list,
  .meidok-features--cols3 .meidok-features__list {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ──────────────────────────────────────────────────────────────────
   meidok · Page Header (rsce_meidok_page_header)
   ──────────────────────────────────────────────────────────────────
   Sub-Page-Hero — schmaler als der Startseiten-Hero, gleicher Vibe.
   Vier Ton-Varianten: blue (Brand-Blau-Gradient), dark, paper, white.
   ────────────────────────────────────────────────────────────────── */

.meidok-pagehead {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 96px 24px 80px;
}
.meidok-pagehead__inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ── Background-Bild + Overlay-System ────────────────────────────
   Wenn ein Bild gesetzt ist, sitzt es als <img> hinter dem Content.
   Darüber liegt ein Overlay (Pseudo ::before) das die Tonalität
   bewahrt und Text lesbar hält. Vier Overlay-Modi:
     · gradient  — diagonal Tone-Gradient (Default)
     · bottom    — nur unten dunkler (Bild oben dominant)
     · dim       — starker dunkler Wash (Text dominant)
     · spotlight — radialer Sun-spot (links etwas hell, rechts dunkel)
   ────────────────────────────────────────────────────────────── */
.meidok-pagehead__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
}

/* Optional Breadcrumb */
.meidok-pagehead__crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--md-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: currentColor;
  opacity: .55;
  text-decoration: none;
}
.meidok-pagehead__crumb:hover { opacity: 1; }
.meidok-pagehead__crumb .material-symbols-rounded { font-size: 16px; }

.meidok-pagehead__eyebrow {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--md-orange-600);
  margin-bottom: 16px;
  display: block;
}

.meidok-pagehead__title {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  text-wrap: balance;
  max-width: 18ch;
}

.meidok-pagehead__lede {
  font-family: var(--md-font-body);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  margin: 0;
  max-width: 60ch;
  opacity: .82;
}

/* ── Tone: Brand-Blau ─────────────────────────────────────────── */
.meidok-pagehead--blue {
  background: linear-gradient(135deg,
    var(--md-blue-700) 0%,
    var(--md-blue-500) 60%,
    var(--md-hero-deep) 100%);
  color: #fff;
}
.meidok-pagehead--blue::before {
  content: '';
  position: absolute;
  right: -120px; top: -160px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,180,228,.22) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}
.meidok-pagehead--blue .meidok-pagehead__title { color: #fff; }

/* ── Tone: Dunkel ─────────────────────────────────────────────── */
.meidok-pagehead--dark {
  background: var(--md-hero-deep);
  color: #fff;
}
.meidok-pagehead--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(108,180,228,.14), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(29,77,145,.4), transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.meidok-pagehead--dark .meidok-pagehead__title { color: #fff; }

/* ── Tone: Paper (hell, ruhig) ────────────────────────────────── */
.meidok-pagehead--paper {
  background: var(--md-paper);
  color: var(--md-fg-1);
  border-bottom: 1px solid var(--md-border);
}
.meidok-pagehead--paper .meidok-pagehead__title { color: var(--md-fg-1); }
.meidok-pagehead--paper .meidok-pagehead__lede  { color: var(--md-fg-2); opacity: 1; }

/* ── Tone: Weiß ───────────────────────────────────────────────── */
.meidok-pagehead--white {
  background: #fff;
  color: var(--md-fg-1);
}
.meidok-pagehead--white .meidok-pagehead__title { color: var(--md-fg-1); }
.meidok-pagehead--white .meidok-pagehead__lede  { color: var(--md-fg-2); opacity: 1; }

/* ──────────────────────────────────────────────────────────────────
   Mit Background-Bild: Bild liegt z=0, ein bild-spezifisches Overlay
   liegt z=1 (überschreibt die Tone-Pseudo-Glows), Content liegt z=2.
   ────────────────────────────────────────────────────────────────── */
.meidok-pagehead--has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: none;
  border-radius: 0;
  width: auto; height: auto; top: 0; right: 0;
}

/* Overlay-Modi mappen pro Tone auf passende Brand-Farben. Wir bauen
   das für jede Tone-Kombination separat, damit die Farbstimmung passt. */

/* BLUE × gradient — diagonal Brand-Blau-Wash */
.meidok-pagehead--has-image.meidok-pagehead--blue.meidok-pagehead--overlay-gradient::before {
  background: linear-gradient(135deg,
    rgba(29, 77, 145, .82) 0%,
    rgba(59, 107, 191, .55) 50%,
    rgba(10, 28, 61, .82) 100%);
}
/* BLUE × bottom — nur unten dunkler, Bild oben sichtbar */
.meidok-pagehead--has-image.meidok-pagehead--blue.meidok-pagehead--overlay-bottom::before {
  background: linear-gradient(180deg,
    rgba(29, 77, 145, .15) 0%,
    rgba(29, 77, 145, .45) 55%,
    rgba(10, 28, 61, .9) 100%);
}
/* BLUE × dim — starker Brand-Blau-Wash, Text dominant */
.meidok-pagehead--has-image.meidok-pagehead--blue.meidok-pagehead--overlay-dim::before {
  background: rgba(15, 49, 99, .82);
}
/* BLUE × spotlight — radial vom Inhalt aus heller, außen dunkel */
.meidok-pagehead--has-image.meidok-pagehead--blue.meidok-pagehead--overlay-spotlight::before {
  background:
    radial-gradient(ellipse at 25% 50%, rgba(29, 77, 145, .55) 0%, rgba(10, 28, 61, .85) 65%);
}

/* DARK × gradient */
.meidok-pagehead--has-image.meidok-pagehead--dark.meidok-pagehead--overlay-gradient::before {
  background: linear-gradient(135deg,
    rgba(6, 17, 42, .85) 0%,
    rgba(10, 28, 61, .65) 50%,
    rgba(6, 17, 42, .9) 100%);
}
/* DARK × bottom */
.meidok-pagehead--has-image.meidok-pagehead--dark.meidok-pagehead--overlay-bottom::before {
  background: linear-gradient(180deg,
    rgba(6, 17, 42, .15) 0%,
    rgba(6, 17, 42, .5) 55%,
    rgba(6, 17, 42, .95) 100%);
}
/* DARK × dim */
.meidok-pagehead--has-image.meidok-pagehead--dark.meidok-pagehead--overlay-dim::before {
  background: rgba(6, 17, 42, .88);
}
/* DARK × spotlight */
.meidok-pagehead--has-image.meidok-pagehead--dark.meidok-pagehead--overlay-spotlight::before {
  background: radial-gradient(ellipse at 25% 50%, rgba(10, 28, 61, .55) 0%, rgba(6, 17, 42, .92) 65%);
}

/* PAPER/WHITE × gradient — sehr leichter Wash, Bild bleibt dominant,
   aber Text auf hellem Grund braucht trotzdem Lesbarkeit — wir machen
   einen Weiß-zu-Paper-Wash links für die Headline-Späte. */
.meidok-pagehead--has-image.meidok-pagehead--paper.meidok-pagehead--overlay-gradient::before,
.meidok-pagehead--has-image.meidok-pagehead--white.meidok-pagehead--overlay-gradient::before {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, .92) 0%,
    rgba(255, 255, 255, .65) 40%,
    rgba(255, 255, 255, .15) 100%);
}
.meidok-pagehead--has-image.meidok-pagehead--paper.meidok-pagehead--overlay-bottom::before,
.meidok-pagehead--has-image.meidok-pagehead--white.meidok-pagehead--overlay-bottom::before {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .35) 60%,
    rgba(255, 255, 255, .9) 100%);
}
.meidok-pagehead--has-image.meidok-pagehead--paper.meidok-pagehead--overlay-dim::before,
.meidok-pagehead--has-image.meidok-pagehead--white.meidok-pagehead--overlay-dim::before {
  background: rgba(255, 255, 255, .82);
}
.meidok-pagehead--has-image.meidok-pagehead--paper.meidok-pagehead--overlay-spotlight::before,
.meidok-pagehead--has-image.meidok-pagehead--white.meidok-pagehead--overlay-spotlight::before {
  background: radial-gradient(ellipse at 25% 50%,
    rgba(255, 255, 255, .95) 0%,
    rgba(255, 255, 255, .35) 70%);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 720px) {
  .meidok-pagehead { padding: 56px 20px 48px; }
  .meidok-pagehead__title { font-size: clamp(28px, 8vw, 40px); max-width: none; }
}

/* ──────────────────────────────────────────────────────────────────
   meidok · Split Media (rsce_meidok_split_media)
   ──────────────────────────────────────────────────────────────────
   2-Spalten-Block: Bild oder Screenshot links bzw. rechts, daneben
   Text mit Eyebrow, Headline, Body und optionalem CTA.
   Vier Tones, Bild-Position links/rechts toggle, „media"-Variante
   für Mockup-Screens (gerundete Ecken + Schatten).
   ────────────────────────────────────────────────────────────────── */

.meidok-split {
  padding: 96px 24px;
  position: relative;
  overflow: hidden;
}
.meidok-split__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.meidok-split--imageRight .meidok-split__copy  { order: 0; }
.meidok-split--imageRight .meidok-split__media { order: 1; }
.meidok-split--imageLeft .meidok-split__copy   { order: 1; }
.meidok-split--imageLeft .meidok-split__media  { order: 0; }

/* ── Copy ───────────────────────────────────────────────────── */
.meidok-split__eyebrow {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--md-orange-600);
  margin-bottom: 16px;
  display: block;
}
.meidok-split__title {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: balance;
  max-width: 18ch;
}
.meidok-split__body {
  font-family: var(--md-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--md-fg-2);
  margin: 0 0 28px;
  max-width: 56ch;
}
.meidok-split__body p { margin: 0 0 1em; }
.meidok-split__body p:last-child { margin-bottom: 0; }

.meidok-split__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--md-orange-600);
  color: #fff;
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(234, 135, 23, .28);
  transition:
    background var(--md-dur-fast) var(--md-ease),
    transform var(--md-dur-fast) var(--md-ease);
}
.meidok-split__cta:hover { background: #c97011; transform: translateY(-1px); }
.meidok-split__cta .material-symbols-rounded { font-size: 18px; }

/* CTA als Ghost (alternative für reiche Inhalte) */
.meidok-split__cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 18px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid currentColor;
  color: var(--md-blue-700);
  font-family: var(--md-font-display);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  margin-left: 12px;
}

/* ── Media ──────────────────────────────────────────────────── */
.meidok-split__media {
  width: 100%;
}
.meidok-split__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--md-radius-lg);
}
/* Variante „Screen" — Mockup mit Schatten + leichter Vignette */
.meidok-split__media--screen img {
  box-shadow:
    0 30px 60px rgba(15, 49, 99, .25),
    0 10px 20px rgba(15, 49, 99, .12);
}
/* Variante „Flat" — kein Schatten, flach */
.meidok-split__media--flat img {
  box-shadow: none;
  border: 1px solid var(--md-border);
}

/* ── Tones ──────────────────────────────────────────────────── */
.meidok-split--paper { background: var(--md-paper); }
.meidok-split--white { background: #fff; }
.meidok-split--blue  {
  background: var(--md-blue-50);
}
.meidok-split--dark {
  background: var(--md-hero-deep);
  color: #fff;
}
.meidok-split--dark .meidok-split__title { color: #fff; }
.meidok-split--dark .meidok-split__body  { color: rgba(255,255,255,.78); }
.meidok-split--dark .meidok-split__cta-ghost { color: #fff; }

/* Dunkler Hintergrund-Effekt für Dark-Mode-Splits */
.meidok-split--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(108,180,228,.12), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(29,77,145,.3), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.meidok-split--dark .meidok-split__inner { position: relative; z-index: 1; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 880px) {
  .meidok-split { padding: 64px 20px; }
  .meidok-split__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* Bei Mobile: Bild kommt IMMER zuerst, egal welche Desktop-Reihenfolge */
  .meidok-split--imageRight .meidok-split__copy,
  .meidok-split--imageLeft  .meidok-split__copy  { order: 1; }
  .meidok-split--imageRight .meidok-split__media,
  .meidok-split--imageLeft  .meidok-split__media { order: 0; }
  .meidok-split__title { font-size: clamp(24px, 6vw, 32px); max-width: none; }
  .meidok-split__cta-ghost { margin-left: 0; margin-top: 12px; display: inline-flex; }
}

/* ──────────────────────────────────────────────────────────────────
   meidok · Text Block (rsce_meidok_text_block)
   ──────────────────────────────────────────────────────────────────
   Strukturierter Text mit Eyebrow + optionaler Headline + Body.
   Body ist RTE-HTML — wir styling Standard-Tags (h2/h3, p, ul, ol,
   blockquote, a, img). Drei Layout-Varianten: centered (Lese-Breite),
   wide (volle Inhaltsbreite), und drei Tone-Varianten.
   ────────────────────────────────────────────────────────────────── */

.meidok-textblock {
  padding: 80px 24px;
}
.meidok-textblock__inner {
  margin: 0 auto;
}
.meidok-textblock--centered .meidok-textblock__inner { max-width: 760px; }
.meidok-textblock--wide     .meidok-textblock__inner { max-width: 1080px; }

.meidok-textblock__eyebrow {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--md-orange-600);
  margin-bottom: 12px;
  display: block;
}
.meidok-textblock__title {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  text-wrap: balance;
  color: var(--md-fg-1);
}

/* ── Body Prose ─────────────────────────────────────────────── */
.meidok-textblock__body {
  font-family: var(--md-font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--md-fg-1);
}
.meidok-textblock__body > * + * { margin-top: 1em; }
.meidok-textblock__body h2 {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 1.8em 0 0.4em;
  text-wrap: balance;
  color: var(--md-fg-1);
}
.meidok-textblock__body h3 {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  margin: 1.4em 0 0.3em;
  color: var(--md-fg-1);
}
.meidok-textblock__body p { margin: 0 0 1em; }
.meidok-textblock__body a {
  color: var(--md-blue-700);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in oklab, var(--md-blue-700) 40%, transparent);
}
.meidok-textblock__body a:hover {
  color: var(--md-blue-500);
  text-decoration-color: currentColor;
}
.meidok-textblock__body ul,
.meidok-textblock__body ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}
.meidok-textblock__body li + li { margin-top: 0.4em; }
.meidok-textblock__body blockquote {
  margin: 1.6em 0;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--md-orange-600);
  font-family: var(--md-font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.32;
  letter-spacing: -0.008em;
  color: var(--md-fg-1);
}
.meidok-textblock__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--md-radius-md);
  margin: 1.6em 0;
  display: block;
}

/* ── Tones ──────────────────────────────────────────────────── */
.meidok-textblock--paper { background: var(--md-paper); }
.meidok-textblock--white { background: #fff; }
.meidok-textblock--blue  {
  background: var(--md-blue-50);
  border-top: 1px solid var(--md-blue-100);
  border-bottom: 1px solid var(--md-blue-100);
}
.meidok-textblock--dark {
  background: var(--md-hero-deep);
  color: #fff;
}
.meidok-textblock--dark .meidok-textblock__title,
.meidok-textblock--dark .meidok-textblock__body,
.meidok-textblock--dark .meidok-textblock__body h2,
.meidok-textblock--dark .meidok-textblock__body h3 {
  color: #fff;
}
.meidok-textblock--dark .meidok-textblock__body a {
  color: var(--md-blue-200);
  text-decoration-color: color-mix(in oklab, var(--md-blue-200) 50%, transparent);
}
.meidok-textblock--dark .meidok-textblock__body a:hover { color: var(--md-blue-100); }
.meidok-textblock--dark .meidok-textblock__body blockquote {
  color: #fff;
  border-left-color: var(--md-orange-600);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 720px) {
  .meidok-textblock { padding: 56px 20px; }
  .meidok-textblock__title { font-size: clamp(22px, 6vw, 30px); }
  .meidok-textblock__body { font-size: 16px; }
}

/* ──────────────────────────────────────────────────────────────────
   meidok · Video Showcase (rsce_meidok_video_showcase)
   ──────────────────────────────────────────────────────────────────
   Produktvideo-Block für die Startseite. Drei Layouts:
     · split-right  — Video rechts, Text links (Default)
     · split-left   — Video links, Text rechts
     · centered     — großes Video mittig, Text drüber
   Vier Tones (paper/white/blue/dark).
   ────────────────────────────────────────────────────────────────── */

.meidok-videoshow {
  padding: 96px 24px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.meidok-videoshow__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 64px;
  align-items: center;
}

/* ── Split-Layouts ──────────────────────────────────────────── */
.meidok-videoshow--split-right .meidok-videoshow__inner,
.meidok-videoshow--split-left  .meidok-videoshow__inner {
  grid-template-columns: 1fr 1.2fr;
}
.meidok-videoshow--split-right .meidok-videoshow__copy  { order: 0; }
.meidok-videoshow--split-right .meidok-videoshow__media { order: 1; }
.meidok-videoshow--split-left  .meidok-videoshow__copy  { order: 1; }
.meidok-videoshow--split-left  .meidok-videoshow__media { order: 0; }

/* ── Centered-Layout — großer Video-Player mittig ──────────── */
.meidok-videoshow--centered .meidok-videoshow__inner {
  grid-template-columns: 1fr;
  max-width: 1080px;
  gap: 40px;
}
.meidok-videoshow--centered .meidok-videoshow__copy {
  text-align: center;
}
.meidok-videoshow--centered .meidok-videoshow__copy .meidok-videoshow__body {
  margin-left: auto;
  margin-right: auto;
}

/* ── Copy-Spalte ────────────────────────────────────────────── */
.meidok-videoshow__eyebrow {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--md-orange-600);
  margin-bottom: 16px;
  display: block;
}
.meidok-videoshow__title {
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: balance;
  color: var(--md-blue-700);
}
.meidok-videoshow__body {
  font-family: var(--md-font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--md-fg-2);
  margin: 0 0 24px;
  max-width: 52ch;
}
.meidok-videoshow__body p { margin: 0 0 1em; }
.meidok-videoshow__body p:last-child { margin: 0; }
.meidok-videoshow__body strong {
  color: var(--md-fg-1);
  font-weight: 700;
}

/* ── CTA ────────────────────────────────────────────────────── */
.meidok-videoshow__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--md-radius-pill);
  background: var(--md-orange-600);
  color: #fff;
  font-family: var(--md-font-display);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(234, 135, 23, .28);
  transition:
    background var(--md-dur-fast) var(--md-ease),
    transform var(--md-dur-fast) var(--md-ease);
}
.meidok-videoshow__cta:hover { background: #c97011; transform: translateY(-1px); }
.meidok-videoshow__cta .material-symbols-rounded { font-size: 18px; }

/* ── Video-Player ───────────────────────────────────────────── */
.meidok-videoshow__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--md-radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow:
    0 30px 60px rgba(15, 49, 99, .22),
    0 10px 20px rgba(15, 49, 99, .12);
}
.meidok-videoshow__media video,
.meidok-videoshow__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* Poster + Custom Play-Button (für Native-Video mit eigenem Play) */
.meidok-videoshow__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  transition: opacity var(--md-dur-normal) var(--md-ease);
}
.meidok-videoshow__media.is-playing .meidok-videoshow__poster {
  opacity: 0;
}
.meidok-videoshow__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow:
    0 12px 28px rgba(15, 49, 99, .35),
    0 4px 8px rgba(15, 49, 99, .18);
  transition:
    transform var(--md-dur-fast) var(--md-ease),
    background var(--md-dur-fast) var(--md-ease);
}
.meidok-videoshow__play:hover {
  transform: scale(1.06);
  background: #fff;
}
.meidok-videoshow__play::before {
  content: '';
  display: block;
  width: 0; height: 0;
  border-left: 22px solid var(--md-blue-700);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}
.meidok-videoshow__media.is-playing .meidok-videoshow__play {
  opacity: 0;
  pointer-events: none;
}

/* Pulsierender Ring um den Play-Button — dezenter Animations-Anker */
.meidok-videoshow__play::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .6);
  animation: meidok-videoshow-pulse 2.4s ease-out infinite;
}
@keyframes meidok-videoshow-pulse {
  0%   { transform: scale(1);    opacity: .8; }
  100% { transform: scale(1.35); opacity: 0;  }
}
@media (prefers-reduced-motion: reduce) {
  .meidok-videoshow__play::after { animation: none; }
}

/* ── Tones ──────────────────────────────────────────────────── */
.meidok-videoshow--paper { background: var(--md-paper); }
.meidok-videoshow--white { background: #fff; }
.meidok-videoshow--blue  { background: var(--md-blue-50); }
.meidok-videoshow--dark {
  background: var(--md-hero-deep);
  color: #fff;
}
.meidok-videoshow--dark .meidok-videoshow__title { color: #fff; }
.meidok-videoshow--dark .meidok-videoshow__body  { color: rgba(255, 255, 255, .78); }
.meidok-videoshow--dark .meidok-videoshow__body strong { color: #fff; }
.meidok-videoshow--dark .meidok-videoshow__play { background: var(--md-orange-600); }
.meidok-videoshow--dark .meidok-videoshow__play::before { border-left-color: #fff; }

.meidok-videoshow--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(108, 180, 228, .12), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(234, 135, 23, .12), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.meidok-videoshow--dark .meidok-videoshow__inner { position: relative; z-index: 1; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 880px) {
  .meidok-videoshow { padding: 64px 20px; }
  .meidok-videoshow--split-right .meidok-videoshow__inner,
  .meidok-videoshow--split-left  .meidok-videoshow__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* Mobile: Video kommt IMMER zuerst */
  .meidok-videoshow--split-right .meidok-videoshow__copy,
  .meidok-videoshow--split-left  .meidok-videoshow__copy  { order: 1; }
  .meidok-videoshow--split-right .meidok-videoshow__media,
  .meidok-videoshow--split-left  .meidok-videoshow__media { order: 0; }
  .meidok-videoshow__play { width: 64px; height: 64px; }
  .meidok-videoshow__play::before {
    border-left-width: 16px;
    border-top-width: 10px;
    border-bottom-width: 10px;
    margin-left: 4px;
  }
}

/* ──────────────────────────────────────────────────────────────────
   meidok · FAQ (rsce_meidok_faq)
   ────────────────────────────────────────────────────────────────── */
.meidok-faq { padding: 96px 24px; }
.meidok-faq__inner { max-width: 880px; margin: 0 auto; }
.meidok-faq__head { margin-bottom: 48px; text-align: center; }
.meidok-faq__eyebrow {
  font-family: var(--md-font-display);
  font-weight: 700; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--md-orange-600);
  margin-bottom: 12px; display: block;
}
.meidok-faq__title {
  font-family: var(--md-font-display); font-weight: 700;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.06;
  letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance;
}
.meidok-faq__lede {
  font-family: var(--md-font-body); font-size: 16.5px; line-height: 1.55;
  color: var(--md-fg-2); margin: 0 auto; max-width: 60ch;
}
.meidok-faq__list {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--md-border);
}
.meidok-faq__item {
  border-bottom: 1px solid var(--md-border);
}
.meidok-faq__item details { padding: 22px 0; }
.meidok-faq__item summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  cursor: pointer; list-style: none;
  font-family: var(--md-font-display);
  font-weight: 600; font-size: 18px; line-height: 1.35;
  color: var(--md-fg-1);
  letter-spacing: -0.005em;
  transition: color var(--md-dur-fast) var(--md-ease);
}
.meidok-faq__item summary::-webkit-details-marker { display: none; }
.meidok-faq__item summary:hover { color: var(--md-blue-700); }
.meidok-faq__chevron {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--md-blue-50);
  color: var(--md-blue-700);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--md-dur-normal) var(--md-ease),
              background var(--md-dur-fast) var(--md-ease);
}
.meidok-faq__chevron .material-symbols-rounded { font-size: 18px; }
.meidok-faq__item details[open] .meidok-faq__chevron {
  transform: rotate(180deg);
  background: var(--md-blue-700); color: #fff;
}
.meidok-faq__answer {
  margin-top: 16px;
  font-family: var(--md-font-body);
  font-size: 16px; line-height: 1.6;
  color: var(--md-fg-2);
  max-width: 60ch;
}
.meidok-faq__answer p { margin: 0 0 1em; }
.meidok-faq__answer p:last-child { margin: 0; }

/* Tones */
.meidok-faq--paper { background: var(--md-paper); }
.meidok-faq--white { background: #fff; }
.meidok-faq--blue  { background: var(--md-blue-50); }
.meidok-faq--dark  { background: var(--md-hero-deep); color: #fff; }
.meidok-faq--dark .meidok-faq__title,
.meidok-faq--dark .meidok-faq__item summary { color: #fff; }
.meidok-faq--dark .meidok-faq__lede,
.meidok-faq--dark .meidok-faq__answer { color: rgba(255,255,255,.72); }
.meidok-faq--dark .meidok-faq__list,
.meidok-faq--dark .meidok-faq__item { border-color: rgba(255,255,255,.12); }
.meidok-faq--dark .meidok-faq__chevron { background: rgba(255,255,255,.1); color: #fff; }
.meidok-faq--dark .meidok-faq__item details[open] .meidok-faq__chevron { background: var(--md-orange-600); }

@media (max-width: 720px) {
  .meidok-faq { padding: 64px 20px; }
  .meidok-faq__item summary { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .meidok-faq__chevron { transition: none; }
}

/* ──────────────────────────────────────────────────────────────────
   meidok · Logo Wall (rsce_meidok_logo_wall)
   ────────────────────────────────────────────────────────────────── */
.meidok-logos { padding: 80px 24px; }
.meidok-logos__inner { max-width: 1280px; margin: 0 auto; }
.meidok-logos__head { margin-bottom: 40px; text-align: center; }
.meidok-logos__eyebrow {
  font-family: var(--md-font-display);
  font-weight: 700; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--md-orange-600);
  margin-bottom: 12px; display: block;
}
.meidok-logos__title {
  font-family: var(--md-font-display); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.1;
  letter-spacing: -0.014em; margin: 0;
  text-wrap: balance;
}
.meidok-logos__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  align-items: center;
}
.meidok-logos--cols3 .meidok-logos__grid { grid-template-columns: repeat(3, 1fr); gap: 48px; }
.meidok-logos--cols4 .meidok-logos__grid { grid-template-columns: repeat(4, 1fr); gap: 40px; }
.meidok-logos--cols5 .meidok-logos__grid { grid-template-columns: repeat(5, 1fr); }
.meidok-logos--cols6 .meidok-logos__grid { grid-template-columns: repeat(6, 1fr); gap: 28px; }

.meidok-logos__item {
  display: flex; align-items: center; justify-content: center;
  height: 80px;
  text-decoration: none;
}
.meidok-logos__item img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .6;
  transition: filter var(--md-dur-normal) var(--md-ease),
              opacity var(--md-dur-normal) var(--md-ease);
}
.meidok-logos__item:hover img,
.meidok-logos--vivid .meidok-logos__item img {
  filter: none;
  opacity: 1;
}
/* Wenn Eintrag verlinkt: Hover-Tönung in Brand-Blau-Akzent */
.meidok-logos__item[href]:hover img { opacity: 1; }

/* Tones */
.meidok-logos--paper { background: var(--md-paper); }
.meidok-logos--white { background: #fff; }
.meidok-logos--blue  { background: var(--md-blue-50); }
.meidok-logos--dark  { background: var(--md-hero-deep); color: #fff; }
.meidok-logos--dark .meidok-logos__title { color: #fff; }
.meidok-logos--dark .meidok-logos__item img {
  filter: brightness(0) invert(1);
  opacity: .6;
}
.meidok-logos--dark .meidok-logos__item:hover img { opacity: 1; }

@media (max-width: 880px) {
  .meidok-logos { padding: 56px 20px; }
  .meidok-logos__grid,
  .meidok-logos--cols3 .meidok-logos__grid,
  .meidok-logos--cols4 .meidok-logos__grid,
  .meidok-logos--cols5 .meidok-logos__grid,
  .meidok-logos--cols6 .meidok-logos__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ──────────────────────────────────────────────────────────────────
   meidok · Team Grid (rsce_meidok_team_grid)
   ────────────────────────────────────────────────────────────────── */
.meidok-team { padding: 96px 24px; }
.meidok-team__inner { max-width: 1280px; margin: 0 auto; }
.meidok-team__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.meidok-team__eyebrow {
  font-family: var(--md-font-display);
  font-weight: 700; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--md-orange-600);
  margin-bottom: 12px; display: block;
}
.meidok-team__title {
  font-family: var(--md-font-display); font-weight: 700;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.06;
  letter-spacing: -0.02em; margin: 0 0 16px;
  text-wrap: balance;
}
.meidok-team__lede {
  font-family: var(--md-font-body); font-size: 16.5px; line-height: 1.55;
  color: var(--md-fg-2); margin: 0 auto; max-width: 60ch;
}
.meidok-team__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.meidok-team--cols2 .meidok-team__grid { grid-template-columns: repeat(2, 1fr); gap: 56px 64px; }
.meidok-team--cols3 .meidok-team__grid { grid-template-columns: repeat(3, 1fr); }
.meidok-team--cols4 .meidok-team__grid { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }

.meidok-team__card { display: flex; flex-direction: column; }
.meidok-team__photo {
  width: 100%; aspect-ratio: 4 / 5;
  border-radius: var(--md-radius-lg);
  overflow: hidden;
  background: var(--md-slate-100);
  margin-bottom: 18px;
}
.meidok-team__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.95) contrast(1.03);
  transition: transform var(--md-dur-normal) var(--md-ease);
}
.meidok-team__card:hover .meidok-team__photo img { transform: scale(1.03); }
.meidok-team__name {
  font-family: var(--md-font-display); font-weight: 700;
  font-size: 18px; margin: 0 0 4px; letter-spacing: -0.005em;
  color: var(--md-fg-1);
}
.meidok-team__role {
  font-family: var(--md-font-body); font-size: 14px;
  color: var(--md-orange-600); font-weight: 600;
  margin: 0 0 8px;
}
.meidok-team__bio {
  font-family: var(--md-font-body); font-size: 14.5px; line-height: 1.5;
  color: var(--md-fg-2); margin: 0;
}

/* RTE-Container (Opener + Bio) — RTE-Output enthält <p>, <ul>, <strong>, <a>.
   Wrapper ist <div>, innere Block-Elemente erben Größe & Farbe. */
.meidok-team__lede--rt > *:first-child,
.meidok-team__bio--rt  > *:first-child { margin-top: 0; }
.meidok-team__lede--rt > *:last-child,
.meidok-team__bio--rt  > *:last-child  { margin-bottom: 0; }
.meidok-team__lede--rt p,
.meidok-team__bio--rt  p { margin: 0 0 0.6em; }
.meidok-team__lede--rt ul,
.meidok-team__lede--rt ol,
.meidok-team__bio--rt  ul,
.meidok-team__bio--rt  ol { margin: 0 0 0.6em; padding-left: 1.25em; }
.meidok-team__lede--rt li,
.meidok-team__bio--rt  li { margin: 0 0 0.2em; }
.meidok-team__lede--rt a,
.meidok-team__bio--rt  a {
  color: var(--md-fg-link); text-decoration: underline;
  text-underline-offset: 2px;
}
.meidok-team__lede--rt strong,
.meidok-team__bio--rt  strong { font-weight: 700; color: var(--md-fg-1); }
.meidok-team--dark .meidok-team__lede--rt strong,
.meidok-team--dark .meidok-team__bio--rt  strong { color: #fff; }
.meidok-team--dark .meidok-team__lede--rt a,
.meidok-team--dark .meidok-team__bio--rt  a { color: var(--md-blue-200); }

/* Mail-Link unter der Bio */
.meidok-team__email {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  font-family: var(--md-font-ui); font-weight: 600; font-size: 13.5px;
  color: var(--md-orange-600);
  text-decoration: none;
  transition: color var(--md-dur-fast) var(--md-ease);
}
.meidok-team__email .material-symbols-rounded {
  font-size: 18px; line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}
.meidok-team__email-label {
  position: relative;
}
.meidok-team__email-label::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--md-dur-normal) var(--md-ease);
}
.meidok-team__email:hover { color: var(--md-orange-500); }
.meidok-team__email:hover .meidok-team__email-label::after { transform: scaleX(1); }
.meidok-team--dark .meidok-team__email { color: var(--md-orange-500); }
.meidok-team--dark .meidok-team__email:hover { color: var(--md-orange-600); }

/* Tones */
.meidok-team--paper { background: var(--md-paper); }
.meidok-team--white { background: #fff; }
.meidok-team--blue  { background: var(--md-blue-50); }
.meidok-team--dark  { background: var(--md-hero-deep); color: #fff; }
.meidok-team--dark .meidok-team__title,
.meidok-team--dark .meidok-team__name { color: #fff; }
.meidok-team--dark .meidok-team__lede,
.meidok-team--dark .meidok-team__bio  { color: rgba(255,255,255,.72); }

@media (max-width: 880px) {
  .meidok-team { padding: 64px 20px; }
  .meidok-team--cols2 .meidok-team__grid,
  .meidok-team--cols3 .meidok-team__grid,
  .meidok-team--cols4 .meidok-team__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
}
@media (max-width: 560px) {
  .meidok-team__grid,
  .meidok-team--cols2 .meidok-team__grid,
  .meidok-team--cols3 .meidok-team__grid,
  .meidok-team--cols4 .meidok-team__grid { grid-template-columns: 1fr; }
}

.invisible{
	display: none;
}
