/* Target - Messtechnik – Designsystem
   Logo und Header-Blau (#004389) unverändert aus der bisherigen Seite. */

:root {
  --blue: #004389;
  --blue-700: #00366e;
  --blue-900: #001f42;
  --blue-50: #eef4fb;
  --blue-100: #dbe7f5;
  --cyan: #4ec3e3;            /* Akzent der alten Seite, nur auf Blau */
  --ink: #16191f;
  --text: #2c3340;
  --muted: #5d6676;
  --line: #e2e7ef;
  --surface: #f5f7fb;
  --white: #fff;
  --brand: #004389;           /* Header-Blau – in beiden Modi unverändert */
  --bg: #fff;
  --card: #fff;
  --photo: #fff;              /* Kacheln hinter Produktfotos mit weißem Hintergrund */
  --photo-2: #eef2f8;
  --accent: #004389;          /* Blau für Text, Icons, Linien */
  --btn: #004389;             /* Blau für Flächen (Buttons, aktive Chips) */
  --btn-hover: #00366e;
  --danger-bg: #fdecea;
  --success-bg: #e6f4ec;
  --mark: #fff1a8;
  --toast-bg: #16191f;
  color-scheme: light;
  --red: #b3261e;
  --green: #1c7c4a;

  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Display", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / .06), 0 1px 3px rgb(16 24 40 / .08);
  --shadow: 0 2px 4px rgb(16 24 40 / .04), 0 12px 32px -8px rgb(16 24 40 / .14);
  --shadow-lg: 0 24px 64px -16px rgb(0 31 66 / .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
  --container: 1200px;
}

*, *::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: 400 1rem/1.65 var(--font);
  color: var(--text);
  background: var(--card);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
svg { width: 1em; height: 1em; flex: none; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-700); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.15rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 650; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue-100); }
[hidden] { display: none !important; }
.grid > *, .split > *, .hero .container > *, .page-hero .container > *, .device > *, .offer > *, .event > *, .cta > * { min-width: 0; }
body { overflow-wrap: break-word; hyphens: auto; }
.legal a, .prose a, .note a { overflow-wrap: anywhere; }
/* Auf Flächen im Firmenblau wäre der blaue Fokusrahmen unsichtbar (hell: #004389 auf #004389) */
.site-header :focus-visible, .drawer-head :focus-visible, .drawer-foot :focus-visible, .mobile-bar :focus-visible,
.cta :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
.site-header .mega :focus-visible { outline-color: var(--accent); } /* Mega-Menü ist eine helle Karte */
h1[tabindex="-1"]:focus { outline: none; }
kbd { font: 600 .72rem/1 var(--font); padding: .25em .45em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--card); color: var(--muted); }

.container { width: min(var(--container), 100% - 2rem); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--card); padding: .6rem 1rem; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand);
  color: var(--white);
  transition: box-shadow .25s var(--ease);
}
.site-header.scrolled { box-shadow: 0 8px 24px -12px rgb(0 0 0 / .45); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); width: min(1320px, 100% - 2rem); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: .85rem; color: var(--white); text-decoration: none; flex: none; }
.brand:hover { color: var(--white); }
.brand img { height: 45px; width: auto; }
.brand-name { font: 600 1.3rem/1 var(--font-display); letter-spacing: -.01em; white-space: nowrap; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.main-nav a, .main-nav button {
  position: relative; display: flex; align-items: center; gap: .35rem;
  padding: .55rem .85rem; border: 0; border-radius: 999px; background: none;
  color: rgb(255 255 255 / .88); font-weight: 500; font-size: .95rem; text-decoration: none;
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav button:hover, .main-nav button[aria-expanded="true"] { background: rgb(255 255 255 / .12); color: var(--white); }
.main-nav a[aria-current="page"], .main-nav button.active { color: var(--white); }
.main-nav a[aria-current="page"]::after, .main-nav button.active::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--cyan);
}
.main-nav button svg { font-size: .8rem; transition: transform .2s; }
.main-nav button[aria-expanded="true"] svg { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: .35rem; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 .65rem; border: 0; border-radius: 999px;
  background: rgb(255 255 255 / .1); color: var(--white); font-size: 1.15rem; transition: background .2s;
}
.icon-btn:hover { background: rgb(255 255 255 / .2); }
.kbd-hint { font-size: .72rem; font-weight: 600; opacity: .75; letter-spacing: .02em; }
.count-badge {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--cyan); color: var(--blue-900); font: 700 .72rem/20px var(--font); text-align: center;
  animation: pop .35s var(--ease);
}
@keyframes pop { from { transform: scale(.4); } 60% { transform: scale(1.2); } }
.menu-toggle { display: none; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.theme-toggle svg { transition: transform .4s var(--ease); }
.theme-toggle:hover svg { transform: rotate(-20deg); }
.drawer .drawer-theme { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem .9rem; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-weight: 550; text-align: left; }
.drawer .drawer-theme:hover { background: var(--blue-50); }
.drawer .drawer-theme .switch-ui { width: 42px; height: 24px; border-radius: 12px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.drawer .drawer-theme .switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
:root[data-theme="dark"] .drawer .drawer-theme .switch-ui { background: var(--btn); }
:root[data-theme="dark"] .drawer .drawer-theme .switch-ui::after { transform: translateX(18px); }

/* Mega-Menü "Produkte" */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--card); color: var(--text); box-shadow: var(--shadow-lg);
  border-top: 1px solid rgb(255 255 255 / .1);
  animation: drop .22s var(--ease);
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; padding: 1.5rem 0 1.75rem; }
.mega-item { display: flex; gap: 1rem; align-items: center; padding: .75rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); transition: background .2s; }
.mega-item:hover, .mega-item:focus-visible { background: var(--blue-50); color: var(--text); }
.mega-item .thumb { width: 72px; height: 56px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; overflow: hidden; flex: none; }
.mega-item .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.mega-item strong { display: block; font-size: .98rem; }
.mega-item span { font-size: .85rem; color: var(--muted); }

/* ---------------- Drawer (mobil) ---------------- */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-backdrop, .palette-backdrop, .sheet-backdrop { position: absolute; inset: 0; background: rgb(0 20 45 / .5); backdrop-filter: blur(3px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--card); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; animation: slide-in .28s var(--ease); }
@keyframes slide-in { from { transform: translateX(100%); } }
/* Kopf im Firmenblau – wie der Seiten-Header */
.drawer-head {
  position: sticky; top: 0; z-index: 1; flex: none;
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  padding: calc(.85rem + env(safe-area-inset-top)) .85rem .85rem 1.1rem;
  background: var(--brand); color: #fff; box-shadow: 0 6px 16px -10px rgb(0 20 45 / .6);
}
.drawer .drawer-head .brand { display: flex; align-items: center; gap: .6rem; padding: .25rem; border-radius: 10px; min-width: 0; }
.drawer .drawer-head .brand:hover { background: rgb(255 255 255 / .1); }
.drawer-head .brand img { height: 34px; }
.drawer-head .brand-name { color: #fff; font-size: 1rem; }
.drawer-head .icon-btn { background: rgb(255 255 255 / .14); color: #fff; }
.drawer-head .icon-btn:hover { background: rgb(255 255 255 / .24); }
.drawer ul { list-style: none; margin: 0; padding: .6rem .75rem; flex: 1 0 auto; }
.drawer a { display: block; padding: .8rem .9rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 550; transition: background .15s, color .15s; }
.drawer ul a:hover { background: var(--blue-50); color: var(--accent); }
/* aktive Seite als blaue Fläche */
.drawer ul a[aria-current="page"] { background: var(--btn); color: #fff; box-shadow: 0 6px 14px -8px rgb(0 67 137 / .7); }
.drawer .sub a { padding-left: 1.8rem; font-weight: 450; color: var(--text); }
.drawer .sub a[aria-current="page"] { color: #fff; font-weight: 600; }
.drawer .group-label { display: flex; align-items: center; gap: .5rem; padding: 1.1rem .9rem .35rem; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.drawer .group-label::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: currentColor; }
/* Kontaktkarte im Firmenblau */
.drawer-foot {
  flex: none; display: grid; gap: .1rem; margin: .25rem .75rem calc(.85rem + env(safe-area-inset-bottom));
  padding: .9rem .6rem .6rem; border-radius: 14px; background: var(--brand); color: #fff;
}
.drawer-foot-label { padding: 0 .5rem .35rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: rgb(255 255 255 / .7); }
.drawer .drawer-foot a { display: flex; align-items: center; gap: .65rem; min-height: 44px; padding: .5rem; color: #fff; font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.drawer .drawer-foot a:hover { background: rgb(255 255 255 / .12); color: #fff; }
.drawer-foot svg { font-size: 1.15rem; flex: none; opacity: .9; }

/* ---------------- Seitenwechsel ---------------- */
#main { outline: none; min-height: 60vh; }
/* Seitenwechsel: nur Einblendung des neuen Inhalts – blockiert keine Klicks, schnelles Wechseln bleibt möglich */
.view { animation: view-in .3s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------------- Bausteine ---------------- */
.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section.tight { padding-top: 0; }
.section.alt { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font: 650 .8rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 680px; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.3rem; border-radius: 999px;
  border: 1.5px solid transparent; font-weight: 600; font-size: .97rem; text-decoration: none; line-height: 1.2;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--btn); color: var(--white); box-shadow: 0 6px 16px -6px rgb(0 67 137 / .55); }
.btn-primary:hover { background: var(--btn-hover); color: var(--white); box-shadow: 0 10px 22px -8px rgb(0 67 137 / .6); }
.btn-ghost { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { color: var(--blue-700); box-shadow: var(--shadow); }
.btn-outline-light { border-color: rgb(255 255 255 / .45); color: var(--white); }
.btn-outline-light:hover { background: rgb(255 255 255 / .12); color: var(--white); }
.btn svg { font-size: 1.1em; transition: transform .2s; }
.btn:hover svg.go { transform: translateX(3px); }
.btn.added { background: #1c7c4a; color: #fff; border-color: #1c7c4a; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .65rem; border-radius: 999px; font: 700 .72rem/1 var(--font); letter-spacing: .05em; text-transform: uppercase; background: var(--blue-50); color: var(--accent); }
.badge.new { background: var(--danger-bg); color: var(--red); }
.badge.past { background: var(--surface); color: var(--muted); }
.badge.soon { background: var(--success-bg); color: var(--green); }

.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s; }
.card.hover:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--blue-100); }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.split.top { align-items: start; }

.prose { max-width: 72ch; }
.prose p { color: var(--text); }

/* Bild mit Rahmen */
.media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--photo); }
.media img { width: 100%; height: 100%; object-fit: contain; }
.media.cover img { object-fit: cover; }
.media.pad img { padding: clamp(1rem, 3vw, 2rem); }
.zoomable { cursor: zoom-in; }
.zoomable::after {
  content: ""; position: absolute; right: .75rem; bottom: .75rem; width: 34px; height: 34px; border-radius: 50%;
  background: rgb(255 255 255 / .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%23004389' stroke-width='2'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6' stroke='%23004389' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat;
  box-shadow: var(--shadow-sm); opacity: 0; transform: scale(.8); transition: .2s var(--ease);
}
.zoomable:hover::after, .zoomable:focus-visible::after { opacity: 1; transform: none; }
img.lazy { opacity: 0; transition: opacity .5s; }
img.lazy.loaded { opacity: 1; }
figure { margin: 0; }
figcaption { font-size: .88rem; color: var(--muted); padding-top: .65rem; }

/* Check-Liste */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: .15em; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23004389' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.checklist.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }

/* Feature-Kacheln */
.feature { padding: 1.5rem; }
.feature .ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-50); color: var(--accent); font-size: 1.45rem; margin-bottom: 1rem; }
.feature h3 { font-size: 1.07rem; margin-bottom: .35rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Spezifikations-Tabelle */
.spec { width: 100%; border-collapse: collapse; font-size: .96rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.spec th { width: 38%; color: var(--muted); font-weight: 550; }
.spec td { color: var(--ink); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec-card { padding: .5rem .25rem; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--blue-50) 0%, var(--bg) 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgb(0 67 137 / .09) 1px, transparent 0);
  background-size: 22px 22px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: clamp(3rem, 2rem + 5vw, 6rem) 0 clamp(3rem, 2rem + 4vw, 5rem); }
.hero h1 { margin-bottom: 1.1rem; }
.hero .en { margin-top: 1.5rem; font-size: .85rem; color: var(--muted); letter-spacing: .01em; }
.hero-visual { position: relative; aspect-ratio: 1 / .9; }
.hero-visual .tile {
  position: absolute; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 1rem; overflow: hidden;
  transition: transform .6s var(--ease); will-change: transform;
}
.hero-visual .tile img { width: 100%; height: 100%; object-fit: contain; }
.hero-visual .t1 { left: 0; top: 6%; width: 58%; height: 56%; }
.hero-visual .t2 { right: 0; top: 0; width: 40%; height: 40%; }
.hero-visual .t3 { right: 4%; bottom: 0; width: 50%; height: 50%; }
.hero-visual .t4 { left: 8%; bottom: 2%; width: 34%; height: 32%; }

.page-hero { background: linear-gradient(180deg, var(--blue-50), var(--bg)); }
.page-hero .container { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.page-hero.with-media .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.page-hero .media { aspect-ratio: 4 / 3; background: var(--photo); box-shadow: var(--shadow); }
/* Porträt (Über uns): Hochformat, dezent statt bildfüllend */
.page-hero .media.portrait { display: block; aspect-ratio: 4 / 5; width: 100%; max-width: 240px; margin-left: auto; }
.page-hero .media.portrait img { object-position: 50% 20%; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: .88rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* News-Banner */
.news {
  display: flex; align-items: center; gap: 1.25rem; padding: 1.1rem 1.4rem; border-radius: var(--radius);
  background: var(--btn); color: var(--white); text-decoration: none; box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.news:hover { color: var(--white); }
.news::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / .14) 50%, transparent 60%); transform: translateX(-100%); animation: shine 4.5s 1s infinite; }
@keyframes shine { 30%, 100% { transform: translateX(100%); } }
.news .badge { background: var(--cyan); color: var(--blue-900); }
.news strong { color: var(--white); display: block; font-size: 1.05rem; }
.news span.t { color: rgb(255 255 255 / .82); font-size: .93rem; }
.news svg.go { margin-left: auto; font-size: 1.4rem; transition: transform .2s; }
.news:hover svg.go { transform: translateX(4px); }

/* Produktkarten */
.product-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--text); }
.product-card:hover { color: var(--text); }
.product-card .media { aspect-ratio: 4 / 3; border-radius: 0; background: linear-gradient(180deg, var(--photo), var(--photo-2)); }
.product-card .media img { padding: 1.25rem; transition: transform .5s var(--ease); }
.product-card:hover .media img { transform: scale(1.05); }
.product-card .body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.product-card h3 { margin: 0; font-size: 1.12rem; }
.product-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.product-card .more { margin-top: auto; padding-top: .6rem; display: inline-flex; align-items: center; gap: .35rem; color: var(--accent); font-weight: 600; font-size: .92rem; }
.product-card .badge { position: absolute; top: .9rem; left: .9rem; z-index: 1; }

/* Partner-Leiste */
.partner-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.partner { display: flex; gap: 1.1rem; align-items: center; padding: 1.25rem; text-decoration: none; color: var(--text); }
.partner:hover { color: var(--text); }
.partner .logo { width: 96px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--photo); border: 1px solid var(--line); overflow: hidden; }
.partner .logo img { width: auto; height: auto; max-width: 86%; max-height: 80%; object-fit: contain; }
.partner strong { display: block; }
.partner span { font-size: .88rem; color: var(--muted); }

/* CTA-Band */
.cta {
  position: relative; overflow: hidden; border-radius: 24px; padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  background: radial-gradient(120% 140% at 100% 0%, #0a5bb0 0%, var(--blue) 45%, var(--blue-900) 100%); color: var(--white);
  display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center;
}
.cta h2 { color: var(--white); margin-bottom: .4rem; }
.cta p { color: rgb(255 255 255 / .82); margin: 0; }
.cta .btn-row { margin: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { padding: 1.4rem 1.25rem; text-align: left; }
.stat b { display: block; font: 750 clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem)/1 var(--font-display); color: var(--accent); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: .9rem; color: var(--muted); }

/* Tabs */
.tabs { display: inline-flex; gap: .25rem; padding: .3rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 2rem; position: relative; flex-wrap: wrap; }
.tab { position: relative; z-index: 1; border: 0; background: none; text-decoration: none; padding: .6rem 1.15rem; border-radius: 999px; font-weight: 600; font-size: .94rem; color: var(--muted); transition: color .2s; }
.tab[aria-selected="true"] { color: var(--white); }
.tab-ink { position: absolute; z-index: 0; top: .3rem; bottom: .3rem; border-radius: 999px; background: var(--btn); transition: left .35s var(--ease), width .35s var(--ease); }

/* Akkordeon */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem .25rem; cursor: pointer; font-weight: 600; color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { transition: transform .25s var(--ease); color: var(--accent); }
.acc details[open] summary svg { transform: rotate(180deg); }
.acc .acc-body { padding: 0 .25rem 1.25rem; }
.acc ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.acc li::marker { color: var(--accent); }

/* Geräte (Gebrauchtgeräte, Sputter-Modelle) */
.device { display: grid; grid-template-columns: 380px 1fr; gap: 0; overflow: hidden; }
.device + .device { margin-top: 1.5rem; }
.device-media { background: linear-gradient(180deg, var(--photo), var(--photo-2)); padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.device-media .media { aspect-ratio: 1; background: var(--photo); }
.device-media .thumbs { display: flex; gap: .5rem; }
.device-media .thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--photo); }
.device-media .thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.device-media .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.device-body { padding: 1.75rem 2rem 2rem; }
.device-body .type { font-size: .85rem; color: var(--muted); font-weight: 550; }
.device-body h3 { font-size: 1.5rem; margin: .25rem 0 .6rem; }
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 1.25rem 0 1.25rem; }
.keyfacts div { background: var(--surface); border-radius: 12px; padding: .75rem .85rem; }
.keyfacts dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.keyfacts dd { margin: .2rem 0 0; font-weight: 650; color: var(--ink); font-size: .98rem; }

/* Sputter-Modelle */
.model-tabs { position: sticky; top: calc(var(--header-h) + .75rem); z-index: 5; }
.model { scroll-margin-top: calc(var(--header-h) + 90px); }
.model .media { aspect-ratio: 4/3; background: linear-gradient(180deg, var(--photo), var(--photo-2)); }
.model .media img { padding: 1.5rem; }
.model-name { display: flex; align-items: center; gap: .75rem; }
.model-name h2 { margin: 0; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.model .tagline { font-size: 1.12rem; color: var(--muted); margin: .4rem 0 1.25rem; }
.scope { margin-top: 1.25rem; padding: .9rem 1.1rem; border-radius: 12px; background: var(--blue-50); font-size: .93rem; }
.scope b { color: var(--accent); }
.mini-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; margin-top: .75rem; }
.mini-gallery .media { aspect-ratio: 1; }
.mini-gallery .media img { padding: 0; object-fit: cover; }

/* Vergleichstabelle */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm); }
.compare { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.compare th, .compare td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); transition: background .15s; }
.compare thead th { position: sticky; top: 0; background: var(--card); font: 700 1.05rem/1.2 var(--font-display); color: var(--ink); border-bottom: 2px solid var(--line); }
.compare tbody th { color: var(--muted); font-weight: 550; width: 22%; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare .col-hl { background: var(--blue-50); }
.compare.only-diff tr.same { display: none; }
.compare tbody th, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); }
.compare thead th:first-child { z-index: 2; }
.compare [data-col] { cursor: pointer; }
.compare td.diff { color: var(--ink); font-weight: 600; }
.compare-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: .65rem; font-size: .93rem; font-weight: 550; cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 12px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--btn); }
.switch input:checked::after { transform: translateX(18px); }

/* Schallschutz – Modellfinder */
.finder-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: .5rem .95rem; font-size: .9rem; font-weight: 550; color: var(--text); transition: .2s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--btn); border-color: var(--accent); color: var(--white); }
.chip .n { opacity: .65; margin-left: .3rem; font-variant-numeric: tabular-nums; }
.search-field { position: relative; flex: 0 1 280px; }
.search-field input { width: 100%; padding: .65rem 1rem .65rem 2.4rem; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; font-size: .93rem; background: var(--card); transition: border-color .2s, box-shadow .2s; }
.search-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--blue-50); }
.search-field svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.model-card { padding: 1.25rem 1.25rem 1.1rem; display: flex; flex-direction: column; gap: .65rem; animation: view-in .35s var(--ease) both; }
.model-card .top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.model-card .id { font: 750 1.35rem/1 var(--font-display); color: var(--accent); letter-spacing: -.02em; }
.model-card .id small { font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-right: .3rem; }
.model-card p { margin: 0; font-size: .93rem; }
.dims { display: flex; gap: .4rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.dims span { background: var(--surface); padding: .25rem .55rem; border-radius: 6px; }
.size-bar { height: 6px; border-radius: 3px; background: var(--surface); overflow: hidden; }
.size-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--accent)); transform-origin: left; animation: grow .8s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.model-card .add { margin-top: auto; align-self: flex-start; border: 0; background: none; padding: .35rem 0; color: var(--accent); font-weight: 600; font-size: .9rem; display: inline-flex; gap: .35rem; align-items: center; }
.model-card .add:hover { text-decoration: underline; }
.model-card .add.added { color: var(--green); }
.empty { padding: 2rem; text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery .media { aspect-ratio: 4 / 3; }
.gallery .media img { object-fit: cover; }
.gallery.contain .media img { object-fit: contain; padding: .75rem; }

/* Zeitleiste */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue-100), var(--line)); }
.timeline li { position: relative; padding: 0 0 1.5rem 2.75rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.timeline .when { font-size: .82rem; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.05rem; margin: .15rem 0 .1rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .92rem; }
.timeline button.link { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; font-size: .88rem; margin-top: .3rem; display: inline-flex; align-items: center; gap: .3rem; }
.timeline button.link:hover { text-decoration: underline; }

/* Messen */
.event { display: grid; grid-template-columns: 112px 1fr auto; gap: 1.5rem; padding: 1.5rem; align-items: center; }
.event + .event { margin-top: 1rem; }
.event.past { opacity: .78; }
.date-block { text-align: center; border-radius: 14px; background: var(--btn); color: var(--white); padding: .85rem .5rem; }
.event.past .date-block { background: var(--surface); color: var(--muted); }
.date-block b { display: block; font: 750 1.9rem/1 var(--font-display); }
.date-block span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
.event h3 { margin: .3rem 0 .2rem; }
.event .meta { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-size: .9rem; color: var(--muted); }
.event .meta span { display: inline-flex; align-items: center; gap: .35rem; }
.event .actions { display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; }
.countdown { font-weight: 650; color: var(--green); font-size: .9rem; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.contact-card { padding: 1.5rem; display: flex; flex-direction: column; gap: .4rem; }
.contact-card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--accent); font-size: 1.3rem; margin-bottom: .5rem; }
.contact-card a.big { font-size: 1.08rem; font-weight: 650; text-decoration: none; color: var(--ink); }
.contact-card a.big:hover { color: var(--accent); }
.copy-btn { align-self: flex-start; border: 0; background: none; padding: .2rem 0; min-height: 36px; color: var(--muted); font-size: .85rem; display: inline-flex; gap: .35rem; align-items: center; }
.copy-btn:hover { color: var(--accent); }

/* Video */
.video { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--blue-900); aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.video video, .video .poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.video .poster { border: 0; padding: 0; background: radial-gradient(circle at 50% 40%, #0a5bb0, var(--blue-900)); display: grid; place-items: center; color: var(--white); }
.video .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 2rem; opacity: .35; }
.video .play { position: relative; width: 76px; height: 76px; border-radius: 50%; background: rgb(255 255 255 / .95); color: var(--blue); display: grid; place-items: center; font-size: 2rem; box-shadow: 0 0 0 0 rgb(255 255 255 / .5); animation: pulse 2.2s infinite; transition: transform .2s; }
.video .poster:hover .play { transform: scale(1.08); }
@keyframes pulse { 70% { box-shadow: 0 0 0 22px rgb(255 255 255 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0); } }
.video .vt { position: absolute; left: 1.25rem; bottom: 1rem; right: 1.25rem; font-weight: 600; text-align: left; text-shadow: 0 1px 8px rgb(0 0 0 / .4); }
.video-note { font-size: .85rem; color: var(--muted); margin-top: .6rem; }

/* Rechtstexte */
.legal-layout { display: grid; grid-template-columns: minmax(0, 780px) 260px; gap: 2rem; align-items: start; }
.legal-layout > * { min-width: 0; }
.legal.card { max-width: none; padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); }
.legal > :first-child { margin-top: 0; }
.legal h2 { font-size: 1.2rem; margin: 2rem 0 .6rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .35rem; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 1rem); padding: 1.25rem; font-size: .95rem; }
.legal-nav h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.legal-nav ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .25rem; }
.legal-nav a { display: block; padding: .45rem .7rem; border-radius: 8px; color: var(--text); text-decoration: none; }
.legal-nav a:hover { background: var(--blue-50); color: var(--accent); }
.legal-nav a[aria-current="page"] { background: var(--blue-50); color: var(--accent); font-weight: 600; }
.legal-nav p { margin: 0; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

/* Hinweis-Box */
.note { display: flex; gap: .9rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--blue-50); color: var(--text); font-size: .95rem; }
.note svg { color: var(--accent); font-size: 1.3rem; margin-top: .1rem; }
.offer { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 1.5rem; align-items: center; border: 2px dashed var(--blue-100); background: linear-gradient(135deg, var(--card), var(--blue-50)); }
.offer .media { aspect-ratio: 1; background: var(--photo); }

.copyright-note { font-size: .8rem; color: var(--muted); margin-top: 2.5rem; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--blue-900); color: rgb(255 255 255 / .75); padding: 4rem 0 2rem; font-size: .93rem; }
.site-footer a { color: rgb(255 255 255 / .82); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .75rem; color: var(--white); margin-bottom: 1rem; }
.footer-brand strong { color: var(--white); }
.footer-brand img { height: 38px; width: auto; }
.site-footer h3 { color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .12); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .82rem; color: rgb(255 255 255 / .55); }

/* ---------------- Overlays ---------------- */
.palette { position: fixed; inset: 0; z-index: 90; }
.palette-panel { position: relative; width: min(640px, 100% - 2rem); margin: 12vh auto 0; background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: palette-in .22s var(--ease); }
@keyframes palette-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.palette-input { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); }
.palette-input svg { font-size: 1.25rem; color: var(--muted); }
.palette-input input { flex: 1; border: 0; outline: none; font: inherit; font-size: 1.08rem; color: var(--ink); background: none; }
.palette-input input::-webkit-search-cancel-button { display: none; }
.palette-results { list-style: none; margin: 0; padding: .5rem; max-height: min(56vh, 460px); overflow-y: auto; }
.palette-results li { padding: .7rem .85rem; border-radius: 10px; cursor: pointer; display: flex; gap: .85rem; align-items: center; }
.palette-results li[aria-selected="true"] { background: var(--blue-50); }
.palette-results .kind { flex: none; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); background: var(--card); border: 1px solid var(--blue-100); border-radius: 6px; padding: .2rem .45rem; min-width: 72px; text-align: center; }
.palette-results li > :not(.kind) { min-width: 0; } /* sonst schiebt der einzeilige Auszug (.s) den Titel aus dem Panel */
.palette-results .t { color: var(--ink); font-weight: 600; font-size: .95rem; }
.palette-results .s { display: block; color: var(--muted); font-size: .83rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 470px; }
.palette-results mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }
.palette-results .none { color: var(--muted); cursor: default; justify-content: center; }
.palette-foot { display: flex; gap: 1.25rem; padding: .65rem 1.15rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); background: var(--surface); }
.palette-foot kbd { margin-right: .2rem; }

.sheet { position: fixed; inset: 0; z-index: 85; }
.sheet-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--card); display: flex; flex-direction: column; animation: slide-in .3s var(--ease); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 1.25rem; margin: 0; }
.sheet-head .icon-btn { background: var(--surface); color: var(--ink); }
.sheet-body { padding: 1.5rem; overflow-y: auto; flex: 1; }
.inq-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .5rem; }
.inq-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; padding: .85rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); animation: view-in .25s var(--ease); }
.inq-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.inq-title { font-weight: 600; color: var(--ink); min-width: 0; }
.inq-title small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; margin-top: .1rem; }
.inq-remove { border: 0; background: var(--surface); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.inq-remove:hover { background: var(--danger-bg); color: var(--red); }
.inq-controls { display: flex; gap: .6rem; align-items: center; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; background: var(--card); }
.stepper button { border: 0; background: none; width: 36px; height: 36px; display: grid; place-items: center; color: var(--accent); font-size: 1rem; }
.stepper button:hover:not(:disabled) { background: var(--blue-50); }
.stepper button:disabled { color: var(--line); cursor: default; }
.stepper input { width: 2.6rem; height: 36px; border: 0; background: none; text-align: center; font: inherit; font-weight: 650; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; background: var(--blue-50); }
.stepper:focus-within { border-color: var(--accent); }
.inq-note { flex: 1; width: 0; min-width: 0; height: 38px; padding: 0 .8rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: .9rem; color: var(--ink); background: var(--card); }
.inq-note:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--blue-50); }
.field textarea { background: var(--card); color: var(--ink); }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field textarea { font: inherit; font-size: .95rem; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; resize: vertical; min-height: 110px; }
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--blue-50); }

.lightbox { position: fixed; inset: 0; z-index: 95; background: rgb(0 14 32 / .94); display: grid; grid-template-columns: 84px minmax(0, 1fr) 84px; align-items: center; animation: fade .2s; touch-action: pan-y; }
/* feste Spalten: Bild bleibt mittig, auch wenn die Pfeile bei nur einem Bild ausgeblendet sind */
.lb-prev { grid-column: 1; grid-row: 1; justify-self: center; }
.lb-next { grid-column: 3; grid-row: 1; justify-self: center; }
.lb-figure { grid-column: 2; grid-row: 1; min-width: 0; margin: 0; display: grid; justify-items: center; gap: .9rem; padding: 4rem 0 2rem; max-height: 100vh; }
.lb-figure img { max-width: min(100%, 1400px); max-height: 80vh; object-fit: contain; border-radius: 10px; background: var(--photo); animation: lb-in .3s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } }
.lb-figure figcaption { color: rgb(255 255 255 / .85); text-align: center; max-width: 70ch; padding: 0 1rem; }
.lb-btn { border: 0; width: 52px; height: 52px; border-radius: 50%; background: rgb(255 255 255 / .1); color: var(--white); display: grid; place-items: center; font-size: 1.5rem; margin: 0 1rem; transition: background .2s; }
.lb-btn:hover { background: rgb(255 255 255 / .22); }
.lb-close { position: absolute; top: 1rem; right: 0; }

.toasts { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 99; display: grid; gap: .5rem; justify-items: center; pointer-events: none; width: min(460px, calc(100% - 2rem)); }
.toast { background: var(--toast-bg); color: var(--white); padding: .75rem 1.15rem; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .93rem; display: flex; gap: .6rem; align-items: center; animation: toast-in .3s var(--ease); pointer-events: auto; }
.toast svg { color: var(--cyan); }
.toast.out { animation: toast-out .25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--card); color: var(--accent); box-shadow: var(--shadow); display: grid; place-items: center; padding: 0; animation: fade .25s; }
.to-top .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke: var(--line); stroke-width: 3; }
.to-top .ring-progress { stroke: var(--accent); stroke-dasharray: 132; stroke-dashoffset: 132; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.to-top .arrow { font-size: 1.3rem; position: relative; }

/* Beim Scrollen einblenden */
/* nur mit JavaScript ausblenden – im vorgerenderten HTML ohne JS bleibt alles sichtbar (SEO, Barrierefreiheit) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px var(--cyan); } }


/* ---------------- Dunkelmodus ----------------
   Header und Footer behalten das Firmenblau, Produktfotos stehen auf hellen Kacheln. */
:root[data-theme="dark"] {
  --bg: #0d1219;
  --card: #151c26;
  --surface: #111821;
  --line: #263142;
  --ink: #eef2f8;
  --text: #c8d1de;
  --muted: #8f9bad;
  --blue-50: #13243a;
  --blue-100: #1e3a5d;
  --accent: #7cb7ff;
  --btn: #1a5fae;
  --btn-hover: #2370c7;
  --photo: #e9edf3;
  --photo-2: #dce3ec;
  --red: #ff8a80;
  --green: #5fd394;
  --danger-bg: #3a1917;
  --success-bg: #14301f;
  --mark: #5a4b00;
  --toast-bg: #26303e;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
  --shadow: 0 2px 4px rgb(0 0 0 / .3), 0 12px 32px -8px rgb(0 0 0 / .55);
  --shadow-lg: 0 24px 64px -16px rgb(0 0 0 / .7);
  color-scheme: dark;
}
:root[data-theme="dark"] .hero::before { background-image: radial-gradient(circle at 1px 1px, rgb(124 183 255 / .08) 1px, transparent 0); }
:root[data-theme="dark"] .checklist li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%237cb7ff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .site-footer { background: #0a1626; }
:root[data-theme="dark"] .gallery .media img, :root[data-theme="dark"] .product-card .media img { filter: brightness(.96); }
:root[data-theme="dark"] .news { background: linear-gradient(105deg, #004389, #0a3a6e); }
:root[data-theme="dark"] .palette-results mark { color: #fff; }
/* sanfter Wechsel zwischen den Modi */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease !important;
}

/* ---------------- Responsiv ---------------- */
@media (max-width: 1279px) {
  .kbd-hint { display: none; }
}
@media (max-width: 1140px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .grid-4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .device { grid-template-columns: 1fr; }
  .device-media .media { aspect-ratio: 16 / 10; }
}
@media (max-width: 860px) {
  .hero .container, .page-hero.with-media .container, .split, .cta, .offer { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; width: 100%; justify-self: center; }
  .page-hero .media.portrait { max-width: 160px; margin-left: 0; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; order: -1; padding: 0; background: none; border: 0; box-shadow: none; }
  .legal-nav h2, .legal-nav p { display: none; }
  .legal-nav ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
  .legal-nav a { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-size: .9rem; }
  .grid-3, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3.feature-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partner-strip { grid-template-columns: 1fr; }
  .grid-2, .checklist.cols { grid-template-columns: 1fr; }
  .keyfacts { grid-template-columns: repeat(2, 1fr); }
  .event { grid-template-columns: 84px 1fr; }
  .event .actions { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .kbd-hint { display: none; }
  .mega { display: none !important; }
}
.mobile-bar { display: none; }

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .site-header .theme-toggle { display: none; } /* auf dem Handy im Menü */
  .site-header .inquiry-btn { display: none; }  /* auf dem Handy nur unten in der Schnellkontakt-Leiste */
  .stepper button { width: 42px; height: 42px; }
  .stepper input { height: 42px; }
  .inq-note { height: 44px; }
  .inq-remove { width: 40px; height: 40px; }
  .brand-name { font-size: 1.05rem; }
  .brand img { height: 38px; }
  .icon-btn { min-width: 42px; height: 42px; }
  .grid-4, .grid-3, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 2.75rem 0; }
  .section-head { margin-bottom: 1.5rem; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; }

  /* Hero-Collage kompakter */
  .hero .container { gap: 2rem; padding-bottom: 2rem; }
  .hero-visual { aspect-ratio: 1 / .72; max-width: 100%; }
  .hero-visual .t4 { display: none; }

  /* Produktkarten zweispaltig statt untereinander */
  .product-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .product-card .media img { padding: .6rem; }
  .product-card .body { padding: .75rem .8rem .9rem; }
  .product-card h3 { font-size: .98rem; }
  .product-card p { font-size: .82rem; line-height: 1.4; }
  .product-card .more { font-size: .84rem; }
  .product-card .badge { top: .5rem; left: .5rem; }

  /* Kachelreihen zum Wischen statt endlos stapeln */
  .feature-row {
    display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 1rem;
    margin: 0 -1rem; padding: .25rem 1rem 1rem; scrollbar-width: none;
  }
  .feature-row::-webkit-scrollbar { display: none; }
  .feature-row, .compare-wrap, .tabs { min-width: 0; max-width: 100%; }
  .feature-row > * { flex: 0 0 78%; scroll-snap-align: start; }
  .feature-row .feature { padding: 1.2rem; }

  /* Filter-Chips als wischbare Leiste */
  .finder-bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .finder-bar > * { min-width: 0; }  /* sonst erzwingt die Chip-Leiste ihre volle Breite auf die Seite */
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -1rem; padding: 0 1rem .25rem; scrollbar-width: none; min-width: 0; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .search-field { flex: 1 1 auto; }
  .contact-card a.big { min-height: 44px; display: flex; align-items: center; }
  .copy-btn { min-height: 44px; }
  .switch { min-height: 44px; }
  .models { grid-template-columns: 1fr; }
  /* Modelltabelle (Vakuumpumpen) gestapelt */
  .variants thead { display: none; }
  .variants tr { display: grid; grid-template-columns: auto 1fr; gap: .15rem 1rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
  .variants tr:last-child { border-bottom: 0; }
  .variants td { padding: 0; border: 0; }
  .variants td:nth-child(2) { text-align: right; color: var(--accent); font-weight: 600; }
  .variants td:nth-child(3) { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }

  /* Tabs über volle Breite */
  .tabs { display: flex; width: 100%; }
  .tabs .tab { flex: 1 1 0; text-align: center; padding: .6rem .5rem; font-size: .86rem; line-height: 1.25; }
  .model-tabs { top: calc(var(--header-h) + .5rem); }

  /* Geräte und Messen */
  .keyfacts { gap: .5rem; }
  .keyfacts div { padding: .6rem .7rem; }
  .event { padding: 1.1rem; gap: 1rem; }
  .date-block b { font-size: 1.5rem; }
  .offer { padding: 1.1rem; gap: 1.25rem; }
  .offer .media { max-width: 220px; justify-self: center; width: 100%; }
  .cta { border-radius: 18px; }
  .cta .btn-row { flex-direction: column; }

  /* Footer: Kontakt oben, Linklisten zweispaltig */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }

  /* Schnellkontakt-Leiste */
  .mobile-bar {
    position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); z-index: 45;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; padding: .35rem;
    background: var(--brand); border-radius: 18px; box-shadow: 0 12px 30px -10px rgb(0 20 45 / .6);
    transition: transform .3s var(--ease), opacity .3s;
  }
  .mobile-bar.hide { transform: translateY(140%); opacity: 0; }
  .mobile-bar a, .mobile-bar button {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .45rem .25rem;
    border: 0; border-radius: 12px; background: none; color: #fff; text-decoration: none; font-size: .72rem; font-weight: 600;
  }
  .mobile-bar a:active, .mobile-bar button:active { background: rgb(255 255 255 / .15); }
  .mobile-bar svg { font-size: 1.25rem; }
  .mobile-bar .count-badge { top: 2px; right: calc(50% - 24px); }
  .to-top { bottom: calc(5.4rem + env(safe-area-inset-bottom)); right: 1rem; width: 46px; height: 46px; }
  .toasts { bottom: calc(5.6rem + env(safe-area-inset-bottom)); }
  body { padding-bottom: env(safe-area-inset-bottom); }
  .palette-foot { display: none; } /* Tastatur-Hinweise sind am Handy nutzlos */
  .palette-panel { margin-top: 1rem; }
  .device-body { padding: 1.25rem; }
  .lightbox { grid-template-columns: minmax(0, 1fr); }
  .lb-figure { grid-column: 1; padding-left: .75rem; padding-right: .75rem; }
  .lb-prev, .lb-next { position: absolute; bottom: 1.25rem; }
  .lb-prev { left: 25%; } .lb-next { right: 25%; }
  .news { flex-wrap: wrap; }
  .news svg.go { display: none; }
}
@media (max-width: 400px) {
  .brand { gap: .55rem; }
  .brand .brand-name { font-size: .9rem; }
  .brand img { height: 34px; }
  .header-actions { gap: .25rem; }
  .icon-btn { min-width: 38px; height: 38px; padding: 0 .5rem; }
  /* Datentabelle gestapelt (Merkmal über Wert): zweispaltig verbreiterte „Turbomolekularpumpe“ bei 320 px die Seite,
     und hyphens greift nicht in jedem Browser */
  .spec:not(.variants) :is(th, td) { display: block; width: auto; }
  .spec:not(.variants) th { padding: .7rem .75rem .1rem; border-bottom: 0; font-size: .86rem; }
  .spec:not(.variants) td { padding: 0 .75rem .7rem; }
}
@media (max-width: 340px) {
  .brand .brand-name { display: none; }
}

/* Touch-Geräte (auch Handy quer > 560px): Tastatur-Hinweise der Suche kosten nur Höhe */
@media (pointer: coarse) {
  .palette-foot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Hoher Kontrast (Windows): Kopf-Hintergrund wird zur Systemfarbe – das weiße Logo bräuchte sonst Blau dahinter (wie im CMS) */
@media (forced-colors: active) {
  .brand img { forced-color-adjust: none; background-color: #004389; border-radius: 6px; }
}

@media print {
  .site-header, .site-footer, .to-top, .toasts, .btn-row, .tabs, .add { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section { padding: 1.5rem 0; }
}

/* iPhone/Safari (iOS 26: schwebende Browserleiste) – Kontaktleiste etwas höher, damit sie nicht angeschnitten wird */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 860px) {
    .mobile-bar { bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
    .to-top { bottom: calc(5.9rem + env(safe-area-inset-bottom)); }
    .toasts { bottom: calc(6.1rem + env(safe-area-inset-bottom)); }
    .site-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  }
}
