/* =========================================================
   DIBOsafe · Version 3
   Farbwelt: Logo-Grün #008300 · Flyer-Grün #92D050
   ========================================================= */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #008300;          /* Logo */
  --green-600: #007000;
  --green-800: #0b4a12;
  --green-950: #06180a;
  --lime: #92d050;           /* Flyer-Tabellen */
  --green-50: #f0f7ee;
  --green-100: #e0efdc;

  --ink: #0f1511;
  --ink-2: #2b332e;
  --muted: #5b6560;
  --line: #dde2dc;
  --line-2: #eceeea;
  --paper: #f7f8f5;
  --white: #ffffff;
  --gray-logo: #8a8a94;
  --alarm: #d92d20;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 21, 17, .06);
  --shadow: 0 1px 2px rgba(15, 21, 17, .05), 0 12px 32px -12px rgba(15, 21, 17, .18);
  --shadow-lg: 0 2px 4px rgba(15, 21, 17, .04), 0 40px 80px -30px rgba(6, 24, 10, .35);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-600); }
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px;
  font: 500 1rem/1 var(--font); letter-spacing: -0.005em;
  border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 20px -8px rgba(0, 131, 0, .6); }
.btn-primary:hover { background: var(--green-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; color: var(--green); }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow.on-dark { color: var(--lime); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(247, 248, 245, .82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(247, 248, 245, .92); }
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand img { height: 50px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: .94rem; font-weight: 450; text-decoration: none; transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); background: rgba(15, 21, 17, .05); }
.main-nav a.is-active { color: var(--green); }
.nav-phone { display: none !important; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.header-phone-text { display: grid; gap: 3px; line-height: 1.2; }
.header-phone-number { font-size: .75rem; font-weight: 400; }
.header-phone svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 12px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .25s, top .25s; }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px);
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(146, 208, 80, .18), transparent 70%),
    radial-gradient(40% 50% at 10% 0%, rgba(0, 131, 0, .07), transparent 70%),
    var(--paper);
}
.hero::before { /* feines Technik-Raster */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 60% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 70% 40%, #000 20%, transparent 75%);
  opacity: .7;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 7px 14px 7px 10px; margin-bottom: 28px; line-height: 1.3;
  font: 500 .8rem/1 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--green-800);
  background: var(--white); border: 1px solid var(--green-100); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0, 131, 0, .15); animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 50% { box-shadow: 0 0 0 7px rgba(0, 131, 0, 0); } }
.hero h1 { font-size: clamp(3rem, 1.6rem + 5vw, 6rem); hyphens: manual; letter-spacing: -0.04em; line-height: 1.02; font-weight: 600; }
.hero h1 .accent { display: block; color: var(--green); }
.lead { margin-top: 24px; max-width: 56ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 0; margin-top: 48px; border-top: 1px solid var(--line); }
.hero-proof li { flex: 1 1 120px; padding: 18px 20px 0 0; }
.hero-proof li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-proof strong { display: block; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.hero-proof span { font-size: .85rem; color: var(--muted); }

/* ---------- Loop Demo (Signatur) ---------- */
.loop-demo {
  margin: 0; position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.loop-head, .loop-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.loop-head { border-bottom: 1px solid var(--line-2); }
.loop-foot { border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.loop-id { white-space: nowrap; font: 500 .78rem/1 var(--mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.loop-status { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--green-50); color: var(--green-800); font: 500 .8rem/1 var(--mono); transition: background .3s, color .3s; }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.loop-stage { padding: clamp(14px, 3vw, 28px); background: linear-gradient(180deg, #fafbf9, #f1f3ef); cursor: crosshair; }
.loop-svg { width: 100%; height: auto; display: block; overflow: visible; }
.screw { fill: #d7dbd4; stroke: #c3c8c0; }
.terminal rect { fill: #fff; stroke: #b9beb6; }
.trace-groove { fill: none; stroke: #c9cec6; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.trace { fill: none; stroke: #3a423d; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.pulse, .pulse-glow {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 60 940; stroke-dashoffset: 1000;
  animation: current 5.5s linear infinite;
}
.pulse { stroke: var(--green); stroke-width: 3.2; }
.pulse-glow { stroke: var(--lime); stroke-width: 10; opacity: .75; }
@keyframes current { to { stroke-dashoffset: 0; } }
.breach { opacity: 0; pointer-events: none; }
.breach-ring { fill: rgba(217, 45, 32, .12); stroke: var(--alarm); stroke-width: 1.5; }
.breach-hole { fill: #1b1f1c; stroke: var(--alarm); stroke-width: 2; }
.loop-meter { display: flex; gap: 28px; }
.loop-meter dt { font-size: .74rem; color: var(--muted); }
.loop-meter dd { font-size: .95rem; color: var(--ink); font-weight: 500; }

.loop-demo.is-alarm .trace { stroke: var(--alarm); }
.loop-demo.is-alarm .pulse, .loop-demo.is-alarm .pulse-glow { animation-play-state: paused; opacity: 0; transition: opacity .2s; }
.loop-demo.is-alarm .loop-status { background: #fdecea; color: #9b1c13; }
.loop-demo.is-alarm .led { background: var(--alarm); box-shadow: 0 0 12px var(--alarm); animation: blink .5s steps(2) infinite; }
.loop-demo.is-alarm .breach { opacity: 1; }
.loop-demo.is-alarm .breach-ring { animation: ripple 1.2s ease-out infinite; transform-origin: center; transform-box: fill-box; }
.loop-demo.is-alarm .loop-stage { background: linear-gradient(180deg, #fff8f7, #f9eeec); }
@keyframes blink { 50% { opacity: .25; } }
@keyframes ripple { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* ---------- Trust ---------- */
.trust { background: var(--white); border-block: 1px solid var(--line); }
.trust-inner { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); padding-block: 24px; }
.vds-link { flex: none; display: block; border-radius: 8px; transition: opacity .2s; }
.vds-link:hover { opacity: .85; }
.trust .vds { height: 64px; width: auto; }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; flex: 1; }
.trust-list li { font-size: .86rem; color: var(--muted); line-height: 1.4; padding-left: 16px; border-left: 2px solid var(--green); }
.trust-list b { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); }
.section-tint { background: var(--white); border-block: 1px solid var(--line-2); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.section-head .muted { font-size: 1.08rem; }
.kicker { font: 500 .8rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; }
.muted { color: var(--muted); }

/* Definition (GEO answer block) */
.definition {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.definition-text { padding: clamp(28px, 4vw, 48px); }
.definition h3 { font-size: 1.35rem; margin-bottom: 16px; }
.definition p { color: var(--muted); }
.definition p strong { color: var(--ink); font-weight: 600; }
.facts { display: grid; grid-template-columns: 1fr 1fr; background: var(--green-950); color: #dfe9e0; }
.facts div { padding: 22px 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.facts div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.08); }
.facts dt { font: 500 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--lime); margin-bottom: 8px; }
.facts dd { font-weight: 500; color: #fff; overflow-wrap: anywhere; hyphens: auto; }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e7e9e5; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.product:hover .product-media img { transform: scale(1.04); }
.tag { position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92); font: 500 .75rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); backdrop-filter: blur(6px); }
.product-body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; flex: 1; }
.product-body h3 { font-size: 2rem; letter-spacing: -0.03em; }
.product-body > p { color: var(--muted); }
.spec { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-block: 4px 8px; }
.spec div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.spec dt { font-size: .78rem; color: var(--muted); }
.spec dd { font-weight: 600; color: var(--ink); font-feature-settings: "tnum" 1; }
.product-body .link-arrow { margin-top: auto; }

/* Compare */
.compare { margin-top: clamp(64px, 8vw, 104px); }
.compare-title { font-size: 1.6rem; margin-bottom: 24px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare-table { min-width: 620px; }
.compare-table th, .compare-table td { padding: 14px 20px; text-align: center; border-bottom: 1px solid var(--line-2); }
.compare-table thead th { font-size: .82rem; font-weight: 500; color: var(--muted); background: var(--paper); vertical-align: bottom; }
.compare-table tbody th { text-align: left; font-weight: 500; color: var(--ink); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th:first-child, .compare-table tbody th { text-align: left; }
.compare-table .is-us { background: var(--green-50); }
.compare-table thead .is-us { background: var(--green); color: #fff; font-weight: 600; }
.compare-table td { font-size: 0; }
.compare-table td::before { font-size: 1rem; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 700; }
.compare-table td.y::before { content: "✓"; color: var(--green); background: var(--green-100); }
.compare-table td.n::before { content: "–"; color: #9aa29d; }
.compare-table td.u::before { content: "k.A."; width: auto; font-size: .78rem; font-weight: 500; color: #9aa29d; }
.compare-table td.is-us.y::before { background: var(--green); color: #fff; }
.fineprint { font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* ---------- Branchen (dark) ---------- */
.section-dark {
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(0, 131, 0, .35), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(146, 208, 80, .12), transparent 70%),
    var(--green-950);
  color: #c5d2c8;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .kicker { color: var(--lime); }
.section-dark .muted { color: #9fb0a4; }
/* ---------- Leistungen ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { position: relative; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .3s, box-shadow .3s, transform .3s; overflow: hidden; }
.feature::after { content: ""; position: absolute; left: 32px; right: 32px; top: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.feature:hover { border-color: var(--green-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature:hover::after { transform: scaleX(1); }
.feature > .feature-icon { display: block; width: 40px; height: 40px; max-width: 40px; object-fit: contain; margin-bottom: 28px; }
.feature h3 { font-size: 1.25rem; margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: .96rem; }

/* ---------- Konzept ---------- */
.concept { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; margin-bottom: clamp(48px, 6vw, 80px); }
.concept-text h2 { margin-bottom: 24px; }
.concept-text p + p { margin-top: 16px; color: var(--muted); }
.concept-lead { font-size: 1.12rem; color: var(--ink-2); }
.concept-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: #d9dbe7; box-shadow: var(--shadow-lg); }
.concept-media img { width: 100%; }

/* ---------- Produkte: Details ---------- */
.product-claim { font: 500 .8rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--green) !important; margin-top: -6px; }
.checks { display: grid; gap: 8px; margin-top: 4px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: .96rem; line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23008300' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 10.5 3 3 6-6.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.technik { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 64px); align-items: start; margin-top: clamp(64px, 8vw, 104px); }
.technik-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.technik-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.technik-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.technik-media figcaption { font-size: .85rem; color: var(--muted); padding: 12px 4px 0; background: var(--white); }
.spec-table th, .spec-table td { padding: 15px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.spec-table tr:last-child > * { border-bottom: 0; }
.spec-table th { width: 40%; font-weight: 500; color: var(--muted); font-size: .9rem; }
.spec-table td { color: var(--ink); font-weight: 500; font-size: .94rem; }
.spec-table tr:hover > * { background: var(--green-50); }

/* ---------- Märkte ---------- */
.market-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.market-tabs button {
  font: 500 .92rem/1 var(--font); color: var(--ink-2); cursor: pointer;
  padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  transition: background .2s, color .2s, border-color .2s;
}
.market-tabs button:hover { border-color: var(--ink); }
.market-tabs button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.market { display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.market + .market { margin-top: 16px; }
.js .markets[data-ready] .market + .market { margin-top: 0; }
.market[hidden] { display: none; }
.market-media { position: relative; min-height: 320px; background: var(--ink); }
.market-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.market-body { min-width: 0; overflow-wrap: anywhere; padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.market-body h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -0.02em; margin-bottom: 4px; }
.market-body > p { color: var(--muted); }
.market-body h4 { margin: 10px 0 0; font: 500 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 7px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); }
.js .markets[data-ready] .market { animation: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Profitieren ---------- */
.profit-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.profit-grid h2 { margin-bottom: 32px; }
.profit-text p { color: #c5d2c8; font-size: 1.04rem; }
.profit-text p + p { margin-top: 18px; }
.protect { padding: 32px; border-radius: var(--radius-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.protect h3 { font: 500 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--lime) !important; margin-bottom: 18px; }
.protect li { padding: 12px 0 12px 26px; position: relative; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.protect li:last-child { border-bottom: 0; }
.protect li::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 2px; background: var(--lime); }

/* ---------- Unternehmen ---------- */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-text h2 { margin-bottom: 24px; }
.about-text p + p { margin-top: 16px; color: var(--muted); }
.about-media { margin: 0; }
.about-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-media figcaption { margin-top: 20px; padding: 20px 24px; border-left: 3px solid var(--green); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); }
.about-media figcaption strong { display: block; margin-top: 6px; color: var(--green); font-size: 1.15rem; letter-spacing: .02em; }
.philosophy { margin-top: clamp(64px, 8vw, 104px); max-width: 880px; }

/* ---------- Zertifikate ---------- */
.cert-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.cert-body p + p { margin-top: 16px; color: var(--muted); }
.cert-body strong { color: var(--ink); }
.cert-seal { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.cert-seal:hover { border-color: var(--green); box-shadow: var(--shadow); }
.cert-seal img { width: 100%; max-width: 560px; height: auto; }
.cert-seal span { font-size: .88rem; color: var(--muted); }
.cert-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid > div:first-child { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-grid h2 { margin-bottom: 20px; }
.faq-grid .muted { margin-bottom: 28px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 48px 24px 0; font-size: 1.12rem; font-weight: 500; color: var(--ink); letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  border: 1px solid var(--line);
  background: linear-gradient(var(--ink), var(--ink)) center/12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center/1.5px 12px no-repeat;
  transition: transform .3s, background-color .3s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--green-50); border-color: var(--green-100); }
.faq-list summary:hover { color: var(--green); }
.faq-list details p { padding: 0 48px 26px 0; color: var(--muted); }

/* ---------- Downloads ---------- */
.downloads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.downloads a {
  display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 168px; padding: 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.downloads a:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.dl-type { font: 500 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.dl-name { font-weight: 500; line-height: 1.35; }
.dl-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: var(--muted); }
.dl-meta::after { content: "↓"; font-size: 1rem; color: var(--green); }

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-info h2 { margin-bottom: 20px; }
.contact-card { font-style: normal; margin-top: 36px; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); line-height: 1.7; }
.contact-card strong { color: var(--ink); }
.contact-lines { margin-top: 12px; }
.contact-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact-lines span { color: var(--muted); }
.contact-lines a { font-weight: 500; text-decoration: none; font-size: 1.1rem; }
.contact-lines b { font-weight: 500; color: var(--ink); }
.contact-label { display: block; font: 500 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.form-title { font-size: 1.3rem; margin-bottom: 4px; }
.footer-vds { width: 100%; max-width: 240px; height: auto; margin-top: 16px; border-radius: 8px; }

.contact-frame { display: block; width: 100%; min-width: 0; border: 0; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-lg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a9b3ac; padding-top: clamp(56px, 7vw, 88px); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-brand img { height: 48px; width: auto; background: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 20px; }
.footer-brand p { max-width: 36ch; }
.site-footer h2 { font-size: .78rem; font-family: var(--mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer p + p { margin-top: 12px; }
.site-footer a { color: #d7dfd9; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-bottom ul { display: flex; gap: 24px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-phone .header-phone-number { display: none; }
}
@media (max-width: 1060px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px; box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .main-nav .nav-phone { display: inline-flex !important; justify-content: center; min-height: 44px; margin-top: 12px; padding: 12px 20px; font-weight: 600; color: var(--white); background: var(--green); border: 0; border-radius: var(--radius); }
  .main-nav .nav-phone:hover { color: var(--white); background: var(--green-600); }
  .nav-toggle { display: block; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .loop-demo { max-width: 640px; }
  .trust-inner { flex-direction: column; align-items: flex-start; }
  .trust-list { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .section-head.split { grid-template-columns: 1fr; gap: 16px; }
  .definition { grid-template-columns: minmax(0, 1fr); }
  .faq-grid, .contact-grid, .concept, .about, .technik, .profit-grid, .cert-grid { grid-template-columns: 1fr; }
  .faq-grid > div:first-child, .technik-intro { position: static; }
  .features { grid-template-columns: 1fr 1fr; }
  .market { grid-template-columns: minmax(0, 1fr); }
  .market-media { aspect-ratio: 16/9; min-height: 0; }
  .downloads { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .eyebrow { font-size: .7rem; }
  .loop-head { padding: 12px 14px; }
  .loop-id { font-size: .7rem; }
  .loop-status { font-size: .72rem; padding: 5px 10px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .header-actions .header-phone { display: inline-flex; padding: 10px; font-size: .75rem; min-height: 44px; }
  .header-phone svg { display: none; }
  .brand img { height: 36px; }

  .hero-proof { flex-direction: column; }
  .hero-proof li, .hero-proof li + li { flex: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .hero-proof strong { font-size: 1.2rem; }
  .hero-proof span { text-align: right; font-size: .82rem; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div:nth-child(odd) { border-right: 0; }
  .loop-meter { gap: 18px; }
  .loop-foot .btn { width: 100%; }
  .products { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .market-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .market-tabs::-webkit-scrollbar { display: none; }
  .market-tabs button { flex: none; }
  .spec { grid-template-columns: 1fr; }
  .spec div:nth-child(even) { padding-left: 0; border-left: 0; }
  .downloads { grid-template-columns: 1fr; }
  .downloads a { min-height: 0; }
  .field-row { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .faq-list summary { font-size: 1.02rem; }
  .faq-list details p { padding-right: 0; }
}

/* Mobile comparison cards and stacked technical values */
@media (max-width: 720px) {
  .compare, .technik, .technik > * { min-width: 0; }
  .compare .table-scroll, .technik .table-scroll { overflow: visible; border: 0; background: transparent; }
  .compare-table, .spec-table { display: block; min-width: 0; width: 100%; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .compare-table tbody, .spec-table tbody { display: grid; gap: 12px; }
  .compare-table tbody tr, .spec-table tr { display: block; min-width: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); }
  .compare-table tbody th { display: block; padding: 14px 16px; background: var(--paper); font-size: .95rem; overflow-wrap: anywhere; }
  .compare-table tbody td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; text-align: left; }
  .compare-table tbody td::after { content: attr(data-label); font-size: .88rem; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
  .compare-table tbody td::before { order: 1; flex: 0 0 26px; }
  .compare-table tbody tr:last-child > th, .compare-table tbody tr:last-child > td { border-bottom: 1px solid var(--line-2); }
  .compare-table tbody tr > td:last-child { border-bottom: 0; }
  .spec-table th, .spec-table td { display: block; width: 100%; border: 0; overflow-wrap: anywhere; }
  .spec-table th { padding: 14px 16px 5px; font-size: .85rem; }
  .spec-table td { padding: 0 16px 16px; font-size: .95rem; line-height: 1.6; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .pulse, .pulse-glow { stroke-dasharray: none; stroke-dashoffset: 0; opacity: .5; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Kraftwerk: Bildausschnitt nach oben verschieben. */
#m-kraft .market-media img { object-position: center top; }

/* Einsatzbereiche: einheitliches Bildformat nur auf Mobilgeräten. */
@media (max-width: 720px) {
  .market-media {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
    overflow: hidden;
    isolation: isolate;
  }
  .market-media img { object-fit: cover; object-position: center; }
  #m-med .market-media {
    --mobile-image-backdrop: url("assets/optimized/Schrank_8047-ohne-683x1024-640.webp");
    background: var(--white);
  }
  #m-med .market-media::before {
    content: "";
    position: absolute;
    inset: -20px;
    background-image: var(--mobile-image-backdrop);
    background-position: center;
    background-size: cover;
    filter: blur(16px);
    opacity: .55;
    pointer-events: none;
  }
  #m-kraft .market-media img {
    object-fit: cover;
    object-position: center 15%;
  }
  #m-med .market-media img {
    object-fit: contain;
    object-position: center;
    padding: 0;
    z-index: 1;
  }
}
