/* Corvent – gemeinsames Stylesheet. Richtung und Tokens: design/DESIGN.md */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 400 650;
  font-stretch: 80% 112%;
  src: url(../fonts/archivo-corvent.woff2) format("woff2-variations"), url(../fonts/archivo-corvent.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations"), url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #FFFFFF;
  --graphite: #1E252B;
  --slate: #56616B;
  --alu: #E6EAED;
  --alu-line: #C3CBD1;
  --red: #C40009;        /* Logo-Rot, nur für Handlungen */
  --red-dark: #9C0007;

  --fs-14: 0.875rem; --fs-16: 1rem; --fs-18: 1.125rem; --fs-21: 1.3125rem;
  --fs-26: 1.625rem; --fs-34: 2.125rem; --fs-44: 2.75rem; --fs-56: 3.5rem;

  --gutter: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; --sticky-top: 112px; scroll-padding-top: calc(var(--sticky-top) - 16px); }
html:has(.subnav) { --sticky-top: 168px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: var(--fs-18);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  font-kerning: normal;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.skip-link { position: absolute; left: 16px; top: -100px; background: var(--graphite); color: #fff; padding: 12px 16px; z-index: 20; }
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 {
  font-variation-settings: "wdth" 112;
  font-weight: 650;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-56); line-height: 1.04; }
h2 { font-size: var(--fs-34); }
h3 { font-size: var(--fs-21); line-height: 1.25; }
p { margin: 0; max-width: 65ch; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--alu-line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 80px; }
.logo { display: block; line-height: 0; }
.logo img { width: 177px; height: 56px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: var(--fs-16); font-weight: 500; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { border-bottom-color: var(--graphite); }
.header-call { font-size: var(--fs-16); font-weight: 600; text-decoration: none; white-space: nowrap; padding: 12px 0; }
.header-call:hover { color: var(--red); }
.site-header .menu-toggle, .site-header .call-btn-sm { display: none; }
.header-remote { display: flex; align-items: center; gap: 4px; padding-left: 24px; border-left: 1px solid var(--alu-line); }
.remote-label { font-size: var(--fs-14); color: var(--slate); margin-right: 8px; }
.remote-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 6px; transition: background-color .18s ease; }
.remote-link:hover { background: var(--alu); }
.remote-link img { width: 28px; height: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 4px;
  font: inherit; font-size: var(--fs-18); font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--red); color: #fff; border: 2px solid var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-secondary { background: transparent; color: var(--graphite); border: 2px solid var(--graphite); }
.btn-secondary:hover { background: var(--graphite); color: #fff; }
/* Knöpfe mit Programm-Logo: heller Hover, damit das Logo sichtbar bleibt */
.btn-tool:hover { background: var(--alu); color: var(--graphite); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn img { width: 24px; height: 24px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* ---------- Hero (Startseite) ---------- */
.hero { padding: 88px 0 104px; }
.hero .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.hero h1 { max-width: 14ch; }
.lead { font-size: var(--fs-21); line-height: 1.5; margin-top: 28px; max-width: 34em; }
.hero-note { margin-top: 20px; font-size: var(--fs-16); color: var(--slate); }

/* ---------- Typenschild ---------- */
.plate {
  position: relative;
  background: var(--alu);
  border: 1px solid var(--alu-line);
  border-radius: 6px;
  padding: 30px 38px 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.plate::before, .plate::after, .plate .rivets::before, .plate .rivets::after {
  content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, #b4bcc2 60%, #98a1a8 100%);
  box-shadow: 0 0 0 1px #a9b2b8;
}
.plate::before { top: 12px; left: 12px; }
.plate::after { top: 12px; right: 12px; }
.plate .rivets::before { bottom: 12px; left: 12px; }
.plate .rivets::after { bottom: 12px; right: 12px; }

.plate-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--graphite); }
.plate-head img { width: 142px; height: 45px; }
.plate-origin { font-size: var(--fs-14); color: var(--slate); text-align: right; line-height: 1.3; }
.plate dl { margin: 0; }
.plate-row { display: grid; grid-template-columns: 6.5rem 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--alu-line); }
.plate-row:last-child { border-bottom: 0; }
.plate dt { font-size: var(--fs-14); color: var(--slate); padding-top: 3px; }
.plate dd { margin: 0; font-variation-settings: "wdth" 80; font-weight: 560; font-size: var(--fs-18); line-height: 1.35; }
.plate dd ul { list-style: none; margin: 0; padding: 0; }
.plate-row.is-key dd { font-size: var(--fs-26); font-weight: 650; font-variation-settings: "wdth" 84; line-height: 1.1; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-head { padding: 80px 0 72px; border-bottom: 1px solid var(--alu-line); }
.page-head h1 { max-width: 16ch; }
.page-head .lead { color: var(--graphite); }
.page-head .intro { margin-top: 20px; color: var(--slate); }
.page-head:only-child { border-bottom: 0; }

/* ---------- Sektionen ---------- */
.section { padding: 96px 0; border-top: 1px solid var(--alu-line); }
.page-head + .section { border-top: 0; }
.split { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
.split > :first-child p { margin-top: 16px; color: var(--slate); font-size: var(--fs-16); }
.split .sub { color: var(--slate); font-size: var(--fs-21); line-height: 1.35; margin-top: 12px; font-weight: 500; }
.muted { color: var(--slate); }
.more { margin-top: 32px; }
.more a { font-weight: 600; text-underline-offset: 4px; }
.more a:hover { color: var(--red); }

/* Fliesstext in Unterseiten */
.prose > * + * { margin-top: 20px; }
.prose h3 { margin-top: 48px; }
.prose h3 + p, .prose h3 + ul { margin-top: 12px; }
.prose > :first-child { margin-top: 0; }
.prose ul:not(.checks) { padding-left: 1.2em; max-width: 65ch; }
.prose li + li { margin-top: 6px; }
.prose a:not(.btn) { text-underline-offset: 3px; }
.prose a:not(.btn):hover { color: var(--red); }

/* Mitlaufendes Inhaltsverzeichnis langer Seiten */
.subnav { position: sticky; top: 80px; z-index: 9; background: var(--paper); border-bottom: 1px solid var(--alu-line); }
.subnav .wrap { display: flex; align-items: center; gap: 28px; }
.subnav-label { flex: none; font-size: var(--fs-14); color: var(--slate); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block; padding: 14px 0 12px; white-space: nowrap; text-decoration: none;
  font-size: var(--fs-16); color: var(--slate); border-bottom: 2px solid transparent;
}
.subnav a:hover { color: var(--graphite); }
.subnav a:focus-visible { outline-offset: -3px; }
.subnav a[aria-current="true"] { color: var(--graphite); font-weight: 600; border-bottom-color: var(--graphite); }
.subnav + .section { border-top: 0; }
/* Nach einem Sprung steht der Abschnittstitel dort, wo er auch mitläuft (Innenabstand der Sektion ausgleichen) */
.section[id] { scroll-margin-top: -80px; }

/* Ablauf */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--graphite); padding-top: 20px; }
.steps li::before {
  content: counter(step); display: block;
  font-variation-settings: "wdth" 112; font-weight: 650; font-size: var(--fs-44); line-height: 1; margin-bottom: 20px;
}
.steps p { margin-top: 10px; color: var(--slate); }

/* Häkchen-Listen */
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; max-width: none; }
.checks.single { grid-template-columns: 1fr; max-width: 65ch; }
.checks li { padding: 12px 0 12px 32px; border-bottom: 1px solid var(--alu-line); position: relative; }
.checks li + li { margin-top: 0; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 19px; width: 14px; height: 8px;
  border-left: 2px solid var(--graphite); border-bottom: 2px solid var(--graphite); transform: rotate(-45deg);
}

/* Preis */
.price-figure { font-variation-settings: "wdth" 112; font-weight: 650; font-size: var(--fs-44); line-height: 1.05; }
.price-figure small { display: block; font-size: var(--fs-18); font-weight: 500; color: var(--slate); margin-top: 8px; font-variation-settings: "wdth" 100; }

/* Leistungs-Raster */
.grid-2 { margin: 56px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
.grid-2 > div { border-top: 1px solid var(--graphite); padding-top: 18px; }
.grid-2 p { margin-top: 8px; color: var(--slate); }
.grid-2 a { text-underline-offset: 3px; }
.grid-2 h3 a { text-decoration: none; }
.grid-2 h3 a:hover { color: var(--red); }

/* Team */
.team { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; max-width: 760px; }
.person-name { font-weight: 650; font-size: var(--fs-21); font-variation-settings: "wdth" 108; }
.person-role { color: var(--slate); }

/* Adresse / Kontakt-Seite */
.contact-card { font-style: normal; font-size: var(--fs-21); line-height: 1.6; }
.contact-card a { text-underline-offset: 4px; }
.contact-card a:hover { color: var(--red); }
.facts { margin: 0; display: grid; grid-template-columns: 8rem 1fr; gap: 12px 24px; }
.facts dt { color: var(--slate); }
.facts dd { margin: 0; }
.contact-card + .facts { margin-top: 32px; }

/* ---------- Kontakt-Block / Footer ---------- */
.contact { background: var(--graphite); color: #fff; padding: 96px 0 0; }
.contact h2 { font-size: var(--fs-44); max-width: 14ch; }
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
.contact .lead { color: #D5DBDF; }
.contact .btn-secondary { color: #fff; border-color: #fff; }
.contact .btn-secondary:hover { background: #fff; color: var(--graphite); }
.contact address { font-style: normal; line-height: 1.7; color: #D5DBDF; }
.contact address a { color: #fff; }
.footer-bar { padding: 24px 0 40px; border-top: 1px solid #3A444C; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; font-size: var(--fs-16); color: #AEB7BE; }
.site-footer { background: var(--graphite); }
.contact-grid + .footer-bar { margin-top: 88px; }
.footer-bar a { color: #AEB7BE; padding: 10px 0; }
.footer-bar a:hover { color: #fff; }
.footer-bar .remote { margin-left: auto; }

/* Einzeln stehende Links: grössere Tippfläche ohne Layout-Verschiebung */
.more a, .grid-2 h3 a, .checks a, .contact address a, .contact-card a, .facts a {
  display: inline-block; padding: 12px 0; margin: -12px 0;
}

/* Desktop: Titelspalte läuft mit langen Abschnitten mit */
@media (min-width: 961px) {
  .split > :first-child { position: sticky; top: var(--sticky-top); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0 72px; }
  h1 { font-size: var(--fs-44); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .footer-bar .remote { margin-left: 0; }
  /* Kompakter Header mit Menü-Knopf ab Tablet-Breite */
  .nav, .header-call, .header-remote { display: none; }
  .site-header .call-btn-sm { display: inline-flex; margin-left: auto; min-height: 44px; padding: 0 16px; font-size: var(--fs-16); }
  .site-header .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; min-width: 7.25rem; min-height: 44px;
    background: none; border: 2px solid var(--graphite); border-radius: 4px; color: var(--graphite);
    font: inherit; font-size: var(--fs-16); font-weight: 600; padding: 0 12px; cursor: pointer;
  }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--alu-line); padding: 8px var(--gutter) 16px;
    box-shadow: 0 0 0 100vmax rgba(30, 37, 43, .45);
    clip-path: inset(0 0 -100vmax 0);
  }
  .nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--alu-line); font-size: var(--fs-18); }
  .nav.is-open a:last-child { border-bottom: 0; }
  .nav.is-open a[aria-current="page"] { font-weight: 650; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  html { --sticky-top: 96px; }
  html:has(.subnav) { --sticky-top: 144px; }
  .subnav { top: 64px; }
  .subnav .wrap { padding-right: 0; }
  .subnav-label { display: none; }
  .subnav ul { gap: 24px; padding-right: 40px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
  .section[id] { scroll-margin-top: -48px; }
  .subnav + .section[id] { scroll-margin-top: -24px; }
  body { font-size: 1.0625rem; }
  .site-header .wrap { gap: 12px; min-height: 64px; }
  .logo img { width: 120px; height: 38px; }
  .hero { padding: 40px 0 56px; }
  h1, .hero h1 { font-size: 2.25rem; }
  .lead { font-size: var(--fs-18); margin-top: 20px; }
  .actions { margin-top: 28px; }
  .actions .btn { width: 100%; }
  .plate { padding: 26px 22px 16px; }
  .plate-head img { width: 120px; height: 38px; }
  .plate-row { grid-template-columns: 5.5rem 1fr; gap: 12px; }
  .page-head { padding: 48px 0 48px; }
  .section { padding: 64px 0; }
  .page-head + .section, .subnav + .section { padding-top: 40px; }
  .split { gap: 20px; }
  h2 { font-size: var(--fs-26); }
  .checks, .grid-2, .team { grid-template-columns: 1fr; }
  .grid-2 { gap: 32px; }
  .price-figure { font-size: var(--fs-34); }
  .contact { padding: 64px 0 0; }
  .contact h2 { font-size: var(--fs-34); }
  .contact-grid + .footer-bar { margin-top: 56px; }
  .footer-bar { gap: 0 28px; }
  .footer-bar span { flex-basis: 100%; padding-bottom: 4px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd + dt { margin-top: 12px; }
  .contact-card { font-size: var(--fs-18); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .contact, .footer-bar, .subnav { display: none; }
  body { font-size: 11pt; }
}
