/* Layout: "Maschinenbett" – Maschinen stehen auf einer echten Verfahrweg-Skala (X/Z in mm),
   weiße Ausstellungsfläche für Produktfotos, Indigo aus dem Böhm-Logo als Führungsfarbe,
   Zahnrad-Blau als Akzent. Schriften lokal eingebunden (DSGVO: kein Google-Fonts-Abruf). */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #e7e8eb;             /* helles Werkstattgrau wie der Fotogrund */
  --surface: #f1f2f4;
  --stage: transparent;      /* freigestellte Maschinen stehen direkt auf dem Grau */
  --fg: #16132b;
  --muted: #535164;
  --line: #cfd1d7;
  --ink: #2b1673;            /* Böhm-Indigo */
  --ink-fg: #ffffff;
  --sky: #2aa7e0;            /* Zahnrad-Blau */
  --sky-text: #0a6795;
  --band: #1d0f4f;
  --band-fg: #eeeaff;
  --band-muted: #b9b1e3;
  --head: color-mix(in srgb, var(--bg) 80%, transparent);

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 76rem;
  --r: 6px;
  --zoom: transform 420ms cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.6 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Typografie */
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.1rem); line-height: 1.02; font-weight: 800; font-stretch: 112%; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.08; font-weight: 750; font-stretch: 108%; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; line-height: 1.2; font-weight: 700; font-stretch: 106%; }
p { margin: 0; max-width: 64ch; }
.lead { font-size: 1.2rem; color: var(--muted); }
.eyebrow { font: 500 0.78rem/1 var(--f-data); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky-text); }
.mono { font-family: var(--f-data); font-weight: 500; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* Kopfzeile */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--head); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex: none; }
.brand img { width: 30px; height: auto; }
.brand b { font: 800 1.15rem/1 var(--f-display); font-stretch: 125%; letter-spacing: 0.02em; display: block; }
.brand small { font: 500 0.64rem/1.2 var(--f-data); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 3px; }
.nav { display: flex; gap: 0.25rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav a { text-decoration: none; padding: 0.5rem 0.7rem; border-radius: var(--r); font-weight: 600; font-size: 0.95rem; white-space: nowrap; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: color-mix(in srgb, var(--fg) 7%, transparent); }
@media (max-width: 860px) {
  .site-head .wrap { flex-wrap: wrap; gap: 0.25rem 1rem; padding-block: 0.6rem; }
  .nav { order: 3; width: 100%; margin-left: -0.7rem; }
  .site-head .btn { margin-left: auto; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.2rem; border-radius: var(--r); font: 600 0.98rem/1.1 var(--f-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 100ms ease-out, background-color 150ms; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--ink-fg); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, #000); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--fg); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Abschnitte */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 0.8rem; margin-bottom: 2.25rem; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.hero-text { display: grid; gap: 1.4rem; min-width: 0; }
.hero-img { background: var(--stage); border-radius: var(--r); padding: 1.25rem; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

.page-hero { padding-block: clamp(2.5rem, 5vw, 4rem) 1rem; }
.page-hero .wrap { display: grid; gap: 1rem; }

/* Einstieg nach Bedarf */
.needs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.needs a { background: var(--surface); padding: 1.1rem 1.2rem; text-decoration: none; display: grid; gap: 0.3rem; min-width: 0; }
.needs a:hover { background: color-mix(in srgb, var(--sky) 8%, var(--surface)); }
.needs b { font-family: var(--f-display); font-stretch: 106%; font-size: 1.05rem; }
.needs span { font-size: 0.92rem; color: var(--muted); }
.needs em { font: 500 0.8rem/1 var(--f-data); font-style: normal; color: var(--sky-text); margin-top: 0.3rem; }
@media (max-width: 860px) { .needs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .needs { grid-template-columns: 1fr; } }

/* Fräsen/Drehen-Kacheln mit Skala */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; display: grid; overflow: hidden; transition: border-color 150ms; }
.tile:hover { border-color: var(--muted); }
.tile figure { margin: 0; padding: 1.5rem; display: grid; place-items: center; overflow: hidden; }
.tile figure img { height: 220px; object-fit: contain; }
.tile-body { padding: 1.25rem 1.4rem 1.4rem; display: grid; gap: 0.6rem; }
.range { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.6rem; font: 500 0.85rem/1 var(--f-data); color: var(--muted); margin-top: 0.4rem; }
.range i { height: 2px; background: linear-gradient(90deg, var(--sky), var(--ink)); position: relative; }
.range i::before, .range i::after { content: ""; position: absolute; top: -4px; width: 2px; height: 10px; background: currentColor; }
.range i::after { right: 0; }

/* Band (Automation-Teaser) */
.band { background: var(--band); color: var(--band-fg); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.band .lead, .band .muted { color: var(--band-muted); }
.band .eyebrow { color: var(--sky); }
.band figure { margin: 0; }
@media (max-width: 860px) { .band .wrap { grid-template-columns: 1fr; } }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--fg); padding-top: 1rem; display: grid; gap: 0.5rem; align-content: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 500 0.85rem/1 var(--f-data); color: var(--sky-text); }
.steps p { font-size: 0.97rem; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Ansprechpartner */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }
.person { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; align-items: start; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 4px; background: linear-gradient(160deg, #dfe4ee, #b9c3d6); }
.person-body { display: grid; gap: 0.35rem; min-width: 0; }
.person dl { margin: 0.6rem 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 0.8rem; font-size: 0.95rem; }
.person dt { font: 500 0.78rem/1.9 var(--f-data); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.person dd { margin: 0; overflow-wrap: anywhere; }
.person dd a { text-decoration: none; font-variant-numeric: tabular-nums; }
.person dd a:hover { text-decoration: underline; }
@media (max-width: 420px) { .person { grid-template-columns: 1fr; } .person img { max-width: 11rem; } }

.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.25rem; }
.offices address { font-style: normal; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 0.2rem; }
.offices b { font-family: var(--f-display); font-stretch: 106%; }
@media (max-width: 600px) { .offices { grid-template-columns: 1fr; } }

/* Maschinenkarte */
.m { background: var(--surface); color: var(--fg); border-radius: var(--r); text-decoration: none; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); transition: transform 180ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms; min-width: 0; }
.m:hover { border-color: #a9abb5; box-shadow: 0 14px 30px -20px rgba(20, 12, 60, .5); }
.m img { width: 100%; height: 150px; object-fit: contain; padding: 1rem 1rem 0; transition: var(--zoom); }
.m:hover img, .tile:hover figure img, .zoom:hover img { transform: scale(1.14); }
.tile figure img, .zoom img { transition: var(--zoom); }
.m > div { padding: 0.75rem 0.9rem 0.9rem; display: grid; gap: 0.25rem; align-content: start; }
.m h3 { font-size: 1.05rem; }
.m p { font-size: 0.88rem; line-height: 1.4; color: var(--muted); }
.m .mono { font-size: 0.8rem; color: var(--sky-text); margin-top: 0.2rem; }
.m .ask { font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-top: 0.35rem; }

/* Fräsen-Matrix: Zeilen = Achszahl, Spalten = Verfahrweg X */
.axis { display: grid; grid-template-columns: 5.5rem repeat(6, minmax(0, 1fr)); gap: 0.9rem; }
.axis .row-label { font: 750 1.05rem/1.1 var(--f-display); font-stretch: 110%; align-self: center; border-right: 2px solid var(--fg); padding-right: 0.6rem; height: 100%; display: flex; align-items: center; }
.axis .ruler { display: contents; }
.axis .ruler span { font: 500 0.95rem/1 var(--f-data); text-align: center; border-top: 2px solid var(--fg); padding-top: 0.6rem; font-variant-numeric: tabular-nums; }
.axis .ruler span:first-child { border-top: 0; text-align: left; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.axis-gap { grid-column: 1 / -1; height: 0; border-top: 1px dashed var(--line); }
@media (max-width: 960px) {
  .axis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .axis .row-label { grid-column: 1 / -1; border-right: 0; border-bottom: 2px solid var(--fg); padding: 1rem 0 0.4rem; }
  .axis .m { grid-column: auto !important; }
  .axis .ruler, .axis-gap { display: none; }
}

/* Raster für Drehen/Automation */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 0.9rem; }
.group { display: grid; gap: 1.25rem; }
.group + .group { margin-top: 3rem; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; border-bottom: 2px solid var(--fg); padding-bottom: 0.6rem; }
.group-head p { color: var(--muted); font-size: 0.97rem; }

/* Infofelder */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.facts > div { display: grid; gap: 0.4rem; align-content: start; }
.facts p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.split figure { margin: 0; background: var(--stage); border-radius: var(--r); padding: 1rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Tabelle */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { text-align: left; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 700 0.95rem/1.2 var(--f-display); font-stretch: 108%; background: color-mix(in srgb, var(--ink) 9%, var(--surface)); }
tbody th { font-weight: 600; color: var(--muted); white-space: nowrap; }
tr:last-child > * { border-bottom: 0; }
td { font-variant-numeric: tabular-nums; }

/* Formular */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.1rem, 3vw, 2rem); }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label, .form legend { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 0.65rem 0.75rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--fg); width: 100%; }
.field textarea { min-height: 7.5rem; resize: vertical; }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.form legend { margin-bottom: 0.4rem; }
.form fieldset label { display: inline-flex; gap: 0.4rem; align-items: center; font-weight: 400; }
.form .note { font-size: 0.88rem; color: var(--muted); }
.form-status { padding: 0.75rem 1rem; border-radius: var(--r); background: color-mix(in srgb, var(--sky) 14%, var(--surface)); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* Rechtstexte */
.legal { display: grid; gap: 1.6rem; max-width: 46rem; }
.legal h2 { font-size: 1.35rem; margin-top: 1rem; }
.legal h3 { font-size: 1.05rem; }
.legal section { display: grid; gap: 0.6rem; }
.legal ul { margin: 0; padding-left: 1.2rem; }

/* Fußzeile */
.site-foot { background: var(--band); color: var(--band-muted); padding-block: 3rem 2rem; margin-top: 2rem; font-size: 0.93rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.site-foot b { color: var(--band-fg); font-family: var(--f-display); font-stretch: 108%; display: block; margin-bottom: 0.4rem; }
.site-foot address { font-style: normal; }
.site-foot a { color: var(--band-fg); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.site-foot .bottom { grid-column: 1 / -1; border-top: 1px solid color-mix(in srgb, var(--band-fg) 18%, transparent); padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.85rem; }
@media (max-width: 860px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-foot .wrap { grid-template-columns: 1fr; } }


@media (prefers-reduced-transparency: reduce) { .site-head { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (max-width: 480px) { .brand small { display: none; } .site-head .wrap { flex-wrap: wrap; } }

/* Maschinensuche */
.link-btn { background: none; border: 0; padding: 0; font: 600 0.92rem/1.2 var(--f-body); color: var(--ink); text-decoration: underline; cursor: pointer; justify-self: start; }
.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.15rem; }
.chips i { font: 500 0.72rem/1 var(--f-data); font-style: normal; padding: 0.3rem 0.45rem; border-radius: 3px; background: color-mix(in srgb, var(--ink) 9%, var(--surface)); color: var(--ink); }
.empty { padding: 2rem; border: 1px dashed var(--line); border-radius: var(--r); display: grid; gap: 0.6rem; justify-items: start; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .m:hover img, .tile:hover figure img, .zoom:hover img { transform: none; } }

/* Neu 2026 */
.news { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0.9rem; }
.news-feature { grid-row: span 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; display: grid; grid-template-rows: auto 1fr; }
.news-feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-feature > div { padding: 1rem 1.2rem 1.2rem; display: grid; gap: 0.45rem; align-content: start; }
.news-feature .ask { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
@media (max-width: 860px) { .news { grid-template-columns: 1fr 1fr; } .news-feature { grid-column: 1 / -1; } }
@media (max-width: 480px) { .news { grid-template-columns: 1fr; } }

/* Termine */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.events li { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.events time { font-size: 1.05rem; color: var(--ink); }
.events li > div { display: grid; gap: 0.25rem; min-width: 0; }
@media (max-width: 640px) { .events li { grid-template-columns: 1fr; gap: 0.6rem; } }

/* Schnellkontakt nur auf dem Handy */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
    padding: 0.6rem max(16px, env(safe-area-inset-right, 0px)) calc(0.6rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--head); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); border-top: 1px solid var(--line); }
  .callbar .btn { justify-content: center; padding-block: 0.85rem; }
  body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-transparency: reduce) { .callbar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (max-width: 760px) { .site-head .btn { display: none; } }

/* Neuheit TTS36/TTS52 – Bühne */
:root { --spot-glow: #3b2a92; --spot-line: rgba(255, 255, 255, 0.16); }
.spot { background: radial-gradient(ellipse 70% 80% at 72% 62%, var(--spot-glow), var(--band) 70%); color: var(--band-fg); overflow: hidden; }
.spot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2rem; align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.spot-text { display: grid; gap: 1.2rem; min-width: 0; position: relative; z-index: 2; }
.spot-kicker { display: flex; align-items: center; gap: 0.75rem; margin: 0; }
.spot-kicker .eyebrow { color: var(--sky); }
.spot-badge { font: 800 0.8rem/1 var(--f-display); font-stretch: 120%; letter-spacing: 0.08em; text-transform: uppercase; background: var(--sky); color: var(--band); padding: 0.4rem 0.6rem; border-radius: 3px; }
.spot-title { font-size: clamp(2.6rem, 5.4vw, 4.8rem); line-height: 0.95; font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; }
.spot-title span { color: var(--sky); font-weight: 300; margin-inline: 0.05em; }
.spot .lead { color: var(--band-muted); }
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; justify-self: start; border: 1px solid var(--spot-line); border-radius: 999px; padding: 4px; background: rgba(255, 255, 255, 0.06); }
.seg button { position: relative; z-index: 1; font: 700 0.95rem/1 var(--f-display); font-stretch: 112%; color: var(--band-muted); background: none; border: 0; padding: 0.65rem 1.4rem; cursor: pointer; border-radius: 999px; transition: color 200ms; }
.seg button[aria-pressed="true"] { color: var(--band); }
.seg i { position: absolute; inset: 4px auto 4px 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--band-fg); transition: transform 360ms cubic-bezier(.2, .8, .2, 1); }
.seg[data-sel="52"] i { transform: translateX(100%); }
.spot-specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--spot-line); border: 1px solid var(--spot-line); border-radius: var(--r); overflow: hidden; }
.spot-specs div { background: color-mix(in srgb, var(--band) 88%, #fff); padding: 0.85rem 1rem; display: grid; gap: 0.3rem; }
.spot-specs dt { font: 500 0.72rem/1.2 var(--f-data); letter-spacing: 0.06em; text-transform: uppercase; color: var(--band-muted); }
.spot-specs dd { margin: 0; font: 500 clamp(1.25rem, 2.4vw, 1.6rem)/1.1 var(--f-data); font-variant-numeric: tabular-nums; color: #fff; }
.spot-specs dd.tick { animation: tick 320ms cubic-bezier(.2, .8, .2, 1); }
@keyframes tick { from { opacity: 0.2; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.spot-note { font-size: 0.88rem; color: var(--band-muted); }
.btn-light { background: var(--band-fg); color: var(--band); }
.btn-light:hover { background: #fff; }
.btn-outline { border-color: var(--spot-line); color: var(--band-fg); }
.btn-outline:hover { border-color: var(--band-muted); }
.spot-stage { position: relative; min-width: 0; padding-bottom: 12%; }
.spot-machine { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 34px 28px rgba(0, 0, 0, 0.5)); transition: var(--zoom); }
.spot-stage:hover .spot-machine { transform: scale(1.05); }
.spot-inset { position: absolute; z-index: 2; left: 15%; top: 60%; width: 36%; cursor: pointer; margin: 0; background: var(--band); border: 1px solid var(--spot-line); border-radius: var(--r); overflow: hidden; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7); }
.spot-inset { --frame: 700 / 455; }
.spot-inset img { display: block; width: 100%; aspect-ratio: var(--frame); object-fit: cover; }
.spot-inset video { position: absolute; inset: 0 0 auto 0; width: 100%; aspect-ratio: var(--frame); object-fit: cover; opacity: 0; transition: opacity 250ms ease; }
.spot-inset.on video { opacity: 1; }
.spot-inset .play { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; margin-right: 0.45em; border-radius: 50%; background: var(--sky); color: var(--band); font-size: 0.7rem; transition: opacity 200ms; }
.spot-inset.on .play { opacity: 0.25; }
.spot-inset figcaption { font: 500 0.72rem/1.3 var(--f-data); color: var(--band-muted); padding: 0.5rem 0.65rem; position: relative; background: var(--band); }
@media (max-width: 960px) {
  .spot-grid { grid-template-columns: 1fr; }
  .spot-stage { order: -1; padding-bottom: 0; }
  .spot-machine { width: 100%; max-width: 100%; margin-left: 0; }
  .spot-inset { position: relative; top: auto; width: min(60%, 18rem); margin-top: 1rem; }  /* top: auto, sonst verschiebt Safari das Fenster um 60 % nach unten */
}
@media (prefers-reduced-motion: reduce) { .spot-specs dd.tick { animation: none; } .seg i { transition: none; } .spot-stage:hover .spot-machine { transform: none; } }

/* Merkmale, die beim Darüberfahren aufpoppen */
.pop-host { position: relative; }
.pop-figure { cursor: default; overflow: hidden; border-radius: var(--r); }
.pop { position: absolute; inset: 0; z-index: 3; display: grid; align-content: start; gap: 0.6rem; padding: 0.9rem; overflow: auto;
  background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-radius: inherit; opacity: 0; transform: scale(0.97); pointer-events: none; transition: opacity 180ms ease, transform 260ms cubic-bezier(.2, .8, .2, 1); }
.pop-host:hover .pop, .pop-host:focus-visible .pop, .pop-host:focus-within .pop { opacity: 1; transform: none; pointer-events: auto; }
.pop-title { font: 750 1rem/1.15 var(--f-display); font-stretch: 108%; color: var(--fg); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.tiles li { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 0.5rem 0.6rem; display: grid; gap: 0.2rem; align-content: start;
  opacity: 0; transform: translateY(6px); transition: opacity 200ms ease, transform 280ms cubic-bezier(.2, .8, .2, 1); }
.pop-host:hover .tiles li, .pop-host:focus-visible .tiles li, .pop-host:focus-within .tiles li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 35ms); }
.tiles li > span { font: 500 0.66rem/1.2 var(--f-data); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.tiles b { font-size: 0.86rem; line-height: 1.3; color: var(--fg); }
.pop-figure .pop { padding: 1.2rem; gap: 0.8rem; }
.pop-figure .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pop-figure .tiles b { font-size: 0.95rem; }
.pop-hint { font-size: 0.75rem; color: var(--sky-text); }
.pop-figure .pop-hint { position: absolute; left: 0.75rem; top: 0.75rem; background: var(--surface); border: 1px solid var(--line); padding: 0.3rem 0.5rem; border-radius: 3px; }
@media (max-width: 600px) { .pop-figure .tiles { grid-template-columns: 1fr 1fr; } }
@media (hover: none) {
  .pop { position: static; opacity: 1; transform: none; pointer-events: auto; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0 0.9rem 0.9rem; }
  .pop-figure .pop { padding: 1rem 0 0; }
  .tiles li { opacity: 1; transform: none; }
  .pop-hint, .pop-title { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pop, .tiles li { transition: opacity 120ms ease !important; transform: none !important; } }
.grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .grid-wide { grid-template-columns: 1fr; } }
.grid-wide .m img { height: 220px; }
.tiles { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
.tiles li { min-width: 0; overflow-wrap: anywhere; }

/* Schwebende Sprechblase „Anfrage“ – auf jeder Seite sichtbar (Desktop/Tablet) */
.bubble { position: fixed; z-index: 20; right: max(24px, calc(env(safe-area-inset-right, 0px) + 16px)); bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.85rem 1.25rem; text-decoration: none;
  font: 700 1.05rem/1 var(--f-display); font-stretch: 110%; letter-spacing: 0.01em; color: var(--ink-fg); background: var(--ink);
  border-radius: 1.5rem 1.5rem 0.2rem 1.5rem; box-shadow: 0 0 0 2px var(--bg), 0 14px 30px -12px rgba(29, 15, 79, 0.65), 0 2px 6px rgba(29, 15, 79, 0.25);
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1), background-color 150ms; }
.bubble svg { color: var(--sky); flex: none; }
.bubble:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--ink) 86%, #000); }
.bubble:active { transform: scale(0.96); transition-duration: 90ms; }
.bubble:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; }
@media (max-width: 760px) { .bubble { display: none; } }  /* auf dem Handy übernimmt die Kontaktleiste */
@media (prefers-reduced-motion: reduce) { .bubble { transition: none; } }

/* GRIPPEX-Präsentation */
:root { --gpx: #2c78c8; --steel: #b9bec8; --steel-dark: #7d8494; }
.gpx-show { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
.gpx-stage { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem 1.25rem 0.9rem; display: grid; gap: 0.6rem; align-content: center; }
/* Zustände der vier Schritte */
.gpx-status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--muted); }
.gpx-stage video { width: 100%; height: auto; aspect-ratio: 1280 / 586; display: block; border-radius: calc(var(--r) - 2px); background: #111; object-fit: cover; cursor: pointer; }
.gpx-status .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--line); transition: background-color 250ms; }
.gpx-stage[data-step="2"] .dot, .gpx-stage[data-step="3"] .dot { background: var(--sky); }
.gpx-stage:not(.on) .dot { opacity: 0.5; }
.gpx-side { display: grid; gap: 0.75rem; align-content: start; }
.gpx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.gpx-steps button { width: 100%; text-align: left; display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.15rem 0.6rem; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--fg); font: inherit; cursor: pointer; transition: border-color 150ms, background-color 150ms; }
.gpx-steps button:active { transform: scale(0.985); }
.gpx-steps .mono { grid-row: span 2; font-size: 0.85rem; color: var(--sky-text); padding-top: 0.15rem; }
.gpx-steps b { font-family: var(--f-display); font-stretch: 106%; font-size: 1rem; }
.gpx-desc { font-size: 0.9rem; line-height: 1.45; color: var(--muted); display: none; }
.gpx-steps button[aria-pressed="true"] { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, var(--surface)); }
.gpx-steps button[aria-pressed="true"] .gpx-desc { display: block; }
.gpx-side .btn { justify-self: start; }
.gpx-models { margin-top: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gpx-models .m img { height: 170px; }
.gpx-pros { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.gpx-pros li { background: var(--surface); padding: 0.9rem 1rem; display: grid; gap: 0.2rem; }
.gpx-pros b { font-family: var(--f-display); font-stretch: 106%; }
.gpx-pros span { font-size: 0.92rem; color: var(--muted); }
@media (max-width: 860px) { .gpx-show { grid-template-columns: 1fr; } .gpx-models, .gpx-pros { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gpx-models, .gpx-pros { grid-template-columns: 1fr; } }

/* Maschinensuche – Filterleiste */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fx-bar { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; display: grid; gap: 0.85rem; margin-bottom: 1.5rem; box-shadow: 0 10px 30px -24px rgba(29, 15, 79, 0.5); }
.fx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; min-width: 0; }
.fx-search { flex: 1 1 15rem; position: relative; display: flex; align-items: center; color: var(--muted); }
.fx-search svg { position: absolute; left: 0.85rem; }
.fx-search input { width: 100%; font: inherit; padding: 0.7rem 1rem 0.7rem 2.5rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg); }
.fx-seg { position: relative; display: inline-grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.fx-seg button { position: relative; z-index: 1; font: 700 0.95rem/1 var(--f-display); font-stretch: 108%; padding: 0.6rem 1.1rem; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 999px; transition: color 200ms; }
.fx-seg button[aria-pressed="true"] { color: var(--ink-fg); }
.fx-seg i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 999px; background: var(--ink); transition: transform 340ms cubic-bezier(.2, .8, .2, 1); }
.fx-seg[data-i="1"] i { transform: translateX(100%); }
.fx-seg[data-i="2"] i { transform: translateX(200%); }
.fx-lab { font: 500 0.72rem/1 var(--f-data); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); min-width: 6.5rem; }
.chips-row { display: flex; flex-wrap: wrap; gap: 0.4rem; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 0.45rem; font: 600 0.9rem/1 var(--f-body); padding: 0.5rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; transition: background-color 150ms, color 150ms, border-color 150ms, transform 100ms; }
.chip:hover { border-color: var(--muted); }
.chip:active { transform: scale(0.96); }
.chip small { font: 500 0.72rem/1 var(--f-data); color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ink-fg); }
.chip[aria-pressed="true"] small { color: var(--band-muted); }
.chip:disabled { opacity: 0.4; cursor: default; }
.fx-ranges { gap: 0.6rem 2rem; }
.fx-range { display: flex; align-items: center; gap: 0.75rem; flex: 1 1 18rem; min-width: 0; }
.fx-range input { flex: 1; accent-color: var(--ink); min-width: 0; }
.fx-range output { min-width: 5.5rem; text-align: right; font-size: 0.9rem; }
.fx-foot { border-top: 1px solid var(--line); padding-top: 0.75rem; }
.fx-foot b { font: 750 1.15rem/1 var(--f-display); font-stretch: 108%; }
.active-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; flex: 1; min-width: 0; }
.chip-x { background: color-mix(in srgb, var(--sky) 14%, var(--surface)); border-color: transparent; font-size: 0.82rem; padding: 0.4rem 0.7rem; }
.fx-grid .m img { height: 160px; }
.fx-card .pop .ask { margin-top: 0.2rem; }
::view-transition-group(*) { animation-duration: 320ms; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
@media (max-width: 640px) { .fx-lab { min-width: 0; width: 100%; } .fx-seg { width: 100%; } }
[hidden] { display: none !important; }
.fx-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.5rem), 1fr)); }
/* Logo in der Überschrift der Maschinensuche */
.h1-logo img { display: inline-block; height: 1.2em; width: auto; vertical-align: -0.24em; margin-left: 0.15em; }
/* Maschinenkarten wachsen mit den Daten mit – kein Scrollen im Aufklapper */
.fx-card { grid-template-rows: auto 1fr; }
.fx-card > img { grid-row: 1; grid-column: 1; }
.fx-card > div { grid-row: 2; grid-column: 1; }
.fx-card .pop { position: relative; inset: auto; grid-row: 1 / 3; grid-column: 1; overflow: visible; }
@media (hover: none) { .fx-card .pop { grid-row: 3; } }
/* Startseite: dreiteilige Überschrift */
.hero-h1 { font-size: clamp(1.75rem, 3.6vw, 3.1rem); }
.hero-h1 span { display: block; white-space: nowrap; }
.hero-h1 .hl { white-space: normal; }
.hero-h1 .hl { color: var(--ink); }
.hero-claim { font: 700 1.05rem/1.4 var(--f-display); font-stretch: 108%; color: var(--sky-text); letter-spacing: 0.01em; }
@media (max-width: 520px) { .hero-h1 span { white-space: normal; } .hero-h1 { font-size: clamp(1.75rem, 8vw, 2.2rem); } }

/* Böhm-B: Zahnräder drehen beim Darüberfahren, Info klappt auf */
.brand { position: relative; }
.bmark { position: relative; display: block; width: 30px; aspect-ratio: 272 / 366; flex: none; transform-origin: 0 30%; transition: transform 420ms cubic-bezier(.2, .8, .2, 1); z-index: 2; }
.bmark img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bmark .g1 { transform-origin: 55.7% 25.27%; animation: gear-ccw 3.2s linear infinite paused; }
.bmark .g2 { transform-origin: 60.85% 69.4%; animation: gear-cw 3.2s linear infinite paused; }
@keyframes gear-ccw { to { transform: rotate(-360deg); } }
@keyframes gear-cw { to { transform: rotate(360deg); } }
.brand-txt { transition: transform 420ms cubic-bezier(.2, .8, .2, 1); }
.brand-pop { position: absolute; left: 0; top: calc(100% + 2.4rem); width: max-content; max-width: min(22rem, calc(100vw - 32px)); padding: 0.85rem 1rem;
  background: var(--band); color: var(--band-muted); border-radius: 10px; font: 400 0.92rem/1.45 var(--f-body); box-shadow: 0 18px 40px -18px rgba(29, 15, 79, 0.7);
  opacity: 0; transform: translateY(-8px) scale(0.98); transform-origin: 1.5rem 0; pointer-events: none; transition: opacity 200ms ease, transform 320ms cubic-bezier(.2, .8, .2, 1); z-index: 30; }
.brand .brand-pop b { display: inline; font: 600 0.92rem/1.45 var(--f-body); font-stretch: normal; letter-spacing: 0; color: var(--band-fg); }
.brand-pop::before { content: ""; position: absolute; left: 1.4rem; top: -6px; width: 12px; height: 12px; background: var(--band); transform: rotate(45deg); border-radius: 2px; }
.brand:hover .bmark, .brand:focus-visible .bmark { transform: scale(2); }
.brand:hover .brand-txt, .brand:focus-visible .brand-txt { transform: translateX(34px); }
.brand:hover .bmark img, .brand:focus-visible .bmark img { animation-play-state: running; }
.brand:hover .brand-pop, .brand:focus-visible .brand-pop { opacity: 1; transform: none; transition-delay: 120ms; }
@media (hover: none) { .brand-pop { display: none; } }
@media (prefers-reduced-motion: reduce) { .bmark img { animation: none !important; } .bmark, .brand-txt { transition: none; } }
.brand-txt b { font-stretch: 108%; font-size: 1.1rem; letter-spacing: 0; white-space: nowrap; }
@media (max-width: 480px) { .brand-txt b { font-size: 0.95rem; } }
.nav a { padding: 0.5rem 0.55rem; font-size: 0.93rem; }
.site-head .wrap { gap: 1rem; }
@media (min-width: 861px) and (max-width: 1240px) {
  .site-head .wrap { flex-wrap: wrap; gap: 0.25rem 1rem; padding-block: 0.6rem; }
  .nav { order: 3; width: 100%; margin-left: -0.55rem; }
  .site-head .btn { margin-left: auto; }
}

/* Einstiegskacheln: passendes Maschinenbild erscheint beim Darüberfahren */
.needs a { position: relative; overflow: hidden; isolation: isolate; }
.needs a > :not(.need-img) { position: relative; z-index: 2; max-width: 64%; }
.needs a::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--surface) 38%, color-mix(in srgb, var(--surface) 55%, transparent) 62%, transparent 85%); }
.need-img { position: absolute; z-index: 0; right: -6%; bottom: -4%; height: 108%; width: auto; max-width: none;
  opacity: 0; transform: translateX(14px) scale(0.94); transform-origin: right bottom;
  transition: opacity 260ms ease, transform 480ms cubic-bezier(.2, .8, .2, 1); }
.needs a:hover .need-img, .needs a:focus-visible .need-img { opacity: 1; transform: none; }
.needs a:hover { background: var(--surface); }
@media (hover: none) { .need-img { opacity: 0.9; transform: none; } }
@media (max-width: 480px) { .needs a > :not(.need-img) { max-width: 70%; } }
@media (prefers-reduced-motion: reduce) { .need-img { transition: opacity 150ms ease; transform: none; } }
.needs a > b:not(.need-img) { max-width: 100%; }
.needs a > span:not(.need-img) { max-width: 58%; }
.need-img { right: 4%; bottom: 8%; height: 66%; max-width: 46%; object-fit: contain; object-position: right bottom; }
.needs a::after { background: linear-gradient(90deg, var(--surface) 34%, color-mix(in srgb, var(--surface) 40%, transparent) 56%, transparent 72%); }

/* RoboBox-Karten: Video-Link + Anfrage */
.card-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.45rem; }
.card-links .ask { font-size: 0.85rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.card-links .ask:hover { text-decoration: underline; }
.vid-link { display: inline-flex; align-items: center; gap: 0.4rem; font: 600 0.85rem/1 var(--f-body); color: #c4302b; text-decoration: none; padding: 0.4rem 0.65rem; border-radius: 999px; background: color-mix(in srgb, #c4302b 10%, var(--surface)); transition: background-color 150ms, transform 100ms; }
.vid-link:hover { background: color-mix(in srgb, #c4302b 18%, var(--surface)); }
.vid-link:active { transform: scale(0.96); }
.pop .card-links { margin-top: 0.15rem; }
div.m.pop-host { cursor: default; }
.vid-lg { font-size: 0.95rem; padding: 0.75rem 1rem; align-self: center; }

/* PLZ → Ansprechpartner */
.plz-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.75rem; align-items: center; }
.ap { display: flex; align-items: center; gap: 0.65rem; min-height: 3rem; min-width: 0; padding: 0.35rem 0.6rem; border-radius: var(--r); border: 1px dashed var(--line); }
.ap-empty { font-size: 0.85rem; color: var(--muted); line-height: 1.3; }
.ap.on { border: 1px solid color-mix(in srgb, var(--ink) 30%, var(--line)); background: color-mix(in srgb, var(--ink) 5%, var(--surface)); animation: ap-in 280ms cubic-bezier(.2, .8, .2, 1); }
.ap img { width: 2.4rem; height: 2.4rem; border-radius: 50%; object-fit: cover; object-position: top; flex: none; background: #dfe4ee; }
.ap > span { display: grid; gap: 0.05rem; min-width: 0; }
.ap small { font: 500 0.66rem/1.2 var(--f-data); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ap b { font-size: 0.95rem; line-height: 1.2; }
.ap-c { font-size: 0.82rem; color: var(--muted); overflow-wrap: anywhere; }
.ap-c a { color: var(--ink); text-decoration: none; }
.ap-c a:hover { text-decoration: underline; }
@keyframes ap-in { from { opacity: 0; transform: translateY(4px); } }
@media (max-width: 420px) { .plz-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ap.on { animation: none; } }

/* Automation: SPINNER-automation-Logo im Seitenkopf */
.hero-brand { grid-template-columns: minmax(0, 1fr) auto; column-gap: 3rem; align-items: center; }
.hero-brand > :not(.brand-plate) { grid-column: 1; }
.brand-plate img { display: block; width: 100%; height: auto; transition: transform 300ms cubic-bezier(.2, .8, .2, 1); }
.brand-plate { grid-column: 2; grid-row: 1 / span 3; width: clamp(13rem, 22vw, 18rem); display: grid; gap: 0.35rem; text-decoration: none; }
.brand-plate img { filter: drop-shadow(0 12px 22px rgba(29, 15, 79, 0.14)); }
@media (max-width: 760px) {
  .hero-brand { grid-template-columns: 1fr; }
  .brand-plate { grid-column: 1; grid-row: auto; width: 12rem; order: -1; margin-bottom: 0.5rem; }
}

/* Logo-Link mit animiertem Pfeil */
:root { --spinner-red: #e61d25; }
.brand-plate:hover img { transform: translateY(-3px) scale(1.02); }
.plate-cap { display: flex; align-items: flex-end; gap: 0.35rem; font: 600 0.88rem/1.25 var(--f-body); color: var(--spinner-red); }
.brand-plate:hover .plate-cap > span { text-decoration: underline; }
.plate-arrow { flex: none; margin-bottom: 0.15rem; overflow: visible; }
.plate-arrow path { fill: none; stroke: var(--spinner-red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; }
.pa-line { animation: pa-line 2.6s cubic-bezier(.45, 0, .2, 1) infinite; }
.pa-head { animation: pa-head 2.6s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes pa-line { 0% { stroke-dashoffset: 100; opacity: 1; } 40%, 78% { stroke-dashoffset: 0; opacity: 1; } 92%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes pa-head { 0%, 34% { stroke-dashoffset: 100; opacity: 1; } 50%, 78% { stroke-dashoffset: 0; opacity: 1; } 92%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pa-line, .pa-head { animation: none; stroke-dashoffset: 0; } }
.plate-cap { margin-top: -0.2rem; padding-left: 0.4rem; }
.plate-cap > span { padding-bottom: 0.1rem; }

/* Kopfzeile: beim Scrollen nur Logo + Schriftzug, beim Darüberfahren wieder voll */
.site-head, .site-head .wrap, .brand, .nav, .site-head .btn { transition: background-color 280ms ease, border-color 280ms ease, min-height 320ms cubic-bezier(.2, .8, .2, 1), padding 320ms cubic-bezier(.2, .8, .2, 1), box-shadow 280ms ease, opacity 200ms ease, transform 320ms cubic-bezier(.2, .8, .2, 1), visibility 0s; }
@media (hover: hover) {
  .head-compact .site-head:not(:hover):not(:focus-within) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .head-compact .site-head:not(:hover):not(:focus-within) .wrap { min-height: 4.25rem; justify-content: center; }
  .head-compact .brand-pop { display: none; }
  .head-compact .site-head:not(:hover):not(:focus-within) .brand {
    padding: 0.4rem 1rem 0.4rem 0.55rem; border-radius: 999px; background: var(--head);
    backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
    box-shadow: 0 0 0 1px var(--line), 0 10px 26px -14px rgba(29, 15, 79, 0.45); }
  .head-compact .site-head:not(:hover):not(:focus-within) .nav,
  .head-compact .site-head:not(:hover):not(:focus-within) .btn { position: absolute; right: 0; opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none; transition-delay: 0s, 0s, 0s, 0s, 0s, 0s, 0s, 0s, 280ms; }
  body::before { transition: background-color 280ms ease; }
  .head-compact body::before { background: transparent; }
}
@media (prefers-reduced-motion: reduce) { .site-head, .site-head .wrap, .brand, .nav, .site-head .btn { transition: none; } }

/* Eingeklappte Kopfzeile: rollt beim Darüberfahren nach unten auf, Menüpunkte nacheinander.
   Alles über Transitions – fährt man mittendrin weg, läuft es aus der aktuellen Stellung zurück. */
@media (hover: hover) {
  .head-compact .site-head:is(:hover, :focus-within) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .head-compact .site-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--head);
    backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
    box-shadow: 0 10px 24px -18px rgba(29, 15, 79, 0.5); transform-origin: top; transform: scaleY(0); opacity: 0;
    transition: transform 380ms cubic-bezier(.2, .8, .2, 1), opacity 200ms ease; }
  .head-compact .site-head:is(:hover, :focus-within)::before { transform: none; opacity: 1; }
  .head-compact .site-head .nav a { transition: opacity 220ms ease, transform 320ms cubic-bezier(.2, .8, .2, 1), background-color 150ms; }
  .head-compact .site-head:not(:hover):not(:focus-within) .nav a { opacity: 0; transform: translateY(-8px); }
  .head-compact .site-head:is(:hover, :focus-within) .nav a:nth-child(2) { transition-delay: 40ms; }
  .head-compact .site-head:is(:hover, :focus-within) .nav a:nth-child(3) { transition-delay: 80ms; }
  .head-compact .site-head:is(:hover, :focus-within) .nav a:nth-child(4) { transition-delay: 120ms; }
  .head-compact .site-head:is(:hover, :focus-within) .nav a:nth-child(5) { transition-delay: 160ms; }
  .head-compact .site-head:is(:hover, :focus-within) .nav a:nth-child(6) { transition-delay: 200ms; }
  .head-compact .site-head:is(:hover, :focus-within) .btn { transition-delay: 0s, 0s, 0s, 0s, 0s, 0s, 240ms, 240ms, 0s; }
}

/* Nach-oben-Knopf */
.to-top { position: fixed; z-index: 20; right: max(24px, calc(env(safe-area-inset-right, 0px) + 16px)); bottom: calc(max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px)) + 4.4rem);
  width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  background: var(--head); color: var(--ink); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 10px 24px -14px rgba(29, 15, 79, 0.55);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.9);
  transition: opacity 220ms ease, transform 320ms cubic-bezier(.2, .8, .2, 1), visibility 0s 320ms, background-color 150ms; }
.head-compact .to-top { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--surface); }
.to-top:hover svg { transform: translateY(-2px); }
.to-top svg { transition: transform 200ms ease; }
.to-top:active { transform: scale(0.92); }
.to-top:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
@media (max-width: 760px) { .to-top { right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px)); width: 2.75rem; height: 2.75rem; } }
@media (prefers-reduced-motion: reduce) {
  .head-compact .site-head:is(:hover, :focus-within), .head-compact .site-head:is(:hover, :focus-within) * { animation: none !important; }
  .to-top { transition: opacity 150ms ease, visibility 0s; transform: none; }
}

/* Roboterarm drückt „Automationslösungen ansehen“ – nur beim Darüberfahren mit der Maus.
   Gelenkkette: Oberarm (Schulter) → Unterarm (Ellbogen) → Handgelenk mit Greifer, je eine eigene Bildebene.
   Der ganze Arm ist um die Greiferspitze flach gelegt, er liegt rechts neben dem Knopf auf Knopfhöhe und verdeckt keinen Text. */
.band { overflow: hidden; }
.band .btn-row:has(.press) { margin-top: 0.75rem; }
.press { position: relative; display: inline-block; --arm: 22rem; --t: 2.6s; --ease: cubic-bezier(.65, 0, .35, 1); }
.press-btn { position: relative; z-index: 1; }
.press-arm { position: absolute; z-index: 2; width: var(--arm); aspect-ratio: 900 / 353; pointer-events: none;
  /* Greiferspitze (3,7 % / 99,4 % des Bildes) trifft den Knopf bei 82 % seiner Breite */
  left: calc(82% - var(--arm) * 0.037); bottom: calc(100% - 0.6rem);
  transform-origin: 3.7% 99.4%; rotate: 19deg; opacity: 0; visibility: hidden;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45)); transition: opacity 200ms ease, visibility 0s 200ms; }
.rb { position: absolute; inset: 0; display: block; }
.rb img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.rb-u { transform-origin: 87.78% 31.16%; transform: rotate(9deg); }    /* Schulter */
.rb-f { transform-origin: 46.89% 71.39%; transform: rotate(-20deg); }  /* Ellbogen */
.rb-h { transform-origin: 23.56% 75.92%; transform: rotate(26deg); }   /* Handgelenk */
/* Hineinfahren: Schulter → Ellbogen → Handgelenk nacheinander. Herausfahren: Handgelenk → Ellbogen → Schulter.
   Transitions laufen immer von der aktuellen Stellung aus – der Arm lässt sich jederzeit umkehren. */
.rb-u, .rb-f, .rb-h { transition: transform 520ms var(--ease); }
.rb-u { transition-delay: 240ms; } .rb-f { transition-delay: 120ms; } .rb-h { transition-delay: 0ms; }
.press-arm { transition: opacity 220ms ease 360ms, visibility 0s 580ms, translate 400ms var(--ease) 240ms; translate: 6% 4%; }
@media (hover: hover) {
  .press:hover .press-arm { opacity: 1; visibility: visible; translate: 0 0; transition: opacity 200ms ease, visibility 0s, translate 400ms var(--ease); }
  .press:hover .rb-u { transform: rotate(0deg); transition-delay: 60ms; }
  .press:hover .rb-f { transform: rotate(0deg); transition-delay: 260ms; }
  .press:hover .rb-h { transform: rotate(0deg); transition-delay: 460ms; }
  .press:hover .press-btn { animation: btn-press 1.6s ease both; }
}
@keyframes btn-press {
  0%, 58%  { transform: none; box-shadow: 0 0 0 0 rgba(42, 167, 224, 0); }
  64%, 76% { transform: translateY(2px) scale(0.96); box-shadow: 0 0 0 6px rgba(42, 167, 224, 0.45); }
  100% { transform: none; box-shadow: 0 0 0 12px rgba(42, 167, 224, 0); }
}

@media (prefers-reduced-motion: reduce) { .press-arm { display: none; } .press.run .press-btn { animation: none; } }
/* Logo + Schriftzug etwas größer */
.bmark { width: 38px; }
.brand-txt b { font-size: 1.3rem; }
.brand:hover .brand-txt, .brand:focus-visible .brand-txt { transform: translateX(42px); }
@media (min-width: 861px) { .nav a { padding: 0.5rem 0.42rem; font-size: 0.9rem; } .nav { gap: 0.15rem; } }
@media (max-width: 480px) { .bmark { width: 32px; } .brand-txt b { font-size: 1.05rem; } }
/* B beim Darüberfahren moderater vergrößern (war 2×) */
.brand:hover .bmark, .brand:focus-visible .bmark { transform: scale(1.5); }
.brand:hover .brand-txt, .brand:focus-visible .brand-txt { transform: translateX(22px); }

/* ---- Audit-Korrekturen ---- */
/* Karten dürfen durch lange Wörter nicht breiter als ihre Spalte werden */
.m { grid-template-columns: minmax(0, 1fr); }
.m p, .m h3, .tiles b { overflow-wrap: anywhere; hyphens: auto; }
/* Sehr schmale Handys (≤ 380 px): Firmenname passt in die Kopfzeile */
@media (max-width: 380px) { .bmark { width: 28px; } .brand-txt b { font-size: 0.9rem; } .brand { gap: 0.45rem; } }
/* Touch: größere Checkboxen und Trefferflächen im Formular und bei den Adressen */
@media (pointer: coarse) {
  .form fieldset label { padding-block: 0.45rem; }
  .form input[type="checkbox"] { width: 1.25rem; height: 1.25rem; }
  .offices address { line-height: 1.9; }
}
/* Touch: Links nicht doppelt (Karte + Merkmal-Kacheln) */
@media (hover: none) { .pop .card-links { display: none; } }
/* Adressen: Fließtext statt Grid – sonst bricht jede Telefonnummer/E-Mail in eine eigene Zeile */
.offices address { display: block; }
.offices address b { display: block; margin-bottom: 0.2rem; }
.nw, a[href^="tel:"] { white-space: nowrap; }

/* Startseite Automation-Band: Kurzvideo RoboBox */
.rbx-stage { position: relative; padding-bottom: 4.5rem; }
.rbx-inset { position: absolute; z-index: 3; left: 0; top: auto; bottom: 0; width: 38%; cursor: pointer; --frame: 16 / 9; }
@media (max-width: 860px) { .rbx-inset { width: 55%; } }


/* ================= Apple-Design-Überarbeitung ================= */
/* 1) Sofortige Rückmeldung beim Drücken auf alles Klickbare */
a, button { -webkit-tap-highlight-color: transparent; }
.nav a, .m, .tile, .needs a, .seg button, .fx-seg button, .link-btn, .brand-plate, .card-links a, .site-foot a { transition-property: transform, background-color, border-color, box-shadow, color, opacity; }
.nav a:active, .seg button:active, .fx-seg button:active, .link-btn:active { transform: scale(0.95); transition-duration: 90ms; }
.m:active, .tile:active, .needs a:active, .brand-plate:active { transform: scale(0.985); transition-duration: 90ms; }

/* 3) Formular: Hinweis direkt am Feld */
.field.bad input { border-color: #c4302b; box-shadow: 0 0 0 3px rgba(196, 48, 43, 0.12); }
.field.bad::after { content: attr(data-msg); font-size: 0.82rem; color: #b0261f; }
.field.good input { border-color: #2f8f5b; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%232f8f5b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.6rem center; background-size: 1.1rem; padding-right: 2.2rem; }

/* 4) Transparenz reduzieren / Kontrast erhöhen – vollständig */
@media (prefers-reduced-transparency: reduce) {
  .site-head, .callbar, .to-top, .pop, .head-compact .site-head::before,
  .head-compact .site-head:not(:hover):not(:focus-within) .brand { background: var(--surface) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
@media (prefers-contrast: more) {
  :root { --muted: #34323f; --line: #8b8999; --sky-text: #064e72; --band-muted: #e4e0ff; }
  .site-head, .callbar, .to-top, .pop, .head-compact .site-head::before { background: var(--surface) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-color: var(--fg) !important; }
  .m, .tile, .fx-bar, .chip, .btn-ghost, .field input, .field select, .field textarea { border-color: var(--fg); }
}

/* 5) Pfeil am SPINNER-automation-Logo: zweieinhalb Durchläufe, dann bleibt er stehen */
.pa-line, .pa-head { animation-iteration-count: 2.5; animation-fill-mode: forwards; }

/* 6) Nur ein Anfrage-Knopf zur Zeit: Sprechblase erst, wenn die Kopfzeile eingeklappt ist */
.bubble { opacity: 0; visibility: hidden; translate: 0 12px; transition: opacity 220ms ease, translate 320ms cubic-bezier(.2, .8, .2, 1), visibility 0s 320ms, background-color 150ms, transform 220ms cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) { .head-compact .bubble { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; } }
@media (hover: hover) { .to-top { bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px)); right: calc(max(24px, calc(env(safe-area-inset-right, 0px) + 16px)) + 9.5rem); } }
@media (hover: hover) and (max-width: 760px) { .to-top { right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px)); } }

/* 7) Ganze RoboBox-Karte anklickbar (Anfrage); Video- und Anfrage-Knopf liegen darüber */
.card-hit { color: inherit; text-decoration: none; }
.card-hit::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
div.m.pop-host { cursor: pointer; }
div.m.pop-host .card-links { position: relative; z-index: 4; }
div.m.pop-host .pop { pointer-events: none; }
div.m.pop-host .pop .card-links { pointer-events: auto; }

/* 8) Kopfzeile: weicher Schatten nur, wenn Inhalt darunter liegt – keine harte Linie */
.site-head { border-bottom-color: transparent; }
.scrolled .site-head { box-shadow: 0 10px 24px -18px rgba(29, 15, 79, 0.45); }
@media (hover: hover) { .head-compact .site-head:not(:hover):not(:focus-within) { box-shadow: none; } }

@media (prefers-reduced-motion: reduce) {
  .rb-u, .rb-f, .rb-h, .press-arm, .head-compact .site-head::before, .head-compact .site-head .nav a, .bubble { transition: none !important; }
  .nav a:active, .m:active, .tile:active, .needs a:active { transform: none; }
}
/* Eingeklappte Logo-Kapsel: B kleiner und mit Abstand zur Rundung, damit es ganz im Hintergrund liegt */
@media (hover: hover) {
  .head-compact .site-head:not(:hover):not(:focus-within) .brand { padding: 0.45rem 1.2rem 0.45rem 1.05rem; gap: 0.6rem; }
  .head-compact .site-head:not(:hover):not(:focus-within) .bmark { width: 28px; }
  .head-compact .site-head:not(:hover):not(:focus-within) .brand-txt b { font-size: 1.15rem; }
}
.ap img.ap-logo { object-fit: contain; object-position: center; background: var(--surface); padding: 4px; border: 1px solid var(--line); }

/* LinkedIn-Link in Kopf- und Fußzeile */
.social { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; font-weight: 600; font-size: 0.9rem; border-radius: 999px; transition: background-color 150ms, color 150ms, transform 90ms; }
.social:active { transform: scale(0.95); }
.head-social { color: var(--ink); padding: 0.55rem; margin-left: 0.25rem; flex: none; }
.head-social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.head-social:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.site-foot .social { color: var(--band-fg); padding: 0.3rem 0.6rem 0.3rem 0.4rem; background: color-mix(in srgb, var(--band-fg) 10%, transparent); }
.site-foot .social:hover { background: color-mix(in srgb, var(--band-fg) 18%, transparent); text-decoration: none; }
@media (hover: hover) {
  .head-compact .site-head:not(:hover):not(:focus-within) .head-social { position: absolute; right: 0; opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (max-width: 760px) { .head-social { margin-left: auto; } }
/* LinkedIn sitzt immer direkt vor dem Kontakt-Knopf bzw. rechts in der Logozeile */
@media (max-width: 1240px) { .site-head .head-social { margin-left: auto; } .site-head .head-social + .btn { margin-left: 0.25rem; } }
@media (max-width: 480px) { .brand-txt b { font-size: 0.95rem; } .head-social { padding: 0.35rem; margin-left: auto; } .site-head .wrap { flex-wrap: wrap; column-gap: 0.5rem; } }
@media (max-width: 380px) { .brand-txt b { font-size: 0.86rem; } .bmark { width: 26px; } }
.li-logo { width: 20px; height: 20px; border-radius: 3px; flex: none; }
.head-social .li-logo { width: 24px; height: 24px; }
.site-foot .bottom { align-items: center; }
/* LinkedIn-Logos: Bildmarke oben, Schriftzug unten (auf hellem Feld, damit das Blau auf Indigo lesbar bleibt) */
.li-logo, .head-social .li-logo { width: auto; height: 24px; border-radius: 0; }
.site-foot .social { background: #ffffff; padding: 0.45rem 0.8rem; border-radius: 6px; }
.site-foot .social:hover { background: #f1f2f4; }
.li-word { display: block; height: 18px; width: auto; }

/* ===== Maschinensuche v2: Kennzahlen-Eingaben, Bewertungs-Badges, kompakte Karten ===== */
.fx-group { border: 0; margin: 0; padding: 0.85rem 0 0; display: grid; gap: 0.85rem; border-top: 1px dashed var(--line); }
.fx-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr)); gap: 0.6rem; }
.fx-num { display: grid; gap: 0.3rem; }
.fx-num > span:first-child { font: 500 0.72rem/1 var(--f-data); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.fx-num-in { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); padding-right: 0.6rem; }
.fx-num-in:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 15%, transparent); }
.fx-num input { flex: 1; min-width: 0; font: 500 1rem/1 var(--f-data); padding: 0.65rem 0.7rem; border: 0; background: none; color: var(--fg); outline: none; }
.fx-num em { font: 500 0.8rem/1 var(--f-data); font-style: normal; color: var(--muted); }
.fx-hint { font-size: 0.82rem; color: var(--muted); }
.fx-tip { margin: 0; font-size: 0.95rem; color: var(--muted); }
.fx-legend { margin: 0; font-size: 0.82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: center; }
.fx-reset { padding: 0.55rem 1rem; }
.fit { display: inline-flex; align-items: center; gap: 0.35rem; font: 600 0.78rem/1.3 var(--f-body); padding: 0.3rem 0.55rem; border-radius: 4px; justify-self: start; }
.fit::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; flex: none; }
.fit-ok  { background: #e1f3e8; color: #1f6b41; }
.fit-opt { background: #fdf0d6; color: #8a5a00; }
.fit-chk { background: #f1e6fb; color: #6a2f9a; }
.chk-note { font-size: 0.78rem; color: #6a2f9a; }
.fx-card .key { font-size: 0.82rem; color: var(--sky-text); }
.card-links .ask-2 { font-weight: 500; color: var(--muted); }
article.m { color: var(--fg); }
.pop-host { position: relative; }
.pop-host .card-links { position: relative; z-index: 4; }
article.m.pop-host .pop { pointer-events: none; }
article.m.pop-host .pop .card-links { pointer-events: auto; }
.pop-toggle { display: none; }
/* Touch-Geräte: Karte kompakt – Bild, Name, Kurzdaten, Anfrage; alle Daten aufklappbar */
@media (hover: none) {
  .pop-host:not(.open) .pop { display: none; }
  .pop-toggle { display: inline-flex; justify-self: start; align-items: center; gap: 0.4rem; position: relative; z-index: 4; font: 600 0.88rem/1 var(--f-body); color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 0.9rem; min-height: 40px; cursor: pointer; }
  .pop-toggle::after { content: "▾"; transition: transform 200ms; }
  .pop-host.open .pop-toggle::after { transform: rotate(180deg); }
  .fx-card .pop { grid-row: 3; }
  .card-links a { padding-block: 0.55rem; }
}
@media (max-width: 640px) { .fx-grid { grid-template-columns: 1fr; } .fx-grid .m img { height: 140px; } }
.pop-figure .pop-toggle { position: absolute; left: 0.75rem; bottom: 0.75rem; background: var(--surface); } @media (hover: none) { .pop-figure.open .pop { position: static; } }

/* ===== Auftrag 11/2026: Menü für Handy & Tablet ===== */
.menu-btn, .nav .nav-x { display: none; }
@media (max-width: 860px) {
  .site-head .wrap { flex-wrap: wrap; column-gap: 0.5rem; row-gap: 0; padding-block: 0.5rem; min-height: 4rem; }
  .brand { margin-right: auto; min-width: 0; }
  .site-head .head-social { margin-left: 0; }
  .site-head .head-social + .btn { margin-left: 0; }
  .menu-btn { display: inline-flex; align-items: center; gap: 0.5rem; order: 2; min-height: 44px; padding: 0 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 0.95rem/1 var(--f-body); cursor: pointer; }
  .menu-btn:active { transform: scale(0.96); }
  .mb-ico, .mb-ico::before, .mb-ico::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 240ms cubic-bezier(.2, .8, .2, 1), opacity 160ms; }
  .mb-ico { position: relative; }
  .mb-ico::before, .mb-ico::after { content: ""; position: absolute; left: 0; }
  .mb-ico::before { top: -6px; } .mb-ico::after { top: 6px; }
  .menu-open .mb-ico { background: transparent; }
  .menu-open .mb-ico::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .mb-ico::after { transform: translateY(-6px) rotate(-45deg); }
  .site-head .head-social { order: 1; }
  .site-head .wrap > .btn { order: 1; }
  .nav { order: 3; width: 100%; margin: 0; flex-direction: column; gap: 0.15rem; overflow: hidden auto;
    max-height: 0; opacity: 0; visibility: hidden; transition: max-height 320ms cubic-bezier(.2, .8, .2, 1), opacity 200ms ease, padding 320ms cubic-bezier(.2, .8, .2, 1), visibility 0s 320ms; }
  .menu-open .nav { max-height: calc(100dvh - 5rem); opacity: 1; visibility: visible; padding-block: 0.5rem 0.75rem; transition-delay: 0s; }
  .nav a { display: flex; align-items: center; min-height: 48px; padding: 0 0.9rem; font-size: 1.05rem; color: var(--ink); border-radius: 12px; }
  .nav a[aria-current="page"] { background: color-mix(in srgb, var(--ink) 8%, transparent); }
  .menu-open.site-head { box-shadow: 0 18px 40px -24px rgba(29, 15, 79, 0.55); }
}
@media (max-width: 480px) {
  .site-head .head-social, .site-head .wrap > .btn { display: none; }
  .nav .nav-x { display: flex; border-top: 1px solid var(--line); border-radius: 0 !important; }
  .nav-x + .nav-x { border-top: 0; }
  .menu-btn .mb-txt { font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) { .nav, .mb-ico, .mb-ico::before, .mb-ico::after { transition: none !important; } }
/* Touch-Ziele */
@media (max-width: 760px) {
  .offices address a { display: inline-block; padding-block: 0.6rem; }
  .form fieldset label { min-height: 44px; }
  .form input[type="checkbox"] { width: 22px; height: 22px; flex: none; }
}
/* Kontaktformular: Einwilligung, Spamschutz, Status */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .consent .chk { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; line-height: 1.45; cursor: pointer; }
.form .consent input { margin-top: 0.15rem; width: 22px; height: 22px; flex: none; accent-color: var(--ink); }
.form-status.ok { background: #e1f3e8; color: #1f6b41; border-color: #b9dfc8; }
.form-status.err { background: #fdeaea; color: #8f1f1f; border-color: #f2c4c4; }
.form-status { padding: 0.85rem 1rem; border-radius: var(--r); border: 1px solid var(--line); }
.legal .todo { background: #fff4d6; border: 1px dashed #c99a1e; color: #5c4300; padding: 0.75rem 1rem; border-radius: var(--r); }
@media (max-width: 430px) {
  .menu-btn { width: 44px; padding: 0; justify-content: center; flex: none; }
  .menu-btn .mb-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand-txt b { font-size: clamp(0.72rem, 3.5vw, 0.95rem); }
  .site-head .brand { gap: 0.45rem; flex: 0 1 auto; }
  .site-head .brand-txt b { font-stretch: 100%; }
}
.fx-num, .fx-num-in { min-width: 0; }
.fx-num input { width: 100%; -moz-appearance: textfield; }
.fx-num input::-webkit-inner-spin-button, .fx-num input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* Maschinenkarten: Anfrage-Links nur einmal sichtbar */
/* gilt für Maschinensuche und Automation: Video/Anfrage nie doppelt */
@media (hover: hover) { .pop-host:is(:hover, :focus-within) > div:not(.pop) > .card-links { opacity: 0; visibility: hidden; } }
@media (hover: none) { .pop-host .pop .card-links { display: none; } }
@media (max-width: 640px) { .fx-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form .field { align-content: start; }

/* ===== heimatec-Karussell: kreist endlos (CSS), hält bei Zeiger/Fokus, Bild wird groß ===== */
.hc { position: relative; isolation: isolate; margin-top: 1rem; }
.hc::before { content: ""; position: absolute; inset: 0 0 2.5rem; z-index: -1; pointer-events: none;
  background: url(img/logo-heimatec.webp) center / min(92%, 1100px) auto no-repeat; opacity: 0.32; }
.hc-view { overflow-x: clip; overflow-y: visible; padding-block: 2.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hc-track { display: flex; width: max-content; animation: hc-run 64s linear infinite; }
.hc-set { display: flex; }
.hc-track:hover, .hc-track:focus-within { animation-play-state: paused; }
@keyframes hc-run { to { transform: translateX(-50%); } }
.hc-item { position: relative; flex: none; width: 16.5rem; height: 20rem; margin: 0 1.1rem 0 0; border-radius: 18px; overflow: hidden; cursor: zoom-in;
  background: linear-gradient(160deg, rgba(246, 247, 249, 0.72), rgba(227, 230, 235, 0.6)); backdrop-filter: blur(3px) saturate(140%); -webkit-backdrop-filter: blur(3px) saturate(140%);
  box-shadow: 0 0 0 1px var(--line), 0 10px 26px -20px rgba(29, 15, 79, 0.45);
  transition: transform 420ms cubic-bezier(.2, .8, .2, 1), box-shadow 420ms cubic-bezier(.2, .8, .2, 1); outline: none; }
.hc-item img { position: absolute; inset: 0.9rem 0.9rem 6.4rem; width: calc(100% - 1.8rem); height: calc(100% - 7.3rem); object-fit: contain;
  transition: transform 420ms cubic-bezier(.2, .8, .2, 1); }
.hc-item.photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hc-item figcaption { position: absolute; inset: auto 0 0; display: grid; gap: 0.2rem; padding: 0.75rem 0.9rem 0.85rem;
  background: color-mix(in srgb, #fff 58%, transparent); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); /* Kontrast geprüft ≥ 5,7 : 1 */
  border-top: 1px solid rgba(255, 255, 255, 0.6); }
.hc-item b { font: 750 0.94rem/1.2 var(--f-display); white-space: nowrap; font-stretch: 106%; color: var(--ink); }
.hc-item span { font-size: 0.82rem; line-height: 1.38; color: #353943; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hc-item:hover, .hc-item:focus-visible, .hc-item:focus { transform: scale(1.14); z-index: 2; box-shadow: 0 0 0 1px var(--ink), 0 24px 46px -22px rgba(29, 15, 79, 0.55); }
.hc-note { font-size: 0.85rem; margin: 0; }
@media (max-width: 640px) { .hc-item { width: 15rem; height: 18.5rem; } .hc-track { animation-duration: 54s; } }
/* Bewegung reduziert: kein Kreisen, stattdessen wischen; Kopie ausblenden */
@media (prefers-reduced-motion: reduce) {
  .hc-track { animation: none; }
  .hc-view { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; padding-inline: 0.2rem; }
  .hc-set[aria-hidden="true"] { display: none; }
  .hc-item { scroll-snap-align: start; transition: none; }
  .hc-item:is(:hover, :focus) { transform: none; }
}
@media (prefers-reduced-transparency: reduce) { .hc-item { background: #eef0f3; backdrop-filter: none; -webkit-backdrop-filter: none; } .hc-item figcaption { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; } }
.hc-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem 1.5rem; margin-top: 1.4rem; padding: 1.1rem 1.25rem;
  border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.hc-cta p { margin: 0; flex: 1 1 22rem; min-width: 0; color: var(--muted); }
.hc-cta b { color: var(--fg); }
.hc-item.photo figcaption { background: color-mix(in srgb, #fff 68%, transparent); }
/* Anschieben */
.hc-view { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.hc-view.hc-drag { cursor: grabbing; }
.hc-view.hc-drag .hc-track { animation-play-state: paused; }
.hc-item { cursor: inherit; }
.hc-item img { pointer-events: none; -webkit-user-drag: none; }
@media (prefers-reduced-motion: reduce) { .hc-view { cursor: auto; touch-action: auto; } }
.hc-drag .hc-item:hover { transform: none; box-shadow: 0 0 0 1px var(--line), 0 10px 26px -20px rgba(29, 15, 79, 0.45); }
/* Schriftzug AUTOMATION oben im Band – Stil wie das TTS, baut sich Buchstabe für Buchstabe auf */
.band-ghost { display: flex; justify-content: center; margin: -1.5rem 0 1.25rem; font: 800 clamp(2rem, 10.4vw, 13rem)/0.8 var(--f-display); font-stretch: 125%;
  letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.22); white-space: nowrap; pointer-events: none; user-select: none; overflow: hidden; padding-block: 0.06em; }
.band-ghost span { display: inline-block; transition: opacity 520ms ease, transform 640ms cubic-bezier(.2, .8, .2, 1), filter 520ms ease; }
.band-ghost.armed span { opacity: 0; transform: translateY(0.35em) scale(0.9); filter: blur(6px); transition-duration: 200ms; transition-delay: 0s; }
.band-ghost.armed.on span { opacity: 1; transform: none; filter: none; transition-duration: 520ms, 640ms, 520ms; transition-delay: calc(var(--i) * 85ms); }
/* TTS-Schriftzug oben im Spot-Band (gleiches Bauteil wie AUTOMATION) */
.spot > .band-ghost { margin: 0; padding-top: clamp(2.2rem, 5vw, 4rem); }
.spot > .band-ghost + .spot-grid { padding-top: 1.25rem; }
/* TTS + „NEXT GENERATION“ leicht rechts versetzt darunter, baut sich im Anschluss an TTS auf */
.ghost-stack { --g: clamp(2rem, 10.4vw, 13rem); display: block; }
.ghost-stack > div { display: flex; justify-content: center; }
.ghost-stack > .ghost-sub { justify-content: flex-start; padding-left: calc(50% - 0.42 * var(--g)); }  /* TTS ist ≈ 2,44 × g breit: Start beim 2. Buchstaben */
@media (max-width: 480px) { .ghost-stack > .ghost-sub { padding-left: calc(50% - 0.9 * var(--g)); } }
.ghost-sub { margin-top: 0.35em; font: 700 clamp(0.8rem, 2.1vw, 2.3rem)/1 var(--f-display); font-stretch: 112%; letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--sky) 62%, transparent); -webkit-text-stroke: 0; }
/* Pflichtfeld „Ich wünsche mir“: Hinweis über die ganze Breite */
.form fieldset.field { display: flex; }
.form fieldset.bad::after { flex-basis: 100%; }
.form fieldset.bad input[type="checkbox"] { box-shadow: none; outline: 2px solid rgba(196, 48, 43, 0.55); outline-offset: 1px; }
/* Personen: beim Darüberfahren kommt nur die Person nach vorn (3D), der Hintergrund bleibt */
.person-pic { position: relative; align-self: start; }
.person-pic .pop-out { position: absolute; inset: 0; height: 100%; background: none; border-radius: 0; pointer-events: none;
  transform-origin: 50% 100%; transition: transform 460ms cubic-bezier(.2, .8, .2, 1), filter 460ms cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .person:hover .pop-out { transform: scale(1.08) translateY(-3%); filter: drop-shadow(0 14px 14px rgba(29, 15, 79, 0.38)); }
}
@media (max-width: 420px) { .person-pic { max-width: 11rem; } }
/* Einstiegskacheln: Maschine füllt beim Darüberfahren das ganze Kästchen, Button ploppt auf */
.needs a { min-height: 13.5rem; align-content: start; }
.needs a > span:not(.need-img), .needs a > b:not(.need-img) { max-width: 100%; }
.need-img { inset: 0; right: 0; bottom: 0; width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: center; transform: scale(1.06); }
.needs a::after { background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 82%, transparent) 42%, color-mix(in srgb, var(--surface) 30%, transparent) 100%); opacity: 0; transition: opacity 260ms ease; }
.needs a:hover::after, .needs a:focus-visible::after { opacity: 1; }
@media (hover: none) { .needs a::after { opacity: 1; } }
.need-btn { margin-top: auto; justify-self: start; font-size: 0.9rem; padding: 0.6rem 0.95rem; font-style: normal; color: var(--ink-fg);
  opacity: 0; transform: translateY(10px) scale(0.82); transform-origin: left bottom; transition: opacity 220ms ease, transform 480ms cubic-bezier(.34, 1.56, .64, 1); }
.needs a:hover .need-btn, .needs a:focus-visible .need-btn { opacity: 1; transform: none; }
@media (hover: none) { .need-btn { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .need-btn { transition: opacity 150ms ease; transform: none; } .need-img { transform: none; } }
/* Fräsen/Drehen: auffälliger Button zur Maschinensuche – pulsierender Ring bis zum Darüberfahren */
.btn-find { position: relative; font-size: 1.08rem; padding: 0.9rem 1.4rem; gap: 0.6rem; box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--ink) 70%, transparent); }
.btn-find::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--sky); opacity: 0; animation: find-ring 2.4s ease-out infinite; pointer-events: none; }
.btn-find:hover { background: var(--sky); color: var(--band); transform: translateY(-2px); }
.btn-find:hover::before { animation: none; }
.btn-find svg { flex: none; }
@keyframes find-ring { 0% { transform: scale(0.96); opacity: 0.9; } 70% { transform: scale(1.16); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .btn-find::before { animation: none; } }
.needs .need-btn { font: 600 0.9rem/1.1 var(--f-body); letter-spacing: 0; color: var(--ink-fg); background: var(--ink); }  /* wie „Termin vor Ort vereinbaren“ */
.needs a::after { background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 74%, transparent) 40%, color-mix(in srgb, var(--surface) 18%, transparent) 100%); }
.btn-find { max-width: 100%; white-space: normal; text-align: left; }
@media (max-width: 400px) { .btn-find { font-size: 1rem; padding: 0.8rem 1.1rem; } }
.page-hero:has(.btn-find) { overflow-x: clip; }  /* der pulsierende Ring darf nicht über den Seitenrand hinausragen */
/* Icons: eigene Linien-Icons, Indigo auf hellblauem Plättchen */
.step-ico, .wish-ico { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; color: var(--ink);
  background: color-mix(in srgb, var(--sky) 16%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sky) 35%, transparent); flex: none; }
.step-ico svg, .wish-ico svg { width: 1.45rem; height: 1.45rem; }
.steps li { grid-template-rows: auto auto auto 1fr; }
.steps li::before { grid-row: 1; }
.steps .step-ico { margin: 0.1rem 0 0.2rem; }
/* Wunsch-Kacheln im Formular */
.form fieldset.field { gap: 0.6rem; }
.form fieldset .wish { flex: 1 1 15rem; display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; min-height: 0;
  transition: border-color 150ms, background-color 150ms, transform 100ms ease-out; }
.form .wish:active { transform: scale(0.985); }
.form .wish input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.form .wish:has(input:checked) { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, var(--surface)); }
.form .wish:has(input:checked) .wish-ico { background: var(--ink); color: var(--ink-fg); box-shadow: none; }
.form .wish:has(input:focus-visible) { outline: 2px solid var(--sky); outline-offset: 2px; }
.wish-txt { display: grid; gap: 0.1rem; min-width: 0; }
.wish-txt b { font: 600 0.95rem/1.2 var(--f-body); }
.wish-txt small { font-size: 0.8rem; color: var(--muted); line-height: 1.3; }
.form .wish::after { content: ""; margin-left: auto; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1.5px solid var(--line); flex: none; transition: background-color 150ms, border-color 150ms; }
.form .wish:has(input:checked)::after { background: var(--ink); border-color: var(--ink);
  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.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 80%; background-position: center; background-repeat: no-repeat; }
.form fieldset.bad .wish { border-color: #c4302b; }

/* ===== 11/2026: Maschinensuche – Kennzeichen auf einer Ebene, „prüfen“ in Rot ===== */
.fit-chk { background: #fde8e7; color: #b42318; }
.chk-note { color: #b42318; }
.fx-legend { display: grid; gap: 0.45rem; }
.fx-legend-row { display: flex; flex-wrap: nowrap; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; }
.fx-legend-row .fit { white-space: nowrap; flex: none; }
@media (max-width: 560px) { .fx-legend-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .fx-legend-row .fit { white-space: normal; font-size: 0.74rem; line-height: 1.2; padding: 0.35rem 0.45rem; gap: 0.3rem; align-items: center; } }
/* Kennzeichen jeder Karte immer an derselben Stelle: oben links auf dem Bild */
.fx-card { position: relative; }
.fx-card .fit { position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2; max-width: calc(100% - 1.4rem); box-shadow: 0 2px 8px -3px rgba(29, 15, 79, 0.35); }
/* Download Lieferprogramm */
.btn-dl { gap: 0.5rem; }
.btn-dl small { font: 500 0.75rem/1 var(--f-data); color: var(--muted); }
/* heimatec Standardhalter */
.hm-std { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1rem; }
@media (max-width: 640px) { .hm-std { grid-template-columns: 1fr; } }
/* Kontaktformular: 6 Wunsch-Kacheln, 3 je Reihe */
.form fieldset .wish { flex: 1 1 calc(33.33% - 0.6rem); }
@media (max-width: 900px) { .form fieldset .wish { flex-basis: calc(50% - 0.6rem); } }
@media (max-width: 560px) { .form fieldset .wish { flex-basis: 100%; } }
/* Gebrauchtmaschinen */
.used-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.used, .used-more > div { min-width: 0; }
.used { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.25rem 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1rem, 2.5vw, 1.75rem); }
.used-gal { display: grid; gap: 0.6rem; min-width: 0; }
.used-main { margin: 0; border-radius: 14px; overflow: hidden; background: #dfe2e7; aspect-ratio: 4 / 3; }
.used-main img { width: 100%; height: 100%; object-fit: cover; }
.used-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.used-th { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #dfe2e7; cursor: pointer; aspect-ratio: 1; transition: border-color 150ms, transform 100ms ease-out; }
.used-th img { width: 100%; height: 100%; object-fit: cover; }
.used-th[aria-pressed="true"] { border-color: var(--ink); }
.used-th:active { transform: scale(0.96); }
.used-body { display: grid; gap: 0.55rem; align-content: start; min-width: 0; }
.used-body h3 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.05; }
.used-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.used-badge { font: 600 0.78rem/1 var(--f-body); padding: 0.4rem 0.6rem; border-radius: 999px; background: #e1f3e8; color: #1f6b41; }
.used-badge + .used-badge { background: color-mix(in srgb, var(--sky) 14%, var(--surface)); color: var(--ink); }
.used-price { margin: 0.4rem 0 0.2rem; display: flex; align-items: baseline; gap: 0.5rem; }
.used-price b { font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--f-display); font-stretch: 110%; color: var(--ink); }
.used-price span { color: var(--muted); }
.used-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.used-facts div { background: var(--bg); padding: 0.8rem 1rem; display: grid; gap: 0.15rem; }
.used-facts b { font: 700 1.1rem/1.2 var(--f-display); }
.used-facts span { font-size: 0.82rem; color: var(--muted); }
.used-more { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.75rem; }
.used-more h4 { font: 500 0.78rem/1 var(--f-data); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky-text); margin: 0 0 0.7rem; }
.used-table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 0.95rem; }
.used-table th, .used-table td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.used-table th { font-weight: 600; white-space: nowrap; width: 1%; padding-right: 1.25rem; }
.used-list-aus { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.used-list-aus li { position: relative; padding-left: 1.4rem; }
.used-list-aus li::before { content: ""; position: absolute; left: 0.2rem; top: 0.55em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sky); }
.used-note { grid-column: 1 / -1; margin: 0; font-size: 0.82rem; color: var(--muted); }
.used-empty { background: var(--surface); border: 1px dashed var(--line); border-radius: 18px; padding: 2rem 1.5rem; display: grid; gap: 0.5rem; max-width: 46rem; }
@media (max-width: 860px) { .used, .used-more { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .used-facts { grid-template-columns: 1fr; } .used-table th { white-space: normal; width: 38%; } }
.used-table { table-layout: fixed; }
.used-table th { width: 34%; }
.used-table td, .used-table th { overflow-wrap: anywhere; hyphens: auto; }
@media (min-width: 561px) { .used-table th { width: 30%; } }
.hm-std { margin-top: 1.5rem; margin-bottom: 0; }

/* ===== GRIPPEX: Bild mit Lupe (Greifzangeneinsätze, Robot-Backen) ===== */
.gpx-pros { overflow: visible; }
.gpx-pros > li { position: relative; }
.gpx-pros > li:first-child { border-top-left-radius: var(--r); }
.gpx-pros > li:last-child { border-bottom-right-radius: var(--r); }
.gpx-pros > li:nth-child(3) { border-top-right-radius: var(--r); }
.gpx-pros > li:nth-child(4) { border-bottom-left-radius: var(--r); }
@media (max-width: 860px) {
  .gpx-pros > li:nth-child(3), .gpx-pros > li:nth-child(4) { border-radius: 0; }
  .gpx-pros > li:nth-child(2) { border-top-right-radius: var(--r); }
  .gpx-pros > li:nth-child(5) { border-bottom-left-radius: var(--r); }
}
@media (max-width: 520px) {
  .gpx-pros > li:nth-child(2), .gpx-pros > li:nth-child(5) { border-radius: 0; }
  .gpx-pros > li:first-child { border-top-right-radius: var(--r); }
  .gpx-pros > li:last-child { border-bottom-left-radius: var(--r); }
}
.gpx-zoom { cursor: zoom-in; outline-offset: -3px; }
.gpx-zoom:hover, .gpx-zoom:focus-visible { z-index: 20; }
.gpx-pros .zoom-hint { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.25rem; font-size: 0.78rem; color: var(--sky-text); }
.zi { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.zpop { position: absolute; z-index: 20; bottom: calc(100% - 0.4rem); display: flex; gap: 0.75rem; padding: 0.75rem; max-width: calc(100vw - 2rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 22px 48px rgba(22, 19, 43, 0.24);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.96); transform-origin: 30% 100%;
  transition: opacity 180ms 160ms, transform 280ms cubic-bezier(.2,.8,.2,1) 160ms, visibility 0s 440ms; cursor: default; }
.zl .zpop { left: 0; }
.zr .zpop { right: 0; transform-origin: 70% 100%; }
.gpx-zoom.below .zpop { bottom: auto; top: calc(100% - 0.4rem); transform-origin: 30% 0; }
.gpx-zoom:hover .zpop, .gpx-zoom:focus-visible .zpop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.zf { position: relative; margin: 0; flex: 0 1 auto; width: calc(var(--h) * var(--ar) * var(--k, 1)); container-type: inline-size; --fx: var(--fx0); --fy: var(--fy0); }
.zf img { width: 100%; height: auto; border-radius: calc(var(--r) - 2px); background: #fff; }
.zf figcaption { margin-top: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--fg); line-height: 1.35; }
.zf .lens { position: absolute; left: calc(var(--fx) * 100%); top: calc(var(--fy) * 100cqw / var(--ar)); width: 7rem; height: 7rem; margin: -3.5rem 0 0 -3.5rem;
  border-radius: 50%; border: 3px solid #fff; box-sizing: border-box; background-color: #fff; background-repeat: no-repeat; background-origin: border-box;
  background-size: calc(100cqw * var(--z)) auto;
  background-position: calc(3.5rem - var(--fx) * 100cqw * var(--z)) calc(3.5rem - var(--fy) * 100cqw / var(--ar) * var(--z));
  box-shadow: 0 0 0 1px rgba(22, 19, 43, 0.25), 0 12px 26px rgba(22, 19, 43, 0.35); pointer-events: none;
  transform: scale(0.3); opacity: 0; transition: transform 320ms cubic-bezier(.2,.8,.2,1) 120ms, opacity 160ms 120ms, left 140ms, top 140ms, background-position 140ms; }
.gpx-zoom:hover .lens, .gpx-zoom:focus-visible .lens, .gpx-zoom.open .lens { transform: none; opacity: 1; }
@media (hover: none) {
  .gpx-zoom { cursor: default; }
  .gpx-pros .zoom-hint { display: none; }
  .gpx-zoom .pop-toggle { margin-top: 0.4rem; }
  .zpop { position: static; display: none; flex-wrap: wrap; margin-top: 0.6rem; padding: 0; max-width: none; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .gpx-zoom.open .zpop { display: flex; }
  .zf { width: min(100%, calc(var(--h) * var(--ar))); }
}
@media (prefers-reduced-motion: reduce) { .zpop, .zf .lens { transition: none; } }

/* ===== heimatec U-Tec: gemeinsamer Bildhintergrund, Winkelkopf fächert die Aufnahmen auf ===== */
.ut-stage { position: relative; aspect-ratio: 1212 / 1000; max-width: 100%; overflow: hidden; background: #6d6e70; }
.m .ut-stage img { position: absolute; height: auto; padding: 0; margin: 0; object-fit: fill; transition: none; transform: none; }
.m .ut-stage .ut-bg { inset: 0; width: 100%; height: 100%; }
.m .ut-stage .ut-ax { filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35)); }
.m .ut-stage .ut-kopf { filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.3)); }
.m .ut-stage .ut-a { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.2);
  transition: transform 520ms cubic-bezier(.2,.8,.2,1) calc((4 - var(--i)) * 50ms), opacity 220ms calc((4 - var(--i)) * 50ms); }
.ut-line, .ut-arc { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ut-arc path { fill: none; stroke: #dcdddd; stroke-width: 1.3px; vector-effect: non-scaling-stroke; }
.ut-line path { fill: none; stroke: #2c8c92; stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 200ms; }
.ut-anim:hover .ut-a, .ut-anim:focus-within .ut-a, .ut-anim.on .ut-a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 110ms); }
.ut-anim:hover .ut-line path, .ut-anim.on .ut-line path { stroke-dashoffset: 0; transition: stroke-dashoffset 420ms 300ms; }
@media (hover: hover) { .ut-anim { cursor: zoom-in !important; } }
@media (prefers-reduced-motion: reduce) {
  .m .ut-stage .ut-a { opacity: 1; transform: none; transition: none; }
  .ut-line path { stroke-dashoffset: 0; transition: none; }
}

/* ===== Gebrauchtmaschinen: nur ein Button – an der Maschine, leuchtet ===== */
.btn-glow { animation: btn-glow 2.4s ease-in-out infinite; }
.btn-glow:hover, .btn-glow:focus-visible { animation: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--sky) 35%, transparent); }
@keyframes btn-glow {
  0%, 100% { box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--ink) 70%, transparent); }
  50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--sky) 30%, transparent), 0 0 34px 10px color-mix(in srgb, var(--sky) 65%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .btn-glow { animation: none; } }

/* ===== RoboBox: Original-Schriftzüge als Überschriften ===== */
.robo-h2 { margin: 0; line-height: 1; }
.robo-h2 img { display: block; height: clamp(2rem, 3.4vw, 2.75rem); width: auto; }
.group-head:has(.robo-h2) { align-items: flex-end; }
.robo-h { line-height: 1; margin-bottom: 0.15rem; }
.robo-h .card-hit, .pop-title.robo-h { display: inline-flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; text-decoration: none; }
.m .robo-h .robo-logo, .m:hover .robo-h .robo-logo { display: inline-block; height: clamp(1.6rem, 2.5vw, 2.1rem); width: auto; max-width: 100%; padding: 0; vertical-align: middle; object-fit: contain; transition: none; transform: none; }

/* ===== 11/2026: Beschriftungen, die in eine Zeile passen, auch in einer Zeile ===== */
p.one { max-width: none; }
@media (min-width: 1300px) { .brand-plate { grid-template-columns: minmax(0, 1fr); } .plate-cap { white-space: nowrap; justify-self: unsafe end; } }
@media (max-width: 760px) { .plate-cap { width: max-content; max-width: calc(100vw - 2.5rem); } .plate-arrow { width: 40px; height: 37px; } }
.needs .need-btn { max-width: none; white-space: nowrap; }
@media (max-width: 560px) { .fx-legend-row { display: flex; flex-wrap: wrap; } .fx-legend-row .fit { white-space: nowrap; } }
.person { grid-template-columns: 9rem minmax(0, 1fr); }
@media (max-width: 1000px) { .people { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } .person img, .person-pic { max-width: 11rem; } }
.btn-dl small { white-space: nowrap; }
.tiles li { padding-inline: 0.4rem; }
.tiles li > span { letter-spacing: 0.02em; }
@media (max-width: 360px) { .btn-find { padding-inline: 1rem; } }
@media (max-width: 560px) {
  .used-table, .used-table tbody, .used-table tr, .used-table th, .used-table td { display: block; width: auto; }
  .used-table th { white-space: nowrap; border-bottom: 0; padding-bottom: 0; }
}
.tiles b { letter-spacing: -0.01em; }
@media (max-width: 360px) { .person dl { column-gap: 0.45rem; } .person dt { letter-spacing: 0.03em; } }
@media (min-width: 700px) { .h1-one { font-size: min(3.55rem, 4.4vw); white-space: nowrap; } }
@media (max-width: 699px) { .h1-one { font-size: min(2.2rem, 7.8vw); } }
.form-status { max-width: 100%; width: fit-content; }  /* Statusmeldung in einer Zeile, Kasten so breit wie der Text */

/* ===== 11/2026: Touch-Korrekturen (iPhone/Android) ===== */
/* Bild-Merkmale (Palettierer, Stangenlader): aufgeklappt sitzt der Knopf unter dem Bild statt auf den Merkmalen */
@media (hover: none) { .pop-figure.open .pop-toggle { position: static; margin: 0.75rem 0 0; } }
/* Am Handy eine Spalte, damit die Werte nicht mehrfach umbrechen */
@media (max-width: 600px) { .pop-figure .tiles { grid-template-columns: 1fr; } }
/* GRIPPEX-Lupe: Finger auf dem Bild bewegt die Lupe, die Seite bleibt stehen; außerhalb des Bildes wird normal gescrollt */
.gpx-zoom.open .zf:has(.lens) { touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
