/* =====================================================================
 * cdp-theme.css — CDPCMS Theme „cdpshop“ | Layout nach cdpguard.com
 * Version : 1.10.0 2026-10-06 — Certthor Platforms Ltd.
 * Infos   : CDP Corporate ID: Schrift Navy #15224e, Hero und Band Logo-Blau #2f435b,
 *           ein Rot #c40000 (Buttons, Kartenrand oben, Hover), Hellgrau #f4f6f9, Linien #dbe2ea.
 *           Seitenbreite 1440 px, 16 px Rand. Keine Rundungen, Links ohne Unterstrich.
 * ===================================================================== */

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("/core/assets/fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("/core/assets/fonts/roboto-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --ink: #15224e;
  --paper: #ffffff;
  --paper-2: #f4f6f9;
  --paper-3: #eaeef4;
  --line: #dbe2ea;
  --line-strong: #c3ccd9;
  --blue: #2f435b;
  --accent: #c40000;
  --accent-strong: #a30000;
  --on-accent: #ffffff;
  --site-width: 1440px;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  /* Farben für das Cookie-Fenster (cookie/cdp-cookie.js) */
  --cc-surface: #ffffff; --cc-ink: #15224e; --cc-ink-muted: #15224e; --cc-line: #dbe2ea; --cc-bar: #f4f6f9;
  --cc-accent: #c40000; --cc-on-accent: #ffffff; --cc-deny-bg: #c40000; --cc-deny-fg: #ffffff;
  --cc-custom-bg: #eaeef4; --cc-custom-fg: #15224e; --cc-allow-bg: #198754; --cc-allow-fg: #ffffff;
  --cc-font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Scrollbalken: Schiene Rot, Schieber Navy, ohne Farbwechsel (Chrome/Edge nur ::-webkit-scrollbar, Firefox scrollbar-color) */
@supports not selector(::-webkit-scrollbar) { html { scrollbar-width: thin; scrollbar-color: #15224e #c40000; } }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-track:hover, ::-webkit-scrollbar-corner { background: #c40000; }
::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background: #15224e; border: 2px solid #c40000; }

body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
main { flex: 1 0 auto; }
.site-header, .notice-band, .site-footer { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.shell { width: min(100% - 32px, var(--site-width) - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 12px 16px; color: #fff; background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* ---- Kopf ---------------------------------------------------------- */
.site-header { position: sticky; z-index: 100; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand-logo { width: auto; height: 100px; max-width: none; margin: 6px 0; }
.primary-nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { position: relative; display: block; padding: 26px 0; font-size: 15px; font-weight: 700; }
.primary-nav a::after { content: ""; position: absolute; right: 0; bottom: 14px; left: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.primary-nav a:hover { color: var(--accent); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.primary-nav .nav-cta { padding: 11px 18px; color: var(--on-accent); background: var(--accent); }
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { color: var(--on-accent); background: var(--accent-strong); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); }

/* ---- Hero ---------------------------------------------------------- */
.page-hero { position: relative; isolation: isolate; padding: 84px 0 72px; color: #fff; background: var(--blue); }
.page-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to right, transparent, #000 55%); }
.page-hero .eyebrow { color: #fff; }
.page-hero h1 { max-width: 900px; margin: 0; font-size: clamp(36px, 5vw, 58px); font-weight: 700; line-height: 1.06; letter-spacing: -1px; text-wrap: balance; }
.page-hero .lead { max-width: 720px; margin: 20px 0 0; color: #fff; font-size: clamp(17px, 1.6vw, 20px); }
.page-hero--compact { padding: 56px 0 48px; }
.page-hero--compact h1 { font-size: clamp(30px, 3.6vw, 44px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }

.button, .button-primary, .btn-cdp-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; font-size: 15px; font-weight: 700; cursor: pointer; }
.button--primary, .button-primary, .btn-cdp-primary { color: var(--on-accent); background: var(--accent); }
.button--primary:hover, .button-primary:hover, .btn-cdp-primary:hover { color: var(--on-accent); background: var(--accent-strong); }
.button--ghost { color: #fff; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }
.button--ghost:hover { border-color: #fff; background: rgba(255,255,255,.14); }

/* ---- Abschnitte ---------------------------------------------------- */
.section, .page-section { padding: 72px 0; }
.page-section { width: min(100% - 32px, var(--site-width) - 32px); margin-inline: auto; }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-heading { max-width: 760px; margin: 0 0 34px; }
.section-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.section-heading p { margin: 12px 0 0; }

.card-tag { display: inline-block; padding: 4px 9px; background: var(--paper-3); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* Produkte */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-bottom: 3px solid var(--ink); }
.product-card__image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; flex: 1; }
.product-card__body .card-tag { align-self: flex-start; }
.product-card h3 { margin: 4px 0 0; font-size: 20px; }
.product-card p { margin: 0; }
.product-card__price { margin-top: auto !important; padding-top: 8px; font-size: 22px; font-weight: 700; }

/* Grundsätze */
.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.principle { padding-left: 18px; border-left: 3px solid var(--accent); }
.principle h3 { margin: 0 0 8px; font-size: 18px; }
.principle p { margin: 0; }

/* Band über dem Fuß */
.notice-band { padding: 40px 0; color: #fff; background: var(--blue); }
.notice-band .shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.notice-band h2 { margin: 0 0 6px; font-size: 24px; }
.notice-band p { margin: 0; }

/* Fließtext, Rechtsseiten und Seiten aus CDPCMS */
.prose, .site-legal { max-width: 960px; }
.site-legal { margin: 0 auto; padding: 56px 16px 72px; }
.prose h2, .site-legal h2 { margin: 34px 0 12px; font-size: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3, .site-legal h3 { margin: 26px 0 10px; font-size: 18px; }
.prose p, .site-legal p, .prose ul, .site-legal ul { margin: 0 0 14px; }
.prose a, .site-legal a, .inline-link { color: var(--accent); font-weight: 700; }
.prose a:hover, .site-legal a:hover { color: var(--accent-strong); }
.site-legal h1, .page-section h1 { margin: 0 0 20px; font-size: clamp(30px, 3.6vw, 44px); }

/* Blog-Übersicht aus CDPCMS */
.site-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.site-card { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-bottom: 3px solid var(--ink); }
.site-card h3 { margin: 16px 16px 4px; font-size: 19px; }
.site-card h3 a:hover { color: var(--accent); }
.site-card__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cms-columns__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }

/* Fehlerseiten (components/error/error.php) */
.error-hero { padding-top: 0; }
.error-picture img { width: 100%; max-height: 560px; object-fit: cover; }
.error-hero .shell { padding-top: 40px; }

/* ---- Kontaktformular ----------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.contact-layout h2 { margin-top: 0; }
.contact-meta { display: grid; gap: 20px; margin-top: 26px; }
.contact-meta div { padding-top: 14px; border-top: 1px solid var(--line); }
.contact-meta strong { display: block; font-size: 14px; }
.contact-meta a { color: var(--accent); font-weight: 700; font-size: 14px; }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 28px; border: 1px solid var(--line); background: var(--paper); }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; margin: 0; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 13px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 0; background: var(--paper); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--accent); }
.field textarea { min-height: 168px; resize: vertical; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.form-check input { margin-top: 4px; }
.form-check a { color: var(--accent); font-weight: 700; }
.form-errors, .form-success { grid-column: 1 / -1; margin: 0; padding: 16px; border-left: 4px solid var(--accent); background: var(--paper-2); }
.form-success { border-left-color: #198754; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* ---- Fuß ----------------------------------------------------------- */
.site-footer { padding: 56px 0 26px; background: var(--paper-2); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.footer-logo { width: 320px; max-width: 100%; }
.footer-brand p { margin: 12px 0 0; font-size: 14px; }
.footer-grid h2 { margin: 0 0 12px; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { font-size: 14px; }
.footer-grid a:hover, .footer-base .inline-link:hover { color: var(--accent); }
.footer-base { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--accent); }
.footer-base p { margin: 0; font-size: 13px; }
.footer-base .inline-link { color: var(--ink); }
.footer-base .ctpf-cookie-open { appearance: none; display: inline; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.footer-base .ctpf-cookie-open:hover { color: var(--accent); }
.footer-base .ctpf-cookie-open .icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; }

/* ---- Schmale Ansichten --------------------------------------------- */
@media (max-width: 1024px) {
  .product-grid, .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .header-inner { position: relative; min-height: 76px; }
  .brand-logo { height: 64px; margin: 4px 0; }
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; top: 76px; right: -16px; left: -16px; display: none; padding: 12px 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .primary-nav a::after { display: none; }
  .primary-nav .nav-cta { margin-top: 12px; text-align: center; }
  .contact-layout { grid-template-columns: 1fr; gap: 34px; }
  .cms-columns__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding: 56px 0 46px; }
  .section, .page-section { padding: 48px 0; }
  .product-grid, .site-grid, .principle-grid, .footer-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 20px; }
  .field { grid-column: 1 / -1; }
  .notice-band .shell { flex-direction: column; align-items: flex-start; }
}
@media print {
  .site-header, .menu-toggle, .site-footer, .notice-band, .hero-cta { display: none; }
  .page-hero { color: #111; background: #fff; }
}
