/* ==========================================================================
   Heggli & Gubler AG – Website
   CI: Blau #0060A6, Orange #F39100 (aus dem Logo). Motive: Zinnen-Leiste des
   Logos, technische Zeichnung (Eckmarken, Masslinien, Schnittschraffur).
   Kein Inline-CSS (Content-Security-Policy), keine externen Ressourcen.
   ========================================================================== */

@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --blue: #0060A6;
  --blue-600: #00518D;
  --blue-700: #004274;
  --blue-50: #E8F1F8;
  --navy: #0B2236;
  --navy-800: #102C45;
  --orange: #F39100;
  --orange-600: #A35E00;       /* nur Schrift (Kartennummern, Hinweise): ≥ 4.5:1 auf Weiss, --bg-alt und --orange-50 */
  --orange-50: #FEF4E5;
  --ink: #14212D;
  --steel: #556270;
  --steel-light: #616E7B;      /* Kleintext: mind. 4,5:1 auch auf --bg-alt und --blue-50 (WCAG AA) */
  --line: #D6DDE3;
  --line-soft: #E8EDF1;
  --bg: #FFFFFF;
  --bg-alt: #F3F5F7;
  --abschnitt-ton: #F1F6FB;    /* Offertanfrage: Fläche der Schritte 1, 3 und 5 (leicht bläulich) */
  --surface: #FFFFFF;
  --blue-fill: #0060A6;        /* Flächen mit weisser Schrift – bleibt auch im dunklen Design */
  --blue-fill-hover: #004274;
  --field-bd: #B9C4CE;
  --line-strong: #9FB0BF;
  --placeholder: #8C97A0;
  --ok-bg: #E9F5EE;
  --ok: #1B7A3E;
  --error: #B3261E;
  --error-bg: #FBEDEC;

  --font: "Barlow", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; /* Roboto steckt in system-ui (Android) */
  --font-cond: "Barlow Condensed", "Barlow", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(11, 34, 54, .06), 0 8px 24px rgba(11, 34, 54, .08);
  --shadow-lg: 0 2px 4px rgba(11, 34, 54, .08), 0 24px 48px rgba(11, 34, 54, .14);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230060A6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E");
  --icon-select: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23556270' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* Dunkles Design: folgt ohne Wahl dem System; der Knopf in der Kopfzeile setzt
   data-theme="light|dark" (thema.js). Beide Blöcke gleich halten. Nur am Bildschirm,
   gedruckt wird immer hell. */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #5AACEB; --blue-600: #7BBDF0; --blue-700: #A2D0F5; --blue-50: #102B42;
    --orange-600: #F5A01F; --orange-50: #2B200E;
    --ink: #E3EAF0; --steel: #A3B1BE; --steel-light: #7D8C99;
    --line: #2B3E50; --line-soft: #1D3043; --line-strong: #3E5468; --field-bd: #3A5064; --placeholder: #6E7E8C;
    --bg: #08121B; --bg-alt: #0D1A26; --surface: #102030; --abschnitt-ton: #0B1926;
    --ok: #5BC98A; --ok-bg: #0F2A1B; --error: #FF8A80; --error-bg: #381614;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 48px rgba(0, 0, 0, .5);
    --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235AACEB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E");
    --icon-select: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3B1BE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
@media screen {
  :root[data-theme="dark"] {
    --blue: #5AACEB; --blue-600: #7BBDF0; --blue-700: #A2D0F5; --blue-50: #102B42;
    --orange-600: #F5A01F; --orange-50: #2B200E;
    --ink: #E3EAF0; --steel: #A3B1BE; --steel-light: #7D8C99;
    --line: #2B3E50; --line-soft: #1D3043; --line-strong: #3E5468; --field-bd: #3A5064; --placeholder: #6E7E8C;
    --bg: #08121B; --bg-alt: #0D1A26; --surface: #102030; --abschnitt-ton: #0B1926;
    --ok: #5BC98A; --ok-bg: #0F2A1B; --error: #FF8A80; --error-bg: #381614;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 48px rgba(0, 0, 0, .5);
    --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235AACEB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E");
    --icon-select: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3B1BE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}

/* --- Grundlagen ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  font-feature-settings: "kern", "liga", "tnum" 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--blue-700); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; font-weight: 700; letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); font-weight: 600; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 600; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skiplink { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skiplink:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--steel); max-width: 62ch; }
.muted { color: var(--steel); }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

/* Eyebrow: kleine Kennzeichnung über Titeln, mit orangem Quadrat (Logo-Zinne) */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; margin: 0 0 1rem;
  font: 600 .8rem/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: .7em; height: .7em; background: var(--orange); flex: none; }
/* «Made in Switzerland» über dem Seitentitel (Über uns): Schweizerkreuz statt des orangen Quadrats */
.eyebrow--herkunft { gap: .7em; font-size: .88rem; color: var(--ink); }
.eyebrow--herkunft::before { content: none; }
.eyebrow--herkunft .schweizerkreuz { flex: none; width: 1.7em; height: 1.7em; }

/* Zinnen-Leiste aus dem Logo */
.brandbar {
  height: 10px;
  background:
    repeating-linear-gradient(90deg, var(--orange) 0 56px, transparent 56px 112px) top / 100% 6px no-repeat,
    linear-gradient(var(--blue-fill), var(--blue-fill)) bottom / 100% 4px no-repeat;
}

/* --- Buttons ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue-fill); --btn-fg: #fff; --btn-bd: var(--blue-fill);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em; border: 2px solid var(--btn-bd); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg); font: 600 1rem/1.1 var(--font); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { --btn-bg: var(--blue-fill-hover); --btn-bd: var(--blue-fill-hover); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary { --btn-bg: var(--orange); --btn-bd: var(--orange); --btn-fg: var(--navy); }
/* Darüberfahren/Tastatur: weicher oranger Schein rundum (wie bei den Feldgruppen im Formular) */
.btn--primary:hover, .btn--primary:focus-visible { --btn-bg: #FFA21F; --btn-bd: #FFA21F; --btn-fg: var(--navy); box-shadow: 0 0 18px 2px rgba(243, 145, 0, .38), 0 6px 18px rgba(243, 145, 0, .22); }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--blue); --btn-bd: var(--blue); }
.btn--secondary:hover { --btn-bg: var(--blue-fill); --btn-bd: var(--blue-fill); --btn-fg: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .55); }
.btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: #fff; }
.btn--lg { min-height: 56px; padding: .8em 1.6em; font-size: 1.08rem; }
.btn--sm { min-height: 40px; padding: .5em 1em; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.linkpfeil { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; text-decoration: none; }
.linkpfeil .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.linkpfeil:hover .icon { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hinweisband Betriebsferien / Feiertage (inc/schliesstage.php) – Kunden und Lieferanten */
.schliess-band { background: var(--orange-50); color: var(--ink); border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.schliess-band__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-block: 9px; }
.schliess-band__icon { flex: none; width: 1.25em; height: 1.25em; color: var(--orange-600); }
.schliess-band__text { flex: 1 1 320px; }
.schliess-band__text p { margin: 0; }
.schliess-band__text p + p { margin-top: 4px; }
.schliess-band__text strong { color: var(--orange-600); margin-right: .35em; }
.schliess-band__link { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; white-space: nowrap; }
.schliess-band__link .icon { width: 1em; height: 1em; }
.schliess-band__zu { flex: none; background: none; border: 0; padding: 2px 6px; margin-right: -6px; font-size: 1.4rem; line-height: 1; color: var(--steel); cursor: pointer; border-radius: 4px; }
.schliess-band__zu:hover { color: var(--blue); }
.schliess-band__zu:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.schliess-band__zu[hidden], html[data-schliesshinweis-zu] .schliess-band { display: none; }
@media (max-width: 640px) {
  .schliess-band__inner { position: relative; padding-right: calc(var(--gutter) + 28px); }
  .schliess-band__zu { position: absolute; top: 4px; right: calc(var(--gutter) - 6px); margin: 0; }
  .schliess-band { font-size: .84rem; line-height: 1.45; }
  .schliess-band__inner { padding-block: 7px; gap: 4px 12px; }
  .schliess-band__icon { display: none; }
}
.schliesstage__liste { max-width: 860px; }
.schliesstage__zusatz { color: var(--steel); font-size: .95em; }

/* --- Kopfzeile ---------------------------------------------------------------- */
/* Kein backdrop-filter: er würde das fixierte Mobilmenü an die Kopfzeile binden */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); transition: box-shadow .25s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line-soft), 0 8px 24px rgba(11, 34, 54, .08); }
.site-header .brandbar { height: 6px; background-size: 100% 4px, 100% 2px; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.site-logo { flex: none; display: block; }
.site-logo img { height: 62px; width: auto; }
.mainnav { margin-left: auto; }
.mainnav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mainnav__item { position: relative; display: flex; align-items: center; }
.mainnav__link {
  display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem;
  border-radius: var(--radius); position: relative;
}
.mainnav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.mainnav__item:hover > .mainnav__link::after, .mainnav__item.is-active > .mainnav__link::after { transform: scaleX(1); }
.mainnav__link:hover { color: var(--blue); }
.mainnav__toggle { display: none; }
.subnav {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; margin: 0; padding: 10px; list-style: none;
  background: var(--surface); border: 1px solid var(--line-soft); border-top: 3px solid var(--orange); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.mainnav__item:hover > .subnav, .mainnav__item:focus-within > .subnav, .mainnav__item.is-open > .subnav {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.subnav a { display: block; padding: 9px 12px; color: var(--ink); text-decoration: none; border-radius: var(--radius); font-size: .98rem; }
.subnav a:hover { background: var(--bg-alt); color: var(--blue); }
.mainnav__mobile-extra { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.site-header__tel { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.site-header__tel .icon { width: 20px; height: 20px; color: var(--blue); }
.site-header__lang { font-weight: 600; font-size: .9rem; color: var(--steel); text-decoration: none; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius); }
.site-header__lang:hover { color: var(--blue); border-color: var(--blue); }
.site-header__sprachen, .mainnav__sprachen { display: flex; gap: 6px; }
.mainnav__sprachen { gap: 20px; }
.navtoggle { display: none; }
.themaknopf {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; flex: none;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius); color: var(--steel); cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.themaknopf[hidden] { display: none; }
.themaknopf:hover { color: var(--blue); border-color: var(--blue); }
.themaknopf .icon { width: 20px; height: 20px; }
.themaknopf[aria-pressed="true"] .icon--mond, .themaknopf:not([aria-pressed="true"]) .icon--sonne { display: none; }

@media (max-width: 1400px) {
  .site-header__tel span { display: none; }
  .mainnav__link { padding: 10px 9px; }
}
@media (max-width: 1199px) {
  :root { --header-h: 66px; }
  .site-logo img { height: 52px; }
  .site-header__tel, .site-header__sprachen { display: none; }
  .site-header__actions { margin-left: auto; }
  .themaknopf { width: 48px; height: 48px; }
  .navtoggle {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
    background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
    position: relative; z-index: 51; /* immer über dem geöffneten Menü – so lässt es sich jederzeit schliessen */
  }
  .navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .25s var(--ease), background-color .2s; }
  .navtoggle__bars::before, .navtoggle__bars::after { content: ""; position: absolute; left: 0; }
  .navtoggle__bars::before { top: -7px; }
  .navtoggle__bars::after { top: 7px; }
  .navtoggle[aria-expanded="true"] .navtoggle__bars { background: transparent; }
  .navtoggle[aria-expanded="true"] .navtoggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .navtoggle[aria-expanded="true"] .navtoggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
  .mainnav {
    position: fixed; inset: calc(var(--header-h) + 6px) 0 0 0; z-index: 49; margin: 0; overflow-y: auto; overscroll-behavior: contain;
    background: var(--surface); padding: 12px var(--gutter) 40px; transform: translateX(100%); visibility: hidden;
    transition: transform .3s var(--ease), visibility 0s linear .3s;
  }
  .mainnav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .mainnav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .mainnav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line-soft); }
  .mainnav__link { flex: 1; padding: 16px 4px; font-size: 1.15rem; font-weight: 600; }
  .mainnav__link::after { display: none; }
  .mainnav__toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: var(--radius);
  }
  .mainnav__toggle .icon { width: 22px; height: 22px; transition: transform .2s var(--ease); }
  .mainnav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .subnav {
    position: static; flex-basis: 100%; min-width: 0; display: none; padding: 0 0 12px 8px; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none; background: transparent;
  }
  .subnav::before { display: none; }
  .mainnav__item:hover > .subnav, .mainnav__item:focus-within > .subnav { display: none; }
  .mainnav__item.is-open > .subnav { display: block; }
  .subnav a { padding: 10px 12px; color: var(--steel); }
  .mainnav__mobile-extra { display: grid; gap: 14px; padding-top: 28px; }
  .mainnav__tel, .mainnav__lang { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); text-decoration: none; }
  .mainnav__tel .icon { width: 22px; height: 22px; color: var(--blue); }
  .mainnav__thema { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 0; border: 0; background: none; font: 600 1rem var(--font); color: var(--ink); cursor: pointer; }
  .mainnav__thema[hidden] { display: none; }
  .mainnav__thema .icon { width: 22px; height: 22px; color: var(--blue); }
  /* Menü-Knopf nennt das Ziel: hell → Mond + «Dunkles Design», dunkel → Sonne + «Helles Design» */
  .mainnav__thema[data-dunkel="true"] .icon--mond, .mainnav__thema[data-dunkel="true"] .mainnav__thema-dunkel,
  .mainnav__thema:not([data-dunkel="true"]) .icon--sonne, .mainnav__thema:not([data-dunkel="true"]) .mainnav__thema-hell { display: none; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1200px) { .mainnav__thema { display: none; } } /* gross: Schalter in der Kopfzeile */
/* Schmale Handys: Anfrage-Knopf bleibt in der Kopfzeile (wichtiger als Hell/Dunkel), der Schalter liegt im Menü */
@media (max-width: 520px) {
  .site-header__actions .themaknopf { display: none; }
  .site-header__cta { padding-inline: .8em; }
}
.cta-kurz { display: none; }
@media (max-width: 374px) { .cta-voll { display: none; } .cta-kurz { display: inline; } } /* 320er-Handys: «Offerte» passt neben Logo und Menü */

/* --- Abschnitte ------------------------------------------------------------- */
.section { padding-block: clamp(64px, 8vw, 120px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #DCE6EE; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead, .section--dark .muted { color: #A9BBCB; }
.section--dark .eyebrow { color: #7FC0F0; }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head--split { max-width: none; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end; justify-content: space-between; }
.section__head--split > div { max-width: 760px; }
.section__head p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
/* Startseite auf dem Handy: Kartenraster als Wischreihe, die nächste Karte schaut hervor (gestapelt war die Seite 22 Bildschirme lang).
   Nur Touch und Bildschirm: Am Desktop mit Zoom oder schmalem Fenster und im Druck bleibt das Raster gestapelt (Maus/Tastatur, WCAG 1.4.10) */
@media screen and (max-width: 699px) and (pointer: coarse) {
  .section--wischen .grid--3 { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 14px; scroll-padding-inline: var(--gutter); }
  .section--wischen .grid--3::-webkit-scrollbar { display: none; }
  .section--wischen .grid--3 > * { flex: 0 0 84%; scroll-snap-align: start; }
}

.split { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; grid-template-columns: minmax(0, 1fr); }
.split > *, .anfrage-layout > *, .grid > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--rev > :first-child { order: 2; }
  .split--wide-text { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}
.split__media img { width: 100%; border-radius: var(--radius); }

/* Rahmen mit Eckmarken (wie ein Zeichnungsblatt) */
.frame { position: relative; margin: 0; }
/* Schneidemarken wie auf dem Druck- oder Zuschnittbogen: feine, abgesetzte Linien in der Verlängerung der Bildkanten */
.frame { --s: clamp(12px, 2.5vw, 22px); } /* höchstens so weit draussen wie der Seitenrand (16 px auf dem Handy) */
.frame::before, .frame::after { content: ""; position: absolute; width: var(--s); height: var(--s); z-index: 2; pointer-events: none; --m: linear-gradient(var(--orange), var(--orange)); --l: calc(var(--s) - 5px); }
.frame::before { top: calc(-1 * var(--s)); left: calc(-1 * var(--s)); background: var(--m) 0 100% / var(--l) 2px no-repeat, var(--m) 100% 0 / 2px var(--l) no-repeat; }
.frame::after { bottom: calc(-1 * var(--s)); right: calc(-1 * var(--s)); background: var(--m) 100% 0 / var(--l) 2px no-repeat, var(--m) 0 100% / 2px var(--l) no-repeat; }
.frame img { width: 100%; border-radius: 2px; }
/* Videoschlaufe (4:3 wie die Bilder): Knopf zum Anhalten unten links, dezent bis Maus/Fokus */
.videoschlaufe { position: relative; }
.videoschlaufe video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; background: #1c1612; }
.split__media .videoschlaufe video { border-radius: var(--radius); }
.videoschlaufe__standbild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.videoschlaufe__knopf { position: absolute; left: 12px; bottom: 12px; z-index: 1; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: .7; transition: opacity .2s, background-color .2s; }
.videoschlaufe__knopf:hover, .videoschlaufe__knopf:focus-visible { opacity: 1; background: var(--orange); }
.videoschlaufe__knopf svg { width: 14px; height: 14px; }
.videoschlaufe__knopf[aria-pressed="true"] [data-icon-play], .videoschlaufe__knopf:not([aria-pressed="true"]) [data-icon-pause] { display: none; }
.frame figcaption { margin-top: 12px; font-size: .9rem; color: var(--steel); }

/* --- Startseite: Hero ------------------------------------------------------------ */
.hero { position: relative; color: #fff; background: var(--navy); isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
/* Startbild: ausgestellte Drückteile (Kegel, Kugel, Kupfer) – Ausschnitt mit Kugel und Kupferaufsatz oben rechts,
   rechts wenig abdunkeln, damit das Metall glänzt */
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 34, 54, .94) 0%, rgba(11, 34, 54, .82) 38%, rgba(11, 34, 54, .28) 64%, rgba(11, 34, 54, .06) 100%),
    linear-gradient(0deg, rgba(11, 34, 54, .7) 0%, rgba(11, 34, 54, 0) 35%);
}
.hero__inner { position: relative; min-height: min(86vh, 760px); display: grid; align-content: center; padding-block: clamp(72px, 10vw, 140px) clamp(140px, 14vw, 190px); }
.hero__content { max-width: 720px; }
.hero__kicker { display: block; font: 600 clamp(1rem, .9rem + .4vw, 1.25rem)/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: .6rem; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem); line-height: 1; letter-spacing: -.03em; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); color: #D2DEE8; max-width: 58ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Aufhänger «Neue Website» über dem Titel (aufhaenger_neue_website, läuft nach Datum in config.php aus):
   Kästchen wie ein Änderungsvermerk im Schriftfeld einer Zeichnung – oranges Feld «Neu», daneben der Vermerk */
.aufhaenger { display: inline-flex; align-items: stretch; max-width: 100%; overflow: hidden; margin-bottom: clamp(18px, 2.4vw, 28px); color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .38); border-radius: var(--radius); background: rgba(11, 34, 54, .55); font-size: .98rem; line-height: 1.3; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.aufhaenger:hover, .aufhaenger:focus-visible { color: #fff; border-color: var(--orange); background: rgba(11, 34, 54, .82); }
.aufhaenger__marke { display: flex; align-items: center; flex: none; padding: .45em .75em; background: var(--orange); color: var(--navy); font: 600 .9rem/1 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; }
.aufhaenger__text { display: flex; align-items: center; padding: .5em .25em .5em .85em; font-weight: 600; }
.aufhaenger .icon { flex: none; align-self: center; width: 1.1em; height: 1.1em; margin: 0 .75em 0 .25em; color: var(--orange); transition: transform .2s var(--ease); }
.aufhaenger:hover .icon { transform: translateX(4px); }
/* Masslinie «Ø 2000 mm» über dem Foto */
/* Position relativ zum Inhaltsbereich (.wrap): immer rechts, nie über dem Text */
.hero__dim { position: absolute; right: var(--gutter); top: 50%; width: clamp(240px, 26vw, 400px); transform: translateY(-58%); color: rgba(255, 255, 255, .85); pointer-events: none; }
/* Ring wie im Teaser-Video in 36 Segmente geteilt (pathLength 360 → je 10 Einheiten), weiss, der Durchmesser orange.
   Kein Leuchten und kein Farbwechsel (wirkte wie eine Lichterkette, User 12.11.2026).
   Die weiche Scheibe in Heggli-Blau dahinter (.dim-grund, Verlauf in start.php) hebt Ring, Masslinie und Schrift vom Kupferfoto ab. */
.hero__dim .dim-kreis { stroke: rgba(255, 255, 255, .9); stroke-dasharray: 5.5 4.5; }
.hero__dim .dim-maske { stroke-dasharray: 360; stroke-dashoffset: 0; }
.hero__dim .dim-linie { stroke: var(--orange); }
.hero__dim text { fill: #fff; font: 600 22px var(--font-cond); letter-spacing: .04em; }
/* Beim Laden zeichnet sich der Ring einmal ein (von oben im Uhrzeigersinn), danach dreht er ruhig und endlos:
   eine Umdrehung pro Minute (Wunsch Heggli & Gubler: wie im Video, aber nicht nervös). Wer «Bewegung reduzieren»
   eingestellt hat, sieht ihn fertig und stehend. */
@media (prefers-reduced-motion: no-preference) {
  .hero__dim .dim-ring { animation: dreh 60s linear infinite; transform-origin: 200px 200px; }
  .hero__dim .dim-maske { animation: dim-zeichnen 1.8s .5s cubic-bezier(.3, .5, .25, 1) both; }
}
@keyframes dreh { to { transform: rotate(360deg); } }
@keyframes dim-zeichnen { from { stroke-dashoffset: 360; } }
/* Schmalere Bildschirme: Scheibe unter dem Text statt daneben (daneben würde sie den Text überdecken) */
@media (max-width: 1199px) {
  .hero__dim { position: relative; right: auto; top: auto; transform: none; width: clamp(210px, 52vw, 300px); margin: clamp(28px, 6vw, 48px) auto 0; }
  .hero__dim text { font-size: 30px; }
}
@media (max-width: 980px) { .hero::before { background: linear-gradient(180deg, rgba(11, 34, 54, .7), rgba(11, 34, 54, .92)); } }

/* Kennzahlen, ragen in den Hero hinein */
.facts-bar { position: relative; z-index: 3; margin-top: clamp(-120px, -9vw, -80px); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.fact { --fp: clamp(20px, 2.4vw, 32px); padding: var(--fp); border-left: 1px solid var(--line-soft); position: relative; }
.fact:first-child { border-left: 0; }
.fact__wert { position: relative; display: block; padding-bottom: 18px; font: 600 clamp(2rem, 1.4rem + 2vw, 3rem)/1 var(--font-cond); color: var(--blue); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
/* Kennzahlen als Masskette (ISO 129): durchgehende Masslinie unter den Werten, gemeinsame Begrenzungsstriche an den
   Übergängen; als Rahmenlinien gezeichnet, damit sie auch gedruckt wird */
.fact__wert::after { content: ""; position: absolute; bottom: 5px; left: calc(-1 * var(--fp)); right: calc(-1 * var(--fp)); height: 10px; border-left: 1.5px solid var(--orange); border-bottom: 1.5px solid var(--orange); }
.fact:first-child .fact__wert::after { left: 0; }
.fact:last-child .fact__wert::after { right: 0; border-right: 1.5px solid var(--orange); }
.fact__einheit { font-size: .5em; margin-left: .2em; color: var(--steel); }
.fact__text { display: block; margin-top: 10px; font-size: .95rem; line-height: 1.4; color: var(--steel); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
h1, h2, h3, .card__title, .lead { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }
@media (max-width: 480px) { .fact { --fp: 16px; padding: 18px var(--fp); } .fact__wert { font-size: 1.8rem; } }
.facts-bar--seite { margin-top: clamp(-56px, -4vw, -32px); }
.h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); font-weight: 600; }
.chips a { text-decoration: none; color: var(--ink); }
.chips a:hover { color: var(--blue); }
.chips li:has(a:hover) { border-color: var(--blue); }
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .fact:nth-child(odd) .fact__wert::after { left: 0; } /* Masskette je Reihe */
  .fact:nth-child(even) .fact__wert::after { right: 0; border-right: 1.5px solid var(--orange); }
}

/* --- Seitenkopf (Unterseiten) --------------------------------------------------- */
.page-hero { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); padding-block: clamp(32px, 5vw, 64px) clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.page-hero::after { /* Schnittschraffur rechts oben */
  content: ""; position: absolute; right: -40px; top: -40px; width: 260px; height: 260px; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(-45deg, var(--line) 0 1px, transparent 1px 12px);
  -webkit-mask: radial-gradient(circle at 70% 30%, #000 0 40%, transparent 70%); mask: radial-gradient(circle at 70% 30%, #000 0 40%, transparent 70%);
}
.page-hero__inner { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.page-hero--bild .page-hero__inner { grid-template-columns: 1fr; }
@media (min-width: 1000px) { .page-hero--bild .page-hero__inner { grid-template-columns: 1.05fr .95fr; } }
.page-hero h1 { margin-bottom: .4em; }
.page-hero .lead { margin-bottom: 0; }
.page-hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero__media img { aspect-ratio: 4 / 3; object-fit: cover; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 0; margin: 0 0 22px; font-size: .9rem; color: var(--steel); }
.breadcrumbs li + li::before { content: "/"; margin: 0 .55em; color: var(--steel-light); }
.breadcrumbs a { color: var(--steel); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }

/* --- Karten ------------------------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); overflow: hidden; color: inherit; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: inherit; }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; flex: 1; }
.card__nr { font: 600 .8rem/1 var(--mono); color: var(--orange-600); letter-spacing: .05em; }
.card__title { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -.005em; } /* gleich, ob h2 (Übersicht) oder h3 */
.card__text { margin: 0; color: var(--steel); font-size: 1rem; }
.card__more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: .4em; color: var(--blue); font-weight: 600; }
.card__more .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
a.card:hover .card__more .icon { transform: translateX(4px); }
/* Schneidemarken erscheinen beim Darüberfahren (wie an den Bildern: an der Ecke unterbrochen) */
a.card::before, a.card::after { content: ""; position: absolute; width: 18px; height: 18px; opacity: 0; z-index: 2; transition: opacity .25s var(--ease), transform .25s var(--ease); --m: linear-gradient(var(--orange), var(--orange));
  filter: drop-shadow(0 0 1px rgba(11, 34, 54, .55)); } /* feiner Schatten: auch auf hellen Fotos sichtbar */
a.card::before { top: 10px; left: 10px; background: var(--m) 100% 0 / 13px 2px no-repeat, var(--m) 0 100% / 2px 13px no-repeat; transform: translate(6px, 6px); }
a.card::after { bottom: 10px; right: 10px; background: var(--m) 0 100% / 13px 2px no-repeat, var(--m) 100% 0 / 2px 13px no-repeat; transform: translate(-6px, -6px); }
a.card:hover::before, a.card:hover::after, a.card:focus-visible::before, a.card:focus-visible::after { opacity: 1; transform: none; }
.card--feature { grid-column: span 2; }
.card--feature .card__media { aspect-ratio: 16 / 8; }
@media (max-width: 700px) { .card--feature { grid-column: auto; } }
/* Services: Karten als Inhaltsverzeichnis der Seite (springen zum Abschnitt). Am Handy zweispaltig, nur Nummer und Titel */
.service-karten .card__title { color: var(--ink); line-height: 1.12; }
@media (max-width: 699px) {
  .service-karten { grid-template-columns: 1fr 1fr; gap: 10px; }
  .service-karten .card__media, .service-karten .card__text, .service-karten .card__more { display: none; }
  .service-karten .card__body { padding: 14px 16px 16px; }
  .service-karten .card__title { font-size: 1.05rem; }
}

/* Startseite: Metalldrücken als grosse Karte, daneben die übrigen Verfahren als Stückliste (Pos. | Benennung) */
.verfahren-start { display: grid; gap: clamp(24px, 3vw, 48px); }
/* Foto immer ungeschnitten 4:3 (die Kupferschale füllt das Bild in der Breite) */
.verfahren-start__haupt .card__media { aspect-ratio: 4 / 3; }
.verfahren-start__haupt .card__title { font-size: clamp(1.35rem, 1.1rem + .7vw, 1.7rem); }
.card__werte { display: none; }
@media (min-width: 1000px) {
  .verfahren-start { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: stretch; }
  .verfahren-start__haupt .card__body { padding: 26px 30px 28px; }
  /* Kennwerte nur neben der Stückliste: füllen die Kartenhöhe statt eines hochkant beschnittenen Fotos */
  .card__werte { display: block; margin: 10px 0 0; }
  .card__werte .spec__row { grid-template-columns: minmax(120px, 40%) 1fr; padding: 11px 0; }
  .card__werte dt, .card__werte dd { font-size: .92rem; }
}
.stueckliste { --spalten: 2.6rem 176px minmax(0, 1fr) 20px; }
/* Desktop: Fotos wachsen mit der Breite, damit Liste und Karte daneben etwa gleich hoch bleiben */
@media (min-width: 1000px) { .stueckliste { --spalten: 2.4rem clamp(124px, 15vw - 24px, 176px) minmax(0, 1fr) 20px; } }
.stueckliste__kopf { display: grid; grid-template-columns: var(--spalten); gap: 0 18px; margin: 0; padding: 0 12px 10px; border-bottom: 2px solid var(--ink);
  font: 600 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--steel-light); }
.stueckliste__kopf span + span { grid-column: 3; }
.stueckliste ol { list-style: none; margin: 0; padding: 0; }
.stueckliste li { border-bottom: 1px solid var(--line); }
.stueckliste a { display: grid; grid-template-columns: var(--spalten); gap: 0 18px; align-items: center; padding: 12px; color: inherit; text-decoration: none;
  transition: background-color .2s var(--ease); }
.stueckliste a:hover { background: var(--surface); }
.stueckliste__pos { font: 600 .85rem/1 var(--mono); color: var(--orange-600); letter-spacing: .05em; }
.stueckliste__bild { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: var(--bg-alt); }
.stueckliste__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.stueckliste a:hover .stueckliste__bild img { transform: scale(1.06); }
.stueckliste__text { display: flex; flex-direction: column; gap: 3px; }
.stueckliste__text strong { display: flex; align-items: center; gap: 9px; font-size: 1.15rem; font-weight: 600; color: var(--ink); transition: color .2s var(--ease); }
.stueckliste__icon { flex: none; width: 26px; height: 26px; color: var(--blue); stroke-width: 1.6; }
.stueckliste__text span { color: var(--steel); font-size: .95rem; line-height: 1.45; }
.stueckliste__pfeil { width: 20px; height: 20px; color: var(--blue); transition: transform .2s var(--ease); }
.stueckliste a:hover strong { color: var(--blue); }
.stueckliste a:hover .stueckliste__pfeil { transform: translateX(4px); }
/* Handy: kompaktes Verzeichnis ohne Kurztext (der steht auf der Übersicht «Alle Verfahren») – sonst wird die Startseite fast 900 px länger */
@media (max-width: 599px) {
  .stueckliste { --spalten: 1.9rem 104px minmax(0, 1fr) 18px; }
  .stueckliste__kopf { gap: 0 12px; padding-inline: 4px; }
  .stueckliste a { gap: 0 12px; padding: 10px 4px; }
  .stueckliste__text strong { font-size: 1.05rem; }
  .stueckliste__text span { display: none; }
}

.tile { padding: 28px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); }
.tile .icon { width: 40px; height: 40px; color: var(--blue); margin-bottom: 18px; stroke-width: 1.5; }
.tile h3 { margin-bottom: .35em; }
.tile p { margin: 0; color: var(--steel); }
.section--dark .tile { background: var(--navy-800); border-color: rgba(255, 255, 255, .08); }
.section--dark .tile p { color: #A9BBCB; }
.section--dark .tile .icon { color: var(--orange); }

/* --- Listen, Tabellen ------------------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-50);
  background-image: var(--icon-check);
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.section--dark .checklist li::before { background-color: rgba(255, 255, 255, .1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F39100' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E"); }

.spec { margin: 0 0 1.5em; border-top: 2px solid var(--ink); }
.spec__row { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--steel); font-size: .95rem; }
.spec dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .spec__row { grid-template-columns: 1fr; gap: 2px; } }
.tile p + .spec { margin-top: 18px; }
.spec--normen dt { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.spec--normen dd { font-weight: 400; color: var(--steel); }

.tabelle-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.5em; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 560px; }
.tabelle th, .tabelle td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabelle thead th { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); border-bottom: 2px solid var(--ink); }
.tabelle tbody th { font-weight: 600; }
.tabelle .hl { background: var(--orange-50); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; background: var(--surface); }

/* --- Werkstoffkasten: ruhiges Markenband mit Kacheln wie im Periodensystem (statt Laufband) ------------ */
.werkstoffband { position: relative; background: var(--blue-fill); color: #fff; border-block: 4px solid var(--orange); }
.werkstoffband__inner { display: grid; gap: 16px 32px; align-items: center; padding-block: clamp(22px, 3vw, 34px); }
@media (min-width: 1100px) { .werkstoffband__inner { grid-template-columns: auto 1fr auto; } }
.werkstoffband__titel { margin: 0; font: 600 .8rem/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #D3E6F5; max-width: 14ch; }
.werkstoffe { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.werkstoffe li { display: flex; flex-direction: column; gap: 6px; min-height: 80px; padding: 10px 10px 9px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 3px; background: rgba(255, 255, 255, .04); }
@media (min-width: 1100px) { .werkstoffe { grid-template-columns: repeat(5, 1fr); } } /* zwei ruhige Reihen à fünf */
.werkstoff__zeichen { font: 600 1.55rem/1 var(--font-cond); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.werkstoff__name { margin-top: auto; font-size: .85rem; line-height: 1.25; color: #D3E6F5; hyphens: auto; -webkit-hyphens: auto; }
.werkstoff__name span { white-space: nowrap; } /* EN-Kurzname (X5CrNi18-10) nicht am Bindestrich trennen */
.werkstoffband__link { color: #fff; white-space: nowrap; }
.werkstoffband__link:hover { color: var(--orange); }

/* --- Schritte ------------------------------------------------------------------ */
.steps { counter-reset: schritt; list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.steps li { counter-increment: schritt; position: relative; padding: 28px 24px 24px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); }
.steps li::before { content: counter(schritt, decimal-leading-zero); display: block; font: 600 2.6rem/1 var(--font-cond); color: var(--orange); margin-bottom: 14px; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--steel); }
.steps--dark li { background: var(--navy-800); border-color: rgba(255, 255, 255, .08); }
.steps--dark li p { color: #A9BBCB; }
.steps li.is-aktiv { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }

/* --- Drück-Animation ------------------------------------------------------------ */
.spin { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 1000px) { .spin { grid-template-columns: 1.25fr .75fr; } }
.spin__buehne { position: relative; background: #0E2A42; border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-lg); padding: clamp(12px, 2vw, 24px); }
.spin__buehne::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(127, 192, 240, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 192, 240, .12) 1px, transparent 1px);
  background-size: 24px 24px; }
.spin svg { position: relative; width: 100%; height: auto; overflow: visible; }
.spin .s-achse { stroke: #7FC0F0; stroke-width: 1; stroke-dasharray: 18 6 3 6; opacity: .7; }
.spin .s-futter { fill: url(#schraffur); stroke: #9FB4C6; stroke-width: 2; }
.spin .s-spindel, .spin .s-reitstock { fill: #1C3E5C; stroke: #9FB4C6; stroke-width: 2; }
.spin .s-blech { fill: none; stroke: var(--orange); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.spin .s-rolle { fill: var(--blue-fill); stroke: #CDE6F8; stroke-width: 2; }
.spin .s-rolle-achse { fill: #CDE6F8; }
.spin .s-rollenarm { stroke: #CDE6F8; stroke-width: 6; stroke-linecap: round; }
.spin .s-label { fill: #DCE6EE; font: 500 15px var(--font); }
.spin .s-label--klein { font-size: 13px; fill: #A9BBCB; }
/* Handy: Zeichnung wird auf rund 45 % verkleinert – Beschriftung grösser, sonst nur ~6 px hoch */
@media (max-width: 599px) { .spin .s-label { font-size: 23px; } .spin .s-label--klein { font-size: 19px; } }
.spin .s-leader { stroke: #A9BBCB; stroke-width: 1; fill: none; }
.spin .s-dreh { fill: none; stroke: var(--orange); stroke-width: 2; }
.spin .s-wert { fill: #fff; font: 600 18px var(--font-cond); letter-spacing: .04em; }
.spin__steuerung { display: flex; align-items: center; gap: 14px; margin-top: 14px; position: relative; }
.spin__play { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.spin__play:hover { border-color: var(--orange); color: var(--orange); }
.spin__play svg { width: 18px; height: 18px; }
.spin__play[aria-pressed="true"] [data-icon-play], .spin__play:not([aria-pressed="true"]) [data-icon-pause] { display: none; }
.spin .s-dreh--spitze { stroke-dasharray: none; }
@media (prefers-reduced-motion: no-preference) { .spin .s-dreh:not(.s-dreh--spitze) { stroke-dasharray: 7 5; animation: drehpfeil .8s linear infinite; } }
@keyframes drehpfeil { to { stroke-dashoffset: -24; } }
.spin__buehne:not(.is-bereit) .spin__steuerung { visibility: hidden; }
.spin__regler { flex: 1; accent-color: var(--orange); height: 28px; }
.spin__regler-label { font-size: .85rem; color: #A9BBCB; white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: right; }

/* --- Zeitstrahl (Geschichte) ---------------------------------------------------- */
.zeitstrahl { list-style: none; margin: 0; padding: 0; position: relative; }
.zeitstrahl::before { content: ""; position: absolute; left: 90px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--orange), var(--blue)); }
.zeitstrahl > li { display: grid; grid-template-columns: 90px 1fr; gap: 0 36px; padding-bottom: 28px; position: relative; }
.zeitstrahl > li::before { content: ""; position: absolute; left: 84px; top: 9px; width: 14px; height: 14px; background: var(--surface); border: 3px solid var(--blue); border-radius: 50%; }
.zeitstrahl > li.is-meilenstein::before { background: var(--orange); border-color: var(--orange); width: 18px; height: 18px; left: 82px; top: 7px; }
.zeitstrahl__jahr { font: 600 1.4rem/1.3 var(--font-cond); color: var(--blue); font-variant-numeric: tabular-nums; }
.zeitstrahl ul { margin: 0; padding: 0; list-style: none; }
.zeitstrahl ul li { padding: 3px 0; }
.zeitstrahl .is-meilenstein ul li:first-child { font-weight: 600; font-size: 1.1rem; }
.zeitstrahl__mehr[hidden] { display: none; }
@media (max-width: 560px) {
  .zeitstrahl::before { left: 6px; }
  .zeitstrahl > li { grid-template-columns: 1fr; padding-left: 32px; }
  .zeitstrahl > li::before { left: 0; }
  .zeitstrahl > li.is-meilenstein::before { left: -2px; }
}

/* --- Häufige Fragen ----------------------------------------------------------------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 48px 20px 0; position: relative; font-weight: 600; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--blue); }
.faq details > div { padding: 0 0 22px; color: var(--steel); max-width: 72ch; }

/* --- Personen ------------------------------------------------------------------ */
.personen { display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.person { display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: start; padding: 24px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); }
.person img { width: 112px; height: 112px; object-fit: cover; border-radius: var(--radius); filter: grayscale(.15); }
.person h3 { margin: 0 0 4px; font-size: 1.2rem; }
.person__funktion { margin: 0 0 4px; color: var(--steel); font-size: .98rem; line-height: 1.4; }
.person__zusatz { margin: 0 0 12px; color: var(--steel-light); font-size: .9rem; }
.person__kontakt { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .98rem; }
.person__kontakt a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; word-break: break-word; }
.person__kontakt .icon { width: 18px; height: 18px; flex: none; }
@media (max-width: 420px) { .person { grid-template-columns: 1fr; } }

/* --- News und Jobs ---------------------------------------------------------------- */
.news-card .card__media { aspect-ratio: 16 / 9; }
.datum { font-size: .9rem; color: var(--steel); font-variant-numeric: tabular-nums; }
.job { display: grid; gap: 18px 32px; align-items: center; padding: 28px; background: var(--surface); border: 1px solid var(--line-soft); border-left: 5px solid var(--orange); border-radius: var(--radius-lg); }
@media (min-width: 800px) { .job { grid-template-columns: 1fr auto; } }
.job h3 { margin-bottom: 6px; }
.job p { margin: 0; color: var(--steel); }
.job__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: .95rem; color: var(--steel); }
.job__meta span { display: inline-flex; align-items: center; gap: 6px; }
.job__meta .icon { width: 18px; height: 18px; color: var(--blue); }
.liste-stapel { display: grid; gap: 16px; }
.leer { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--steel); }

/* --- Fliesstext ---------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose ul li { margin-bottom: .35em; }
.prose > :first-child { margin-top: 0; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose--rechtlich { font-size: 1rem; }
.prose--rechtlich h2 { font-size: 1.35rem; }

.hinweis { padding: 18px 22px; background: var(--orange-50); border-left: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.5em; }
.hinweis p:last-child { margin: 0; }

.badges { list-style: none; padding: 0; margin: 0 0 1.25em; display: grid; gap: 8px; }
.badges li { display: flex; align-items: center; gap: 10px; }
.badges .icon { width: 22px; height: 22px; color: var(--orange); flex: none; }

.dokument { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.dokument:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--ink); }
.dokument .icon { width: 32px; height: 32px; color: var(--blue); flex: none; }
.dokument strong { display: block; }
.dokument span { color: var(--steel); font-size: .92rem; }

.karte-ort { display: grid; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-soft); background: var(--surface); }
.karte-ort__text { padding: 22px 24px; }
.karte-ort__quelle { margin: 12px 0 0; font-size: .82rem; color: var(--steel-light); }
.karte-ort__quelle a { color: inherit; }
.kontakt__foto { margin-top: 32px; }

/* Lagekarten Europa/Schweiz (Inline-SVG aus lagekarte()) */
/* Ortskarte Muri AG (OpenStreetMap, ortskarte()): gleiche Farben wie die Lagekarten – Masse in Karteneinheiten (1200 breit) */
.ortskarte { aspect-ratio: 16 / 9; }
.ok-grund { fill: var(--bg-alt); }
.ok-wald { fill: var(--blue); opacity: .1; }
.ok-wasser { fill: var(--blue); opacity: .3; }
.ok-bach { fill: none; stroke: var(--blue); stroke-opacity: .45; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ok-weg { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ok-feld { stroke: var(--line-strong); stroke-width: 2.5; stroke-dasharray: 7 6; opacity: .75; }
.ok-klein { stroke: var(--surface); stroke-width: 4.5; }
.ok-neben-rand { stroke: var(--line-strong); stroke-width: 10; }
.ok-neben { stroke: var(--surface); stroke-width: 7; }
.ok-haupt-rand { stroke: var(--steel-light); stroke-width: 16; }
.ok-haupt { stroke: var(--surface); stroke-width: 12; }
.ok-haus { fill: var(--line-strong); opacity: .7; }
.ok-bahn { fill: none; stroke: var(--steel); stroke-width: 5; }
.ok-bahn-schwelle { fill: none; stroke: var(--bg-alt); stroke-width: 2.5; stroke-dasharray: 10 10; }
.ortskarte text { stroke: var(--bg-alt); stroke-linejoin: round; paint-order: stroke; }
.ok-ort { font-size: 26px; font-weight: 600; fill: var(--steel); stroke-width: 7px; }
.ok-ort--gross { font-size: 36px; font-weight: 700; fill: var(--ink); }
.ok-ort--klein { font-size: 23px; font-weight: 500; }
.ok-bachname { font-size: 23px; font-style: italic; font-weight: 600; fill: var(--blue); stroke-width: 6px; }
.ok-quelle { font-size: 17px; fill: var(--steel-light); stroke-width: 5px; }
.ortskarte .lk-muri text { font-size: 32px; stroke: var(--bg-alt); stroke-width: 8px; }
@media (max-width: 599px) {
  .ok-ort { font-size: 40px; stroke-width: 9px; }
  .ok-ort--gross { font-size: 50px; }
  .ok-ort--klein, .ok-ort--mittel, .ok-bachname { display: none; }
  .ortskarte .lk-muri text { font-size: 46px; stroke-width: 10px; }
  .ok-quelle { font-size: 26px; }
}
.lagekarten { display: grid; gap: 24px; }
@media (min-width: 800px) { .lagekarten { grid-template-columns: 1fr 1fr; } }
.lagekarten figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-soft); background: var(--surface); }
.lagekarten figcaption { padding: 14px 20px; font-size: .9rem; color: var(--steel); }
/* dritte Stufe nach Europa und Schweiz: das Werk von oben (Drohnenbild), über die ganze Breite */
/* Bildreihe (z. B. Maschinenpark unten): alle Bilder gleich hoch */
.bildreihe .frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bildreihe--folge { margin-top: clamp(40px, 5vw, 64px); }
.lagekarten__werk { grid-column: 1 / -1; }
.lagekarten__werk img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
@media (min-width: 800px) { .lagekarten__werk img { aspect-ratio: 5 / 2; } }
.lagekarte { display: block; width: 100%; height: auto; }
.lk-meer { fill: var(--blue-50); }
.lk-land { fill: var(--surface); stroke: var(--line-strong); stroke-width: .7; stroke-linejoin: round; }
.lk-ch { fill: var(--blue); stroke: var(--surface); stroke-width: 1; stroke-linejoin: round; }
.lagekarte--schweiz .lk-land { fill: var(--bg-alt); }
.lagekarte--schweiz .lk-ch { fill: var(--surface); stroke: var(--blue); stroke-width: 2; }
.lk-see { fill: var(--blue); opacity: .28; }
.lagekarte text { font-family: var(--font); paint-order: stroke; stroke-linejoin: round; }
.lk-land-text { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; fill: var(--steel-light); stroke: var(--bg-alt); stroke-width: 3px; }
.lk-ort circle { fill: var(--steel); }
.lk-ort .lk-ort__ziel { fill: transparent; }
.lk-ort text { font-size: 13px; font-weight: 600; fill: var(--steel); stroke: var(--surface); stroke-width: 3.5px; }
.lagekarte--europa .lk-ort text { stroke: var(--surface); }
.lk-muri__puls { fill: var(--orange); opacity: .25; transform-box: fill-box; transform-origin: center; }
.lk-muri__ring { fill: #fff; }
.lk-muri__kern { fill: var(--orange); }
.lk-muri text { font-size: 15px; font-weight: 700; fill: var(--ink); stroke: var(--surface); stroke-width: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .lk-muri__puls { animation: lk-puls 2.4s var(--ease) infinite; }
  @keyframes lk-puls { 0% { transform: scale(.5); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }
}
/* schmal: die SVG wird stark verkleinert, darum grössere Schrift und weniger Orte */
@media (max-width: 599px) {
  .lk-ort--klein { display: none; }
  .lk-ort text { font-size: 19px; stroke-width: 4.5px; }
  .lk-ort circle { r: 3.6px; }
  .lk-muri text { font-size: 21px; stroke-width: 5px; }
  .lk-land-text { font-size: 15px; }
}

/* Sprachhinweis (Browsersprache ≠ Seitensprache, site.js) */
.sprachhinweis { background: var(--blue-50); border-bottom: 1px solid var(--line-soft); }
.sprachhinweis__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-block: 10px; }
.sprachhinweis p { flex: 1 1 220px; margin: 0; font-weight: 600; color: var(--ink); }
.sprachhinweis__zu { background: none; border: 0; padding: 4px 8px; font-size: 1.5rem; line-height: 1; color: var(--steel); cursor: pointer; }
.sprachhinweis__zu:hover { color: var(--blue); }

/* --- Anfrage-Band ---------------------------------------------------------------- */
.cta-band { background: var(--blue-fill); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 18px); pointer-events: none; }
.cta-band__inner { position: relative; display: grid; gap: 28px; align-items: center; padding-block: clamp(48px, 6vw, 80px); }
@media (min-width: 960px) { .cta-band__inner { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); max-width: 26ch; }
.cta-band p { color: #D3E6F5; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Fusszeile ------------------------------------------------------------------ */
.site-footer { background: var(--navy); color: #A9BBCB; font-size: .98rem; }
/* :not(.btn): Linkfarben sonst stärker als die Knopffarben (Offerte-Knopf hell bzw. beim Darüberfahren orange auf orange) */
.site-footer a:not(.btn) { color: #DCE6EE; text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--orange); }
.site-footer__grid { display: grid; gap: 40px; padding-block: clamp(48px, 6vw, 80px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h2 { font: 600 .8rem/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__logo { display: inline-block; background: #fff; padding: 12px; border-radius: var(--radius); margin-bottom: 18px; }
.site-footer__logo img { width: 170px; height: auto; }
.site-footer__claim { color: #DCE6EE; font-weight: 500; display: flex; align-items: flex-start; gap: 10px; }
.site-footer__claim .schweizerkreuz { flex: none; width: 20px; height: 20px; margin-top: .15em; } /* Herkunft auf jeder Seite, direkt unter dem Logo */
.site-footer__claim strong { color: #fff; }
.site-footer .badges li { color: #DCE6EE; }
.site-footer .btn { margin-top: 8px; }
.site-footer__nachbestellung { margin: 14px 0 0; }
.site-footer__nachbestellung a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.site-footer__nachbestellung .icon { width: 1em; height: 1em; }
/* Lichtring um «Rondenrechner» (Klasse .leuchtet aus site.js): drei Runden, dann blendet er aus. Polster + Gegenrand halten den Text an seinem Platz */
.site-footer__nachbestellung a[data-leuchten] { position: relative; padding: 5px 10px; margin: -5px -10px; border-radius: var(--radius); }
@media (prefers-reduced-motion: no-preference) {
  .site-footer__nachbestellung a.leuchtet { animation: glimmen 2.4s ease-in-out 3; }
  .site-footer__nachbestellung a.leuchtet::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
    background: conic-gradient(from var(--umlauf), transparent 0 45%, rgba(243, 145, 0, .3) 65%, var(--orange) 84%, #FFD08A 90%, transparent 97%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: umlauf 2.4s linear 3, ring-aus 7.2s linear both;
  }
  @keyframes ring-aus { 0% { opacity: 0; } 6%, 88% { opacity: 1; } 100% { opacity: 0; } }
}
/* LinkedIn: Firmenseite (Fusszeile, News) und «Auf LinkedIn teilen» unter News-Artikeln – nur Links, kein Plugin */
.linkedin-link { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; }
.linkedin-link .icon { flex: none; width: 1.3em; height: 1.3em; }
.site-footer__linkedin { margin-top: 14px; }
.teilen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 2.2em 0 1.6em; padding-top: 1.3em; border-top: 1px solid var(--line); }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-block: 22px 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* --- Offertanfrage ------------------------------------------------------------------ */
.page-hero--kompakt { padding-block: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 44px); }
.anfrage-layout { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 1100px) { .anfrage-layout { grid-template-columns: minmax(0, 1fr) 280px; } .anfrage-seite { position: sticky; top: calc(var(--header-h) + 24px); } }
@media (max-width: 1099px) { .anfrage-fortschritt { display: none; } }
.anfrage-fortschritt ol { list-style: none; margin: 0 0 20px; padding: 0; border-left: 2px solid var(--line); }
.anfrage-fortschritt a { display: flex; gap: 12px; align-items: baseline; padding: 9px 0 9px 18px; margin-left: -2px; border-left: 2px solid transparent; color: var(--steel); text-decoration: none; font-weight: 500; }
.anfrage-fortschritt a span { font: 600 .85rem var(--mono); color: var(--steel-light); }
.anfrage-fortschritt li.is-aktiv a { border-left-color: var(--blue); color: var(--ink); }
.anfrage-fortschritt li.is-fertig a span { color: transparent; position: relative; }
.anfrage-fortschritt li.is-fertig a span::after { content: ""; position: absolute; left: 2px; top: -1px; width: 7px; height: 12px; border: solid var(--ok); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.anfrage-kontakt .icon { width: 20px; height: 20px; margin: 0; }
.anfrage-kontakt p { margin: 0 0 8px; }

/* Schnellstart über der Offertanfrage (rechner_schnellstart_html): Teil anklicken, Masse, Werkstoff, Menge → Formular */
.schnellstart { margin: 0 0 clamp(28px, 4vw, 44px); padding: clamp(20px, 3vw, 28px); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); scroll-margin-top: calc(var(--header-h) + 16px); }
.schnellstart [hidden] { display: none !important; }
.schnellstart h2 { margin: 0 0 4px; }
.schnellstart__lead { margin: 0 0 20px; color: var(--steel); max-width: 66ch; }
.schnellstart__schritt { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.schnellstart__schritt legend { display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 12px; font-weight: 600; }
.schnellstart__nr { flex: none; display: grid; place-items: center; width: 28px; height: 28px; background: var(--navy); color: #fff; font: 600 .9rem var(--font-cond); border-radius: var(--radius); position: relative; }
.schnellstart__nr::after { content: ""; position: absolute; top: -3px; right: -3px; width: 7px; height: 7px; background: var(--orange); }
.schnellstart__teile { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; }
.schnellstart__teil { position: relative; display: flex; min-width: 0; color: var(--ink); text-decoration: none; cursor: pointer; }
.schnellstart__teil input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.schnellstart__karte { flex: 1; min-width: 0; hyphens: auto; overflow-wrap: break-word; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 112px; padding: 10px 8px; border: 1px solid var(--field-bd); border-radius: var(--radius); text-align: center; font-size: .9rem; font-weight: 500; line-height: 1.25; transition: border-color .15s, box-shadow .15s, background .15s; }
.schnellstart__teil:hover .schnellstart__karte { border-color: var(--blue); }
.schnellstart__teil input:checked + .schnellstart__karte { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: var(--bg-alt); }
.schnellstart__teil input:focus-visible + .schnellstart__karte, .schnellstart__teil--link:focus-visible .schnellstart__karte { box-shadow: 0 0 0 3px rgba(243, 145, 0, .55); }
.schnellstart__teil .rechner__skizze { width: 76px; max-width: 100%; margin: 0; }
.schnellstart__teil .r-detail { display: none; }   /* Zusatzmasse der Böden (R, r, h2, H): in der kleinen Kachel zu eng */
.schnellstart__teil .icon { width: 30px; height: 30px; margin: 6px 0; color: var(--blue); }
.schnellstart__teil--link .schnellstart__karte { color: var(--steel); border-style: dashed; }
.schnellstart__weiter { padding-top: 20px; border-top: 1px dashed var(--line); }
@supports selector(:has(*)) { .schnellstart__form:not(:has(input[name=teil]:checked)) .schnellstart__weiter { display: none; } }
.schnellstart__masse { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 16px; align-items: end; }
@media (max-width: 480px) { .schnellstart__masse { grid-template-columns: 1fr 1fr; } }
.schnellstart__masse .field { margin: 0; }
.schnellstart__form:is([data-teil=kloepper], [data-teil=korbbogen]) .schnellstart__feld-h { order: 1; } /* Böden: Da, s, h1 wie im Rondenrechner */
@media (max-width: 480px) { .schnellstart__karte { min-height: 100px; } .schnellstart__teil .rechner__skizze { width: 64px; } }
.schnellstart__hilfe { margin: -4px 0 10px; font-size: .92rem; color: var(--steel); }
.schnellstart__menge { margin: 14px 0 0; max-width: 240px; }
.schnellstart__senden { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.schnellstart__senden p { margin: 0; }
/* Schnellstart nach der Übernahme ins Formular (anfrage.js): Masse, Werkstoff und Stückzahl klappen zu, eine Zeile bleibt */
.schnellstart__form.ist-uebernommen .schnellstart__weiter { display: none; }
.schnellstart__fertig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 16px 0 0; padding: 12px 16px; border-left: 4px solid var(--blue); border-radius: var(--radius); background: var(--blue-50); color: var(--ink); }
.schnellstart__fertig[hidden] { display: none; }
.vorgabe-hinweis { display: flex; gap: 10px; align-items: flex-start; }
.vorgabe-hinweis .icon { flex: none; width: 20px; height: 20px; margin: 2px 0 0; }

/* Die fünf Schritte als Blöcke: 1, 3 und 5 liegen auf einer leicht bläulichen Fläche (--abschnitt-ton, hell und dunkel),
   2 und 4 auf dem Seitengrund. So liest man das lange Formular in Abschnitten statt als eine Liste (Wunsch Yves, 25.11.2026). */
.fblock { padding: 4px clamp(16px, 2.6vw, 28px) 30px; margin: 0 0 14px; border-radius: var(--radius-lg); scroll-margin-top: calc(var(--header-h) + 16px); }
.fblock:nth-of-type(odd) { background: var(--abschnitt-ton); }
.fblock:nth-of-type(odd) .anfrage-hinweise { background: var(--surface); }
@media (max-width: 600px) { /* am Handy bis an den Bildschirmrand – der Inhalt bleibt gleich breit */
  .fblock { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); border-radius: 0; }
}
.fblock__kopf { display: flex; gap: 18px; align-items: flex-start; margin: 24px 0 22px; }
.fblock__nr { flex: none; display: grid; place-items: center; width: 44px; height: 44px; background: var(--navy); color: #fff; font: 600 1.05rem var(--font-cond); border-radius: var(--radius); position: relative; }
.fblock__nr::after { content: ""; position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; background: var(--orange); }
.fblock h2 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); margin: 6px 0 4px; }
.fblock__hinweis { margin: 0; color: var(--steel); max-width: 66ch; }

.fgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 20px; }
.fgrid > .w-voll { grid-column: span 6; }
.fgrid > .w-halb { grid-column: span 3; }
.fgrid > .w-drittel { grid-column: span 2; }
@media (max-width: 720px) { .fgrid > .w-halb, .fgrid > .w-drittel { grid-column: span 6; } }
@media (min-width: 480px) and (max-width: 720px) { .fgrid > .w-drittel { grid-column: span 3; } }

.field { margin: 0 0 20px; min-width: 0; }
fieldset.field { border: 0; padding: 0; }
.field label, .field legend { display: block; font-size: .98rem; font-weight: 600; margin: 0 0 7px; padding: 0; }
.field .einheit { font-weight: 400; color: var(--steel); }
.req { color: var(--orange-600); font-weight: 700; }
.help { margin: 6px 0 0; font-size: .92rem; color: var(--steel); }
.error { margin: 6px 0 0; font-size: .92rem; color: var(--error); font-weight: 500; }
.mb-hinweis { color: var(--orange-600); font-weight: 500; }
.mb-hinweis::before { content: "▲ "; font-size: .8em; }
.anfrage input[type=text], .anfrage input[type=email], .anfrage input[type=tel], .anfrage input[type=date], .anfrage select, .anfrage textarea,
.formular input[type=text], .formular input[type=email], .formular input[type=password], .formular input[type=date], .formular select, .formular textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--field-bd); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s;
}
.anfrage textarea, .formular textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.anfrage select, .formular select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: var(--icon-select);
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.anfrage :is(input, select, textarea):hover, .formular :is(input, select, textarea):hover { border-color: var(--steel); }
.anfrage :is(input, select, textarea):focus, .formular :is(input, select, textarea):focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(243, 145, 0, .3); }
.field.invalid :is(input, select, textarea), .field.invalid .segment { border-color: var(--error); }
::placeholder { color: var(--placeholder); opacity: 1; }
.input-einheit { position: relative; }
.input-einheit input { padding-right: 52px !important; }
.input-einheit span { position: absolute; right: 1px; top: 1px; bottom: 1px; display: grid; place-items: center; min-width: 46px; padding: 0 10px; background: var(--bg-alt); border-left: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) 0; color: var(--steel); font-size: .92rem; }

.segment { display: flex; width: 100%; max-width: 440px; border: 1px solid var(--field-bd); border-radius: var(--radius); overflow: hidden; }
.segment label { flex: 1; position: relative; margin: 0; font-weight: 500; }
.segment input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segment span { display: block; padding: 12px 10px; text-align: center; border-right: 1px solid var(--field-bd); cursor: pointer; user-select: none; transition: background .15s; }
.segment label:last-child span { border-right: 0; }
.segment label:hover span { background: var(--bg-alt); }
.segment input:checked + span { background: var(--blue-fill); color: #fff; }
.segment input:focus-visible + span { box-shadow: inset 0 0 0 3px rgba(243, 145, 0, .7); }
.radios { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.radios label { display: flex; align-items: center; gap: 9px; font-weight: 400; margin: 0; cursor: pointer; }
.radios input, .check input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); flex: none; }
.wahl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl-chip { position: relative; margin: 0 !important; font-weight: 400 !important; }
.wahl-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wahl-chip span { display: block; padding: 8px 15px; border: 1px solid var(--field-bd); border-radius: 999px; cursor: pointer; user-select: none; transition: background .15s, border-color .15s; }
.wahl-chip:hover span { border-color: var(--blue); }
.wahl-chip input:checked + span { background: var(--blue-fill); border-color: var(--blue-fill); color: #fff; }
.wahl-chip input:checked + span::before { content: "✓ "; }
.wahl-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(243, 145, 0, .55); }
.field .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; margin: 0; }
.field .check input { margin-top: 2px; }
.field--flag { align-self: end; padding-bottom: 12px; }
.bedingt { display: none; }
.bedingt.offen { display: block; }
/* Anfrage-Dokument: Teile-Abschnitt wird optional */
.fblock__hinweis--optional { display: none; }
.ist-optional .fblock__hinweis--optional { display: block; }
.ist-optional .fblock__hinweis--normal { display: none; }
.ist-optional:not(.ergaenzt) .teile, .ist-optional:not(.ergaenzt) .teil-neu { display: none; }
.ist-optional.ergaenzt [data-ergaenzen], .ist-optional .teile .req { display: none; }
.linkknopf { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.linkknopf:hover { color: var(--blue-700); }

.teile { display: grid; gap: 18px; margin-bottom: 18px; }
.teil { position: relative; margin: 0; padding: 22px 22px 4px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
/* Teil, das der Schnellstart eben gefüllt hat: kurz hervorheben (anfrage.js) */
.teil { transition: box-shadow .5s var(--ease), border-color .5s var(--ease); }
.teil.ist-uebernommen { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(243, 145, 0, .28); }
.teil__kopf { float: left; width: 100%; margin: 0 0 16px; padding: 0; font: 600 .82rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.teil > .fgrid { clear: both; }
/* Aufklappbare Feldgruppe im Formular (Technische Angaben, Einsatz) */
.feldgruppe { grid-column: 1 / -1; margin: 4px 0 22px; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: var(--radius); background: var(--blue-50); transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.feldgruppe summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 14px 16px 14px 54px; position: relative; }
.feldgruppe summary::-webkit-details-marker { display: none; }
/* Plus (zu) / Minus (offen) in einem orangen Kreis */
.feldgruppe summary::before { content: "+"; position: absolute; left: 14px; top: 50%; width: 28px; height: 28px; margin-top: -14px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; font: 700 20px/1 var(--font); }
.feldgruppe[open] summary::before { content: "–"; background: transparent; color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
.feldgruppe__titel { font-weight: 700; color: var(--blue); }
.feldgruppe summary:hover .feldgruppe__titel { text-decoration: underline; }
.feldgruppe:not([open]):hover { border-color: var(--orange); }
.feldgruppe__hinweis { font-size: .88rem; color: var(--steel); }
.feldgruppe > .fgrid { padding: 6px 16px 0; border-top: 1px solid var(--line-soft); }
.feldgruppe[open] { background: transparent; }
/* Technische Angaben: drei Blöcke mit Zwischentitel (Werkstoff, Masse, Ausführung) – 'bloecke' in anfrage/formular.php.
   Die Felder sind dieselben, nur sortiert; der Zwischentitel trägt die Linie, damit kein weiterer Kasten entsteht. */
.feldblock { grid-column: 1 / -1; min-width: 0; }
.feldblock__titel { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; font: 600 .8rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.feldblock__titel::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.feldblock + .feldblock .feldblock__titel { margin-top: 2px; }
.feldblock:first-child .feldblock__titel { margin-top: 10px; }
/* Zugeklappt und im Bild (Klasse .leuchtet aus anfrage.js): ein oranger Lichtring läuft um die Gruppe, bis sie offen ist */
@property --umlauf { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@media (prefers-reduced-motion: no-preference) {
  .feldgruppe.leuchtet:not([open]) summary::after {
    content: ""; position: absolute; inset: -1px -1px -1px -3px; border-radius: var(--radius); padding: 2.5px; pointer-events: none;
    background: conic-gradient(from var(--umlauf), transparent 0 45%, rgba(243, 145, 0, .3) 65%, var(--orange) 84%, #FFD08A 90%, transparent 97%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: umlauf 3.2s linear infinite;
  }
  @keyframes umlauf { to { --umlauf: 360deg; } }
  /* dazu ein weicher oranger Schein um den Kasten, im Takt des Lichtrings (am Ring selbst schneidet die Maske jeden Schein ab) */
  .feldgruppe.leuchtet:not([open]) { animation: glimmen 3.2s ease-in-out infinite; }
  @keyframes glimmen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(243, 145, 0, 0); }
    50% { box-shadow: 0 0 16px 1px rgba(243, 145, 0, .3); }
  }
}
.datenschutz-hinweis { margin: 4px 0 18px; font-size: .9rem; color: var(--steel); }
.teil__entfernen { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: none; border: 1px solid transparent; border-radius: var(--radius); color: var(--steel); font: inherit; font-size: .9rem; cursor: pointer; }
.teil__entfernen[hidden] { display: none; } /* nur ein Teil: nichts zu entfernen */
.teil__entfernen:hover { color: var(--error); border-color: var(--error-bg); background: var(--error-bg); }
.teil__entfernen .icon { width: 16px; height: 16px; }
.teil-neu .icon { width: 1.1em; height: 1.1em; }

.dropzone {
  position: relative; display: block; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--bg-alt);
  padding: 34px 22px 28px; text-align: center; cursor: pointer; transition: background .15s, border-color .15s;
  background-image: linear-gradient(rgba(0, 96, 166, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 96, 166, .05) 1px, transparent 1px);
  background-size: 20px 20px;
}
.dropzone::before, .dropzone::after { content: ""; position: absolute; width: 22px; height: 22px; border: 3px solid var(--blue); }
.dropzone::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.dropzone::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.dropzone:hover { border-color: var(--blue); }
.dropzone.drag { border-color: var(--orange); background-color: var(--orange-50); }
.dropzone.drag::before, .dropzone.drag::after { border-color: var(--orange); }
.dropzone.hat-dateien { padding-block: 22px 18px; }
.dropzone__icon { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--blue); }
.dropzone strong { font-weight: 600; font-size: 1.08rem; }
.dropzone u { color: var(--blue); }
.filelist { list-style: none; margin: 12px 0 0; padding: 0; }
.filelist li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line-soft); }
.filelist li::before { content: ""; width: 18px; height: 22px; flex: none; border: 2px solid var(--blue); border-radius: 2px; }
.filelist .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist .fsize { color: var(--steel); white-space: nowrap; font-variant-numeric: tabular-nums; }
.filelist button { background: none; border: 0; color: var(--blue); font: inherit; font-size: .92rem; cursor: pointer; padding: 4px; text-decoration: underline; }

/* Vorschlag aus PDF */
.pdf-vorschlag { margin: 14px 0 0; padding: 18px 20px; border: 1px solid var(--blue); border-left-width: 4px; border-radius: var(--radius); background: var(--blue-50); }
.pdf-vorschlag__titel { margin: 0 0 8px; font-weight: 600; color: var(--blue-700); }
.pdf-vorschlag .spec { border-top-width: 1px; margin-bottom: 10px; }
.pdf-vorschlag .spec__row { padding: 8px 0; }
.pdf-vorschlag .help { margin: 0 0 12px; }
.pdf-vorschlag__ok { margin: 0; font-weight: 600; color: var(--ok); }
/* Adressvorschläge (Schweiz) */
.hat-vorschlaege { position: relative; }
.vorschlaege { position: absolute; left: 0; right: 0; z-index: 30; margin: 0; padding: 4px 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 320px; overflow-y: auto; }
.vorschlaege [role=option] { padding: 10px 14px; cursor: pointer; }
.vorschlaege [role=option]:hover, .vorschlaege [aria-selected=true] { background: var(--blue-50); color: var(--blue-700); }
.vorschlaege__quelle { padding: 6px 14px 4px; font-size: .78rem; color: var(--steel-light); border-top: 1px solid var(--line-soft); margin-top: 4px; }
/* Werkstoff-Vorschläge (anfrage.js): Normbezeichnung, Nummer und – bei Treffern auf alte Namen – auch dieser; Fundstelle markiert */
.vorschlaege--werkstoff { right: auto; min-width: 100%; width: max-content; max-width: min(460px, calc(100vw - 48px)); max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
.vorschlaege--werkstoff [role=option] { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 8px 14px; }
.vorschlaege__nr { font: 500 .88rem var(--mono); color: var(--steel); }
.vorschlaege__alias { flex-basis: 100%; font-size: .85rem; color: var(--steel); }
.vorschlaege mark { background: var(--orange-50); color: inherit; font-weight: 700; border-radius: 2px; padding: 0 1px; }
.anfrage-hinweise { background: var(--bg-alt); border-left: 4px solid var(--orange); padding: 18px 22px; margin: 0 0 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.anfrage-hinweise h3 { font-size: 1.02rem; margin: 0 0 8px; }
.anfrage-hinweise ul { margin: 0; padding-left: 20px; color: var(--steel); font-size: .96rem; }
.anfrage-hinweise li { margin: 4px 0; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.senden-zeile { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.senden-zeile p { margin: 0; }
@media (max-width: 520px) { .senden-zeile .btn { width: 100%; } }
.alert { margin: 0 0 24px; padding: 14px 18px; border-radius: var(--radius); background: var(--error-bg); color: var(--error); border: 1px solid var(--error); }
.alert a { color: inherit; }
.alert--ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.alert--hinweis { background: var(--orange-50); color: var(--ink); border-color: var(--orange); }
.anfrage-fertig { border: 1px solid var(--line); border-top: 6px solid var(--blue); border-radius: var(--radius-lg); padding: 32px 32px 18px; position: relative; }
.anfrage-fertig::after { content: ""; position: absolute; top: -6px; left: 32px; width: 64px; height: 6px; background: var(--orange); }
.anfrage-fertig h2 { font-size: 1.6rem; }
.anfrage-fertig__label { margin: 0; color: var(--steel); }
.anfrage-fertig__ref { font: 600 clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem)/1.2 var(--font-cond); color: var(--blue); letter-spacing: .03em; margin: 4px 0 16px; }

/* --- Redaktion ------------------------------------------------------------------ */
.redaktion { background: var(--bg-alt); }
.red-kopf { background: var(--surface); border-bottom: 1px solid var(--line); }
.red-kopf .brandbar { height: 6px; background-size: 100% 4px, 100% 2px; }
.red-kopf__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 10px; }
.red-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--steel); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.red-logo img { height: 48px; width: auto; }
.red-menue { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.red-menue a { color: var(--ink); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.red-menue a:hover { color: var(--blue); }
.red-menue .icon { width: 15px; height: 15px; }
.red-menue .themaknopf .icon { width: 20px; height: 20px; }   /* Hell/Dunkel-Knopf wie auf der Website */
.red-formular + .red-block { margin-top: 24px; }   /* Seite «Update»: Abstand zwischen Formular und Stand */
.red-menue form { margin: 0; }
.red-haupt { padding-block: 32px 80px; }
.red-haupt h1 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.red-block { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 24px; }
.red-block__kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.red-block__kopf h2 { font-size: 1.3rem; margin: 0; }
.red-liste { list-style: none; margin: 0; padding: 0; }
.red-liste li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.red-liste li > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.red-aktionen { display: flex; flex-wrap: wrap; gap: 6px; }
.red-aktionen form { margin: 0; }
.red-aktionen .icon { width: 16px; height: 16px; }
.red-badge { font-size: .8rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.red-badge--an { background: var(--ok-bg); color: var(--ok); }
.red-badge--aus { background: var(--line-soft); color: var(--steel); }
.red-badge--geplant { background: var(--orange-50); color: var(--orange-600); }
.red-badge--fehler { background: var(--error-bg); color: var(--error); }
.red-loeschen { --btn-bg: transparent; --btn-fg: var(--error); --btn-bd: transparent; }
.red-loeschen:hover { --btn-bg: var(--error-bg); --btn-fg: var(--error); --btn-bd: var(--error-bg); }
.redaktion .btn[aria-disabled="true"] { opacity: .6; cursor: progress; } /* abgeschickt, wartet auf Antwort (redaktion.js) */
.red-formular, .red-login { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 24px; max-width: 920px; }
.red-login { max-width: 460px; }
.red-raster { display: grid; gap: 0 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.red-raster > .field:first-child { grid-column: 1 / -1; }
.red-formular code { font: .9em var(--mono); background: var(--bg-alt); padding: 1px 5px; border-radius: 3px; }
.red-formular input[type=file] { padding: 10px; border: 1px dashed var(--line); border-radius: var(--radius); width: 100%; background: var(--bg-alt); }
.red-inline { display: inline-flex !important; margin-left: 12px !important; }
.red-formular .icon { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; }
.formular input[type=email], .formular input[type=date] { max-width: 100%; }
.red-bild { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.red-bild img { width: 320px; max-width: 100%; height: auto; border-radius: var(--radius); }
.red-hilfe { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 16px 22px; }
.red-hilfe summary { cursor: pointer; font-weight: 600; }
.red-hilfe ul { margin: 12px 0 0; color: var(--steel); }
.red-formular .red-hilfe { margin: 0 0 20px; }
.red-hilfe[open] summary { margin-bottom: 12px; }

/* --- Wissensbereich ----------------------------------------------------------------- */
.pruefen { background: #FFE98A; color: #14212D; padding: 0 .15em; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.entwurf-hinweis { margin: 24px 0 0; }
.card__icon { width: 36px; height: 36px; color: var(--blue); margin-bottom: 6px; }
.filter { max-width: 520px; margin: 0 0 24px; }
.filter label { display: block; font-weight: 600; margin: 0 0 7px; }
.filter input { width: 100%; min-height: 48px; padding: 11px 13px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--field-bd); border-radius: var(--radius); }
.filter input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(243, 145, 0, .3); }
.werkstoff-liste summary .muted { font-weight: 400; font-size: .95rem; }
.werkstoff-liste details > div { max-width: none; color: inherit; }
.tabelle--kompakt { font-size: .95rem; }
.tabelle--kompakt th, .tabelle--kompakt td { padding: 9px 12px; }
.tabelle--kompakt tbody th { font-weight: 500; }
.leitfaden h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.leitfaden-nav ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
/* Leitfaden: Seitenspalte oben statt vertikal zentriert, ab 1100 px mitlaufend */
.split--oben { align-items: start; }
@media (min-width: 1100px) { .leitfaden-seite { position: sticky; top: calc(var(--header-h) + 24px); } }
.leitfaden-masse { margin-bottom: 24px; }
@media (max-width: 899.98px) { .leitfaden-seite { order: -1; } }   /* Handy: Abmessungen und Inhalt vor dem Text */
/* Leitfaden «Kostengünstig konstruieren»: eigene Schnitt-Piktogramme über dem Text */
.kosten-tabelle td { width: 38%; }
.kosten-bild { display: block; width: 100px; height: 62px; margin-bottom: 6px; color: var(--ink); }
@media (max-width: 599.98px) {   /* Handy: beide Spalten nebeneinander, ohne Wischen */
  .kosten-tabelle { min-width: 0; font-size: .9rem; }
  .kosten-tabelle th, .kosten-tabelle td { padding: 10px 7px; }
  .kosten-tabelle thead th { font-size: .72rem; letter-spacing: .05em; }
  .kosten-bild { width: 76px; height: 48px; }
}

/* --- Rondenrechner -------------------------------------------------------------------- */
.rechner { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.rechner__form.is-aktiv { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
/* Umschalter in einer Rechner-Kachel (Wanddicke beim Projizieren: Winkel / Abmasse): zeigt nur die Felder der gewählten
   Eingabeart. Ohne :has() (alte Browser) bleiben alle Felder sichtbar; gerechnet wird auch dann nur mit der gewählten Art. */
.rechner__modus { max-width: 260px; margin: 0 0 18px; }
.segment--klein span { padding: 7px 10px; font-size: .92rem; }
.rechner__form:has(input[name="modus"][value="winkel"]:checked) [data-modus="masse"],
.rechner__form:has(input[name="modus"][value="masse"]:checked) [data-modus="winkel"] { display: none; }
.rechner__skizze { display: block; width: 100%; max-width: 230px; height: auto; margin: 0 0 12px; color: var(--blue); }
.r-teil { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.r-mass { fill: none; stroke: var(--orange); stroke-width: 1.2; stroke-dasharray: 3 2; }
.rechner__skizze { overflow: visible; }
.rechner__skizze text { fill: var(--ink); font: 700 12px var(--font); text-anchor: middle; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.rechner .btn .icon { width: 1.15em; height: 1.15em; margin: 0; color: inherit; }
.rechner__ergebnis { margin-top: 16px; padding: 14px 16px; background: var(--blue-50); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; }
.rechner__ergebnis span { display: block; font-size: .9rem; color: var(--steel); }
.rechner__ergebnis strong { display: block; margin: 2px 0 10px; font: 600 2rem/1.1 var(--font-cond); color: var(--blue); font-variant-numeric: tabular-nums; }
.rechner__ergebnis .mb-hinweis { margin: 0 0 10px; }
.rechner__hinweis { margin-top: 24px; max-width: 72ch; }
.rechner__detail { margin: -6px 0 10px; font-size: .88rem; color: var(--steel); }
.rechner__masse { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 3px 16px; margin: -4px 0 12px; font-size: .88rem; color: var(--steel); }
.rechner__masse dt, .rechner__masse dd { margin: 0; }
.rechner__masse dd { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rechner__weiter { margin: 12px 0 0; }

/* --- Statistik (Redaktion) ---------------------------------------------------------- */
.stat-zeitraum { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 0 0 20px; }
.stat-zeitraum a { display: inline-flex; align-items: center; gap: 6px; }
.stat-zeitraum .icon { width: 16px; height: 16px; }
.stat-zahlen { margin: 0 0 24px; box-shadow: none; border: 1px solid var(--line-soft); }
.stat-diagramm { width: 100%; height: 200px; display: block; margin: 8px 0; }
.stat-balken { fill: var(--blue); }
.stat-balken:hover { fill: var(--orange); }
.stat-anfrage { fill: var(--orange); }
.stat-achse { stroke: var(--line); stroke-width: 1; }
.stat-raster { display: grid; gap: 0 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.stat-tabelle { min-width: 0; }
.stat-tabelle th[scope="row"] { word-break: break-all; }
.stat-tabelle meter { width: 90px; height: 10px; vertical-align: middle; }
.stat-tabelle td:last-child { white-space: nowrap; }
.stat-tabelle + .stat-tabelle, .tabelle-wrap + .tabelle-wrap { margin-top: 12px; }

/* --- Easter Egg (site.js) ----------------------------------------------------------- */
.ei {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; display: flex; align-items: center; gap: 16px;
  width: max-content; max-width: min(520px, calc(100vw - 32px)); padding: 16px 20px; cursor: pointer;
  background: var(--navy); color: #fff; border-top: 4px solid var(--orange); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  transform: translate(-50%, 0); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.ei--weg { opacity: 0; transform: translate(-50%, 16px); }
.ei p { margin: 0; font-size: .98rem; line-height: 1.45; }
.ei strong { display: block; color: var(--orange); font-size: 1.05rem; }
.ei__scheibe { flex: none; position: relative; width: 44px; height: 44px; border: 2px dashed var(--orange); border-radius: 50%; }
.ei__scheibe::after { content: ""; position: absolute; inset: 17px; background: var(--orange); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .ei { animation: ei-rein .4s var(--ease); }
  .ei__scheibe { animation: dreh 2.5s linear infinite; }
  .ei-dreht .hero__dim .dim-ring { animation: dreh 1.5s linear infinite; } /* vom Besucher ausgelöst */
}
@keyframes ei-rein { from { opacity: 0; transform: translate(-50%, 16px); } }

/* --- 404 ---------------------------------------------------------------------- */
.fehler { text-align: left; }
.fehler__code { font: 600 clamp(5rem, 3rem + 10vw, 11rem)/1 var(--font-cond); color: var(--blue); letter-spacing: -.02em; margin: 0; }
.fehler__code span { color: var(--orange); }

/* --- Einblenden beim Scrollen: reines CSS, ohne Unterstützung bleibt alles sichtbar ---- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: einblenden linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@keyframes einblenden { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* === Premium-Feinschliff ===================================================================
   Alles Bewegte nur ohne «Bewegung reduzieren»; Browser ohne Unterstützung zeigen die Seite einfach ohne Effekt. */

/* Kopfzeile: Fläche auf einem Pseudo-Element (so bleibt das fixierte Mobilmenü unabhängig), immer deckend –
   die frühere Glas-Variante liess beim Scrollen Text durchscheinen, weil die Unschärfe nicht überall greift */
.site-header { background: transparent; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--surface); }

@media (prefers-reduced-motion: no-preference) {
  /* Seitenwechsel: weich überblenden, Kopfzeile bleibt stehen (View Transitions zwischen Seiten) */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: kopf; }
  ::view-transition-group(kopf) { animation-duration: 0s; }
  ::view-transition-old(kopf) { display: none; }
  ::view-transition-new(kopf) { animation: none; }
  ::view-transition-old(root) { animation: vt-raus .2s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-rein .45s cubic-bezier(.2, .7, .2, 1) both; }

  /* Startseite: Bild zoomt ins Format, Texte bauen sich gestaffelt auf */
  .hero__media img { animation: hero-zoom 2.8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__kicker, .hero h1, .hero__lead, .hero__actions { animation: hoch .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__lead { animation-delay: .08s; }
  .hero__actions { animation-delay: .14s; }
  .hero__dim { animation: einblend 1.4s .4s var(--ease) both; }

  /* Unterseiten: Kopf gestaffelt, Bild wird enthüllt, Eckmarken kommen zuletzt */
  .page-hero__text > * { animation: hoch .65s cubic-bezier(.2, .7, .2, 1) both; }
  .page-hero__text > :nth-child(n+4) { animation-delay: .08s; }
  .page-hero__media img { animation: enthuellen .95s cubic-bezier(.65, 0, .35, 1) both; }
  .page-hero__media::before, .page-hero__media::after { animation: einblend .5s .9s var(--ease) both; }

  /* Orange Knöpfe: Glanz beim Darüberfahren */
  .btn--primary { position: relative; overflow: hidden; isolation: isolate; }
  .btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-130%); }
  .btn--primary:hover::after { transform: translateX(130%); transition: transform .75s var(--ease); }
  /* Anfrage-Knopf oben rechts: pulsiert beim Ankommen zweimal – einmal pro Besuch (Klasse aus site.js).
     Bewusst nur dieser Knopf und nur einmal: Mehr wäre aufdringlich. */
  .btn--primary.pulsiert { animation: knopf-puls 1.5s cubic-bezier(.3, 0, .3, 1) 2; }
}
/* Schein + Lichtring, der sich vom Knopf ausbreitet und verblasst – auf dem blauen Band gut sichtbar, aber ruhig */
@keyframes knopf-puls {
  0% { box-shadow: 0 0 0 0 rgba(255, 176, 60, 0), 0 0 0 0 rgba(255, 176, 60, .75); }
  35% { box-shadow: 0 0 26px 4px rgba(255, 176, 60, .6), 0 0 0 6px rgba(255, 176, 60, .45); }
  100% { box-shadow: 0 0 0 0 rgba(255, 176, 60, 0), 0 0 0 18px rgba(255, 176, 60, 0); }
}
@keyframes vt-raus { to { opacity: 0; } }
@keyframes vt-rein { from { opacity: 0; transform: translateY(14px); } }
@keyframes hero-zoom { from { transform: scale(1.09); } }
/* Einstieg nie unsichtbar: Google zählt Text erst, wenn er sichtbar ist (FCP/LCP) – darum ab dem ersten Bild lesbar */
@keyframes hoch { from { opacity: .35; transform: translateY(14px); } }
@keyframes einblend { from { opacity: .2; } }
/* nie ganz verdeckt starten: das Bild zählt sonst später als «geladen» (Largest Contentful Paint) */
@keyframes enthuellen { from { clip-path: inset(0 0 34% 0); transform: scale(1.06); } to { clip-path: inset(0); transform: none; } }

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Lesefortschritt: feine orange Linie unter der Kopfzeile */
    .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none;
      background: linear-gradient(90deg, var(--orange), #FFB547); transform-origin: 0 50%; transform: scaleX(0);
      animation: fortschritt linear both; animation-timeline: scroll(root); }
    /* Bilder in Rahmen und Zweispaltern enthüllen sich beim Scrollen */
    .frame:not(.page-hero__media) img, .split__media img { animation: bild-rein linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    /* Karten in Rastern leicht versetzt */
    .grid > .reveal:nth-child(3n+2) { animation-range: entry 6% entry 61%; }
    .grid > .reveal:nth-child(3n+3) { animation-range: entry 12% entry 67%; }
    /* Lagekarte Schweiz: Grenze zeichnet sich, dann füllt sich die Fläche */
    .lagekarte--schweiz .lk-ch { stroke-dasharray: 1; animation: grenze linear both; animation-timeline: view(); animation-range: entry 20% cover 50%; }
  }
}
@keyframes fortschritt { to { transform: scaleX(1); } }
@keyframes bild-rein { from { clip-path: inset(8% 8% 8% 8% round 4px); transform: scale(1.08); opacity: .4; } to { clip-path: inset(0); transform: none; opacity: 1; } }
@keyframes grenze { from { stroke-dashoffset: 1; fill-opacity: 0; } 55% { fill-opacity: 0; } to { stroke-dashoffset: 0; fill-opacity: 1; } }

/* Feine Körnung auf dunklen Flächen (wirkt wie bedrucktes Material statt Bildschirmfarbe) */
.hero__media::after, .werkstoffband::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)' opacity='.5'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.cta-band::before { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 18px), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)' opacity='.5'/%3E%3C/svg%3E"); }

/* Links im Fliesstext: Unterstrich wächst beim Darüberfahren */
.prose a:not(.btn):not(.linkpfeil):not(.linkedin-link) { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .3s var(--ease); }
.prose a:not(.btn):not(.linkpfeil):not(.linkedin-link):hover { background-size: 100% 2px; }

/* Kopfzeile: Grundlogo (ohne «80 Jahre») – breiter als hoch, so ist die Schrift auch in der schlanken Leiste lesbar */
.site-logo img { height: 58px; width: auto; }
.schweizerkreuz { display: block; width: 22px; height: 22px; }
@media (min-width: 1200px) and (max-width: 1599px) {
  .site-header__tel span { display: none; }
  .site-header__inner { gap: 14px; }
  .site-header__actions { gap: 8px; }
  .mainnav__link { padding-inline: 7px; }
}
/* 1200–1299 px: Mit dem Menüpunkt «Wissen» (frei seit 26.11.2026) ist die deutsche Kopfzeile sonst rund 80 px zu breit
   und der Knopf ragt aus dem Bild. Darum hier der kurze Knopf «Offerte» und schmalere Menüpunkte. */
@media (min-width: 1200px) and (max-width: 1299px) {
  .mainnav__link { padding-inline: 5px; }
  .site-header .cta-voll { display: none; }
  .site-header .cta-kurz { display: inline; }
}
@media (max-width: 1199px) {
  .site-logo img { height: 46px; }
  .schweizerkreuz { width: 18px; height: 18px; }
}
/* grosse Bildschirme: Logo grösser, Leiste dafür nur wenig höher (Logo füllt gut 80 % der Leiste) */
@media (min-width: 1440px) {
  :root { --header-h: 84px; }
  .site-logo img { height: 68px; }
}
@media (min-width: 1800px) {
  :root { --header-h: 92px; }
  .site-logo img { height: 76px; }
}
/* Marke «Seit 1945» neben dem Logo – nur dort, wo die Kopfzeile Platz hat */
.site-header__seit { display: none; }
@media (min-width: 1440px) {
  .site-header__seit { display: flex; align-items: center; flex: none; margin-left: -2px; padding-left: 14px; border-left: 1px solid var(--line); height: 52px; }
}
@media (min-width: 1800px) { .site-header__seit { height: 58px; padding-left: 16px; } }
.seit-marke { display: block; width: 60px; height: 60px; }
/* Die Ronde führt zur Geschichte. Hover nur über die Farbe der Scheibe (wie bei den blauen Knöpfen):
   Vergrössern zeichnet die Schrift im SVG neu, sie wirkt dann wie eine andere Schrift (Rückmeldung Yves, 20.11.2026) */
a.site-header__seit { text-decoration: none; }
a.site-header__seit .seit-marke__scheibe { transition: fill .2s var(--ease); }
a.site-header__seit:hover .seit-marke__scheibe, a.site-header__seit:focus-visible .seit-marke__scheibe { fill: var(--blue-fill-hover); }
@media (min-width: 1800px) { .seit-marke { width: 68px; height: 68px; } }
.seit-marke__ring { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: 5 3.4; }
.seit-marke__scheibe { fill: var(--blue-fill); }
.seit-marke__wort { fill: #fff; font: 600 9.5px var(--font); letter-spacing: .12em; }
.seit-marke__wort--lang { font-size: 8px; letter-spacing: .08em; }
.seit-marke__jahr { fill: #fff; font: 700 17px var(--font-cond); letter-spacing: .02em; }
@media (prefers-reduced-motion: no-preference) {
  /* gleicher Takt wie der Ring auf der Startseite (60 s): beide starten beim Laden und drehen synchron */
  .seit-marke__ring { transform-origin: 32px 32px; animation: dreh 60s linear infinite; }
}

/* grosse Bildschirme: Kopfzeile etwas breiter als der Inhalt, damit Logo, Menü, Telefon und Knöpfe Platz haben */
@media (min-width: 1600px) { .site-header__inner { max-width: 1560px; } }
@media (prefers-reduced-motion: reduce) { .site-header__inner, .site-logo img { transition: none; } }

/* Galerie «Aus unserer Werkstatt» (Über uns): Kacheln 4:3, erste Kachel gross; Klick öffnet die Lightbox (site.js) */
.galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.galerie__eintrag:first-child { grid-column: span 2; }
@media (min-width: 900px) {
  .galerie { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .galerie__eintrag:first-child { grid-row: span 2; }
}
.galerie__link { position: relative; display: block; height: 100%; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg); background: var(--bg-alt); color: #fff; text-decoration: none; }
.galerie__link img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* Zoom beim Darüberfahren: ruhig und ohne «Hüpfen» – das Bild bleibt dauerhaft auf eigener Ebene (will-change),
   sonst zeichnet der Browser es am Anfang und Ende der Bewegung neu und es springt um Bruchteile eines Pixels */
@media (prefers-reduced-motion: no-preference) {
  .galerie__link img { transition: transform .9s var(--ease); will-change: transform; backface-visibility: hidden; }
  .galerie__link:hover img, .galerie__link:focus-visible img { transform: scale(1.03); }
}
.galerie__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 14px 12px; font-size: .88rem; font-weight: 600; line-height: 1.3; background: linear-gradient(0deg, rgba(11, 34, 54, .85), rgba(11, 34, 54, 0)); }
@media (max-width: 599px) { .galerie__eintrag:not(:first-child) .galerie__text { padding: 22px 10px 8px; font-size: .74rem; } }
@media (hover: hover) {
  .galerie__text { opacity: 0; transition: opacity .35s var(--ease); }
  .galerie__link:hover .galerie__text, .galerie__link:focus-visible .galerie__text { opacity: 1; }
}
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 64px 72px; border: 0; background: transparent; color: #fff; overflow: hidden; }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(6, 18, 30, .92); }
.lightbox__bild { max-width: min(100%, 1600px); max-height: calc(100vh - 170px); width: auto; height: auto; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox__text { margin: 16px 0 0; text-align: center; font-weight: 600; color: #D2DEE8; }
.lightbox__knopf { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(11, 34, 54, .6); color: #fff; font: 400 30px/1 var(--font); cursor: pointer; }
.lightbox__knopf:hover, .lightbox__knopf:focus-visible { background: var(--orange); border-color: var(--orange); }
.lightbox__zu { top: 16px; right: 16px; }
.lightbox__zurueck, .lightbox__weiter { top: 50%; transform: translateY(-50%); }
.lightbox__zurueck { left: 16px; }
.lightbox__weiter { right: 16px; }
@media (max-width: 599px) {
  .lightbox { padding: 64px 12px 96px; }
  .lightbox__zurueck, .lightbox__weiter { top: auto; bottom: 20px; transform: none; }
}
html:has(.lightbox[open]), html:has(.spiel[open]) { overflow: hidden; }

/* Easter Egg «Einparken» (spiel.js): Vollbild-Dialog mit Spielfeld, Anzeige oben, Tasten unten (nur Touch) */
.spiel { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0B2236; color: #fff; overflow: hidden; }
.spiel[open] { display: flex; flex-direction: column; }
.spiel::backdrop { background: #06121E; }
.spiel__kopf { display: flex; align-items: center; gap: 18px; padding: 10px 16px; font-variant-numeric: tabular-nums; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.spiel__titel { margin-right: auto; font: 700 1.05rem var(--font-cond); letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.spiel__wert { font-size: .85rem; color: #9FB4C6; white-space: nowrap; }
.spiel__wert b { margin-left: 4px; font-size: 1.05rem; color: #fff; }
.spiel__zu { width: 40px; height: 40px; flex: none; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: transparent; color: #fff; font: 400 26px/1 var(--font); cursor: pointer; }
.spiel__zu:hover, .spiel__zu:focus-visible { background: var(--orange); border-color: var(--orange); }
.spiel__feld { display: block; flex: 1; min-height: 0; width: 100%; touch-action: none; outline: 0; }
.spiel__tasten { display: none; justify-content: space-between; gap: 12px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); }
.spiel--touch .spiel__tasten { display: flex; }
.spiel__tasten > div { display: flex; gap: 10px; }
.spiel__taste { width: 68px; height: 58px; padding: 0; border: 1px solid rgba(255, 255, 255, .3); border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 24px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.spiel__taste.ist-an { background: var(--orange); border-color: var(--orange); }
.spiel__karte { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(6, 18, 30, .6); }
.spiel__karte[hidden] { display: none; }
.spiel__inhalt { max-width: 480px; padding: 28px 28px 24px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); background: #0F2A42; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); text-align: center; }
.spiel__inhalt h2 { margin: 0 0 .45em; color: #fff; }
.spiel__inhalt p { color: #D2DEE8; }
.spiel__klein { font-size: .85rem; color: #9FB4C6 !important; }
.spiel__rekord { margin: -.2em 0 .6em; font-weight: 700; color: var(--orange) !important; }
.spiel__ergebnis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.spiel__ergebnis div { display: grid; gap: 2px; padding: 10px 6px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); }
.spiel__ergebnis b { font: 700 1.25rem var(--font-cond); color: #fff; }
.spiel__ergebnis span { font-size: .78rem; color: #9FB4C6; }
.spiel__knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.spiel__cta { display: inline-block; margin-top: 16px; color: var(--orange); }
@media (max-width: 599px) {
  .spiel__kopf { gap: 10px; padding: 8px 10px; }
  .spiel__titel { display: none; }
  .spiel__wert:first-of-type { margin-right: auto; }
  .spiel__inhalt { padding: 22px 18px 18px; }
}

/* Herkunft: Startseite (im Kicker), Über uns, Kontakt */
.hero__herkunft { display: inline-flex; align-items: center; gap: .5em; margin-left: .9em; padding-left: .9em; border-left: 2px solid rgba(255, 255, 255, .35); color: #fff; white-space: nowrap; }
.hero__herkunft .schweizerkreuz { width: 1.15em; height: 1.15em; }
@media (max-width: 599px) { .hero__herkunft { display: flex; margin: .5em 0 0; padding: 0; border: 0; } }
.herkunft { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; color: var(--steel); }
.herkunft .schweizerkreuz { flex: none; width: 26px; height: 26px; }
.herkunft strong { color: var(--ink); }
.facts-bar .herkunft { justify-content: center; }

/* --- Drucken ------------------------------------------------------------------- */
@media print {
  .cta-band, .site-footer__grid, .navtoggle, .hero__dim, .aufhaenger, .teilen, .spin__steuerung, .werkstoffband, .schliess-band, .sprachhinweis { display: none !important; }
  /* Logo oben auf dem Blatt */
  .site-header { position: static !important; box-shadow: none !important; border-bottom: 1pt solid #999; margin-bottom: 14pt; }
  .site-header::before, .site-header::after, .site-header .brandbar, .mainnav, .site-header__actions { display: none !important; }
  .site-header__inner { min-height: 0 !important; padding-block: 6pt; }
  .site-logo img { height: 40pt !important; }
  .hero { color: #000; background: none; } .hero h1, .hero__lead { color: #000; } .hero::before, .hero__media { display: none; }
  body { font-size: 11pt; } a { color: #000; }
}
