/* Schleuniger Montagen AG – Stylesheet
   Schriften: Archivo (Titel), IBM Plex Sans (Text), IBM Plex Mono (Labels) */

:root {
  --ink: #15191e;
  --ink-2: #2b323b;
  --muted: #5d6670;
  --paper: #f2f3f4;
  --paper-2: #e6e8ea;
  --line: #d6d9dd;
  --signal: #a41409;
  --signal-dark: #7f0f06;
  --white: #ffffff;

  --f-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
/* =========================================================
   TYPOGRAFIE-REGELN (global, verbindlich für alle Seiten)
   Basis: WCAG 2.1, Erfolgskriterium 1.4.12 (Textabstand)
   - p, li:        line-height 1.6
   - h1, h2, h3:   line-height 1.2
   - Absätze:      margin-bottom 1.5em, keine manuellen Einzüge
   - Lesebreite:   Textblöcke max. 70ch, Artikel-Container zentriert
   - Überschriften: 2em Abstand nach oben vor einem neuen Thema,
                    0.75em Abstand zum folgenden Text
   Neue Seiten/Abschnitte erben diese Regeln automatisch:
   Fliesstext in <p>/<ul>/<ol> setzen, längere Texte in .prose.
   ========================================================= */
h1, h2, h3 {
  font-family: var(--f-head); line-height: 1.2; letter-spacing: -0.01em;
  margin: 0 0 0.75em;
}
:is(h1, h2, h3):last-child { margin-bottom: 0; }
/* Neues Thema: Überschrift direkt nach Fliesstext bekommt 2em Luft nach oben
   (Kicker-Labels und Breadcrumbs gehören zur Überschrift und sind ausgenommen) */
:is(p:not(.label, .crumbs, .eyebrow), ul, ol, blockquote, dl, table, .table-scroll) + :is(h1, h2, h3) { margin-top: 2em; }

p, li { line-height: 1.6; }
p { margin: 0 0 1.5em; max-width: 70ch; text-indent: 0; }
p:last-child { margin-bottom: 0; }

/* Artikel-/Textcontainer: Lesebreite begrenzen und zentrieren */
.prose { max-width: 70ch; margin-left: auto; margin-right: auto; }
.split .prose, .contact-grid .prose { margin-left: 0; margin-right: 0; }
/* Eigenständiger Artikel (z. B. Impressum, AGB): Lesebreite + Seitenabstand, zentriert */
.wrap.prose { max-width: calc(70ch + 2 * var(--gutter)); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid #333b45;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 42px; width: auto; }

.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav a, .sub-toggle {
  display: block; padding: 10px 14px;
  font: 500 0.95rem var(--f-body); color: var(--white);
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav a:hover, .sub-toggle:hover { color: #ff7a6b; }
.sub a { color: var(--ink); }
.sub a:hover { color: var(--signal); }
.sub-toggle::after { content: ""; display: inline-block; margin-left: 7px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }

.has-sub { position: relative; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--white); border: 1px solid var(--line);
  padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: 9px 18px; }

.nav a.nav-cta { background: var(--signal); color: var(--white) !important; margin-left: 8px; border-radius: var(--radius); }
.nav a.nav-cta:hover { background: var(--signal-dark); color: var(--white) !important; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--white); content: ""; transition: transform .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -7px; left: 0; }
.nav-toggle-bar::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: var(--radius);
  font: 600 0.95rem var(--f-body); text-decoration: none;
  border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--signal); color: var(--white); }
.btn-primary:hover { background: var(--signal-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-ghost--light { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ghost--light:hover { background: var(--white); color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--signal); padding-bottom: 3px;
}
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(4px); }
/* Mehrere Links nebeneinander, umbrechen auf schmalen Bildschirmen */
.link-row { display: flex; flex-wrap: wrap; gap: 16px 32px; }

.label { color: var(--signal); margin-bottom: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--paper-2); color: #d9dce0; pointer-events: none; }
.hero-inner { position: relative; padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(48px, 7vw, 96px); }
.eyebrow { color: var(--muted); margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(3rem, 9vw, 7.6rem);
  font-weight: 800; font-stretch: 112%;
  letter-spacing: -0.03em; max-width: 12ch; margin-bottom: 0;
}
.hero h1 em { font-style: normal; color: var(--signal); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 40ch; margin: 32px 0 36px; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.spec {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(56px, 8vw, 96px) 0 0; border-top: 1px solid var(--ink);
}
.spec div { padding: 18px 20px 0 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 6px 0 0; font: 700 clamp(1.3rem, 2.4vw, 1.9rem) var(--f-head); font-stretch: 105%; }

/* ---------- Services ---------- */
.services { background: var(--white); border-bottom: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.service-grid li { border-left: 1px solid var(--line); }
.service-grid li:last-child { border-right: 1px solid var(--line); }
.service-grid a { display: flex; flex-direction: column; gap: 18px; padding: 36px 28px 32px; text-decoration: none; height: 100%; transition: background .2s; }
.service-grid a:hover { background: var(--paper); }
.service-grid .num { color: var(--muted); }
.service-grid img { width: 48px; height: 48px; }
.service-grid h2 { font-size: 1.45rem; font-weight: 700; }
.service-grid .more { margin-top: auto; font-weight: 600; font-size: 0.92rem; color: var(--signal); }
.service-grid .more::after { content: " →"; }

/* ---------- Features ---------- */
.feature { padding: clamp(64px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); }
.feature-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature--flip .feature-media { order: 2; }
.feature-media { margin: 0; position: relative; }
.feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-media::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--signal); z-index: -1;
}
.feature--flip .feature-media::before { inset: 14px 14px -14px -14px; }
.feature-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 700; }
.feature-text p { color: var(--ink-2); }
.feature-text .label { color: var(--signal); }
.feature-text .link-arrow { margin-top: 10px; }

/* ---------- Stats ---------- */
.stats { background: var(--ink); color: var(--white); padding: clamp(56px, 7vw, 88px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid li { padding: 0 20px; border-left: 1px solid #3a424c; }
.stats-grid li:first-child { border-left: 0; padding-left: 0; }
.stat-num { display: block; font: 800 clamp(2.4rem, 4.6vw, 3.8rem) var(--f-head); font-stretch: 115%; letter-spacing: -0.02em; line-height: 1; }
.stat-label { display: block; margin-top: 12px; color: #a9b1ba; }

/* ---------- About ---------- */
.about { padding: clamp(64px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); }
.about-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 88px); }
.about h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; font-stretch: 108%; }
.about p { color: var(--ink-2); }

/* ---------- Skills ---------- */
.skills { padding: clamp(64px, 9vw, 120px) 0; background: var(--white); border-bottom: 1px solid var(--line); }
.skills-title { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 700; max-width: 22ch; margin-bottom: clamp(40px, 5vw, 64px); }
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.skills-grid li { padding: 28px 24px 0 0; }
.skills-grid li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.skills-grid img { width: 40px; height: 40px; margin-bottom: 20px; }
.skills-grid h3 { font-size: 1.25rem; font-weight: 700; }
.skills-grid p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Voices ---------- */
.voices { padding: clamp(64px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); }
.voices-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.voices-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 700; }
.voices-nav { display: flex; gap: 8px; }
.voices-btn {
  width: 52px; height: 52px; border: 1.5px solid var(--ink); background: none; cursor: pointer;
  font-size: 1.2rem; border-radius: var(--radius); transition: background .15s, color .15s;
}
.voices-btn:hover { background: var(--ink); color: var(--white); }

.voices-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(440px, 84vw); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scroll-padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.voices-track::-webkit-scrollbar { display: none; }
.voice {
  scroll-snap-align: start; background: var(--white); border: 1px solid var(--line);
  padding: 32px; display: flex; flex-direction: column;
}
.voice-place { color: var(--signal); margin-bottom: 18px; }
.voice blockquote { margin: 0 0 28px; font-size: 1rem; color: var(--ink-2); }
.voice-who { margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.voice-who strong { display: block; color: var(--ink); font-weight: 600; }

/* ---------- Partners ---------- */
.partners { padding: 56px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.partner-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; align-items: center; margin-top: 12px; }
.partner-row img { max-height: 44px; width: auto; margin: 0 auto; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.partner-row img:hover { filter: none; opacity: 1; }

/* ---------- CTA ---------- */
/* CTA-Block vor dem Footer. Zurück auf Rot: --cta-bg auf var(--signal) setzen */
.cta { --cta-bg: #2a2a2a; background: var(--cta-bg); color: var(--white); padding: clamp(64px, 8vw, 104px) 0; border-top: 4px solid var(--signal); }
.cta h2 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; font-stretch: 115%; letter-spacing: -0.03em; margin-bottom: 0; }
.cta p { font-size: 1.15rem; margin: 18px 0 32px; max-width: 46ch; color: #d4d8dc; }
.cta .btn-primary { background: var(--signal); }
.cta .btn-primary:hover { background: var(--signal-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c4cad1; padding-top: 72px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 56px; }
.footer-logo { height: 40px; width: auto; }
.site-footer h3 { color: var(--white); font-weight: 500; line-height: 1.2; }
.site-footer address { font-style: normal; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer li + li { margin-top: 6px; }
.certs { display: flex; gap: 12px; align-items: start; }
.certs img { width: 72px; opacity: .85; transition: opacity .15s; }
.certs a:hover img { opacity: 1; }
.footer-bottom { border-top: 1px solid #333b45; padding-top: 22px; padding-bottom: 28px; color: #7f8893; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid li { border-bottom: 1px solid var(--line); }
  .service-grid li:nth-child(2) { border-right: 1px solid var(--line); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid li:nth-child(3) { padding-left: 0; border-left: 0; }
  .skills-grid li { padding-bottom: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stats-grid li:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-row { grid-template-columns: repeat(3, 1fr); }
}

/* Menütexte nie umbrechen; aktive Leistungsseite markiert auch «Leistungen» */
.nav a, .sub-toggle { white-space: nowrap; }
.has-sub:has([aria-current="page"]) > .sub-toggle { color: #ff7a6b; }
/* Mobiles Menü (Hamburger) bis 900px: darüber passen alle Menüpunkte in eine Zeile */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 0 0; background: var(--ink);
    padding: 16px var(--gutter); overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid #333b45; }
  .nav .sub a { color: #c4cad1; }
  .nav a, .sub-toggle { padding: 16px 0; font-size: 1.15rem; width: 100%; text-align: left; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: none; display: none; padding: 0 0 10px 16px; }
  .has-sub.open .sub { display: block; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open:hover .sub { display: block; }
  .nav a.nav-cta { margin: 16px 0 0; padding: 16px !important; text-align: center !important; }
}
@media (max-width: 860px) {

  .feature-inner, .about-inner { grid-template-columns: 1fr; }
  .feature--flip .feature-media { order: 0; }
  .feature-media::before { display: none; }
  .spec { grid-template-columns: 1fr; }
  .spec div { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .spec dd { margin: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid li { border-right: 1px solid var(--line); }
  .skills-grid { grid-template-columns: 1fr; }
  .skills-grid li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .stats-grid li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .partner-row { grid-template-columns: repeat(2, 1fr); }
  .voices-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Unterseiten
   ========================================================= */
.nav a[aria-current="page"] { color: #ff7a6b; }
.sub a[aria-current="page"] { color: var(--signal); }
.nav a.nav-cta[aria-current="page"] { color: var(--white) !important; background: var(--signal); }

.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .topo { opacity: .8; }
/* Einheitlicher Seitenkopf: gleiche Höhe und gleiche Bildgrösse auf allen Unterseiten */
.page-hero-inner {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px);
  align-items: center; min-height: 520px;
  padding-top: 56px; padding-bottom: 56px;
}
.page-hero-inner.no-media { grid-template-columns: minmax(0, 1fr); min-height: 340px; }
.crumbs { color: var(--muted); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--signal); }
.page-hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.25rem); font-weight: 800; font-stretch: 112%;
  letter-spacing: -0.03em; hyphens: manual; overflow-wrap: break-word; margin-bottom: 0;
}
.page-hero .lead { margin: 20px 0 0; }
.page-hero figure { margin: 0; }
.page-hero figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

.section { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark .label, .section--dark .cards .num { color: #ff7a6b; }
.section-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 72px); margin-bottom: clamp(36px, 5vw, 56px); align-items: end; }
.section-head h2, .section h2.h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; }
.section-head p { color: var(--ink-2); margin: 0; }
.section--dark .section-head p { color: #c4cad1; }

.prose p, .prose li { color: var(--ink-2); }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; }
.prose h3 { font-size: 1.15rem; font-weight: 700; }
.prose ul { list-style: none; margin: 0 0 1.5em; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: .45em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--signal); }
.prose a { color: var(--signal); }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 88px); }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); border-top: 1px solid var(--ink); }
.cards > li { padding: 30px 26px 30px 0; }
.cards > li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.section--dark .cards { border-top-color: #fff; }
.section--dark .cards > li + li { border-left-color: #3a424c; }
.cards img.icon { width: 44px; height: 44px; margin-bottom: 20px; }
.section--dark .cards img.icon { filter: invert(1); }
.cards h3 { font-size: 1.3rem; font-weight: 700; }
.cards p { font-size: .96rem; color: var(--muted); margin: 0; }
.section--dark .cards p { color: #b8c0c8; }
.cards .num { display: block; color: var(--signal); margin-bottom: 14px; }

/* Kennzahlen-Leiste */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.facts > div { padding: 22px 24px 0 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 8px 0 0; font: 700 clamp(1.4rem, 2.6vw, 2rem) var(--f-head); font-stretch: 105%; line-height: 1.1; }
.facts dd small { display: block; margin-top: 8px; font: 400 .92rem var(--f-body); color: var(--muted); }

/* Bildkacheln */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tiles figure { margin: 0; }
.tiles img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.tiles figcaption { margin-top: 12px; font: 600 1.05rem var(--f-head); }

/* Datentabelle */
.spec-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.spec-table th, .spec-table td { text-align: left; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { font: 500 .78rem var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--ink); }
.spec-table tbody th { font: 700 1.05rem var(--f-head); }
.spec-table td strong { font-family: var(--f-head); font-size: 1.1rem; }
.table-scroll { overflow-x: auto; }

/* Zeitstrahl */
.timeline { border-left: 2px solid var(--ink); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 36px 32px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; background: var(--signal); }
.timeline .year { display: block; font: 800 1.5rem var(--f-head); font-stretch: 110%; margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--ink-2); max-width: 60ch; }

/* Stellen */
.job { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 64px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--ink); }
.job:first-of-type { border-top: 0; padding-top: 0; }
.job figure { margin: 0; }
.job figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.job h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
.job .pensum { display: inline-block; margin: 14px 0 26px; padding: 6px 10px; background: var(--ink); color: var(--white); }
.job-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.job-cols h3 { font: 500 .78rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--signal); }
.job-cols ul li { font-size: .95rem; color: var(--ink-2); padding-left: 18px; position: relative; margin-bottom: 8px; }
.job-cols ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--signal); }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 88px); }
.contact-list dt { color: var(--muted); margin-top: 26px; }
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd { margin: 6px 0 0; font: 600 1.25rem var(--f-head); line-height: 1.35; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--signal); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font: 500 .78rem var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
.form label .req { color: var(--signal); }
.form input, .form textarea {
  width: 100%; padding: 14px 14px; border: 1px solid var(--line); border-bottom: 2px solid var(--ink);
  background: var(--white); font: 400 1rem var(--f-body); color: var(--ink); border-radius: 0;
}
.form textarea { min-height: 170px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--signal); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .consent { font-size: .88rem; color: var(--muted); }
.form button { border: 0; cursor: pointer; justify-self: start; }
.form-msg { grid-column: 1 / -1; padding: 16px 18px; border-left: 4px solid var(--signal); background: var(--white); display: none; }
.form-msg.show { display: block; }
.form-msg.ok { border-left-color: #2e7d32; }

/* Platzhalter für Rechtstexte */
.todo-box { border: 2px dashed var(--signal); background: var(--white); padding: 22px 24px; margin: 0 0 2em; }
.todo-box strong { color: var(--signal); }

.cert-row { display: flex; flex-wrap: wrap; gap: 20px; }
.cert-row a { display: flex; align-items: center; gap: 16px; padding: 16px 20px 16px 16px; background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.cert-row a:hover { border-color: var(--ink); }
.cert-row img { width: 64px; filter: brightness(0); } /* weisse Icons auf weisser Karte dunkel darstellen */
.cert-row span { font-weight: 600; }
.cert-row small { display: block; font-weight: 400; color: var(--muted); }

@media (max-width: 1080px) {
  .cards { --cols: 2 !important; }
  .cards > li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .job { grid-template-columns: 1fr; }
  .job figure { max-width: 340px; }
  .job-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .page-hero-inner, .section-head, .split, .contact-grid { grid-template-columns: 1fr; }
  .page-hero-inner, .page-hero-inner.no-media { min-height: 0; padding-top: 40px; padding-bottom: 40px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 18px; }
}
@media (max-width: 560px) {
  .cards { --cols: 1 !important; }
  .cards > li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .section--dark .cards > li + li { border-top-color: #3a424c; }
  .form { grid-template-columns: 1fr; }
  .job-cols { grid-template-columns: 1fr; }
}

/* =========================================================
   Starlink-Seite
   ========================================================= */
.hero-tagline { font: 600 clamp(1.1rem, 1.8vw, 1.35rem) var(--f-head); margin: 22px 0 0; }
.page-hero .hero-actions { margin-top: 32px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 12px 18px; border: 1.5px solid var(--ink); background: var(--white);
  font: 600 1rem/1.6 var(--f-head);
}

.checklist li {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem;
}
.checklist li:first-child { border-top: 1px solid var(--ink); }
.checklist li::before {
  content: ""; width: 26px; height: 26px; background: var(--signal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 22px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 22px no-repeat;
  margin-top: 1px;
}
.checklist strong { font-family: var(--f-head); }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; border-top: 1px solid var(--ink); }
.steps li { position: relative; padding: 28px 22px 0 0; counter-increment: step; }
.steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block;
  font: 800 2.6rem var(--f-head); font-stretch: 115%; color: var(--signal); line-height: 1; margin-bottom: 16px;
}
.steps h3 { font-size: 1.15rem; font-weight: 700; }
.steps p { font-size: .94rem; color: var(--muted); margin: 0; }

.voices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stars { color: var(--signal); letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 14px; }
.voices-grid .voice blockquote { font: 600 1.15rem/1.45 var(--f-head); color: var(--ink); }

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font: 700 clamp(1.05rem, 1.6vw, 1.25rem) var(--f-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 36px; height: 36px; display: grid; place-items: center;
  border: 1.5px solid var(--ink); font: 400 1.4rem var(--f-body); transition: transform .2s, background .2s, color .2s;
}
.faq details[open] summary::after { content: "–"; background: var(--ink); color: var(--white); }
.faq summary:hover { color: var(--signal); }
.section-note { margin-top: 2.5em; max-width: 60ch; color: #c4cad1; }
.job-cta { margin-top: 1.75em; }
.faq details p { margin: 0 0 24px; max-width: 70ch; color: var(--ink-2); }

@media (max-width: 1080px) {
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li, .steps li + li { display: grid; grid-template-columns: 70px 1fr; column-gap: 18px; padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 1px solid var(--ink); }
  .steps li::before { grid-row: span 2; font-size: 2rem; margin: 0; }
  .voices-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Entscheidungshilfe als Flussdiagramm (Konnektivität)
   ========================================================= */
.flow { list-style: none; margin: 0; padding: 0; max-width: 1040px; }
.flow-step {
  display: grid; grid-template-columns: minmax(0, 300px) 96px minmax(0, 1fr);
  grid-template-areas: "q yes a" "no . .";
  align-items: stretch;
}
.flow-q {
  grid-area: q; display: flex; flex-direction: column; justify-content: center; background: var(--ink); color: var(--white);
  padding: 22px 24px; border-left: 4px solid var(--signal);
}
.flow-num { display: block; color: #ff7a6b; margin-bottom: 8px; }
.flow-q p { margin: 0; font: 700 1.15rem/1.3 var(--f-head); }
.flow-yes {
  grid-area: yes; align-self: center; position: relative; text-align: center; color: var(--signal);
  padding-bottom: 22px;
}
.flow-yes::before {
  content: ""; position: absolute; left: 8px; right: 14px; bottom: 10px; height: 2px; background: var(--signal);
}
.flow-yes::after {
  content: ""; position: absolute; right: 8px; bottom: 6px;
  border-left: 9px solid var(--signal); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.flow-a {
  grid-area: a; display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); padding: 22px 24px;
}
.flow-a .icon { width: 44px; height: 44px; }
.flow-a h3 { font-size: 1.2rem; font-weight: 700; }
.flow-a p { color: var(--ink-2); }
.flow-options { list-style: none; margin: 0; padding: 0; }
.flow-options li { position: relative; padding-left: 20px; margin-bottom: .5em; color: var(--ink-2); }
.flow-options li:last-child { margin-bottom: 0; }
.flow-options li::before { content: ""; position: absolute; left: 0; top: .75em; width: 10px; height: 2px; background: var(--signal); }
.flow-options a { color: var(--signal); }
.flow-no {
  grid-area: no; position: relative; height: 64px; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.flow-no::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 8px; width: 2px; background: var(--ink); transform: translateX(-1px);
}
.flow-no::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-5px);
  border-top: 9px solid var(--ink); border-left: 5px solid transparent; border-right: 5px solid transparent;
}
/* Beschriftung «Nein» neben der Linie */
.flow-no { padding-left: 64px; }
.flow-cta { margin: 48px 0 0; }

@media (max-width: 860px) {
  /* Mobil: senkrechte «Nein»-Linie links, Antworten eingerückt daneben */
  .flow-step { grid-template-columns: 1fr; grid-template-areas: "q" "yes" "a" "no"; position: relative; }
  .flow-step:not(.flow-step--last)::before {
    content: ""; position: absolute; left: 20px; top: 0; bottom: 8px; width: 2px; background: var(--ink);
  }
  .flow-q { position: relative; z-index: 1; }
  .flow-yes { padding: 12px 0 10px 44px; text-align: left; }
  .flow-yes::before {
    content: ""; left: 21px; right: auto; top: 50%; bottom: auto; width: 14px; height: 2px; background: var(--signal);
  }
  .flow-yes::after {
    content: ""; display: block; left: 33px; right: auto; top: calc(50% - 4px); bottom: auto;
    border-left: 8px solid var(--signal); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  }
  /* letzte Frage: Linie bis zum «Ja»-Abzweig weiterführen */
  .flow-step--last .flow-yes { background: linear-gradient(var(--ink), var(--ink)) 20px 0 / 2px 50% no-repeat; }
  .flow-a { margin-left: 44px; }
  .flow-no { height: 56px; justify-content: flex-start; padding-left: 44px; }
  .flow-no::before { content: none; }
  .flow-no::after { left: 21px; }
}

/* Karten mit Link unten: Links auf gleicher Höhe */
.cards--links > li { display: flex; flex-direction: column; align-items: flex-start; }
.cards--links .link-arrow { margin-top: auto; }
.cards--links p { margin-bottom: 1.5em; }

/* Cloudflare Turnstile im Kontaktformular */
.form .cf-turnstile { min-height: 65px; }
