/* Computron-MV – Template cmv (Child von Cassiopeia)
   Blau-Hintergründe: ausschließlich rgb(0, 0, 102)
   Inhalte sind normale Joomla-Beiträge; ihre Abschnitte tragen cmv-*-Klassen (siehe CLAUDE.md). */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/schibsted/sg-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/schibsted/sg-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;
}

:root {
  --cmv-navy: rgb(0, 0, 102);
  --cmv-red: #d3121f;
  --cmv-red-dark: #a80e19;
  --cmv-ink: #1c1c26;
  --cmv-muted: #5b5b6b;
  --cmv-line: #dcdce3;
  --cmv-mist: #f3f3f1;
  --cmv-font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* Cassiopeia-Variablen auf die Hausfarben */
  --cassiopeia-color-primary: rgb(0, 0, 102);
  --cassiopeia-color-link: rgb(0, 0, 102);
  --cassiopeia-color-hover: #d3121f;
  --cassiopeia-font-family-body: var(--cmv-font);
  --cassiopeia-font-family-headings: var(--cmv-font);
  --link-color: rgb(0, 0, 102);
  --link-hover-color: #d3121f;
  --body-color: #1c1c26;
  --template-special-color: rgb(0, 0, 102);
}

/* ---------- Grundschrift ---------- */
html { scroll-behavior: smooth; overflow-x: clip; }
body, button, input, select, textarea { font-family: var(--cmv-font); }
body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--cmv-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--cmv-font);
  color: var(--cmv-navy);
  letter-spacing: -0.015em;
  line-height: 1.12;
  font-weight: 700;
}
h1 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
h2 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.15rem; line-height: 1.25; }
p, li { max-width: 72ch; }
a { color: var(--cmv-navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cmv-red); }
::selection { background: rgb(0, 0, 102); color: #fff; }

/* ---------- Kopfzeile: Logo links, Menü rechts, eine Zeile ---------- */
.container-header {
  background: #fff; background-image: none; box-shadow: none;
  border-bottom: 1px solid var(--cmv-line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  padding-inline: max(16px, calc((100% - 1320px) / 2));
  min-height: 84px; z-index: 1000;
}
.container-header.cmv-stuck { box-shadow: 0 6px 24px rgba(0, 0, 102, .12); border-bottom-color: transparent; }   /* user.js, erst beim Scrollen */
.container-header > .grid-child { width: auto; max-width: none; margin: 0; padding: 0; }
.container-header .navbar-brand { margin: 0; padding: 0; }
.container-header .brand-logo { display: flex; align-items: center; }
.container-header .brand-logo img { height: 52px; width: auto; aspect-ratio: 428 / 104; }
.container-header .container-nav { margin-left: auto; }
.container-header .navbar { padding: 0; }

/* Hauptmenü (mod_menu, Layout collapse-metismenu) */
.container-header .mod-menu { color: var(--cmv-ink); }
.container-header .metismenu > li > a,
.container-header .metismenu > li > button {
  font-size: .95rem; font-weight: 500; color: var(--cmv-ink); letter-spacing: 0;
  padding: 0 14px; line-height: 84px; position: relative; text-decoration: none; background: none; border: 0;
}
.container-header .metismenu > li > button { padding: 0 6px 0 0; margin-left: -10px; }
.container-header .metismenu > li:hover > a,
.container-header .metismenu > li.active > a,
.container-header .metismenu > li > a[aria-current] { color: var(--cmv-navy); }
.container-header .metismenu > li.active > a::before,
.container-header .metismenu > li:hover > a::before {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 22px; height: 2px; background: var(--cmv-red);
}
.container-header .metismenu > li::after { display: none; }   /* Cassiopeia-Trennstrich */
.container-header .metismenu.mod-menu > .metismenu-item { padding: 0; font-size: 1rem; }   /* Abstand macht der Link selbst */
.container-header .navbar { margin: 0; }
.container-header .metismenu.mod-menu .metismenu-item > a[aria-current] { text-decoration: none; }   /* nur roter Balken */
html.a11y-links .container-header .metismenu.mod-menu .metismenu-item > a { text-decoration: underline; }
.container-header .metismenu .mm-collapse {
  background: #fff; border-radius: 2px; border: 0; border-top: 2px solid var(--cmv-red);
  box-shadow: 0 12px 30px rgba(0, 0, 102, .14); padding: .4rem 0; min-width: 14rem;
}
.container-header .metismenu .mm-collapse a {
  color: var(--cmv-ink); font-size: .95rem; padding: .45rem 1.1rem; display: block; text-decoration: none;
}
.container-header .metismenu .mm-collapse a:hover,
.container-header .metismenu .mm-collapse .active > a { color: var(--cmv-navy); background: var(--cmv-mist); }
/* Desktop: bei großer Textgröße umbrechen statt seitlich überlaufen; Pfeil bleibt beim Menüpunkt */
@media (min-width: 992px) {
  .container-header .metismenu.mod-menu { flex-wrap: wrap; justify-content: flex-end; }
  .container-header .metismenu.mod-menu > .metismenu-item { flex-wrap: nowrap; }
}
/* Desktop mit Maus: Untermenü schon beim Überfahren öffnen (wie bisher) */
@media (min-width: 992px) and (hover: hover) {
  .container-header .metismenu > li.parent:hover > .mm-collapse { display: block; height: auto !important; }
}
.container-header .navbar-toggler {
  color: var(--cmv-navy); border: 2px solid var(--cmv-navy); border-radius: 8px;
  min-width: 44px; min-height: 44px; background: #fff;
}
@media (max-width: 991.98px) {
  .container-header { min-height: 68px; }
  .container-header .brand-logo img { height: 40px; }
  .container-header .container-nav { margin-left: 0; width: auto; }
  .container-header .grid-child.container-nav, .container-header .navbar { position: static; }
  .container-header .metismenu .mm-collapse { position: static !important; min-width: 0; flex-basis: 100%; }
  .container-header .metismenu > li { display: block; padding: 0; }
  .container-header .navbar-collapse {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border-top: 1px solid var(--cmv-line); box-shadow: 0 16px 30px rgba(0, 0, 102, .14);
    padding: .5rem 16px 1rem;
  }
  .container-header .metismenu > li > a { line-height: 1.3; padding: .7rem 0; display: inline-block; }
  .container-header .metismenu > li > a::before { display: none; }
  .container-header .metismenu > li > button { line-height: 1.3; padding: .8rem .6rem; margin: 0; }
  .container-header .metismenu .mm-collapse { box-shadow: none; border-top: 0; padding: 0 0 .4rem 1rem; }
  .container-header { position: relative; }
  .container-header.sticky-top { position: sticky; }
}

/* ---------- Buttons ---------- */
.btn { border-radius: 8px; font-weight: 700; letter-spacing: 0; padding: .75rem 1.4rem; text-transform: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--cmv-red) !important; border-color: var(--cmv-red) !important; color: #fff !important; }
.btn-primary:hover, .btn-primary:focus { background: var(--cmv-red-dark) !important; border-color: var(--cmv-red-dark) !important; color: #fff !important; }
.btn-outline-primary { color: var(--cmv-navy) !important; border: 2px solid var(--cmv-navy) !important; background: transparent !important; }
.btn-outline-primary:hover { background: var(--cmv-navy) !important; color: #fff !important; }
.cmv-btn-ghost { color: #fff !important; border: 2px solid #fff !important; background: transparent !important; }
.cmv-btn-ghost:hover, .cmv-btn-ghost:focus { background: #fff !important; color: var(--cmv-navy) !important; }
a:focus-visible, .btn:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--cmv-red); outline-offset: 3px; }

/* ---------- Seitengerüst ---------- */
.site-grid { row-gap: 0; }
.container-component { padding-top: 0; padding-bottom: 3.5rem; }
.container-component > main { margin: 0; }
:is(main, .mceContentBody) .com-content-article__body > *:first-child { margin-top: 0; }
/* Inhaltsregeln gelten auf der Seite (main) und im JCE-Editor (.mceContentBody, siehe editor.css) */
/* Abschnitt über die volle Fensterbreite, Inhalt bleibt in der Spalte */
:is(main, .mceContentBody) .cmv-full { margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); }
:is(main, .mceContentBody) .cmv-crumbs .breadcrumb, :is(main, .mceContentBody) .mod-breadcrumbs {
  background: transparent; padding: 0 !important; margin: .8rem 0 1.2rem; font-size: .9rem; color: var(--cmv-muted);
}
:is(main, .mceContentBody) p:empty { display: none; }
:is(main, .mceContentBody) img { max-width: 100%; height: auto; border-radius: 2px; }
:is(main, .mceContentBody) table { border-collapse: collapse; width: 100%; }
:is(main, .mceContentBody) table th { background: var(--cmv-mist); color: var(--cmv-navy); text-align: left; font-weight: 700; }
:is(main, .mceContentBody) table th, :is(main, .mceContentBody) table td { border: 0; border-bottom: 1px solid var(--cmv-line); padding: .8rem 1rem; }
:is(main, .mceContentBody) ul { padding-left: 1.2rem; }
:is(main, .mceContentBody) li { margin-bottom: .4rem; }
:is(main, .mceContentBody) h2, :is(main, .mceContentBody) h3 { margin-top: 1.8rem; margin-bottom: .8rem; }
:is(main, .mceContentBody) .lead { font-size: 1.25rem; color: var(--cmv-ink); max-width: none; }
:is(main, .mceContentBody) p:has(> img) { max-width: none; }
:is(main, .mceContentBody) p:has(> img) em { display: block; margin-top: .5rem; color: var(--cmv-muted); font-size: .95rem; }
:is(main, .mceContentBody) div:has(> table) { overflow-x: auto; }

/* Textabschnitte (früher capricom-merge-Zeilen) */
.capricom-merge { padding: 1.2rem 0 2.5rem; }
.capricom-merge p, .capricom-merge li { max-width: none; }
:is(main, .mceContentBody) .capricom-merge h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); letter-spacing: -0.012em; line-height: 1.15; margin-top: 2.6rem; margin-bottom: 1rem; }
:is(main, .mceContentBody) .capricom-merge h2::after { content: ""; display: block; width: 48px; height: 4px; background: var(--cmv-red); margin-top: .7rem; }
:is(main, .mceContentBody) .capricom-merge h2:first-child { margin-top: 0; }
.capricom-merge h3 { margin-top: 0; }
.capricom-merge .row > div { margin-bottom: 1.6rem; }
.capricom-merge .row > div > h4 { padding-top: .9rem; border-top: 3px solid var(--cmv-navy); margin-top: 0; margin-bottom: .45rem; }
.capricom-merge .row > div > h4 + p { color: var(--cmv-muted); margin-bottom: 0; }
.capricom-merge .btn { margin-top: .4rem; }
:is(main, .mceContentBody) .capricom-merge p > img {
  border-radius: 12px; border: 1px solid var(--cmv-line); box-shadow: 0 14px 40px rgba(0, 0, 102, .14); margin-bottom: .7rem;
}
:is(main, .mceContentBody) .cmv-mist { background: var(--cmv-mist); padding-top: 70px; padding-bottom: 70px; }

/* Zahlen-Fakten (Startseite) */
.cmv-facts .cmv-fact {
  display: flex; align-items: center; gap: 1.2rem;
  border-top: 3px solid var(--cmv-navy); padding-top: .9rem; margin: 0 0 1.8rem;
  font-size: 1.05rem; color: var(--cmv-ink);
}
.cmv-fact span { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; color: var(--cmv-navy); line-height: 1; min-width: 4.2ch; letter-spacing: -0.03em; }

/* Symbole per Klasse (der Editor entfernt leere <i>-Tags): <h3 class="cmv-ic cmv-ic-code"> */
.cmv-ic::before {
  font-family: "Font Awesome 6 Free"; font-weight: 900; font-style: normal; display: block;
  font-size: 34px; line-height: 40px; color: var(--cmv-red); margin: 0 0 1.1rem;
}
.cmv-ic-code::before { content: "\f121"; }
.cmv-ic-file::before { content: "\f15c"; }
.cmv-ic-chat::before { content: "\f086"; }
.cmv-ic-mail::before { content: "\f1d8"; }
.cmv-ic-phone::before { content: "\f095"; }
p.cmv-ic::before { font-size: 28px; line-height: 1; color: var(--cmv-navy); margin-bottom: .6rem; }

/* KI-Karten (Startseite) */
.cmv-ki { padding-top: 70px; padding-bottom: 80px; }
.cmv-head { margin-bottom: 2.4rem; align-items: start; }
.cmv-head::before { content: ""; flex: 0 0 calc(100% - 30px); height: 1px; margin: 0 15px 2.6rem; background: var(--cmv-line); }
:is(main, .mceContentBody) .cmv-head h2 { margin-top: 0; }
.cmv-head p { font-size: 1.1rem; line-height: 1.6; color: var(--cmv-ink); margin: 0 0 1.2rem; max-width: 62ch; }
.cmv-card h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 .6rem; color: var(--cmv-navy); }
.cmv-card p { font-size: 1rem; line-height: 1.6; color: #3b3b4a; margin: 0 0 .8rem; max-width: none; }
.cmv-more, .cmv-more:visited { font-weight: 700; color: var(--cmv-navy); text-decoration: none; border-bottom: 2px solid var(--cmv-red); padding-bottom: 1px; }
.cmv-more:hover { color: var(--cmv-red); }
@media (max-width: 991px) {
  .cmv-card { margin-bottom: 2.2rem; }
  .cmv-head { margin-bottom: 1.6rem; }
}

/* ---------- Startseite: Hero, Teaser, Kacheln, Band, Schnellzugriff ---------- */
.cmv-hero { background: rgb(0, 0, 102); position: relative; overflow: hidden; isolation: isolate; }
.cmv-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: url("../../../../../images/design/hero-wellen.svg");
  background-repeat: no-repeat; background-position: right -18vw bottom -120px; background-size: auto 105%;
}
/* läuft die Animation (js/vanta), ersetzt ein Verlauf die statische Grafik und hält den Text lesbar */
.cmv-hero.cmv-hero-live::after { z-index: 0; background-image: linear-gradient(90deg, rgb(0, 0, 102) 0%, rgba(0, 0, 102, .82) 38%, rgba(0, 0, 102, 0) 72%); background-size: auto; background-position: 0 0; }
.cmv-hero-in { position: relative; z-index: 1; padding: clamp(70px, 9vw, 130px) 0 clamp(150px, 15vw, 210px); max-width: 760px; }
.cmv-hero .a11y-slider-toggle { top: 18px; bottom: auto; border-radius: 8px; }
.cmv-eyebrow {
  color: #fff; font-weight: 600; font-size: 1rem; letter-spacing: .02em; margin: 0 0 1.2rem;
  display: flex; align-items: center; gap: .8rem;
}
.cmv-eyebrow::before { content: ""; width: 44px; height: 3px; background: var(--cmv-red); flex: none; }
:is(main, .mceContentBody) .cmv-hero h1 {
  color: #fff; font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; line-height: 1.04;
  letter-spacing: -0.03em; margin: 0 0 1.4rem; text-wrap: balance;
}
.cmv-hero-sub { color: #fff; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 56ch; margin: 0 0 2rem; }
.cmv-hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; max-width: none; }
.cmv-hero-cta .btn { padding: .95rem 1.7rem; font-size: 1.05rem; }

.cmv-teaser { position: relative; z-index: 2; }
.cmv-teaser-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -96px; }
.cmv-tcard, .cmv-tcard:visited {
  display: flex; flex-direction: column; gap: .35rem; background: #fff; color: var(--cmv-ink);
  border-radius: 14px; padding: 1.3rem 1.4rem 1.2rem; text-decoration: none;
  box-shadow: 0 14px 40px rgba(0, 0, 102, .16); border: 1px solid var(--cmv-line);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
.cmv-tcard:hover, .cmv-tcard:focus-visible { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(0, 0, 102, .24); color: var(--cmv-ink); }
.cmv-tag {
  align-self: flex-start; background: rgb(0, 0, 102); color: #fff; font-size: .78rem; font-weight: 700;
  padding: .15rem .7rem; border-radius: 999px; margin-bottom: .5rem;
}
.cmv-tcard strong { color: var(--cmv-navy); font-size: 1.25rem; line-height: 1.2; }
.cmv-tcard-text { font-size: .98rem; line-height: 1.45; color: #3b3b4a; flex: 1; }
.cmv-tcard-more { font-weight: 700; color: var(--cmv-navy); margin-top: .7rem; }
.cmv-tcard-more::after { content: " \00BB"; color: var(--cmv-red); font-size: 1.25em; transition: margin-left .2s; }
.cmv-tcard:hover .cmv-tcard-more::after { margin-left: .3rem; }

.cmv-sec { padding: clamp(60px, 8vw, 110px) 0 clamp(50px, 6vw, 90px); }
:is(main, .mceContentBody) h2.cmv-h2c {
  text-align: center; font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 800; letter-spacing: -0.025em;
  margin: 0 0 clamp(2rem, 4vw, 3.4rem);
}
.cmv-h2c::after { content: ""; display: block; width: 64px; height: 4px; background: var(--cmv-red); margin: 1rem auto 0; }
.cmv-tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.cmv-tile { display: flex; flex-direction: column; text-align: center; }
:is(main, .mceContentBody) .cmv-tile img { width: 100%; height: auto; display: block; position: relative; z-index: 1; margin-bottom: -27%; border-radius: 0; }
.cmv-tile-body { background: rgb(0, 0, 102); color: #fff; flex: 1; padding: 24% 1.6rem 2rem; border-radius: 0 0 14px 14px; display: flex; flex-direction: column; }
:is(main, .mceContentBody) .cmv-tile-body h3 { color: #fff; font-size: 1.4rem; margin: 0 0 .8rem; }
.cmv-tile-body p { color: #fff; max-width: none; margin: 0 0 1rem; font-size: 1.02rem; line-height: 1.55; }
.cmv-tile-body p:last-child { margin: auto 0 0; padding-top: .4rem; }
.cmv-tile-body a, .cmv-tile-body a:visited { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--cmv-red); padding-bottom: 2px; }
.cmv-tile-body a:hover { color: #fff; border-bottom-color: #fff; }

.cmv-band { background: rgb(0, 0, 102); color: #fff; }
.cmv-band-in { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(56px, 7vw, 96px) 0; }
:is(main, .mceContentBody) .cmv-band-art img { width: 100%; height: auto; display: block; }
:is(main, .mceContentBody) .cmv-band h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 800; letter-spacing: -0.025em; margin: 0 0 1.2rem; }
.cmv-band p { color: #fff; font-size: 1.1rem; line-height: 1.6; }
.cmv-band .btn { margin-top: .6rem; }

.cmv-quick {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; background: var(--cmv-mist);
  border-radius: 14px; padding: 1.2rem 1.5rem; margin: clamp(40px, 5vw, 70px) 0 0;
}
.cmv-quick-title { font-weight: 800; color: var(--cmv-navy); font-size: 1.2rem; margin-right: .6rem; }
.cmv-quick a, .cmv-quick a:visited {
  background: #fff; color: var(--cmv-navy); border: 2px solid var(--cmv-navy); border-radius: 8px;
  padding: .5rem 1.1rem; font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s;
}
.cmv-quick a:hover, .cmv-quick a:focus-visible { background: rgb(0, 0, 102); color: #fff; }

@media (max-width: 1199px) { .cmv-teaser-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 991px) {
  .cmv-hero::after { opacity: .45; }
  .cmv-tile-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .cmv-band-in { grid-template-columns: 1fr; }
  .cmv-band-art { max-width: 380px; }
}
@media (max-width: 575px) {
  .cmv-teaser-grid { grid-template-columns: 1fr; margin-top: -120px; }
  .cmv-hero-cta .btn { width: 100%; }
}

/* ---------- Unterseiten: Seitenkopf, Karten, Abschluss-Band ---------- */
.cmv-pagehero { background: rgb(0, 0, 102); position: relative; overflow: hidden; isolation: isolate; }
.cmv-pagehero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55; z-index: -1;
  background-image: url("../../../../../images/design/hero-wellen.svg");
  background-repeat: no-repeat; background-position: right -10vw center; background-size: auto 190%;
}
.cmv-pagehero-in { padding: clamp(44px, 6vw, 84px) 0 clamp(40px, 5vw, 72px); max-width: 880px; }
:is(main, .mceContentBody) .cmv-pagehero h1 {
  color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; line-height: 1.08;
  letter-spacing: -0.025em; margin: 0 0 1rem; text-wrap: balance;
}
:is(main, .mceContentBody) .cmv-pagehero .lead { color: #fff; font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.55; max-width: 62ch; margin: 0 0 1.6rem; }
.cmv-pagehero .cmv-pagehero-in > :last-child { margin-bottom: 0; }

.cmv-box {
  background: #fff; border: 1px solid var(--cmv-line); border-top: 4px solid rgb(0, 0, 102); border-radius: 14px;
  padding: 1.5rem 1.5rem 1.3rem; height: 100%; box-shadow: 0 8px 26px rgba(0, 0, 102, .07);
}
:is(main, .mceContentBody) .cmv-box h3 { margin: 0 0 .6rem; font-size: 1.2rem; }
.cmv-box p { margin: 0 0 .7rem; max-width: none; }
.cmv-box > :last-child { margin-bottom: 0; }
.cmv-prodgrid { margin-top: clamp(30px, 4vw, 56px); }
.capricom-merge > .cmv-prodgrid:first-child { margin-top: .4rem; }
.cmv-prodgrid .cmv-box { display: flex; flex-direction: column; }
:is(main, .mceContentBody) .capricom-merge h2.cmv-prodtitle { font-size: 1.35rem; margin: 0 0 .8rem; }
:is(main, .mceContentBody) .cmv-prodgrid .lead { font-size: 1.05rem; flex: 1; }
.cmv-prodgrid .btn { margin: .3rem .3rem 0 0; }

.cmv-cta { background: rgb(0, 0, 102); color: #fff; margin-top: clamp(30px, 4vw, 60px); }
.cmv-cta-in { padding: clamp(48px, 6vw, 84px) 0; text-align: center; }
:is(main, .mceContentBody) .cmv-cta h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; margin: 0 0 .8rem; }
.cmv-cta p { color: #fff; font-size: 1.15rem; margin: 0 auto 1.6rem; }
.cmv-cta .cmv-hero-cta { justify-content: center; margin: 0; }
.cmv-cta + .cmv-note, .cmv-cta:last-child { margin-bottom: -3.5rem; }
.cmv-note { padding: 1.4rem 0; }
.cmv-note p { max-width: none; color: var(--cmv-muted); }

.cmv-hero ::selection, .cmv-pagehero ::selection, .cmv-band ::selection, .cmv-cta ::selection,
.cmv-tile-body ::selection, .cmv-cookie ::selection, .container-bottom-b ::selection, .container-footer ::selection { background: #fff; color: rgb(0, 0, 102); }

/* Textseiten: Aufzählungen mehrspaltig, zweispaltiger Fließtext */
.cmv-cols { columns: 2 22em; column-gap: 2.5rem; padding-left: 1.2rem; }
.cmv-cols li { max-width: none; break-inside: avoid; margin-bottom: .6rem; }
.cmv-twocol { padding-bottom: 4rem; }
@media (min-width: 992px) {
  .cmv-twocol { columns: 2; column-gap: 3rem; }
  .cmv-twocol p, .cmv-twocol li { max-width: none; }
  .cmv-twocol p, .cmv-twocol li, .cmv-twocol h2, .cmv-twocol ul { break-inside: avoid; }
  .cmv-twocol h2 { break-after: avoid; }
  :is(main, .mceContentBody) .cmv-twocol h2:first-child { margin-top: 0; }
}

/* Aufklappbare Abschnitte (Impressum) */
:is(main, .mceContentBody) details { border: 1px solid var(--cmv-line); border-radius: 8px; margin: 0 0 .8rem; background: #fff; }
:is(main, .mceContentBody) summary { cursor: pointer; padding: .9rem 1.2rem; font-weight: 700; color: var(--cmv-navy); }
:is(main, .mceContentBody) details[open] summary { border-bottom: 1px solid var(--cmv-line); }
:is(main, .mceContentBody) details > :not(summary) { padding: 0 1.2rem; }
:is(main, .mceContentBody) details > p:first-of-type { margin-top: 1rem; }

/* Kontakt/Impressum: Anschrift, E-Mail und Telefon */
:is(main, .mceContentBody) address { margin-bottom: 1.5rem; }
@media (max-width: 767px) { main .row > .col-md-4 { margin-bottom: 1rem; } }

/* Tabellen: auf dem Handy zeilenweise stapeln (table.cmv-stack, Spaltentitel aus data-label) */
@media (max-width: 575px) {
  :is(main, .mceContentBody) table th, :is(main, .mceContentBody) table td { padding: .65rem .5rem; font-size: .95rem; hyphens: auto; overflow-wrap: break-word; vertical-align: top; }
  :is(main, .mceContentBody) table.cmv-stack, .cmv-stack tbody, .cmv-stack tr, .cmv-stack td { display: block; width: 100%; }
  :is(main, .mceContentBody) div:has(> table.cmv-stack) { overflow-x: visible; }
  .cmv-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .cmv-stack tr { padding: .9rem 0; border-bottom: 1px solid var(--cmv-line); }
  .cmv-stack tr:first-child { border-top: 3px solid var(--cmv-navy); }
  :is(main, .mceContentBody) table.cmv-stack td { border: 0; padding: 0 0 .55rem; font-size: 1rem; hyphens: manual; }
  :is(main, .mceContentBody) table.cmv-stack td:last-child { padding-bottom: 0; }
  .cmv-stack td:first-child { font-size: 1.1rem; color: var(--cmv-navy); }
  .cmv-stack td:not(:first-child)::before {
    content: attr(data-label); display: block; font-size: .82rem; font-weight: 700; color: var(--cmv-muted); line-height: 1.4;
  }
}

/* ---------- Footer: drei Spalten (Position bottom-b) + Copyright (Position footer) ---------- */
.container-bottom-b {
  grid-column: full-start / full-end; background: rgb(0, 0, 102); color: rgba(255, 255, 255, .88); font-size: .95rem;
  display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 22fr) minmax(0, 33fr); gap: 0; overflow-wrap: anywhere;
  padding: 64px max(16px, calc((100% - 1320px) / 2)) 40px; margin: 0; max-width: none;
}
.container-bottom-b > .card { background: transparent; border: 0; color: inherit; margin: 0; padding-right: 30px; }
.container-bottom-b .card-header { background: transparent; border: 0; padding: 0; color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-bottom: 1rem; }
.container-bottom-b .card-body { padding: 0; }
.container-bottom-b p, .container-bottom-b li { color: rgba(255, 255, 255, .88); font-size: .95rem; }
.container-bottom-b a, .container-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.container-bottom-b a:hover, .container-footer a:hover { color: #fff; text-decoration: underline; }
.container-bottom-b ul { list-style: none; padding: 0; margin: 0; }
.container-bottom-b li { margin-bottom: .35rem; }
.container-footer, .footer { background: rgb(0, 0, 102); background-image: none; color: rgba(255, 255, 255, .88); margin-top: 0; }
.container-footer .grid-child { padding: 18px max(16px, calc((100% - 1320px) / 2)) 26px; max-width: none; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .9rem; }
.container-footer p { margin: 0; max-width: none; }
.cmv-remote { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 16px; }
.cmv-remote a { display: block; line-height: 0; }
.cmv-remote img { height: 65px; width: auto; max-width: 100%; }
.cmv-remote img[src*="TeamViewer"] { aspect-ratio: 287 / 65; }
.cmv-remote img[src*="pcvisit"] { aspect-ratio: 200 / 95; }
:is(main, .mceContentBody) img[src*="TeamViewer"] { width: 287px; max-width: 100%; height: auto; }
@media (max-width: 991px) {
  .container-bottom-b { grid-template-columns: 1fr; row-gap: 2rem; }
  .container-bottom-b li a { display: inline-block; padding: .3rem 0; }
  .container-bottom-b li { margin-bottom: 0; }
}

/* Nach-oben-Knopf */
.back-to-top-link { background: var(--cmv-red); border-radius: 2px; color: #fff; }
.back-to-top-link:hover, .back-to-top-link:focus { background: var(--cmv-red-dark); color: #fff; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ====================================================================
   Barrierefreiheit
   ==================================================================== */
.a11y-skip {
  position: fixed; left: 12px; top: -80px; z-index: 10001;
  background: #fff; color: var(--cmv-navy); font-weight: 700; padding: .7em 1.1em;
  border: 3px solid var(--cmv-red); border-radius: 2px; transition: top .15s;
}
.a11y-skip:focus { top: 12px; color: var(--cmv-navy); }

.a11y-wrap { position: fixed; right: 20px; bottom: 110px; z-index: 10000; font-size: 16px; }
.a11y-open {
  width: 64px; height: 64px; border: 3px solid #fff; border-radius: 4px; cursor: pointer;
  background: var(--cmv-navy); color: #fff; font-size: 34px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgb(0, 0, 102), 0 4px 14px rgba(0, 0, 102, .45);
}
.a11y-open:hover { background: var(--cmv-red); }
.a11y-panel {
  position: absolute; right: 0; bottom: 76px; width: 300px; max-width: calc(100vw - 32px);
  background: #fff; color: var(--cmv-ink); border: 2px solid var(--cmv-navy); border-radius: 2px;
  padding: 1em; box-shadow: 0 12px 34px rgba(0, 0, 102, .25);
}
.a11y-panel[hidden] { display: none; }
.a11y-title { margin: 0 0 .8em; font-weight: 700; color: var(--cmv-navy); font-size: 1.05em; }
.a11y-row { display: flex; align-items: center; gap: .5em; margin-bottom: .6em; }
.a11y-label { flex: 1; font-weight: 500; }
.a11y-size { min-width: 3.6em; text-align: center; font-weight: 700; }
.a11y-step, .a11y-toggle, .a11y-reset {
  font: inherit; cursor: pointer; border: 2px solid var(--cmv-navy); background: #fff; color: var(--cmv-navy);
  border-radius: 2px; padding: .45em .7em; font-weight: 700;
}
.a11y-step { min-width: 3em; }
.a11y-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: .6em; text-align: left; }
.a11y-toggle[aria-pressed="true"] { background: var(--cmv-navy); color: #fff; }
.a11y-state { font-weight: 700; margin-left: 1em; }
.a11y-reset { width: 100%; border-color: var(--cmv-line); font-weight: 500; }
.a11y-note { margin: .8em 0 0; font-size: .85em; color: var(--cmv-muted); max-width: none; }
.a11y-wrap button:focus-visible, .a11y-skip:focus-visible, .a11y-slider-toggle:focus-visible { outline: 3px solid var(--cmv-red); outline-offset: 2px; }

.a11y-slider-toggle {
  position: absolute; right: 24px; bottom: 18px; z-index: 5; width: 40px; height: 40px;
  background: rgba(255, 255, 255, .92); color: var(--cmv-navy); border: 0; border-radius: 2px; cursor: pointer;
}
.a11y-slider-toggle:hover { background: #fff; color: var(--cmv-red); }

/* Textgröße */
html.a11y-size-1 { font-size: 112.5%; }
html.a11y-size-2 { font-size: 125%; }
html.a11y-size-3 { font-size: 150%; }
html[class*="a11y-size-"] .container-header .metismenu > li > a { line-height: 1.3; padding-top: .8em; padding-bottom: .8em; }
html[class*="a11y-size-"] .container-header .metismenu > li > a::before { bottom: .3em; }

/* Links unterstreichen */
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }

/* Animationen stoppen */
html.a11y-nomotion *, html.a11y-nomotion *::before, html.a11y-nomotion *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}

/* Hoher Kontrast */
html.a11y-contrast, html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast :where(body *:not(img):not(svg):not(video):not(iframe)) {
  background-color: #000 !important; color: #fff !important; border-color: #fff !important;
  box-shadow: none !important; text-shadow: none !important;
}
html.a11y-contrast a, html.a11y-contrast a * { color: #ffeb3b !important; }
html.a11y-contrast .fa, html.a11y-contrast i, html.a11y-contrast .cmv-ic::before { color: #ffeb3b !important; }
html.a11y-contrast .btn, html.a11y-contrast .btn * { background-color: #ffeb3b !important; color: #000 !important; border-color: #fff !important; }
html.a11y-contrast .btn-outline-primary, html.a11y-contrast .btn-outline-primary * { background-color: #000 !important; color: #ffeb3b !important; border-color: #ffeb3b !important; }
html.a11y-contrast a:focus-visible, html.a11y-contrast button:focus-visible, html.a11y-contrast .btn:focus-visible { outline: 3px solid #ffeb3b !important; }
html.a11y-contrast .container-header .metismenu > li.active > a::before, html.a11y-contrast .container-header .metismenu > li:hover > a::before { background: #ffeb3b !important; }
html.a11y-contrast .a11y-open, html.a11y-contrast .a11y-open i { background-color: #ffeb3b !important; color: #000 !important; }
html.a11y-contrast .a11y-panel { border: 2px solid #ffeb3b !important; }
html.a11y-contrast .a11y-toggle[aria-pressed="true"], html.a11y-contrast .a11y-toggle[aria-pressed="true"] * { background-color: #ffeb3b !important; color: #000 !important; }
html.a11y-contrast .a11y-slider-toggle, html.a11y-contrast .a11y-slider-toggle i { background-color: #ffeb3b !important; color: #000 !important; }
html.a11y-contrast .cmv-facts .cmv-fact, html.a11y-contrast .cmv-card h3 { border-color: #fff !important; }
html.a11y-contrast .container-header .brand-logo img { background-color: #fff !important; padding: 4px 10px; border-radius: 2px; }

/* nur für Screenreader sichtbar */
.cmv-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cmv-pdfnote { font-size: .95rem; color: var(--cmv-muted); margin: 0 0 1rem; }

/* Cookie-Hinweis */
.cmv-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10001; background: rgb(0, 0, 102); color: #fff; padding: 16px 20px; display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 15px; line-height: 1.5; }
.cmv-cookie p { margin: 0; max-width: 62em; }
.cmv-cookie a { color: #fff; text-decoration: underline; }
.cmv-cookie button { background: #fff; color: rgb(0, 0, 102); border: 0; border-radius: 4px; padding: 10px 24px; font: inherit; font-weight: 600; cursor: pointer; }
.cmv-cookie button:focus-visible, .cmv-cookie a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Handy: Barrierefreiheits-Knopf kleiner und am Rand, damit er weniger Inhalt verdeckt */
@media (max-width: 575px) {
  .a11y-wrap { right: 10px; bottom: 104px; }
  .a11y-open { width: 48px; height: 48px; font-size: 26px; border-width: 2px; }
  .a11y-panel { bottom: 58px; }
}
