/* ===== OptiAufmass – Kaiser edv-Konzept ===== */

/* DM Sans – selbst gehostet (DSGVO-konform, keine Google-Requests).
   Variable Font: deckt die Gewichte 400–600 mit jeweils einer Datei pro Subset ab. */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/dmsans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/dmsans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blue: #1a5fa8;
  --blue-light: #dce9f7;
  --blue-dark: #0e3d6e;
  --text: #1a1a1a;
  --text-muted: #5a6370;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-mid: #e8eff8;
  --border: rgba(0,0,0,0.1);
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 4px rgba(0,0,0,0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.65; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* NAV */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 40px; border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 100; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a { font-size: 13.5px; color: var(--text-muted); padding: 6px 12px; border-radius: 6px; transition: background 0.15s, color 0.15s; }
.nav-links a:hover, .nav-links a.active { background: var(--blue-light); color: var(--blue); text-decoration: none; }
.nav-cta { background: var(--blue); color: white; border: none; padding: 9px 18px; border-radius: 8px; font-size: 13.5px; font-family: 'DM Sans', sans-serif; cursor: pointer; font-weight: 500; transition: background 0.15s; }
.nav-cta:hover { background: var(--blue-dark); }
.nav-mobile { display: none; background: none; border: none; cursor: pointer; font-size: 22px; color: var(--text); }

/* HERO */
.hero { background: var(--bg-soft); padding: 64px 40px 56px; text-align: center; border-bottom: 1px solid var(--border); }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-light); color: var(--blue); font-size: 12px; font-weight: 500; padding: 5px 14px; border-radius: 20px; margin-bottom: 20px; }
.hero h1 { font-size: 36px; font-weight: 600; color: var(--text); margin-bottom: 14px; line-height: 1.2; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero p { font-size: 16px; color: var(--text-muted); max-width: 520px; margin: 0 auto 28px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 11px 24px; border-radius: 8px; font-size: 14px; font-family: 'DM Sans', sans-serif; font-weight: 500; cursor: pointer; border: none; transition: background 0.15s, color 0.15s, border-color 0.15s; text-decoration: none; }
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; color: white; }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue-light); text-decoration: none; }
.btn-white { background: white; color: var(--blue); font-weight: 500; }
.btn-white:hover { background: #f0f5ff; text-decoration: none; }

/* SECTIONS */
.section { padding: 56px 40px; }
.section-sm { padding: 40px 40px; }
.section-alt { background: var(--bg-soft); }
.container { max-width: 1000px; margin: 0 auto; }
.section-header { margin-bottom: 36px; }
.section-header h2 { font-size: 26px; font-weight: 600; margin-bottom: 8px; }
.section-header p { color: var(--text-muted); font-size: 15px; max-width: 560px; }

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 20px; transition: box-shadow 0.15s, border-color 0.15s; }
.card:hover { border-color: #a8c5e8; box-shadow: var(--shadow); }
.card-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 22px; }
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }
.card-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--blue); margin-top: 12px; font-weight: 500; }

/* SCREENSHOT-SHOWCASE */
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: start; }
.showcase-fig { margin: 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow); }
.showcase-fig img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.showcase-fig figcaption { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-top: 12px; }
.showcase-fig figcaption strong { color: var(--text); font-weight: 600; }
/* Hochformat-Screenshot (z. B. Verschnittplan) zentriert und begrenzt */
.showcase-tall { max-width: 420px; margin: 0 auto; }
.showcase-tall img { max-height: 560px; width: auto; margin: 0 auto; }

/* FEATURE LIST */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon { width: 36px; height: 36px; background: var(--blue-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 17px; flex-shrink: 0; }
.feature-body h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.feature-body p { font-size: 13px; color: var(--text-muted); }

/* MODULE CHIPS */
.chips { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; padding: 16px 40px; background: white; border-bottom: 1px solid var(--border); }
.chip { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px; font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.chip.active { background: var(--blue-light); color: var(--blue); border-color: #a8c5e8; }

/* CTA BLOCK */
.cta-block { background: var(--blue); color: white; padding: 56px 40px; text-align: center; }
.cta-block h2 { font-size: 26px; font-weight: 600; margin-bottom: 10px; }
.cta-block p { font-size: 15px; opacity: 0.85; margin-bottom: 28px; max-width: 460px; margin-left: auto; margin-right: auto; }

/* PRODUCT PAGE HERO */
.product-hero { padding: 56px 40px 48px; border-bottom: 1px solid var(--border); }
.product-hero .label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.product-hero h1 { font-size: 34px; font-weight: 600; margin-bottom: 14px; line-height: 1.2; max-width: 600px; }
.product-hero p { font-size: 16px; color: var(--text-muted); max-width: 520px; margin-bottom: 28px; }

/* TABLE */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 10px 14px; font-weight: 600; font-size: 13px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
.check { color: #1d9e75; font-size: 16px; }
.dash { color: #ccc; }

/* PRICING */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.price-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; }
.price-card.featured { border: 2px solid var(--blue); }
.price-badge { background: var(--blue-light); color: var(--blue); font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 12px; display: inline-block; margin-bottom: 12px; }
.price-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.price-card .price { font-size: 32px; font-weight: 600; color: var(--blue); margin: 16px 0 4px; }
.price-card .price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.price-card .price-note { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.price-features { list-style: none; margin-bottom: 24px; }
.price-features li { font-size: 13.5px; padding: 5px 0; display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.price-features li::before { content: '✓'; color: var(--blue); font-weight: 600; flex-shrink: 0; }

/* FORM */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 500; color: var(--text); }
input, select, textarea { font-family: 'DM Sans', sans-serif; font-size: 14px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); transition: border-color 0.15s; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,95,168,0.1); }
textarea { resize: vertical; min-height: 120px; }

/* FOOTER */
footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 40px 40px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand .footer-brand p { font-size: 13px; color: var(--text-muted); margin-top: 10px; line-height: 1.6; }
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13.5px; color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 12.5px; color: var(--text-muted); }

/* DIVIDER */
hr { border: none; border-top: 1px solid var(--border); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav { padding: 12px 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-mobile { display: block; }
  .hero { padding: 40px 20px; }
  .hero h1 { font-size: 26px; }
  .section, .section-sm { padding: 40px 20px; }
  .chips { padding: 12px 20px; }
  .product-hero { padding: 40px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-block { padding: 40px 20px; }
}

/* ===== Logo SVG in Nav ===== */

/* Footer-Logo */

/* Nav etwas höher für das neue Logo */
.nav { padding: 10px 40px; min-height: 64px; }

@media (max-width: 768px) {
  .nav { padding: 10px 16px; min-height: 56px; }
  }

/* ===== Logo (img-basiert) ===== */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo:hover { opacity: 0.85; text-decoration: none; }

.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* Nav etwas höher für das Logo */
.nav { padding: 10px 40px; min-height: 68px; }

@media (max-width: 768px) {
  .nav { padding: 10px 16px; min-height: 58px; }
  .nav-logo-img { height: 38px; }
  .footer-logo-img { height: 32px; }
}

/* Inline-Video: Standbild klicken -> Video spielt direkt auf der Seite ab
   (kein Wechsel zu videos.html). Erst beim Klick wird die Videodatei geladen. */
.inline-video {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.inline-video-poster {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
}
.inline-video-poster img { width: 100%; height: auto; display: block; }
.inline-video-poster .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.12);
  transition: background 0.15s;
}
.inline-video-poster:hover .play-badge { background: rgba(0,0,0,0.28); }
.inline-video-poster .play-badge::after {
  content: '';
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/26px no-repeat;
}
.inline-video video { width: 100%; height: auto; display: block; }

/* Video-Modal: spielt selbst gehostete Videos direkt auf der Seite ab
   (per assets/js/video-modal.js, z. B. von den Schulungsvideo-Karten). */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 15px; font-weight: 600; }
.modal-close {
  background: var(--bg-soft);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.15s;
}
.modal-close:hover { background: var(--border); }
.modal-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}
.modal-video .loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #aaa;
  font-size: 14px;
}

/* =============================================================================
   NEUTRALE UTILITY-KLASSEN (CSP-Haertung 2026-06-13)
   Ersetzen die zuvor projektweit inline gesetzten style="" Attribute, damit
   die CSP ohne 'unsafe-inline' fuer style-src auskommt. Bewusst neutral und
   wiederverwendbar benannt (nach Wirkung, nicht nach Seitenkontext) und ueber
   alle Seiten hinweg kombinierbar (z. B. class="flex-col gap-24 mb-48").
   ========================================================================== */

/* --- Textfarbe / Ausrichtung --- */
.text-muted   { color: var(--text-muted); }
.text-blue    { color: var(--blue); }
.text-white   { color: #fff; }
.text-center  { text-align: center; }
.lh-relaxed   { line-height: 1.8; }
.lh-snug      { line-height: 1.6; }
.lh-loose     { line-height: 1.7; }
.nowrap       { white-space: nowrap; }

/* --- Schriftgroessen (px-Werte aus den frueheren Inline-Styles) --- */
.fs-12   { font-size: 12px; }
.fs-12-5 { font-size: 12.5px; }
.fs-13   { font-size: 13px; }
.fs-13-5 { font-size: 13.5px; }
.fs-14   { font-size: 14px; }
.fs-14-5 { font-size: 14.5px; }
.fs-15   { font-size: 15px; }
.fs-16   { font-size: 16px; }
.fs-18   { font-size: 18px; }
.fs-20   { font-size: 20px; }
.fs-22   { font-size: 22px; }
.fs-24   { font-size: 24px; }
.fs-28   { font-size: 28px; }
.fs-32   { font-size: 32px; }
.fs-36   { font-size: 36px; }
.fs-40   { font-size: 40px; }
.fs-42   { font-size: 42px; }
.fs-64   { font-size: 64px; }
.fs-72   { font-size: 72px; }
.fs-80   { font-size: 80px; }

/* --- Schriftgewichte --- */
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* --- Layout: Flex / Grid --- */
.flex            { display: flex; }
.flex-col        { display: flex; flex-direction: column; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.items-baseline  { align-items: baseline; }
.justify-center  { justify-content: center; }
.justify-start   { justify-content: flex-start; }
.justify-between { justify-content: space-between; }
.flex-wrap       { flex-wrap: wrap; }
.flex-shrink-0   { flex-shrink: 0; }
.inline-block    { display: inline-block; }
.block           { display: block; }

/* --- Abstaende (gap) --- */
.gap-8  { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-14 { gap: 14px; }
.gap-16 { gap: 16px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }

/* --- Abstaende (margin-bottom) --- */
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: 4px; }
.mb-6  { margin-bottom: 6px; }
.mb-8  { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-28 { margin-bottom: 28px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* --- Abstaende (margin-top) --- */
.mt-2  { margin-top: 2px; }
.mt-3  { margin-top: 3px; }
.mt-4  { margin-top: 4px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.m-0     { margin: 0; }

/* --- Breite / Container --- */
.w-full      { width: 100%; }
.maxw-560    { max-width: 560px; }
.maxw-720    { max-width: 720px; }
.overflow-x  { overflow-x: auto; }

/* --- Hintergruende / Flaechen (wiederverwendbare Tokens) --- */
.bg-soft  { background: var(--bg-soft); }
.bg-blue-light { background: var(--blue-light); }

/* --- Schmaler Lesecontainer fuer Fliesstext-Seiten --- */
.narrow { max-width: 720px; }
.op-85  { opacity: 0.85; }
.lh-1   { line-height: 1; }
.one-col { grid-template-columns: 1fr; }
/* 404-Ueberschrift: ersetzt margin:16px 0 12px (oben/unten unterschiedlich) */
.m-404title { margin: 16px 0 12px; }

/* =============================================================================
   KOMPONENTEN-KLASSEN – nur dort, wo ein Mehrfach-Deklarationsblock als Einheit
   wiederkehrt. Utilities werden ansonsten am Element kombiniert.
   ========================================================================== */

/* Zweispaltiges Inhalts-Raster (Text + Bild/Box), bricht via .form-grid? nein:
   eigenes Raster, klappt mobil auf eine Spalte um. */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.two-col.items-center { align-items: center; }

/* Box mit weichem Hintergrund (Info-/Inhaltskarten, fruehere Inline-Boxen) */
.soft-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.soft-box-sm { padding: 20px 24px; }

/* Kennzahlen-Raster mit farbigen Kacheln (4er-Block auf Produktseiten) */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: center;
}
.stat-box   { border-radius: 10px; padding: 20px 12px; }
.stat-num   { font-size: 28px; font-weight: 600; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Farbakzente fuer Kacheln/Badges (Hex-Werte ausserhalb der CSS-Variablen) */
.tile-blue  { background: var(--blue-light); }
.tile-green { background: #e1f5ee; }
.tile-amber { background: #faeeda; }
.tile-rose  { background: #fbeaf0; }
.c-blue  { color: var(--blue); }
.c-green { color: #0f6e56; }
.c-amber { color: #854f0b; }
.c-rose  { color: #993556; }
.c-red   { color: #c0392b; }

/* App-Store-Button (schwarz) */
.btn-appstore { background: #000; color: #fff; }
.btn-appstore:hover { color: #fff; }

/* Vollbreiter Button (Preise) */
.btn-block { width: 100%; text-align: center; display: block; }
.bordered-blue { border-color: var(--blue); color: var(--blue); }
.btn-outline-light { color: white; border-color: rgba(255,255,255,0.5); }

/* Rahmen-Utilities */
.border-b { border-bottom: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-blue { border-color: #a8c5e8; }

/* Soft-Box-Groessen + weisse Variante */
.soft-box-md  { padding: 24px; }
.soft-box-lg  { padding: 40px; }
.bg-white     { background: var(--bg); }

/* Grid-Helfer + listenlose Liste */
.grid { display: grid; }
.plain-list { list-style: none; padding: 0; margin: 0; }

/* Index: Modul-Label in der Chip-Leiste */
.module-label { padding: 5px 0; }

/* Textfarbe Standard (dunkel) */
.text-dark { color: var(--text); }

/* Referenz-Badge-/Quote-Farbvarianten */
.badge-green { background: #e1f5ee; color: #0f6e56; }
.badge-amber { background: #faeeda; color: #854f0b; }
.quote-green { border-left-color: #5dcaa5; }
.quote-amber { border-left-color: #f0b03a; }

/* Referenzen: Hinweis-/Disclaimer-Box */
.disclaimer-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 13px;
  color: var(--text-muted);
}

/* OptiFloor: Verschnitt-Vergleich (zwei Karten nebeneinander) */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.compare-card { border-radius: var(--radius-lg); padding: 28px 24px; }
.compare-bad  { background: #fff5f5; border: 1px solid #f5c6c6; }
.compare-good { background: #e1f5ee; border: 1px solid #5dcaa5; }
.compare-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

/* Grosses Emoji-Icon als Block (fruehere font-size/margin-bottom Inline-Styles) */
.emoji-xl { font-size: 72px; margin-bottom: 16px; }

/* Referenz-/Testimonial-Karte */
.ref-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.ref-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.ref-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--blue-light);
}
.ref-name  { font-weight: 600; font-size: 15px; }
.ref-role  { font-size: 13px; color: var(--text-muted); }
.ref-badge {
  margin-left: auto;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 12px;
  white-space: nowrap; flex-shrink: 0;
}
.ref-quote {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
  border-left: 3px solid var(--blue);
  padding-left: 18px;
}
.ref-source { font-size: 13px; color: var(--text-muted); margin-top: 14px; }
.ref-kpi  { font-size: 32px; font-weight: 600; color: var(--blue); }
.ref-kpi-label { font-size: 13px; color: var(--text-muted); }
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  text-align: center;
}

/* Hinweis-/Zeitleisten-Box (Service-Updates, Preise-Hinweis) */
.note-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.timeline-row {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.timeline-year {
  background: var(--blue-light);
  color: var(--blue);
  font-size: 11.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 12px;
  white-space: nowrap;
  margin-top: 2px;
}

/* Versteckter Honeypot (Kontaktformular) */
.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Datenschutz-Checkbox-Zeile (Kontaktformular) */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 400;
}
.consent-checkbox { width: auto; margin-top: 3px; flex-shrink: 0; }

/* Erfolg-/Fehlermeldungen (Kontaktformular) – per .is-hidden umschalten */
.alert {
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  font-size: 14px;
}
.alert-success { background: #e1f5ee; border: 1px solid #5dcaa5; color: #0f6e56; }
.alert-error   { background: #fdecea; border: 1px solid #e6a8a2; color: #9b2c20; }
.is-hidden { display: none; }

/* Body-Scroll sperren, solange ein Video-Modal offen ist */
.no-scroll { overflow: hidden; }

/* Mobiles Navigationsmenue (aus shared.js ausgelagert) */
.mobile-menu {
  display: none;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu-logo { padding: 12px 0 16px; }
.mobile-menu-logo img { height: 36px; width: auto; }
.mobile-menu a.mobile-menu-link {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 14px; display: block; text-align: center; }

/* Footer-Logo-Link (aus shared.js ausgelagert) */
.footer-logo-link { display: inline-block; margin-bottom: 14px; }

/* Selbst gehostetes Modal-Video fuellt die 16:9-Buehne (aus video-modal.js) */
.modal-video-el {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
}

/* =============================================================================
   AUS videos.html / referenzen.html / plattformen.html ausgelagerte
   <style>-Bloecke (CSP-Haertung – keine Inline-<style> mehr).
   ========================================================================== */

/* --- videos.html: Tabs, Suche, Karten-Raster, Modal --- */
.video-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.video-tab {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.video-tab:hover, .video-tab.active {
  background: var(--blue-light);
  color: var(--blue);
  border-color: #a8c5e8;
  text-decoration: none;
}
.video-category { display: none; }
.video-category.active { display: block; }

/* Stichwortsuche (loest die alte "OptiFilme nach Schlagworten"-Liste ab) */
.video-search { position: relative; max-width: 520px; margin: 0 auto 14px; }
.video-search input {
  width: 100%;
  padding: 12px 42px 12px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
}
.video-search input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,95,168,0.12);
}
.video-search-clear {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.video-search-clear:hover { background: var(--border); }
.video-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; align-items: center;
  margin-bottom: 28px;
}
.video-tags-label { font-size: 13px; color: var(--text-muted); }
.video-tags button {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.video-tags button:hover { border-color: #a8c5e8; color: var(--blue); background: var(--blue-light); }
.video-search-empty { text-align: center; color: var(--text-muted); margin: 8px 0 24px; }
.video-search-empty button {
  background: none; border: none; color: var(--blue);
  font: inherit; cursor: pointer; text-decoration: underline; padding: 0;
}
/* Suchmodus: alle Kategorien zeigen, Nicht-Treffer verstecken. Die Tabs
   bleiben sichtbar, damit man die Suche jederzeit per Tab-Klick verlaesst. */
body.searching .video-category { display: block; }
/* Waehrend der Suche keinen Tab als aktiv markieren (Hover bleibt erhalten). */
body.searching .video-tab.active:not(:hover) {
  background: var(--bg-soft);
  color: var(--text-muted);
  border-color: var(--border);
}
body.searching .video-category.is-empty { display: none; }
body.searching .video-card.is-hidden { display: none; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.video-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.video-card:hover {
  border-color: #a8c5e8;
  box-shadow: 0 4px 16px rgba(26,95,168,0.1);
}
.video-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--bg-soft);
  overflow: hidden;
}
.video-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Overlay mit Play-Button ueber dem Standbild – das Video selbst wird erst
   beim Klick geladen (siehe openVideoSelf). */
.video-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.12);
  transition: background 0.15s;
}
.video-card:hover .video-thumb-overlay {
  background: rgba(0,0,0,0.28);
}
.play-btn {
  width: 52px;
  height: 52px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
}
.video-card:hover .play-btn {
  background: var(--blue-dark);
  transform: scale(1.1);
}
.play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent white;
  margin-left: 3px;
}
.video-info {
  padding: 14px 16px;
}
.video-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.35;
}
.video-info p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.modal-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
/* YouTube-Element bringt eigenes 16:9-Layout mit -> Padding-Hack abschalten */
.modal-video.is-youtube { padding-top: 0; }
.modal-footer {
  padding: 14px 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.modal-footer a { color: var(--blue); font-weight: 500; }

/* --- referenzen.html: aufklappbarer Detailbereich (natives <details>) --- */
.ref-details { margin-top: 18px; border-top: 1px solid var(--border); }
.ref-details > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}
.ref-details > summary::-webkit-details-marker { display: none; }
.ref-details > summary::after { content: "\25BE"; transition: transform .2s ease; }
.ref-details[open] > summary::after { transform: rotate(180deg); }
.ref-details > summary:hover { text-decoration: underline; }
.ref-details[open] > summary { color: var(--text-muted); }
.ref-detail-body { padding-top: 6px; }
.ref-detail-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 12px;
}
.ref-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.ref-figures figure { margin: 0; }
.ref-figures img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.ref-figures figcaption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* --- plattformen.html: klickbare Video-Vorschau (Deeplink ins Video-Center) --- */
.vid-link {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  background: var(--bg);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.vid-link:hover {
  border-color: #a8c5e8;
  box-shadow: 0 4px 16px rgba(26,95,168,0.1);
  text-decoration: none;
}
.vid-link-thumb {
  position: relative;
  width: 100%;
  padding-top: 75%;
  background: var(--bg-soft);
}
.vid-link-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.vid-link-thumb .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.12);
  transition: background 0.15s;
}
.vid-link:hover .play-badge { background: rgba(0,0,0,0.28); }
.vid-link-thumb .play-badge::after {
  content: '';
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/22px no-repeat;
}
.vid-link-label {
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.platform-block { scroll-margin-top: 90px; }

/* YouTube-Click-to-load (youtube-embed.js) – Klassen statt Inline-Styles (CSP-konform) */
.yt-embed {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.yt-consent {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  /* Standard-Hintergrund; bei gesetztem Poster überschreibt .yt-consent--poster */
  background: linear-gradient(135deg, var(--blue-light) 0%, #c8dff5 100%);
}
.yt-consent--poster {
  background-size: cover;
  background-position: center;
}
.yt-play {
  width: 56px;
  height: 56px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yt-note {
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 11.5px;
  line-height: 1.45;
  padding: 7px 12px;
  border-radius: 6px;
  max-width: 300px;
  text-align: center;
}
.yt-note a { color: #fff; text-decoration: underline; }
.yt-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
