/* Automatisch erzeugt aus docs/ci/tokens.json (npm run tokens). Nicht von Hand ändern. */

@font-face{font-family:"Mona Sans";src:url("/fonts/MonaSans-latin-wdth-wght.woff2") format("woff2");font-weight:200 900;font-stretch:75% 125%;font-style:normal;font-display:swap}
@font-face{font-family:"Public Sans";src:url("/fonts/PublicSans-latin-wght.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Archivo";src:url("/fonts/Archivo-latin-wdth-wght.woff2") format("woff2");font-weight:100 900;font-stretch:62% 125%;font-style:normal;font-display:swap}

:root{
  --surface: #FFFFFF;
  --line: #DDE3E2;
  --ink: #111418;
  --ink-muted: #4A5157;
  --on-accent: #FFFFFF;
  --on-deep: #FFFFFF;
  --ki: #8191EE;
  --ki-strong: #4757C8;
  --ki-tint: #E1E6FF;
  --family-transformation: #2340A8;
  --family-workspaces: #0E5A5C;
  --family-transformation-light: #A9B8FF;
  --family-workspaces-light: #8FCFCA;
  --family-person: #3F6B86;
  --font-display: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
  --space-9: 72px;
  --space-10: 96px;
  --radius-control: 4px;
  --radius-box: 6px;
  --radius-tile: 6px;
  --content-max: 1200px;
  --control-min: 48px;
  --measure: 34em;
  --fs-marke: 22px;
  --lh-marke: 1.2;
  --fs-h1: 64px;
  --lh-h1: 1.06;
  --fs-frage: 56px;
  --lh-frage: 1.08;
  --fs-h2: 40px;
  --lh-h2: 1.12;
  --fs-h3: 24px;
  --lh-h3: 1.2;
  --fs-kennzahl: 112px;
  --lh-kennzahl: 1.08;
  --fs-ziffer: 64px;
  --lh-ziffer: 1;
  --fs-lead: 22px;
  --lh-lead: 1.5;
  --fs-lead-deep: 19px;
  --lh-lead-deep: 1.55;
  --fs-intro: 20px;
  --lh-intro: 1.6;
  --fs-body: 18px;
  --lh-body: 1.65;
  --fs-body-sm: 16px;
  --lh-body-sm: 1.6;
  --fs-caption: 15px;
  --lh-caption: 1.55;
  --fs-label: 13px;
  --lh-label: 1.4;
  --fs-claim: 12px;
  --lh-claim: 1.4;
}
[data-theme="transformation"]{
  --band: #F0F2FB;
  --accent: #2340A8;
  --on-accent-muted: #E6EAF7;
  --deep: #0B1433;
  --on-deep-muted: #E6EAF7;
  --deep-accent: #A9B8FF;
}
[data-theme="workspaces"]{
  --band: #F2F6F5;
  --accent: #0E5A5C;
  --on-accent-muted: #FFFFFF;
  --deep: #0E2A2B;
  --on-deep-muted: #FFFFFF;
  --deep-accent: #8FCFCA;
}

/* Grundgestaltung nach der Übergabe (docs/design/F2-*.dc.html, Farbfassung 2 vom 20.11.2026).
   Farben, Schriften und Maße nur über Variablen aus tokens.css (erzeugt aus docs/ci/tokens.json).
   Wo der Canvas einen Farbwert ohne Token nutzt, ist er aus Tokens abgeleitet (color-mix) und in
   docs/TEXTBEFUNDE.md als Abweichung vermerkt. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--deep); }
p, h1, h2, h3, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }

/* Fließtext in Abschnitten grau, Überschriften in Tinte (Farbfassung 2, „Klarheit wie Workspaces“) */
/* :where hält die Regel schwach, damit Stile der Seiten und Bausteine sie überschreiben */
:where(main section) p { color: var(--ink-muted); }
p.tinte { color: var(--ink); }

/* Abgeleitete Farben ohne eigenes Token */
:root {
  /* Bildkennzeichnung und Ziffern: Canvas #6B7177, hier ink-muted aufgehellt, Kontrast auf Weiß 4,9 zu 1 */
  --grau-hell: color-mix(in srgb, var(--ink-muted) 81%, var(--surface));
  /* Kartenrahmen im dunklen Band: Canvas #2F3E73 */
  --deep-linie: color-mix(in srgb, var(--deep-accent) 26%, var(--deep));
}

/* Fokus: 3 px in accent, auf dunklen Flächen in on-deep */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.on-deep :focus-visible { outline-color: var(--on-deep); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 50;
  background: var(--accent); color: var(--on-accent); padding: 12px 20px; border-radius: var(--radius-control);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--on-accent); }

/* Schrift nach dem Design System */
.ds-display { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: break-word; }
.ds-label { font-family: var(--font-text); font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.ds-brand { font-family: var(--font-brand); font-stretch: 125%; letter-spacing: 0.03em; text-transform: lowercase; white-space: nowrap; }

/* Raster: Spalten ab einer Mindestbreite (--min), wie im Canvas */
.wrap { max-width: var(--content-max); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
/* Unter 400 px: Rand 16 px statt 32 px, sonst passt die Wortmarke bei 320 px nicht (Abweichung vom Canvas) */
@media (max-width: 400px) { .wrap { padding-left: 16px; padding-right: 16px; } }
.spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 420px)), 1fr)); }
.stapel { display: flex; flex-direction: column; }

/* Schaltflächen, mindestens 44 px hoch */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: var(--radius-control); background: var(--accent); color: var(--on-accent);
  font-size: 17px; font-weight: 600; line-height: 1.25; text-decoration: none; text-align: center;
}
.knopf:hover { color: var(--on-accent); background: var(--deep); }
.knopf-rahmen { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); padding: 0 22px; }
.knopf-rahmen:hover { background: var(--accent); color: var(--on-accent); }
.knopf-hell { background: var(--surface); color: var(--deep); }
.knopf-hell:hover { background: var(--surface); color: var(--deep); filter: brightness(0.92); }

/* Links mit Pfeil */
.lk { font-size: 16px; font-weight: 600; text-decoration: none; }
.lk-unterstrichen { text-decoration: underline; text-underline-offset: 3px; }
/* pre: Das Leerzeichen vor dem Pfeil bleibt auch in Links mit inline-flex stehen */
.pfeil { white-space: pre; }
/* „KI-“-Wörter in Überschriften und Fragezeilen (KiText.astro) */
.ki-wort { white-space: nowrap; }

/* Bild mit Kennzeichnung */
.bild figcaption { font-size: 10px; line-height: 1.4; color: var(--grau-hell); }
.bild img { width: 100%; object-fit: cover; border-radius: var(--radius-box); }

/* Häufige Fragen */
.faq-liste { border-bottom: 1px solid var(--line); }
.faq-liste details { padding: 18px 0; border-top: 1px solid var(--line); }
.faq-liste summary { cursor: pointer; font-size: 18px; line-height: 1.35; font-weight: 700; min-height: 44px; }
.faq-liste summary h3 { display: inline; font-size: inherit; font-weight: inherit; }
.faq-antwort p { margin-top: 10px; font-size: 16px; line-height: 1.6; }

/* Kärtchen auf band */
.kachel { display: flex; flex-direction: column; gap: 10px; background: var(--band); border-radius: var(--radius-tile); padding: 26px; }
.kachel h3 { font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.kachel p { font-size: 16px; line-height: 1.55; }

/* 404 */
.fehler { padding-top: 80px; padding-bottom: 120px; gap: 22px; }
.fehler-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fehler-links a { min-height: 44px; display: inline-flex; align-items: center; }

/* Gedruckt wird immer der Endzustand der Grafiken */
@media print { *, *::before, *::after { animation: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Dachseite coharis.com. Baut auf tokens.css (aus docs/ci/tokens.json, Version 9) und auf
   src/styles/global.css von Consulting auf; beide setzt scripts/dachseite-bauen.mjs davor.
   Farben und Maße nur über Token-Variablen. */

/* Kopfzeile: nur die Dachmarke, zweifarbiges Zeichen und „Coharis“, ohne Claim (Baustein Kopfzeile) */
.kopf-innen { padding-top: 24px; padding-bottom: 24px; display: flex; align-items: center; }
.dachmarke { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.dachmarke svg { flex: none; display: block; }
.dachmarke-wort { font-size: var(--fs-marke); line-height: var(--lh-marke); font-weight: 800; }

/* Navy-Menüband in deep, Negativfassung der Dachmarke (Entscheidung Christian vom 23.11.2026) */
.kopfzeile { background: var(--deep); }
.kopfzeile .bogen-1 { stroke: var(--family-transformation-light); }
.kopfzeile .bogen-2 { stroke: var(--family-workspaces-light); }
.kopfzeile .dachmarke-wort { color: var(--on-deep); }
.kopfzeile :focus-visible { outline-color: var(--on-deep); }

/* Startseite */
.dach-kopf { padding-top: var(--space-10); padding-bottom: var(--space-6); gap: var(--space-3); }
.dach-h1 { font-size: clamp(44px, 9vw, var(--fs-h1)); line-height: var(--lh-h1); }
main p.dach-satz { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink); max-width: 30em; }

.tueren { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--space-3); padding-bottom: var(--space-6); }
.tuer { display: flex; flex-direction: column; gap: 12px; padding: var(--space-4); border-radius: var(--radius-tile); }
@media (max-width: 400px) { .tuer { padding: var(--space-3); } }
/* Wortmarke und Claim je in einer eigenen Zeile, beide ohne Umbruch (Auftrag vom 26.11.2026). Der Trenner „·“
   aus dem Text bleibt im Quelltext und für Screenreader, ist aber bei zwei Zeilen überflüssig und deshalb verborgen.
   Unter 400 px etwas kleiner, damit beide Zeilen auch bei 320 px in die Kachel passen. */
.tuer-h2 { font-size: 20px; line-height: 1.4; font-weight: 700; color: var(--ink); }
.tuer-h2 .ds-brand, .tuer-claim { display: block; white-space: nowrap; }
.tuer-h2 .ds-brand { font-size: 20px; }
@media (max-width: 400px) { .tuer-h2, .tuer-h2 .ds-brand { font-size: 18px; } }
.wm-dach { font-weight: 800; color: var(--ink); }
.wm-bereich { font-weight: 400; }
.tuer-trenner { display: none; }
main .tuer p { font-size: var(--fs-body); line-height: var(--lh-body); }
.tuer-aktion { margin-top: auto; padding-top: var(--space-1); }

/* Workspaces: aktive Tür, im Thema „workspaces“ (band, accent in Petrol) */
.tuer-aktiv { background: var(--band); }
.tuer-aktiv .wm-bereich { color: var(--accent); }

/* Consulting: Zeile ohne Datum und ohne Warteliste, ruhig mit Linie */
.tuer-ruhig { border: 1px solid var(--line); }
.tuer-ruhig .wm-bereich { color: var(--family-transformation); }

.dach-kontakt { padding-bottom: var(--space-10); }
main .dach-kontakt p { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink); }

/* Rechtsseiten, Maße wie bei Consulting (src/pages/impressum/index.astro) */
.recht-kopf { padding-top: 56px; padding-bottom: 48px; gap: 16px; }
.recht-h1 { font-size: clamp(36px, 4vw, 52px); line-height: 1.08; }
main p.recht-lead { font-size: 18px; line-height: 1.6; }
.recht-inhalt { padding-top: 8px; padding-bottom: 96px; }
.recht-zeile { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 8px 48px; padding: 28px 0; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .recht-zeile { grid-template-columns: minmax(0, 1fr); } }
.recht-h2 { font-size: 19px; line-height: 1.35; font-weight: 700; color: var(--ink); overflow-wrap: break-word; }
.recht-text { gap: 12px; max-width: 46em; }
main p.recht-absatz { font-size: 16px; line-height: 1.65; color: var(--ink); overflow-wrap: break-word; }
.recht-liste { padding-left: 20px; font-size: 16px; line-height: 1.65; display: flex; flex-direction: column; gap: 4px; }
.offen { background: var(--band); padding: 0 4px; outline: 1px dashed var(--ink-muted); outline-offset: -1px; }

/* Fußzeile: Inhaber, Impressum, Datenschutz */
.fuss { border-top: 1px solid var(--line); }
.fuss-innen { padding-top: var(--space-5); padding-bottom: var(--space-6); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 48px; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--ink-muted); }
.fuss-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fuss-links a { min-height: 44px; display: inline-flex; align-items: center; }
