/* ============================================================
   Winter Elektromotoren GmbH – www.elektromotoren-winter.at
   Statische Website (ersetzt WordPress), Stand Oktober 2026
   ============================================================ */

/* ---- Schriften (lokal, keine Verbindung zu Google) --------- */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

/* ---- Grundwerte -------------------------------------------- */
:root {
  --graphit: #1c1f22;
  --graphit-2: #26292d;
  --graphit-3: #34383d;
  --stahl: #5d646b;
  --stahl-hell: #c9cdd1;
  --papier: #f3f2ef;
  --papier-2: #e8e6e1;
  --weiss: #ffffff;
  --text: #1c1f22;
  --text-2: #4a5056;
  --rot: #c8261a;          /* Signalrot aus dem bisherigen Auftritt */
  --rot-dunkel: #a51e13;
  --rot-hell: #ff6a55;     /* Rot auf dunklem Grund */
  --kupfer: #b46a32;       /* Wicklungskupfer: Leitfarbe für Linien, Maße, Aufzählungen */
  --kupfer-text: #95501f;  /* Kupfer für Schrift auf hellem Grund (Kontrast ≥ 4,5:1) */
  --kupfer-hell: #e3a46c;  /* Kupfer auf dunklem Grund */
  --linie: #d6d3cc;

  --schrift: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --titel: "Barlow Condensed", "Arial Narrow", "Barlow", sans-serif;

  --breite: 1240px;
  --rand: clamp(16px, 4vw, 40px);
  --abschnitt: clamp(56px, 8vw, 104px);   /* EIN Abstand: oben = unten in jedem Abschnitt */
  --luecke: clamp(24px, 3vw, 40px);       /* Abstand zwischen Blöcken innerhalb eines Abschnitts */
  --radius: 4px;
  --kopf-hoehe: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-hoehe) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--schrift); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--papier); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--rot-dunkel); text-underline-offset: .18em; }
a:hover { color: var(--rot); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { font-family: var(--titel); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: .005em; text-transform: uppercase; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
ul { margin: 0; padding: 0; }
.nr { white-space: nowrap; }
.eszett { text-transform: none; }   /* ß bleibt ß, auch in Versalzeilen (Barlow hat kein ẞ) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--rot); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.abschnitt { padding: var(--abschnitt) 0; }
.abschnitt--hell { background: var(--weiss); }
.abschnitt--dunkel { background: var(--graphit); color: #e9eaeb; }
.abschnitt--dunkel a:where(:not(.knopf):not(.skizze-vorschau)) { color: var(--rot-hell); }   /* :where hält die Gewichtung niedrig */
.abschnitt__kopf { margin-bottom: var(--luecke); }
.abschnitt__kopf h2 { margin-bottom: .3em; }
.stapel > * + * { margin-top: var(--luecke); }

/* Maßlinie wie in der technischen Zeichnung:  |◄──── Text ────►|
   Pfeilspitzen, Maßhilfslinien und Linie kommen als Maske, die Farbe aus currentColor. */
.masslinie, .eyebrow { display: flex; align-items: center; gap: .65em; }
.masslinie::before, .masslinie::after, .eyebrow::before, .eyebrow::after {
  content: ""; flex: 1 1 0; min-width: 1.6rem; height: 14px; background: currentColor;
  -webkit-mask: var(--pfeil) left center / 9px 8px no-repeat, linear-gradient(#000 0 0) left center / 1.5px 14px no-repeat, linear-gradient(#000 0 0) center / 100% 1.5px no-repeat;
          mask: var(--pfeil) left center / 9px 8px no-repeat, linear-gradient(#000 0 0) left center / 1.5px 14px no-repeat, linear-gradient(#000 0 0) center / 100% 1.5px no-repeat;
  --pfeil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 8'%3E%3Cpath d='M0 4 9 .8v6.4z'/%3E%3C/svg%3E");
}
.masslinie::after, .eyebrow::after { transform: scaleX(-1); }
.eyebrow { font-family: var(--titel); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; color: var(--kupfer-text); margin: 0 0 .7em; width: fit-content; max-width: 100%; }
.eyebrow::before, .eyebrow::after { flex: 0 0 2.6rem; }
.abschnitt--dunkel .eyebrow, .held .eyebrow, .seitenkopf .eyebrow { color: var(--kupfer-hell); }

.lead { font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--text-2); }
.abschnitt--dunkel .lead { color: #c4c8cc; }

/* ---- Schaltflächen ----------------------------------------- */
.knopf { display: inline-flex; align-items: center; gap: .55em; font-family: var(--titel); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.1rem; line-height: 1; padding: .95em 1.4em; border-radius: var(--radius); border: 2px solid var(--rot); background: var(--rot); color: #fff; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: #fff; }
.knopf--hohl { background: transparent; border-color: currentColor; color: inherit; }
.knopf--hohl:hover { background: rgba(255,255,255,.1); border-color: currentColor; color: inherit; }
.knopf svg { width: 1.15em; height: 1.15em; flex: none; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Kopf ---------------------------------------------------- */
.leiste { background: #121416; color: #aeb3b8; font-size: .9rem; }
.leiste__innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 7px; padding-bottom: 7px; }
.leiste a { color: inherit; text-decoration: none; }
.leiste a:hover { color: #fff; }
.leiste__zeit strong { color: #fff; font-weight: 500; }

.kopf { position: sticky; top: 0; z-index: 50; background: var(--graphit); border-bottom: 3px solid var(--rot); }
.kopf__innen { display: flex; align-items: center; gap: 24px; min-height: var(--kopf-hoehe); }
.kopf__logo { flex: none; display: block; }
.kopf__logo img { width: clamp(210px, 26vw, 300px); height: auto; }
.nav { margin-left: auto; }
.nav__liste { display: flex; gap: 4px; list-style: none; }
.nav__liste a { white-space: nowrap; }
.nav__liste a, .nav__mobil a { font-family: var(--titel); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 1.08rem; color: #e6e8ea; text-decoration: none; padding: .55em .8em; border-radius: var(--radius); display: block; }
.nav__liste a:hover, .nav__liste a[aria-current="page"] { color: #fff; background: var(--graphit-3); }
.kopf__tel { flex: none; display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; background: var(--rot); padding: 10px 14px; border-radius: var(--radius); }
.kopf__tel:hover { background: var(--rot-dunkel); color: #fff; }
.kopf__tel svg { width: 20px; height: 20px; }
.nav__mobil { display: none; position: relative; }
.nav__mobil summary { list-style: none; cursor: pointer; color: #fff; font-family: var(--titel); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 1.1rem; padding: 10px 12px; border: 2px solid var(--graphit-3); border-radius: var(--radius); display: flex; align-items: center; gap: 8px; }
.nav__mobil summary::-webkit-details-marker { display: none; }
.nav__mobil summary::before { content: ""; width: 18px; height: 12px; background: linear-gradient(currentColor 0 0) 0 0/100% 2px no-repeat, linear-gradient(currentColor 0 0) 0 50%/100% 2px no-repeat, linear-gradient(currentColor 0 0) 0 100%/100% 2px no-repeat; }
.nav__mobil[open] summary::before { background: linear-gradient(45deg, transparent 45%, currentColor 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, currentColor 45% 55%, transparent 55%); }
.nav__mobil ul { list-style: none; position: absolute; right: 0; top: calc(100% + 12px); background: var(--graphit-2); border: 1px solid var(--graphit-3); border-radius: var(--radius); padding: 8px; min-width: 240px; box-shadow: 0 16px 40px rgba(0,0,0,.35); }

@media (max-width: 78.75em) {   /* 1260 px bei 16 px Grundschrift – wächst mit größerer Browserschrift mit */
  .nav__liste { display: none; }
  .nav__mobil { display: block; }
}
@media (max-width: 560px) {
  :root { --kopf-hoehe: 64px; }
  .kopf__innen { gap: 10px; }
  .kopf__logo img { width: 168px; }
  .kopf__tel-text { display: none; }
  .kopf__tel { padding: 10px; }
  .nav__mobil summary { padding: 8px 10px; }
  .nav__mobil summary span { display: none; }
  .leiste__ort { display: none; }
}

/* ---- Held (Startbild) --------------------------------------- */
.held { background: var(--graphit); color: #fff; }
.held__raster { position: relative; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); max-width: 1600px; margin: 0 auto; }
.held__text { padding: clamp(56px, 8vw, 104px) clamp(24px, 5vw, 72px) clamp(56px, 8vw, 104px) max(var(--rand), calc((100vw - var(--breite)) / 2 + var(--rand))); align-self: center; }
.held h1 { margin-bottom: .35em; }
.held h1 em { font-style: normal; color: var(--kupfer-hell); }
.held .lead { color: #d6d9dc; margin-bottom: 1.6em; }
@media (max-width: 560px) { .held .lead { margin-bottom: 2.4em; } }   /* mobil: Anruf-Knopf mit mehr Luft unter dem Text */
.held__bild { position: relative; min-height: 100%; }
.held__bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.held__bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--graphit) 0%, rgba(28,31,34,0) 22%); }
@media (min-width: 1600px) { .held__text { padding-left: var(--rand); } }
@media (max-width: 900px) {
  .held__raster { grid-template-columns: 1fr; }
  .held__bild { order: -1; height: 52vw; max-height: 420px; }
  .held__bild::after { background: linear-gradient(0deg, var(--graphit) 0%, rgba(28,31,34,0) 35%); }
  .held__text { padding: var(--luecke) var(--rand); }   /* oben = unten: Abstand zum Bild wie zum nächsten Block */
}

/* ---- Leistungs-Kacheln --------------------------------------- */
.kacheln { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kachel { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--graphit); color: #fff; text-decoration: none; isolation: isolate; }
.kachel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; z-index: -2; }
.kachel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,20,22,0) 30%, rgba(18,20,22,.9) 100%); z-index: -1; }
.kachel__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; }
.kachel__titel { display: block; font-family: var(--titel); font-weight: 700; text-transform: uppercase; font-size: 1.55rem; line-height: 1.05; }
.kachel__sub { display: block; color: #d3d6d9; font-size: .98rem; margin-top: 4px; }
.kachel__titel::after { content: " →"; color: var(--kupfer-hell); }
.kachel:hover img { transform: scale(1.05); }
.kachel:hover { color: #fff; }
@media (max-width: 900px) { .kacheln { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .kacheln { grid-template-columns: 1fr; } .kachel { aspect-ratio: 16 / 10; } }

/* ---- Leistungs-Detail ---------------------------------------- */
.leistung { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--luecke) clamp(32px, 5vw, 72px); align-items: start; }
.leistung--umgekehrt .leistung__text { order: 2; }
.leistung__text h2 { margin-bottom: .4em; }
.liste { list-style: none; margin-top: 1.2em; display: grid; gap: 0; border-top: 1px solid var(--linie); }
.liste li { position: relative; padding: .62em 0 .62em 1.7em; border-bottom: 1px solid var(--linie); line-height: 1.4; }
.liste li::before { content: ""; position: absolute; left: 1px; top: .98em; width: 11px; height: 11px; border-radius: 50%; border: 2.5px solid var(--kupfer); background: radial-gradient(circle, var(--kupfer-hell) 0 1.5px, transparent 2px); }   /* Querschnitt Wicklungsdraht */
.abschnitt--dunkel .liste, .abschnitt--dunkel .liste li { border-color: var(--graphit-3); }
.hinweis { margin-top: 1.4em; padding: 16px 18px; background: var(--papier); border-left: 4px solid var(--kupfer); border-radius: 0 var(--radius) var(--radius) 0; }
.abschnitt--hell .hinweis { background: var(--papier); }
.abschnitt:not(.abschnitt--hell):not(.abschnitt--dunkel) .hinweis { background: var(--weiss); }
.grenzwerte { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 28px; margin-top: 1.6em; }
.grenzwerte li { display: grid; gap: 4px; text-align: center; min-width: 0; }
@media (max-width: 640px) { .grenzwerte { grid-template-columns: 1fr; max-width: 360px; } }
.grenzwerte .masslinie { color: var(--kupfer); }
.grenzwerte strong { font-family: var(--titel); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--text); white-space: nowrap; }
.grenzwerte__was { font-size: .92rem; color: var(--text-2); }
@media (max-width: 900px) {
  .leistung { grid-template-columns: 1fr; }
  .leistung--umgekehrt .leistung__text { order: 0; }
}

/* Bildergalerie */
.galerie { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.galerie--2 { grid-template-columns: repeat(2, 1fr); }
.galerie--1 { grid-template-columns: 1fr; }
.galerie li:first-child { grid-column: span 2; grid-row: span 2; }
.galerie--2 li:first-child, .galerie--1 li:first-child { grid-column: auto; grid-row: auto; }
.galerie button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--graphit); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.galerie img { width: 100%; height: 100%; aspect-ratio: 35 / 24; object-fit: cover; transition: transform .4s ease, opacity .2s; }
.galerie li:first-child img { aspect-ratio: auto; }
.galerie--2 li:first-child img, .galerie--1 li:first-child img { aspect-ratio: 35 / 24; }
.galerie button:hover img { transform: scale(1.04); }
@media (max-width: 560px) { .galerie { grid-template-columns: 1fr 1fr; } .galerie li:first-child { grid-row: auto; } .galerie li:first-child img { aspect-ratio: 35 / 24; } }

/* Großansicht */
.gross { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.gross::backdrop { background: rgba(10,11,12,.92); }
.gross__innen { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 64px; }
.gross figure { margin: 0; display: grid; gap: 10px; justify-items: center; }
.gross img { max-width: min(1600px, calc(100vw - 128px)); max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: var(--radius); }
.gross figcaption { color: #d3d6d9; font-size: .98rem; text-align: center; }
.gross__knopf { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.gross__knopf:hover { background: var(--rot); }
.gross__zu { top: 12px; right: 12px; }
.gross__zurueck { left: 10px; top: 50%; translate: 0 -50%; }
.gross__vor { right: 10px; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) { .gross__innen { padding: 64px 8px; } .gross img { max-width: calc(100vw - 16px); } .gross__zurueck, .gross__vor { top: auto; bottom: 10px; translate: none; } }

/* ---- Neumotoren-Teaser / Karten ----------------------------- */
.zweispaltig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--luecke) clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .zweispaltig { grid-template-columns: 1fr; } }
.skizze-vorschau { background: var(--weiss); border-radius: var(--radius); padding: clamp(16px, 3vw, 28px); }

.karten { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.karte h3 { margin: 0; font-size: 1.4rem; }
.karte p { color: var(--text-2); font-size: 1rem; }
.karte__links { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.datei { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.datei svg { width: 20px; height: 20px; flex: none; }
.datei small { font-weight: 400; color: var(--text-2); }
.datei:hover span { text-decoration: underline; }

/* ---- Maßskizze ------------------------------------------------ */
.ms-titel-druck { display: none; }
.ms__was { color: var(--text-2); font-weight: 400; font-size: .95rem; }
.ms thead small { font-weight: 400; }
.skizze-vorschau { display: block; transition: transform .2s; }
.skizze-vorschau:hover { transform: translateY(-3px); }
.karten--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.karten + .hinweis { margin-top: var(--luecke); }
.ms { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
.ms__wahl { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 22px; padding: 18px 22px; background: var(--graphit); color: #fff; }
.ms__feld { display: grid; gap: 4px; }
.ms__feld label { font-family: var(--titel); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .92rem; color: #c4c8cc; }
.ms select { font: inherit; font-weight: 600; font-size: 1.05rem; color: var(--text); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c8261a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px; border: 2px solid #fff; border-radius: var(--radius); padding: 9px 40px 9px 12px; min-width: 190px; appearance: none; cursor: pointer; }
.ms select:focus-visible { outline: 3px solid var(--rot-hell); outline-offset: 2px; }
.ms__drucken { margin-left: auto; color: #fff; }
.ms__inhalt { padding: clamp(18px, 3vw, 30px) clamp(16px, 3vw, 30px); display: grid; gap: var(--luecke); }
.ms__kenndaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; background: var(--linie); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; margin: 0; }
.ms__kenndaten div { background: var(--papier); padding: 12px 16px; }
.ms__kenndaten dt { font-size: .88rem; color: var(--text-2); }
.ms__kenndaten dd { margin: 2px 0 0; font-family: var(--titel); font-weight: 700; font-size: 1.45rem; line-height: 1.15; }
.ms__zeichnung { overflow-x: auto; }
.ms__zeichnung svg { width: 100%; min-width: 560px; height: auto; }
.ms__zeichnung .wert { font-family: var(--titel); font-weight: 700; font-size: 15px; fill: var(--rot); }
.ms__tabellen { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--luecke); align-items: start; }
@media (max-width: 860px) { .ms__tabellen { grid-template-columns: 1fr; } }
.ms table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ms caption { text-align: left; font-family: var(--titel); font-weight: 700; text-transform: uppercase; font-size: 1.2rem; letter-spacing: .02em; padding-bottom: 8px; }
.ms th, .ms td { padding: 8px 10px; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: middle; }
.ms thead th { font-size: .88rem; color: var(--text-2); font-weight: 600; border-bottom: 2px solid var(--graphit); line-height: 1.3; height: calc(2.6em + 18px); vertical-align: bottom; }   /* beide Tabellenköpfe zweizeilig hoch (Höhe inkl. Innenabstand und Linie): Zeilen links und rechts auf gleicher Höhe */
.ms td.ms__was { font-weight: 400; color: var(--text-2); }
.ms tbody th { font-weight: 600; white-space: nowrap; }
.ms tbody th abbr { text-decoration: none; display: inline-block; min-width: 1.4em; font-family: var(--titel); font-size: 1.1rem; color: var(--rot-dunkel); }
.ms td { font-weight: 600; }
.ms td.leer { color: var(--stahl); font-weight: 400; }
.ms__fuss { font-size: .95rem; color: var(--text-2); }
.ms__meldung { padding: 12px 16px; background: #fff4f2; border-left: 4px solid var(--rot); border-radius: 0 var(--radius) var(--radius) 0; }

/* ---- Über uns ------------------------------------------------- */
.bildrahmen { border-radius: var(--radius); overflow: hidden; background: var(--graphit); }
.bildrahmen img { width: 100%; height: auto; }
.bildrahmen figcaption { padding: 10px 14px; font-size: .92rem; color: #c4c8cc; background: var(--graphit-2); }

/* ---- Kontakt -------------------------------------------------- */
.kontakt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--luecke) clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .kontakt { grid-template-columns: 1fr; } }
.daten { margin: 0; display: grid; gap: 18px; }
.daten dt { font-family: var(--titel); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; color: #9aa0a6; }
.daten dd { margin: 2px 0 0; font-size: 1.15rem; }
.daten dd a { color: #fff; text-decoration: none; font-weight: 600; }
.daten dd a:hover { color: var(--rot-hell); text-decoration: underline; }
.zeiten { border-collapse: collapse; }
.zeiten th { text-align: left; font-weight: 400; padding: 0 20px 0 0; color: #c4c8cc; }
.zeiten td { font-weight: 600; color: #fff; }

.formular { background: var(--graphit-2); border: 1px solid var(--graphit-3); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.formular h3 { margin: 0; }
.formular__reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .formular__reihe { grid-template-columns: 1fr; } }
.feld { display: grid; gap: 6px; }
.feld label { font-weight: 600; color: #e6e8ea; }
.feld label small { font-weight: 400; color: #9aa0a6; }
.feld input, .feld select, .feld textarea { font: inherit; color: var(--text); background: #fff; border: 2px solid #fff; border-radius: var(--radius); padding: 10px 12px; width: 100%; }
.feld textarea { min-height: 150px; resize: vertical; }
.feld select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c8261a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px; padding-right: 36px; }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible { outline: 3px solid var(--rot-hell); outline-offset: 1px; }
.feld [aria-invalid="true"] { border-color: var(--rot-hell); }
.feld__fehler { color: var(--rot-hell); font-size: .95rem; font-weight: 600; }
.feld__fehler:empty { display: none; }
.formular__hinweis { font-size: .95rem; color: #b6bbc0; }
.formular__status { padding: 12px 14px; border-radius: var(--radius); font-weight: 600; }
.formular__status:empty { display: none; }
.formular__status.ok { background: #e9f6ec; color: #1d5b2c; }
.formular__status.fehler { background: #fff0ee; color: #8f1a10; }
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Seitenkopf Unterseiten ---------------------------------- */
.seitenkopf { background: var(--graphit); color: #fff; position: relative; overflow: hidden; }
.seitenkopf h1 { margin-bottom: .25em; }
.seitenkopf .lead { color: #c4c8cc; }
.pfad { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .95rem; color: #9aa0a6; margin-bottom: 18px; }
.pfad li + li::before { content: "/"; margin-right: 6px; color: #6b7177; }
.pfad a { color: #c4c8cc; }

.sprung { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sprung a { display: inline-block; padding: 8px 14px; border: 1px solid var(--graphit-3); border-radius: 999px; color: #e6e8ea; text-decoration: none; font-weight: 500; }
.sprung a:hover { border-color: var(--rot-hell); color: #fff; }

/* ---- Rechtstexte ---------------------------------------------- */
.rechtstext { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--luecke) clamp(32px, 5vw, 72px); align-items: start; }
.rechtstext__inhalt { position: sticky; top: calc(var(--kopf-hoehe) + 20px); }
.rechtstext__inhalt ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rechtstext__inhalt a { color: var(--text-2); text-decoration: none; }
.rechtstext__inhalt a:hover { color: var(--rot); }
.rechtstext__text > * + * { margin-top: var(--luecke); }
.rechtstext h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
@media (max-width: 860px) { .rechtstext { grid-template-columns: 1fr; } .rechtstext__inhalt { position: static; } }
.angaben { margin: 0; display: grid; grid-template-columns: minmax(150px, 3fr) minmax(0, 7fr); border-top: 1px solid var(--linie); }
.angaben dt, .angaben dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.angaben dt { color: var(--text-2); padding-right: 16px; }
@media (max-width: 560px) { .angaben { grid-template-columns: 1fr; } .angaben dt { border-bottom: 0; padding-bottom: 0; } .angaben dd { padding-top: 2px; } }

/* ---- Fuß ------------------------------------------------------- */
.fuss { background: #121416; color: #9aa0a6; padding: 40px 0; font-size: .95rem; }
.fuss__innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.fuss img { width: 220px; opacity: .9; }
.fuss__links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.fuss a { color: #c4c8cc; text-decoration: none; }
.fuss a:hover, .fuss a[aria-current="page"] { color: #fff; text-decoration: underline; }
.fuss__adresse { width: 100%; margin: 0; border-top: 1px solid var(--graphit-3); padding-top: 18px; }

/* ---- Druck (v. a. Maßskizze) ------------------------------------ */
.nur-druck { display: none; }

/* ---- Druck -------------------------------------------------------
   Maßskizze: genau eine A4-Seite quer – Firmenkopf, Motor, Kenndaten,
   Zeichnung, beide Tabellen nebeneinander, Fußnote. */
@media print {
  @page { size: A4 landscape; margin: 10mm 12mm; }
  html { font-size: 10pt; }
  body { background: #fff; }
  .leiste, .kopf, .fuss, .skip, .ms__drucken, .nicht-drucken, .seitenkopf .sprung { display: none !important; }
  .seitenkopf { background: #fff; color: #000; }
  .seitenkopf .lead, .pfad { display: none; }
  .abschnitt { padding: 0 0 6mm; }
  .wrap { max-width: none; padding: 0; }

  /* Seite Neumotoren: nur die Maßskizze */
  body:has(#massskizze) .seitenkopf { display: none; }
  #massskizze { padding: 0; break-inside: avoid; }
  #massskizze .abschnitt__kopf { margin: 0 0 3mm; }
  #massskizze .eyebrow { display: none; }
  #massskizze h2 { font-size: 17pt; margin: 0; }
  .ms-titel-druck { display: inline; color: var(--rot); }
  .ms-titel-druck::before { content: "– "; }

  .nur-druck { display: block; }
  .ms-druckkopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 10mm;
    padding-bottom: 2.5mm; margin-bottom: 3.5mm; border-bottom: 1.2pt solid var(--kupfer); }
  .ms-druckkopf img { width: 30mm; height: auto; }
  .ms-druckkopf p { margin: 0; text-align: right; font-size: 8.5pt; line-height: 1.45; color: #333; }

  .ms { border: 0; overflow: visible; }
  .ms__wahl { display: none; }                       /* die Auswahl steht schon im Titel */
  .ms__meldung { display: none !important; }         /* Ersatzhinweis: der Titel nennt den gezeigten Motor */
  .ms__inhalt { padding: 0; gap: 3mm; }
  .ms__kenndaten { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .ms__kenndaten div { background: #fff; padding: 1.5mm 3mm; }
  .ms__kenndaten dt { font-size: 8pt; }
  .ms__kenndaten dd { font-size: 12pt; line-height: 1.1; }
  .ms__kenndaten dd sup { line-height: 0; }
  .ms__zeichnung { overflow: visible; }
  .ms__zeichnung svg { display: block; min-width: 0; width: auto; max-width: 100%; height: 54mm; margin: 0 auto; }
  .ms__tabellen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 10mm; align-items: start; }
  .ms caption { font-size: 10.5pt; padding-bottom: 1.5mm; }
  .ms th, .ms td { padding: .8mm 2mm; line-height: 1.3; }
  .ms thead th { font-size: 8pt; height: calc(2.6em + 1.6mm + 2px); }
  .ms tbody th abbr { font-size: 10pt; }
  .ms__was { font-size: 9pt; }
  .ms tr { break-inside: avoid; }
  .ms-druck-aus { display: none !important; }
  .ms__fuss { font-size: 8pt; margin: 0; }
}

/* ---- Kurz gefragt: Fragen wie Positionen auf einem Prüfblatt ---- */
.fragen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 clamp(28px, 3.5vw, 56px); counter-reset: frage; }
.frage { border-top: 1px solid var(--linie); padding: 1.1em 0 1.2em 3.1em; position: relative; counter-increment: frage; }
.frage::before { content: counter(frage, decimal-leading-zero); position: absolute; left: 0; top: 1.05em; font-family: var(--titel); font-weight: 700; font-size: 1.15rem; color: var(--kupfer-text); letter-spacing: .04em; }
.frage h3 { font-size: 1.2rem; margin: 0 0 .35em; }
.frage p { margin: 0; color: var(--text-2); }
@media print { #fragen { display: none; } }

/* ---- Impressum: Logo der Websitegestaltung (Ring und Schrift in Textfarbe, Grün aus dem Logo) ---- */
:root { --dev-green: #5fb52d; --dev-green-hi: #8ad154; }
.dev-logo { display: block; margin: .2em 0 .9em; }
.dev-logo .dev-mark { display: block; width: 230px; max-width: 100%; height: auto; color: var(--text); }

/* ---- AGB-Seite: Punktnummern in eigener Spalte wie im PDF ---- */
.agb article h2 { margin-bottom: .6em; }
.klausel { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 0 .4em; margin: 0 0 .8em; }
.klausel__nr { color: var(--kupfer-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.klausel p { margin: 0; }
.klausel ul { list-style: none; margin: .4em 0 0; padding: 0; }
.klausel li { position: relative; padding-left: 1.3em; margin: 0 0 .3em; }
.klausel li::before { content: ""; position: absolute; left: 0; top: .78em; width: .75em; border-top: 1.5px solid var(--kupfer); }
.agb-pdf { margin-top: 1.2em; }
.agb__stand { font-size: .9rem; color: var(--text-2); border-top: 1px solid var(--linie); padding-top: 1em; }
@media (max-width: 860px) { .rechtstext__inhalt ol { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); } }

/* Galerie mit Hochformat vorne: Hochformat links über zwei Zeilen, rechts zwei Querformate */
.galerie--hoch { grid-template-columns: 1fr 1fr; }
.galerie--hoch li:first-child { grid-column: auto; grid-row: span 2; }
.galerie--hoch li:first-child img { aspect-ratio: auto; height: 100%; object-fit: cover; }

/* ---- Externe Links (target="_blank"): Pfeil aus dem Kasten, automatisch für jeden solchen Link.
   Nur sichtbar – Screenreader lesen „(öffnet in neuem Fenster)“, das bauen.py bei Bedarf ergänzt. */
a[target="_blank"]::after {
  content: ""; content: "" / "";
  display: inline-block; width: .75em; height: .75em; margin-left: .35em; vertical-align: -.02em; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M14 3h7v7M21 3 11 13M19 14v7H3V5h7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M14 3h7v7M21 3 11 13M19 14v7H3V5h7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.datei[target="_blank"]::after { margin-left: 0; }   /* im Flex-Link sorgt schon der Abstand (gap) für Luft */

/* ---- Nachträge ------------------------------------------------- */
.bildrahmen { margin: 0; }
@media (max-width: 560px) {
  .galerie--1 { grid-template-columns: 1fr; }
  .ms__zeichnung svg { min-width: 480px; }
}

/* ---- Typenschild ------------------------------------------------
   Firmendaten wie ein genietetes Motor-Typenschild: gebürstetes Alu,
   schwarzer Kopf mit Logo, geprägte Werte in Feldern. */
.schild { position: absolute; right: clamp(20px, 3vw, 48px); bottom: clamp(20px, 3vw, 48px); width: min(380px, 38%); z-index: 2;
  color: #1c1f22; border-radius: 6px; padding: 14px 16px 12px; border: 1px solid #8a9095;
  background:
    radial-gradient(circle at 9px 9px, #6f757a 0 2.2px, #e9ecee 2.6px 3.4px, transparent 3.8px),
    radial-gradient(circle at calc(100% - 9px) 9px, #6f757a 0 2.2px, #e9ecee 2.6px 3.4px, transparent 3.8px),
    radial-gradient(circle at 9px calc(100% - 9px), #6f757a 0 2.2px, #e9ecee 2.6px 3.4px, transparent 3.8px),
    radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), #6f757a 0 2.2px, #e9ecee 2.6px 3.4px, transparent 3.8px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 1px, rgba(0,0,0,.025) 1px 2px, transparent 2px 3px),
    linear-gradient(160deg, #e4e7e9 0%, #c3c8cc 45%, #d8dcdf 70%, #b8bec3 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 -1px 0 rgba(0,0,0,.15) inset, 0 18px 40px rgba(0,0,0,.45); }
.schild__kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #15181a; border-radius: 3px; padding: 8px 10px; margin: 0 6px 8px; }
.schild__kopf img { width: 78%; height: auto; }
.schild__kopf span { font-family: var(--titel); font-weight: 700; color: #e6e8ea; letter-spacing: .08em; font-size: .95rem; }
.schild__daten { margin: 0 6px; display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid #2a2e32; border-radius: 2px; }
.schild__daten > div { padding: 4px 9px 5px; border-top: 1px solid #2a2e32; display: grid; gap: 0; }
.schild__daten > div:nth-child(even) { border-left: 1px solid #2a2e32; }
.schild__daten > div:first-child { border-top: 0; }
.schild__breit { grid-column: 1 / -1; border-left: 0 !important; }
.schild__daten > .schild__breit ~ div:nth-child(odd) { border-left: 1px solid #2a2e32; }
.schild__daten > .schild__breit ~ div:nth-child(even) { border-left: 0; }
.schild dt { font-size: .64rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .08em; color: #3d4247; }
.schild dd { margin: 0; font-family: var(--titel); font-weight: 700; font-size: 1.12rem; line-height: 1.15; white-space: nowrap; text-shadow: 0 1px 0 rgba(255,255,255,.55); }
.schild__fuss { margin: 7px 6px 0; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #3d4247; text-align: center; }
@media (min-width: 901px) and (max-width: 1180px) { .schild { width: min(330px, 44%); } .schild dd { font-size: .98rem; } }
@media (max-width: 900px) { .schild { position: static; margin: 0 var(--rand) var(--abschnitt); width: auto; max-width: 440px; } }
@media (max-width: 560px) {
  .eyebrow { letter-spacing: .08em; font-size: .9rem; }
  .eyebrow::before, .eyebrow::after { flex-basis: 1.3rem; min-width: 1.3rem; }
}

/* ---- Zweispaltige Abschnitte: gemeinsame Teilung ----------------
   Alle zweispaltigen Blöcke teilen im Verhältnis 5 : 7 an derselben Stelle,
   dazwischen eine durchgehende senkrechte Trennlinie. Bilder und Linie
   beginnen auf Höhe der Kapitelüberschrift (unter der Maßlinie). */
:root { --bis-titel: calc(.95rem * 2.3); }   /* Höhe der Maßlinie über dem Titel inkl. Abstand */
@media (min-width: 901px) {
  .leistung, .zweispaltig, .kontakt { grid-template-columns: minmax(0, 5fr) 1px minmax(0, 7fr); column-gap: clamp(28px, 3.5vw, 56px); align-items: start; }
  /* Trennlinie als Kupferdraht: oben der Drahtquerschnitt (wie die Aufzählungszeichen), darunter der Draht, zu den Enden auslaufend */
  .leistung::before, .zweispaltig::before, .kontakt::before { content: ""; grid-column: 2; grid-row: 1; align-self: stretch; justify-self: center; width: 11px;
    --draht: rgba(180, 106, 50, .42);
    background:
      radial-gradient(circle at 50% 50%, var(--kupfer-hell) 0 1.5px, transparent 2px 3px, var(--kupfer) 3.2px 5.5px, transparent 5.8px) center top / 11px 11px no-repeat,
      linear-gradient(to bottom, var(--draht), var(--draht) 80%, transparent) center 16px / 1px calc(100% - 16px) no-repeat; }
  .abschnitt--dunkel .zweispaltig::before, .abschnitt--dunkel .kontakt::before { --draht: rgba(227, 164, 108, .32); }
  .leistung::before, .zweispaltig::before { margin-top: var(--bis-titel); }
  .leistung > .leistung__text, .zweispaltig > :first-child, .kontakt > :first-child { grid-column: 1; grid-row: 1; }
  .leistung > .galerie, .zweispaltig > :last-child, .kontakt > :last-child { grid-column: 3; grid-row: 1; }
  .leistung--umgekehrt > .leistung__text { grid-column: 3; }
  .leistung--umgekehrt > .galerie { grid-column: 1; }
  .leistung > .galerie, .zweispaltig > :last-child { margin-top: var(--bis-titel); }
}
