/* ==========================================================================
   Arbeitsrecht REMIEN: Basis (Schrift, Grundlayout, Typografie, Fokus)
   ========================================================================== */

/* Outfit, selbst gehostet (vorhandene Dateien aus /webfonts) */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../webfonts/outfit-v11-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../webfonts/outfit-v11-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../webfonts/outfit-v11-latin-800.woff2") format("woff2"); }
/* Metrisch angeglichener Fallback gegen Layoutsprünge beim Schriftwechsel (Werte vorläufig) */
@font-face { font-family: "Outfit Fallback"; src: local("Arial"), local("Helvetica");
  size-adjust: 101%; ascent-override: 99%; descent-override: 26%; line-gap-override: 0%; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;                        /* kein seitlicher Sprung, wenn das Menü das Scrollen sperrt */
  scroll-padding-top: calc(var(--nav-h) + var(--sp-4));
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--fw-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
svg.bi { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; flex-shrink: 0; }

h1, h2, h3, h4 {
  margin: 0 0 var(--sp-4);
  font-weight: var(--fw-head);
  line-height: var(--lh-head);
  letter-spacing: var(--tracking-head);
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p, ul, ol, dl { margin: 0 0 var(--sp-4); }
p { text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.6; }
.small, small { font-size: var(--fs-small); }
.muted { color: var(--muted); }
.prose { max-width: var(--measure); hyphens: auto; }

a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;              /* Unterstrich nur beim Hover */
  text-underline-offset: .2em;
  transition: text-decoration-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--brand); text-decoration-color: currentColor; }
.on-brand a:not(.btn) { color: var(--white); text-decoration-color: transparent; }
.on-brand a:not(.btn):hover { color: var(--white); text-decoration-color: currentColor; }
/* Verlinkte Begriffe im Fließtext: Farbe des umgebenden Textes, Unterstrich beim Hover, nie fett */
a.still { color: inherit; }
a.still:hover { color: inherit; text-decoration-color: currentColor; }
a.still strong { font-weight: inherit; }

/* Fokus: immer sichtbar, auf Rot weiß */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
.on-brand :focus-visible { outline-color: var(--white); }

/* Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.stack > * + * { margin-top: var(--sp-4); }
.grid { display: grid; gap: var(--sp-6); }
@media (min-width: 768px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .grid--split { grid-template-columns: 7fr 5fr; gap: var(--sp-12); align-items: start; } .grid--split.is-reversed > :first-child { order: 2; } }

/* Textvarianten wie im Bestand (mobil unter 768 px, Desktop ab 768 px) */
.d-desktop, .d-desktop-inline, .d-desktop-flex, .d-lg-inline { display: none !important; }
@media (min-width: 768px) { .d-mobile { display: none !important; } .d-desktop { display: block !important; } .d-desktop-inline { display: inline !important; } .d-desktop-flex { display: inline-flex !important; } }
@media (min-width: 992px) { .d-lg-inline { display: inline; } }
.text-nowrap { white-space: nowrap; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Skip-Link */
.skip-link { position: absolute; left: var(--sp-4); top: -100px; z-index: 2000; padding: var(--sp-3) var(--sp-4);
  background: var(--brand); color: var(--white); border-radius: var(--r-sm); font-weight: var(--fw-ui); text-decoration: none; }
.skip-link:focus-visible { top: var(--sp-4); outline-color: var(--ink); }
