/* cpdemo-web 1.1.0 / cpdemo-layout 1.0.0 – Komponenten der consentprobe-Demo im Stil von www.consilom.com.
   Tokens, Schriften, Kopf, Fuss und Knoepfe kommen aus site.css (erzeugt aus der Hauptseite); hier nur Seitenbausteine.
   Rot und Gruen werden nie fuer Messergebnisse verwendet; Amber/Petrol/Navy sind rein dekorativ. */

.pa { overflow-x: clip; }
.pa a:not(.btn) { text-underline-offset: 3px; }
.pa :target, #messen, #beispiel { scroll-margin-top: 96px; }
.pa h1, .pa h2, .pa h3 { text-wrap: balance; }
.arcs { position: absolute; pointer-events: none; }
.dm-hero :focus-visible, .dm-kopf :focus-visible, .dm-cta :focus-visible, .op .cta :focus-visible, .op footer :focus-visible { outline-color: var(--c-amber); }

/* ---------- Abschnitte ---------- */
.dm-sec { padding-block: var(--sec); }
.dm-mist { background: var(--swp-mist); }
.dm-h2, .dm-bsp-t h2 { font-size: clamp(28px, 3.6vw, 48px); letter-spacing: -.034em; line-height: 1.04; }
.dm-h2 { margin-bottom: clamp(28px, 3.5vw, 48px); }
.dm-act { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.dm-schmal { max-width: 820px; }
.dm-breit { max-width: 1000px; }
.dm-weiter { margin-top: 32px; }

/* ---------- Hero (Landingpage) ---------- */
.dm-hero { position: relative; background: var(--c-navy); color: #fff; overflow: hidden; }
.dm-hero .arcs { right: -200px; top: -300px; width: 640px; height: 640px; opacity: .14; }
.dm-hero .wrap { position: relative; z-index: 1; }
.dm-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 4.4vw, 72px); align-items: center; padding-top: clamp(40px, 5vw, 76px); padding-bottom: clamp(40px, 4.4vw, 64px); }
.dm-hero .eyebrow, .dm-kopf .eyebrow { color: var(--c-petrol-light); }
.dm-hero h1 { margin: 18px 0 22px; font-size: clamp(34px, 4.6vw, 62px); letter-spacing: -.04em; line-height: 1; color: #fff; }
.dm-hero h1 em { font-style: normal; color: var(--c-amber); }
.dm-hero .lead { color: rgba(255, 255, 255, .84); max-width: 54ch; }
.dm-hero-v { justify-self: end; width: 100%; max-width: 470px; }
.dm-kartenrahmen { position: relative; background: #fff; border-radius: var(--r-lg); padding: 14px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); transform: rotate(1.6deg); }
.dm-badge { position: absolute; left: -22px; bottom: 26px; z-index: 2; background: var(--c-amber); color: var(--c-navy); border-radius: 16px; padding: 11px 16px 12px; display: flex; flex-direction: column; gap: 1px; box-shadow: 0 24px 50px -24px rgba(2, 47, 70, .6); transform: rotate(-1.6deg); }
.dm-badge b { font-family: var(--font-display); font-size: 24px; letter-spacing: -.03em; line-height: 1; }
.dm-badge span { font-size: 12.5px; line-height: 1.2; }

/* Seiten des Beispiel-Onepagers (PNG 794 x 2245 = zwei A4-Seiten untereinander; nie verzerren: height:auto) */
.dm-seite { position: relative; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--swp-line); aspect-ratio: 794 / 1123; }
.dm-seite img { display: block; width: 100%; height: auto; max-width: none; }
.dm-seite-2 img { margin-top: -141.4%; }
.dm-seite-hero { aspect-ratio: 794 / 940; }
.dm-seite-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 24%; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); }

/* Faktenleiste im Hero-Fuss */
.dm-fakten { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .16); }
.dm-fakten li { display: flex; gap: 12px; align-items: flex-start; padding: 24px clamp(12px, 1.6vw, 26px) 30px 0; font-size: 15px; line-height: 1.45; }
.dm-fakten li + li { padding-left: clamp(12px, 1.6vw, 26px); border-left: 1px solid rgba(255, 255, 255, .14); }
.dm-fakten .tk { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--c-amber); color: var(--c-navy); display: grid; place-items: center; margin-top: 1px; }
.dm-fakten b { display: block; font-family: var(--font-display); font-size: 17px; letter-spacing: -.01em; color: #fff; margin-bottom: 3px; }
.dm-fakt-t { display: block; color: rgba(255, 255, 255, .82); }

/* ---------- Beispiel ---------- */
.dm-bsp { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.dm-bsp-t h2 { margin-top: 16px; }
.dm-bsp-t .lead { margin-top: 16px; max-width: 44ch; }
.dm-seiten { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px); align-items: start; }
.dm-seiten .dm-seite { border-radius: 6px; box-shadow: 0 30px 60px -34px rgba(2, 47, 70, .55), 0 0 0 1px var(--swp-line); }
.dm-seiten .dm-seite-2 { margin-top: clamp(18px, 3vw, 44px); }

/* ---------- Ablauf ---------- */
.dm-schritte { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 3vw, 44px); margin: 0; padding: 0; list-style: none; }
.dm-schritte::before { content: ""; position: absolute; left: 6%; right: 6%; top: 62px; height: 2px; background: linear-gradient(90deg, var(--c-petrol), var(--c-amber)); opacity: .5; }
.dm-schritt { position: relative; z-index: 1; background: var(--swp-mist); border-radius: var(--r-lg); padding: 30px 28px 32px; }
.dm-nr { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c-navy); color: var(--c-amber); font-family: var(--font-display); font-weight: 700; font-size: 26px; margin-bottom: 22px; }
.dm-schritt h3 { font-size: 22px; letter-spacing: -.025em; margin-bottom: 8px; }
.dm-schritt p { color: var(--swp-slate); }

/* ---------- Formular ---------- */
.dm-formkarte { background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4.2vw, 56px); box-shadow: 0 40px 80px -50px rgba(2, 47, 70, .45), 0 0 0 1px var(--swp-line); }
.dm-form { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 0 clamp(28px, 4.4vw, 64px); }
.dm-form-l h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.034em; margin-bottom: 14px; }
.dm-intro { color: var(--swp-slate); }
.dm-form-l > label { display: block; font-weight: 600; margin: 24px 0 8px; }
.dm-form input[type=text], .dm-form input[type=email] { width: 100%; padding: 15px 16px; font: inherit; font-size: 16px; color: var(--c-navy); background: #fff; border: 1.5px solid #6b8594; border-radius: 12px; }
.dm-form input[type=text]:focus, .dm-form input[type=email]:focus { outline: 3px solid var(--c-petrol); outline-offset: 2px; border-color: var(--c-petrol-text); }
.hinweis { color: var(--swp-slate); font-size: 14.5px; line-height: 1.55; margin-top: 10px; }
.dm-form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 14.5px; line-height: 1.55; color: var(--swp-slate); margin: 22px 0 0; }
.check input { margin-top: 3px; width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--c-navy); }
.check.aus input { opacity: .5; cursor: not-allowed; }
altcha-widget { display: block; margin-top: 24px; --altcha-max-width: 100%; --altcha-border-radius: 12px; --altcha-border-width: 1.5px; --altcha-color-border: #6b8594; --altcha-color-text: var(--c-navy); --altcha-color-base: #fff; }
.dm-form-r { background: var(--swp-mist); border-radius: var(--r-md); padding: clamp(22px, 2.8vw, 34px); }
.messen { font-size: 15px; line-height: 1.6; color: var(--swp-slate); }
.messen p + p { margin-top: .8em; }
.wichtig { background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--c-amber); padding: 16px 20px; margin: 22px 0; font-size: 15px; line-height: 1.55; }
.dm-form-r .hinweis { font-size: 13.5px; margin-top: 0; }
.dm-form-act { grid-column: 1 / -1; margin-top: clamp(24px, 3vw, 36px); padding-top: clamp(22px, 3vw, 30px); border-top: 1px solid var(--swp-line); display: flex; }
.dm-form-act .btn { font-size: 16px; }
#meldung { margin-top: 24px; }
#meldung:empty { display: none; }

/* Texte mit Links (Platzhalter, die zu Adressen werden) */
.pa p a:not(.btn), .check a, .dm-hin dd a { color: var(--c-petrol-text); text-decoration: underline; }
.pa .dm-cta p a:not(.btn) { color: var(--c-amber); }

/* ---------- Meldungen und Status ---------- */
.dm-box { background: var(--swp-mist); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 34px); margin: 0 0 22px; box-shadow: inset 5px 0 0 var(--c-amber); }
.dm-box p + p { margin-top: .7em; }
.dm-box.fehler { box-shadow: inset 5px 0 0 #b3372a; }
.dm-box .dm-act { margin-top: 20px; }
.dm-zeit { color: var(--swp-slate); font-size: 14.5px; margin-top: 16px; }
.dm-kz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0 4px; padding: 0; list-style: none; }
.dm-kz li { background: #fff; border-radius: var(--r-md); padding: 16px 18px 18px; }
.dm-kz b { display: block; font-family: var(--font-display); font-size: clamp(36px, 4vw, 48px); line-height: 1; letter-spacing: -.04em; }
.dm-kz span { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.dm-einwand { margin: 24px 0 8px; padding-top: 22px; border-top: 1px solid var(--swp-line); }
.dm-schmal + .dm-cta { margin-top: clamp(28px, 4vw, 56px); }

.dm-flow { display: flex; margin: 0 0 30px; padding: 0; list-style: none; }
.dm-flow li { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-right: 10px; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--swp-faint); }
.dm-flow li::before { content: ""; position: absolute; left: 46px; right: 8px; top: 18px; height: 2px; background: var(--swp-line); }
.dm-flow li:last-child::before { display: none; }
.dm-flow-pkt { position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--swp-line); font-family: var(--font-display); font-weight: 700; color: var(--swp-faint); }
.dm-flow .fertig { color: var(--c-navy); }
.dm-flow .fertig::before { background: var(--c-amber); }
.dm-flow .fertig .dm-flow-pkt { background: var(--c-amber); box-shadow: none; color: var(--c-navy); }
.dm-flow .aktiv, .dm-flow .fehler { color: var(--c-navy); }
.dm-flow .aktiv .dm-flow-pkt { background: var(--c-navy); box-shadow: none; color: #fff; }
.dm-flow .fehler .dm-flow-pkt { background: #b3372a; box-shadow: none; color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .dm-flow .aktiv .dm-flow-pkt { animation: dm-puls 1.9s ease-in-out infinite; }
}
@keyframes dm-puls { 0%, 100% { box-shadow: 0 0 0 0 rgba(32, 158, 187, .55); } 60% { box-shadow: 0 0 0 12px rgba(32, 158, 187, 0); } }

/* ---------- Seitenkopf (Status, Hinweise) ---------- */
.dm-kopf { position: relative; background: var(--c-navy); color: #fff; overflow: hidden; }
.dm-kopf .arcs { right: -220px; top: -300px; width: 600px; height: 600px; opacity: .13; }
.dm-kopf-in { position: relative; z-index: 1; padding-block: clamp(36px, 5vw, 68px); }
.dm-kopf h1 { margin-top: 16px; font-size: clamp(30px, 4.2vw, 56px); letter-spacing: -.04em; line-height: 1.02; color: #fff; overflow-wrap: anywhere; }
.dm-h1-k { display: block; font-size: .42em; letter-spacing: -.01em; font-weight: 600; color: var(--c-petrol-light); margin-bottom: .5em; }

/* ---------- Hinweise-Seite ---------- */
.dm-hinweise { margin: 0; }
.dm-hin { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 8px 40px; padding: 26px 0; border-top: 1px solid var(--swp-line); }
.dm-hin:last-child { border-bottom: 1px solid var(--swp-line); }
.dm-hin dt { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.02em; line-height: 1.2; }
.dm-hin dd { margin: 0; color: var(--swp-slate); font-size: 17px; line-height: 1.65; }
.dm-hin.betont { background: var(--swp-mist); border-top-color: transparent; border-radius: 0 var(--r-md) var(--r-md) 0; box-shadow: inset 6px 0 0 var(--c-amber); padding: 26px 28px; margin: 6px 0; }
.dm-hin.betont dd { color: var(--c-navy); }

/* ---------- Band "Mehr als eine Demo?" / Kontakt ---------- */
.dm-cta { position: relative; overflow: hidden; background: var(--c-navy); color: #fff; border-radius: var(--r-lg); padding: clamp(30px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; align-items: center; }
.dm-cta .arcs { right: -150px; top: -200px; width: 520px; height: 520px; opacity: .13; }
.dm-cta-t, .dm-cta-act { position: relative; z-index: 1; }
.dm-cta h2 { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.034em; color: #fff; margin-bottom: 12px; }
.dm-cta p { color: rgba(255, 255, 255, .86); max-width: 62ch; font-size: clamp(16px, 1.25vw, 18px); }

/* ---------- haftende Leiste (mobil, nur Landingpage) ---------- */
.dm-sticky { display: none; }

/* ---------- Fuss: Fassungsangabe (klein, abgesetzt) ---------- */
.ftr-fassung { padding-bottom: 22px; }
.ftr-fassung p { font-size: 12px; color: rgba(255, 255, 255, .6); text-align: right; }

/* ---------- HTML-Ansicht des Onepagers (ergebnis.php) ---------- */
.op-bg { background: #e9f0f4; padding-block: clamp(24px, 4vw, 56px) clamp(44px, 6vw, 88px); }
.op-werkzeuge { display: flex; gap: 12px; flex-wrap: wrap; max-width: 920px; margin: 0 auto 24px; }
.op { --op-pad: clamp(20px, 4.6vw, 56px); }
.op .page { position: relative; max-width: 920px; margin: 0 auto 32px; background: #fff; border-radius: var(--r-lg); box-shadow: 0 34px 70px -44px rgba(2, 47, 70, .5); padding: calc(var(--op-pad) * .7 + 8px) var(--op-pad) 0; overflow: hidden; font-size: 16px; line-height: 1.55; }
.op .bar { position: absolute; left: 0; top: 0; width: 100%; height: 8px; display: flex; }
.op .bar i { display: block; height: 100%; }
.op .bar .a { background: var(--c-amber); width: 22%; }
.op .bar .p { background: var(--c-petrol); width: 18%; }
.op .bar .n { background: var(--c-navy); flex: 1; }
.op header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.op header img { display: none; }
.op .tag { margin-left: auto; font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-petrol-text); }
.op h1 { font-size: clamp(28px, 4.2vw, 46px); letter-spacing: -.04em; line-height: 1.04; margin-top: 14px; overflow-wrap: anywhere; }
.op h1.h1-2 { font-size: clamp(22px, 2.8vw, 30px); }
.op .sub { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--swp-faint); }
.op .key { margin-top: 28px; background: var(--swp-mist); box-shadow: inset 6px 0 0 var(--c-amber); border-radius: 0 var(--r-md) var(--r-md) 0; padding: clamp(20px, 2.6vw, 30px) clamp(20px, 3vw, 34px); }
.op .key .lbl { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--c-petrol-text); }
.op .key p { margin: 8px 0 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 2vw, 23px); line-height: 1.33; letter-spacing: -.015em; }
.op .kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.op .kpi { position: relative; overflow: hidden; background: var(--swp-mist); border-radius: var(--r-md); padding: 30px 22px 26px; }
.op .kpi::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c-petrol); }
.op .kpi.nv::before { background: var(--c-navy); }
.op .kpi.am::before { background: var(--c-amber); }
.op .kpi .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 5vw, 60px); line-height: 1; letter-spacing: -.045em; }
.op .kpi .t { margin-top: 12px; font-weight: 600; font-size: 16px; line-height: 1.3; }
.op .kpi .d { margin-top: 8px; color: var(--swp-slate); font-size: 14.5px; line-height: 1.5; }
.op .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.op .cols > div { background: #fff; border-radius: var(--r-md); padding: 22px 24px; box-shadow: inset 0 0 0 1.5px var(--swp-line); }
.op h2 { display: flex; align-items: center; gap: 12px; font-size: 19px; letter-spacing: -.025em; line-height: 1.2; margin: 0 0 12px; }
.op h2::before { content: ""; flex: 0 0 22px; height: 5px; border-radius: 3px; background: var(--c-amber); }
.op .p2 > h2 { margin-top: 28px; }
.op ul { margin: 0; padding-left: 20px; list-style: disc; }
.op li { margin-bottom: 7px; overflow-wrap: anywhere; }
.op li::marker { color: var(--c-petrol); }
.op li.more { list-style: none; color: var(--swp-faint); margin-left: -20px; }
.op .small { font-size: 15.5px; color: var(--swp-slate); line-height: 1.6; margin: 0; }
.op .hint { margin-top: 18px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--c-amber); padding: 18px 22px; font-size: 15.5px; }
.op .cta { margin-top: 16px; background: var(--c-navy); color: #fff; border-radius: var(--r-md); padding: 20px 24px; }
.op .cta b { color: var(--c-amber); }
.op .cta a { color: var(--c-amber); text-decoration: underline; text-underline-offset: 3px; }
.op .note { margin-top: 16px; font-size: 14px; color: var(--swp-faint); }
.op .note b { color: var(--c-navy); }
.op .note.einwand { font-size: 14.5px; color: var(--swp-slate); line-height: 1.5; } /* Konstantin A3: Einwand-Hinweis nicht kleiner/blasser als Kennzahl-Erlaeuterungen (cpdemo-web 1.2.0) */
.op .sub a, .op .note a, .op .text a, .op .small a, .op .hint a, .op .fuss33 a { color: var(--c-petrol-text); text-decoration: underline; text-underline-offset: 3px; }
.op .text { margin: 6px 0 0; background: var(--swp-mist); border-radius: var(--r-md); padding: 20px 24px; font-size: 15.5px; line-height: 1.65; color: var(--swp-slate); }
.op .fuss33 { margin-top: 6px; font-size: 15.5px; line-height: 1.65; }
.op .fuss33 p + p { margin-top: 12px; }
.op footer { margin: 32px calc(var(--op-pad) * -1) 0; padding: 20px var(--op-pad); background: var(--c-navy); color: #fff; display: flex; justify-content: space-between; gap: 8px 28px; flex-wrap: wrap; font-size: 13px; line-height: 1.5; }
.op footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.op footer .r { color: #c2d0e0; text-align: right; }

/* ---------- schmale Bildschirme ---------- */
@media (max-width: 1000px) {
  .dm-hero-grid, .dm-bsp { grid-template-columns: minmax(0, 1fr); }
  .dm-hero-v { justify-self: center; max-width: 400px; }
  .dm-kartenrahmen, .dm-badge { transform: none; }
  .dm-badge { left: 10px; bottom: 14px; }
  .dm-form { grid-template-columns: minmax(0, 1fr); gap: 28px 0; }
  .dm-form-act { margin-top: 4px; }
  .dm-cta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .dm-fakten { grid-template-columns: minmax(0, 1fr); }
  .dm-fakten li, .dm-fakten li + li { padding-left: 0; border-left: 0; }
  .dm-fakten li + li { border-top: 1px solid rgba(255, 255, 255, .14); }
  .dm-schritte { grid-template-columns: minmax(0, 1fr); }
  .dm-schritte::before { display: none; }
  .dm-seiten { grid-template-columns: minmax(0, 1fr); }
  .dm-seiten .dm-seite-2 { display: none; }
  .dm-hero-v { max-width: 340px; }
  .dm-act .btn, .dm-form-act .btn { flex: 1 1 auto; justify-content: space-between; }
  .dm-hin { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .dm-hin.betont { padding: 22px; }
  .dm-kz { grid-template-columns: minmax(0, 1fr); }
  .dm-flow li { font-size: 13px; }
  .dm-flow li::before { left: 42px; }
  .op-bg > .wrap { padding-left: 12px; padding-right: 12px; }
  .op { --op-pad: 18px; }
  .op .kpis, .op .cols { grid-template-columns: minmax(0, 1fr); }
  .op footer { flex-direction: column; }
  .op footer .r { text-align: left; }
  .ftr-fassung p { text-align: left; }
  .dm-sticky:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--swp-line); box-shadow: 0 -12px 30px -22px rgba(2, 47, 70, .5); }
  .dm-sticky .btn { width: 100%; justify-content: space-between; }
  .hat-sticky .totop { display: none; }
}

/* ---------- Druck (HTML-Ansicht): ohne Kopf, Fuss und Werkzeugleiste ---------- */
@media print {
  .hdr, .ftr, .totop, .c-progress, .skip-link, .op-werkzeuge, .dm-sticky { display: none !important; }
  .op-bg { background: #fff; padding: 0; }
  .op .page { box-shadow: none; border-radius: 0; break-after: page; margin: 0 auto; }
}
