@import url("../fonts/fonts.css");

/* ==========================================================================
   Szillus — Design-System
   Rot #ED1B24 / Blau #067CC2 stammen aus dem bestehenden Logo.
   ========================================================================== */

:root {
  color-scheme: light;

  /* --- Marke. Rot und Blau stammen aus dem bestehenden Logo. ------------- */
  --rot:        #d3121a;   /* Akzent auf hellem Grund */
  --rot-hell:   #ed1b24;   /* Akzent auf dunklem Grund */
  --rot-flaeche:#d3121a;   /* Knopfflächen — in beiden Themes gleich, damit
                              Weiss darauf sicher lesbar bleibt */
  --rot-tief:   #b30d15;   /* Knopf beim Überfahren */
  --blau:       #067cc2;

  /* --- Flächen ----------------------------------------------------------- */
  --grund:      #ffffff;   /* Seitengrund */
  --grund-alt:  #f5f7f8;   /* abwechselnder Abschnittsgrund */
  --karte:      #ffffff;   /* Karten, Tabellen, Eingabefelder */
  --kopf-grund: rgba(255,255,255,.93);
  --zeile-an:   #fafbfc;   /* Tabellenzeile beim Überfahren */

  /* Bewusst dunkle Flächen. Sie bleiben in beiden Themes dunkel — im dunklen
     Theme werden sie eine Spur heller als der Grund, damit sie sich weiterhin
     absetzen statt zu verschwinden. */
  --dunkel:      #12161a;
  --dunkel-tief: #0a0d10;  /* Bühne und Fußzeile */
  --graphit:     #232a31;  /* Konsolenfeld, Platzhalter hinter Bildern */

  /* --- Schrift ----------------------------------------------------------- */
  --text:       #12161a;
  --text-zart:  #5b6672;
  --text-leise: #8b959f;

  /* --- Linien ------------------------------------------------------------ */
  --linie:      #dfe3e7;
  --linie-zart: #edf0f2;

  /* --- Maße und Schriften ------------------------------------------------ */
  --breite:     1240px;
  --schmal:     820px;
  --rand:       clamp(20px, 5vw, 56px);
  --luft:       clamp(64px, 9vw, 128px);   /* vertikaler Sektionsabstand */

  --schrift-h:  'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --schrift-t:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Dunkles Theme — folgt der Einstellung des Geräts, ohne Umschalter.
   Nur Farbtokens werden neu belegt, kein Bauteil kennt sein Theme selbst. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --rot:        #ff5c63;   /* auf dunklem Grund braucht Rot mehr Helligkeit */
    --rot-hell:   #ff7a80;

    --grund:      #0f1317;
    --grund-alt:  #151a20;
    --karte:      #171d23;
    --kopf-grund: rgba(15,19,23,.92);
    --zeile-an:   #1c232a;

    --dunkel:     #1b2229;
    --graphit:    #232a31;

    --text:       #e6ebf0;
    --text-zart:  #9aa5b0;
    --text-leise: #6f7a85;

    --linie:      #2a323a;
    --linie-zart: #212830;
  }
}

/* --- Reset / Basis ------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift-t);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--schrift-h);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.022em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 6.2vw, 4.3rem); font-weight: 800; letter-spacing: -.032em; }
h2 { font-size: clamp(1.85rem, 3.9vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.45rem); letter-spacing: -.014em; }
h4 { font-size: 1.02rem; letter-spacing: -.005em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

::selection { background: var(--rot-flaeche); color: #fff; }

:focus-visible {
  outline: 3px solid var(--blau);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Layout -------------------------------------------------------------- */

.huelle { width: 100%; max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }
.huelle--schmal { max-width: var(--schmal); }

section { padding-block: var(--luft); }
.grund-nebel  { background: var(--grund-alt); }
.grund-dunkel { background: var(--dunkel); color: #dfe4e9; }
.grund-dunkel h1, .grund-dunkel h2, .grund-dunkel h3, .grund-dunkel h4 { color: #fff; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--rot-flaeche); color: #fff; padding: 14px 22px; font-weight: 600;
}
.skip:focus { left: 0; }

/* --- Kopfzeile ----------------------------------------------------------- */

.kopf {
  position: sticky; top: 0; z-index: 100;
  background: var(--kopf-grund);
  backdrop-filter: saturate(1.7) blur(14px);
  -webkit-backdrop-filter: saturate(1.7) blur(14px);
  border-bottom: 1px solid var(--linie);
  transition: box-shadow .3s var(--ease);
}
.kopf--gescrollt { box-shadow: 0 8px 30px -18px rgba(10,13,16,.5); }

.kopf__innen {
  display: flex; align-items: center; gap: 28px;
  min-height: 76px;
}
.kopf__logo { flex: 0 0 auto; margin-right: auto; display: block; }
.kopf__logo img { width: 150px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  text-decoration: none;
  font-size: .935rem; font-weight: 500;
  padding: 10px 14px;
  color: var(--text);
  border-radius: 3px;
  transition: color .18s var(--ease);
  white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--rot);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.kopf__tel {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--schrift-h); font-weight: 700; font-size: .95rem;
  letter-spacing: -.01em;
  text-decoration: none; color: var(--text);
  padding: 11px 18px; border: 1.5px solid var(--linie); border-radius: 3px;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.kopf__tel:hover { border-color: var(--rot); color: var(--rot); }
.kopf__tel svg { width: 15px; height: 15px; flex: none; }

/* Menü-Umschalter (mobil) */
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px;
  background: none; border: 1.5px solid var(--linie); border-radius: 3px; cursor: pointer;
}
.burger span {
  display: block; height: 2px; width: 100%; background: var(--text);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: flex; }
  .kopf__innen { min-height: 66px; }
  .kopf__logo img { width: 124px; }
  .kopf__tel { display: none; }
  .nav {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--grund); border-bottom: 1px solid var(--linie);
    padding: 8px var(--rand) 22px;
    box-shadow: 0 24px 40px -28px rgba(10,13,16,.55);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
    max-height: calc(100dvh - 66px); overflow-y: auto;
  }
  .nav[data-offen="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 15px 2px; border-bottom: 1px solid var(--linie-zart); font-size: 1.06rem; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--rot); }
  .nav .nav__tel {
    margin-top: 18px; border: 0; background: var(--rot-flaeche); color: #fff;
    text-align: center; border-radius: 3px; font-weight: 700; padding: 15px;
  }
}
@media (min-width: 961px) { .nav__tel { display: none; } }

/* --- Schaltflächen ------------------------------------------------------- */

.knopf {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--schrift-h); font-weight: 700; font-size: .96rem;
  letter-spacing: -.008em;
  padding: 15px 26px; border-radius: 3px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.knopf:hover { transform: translateY(-2px); }
.knopf:active { transform: none; }
.knopf svg { width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease); }
.knopf:hover svg { transform: translateX(4px); }

.knopf--rot     { background: var(--rot-flaeche); color: #fff; }
.knopf--rot:hover { background: var(--rot-tief); }
.knopf--rand    { border-color: var(--linie); color: var(--text); background: transparent; }
.knopf--rand:hover { border-color: var(--dunkel); background: var(--dunkel); color: #fff; }
.knopf--hell    { border-color: rgba(255,255,255,.32); color: #fff; background: transparent; }
.knopf--hell:hover { background: #fff; color: #12161a; border-color: #fff; }
.knopf--weiss   { background: #fff; color: #12161a; }
.knopf--weiss:hover { background: var(--grund-alt); }

.knopf-reihe { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- Überschrift-Bausteine ---------------------------------------------- */

.marke {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--schrift-h); font-weight: 700;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rot); margin-bottom: 20px;
}
.marke::before { content: ""; width: 26px; height: 2px; background: var(--rot); flex: none; }
.grund-dunkel .marke { color: #ff5c63; }
.grund-dunkel .marke::before { background: #ff5c63; }

.kopfzeile { max-width: 720px; margin-bottom: clamp(40px, 5.5vw, 68px); }
.kopfzeile p {
  font-size: clamp(1.04rem, 1.7vw, 1.19rem);
  color: var(--text-zart); margin-top: 22px; max-width: 62ch;
}
.grund-dunkel .kopfzeile p { color: #a9b4bf; }

/* --- Startseiten-Bühne --------------------------------------------------- */

.buehne {
  position: relative; isolation: isolate;
  background: var(--dunkel-tief); color: #fff;
  display: flex; align-items: flex-end;
  min-height: clamp(560px, 84vh, 840px);
  padding-block: clamp(110px, 15vh, 150px) clamp(56px, 8vh, 84px);
  overflow: hidden;
}
.buehne__bild {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  opacity: .78; filter: brightness(1.12) contrast(.96);
}
.buehne::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,13,16,.62) 0%, rgba(10,13,16,.12) 42%, rgba(10,13,16,.72) 100%),
    linear-gradient(96deg, rgba(10,13,16,.88) 0%, rgba(10,13,16,.42) 58%, rgba(10,13,16,.06) 100%);
}
.buehne h1 { max-width: 15ch; }
.buehne h1 em { font-style: normal; color: #ff5c63; }
.buehne__text {
  font-size: clamp(1.06rem, 1.9vw, 1.28rem);
  color: #c3ccd5; max-width: 54ch; margin-top: 26px;
}
.buehne .knopf-reihe { margin-top: 38px; }

.buehne__ort {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: #99a5b1; margin-bottom: 26px;
}
.buehne__ort::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--rot-hell); flex: none;
  box-shadow: 0 0 0 4px rgba(237,27,36,.22);
}

/* Unterseiten-Bühne */
.buehne-klein {
  position: relative; isolation: isolate;
  background: var(--dunkel-tief); color: #fff; overflow: hidden;
  padding-block: clamp(96px, 15vh, 148px) clamp(56px, 8vh, 88px);
}
.buehne-klein .buehne__bild { opacity: .34; object-position: 50% 46%; }
.buehne-klein::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10,13,16,.94) 0%, rgba(10,13,16,.62) 55%, rgba(10,13,16,.3) 100%);
}
.buehne-klein h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); max-width: 18ch; }
.buehne-klein p {
  color: #b6c0ca; font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  max-width: 60ch; margin-top: 22px;
}

/* Brotkrume */
.krume { font-size: .82rem; color: #8e9aa6; margin-bottom: 20px; }
.krume a { color: #b6c0ca; text-decoration: none; }
.krume a:hover { color: #fff; text-decoration: underline; }
.krume span { margin-inline: 9px; opacity: .5; }

/* --- Kennzahlen-Leiste --------------------------------------------------- */

.kennzahlen {
  border-block: 1px solid var(--linie);
  background: var(--grund);
}
.kennzahlen__gitter {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: clamp(34px, 4.5vw, 52px);
}
.kennzahl { padding: 0 clamp(20px, 2.6vw, 36px); border-left: 1px solid var(--linie); }
.kennzahl:first-child { padding-left: 0; border-left: 0; }
.kennzahl:last-child  { padding-right: 0; }
.kennzahl b {
  display: block;
  font-family: var(--schrift-h); font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1;
  letter-spacing: -.035em; color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kennzahl b i { font-style: normal; font-size: .46em; color: var(--text-zart); margin-left: 4px; letter-spacing: 0; }
.kennzahl > span {
  display: block; margin-top: 13px;
  font-size: .84rem; line-height: 1.45; color: var(--text-zart);
}
@media (max-width: 860px) {
  .kennzahlen__gitter { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .kennzahl { padding: 0 clamp(16px,3vw,26px); }
  .kennzahl:first-child { padding-left: 0; }
  .kennzahl:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 460px) {
  .kennzahlen__gitter { grid-template-columns: 1fr; row-gap: 28px; }
  .kennzahl, .kennzahl:last-child { padding: 0 0 0 18px; border-left: 3px solid var(--rot); }
  .kennzahl:first-child, .kennzahl:nth-child(3) { padding-left: 18px; border-left: 3px solid var(--rot); }
}

/* --- Zwei Säulen (Leistungs-Karten) ------------------------------------- */

.saeulen { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 34px); }
@media (max-width: 800px) { .saeulen { grid-template-columns: 1fr; } }

.saeule {
  position: relative; display: flex; flex-direction: column;
  background: var(--karte); border: 1px solid var(--linie); border-radius: 4px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.saeule:hover {
  border-color: transparent; transform: translateY(-5px);
  box-shadow: 0 26px 52px -26px rgba(10,13,16,.34);
}
.saeule__bild { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--graphit); }
.saeule__bild img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease); 
}
.saeule:hover .saeule__bild img { transform: scale(1.05); }
.saeule__nr {
  position: absolute; top: 0; left: 0; z-index: 2;
  background: var(--rot-flaeche); color: #fff;
  font-family: var(--schrift-h); font-weight: 800; font-size: .74rem;
  letter-spacing: .13em; padding: 9px 15px;
}
.saeule__inhalt { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; flex: 1; }
.saeule__inhalt > p { color: var(--text-zart); margin-top: 14px; font-size: .98rem; }
.saeule__liste {
  list-style: none; margin: 22px 0 0; padding: 20px 0 0;
  border-top: 1px solid var(--linie-zart);
  display: flex; flex-wrap: wrap; gap: 7px;
}
.saeule__liste li {
  font-size: .8rem; font-weight: 500; color: var(--text);
  background: var(--grund-alt); border-radius: 2px; padding: 6px 11px;
}
.saeule__mehr {
  margin-top: auto; padding-top: 26px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--schrift-h); font-weight: 700; font-size: .93rem; color: var(--rot);
}
.saeule__mehr svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.saeule:hover .saeule__mehr svg { transform: translateX(5px); }

/* --- Merkmal-Raster ------------------------------------------------------ */

.merkmale { display: grid; grid-template-columns: repeat(4, 1fr); }
.merkmal { padding: 0 clamp(24px, 3vw, 38px); border-left: 1px solid var(--linie); }
.merkmal:first-child { padding-left: 0; border-left: 0; }
.merkmal:last-child  { padding-right: 0; }
.merkmal__ikon {
  width: 34px; height: 34px; color: var(--rot); margin-bottom: 22px;
}
.merkmal__ikon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.merkmal h3 { font-size: 1.08rem; }
.merkmal p { margin-top: 12px; font-size: .93rem; color: var(--text-zart); line-height: 1.6; }
@media (max-width: 980px) {
  .merkmale { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .merkmal:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 540px) {
  .merkmale { grid-template-columns: 1fr; row-gap: 38px; }
  .merkmal, .merkmal:last-child { padding: 0; border-left: 0; }
}

/* --- Leistungs-/Verfahrensliste ----------------------------------------- */

.leistungen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--linie); border: 1px solid var(--linie); }
.leistung {
  background: var(--karte); padding: clamp(24px, 2.8vw, 34px);
  transition: background .25s var(--ease);
}
.leistung:hover { background: var(--grund-alt); }
.leistung h3 { font-size: 1.05rem; display: flex; align-items: baseline; gap: 12px; }
.leistung h3 b {
  font-size: .7rem; font-weight: 700; color: var(--rot);
  font-variant-numeric: tabular-nums; letter-spacing: .06em;
}
.leistung p { margin-top: 12px; font-size: .93rem; color: var(--text-zart); }
@media (max-width: 900px) { .leistungen { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .leistungen { grid-template-columns: 1fr; } }

/* --- Maschinen-/Spezifikationsblock -------------------------------------- */

.spez { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(20px, 2.6vw, 30px); }

.spez-karte {
  background: var(--karte); border: 1px solid var(--linie); border-radius: 4px;
  padding: clamp(26px, 3vw, 34px);
  display: flex; flex-direction: column;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.spez-karte:hover { border-color: var(--text-leise); box-shadow: 0 18px 38px -28px rgba(10,13,16,.4); }
.spez-karte > h3 { padding-bottom: 18px; border-bottom: 2px solid var(--text); }
.spez-karte__hinweis { font-size: .92rem; color: var(--text-zart); margin: 18px 0 0; }

.werte { list-style: none; margin: 20px 0 0; padding: 0; }
.werte li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 11px 0; border-bottom: 1px solid var(--linie-zart);
  font-size: .93rem;
}
.werte li:last-child { border-bottom: 0; }
.werte dt, .werte span:first-child { color: var(--text-zart); }
.werte b {
  font-family: var(--schrift-h); font-weight: 700; font-size: 1rem;
  font-variant-numeric: tabular-nums; letter-spacing: -.012em;
  text-align: right; white-space: nowrap;
}

/* Aufzählung mit Häkchen */
.haken { list-style: none; margin: 0; padding: 0; }
.haken li {
  position: relative; padding-left: 30px; margin-bottom: 12px;
  font-size: .97rem;
}
.haken li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 13px; height: 8px;
  border-left: 2px solid var(--rot); border-bottom: 2px solid var(--rot);
  transform: rotate(-45deg);
}
.haken--zwei { columns: 2; column-gap: 40px; }
.haken--zwei li { break-inside: avoid; }
@media (max-width: 640px) { .haken--zwei { columns: 1; } }

/* --- Tabellen ------------------------------------------------------------ */

.tabelle-huelle { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--linie); border-radius: 4px; background: var(--karte); }
table.daten { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 540px; }
table.daten caption {
  text-align: left; padding: 20px clamp(16px,2.4vw,26px); font-size: .95rem; color: var(--text-zart);
  border-bottom: 1px solid var(--linie);
}
table.daten th, table.daten td {
  padding: 13px clamp(12px,2vw,20px); text-align: left;
  border-bottom: 1px solid var(--linie-zart);
  vertical-align: top;
}
table.daten thead th {
  background: var(--grund-alt);
  font-family: var(--schrift-h); font-weight: 700; font-size: .78rem;
  letter-spacing: .07em; text-transform: uppercase; color: var(--text);
  border-bottom: 1px solid var(--linie); white-space: nowrap;
}
table.daten tbody tr:last-child td { border-bottom: 0; }
table.daten tbody tr:hover { background: var(--zeile-an); }
table.daten td.zahl, table.daten th.zahl { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.daten td strong { font-weight: 600; }
table.daten .werkstoff { font-family: var(--schrift-h); font-weight: 700; white-space: nowrap; }

.tabelle-scrollhinweis {
  display: none; font-size: .82rem; color: var(--text-zart); margin-top: 10px;
}
@media (max-width: 700px) { .tabelle-scrollhinweis { display: block; } }

/* --- Bild + Text --------------------------------------------------------- */

.duo {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 5vw, 72px); align-items: center;
}
.duo--schmal { grid-template-columns: .92fr 1.08fr; }
.duo__bild { position: relative; border-radius: 4px; overflow: hidden; background: var(--graphit); }
.duo__bild img { width: 100%; max-height: 620px; object-fit: cover; }
.duo__bild figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 30px 22px 16px; font-size: .82rem; color: #fff;
  background: linear-gradient(transparent, rgba(10,13,16,.82));
}
@media (max-width: 860px) {
  .duo, .duo--schmal { grid-template-columns: 1fr; gap: 32px; }
  .duo--umkehr .duo__bild { order: -1; }
}

/* --- Zeitleiste ---------------------------------------------------------- */

.zeit { list-style: none; margin: 0; padding: 0; position: relative; }
.zeit::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px;
  width: 2px; background: var(--linie);
}
.zeit li { position: relative; padding: 0 0 40px 46px; }
.zeit li:last-child { padding-bottom: 0; }
.zeit li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--grund-alt); border: 3px solid var(--rot);
}
.zeit b {
  display: block; font-family: var(--schrift-h); font-weight: 800;
  font-size: 1.35rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.zeit p { color: var(--text-zart); font-size: .97rem; }

/* --- Handlungsaufruf ----------------------------------------------------- */

.aufruf {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--dunkel); color: #fff;
}
.aufruf__bild {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; opacity: .22;
}
.aufruf::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(18,22,26,.95), rgba(18,22,26,.6));
}
.aufruf__innen { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.aufruf h2 { max-width: 17ch; }
.aufruf p { color: #b6c0ca; margin-top: 20px; max-width: 50ch; }
@media (max-width: 800px) { .aufruf__innen { grid-template-columns: 1fr; } }

/* --- Kontaktformular ----------------------------------------------------- */

.formular { display: grid; gap: 20px; }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .feld-paar { grid-template-columns: 1fr; } }

.feld { display: flex; flex-direction: column; gap: 8px; }
.feld label { font-size: .87rem; font-weight: 600; color: var(--text); }
.feld label .pflicht { color: var(--rot); }
.feld input, .feld select, .feld textarea {
  font-family: inherit; font-size: 1rem; color: var(--text);
  padding: 13px 15px; background: var(--karte);
  border: 1.5px solid var(--linie); border-radius: 3px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  width: 100%;
}
.feld textarea { resize: vertical; min-height: 145px; line-height: 1.6; }
.feld input:hover, .feld select:hover, .feld textarea:hover { border-color: var(--text-leise); }
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(6,124,194,.14);
}
.feld small { font-size: .8rem; color: var(--text-zart); }

.feld--haken { flex-direction: row; align-items: flex-start; gap: 12px; }
.feld--haken input { width: 19px; height: 19px; flex: none; margin-top: 3px; accent-color: var(--rot); }
.feld--haken label { font-size: .87rem; font-weight: 400; color: var(--text-zart); line-height: 1.55; }
.feld--haken a { color: var(--text); }

.honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Kontaktkarte -------------------------------------------------------- */

.kontaktkarte {
  background: var(--dunkel); color: #dfe4e9;
  border-radius: 4px; padding: clamp(28px, 3.4vw, 42px);
}
.kontaktkarte h3 { color: #fff; }
.kontaktkarte dl { margin: 26px 0 0; display: grid; gap: 22px; }
.kontaktkarte dt {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #7d8996; margin-bottom: 6px; font-family: var(--schrift-h);
}
.kontaktkarte dd { margin: 0; font-size: 1.02rem; line-height: 1.55; }
.kontaktkarte dd a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.kontaktkarte dd a:hover { border-color: var(--rot-hell); color: #ff5c63; }
.kontaktkarte dd.gross {
  font-family: var(--schrift-h); font-weight: 700; font-size: 1.3rem;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}

/* --- Partner ------------------------------------------------------------- */

.partner { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--linie); border: 1px solid var(--linie); }
.partner a {
  background: var(--karte); padding: 26px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 7px;
  transition: background .2s var(--ease);
}
.partner a:hover { background: var(--grund-alt); }
.partner b { font-family: var(--schrift-h); font-weight: 700; font-size: 1.02rem; }
.partner span { font-size: .87rem; color: var(--text-zart); }
.partner em {
  font-style: normal; font-size: .78rem; color: var(--rot); font-weight: 600; margin-top: 4px;
}

/* --- Fußzeile ------------------------------------------------------------ */

.fuss { background: var(--dunkel-tief); color: #9aa5b0; padding-block: clamp(56px, 7vw, 84px) 0; font-size: .92rem; }
.fuss__gitter {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.15fr; gap: clamp(28px, 4vw, 52px);
  padding-bottom: clamp(44px, 5vw, 62px);
}
@media (max-width: 900px) { .fuss__gitter { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fuss__gitter { grid-template-columns: 1fr; } }

.fuss__logo { width: 148px; margin-bottom: 22px; }
.fuss p { line-height: 1.7; }
.fuss h4 {
  color: #fff; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 20px;
}
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.fuss a { color: #9aa5b0; text-decoration: none; transition: color .18s var(--ease); }
.fuss a:hover { color: #fff; }
.fuss address { font-style: normal; line-height: 1.75; }
.fuss__unten {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 26px;
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between;
  font-size: .84rem;
}
.fuss__unten nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }

/* --- Einblend-Animation -------------------------------------------------- */

/* Ohne JavaScript bleibt alles sichtbar — die Klasse .js setzt erst das
   Inline-Skript im <head>. So ist der Inhalt nie von JS abhängig. */
.js .zeig { opacity: 0; transform: translateY(22px); }
.js .zeig--sichtbar {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .js .zeig { opacity: 1; transform: none; }
}

/* --- Fließtext-Seiten (Impressum/Datenschutz) --------------------------- */

.fliess h2 { margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--linie); font-size: 1.6rem; }
.fliess h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.fliess h3 { margin-top: 1.9em; font-size: 1.14rem; }
.fliess ul { padding-left: 20px; }
.fliess li { margin-bottom: 9px; }
.fliess a { color: var(--rot); text-underline-offset: 3px; }
.fliess dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 22px 0; }
.fliess dt { font-weight: 600; }
.fliess dd { margin: 0; }
@media (max-width: 560px) { .fliess dl { grid-template-columns: 1fr; gap: 2px 0; } .fliess dd { margin-bottom: 14px; } }

/* --- Druck --------------------------------------------------------------- */

@media print {
  .kopf, .fuss, .aufruf, .burger, .knopf-reihe { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .buehne, .buehne-klein { background: none; color: #000; min-height: 0; padding-block: 0 24pt; }
  .buehne__bild, .buehne::after, .buehne-klein::after { display: none; }
  .buehne h1, .buehne-klein h1 { color: #000; }
  section { padding-block: 18pt; page-break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* ==========================================================================
   Interaktive Bausteine
   Muster nach dem Vorbild von deepseek.com/harness: ein am Bildrand
   mitlaufender Ablauf, Reiter mit Kopierfeld und ein Umschalter mit
   überblendenden Tafeln. Alle drei funktionieren ohne JavaScript weiter —
   die aufwendigere Fassung schaltet erst die Klasse .js frei.
   ========================================================================== */

/* --- 1) Ablauf mit mitlaufendem Bild ------------------------------------ */

.ablauf__gitter { display: grid; gap: clamp(28px, 4vw, 60px); }

.ablauf__schritt {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit;
  border-top: 1px solid var(--linie);
  padding-block: clamp(26px, 3vw, 34px);
}
.ablauf__schritt:first-child { border-top: 0; padding-top: 0; }

.ablauf__marke {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--schrift-h); font-weight: 700;
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-zart); margin-bottom: 14px;
}
.ablauf__marke b {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--linie-zart); color: var(--text);
  font-size: .78rem; font-variant-numeric: tabular-nums;
  transition: background .45s var(--ease), color .45s var(--ease);
}
.ablauf__schritt h3 { transition: color .45s var(--ease); }
.ablauf__schritt p { margin-top: 12px; color: var(--text-zart); font-size: .98rem; }

.ablauf__inline {
  margin-top: 20px; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--linie); background: var(--graphit);
}
.ablauf__inline img { width: 100%; aspect-ratio: 8/5; object-fit: cover; }

/* Das mitlaufende Bild gibt es nur mit JS und ab 900 px. */
.ablauf__medien { display: none; }

@media (min-width: 900px) {
  .js .ablauf__gitter { grid-template-columns: 42fr 58fr; align-items: start; }

  .js .ablauf__schritt {
    border-top: 0; padding-block: 9vh;
    min-height: 34vh;
    display: flex; flex-direction: column; justify-content: center;
    cursor: pointer;
  }
  .js .ablauf__schritt:first-child { padding-top: 9vh; }

  /* Nicht aktive Schritte treten zurück, statt zu verschwinden. */
  .js .ablauf__schritt h3 { color: var(--text-leise); }
  .js .ablauf__schritt p  { color: var(--text-leise); }
  .js .ablauf__schritt[aria-current="step"] h3 { color: var(--text); }
  .js .ablauf__schritt[aria-current="step"] p  { color: var(--text-zart); }
  .js .ablauf__schritt[aria-current="step"] .ablauf__marke { color: var(--rot); }
  .js .ablauf__schritt[aria-current="step"] .ablauf__marke b { background: var(--rot-flaeche); color: #fff; }
  .js .ablauf__schritt:hover h3 { color: var(--text); }

  .js .ablauf__inline { display: none; }

  .js .ablauf__medien {
    display: grid; position: sticky; top: 104px;
    aspect-ratio: 8/5; border-radius: 4px; overflow: hidden;
    border: 1px solid var(--linie); background: var(--graphit);
  }
  .js .ablauf__medium {
    grid-area: 1 / 1; min-width: 0;
    opacity: 0; transition: opacity .55s var(--ease);
  }
  .js .ablauf__medium[data-aktiv="true"] { opacity: 1; }
  .js .ablauf__medium img { width: 100%; height: 100%; object-fit: cover; }
  .js .ablauf__medium figcaption {
    position: absolute; inset: auto 0 0 0;
    padding: 34px 22px 16px; font-size: .84rem; color: #fff;
    background: linear-gradient(transparent, rgba(10,13,16,.85));
  }

  /* Fortschrittsschiene */
  .js .ablauf__schiene {
    position: sticky; top: 104px; width: 2px; background: var(--linie);
    justify-self: center; align-self: stretch;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .ablauf__medium { transition: none; }
}

/* --- 2) Reiter mit Konsolenfeld und Kopierknopf -------------------------- */

.reiter__leiste {
  display: flex; gap: 4px; margin-left: 6px;
  overflow-x: auto; scrollbar-width: none;
}
.reiter__leiste::-webkit-scrollbar { display: none; }

.reiter__knopf {
  font-family: var(--schrift-h); font-weight: 700; font-size: .86rem;
  padding: 11px 18px; cursor: pointer; white-space: nowrap;
  color: #8e9aa6; background: transparent;
  border: 1px solid transparent; border-bottom: 0;
  border-radius: 5px 5px 0 0;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.reiter__knopf:hover { color: #fff; }
.reiter__knopf[aria-selected="true"] {
  color: #fff; background: var(--graphit);
  border-color: rgba(255,255,255,.12);
}

.reiter__tafeln {
  display: grid;
  background: var(--graphit); border: 1px solid rgba(255,255,255,.12);
  border-radius: 0 5px 5px 5px;
}
.reiter__tafel { grid-area: 1 / 1; min-width: 0; padding: clamp(20px, 2.6vw, 28px); }

.js .reiter__tafel {
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.js .reiter__tafel[data-aktiv="true"] { opacity: 1; visibility: visible; }

.konsole {
  margin: 0; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(.78rem, 1.5vw, .86rem); line-height: 1.85;
  color: #dfe4e9; white-space: pre-wrap; word-break: break-word;
  overflow-x: auto;
}
.konsole b { color: #ff5c63; font-weight: 400; user-select: none; }

.reiter__fuss {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  align-items: center; margin-top: 20px;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1);
}
.reiter__fuss small { color: #8e9aa6; font-size: .82rem; }

.kopieren {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--schrift-t); font-size: .82rem; font-weight: 500;
  color: #b6c0ca; background: transparent; cursor: pointer;
  border: 1px solid rgba(255,255,255,.18); border-radius: 3px;
  padding: 8px 14px;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.kopieren:hover { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.kopieren svg { width: 14px; height: 14px; flex: none; }
.kopieren[data-fertig="true"] { color: #7ee08a; border-color: rgba(126,224,138,.45); }

/* --- 3) Umschalter mit überblendenden Tafeln ---------------------------- */

.wahl__leiste {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  background: var(--grund-alt); border: 1px solid var(--linie); border-radius: 5px;
  margin-bottom: clamp(24px, 3vw, 34px);
}
.grund-nebel .wahl__leiste { background: var(--karte); }

.wahl__knopf {
  font-family: var(--schrift-h); font-weight: 700; font-size: .9rem;
  padding: 11px 20px; border: 0; border-radius: 3px; cursor: pointer;
  color: var(--text-zart); background: transparent; white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.wahl__knopf:hover { color: var(--text); }
.wahl__knopf[aria-selected="true"] { background: var(--dunkel); color: #fff; }

.wahl__tafeln { display: grid; }
.wahl__tafel { grid-area: 1 / 1; min-width: 0; }
.js .wahl__tafel {
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.js .wahl__tafel[data-aktiv="true"] { opacity: 1; visibility: visible; }

/* Ohne JS steht alles untereinander statt gestapelt. */
html:not(.js) .wahl__leiste,
html:not(.js) .reiter__leiste { display: none; }
html:not(.js) .wahl__tafeln,
html:not(.js) .reiter__tafeln { display: block; }
html:not(.js) .wahl__tafel + .wahl__tafel { margin-top: 34px; }
html:not(.js) .reiter__tafel + .reiter__tafel { border-top: 1px solid rgba(255,255,255,.12); }

/* Grosse Kennwerte innerhalb einer Tafel */
.kennwerte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--linie); border: 1px solid var(--linie); border-radius: 4px; overflow: hidden; }
.kennwert { background: var(--karte); padding: clamp(22px, 2.8vw, 32px); }
.kennwert dt {
  font-family: var(--schrift-h); font-weight: 700;
  font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-zart); margin-bottom: 12px;
}
.kennwert dd {
  margin: 0; font-family: var(--schrift-h); font-weight: 800;
  font-size: clamp(1.5rem, 2.9vw, 2.15rem); line-height: 1;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kennwert dd i { font-style: normal; font-size: .46em; color: var(--text-zart); margin-left: 4px; }
.kennwert dd small { display: block; font-size: .38em; font-weight: 600; color: var(--text-zart); letter-spacing: 0; margin-top: 9px; white-space: normal; line-height: 1.5; }
@media (max-width: 700px) { .kennwerte { grid-template-columns: 1fr; } }

/* Ohne JavaScript kann der Kopierknopf nichts tun — dann lieber gar nicht
   anbieten. Der Vorlagentext bleibt markierbar und damit kopierbar. */
html:not(.js) .kopieren { display: none; }

/* Überschrift, die nur ohne JavaScript gebraucht wird — mit JS trägt der
   Reiter beziehungsweise der Umschalter selbst die Beschriftung. */
.js .nur-ohne-js { display: none; }
.reiter__tafel .nur-ohne-js { color: #fff; margin-bottom: 16px; }
.wahl__tafel .nur-ohne-js { margin-bottom: 16px; }

/* Strichzeichnung auf weissem Grund. Im dunklen Theme wird sie umgekehrt,
   damit kein weisser Block aus der Seite sticht. Gilt bewusst nur für diese
   eine Zeichnung — Fotos bleiben unangetastet. */
@media (prefers-color-scheme: dark) {
  .zeichnung { filter: invert(1) hue-rotate(180deg); }
}

/* Leistungskarten innerhalb eines dunklen Abschnitts. Sie setzen sich eine
   Spur vom Abschnittsgrund ab — in beiden Themes. */
.leistung--dunkel { background: var(--dunkel-tief); color: #dfe4e9; }
.leistung--dunkel h3 { color: #fff; }
.leistung--dunkel p  { color: #9aa5b0; }
.grund-dunkel .leistungen { border: 0; background: rgba(255,255,255,.11); }

/* Massskizze: heller Rahmen, im dunklen Theme umgekehrt (Regel weiter unten). */
.zeichnung { border: 1px solid var(--linie); border-radius: 4px; background: #fff; }

/* Freigestelltes Produktfoto mit weiss eingebranntem Hintergrund. Damit im
   dunklen Theme keine grelle Fläche aus der Seite sticht, bekommt es einen
   sichtbaren Rahmen und im Dunkeln einen leicht gedämpften Grund — es liest
   sich dann als bewusste Produkttafel statt als Loch. */
.produktbild {
  background: #fff; border: 1px solid var(--linie); border-radius: 4px;
  padding: clamp(10px, 1.8vw, 22px);
}
@media (prefers-color-scheme: dark) {
  .produktbild { background: #e7ecef; }
}

/* Auf schmalen Geräten passen die Reiter nicht nebeneinander. Statt sie
   waagerecht wegzuschieben — wo niemand sieht, dass es sie gibt — brechen sie
   um und stehen alle sichtbar da. Die Tafel wird dann rundum abgerundet,
   weil die Verbindung zum aktiven Reiter nicht mehr trägt. */
@media (max-width: 640px) {
  .reiter__leiste { flex-wrap: wrap; margin-left: 0; overflow: visible; gap: 6px; }
  .reiter__knopf {
    border: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12);
    border-radius: 4px; padding: 10px 14px; font-size: .82rem;
  }
  .reiter__knopf[aria-selected="true"] { border-color: rgba(255,255,255,.3); }
  .reiter__tafeln { border-radius: 5px; margin-top: 8px; }
}
