/* ==========================================================================
   H.T.T.S. GmbH – öffentliche Website (lebendiges Layout)
   Nur System-Schriften, keine externen Abrufe (DSGVO-freundlich)
   ========================================================================== */
:root {
  --ink: #0a0f1f;
  --ink-2: #131b35;
  --ink-3: #1d2747;
  --text: #1b2232;
  --muted: #5f6878;
  --line: #e8e5dd;
  --line-2: #d8d4ca;
  --bg: #ffffff;
  --sand: #f6f3ec;
  --sand-2: #efeadf;
  --indigo: #4f46e5;
  --indigo-ink: #3730a3;
  --indigo-soft: #eef0ff;
  --indigo-2: #8b93ff;
  --accent: #ff6a3d;
  --accent-ink: #e2511f;
  --accent-soft: #fff0ea;
  --ok: #16a34a;
  --danger: #dc4c1b;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(10,15,31,.05), 0 12px 32px -16px rgba(10,15,31,.22);
  --shadow-lg: 0 30px 60px -28px rgba(10,15,31,.45);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --wrap: 1240px;
  --head-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 20px); overflow-x: clip; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -.045em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 780; letter-spacing: -.035em; }
h3 { font-size: 1.12rem; font-weight: 680; letter-spacing: -.012em; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
.i { flex-shrink: 0; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 8px; }
.mono, code { font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 650 .95rem/1 var(--font); padding: .95em 1.35em; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform 160ms var(--ease-out), background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.btn:hover { color: var(--fg); }
.btn:active { transform: scale(.97); }
.btn .i { transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover .i-arrow { transform: translateX(3px); } }
.btn-accent { --bg: var(--accent); box-shadow: 0 10px 24px -12px rgba(255,106,61,.8); }
.btn-accent:hover { --bg: var(--accent-ink); }
.btn-indigo { --bg: var(--indigo); box-shadow: 0 10px 24px -12px rgba(79,70,229,.8); }
.btn-indigo:hover { --bg: var(--indigo-ink); }
.btn-dark:hover { --bg: var(--ink-3); }
.btn-line { --bg: transparent; --fg: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); }
.btn-glass { --bg: rgba(255,255,255,.08); --fg: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.btn-glass:hover { --bg: rgba(255,255,255,.16); }
.btn-soft { --bg: var(--indigo-soft); --fg: var(--indigo-ink); }
.btn-soft:hover { --bg: #e2e5ff; }
.btn-soft.is-added { --bg: #e6f7ec; --fg: var(--ok); }
.btn-sm { padding: .62em .95em; font-size: .84rem; }
.btn-lg { padding: 1.08em 1.6em; font-size: 1.02rem; }
.btn-icon { padding: .62em; border-radius: 999px; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 650; color: var(--ink); }
.link-arrow .i { transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .i { transform: translateX(4px); } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.on-dark .eyebrow { color: var(--indigo-2); }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 60ch; }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--ink); color: #9aa3ba; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 20px; height: 38px; align-items: center; }
.topbar a { color: #c9cfdf; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar .tb-left, .topbar .tb-right { display: flex; gap: 22px; align-items: center; }
.site-head {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.82);
  backdrop-filter: saturate(1.8) blur(16px); -webkit-backdrop-filter: saturate(1.8) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color 200ms ease, box-shadow 200ms ease;
}
.site-head.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -22px rgba(10,15,31,.35); }
.head-row { height: var(--head-h); display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-size: 1.08rem; letter-spacing: -.01em; }
.brand-text small { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.brand-logo { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a, .nav-drop > a { position: relative; color: var(--text); font-weight: 600; font-size: .95rem; padding: .6em .95em; border-radius: 999px; transition: background-color 150ms ease, color 150ms ease; }
.nav > a:hover, .nav-drop > a:hover { background: var(--sand); color: var(--ink); }
.nav a.on { color: var(--ink); background: var(--sand); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; display: inline-grid; place-items: center; background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.icon-btn:hover { background: var(--sand); }
.icon-btn:active { transform: scale(.95); }
.req-pill, .req-btn { position: relative; }
.req-btn .req-count { background: var(--ink); top: -7px; right: -7px; }
.req-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.req-count.bump { animation: bump 380ms var(--ease-out); }
@keyframes bump { 35% { transform: scale(1.35); } }
.menu-btn { display: none; }

/* ---------- Sprachauswahl ---------- */
.lang { position: relative; }
.lang > summary { list-style: none; }
.lang > summary::-webkit-details-marker { display: none; }
.lang-btn { height: 44px; padding: 0 12px 0 11px; border-radius: 999px; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .86rem; color: var(--ink); cursor: pointer; user-select: none; -webkit-user-select: none; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.lang-btn:hover, .lang[open] .lang-btn { background: var(--sand); }
.lang-btn:active { transform: scale(.97); }
.lang-btn .i:last-child { color: var(--muted); transition: transform 200ms var(--ease-out); }
.lang[open] .lang-btn .i:last-child { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 216px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); z-index: 70; transform-origin: top right; animation: langIn 180ms var(--ease-out); }
@keyframes langIn { from { opacity: 0; transform: translateY(-4px) scale(.97); } }
.lang-menu a { display: grid; grid-template-columns: 40px 1fr 16px; align-items: center; gap: 8px; padding: 10px 10px; border-radius: 10px; color: var(--text); font-size: .95rem; }
.lang-menu a:hover { background: var(--sand); color: var(--ink); }
.lang-menu a b { font-family: var(--mono); font-size: .74rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.lang-menu a.on { color: var(--ink); font-weight: 650; }
.lang-menu a.on .i { color: var(--indigo); }
.nav-langs { display: none; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot-langs a.on { color: #fff; }

.nav-drop { position: relative; }
.nav-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; width: min(880px, 92vw); padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px;
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px) scale(.98); transform-origin: top center;
  transition: opacity 160ms ease, transform 220ms var(--ease-out), visibility 0s linear 220ms;
}
@media (hover: hover) {
  .nav-drop:hover .mega, .nav-drop:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
}
.mega-item { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 120px; padding: 12px; border-radius: 14px; overflow: hidden; color: #fff; isolation: isolate; }
.mega-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 400ms var(--ease-out); }
.mega-item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,15,31,.05) 20%, rgba(10,15,31,.82)); }
.mega-item strong { font-size: .95rem; }
.mega-item span { font-size: .75rem; opacity: .8; }
.mega-item:hover { color: #fff; }
@media (hover: hover) { .mega-item:hover img { transform: scale(1.06); } }
.mega-all { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--sand); color: var(--ink); font-weight: 650; }

/* ---------- Suche (Overlay) ---------- */
.search-ov { position: fixed; inset: 0; z-index: 120; background: rgba(10,15,31,.55); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 0s linear 160ms; }
.search-ov.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.search-box { width: min(680px, 100%); background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(-8px) scale(.98); transition: transform 220ms var(--ease-out); }
.search-ov.open .search-box { transform: none; }
.search-in { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.search-in input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 18px; min-width: 0; background: transparent; }
.search-in .i { color: var(--muted); }
.search-in kbd { font: 600 .72rem var(--font); color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 6px; }
.search-res { max-height: 56vh; overflow: auto; overscroll-behavior: contain; padding: 8px; }
.search-res a { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 12px; color: var(--text); }
.search-res a:hover, .search-res a.act { background: var(--sand); }
.search-res .s-img { width: 56px; height: 44px; border-radius: 8px; background: var(--sand); overflow: hidden; display: grid; place-items: center; color: #a9a49a; }
.search-res .s-img img { width: 100%; height: 100%; object-fit: cover; }
.search-res strong { display: block; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.search-res small { color: var(--muted); font-size: .8rem; }
.search-res code { font-size: .78rem; color: var(--muted); }
.search-empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: .93rem; }
.search-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: #fbfaf7; font-size: .85rem; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #b9c0d3; overflow: hidden; isolation: isolate; }
.hero-waves { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-waves path { fill: none; stroke-linecap: round; }
.hero-glow { position: absolute; z-index: -1; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; right: -18vw; top: -30vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(99,102,241,.45), transparent 70%); }
.hero-glow.b { left: -25vw; right: auto; top: auto; bottom: -45vw; background: radial-gradient(closest-side, rgba(255,106,61,.22), transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(56px, 8vw, 104px) 20px clamp(64px, 8vw, 110px); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #a5b4fc 0%, #ff9a76 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #a9b1c6; }
.hero-search { margin-top: 30px; display: flex; align-items: center; gap: 10px; max-width: 620px; padding: 7px 7px 7px 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; cursor: text; }
.hero-search:hover { border-color: rgba(255,255,255,.3); }
.hero-search:focus-within { border-color: var(--indigo-2); background: rgba(255,255,255,.1); box-shadow: 0 0 0 4px rgba(139,147,255,.18); }
.hero-search .i { color: #8a93ab; }
.hero-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; font-size: 16px; padding: 12px 0; }
.hero-search input::placeholder { color: #7f88a0; }
.hero-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags a { font-size: .84rem; color: #c8cee0; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.14); transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.hero-tags a:hover { background: #fff; color: var(--ink); border-color: #fff; }

.mosaic { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / .92; }
.tile { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #e9e4d8; box-shadow: 0 30px 50px -30px rgba(0,0,0,.7); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(10,15,31,.62); backdrop-filter: blur(8px); color: #fff; font-size: .78rem; font-weight: 600; }
.tile figcaption span { opacity: .7; font-weight: 500; }
.mosaic .tile:nth-child(1) { grid-row: span 2; }
.float-a { animation: floatA 9s ease-in-out infinite; }
.float-b { animation: floatB 11s ease-in-out infinite; }
@keyframes floatA { 50% { transform: translateY(-10px); } }
@keyframes floatB { 50% { transform: translateY(8px); } }
.hero-badge { position: absolute; left: -26px; bottom: 34px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); font-size: .85rem; line-height: 1.3; }
.hero-badge b { display: block; font-size: 1.05rem; }
.hero-badge .bi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }

/* ---------- Marquee ---------- */
.marquee { background: var(--accent); color: #fff; overflow: hidden; white-space: nowrap; border-block: 1px solid rgba(0,0,0,.06); }
.marquee-track { display: inline-flex; gap: 0; animation: marquee 38s linear infinite; padding: 16px 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a { display: inline-flex; align-items: center; gap: 22px; padding: 0 22px; color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; }
.marquee a::after { content: "✦"; font-size: .8rem; opacity: .7; }
.marquee a:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.sand { background: var(--sand); }
.dark { background: var(--ink); color: #b9c0d3; }
.dark h2, .dark h3 { color: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head h2 { margin: 0; max-width: 18ch; }
.sec-head p { max-width: 46ch; margin: 0; color: var(--muted); }
.dark .sec-head p { color: #9aa3ba; }

/* Systeme: Bildkacheln */
.sys-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sys { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 22px; border-radius: var(--r-lg); overflow: hidden; color: #fff; isolation: isolate; background: var(--ink-2); }
.sys img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 700ms var(--ease-out), filter 400ms ease; }
.sys::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,15,31,0) 25%, rgba(10,15,31,.88) 100%); }
.sys h3 { color: #fff; font-size: 1.5rem; margin: 0 0 4px; }
.sys p { margin: 0; font-size: .9rem; color: rgba(255,255,255,.75); max-width: 36ch; }
.sys-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; }
.sys-cnt { padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .78rem; font-weight: 700; }
.sys-go { width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; background: var(--accent); color: #fff; transform: scale(.85) rotate(-45deg); opacity: 0; transition: transform 300ms var(--ease-out), opacity 200ms ease; }
.sys:hover { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .sys:hover img { transform: scale(1.07); }
  .sys:hover .sys-go { transform: scale(1) rotate(0); opacity: 1; }
}

/* Zahlen */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 8px 28px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stat b sup { font-size: .45em; color: var(--accent); margin-left: 2px; vertical-align: super; }
.stat span { display: block; margin-top: 10px; font-size: .92rem; color: #9aa3ba; }

/* Produktgruppen: horizontaler Scroller */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 4px 18px; margin: 0 -4px; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.cat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: var(--text); transition: box-shadow 220ms ease, transform 220ms var(--ease-out), border-color 220ms ease; }
.cat-img { aspect-ratio: 4 / 3; background: var(--sand-2); overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.cat-body { padding: 16px 18px 18px; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.cat-body strong { display: block; color: var(--ink); font-size: 1.04rem; }
.cat-body small { color: var(--muted); font-size: .8rem; }
.cat-n { font-family: var(--mono); font-size: .8rem; padding: 4px 9px; border-radius: 99px; background: var(--sand); color: var(--ink); }
.cat:hover { color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .cat:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-2); }
  .cat:hover .cat-img img { transform: scale(1.05); }
}

/* Schritte */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: st; }
.step { position: relative; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: st; content: "0" counter(st); display: block; font: 800 3.2rem/1 var(--font); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); margin-bottom: 18px; }
.step-ic { position: absolute; top: 28px; right: 28px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--indigo-soft); color: var(--indigo); }
.step:nth-child(2) .step-ic { background: var(--accent-soft); color: var(--accent); }
.step:nth-child(3) .step-ic { background: #e6f7ec; color: var(--ok); }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Leistungen: Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto); gap: 16px; }
.svc { position: relative; padding: 26px; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid rgba(255,255,255,.06); overflow: hidden; isolation: isolate; display: flex; flex-direction: column; }
.svc h3 { color: #fff; margin-top: auto; }
.svc p { margin: 0; color: #9aa3ba; font-size: .93rem; }
.svc-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(139,147,255,.14); color: var(--indigo-2); margin-bottom: 26px; }
.svc.big { grid-column: span 2; grid-row: span 2; justify-content: flex-end; min-height: 400px; }
.svc.big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.svc.big::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(19,27,53,.1), rgba(19,27,53,.95) 75%); }
.svc.big h3 { font-size: 1.6rem; margin-top: 0; }
.svc.wide { grid-column: span 2; }
.svc.accent { background: var(--accent); }
.svc.accent .svc-ic { background: rgba(255,255,255,.2); color: #fff; }
.svc.accent p { color: rgba(255,255,255,.85); }

/* Produktkarten */
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.p-grid-3 { grid-template-columns: repeat(3, 1fr); }
[hidden] { display: none !important; }
.pc { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow 220ms ease, transform 220ms var(--ease-out), border-color 220ms ease; }
@media (hover: hover) and (pointer: fine) { .pc:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-2); } .pc:hover .pc-img img { transform: scale(1.05); } }
.pc-img { position: relative; display: block; aspect-ratio: 4 / 3; background: linear-gradient(180deg, #faf8f3, #f1ede4); overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 500ms var(--ease-out); }
.pc-img img.photo { object-fit: cover; }
.pc-img .ph { width: 100%; height: 100%; display: grid; place-items: center; color: #b8b2a5; }
.pc-tag { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 99px; background: rgba(10,15,31,.86); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .05em; backdrop-filter: blur(6px); }
.pc-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.pc-cat { font-size: .76rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.pc-title { font-size: 1.02rem; margin: 0; }
.pc-title a { color: var(--ink); }
.pc-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pc-desc { font-size: .86rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-foot .btn { position: relative; z-index: 2; }
.art { font-family: var(--mono); font-size: .8rem; padding: 4px 9px; border-radius: 8px; background: var(--sand); color: var(--ink); white-space: nowrap; }
.art.none { font-family: var(--font); color: var(--muted); }

/* Über uns */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.collage { position: relative; aspect-ratio: 1 / 1; }
.collage .tile { position: absolute; }
.collage .t1 { inset: 0 28% 30% 0; }
.collage .t2 { inset: 38% 0 0 34%; }
.collage .t3 { width: 34%; aspect-ratio: 1; right: 4%; top: 2%; border-radius: 18px; }
.year-badge { position: absolute; left: 4%; bottom: 6%; width: 132px; height: 132px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; text-align: center; line-height: 1.1; box-shadow: var(--shadow-lg); }
.year-badge b { display: block; font-size: 2.2rem; letter-spacing: -.04em; }
.year-badge span { font-size: .78rem; font-weight: 600; opacity: .9; }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 550; }
.checks .ck { width: 28px; height: 28px; border-radius: 9px; background: var(--indigo-soft); color: var(--indigo); display: grid; place-items: center; flex-shrink: 0; }

/* CTA */
.cta { position: relative; border-radius: 32px; padding: clamp(40px, 6vw, 72px); background: linear-gradient(120deg, var(--indigo) 0%, #6d28d9 55%, var(--accent) 130%); color: rgba(255,255,255,.85); overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000); }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { margin: 0; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta .btn-white { --bg: #fff; --fg: var(--ink); }
.cta .btn-white:hover { --bg: var(--ink); --fg: #fff; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.ph-head { position: relative; background: var(--ink); color: #a9b1c6; overflow: hidden; isolation: isolate; padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); }
.ph-head .hero-waves { opacity: .55; }
.ph-head h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.6rem); margin: 14px 0 12px; }
.ph-head p { margin: 0; max-width: 62ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: #8a93ab; }
.crumbs a { color: #b9c0d3; }
.crumbs a:hover { color: #fff; }
.crumbs.light { color: var(--muted); }
.crumbs.light a { color: var(--muted); }
.crumbs.light a:hover { color: var(--ink); }

/* ---------- Katalog ---------- */
.cat-bar { position: sticky; top: var(--head-h); z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.cat-bar .wrap { display: flex; gap: 14px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 2px; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: .88rem; font-weight: 600; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.tab em { font-style: normal; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab.on em { color: #9aa3ba; }
.cat-search { display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 99px; background: #fff; width: 280px; transition: border-color 150ms ease, box-shadow 150ms ease; }
.cat-search:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-soft); }
.cat-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 10px 0; background: transparent; }
.cat-search .i { color: var(--muted); }
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 40px; padding-top: 36px; padding-bottom: 96px; }
.groups { position: sticky; top: calc(var(--head-h) + 86px); align-self: start; max-height: calc(100dvh - var(--head-h) - 110px); overflow: auto; overscroll-behavior: contain; }
.groups h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px; }
.grp { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--text); font-size: .92rem; transition: background-color 120ms ease; }
.grp:hover { background: var(--sand); color: var(--ink); }
.grp .gi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--sand); color: var(--muted); flex-shrink: 0; transition: background-color 150ms ease, color 150ms ease; }
.grp em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.grp.on { background: var(--indigo-soft); color: var(--indigo-ink); font-weight: 650; }
.grp.on .gi { background: var(--indigo); color: #fff; }
.grp.sub { padding-left: 50px; font-size: .86rem; }
.res-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.res-head h2 { font-size: 1.5rem; margin: 0; }
.res-head .muted { font-size: .92rem; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--indigo-soft); color: var(--indigo-ink); font-size: .82rem; font-weight: 600; }
.chip:hover { background: #e2e5ff; }
.view-toggle { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--sand); }
.view-toggle button { border: 0; background: transparent; padding: 7px 10px; border-radius: 99px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.view-toggle button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.p-grid.list { grid-template-columns: 1fr; gap: 10px; }
.p-grid.list .pc { flex-direction: row; align-items: stretch; }
.p-grid.list .pc-img { width: 150px; aspect-ratio: auto; flex-shrink: 0; }
.p-grid.list .pc-body { flex-direction: row; align-items: center; gap: 18px; flex-wrap: wrap; }
.p-grid.list .pc-desc { flex: 1 1 260px; -webkit-line-clamp: 1; }
.p-grid.list .pc-foot { margin: 0 0 0 auto; padding: 0; }
.p-grid.list .pc-tag { display: none; }
.more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; color: var(--muted); font-size: .9rem; }
.progress { width: 220px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--indigo); border-radius: 4px; }
.empty { text-align: center; padding: 72px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); }
.empty .i { margin: 0 auto 14px; color: var(--line-2); }
.empty p { max-width: 46ch; margin: 0 auto 22px; }
.filter-btn { display: none; }

/* ---------- Produktdetail ---------- */
.pd { padding: 28px 20px 88px; }
.pd-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); margin-top: 22px; align-items: start; }
.stage { position: sticky; top: calc(var(--head-h) + 20px); border-radius: 28px; background: linear-gradient(160deg, #fbfaf6, #efeadf); border: 1px solid var(--line); overflow: hidden; aspect-ratio: 1 / .85; cursor: zoom-in; }
.stage img { width: 100%; height: 100%; object-fit: contain; transition: transform 300ms var(--ease-out); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.stage.zoom img { transform: scale(2); }
.stage .ph { width: 100%; height: 100%; display: grid; place-items: center; color: #c3bdaf; cursor: default; }
.stage .ph .i { width: 120px; height: 120px; stroke-width: 1; }
.stage-badge { position: absolute; left: 16px; top: 16px; display: flex; gap: 6px; }
.stage-badge span { padding: 6px 12px; border-radius: 99px; background: rgba(10,15,31,.86); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .04em; }
.stage-hint { position: absolute; right: 14px; bottom: 14px; font-size: .74rem; color: var(--muted); background: rgba(255,255,255,.85); padding: 5px 10px; border-radius: 99px; }
.pd-info h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 10px 0 16px; }
.pd-cat { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo); }
.art-row { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px; border-radius: 99px; background: var(--sand); margin-bottom: 24px; }
.art-row span { font-size: .8rem; color: var(--muted); margin-right: 6px; }
.art-row code { font-size: .95rem; color: var(--ink); font-weight: 600; }
.art-row button { border: 0; background: #fff; width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center; cursor: pointer; color: var(--muted); margin-left: 8px; transition: transform 160ms var(--ease-out), color 150ms ease; }
.art-row button:hover { color: var(--ink); }
.art-row button:active { transform: scale(.92); }
.feat { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.feat li { display: flex; gap: 12px; align-items: flex-start; }
.feat li::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--accent); margin-top: .58em; flex-shrink: 0; }
.buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 30px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 99px; overflow: hidden; }
.qty button { border: 0; background: transparent; width: 42px; height: 46px; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--sand); }
.qty input { width: 52px; border: 0; text-align: center; font: 650 16px var(--font); outline: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy .btn-accent { flex: 1; }
.buy-note { flex-basis: 100%; font-size: .82rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.spec { margin: 0 0 22px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 170px 1fr; }
.spec > div:nth-child(odd) { background: #fbfaf7; }
.spec dt { padding: 12px 16px; color: var(--muted); font-size: .88rem; }
.spec dd { margin: 0; padding: 12px 16px; font-weight: 550; font-variant-numeric: tabular-nums; }
.spec-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px; }
details.en { border-top: 1px solid var(--line); padding-top: 16px; }
details.en summary { cursor: pointer; font-weight: 650; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.en summary::-webkit-details-marker { display: none; }
details.en summary .i { transition: transform 220ms var(--ease-out); }
details.en[open] summary .i { transform: rotate(45deg); }
details.en p { margin-top: 12px; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 400px 1fr; gap: 0; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }
.c-side { position: relative; padding: clamp(28px, 4vw, 44px); background: var(--ink); color: #a9b1c6; isolation: isolate; overflow: hidden; }
.c-side::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -160px; bottom: -160px; z-index: -1; background: radial-gradient(closest-side, rgba(255,106,61,.35), transparent); }
.c-side h2 { color: #fff; font-size: 1.6rem; }
.c-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 20px; }
.c-list li { display: flex; gap: 14px; }
.c-list .ci { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.c-list small { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: #7f88a0; }
.c-list a, .c-list b { color: #fff; font-weight: 600; }
.c-form { padding: clamp(24px, 4vw, 48px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 26px; }
.full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: .84rem; font-weight: 650; color: var(--ink); }
.field input, .field textarea { font: inherit; font-size: 16px; padding: 13px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: #fbfaf7; color: var(--text); width: 100%; transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--indigo); background: #fff; box-shadow: 0 0 0 4px var(--indigo-soft); }
.field textarea { resize: vertical; min-height: 130px; }
.err { color: var(--danger); font-style: normal; font-size: .82rem; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { margin-top: 3px; width: 19px; height: 19px; accent-color: var(--indigo); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; }
.req-box { margin-bottom: 26px; padding: 18px; border-radius: var(--r-lg); background: var(--sand); }
.req-box-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.req-box-head h3 { margin: 0; }
.req-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.req-box li { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 12px; align-items: center; padding: 8px 10px 8px 8px; background: #fff; border-radius: 14px; animation: rowIn 260ms var(--ease-out); }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } }
.req-box li .ri { width: 52px; height: 42px; border-radius: 10px; background: var(--sand); overflow: hidden; display: grid; place-items: center; color: #b8b2a5; }
.req-box li .ri img { width: 100%; height: 100%; object-fit: cover; }
.req-box li strong { display: block; font-size: .92rem; color: var(--ink); line-height: 1.3; }
.req-box li small { color: var(--muted); font-family: var(--mono); font-size: .76rem; }
.req-box li input { width: 64px; font: 600 16px var(--font); padding: 7px; border: 1px solid var(--line-2); border-radius: 10px; text-align: center; }
.req-box li .rm { border: 0; background: transparent; width: 34px; height: 34px; border-radius: 99px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.req-box li .rm:hover { background: var(--sand); color: var(--danger); }
.req-empty { color: var(--muted); font-size: .92rem; margin: 0; }
.success { text-align: center; padding: 56px 24px; }
.success-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; background: #e6f7ec; color: var(--ok); animation: pop 420ms var(--ease-out); }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }

/* ---------- Unternehmen ---------- */
.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.story .big-quote { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.35; font-weight: 650; color: var(--ink); letter-spacing: -.02em; }
.numlist { list-style: none; padding: 0; margin: 0; counter-reset: n; display: grid; gap: 0; }
.numlist li { counter-increment: n; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.numlist li::before { content: "0" counter(n); font: 700 .9rem var(--mono); color: var(--accent); padding-top: 3px; }
.sys-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sys-chips a { padding: 14px 22px; border-radius: 99px; border: 1px solid rgba(255,255,255,.18); color: #fff; font-weight: 750; letter-spacing: .04em; transition: background-color 150ms ease, color 150ms ease; }
.sys-chips a:hover { background: #fff; color: var(--ink); }

/* ---------- Rechtliches ---------- */
.legal { max-width: 860px; }
.legal .spec { margin-bottom: 32px; }
.prose { color: var(--text); }
.prose p { margin-bottom: 1.1em; line-height: 1.65; }
.prose h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin: 2.2em 0 .7em; letter-spacing: -.02em; }
.prose h3 { font-size: 1.08rem; margin: 1.6em 0 .5em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.25em; display: grid; gap: .45em; line-height: 1.6; }
.prose ul li::marker { color: var(--indigo); }
.prose a { color: var(--indigo); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #8a93ab; font-size: .92rem; padding-bottom: env(safe-area-inset-bottom); }
.foot-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 56px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.foot-cta h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0; letter-spacing: -.03em; max-width: 20ch; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding: 56px 0 40px; }
.foot h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { color: #b9c0d3; }
.foot a:hover { color: #fff; }
.foot .brand, .foot .brand:hover { color: #fff; margin-bottom: 16px; }
.foot .brand-text small { color: #8a93ab; }
.f-c li { display: flex; gap: 10px; align-items: flex-start; }
.f-c .i { margin-top: 3px; color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.08); font-size: .84rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 150; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--ink); color: #fff; font-size: .92rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translate(-50%, 16px) scale(.98); transition: opacity 200ms ease, transform 320ms var(--ease-out); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast .t-img { width: 40px; height: 32px; border-radius: 8px; overflow: hidden; background: #fff; flex-shrink: 0; }
.toast .t-img img { width: 100%; height: 100%; object-fit: cover; }
.toast a { color: #fff; background: var(--accent); padding: 8px 12px; border-radius: 99px; font-weight: 650; font-size: .84rem; white-space: nowrap; }

/* ---------- Scroll-Reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sys-grid { grid-template-columns: repeat(2, 1fr); }
  .p-grid, .p-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .groups { display: none; }
  .filter-btn { display: inline-flex; }
  .groups.open { display: block; position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); max-height: none; z-index: 130; background: #fff; padding: 22px; box-shadow: var(--shadow-lg); top: 0; animation: drawerIn 280ms cubic-bezier(.32,.72,0,1); }
  @keyframes drawerIn { from { transform: translateX(100%); } }
  .groups-close { display: inline-grid !important; }
}
@media (max-width: 900px) {
  :root { --head-h: 66px; }
  .topbar { display: none; }
  .menu-btn { display: inline-grid; }
  .nav { position: fixed; inset: var(--head-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(10,15,31,.35); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s linear 220ms; }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav > a, .nav-drop > a { display: block; padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
  .nav > a:hover, .nav a.on { background: transparent; }
  .nav-langs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; }
  .nav-langs a { padding: 7px 13px; border: 1px solid var(--line); border-radius: 99px; font-size: .92rem; color: var(--text); }
  .nav-langs a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
  .mega { display: none; }
  .hero-in { grid-template-columns: 1fr; }
  .mosaic { max-width: 520px; }
  .hero-badge { left: 12px; bottom: -16px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .about, .story, .pd-grid { grid-template-columns: 1fr; }
  .collage { max-width: 520px; }
  .cta { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .stage { position: relative; top: 0; }
  .contact { grid-template-columns: 1fr; }
  .cat-search { width: auto; flex: 1; }
  .cat-bar .wrap { flex-wrap: wrap; }
  .tabs { flex-basis: 100%; order: 2; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .foot-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .sys-grid { grid-template-columns: 1fr; }
  .sys { min-height: 240px; }
  .p-grid, .p-grid-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pc-body { padding: 12px; }
  .pc-desc { display: none; }
  .pc-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .pc-foot .art { text-align: center; }
  .p-grid.list .pc-img { width: 96px; }
  .p-grid.list .pc-foot { flex-direction: row; }
  .bento { grid-template-columns: 1fr; }
  .svc.big, .svc.wide { grid-column: auto; }
  .svc.big { min-height: 320px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-search { flex-wrap: wrap; border-radius: 22px; padding: 8px 8px 8px 16px; }
  .hero-search .btn { width: 100%; }
  .brand-text small { display: none; }
  .head-row { gap: 12px; }
  .head-actions { gap: 6px; }
  .head-actions .icon-btn, .lang-btn { width: 40px; height: 40px; }
  .lang-btn { padding: 0; justify-content: center; font-size: .78rem; }
  .lang-btn .i { display: none; }
  .spec > div { grid-template-columns: 1fr; }
  .spec dt { padding-bottom: 0; }
  .req-box li { grid-template-columns: 44px 1fr auto; }
  .req-box li input { grid-column: 2; justify-self: start; }
  .mosaic { gap: 10px; }
  .tile figcaption { display: none; }
  .hero-badge { display: none; }
  .year-badge { width: 104px; height: 104px; }
  .year-badge b { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
@media (max-width: 640px) { .hide-sm { display: none !important; } }
.sys img.draw { object-fit: contain; background: #fff; padding: 56px 40px 110px; }

/* Chinesisch: keine negativen Laufweiten, etwas mehr Zeilenhöhe */
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; line-height: 1.25; }
:lang(zh) body { line-height: 1.75; }

/* Logo in der Fußzeile größer */
.foot .brand-logo { height: 100px; }
@media (max-width: 640px) { .foot .brand-logo { height: 52px; } }

/* Anfrage-Button auch auf dem Handy sichtbar */
@media (max-width: 640px) { .req-btn { height: 40px; padding: 0 14px; } }

/* Leistungsportfolio (drei Blöcke unter den Leistungen) */
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; align-items: stretch; }
.pf { padding: 28px; border-radius: var(--r-lg); background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); }
.pf h3 { color: #fff; margin: 0 0 10px; font-size: 1.22rem; }
.pf > p { margin: 0 0 20px; color: #9aa3ba; font-size: .93rem; line-height: 1.55; }
.pf-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pf-list li { display: flex; gap: 12px; align-items: flex-start; color: #d6dbea; font-size: .95rem; line-height: 1.45; }
.pf-list .ck { width: 22px; height: 22px; border-radius: 7px; background: rgba(139,147,255,.16); color: var(--indigo-2); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
@media (max-width: 900px) { .pf-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pf { padding: 22px; } }
