/* ==========================================================================
   help.css — Seitenrahmen des searchit Helpcenters (Plan SITE-6 §3.3).
   Bewusst schlicht; Gestaltung ist Sache des Makeover-Plans.

   Tokens frisch aus ../spring-angular/ui-fat/src/sass/_variables.scss (Stand 2026-09-17),
   nicht aus anderen Marketing-Seiten kopiert (R-BRAND-002). Keine externen Schriften:
   Source Sans Pro greift, wenn sie installiert ist, sonst die Systemschrift.
   ========================================================================== */

:root {
  --akzent: #1971c2;            /* $accent-color */
  --akzent-dunkel: #005cbf;     /* $login-hover-background-color */
  --akzent-hell: #DCEBFF;       /* $button-hover-color */
  --navy: #14253A;              /* $brand-navy */
  --text: #45474b;              /* $very-dark-color */
  --text-leise: #61686c;        /* $primary-color */
  --grau-mittel: #868B8E;       /* $medium-dark-color */
  --grund: #f5f5f5;             /* $primary-background-color */
  --flaeche: #FFFFFF;           /* $primary-light-color */
  --linie: #e9e9e9;             /* $border-color */
  --markierung: yellow;         /* $highlighting-background-color */
  --schatten: 0 1px 2px 0 rgba(0, 0, 0, 0.14); /* $default-shadow */
  --fokus: 0 0 0 0.2rem rgba(25, 113, 194, 0.25);

  --schrift: 'Source Sans Pro', 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, 'DejaVu Sans Mono', monospace;
  --zeile: 72ch;
  --kopfhoehe: 3.75rem;
}

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

html { scroll-padding-top: calc(var(--kopfhoehe) + 1rem); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 1.0625rem/1.6 var(--schrift);
}

a { color: var(--akzent); text-underline-offset: 0.15em; }
a:hover { color: var(--akzent-dunkel); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

img { max-width: 100%; height: auto; }
img.gespiegelt { transform: scaleX(-1); }

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

.sprung {
  position: absolute; left: 1rem; top: -3rem; z-index: 20;
  background: var(--navy); color: #fff; padding: 0.5rem 0.75rem; border-radius: 4px;
}
.sprung:focus { top: 0.5rem; color: #fff; }

/* ---------------------------------------------------------------- Kopf */

.kopf {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  min-height: var(--kopfhoehe);
  padding: 0.5rem clamp(1rem, 3vw, 2rem);
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
  box-shadow: var(--schatten);
}
.kopf__marke {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: 1.1rem;
}
.kopf__marke img { display: block; }
.kopf__marke span { padding-left: 0.6rem; border-left: 1px solid var(--linie); }
.kopf__suche { display: flex; margin-left: auto; flex: 0 1 22rem; min-width: 0; }
.kopf__suche input {
  flex: 1; min-width: 0;
  font: inherit; color: inherit;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--linie); border-right: 0; border-radius: 4px 0 0 4px;
  background: var(--flaeche);
}
.kopf__suche input:focus { outline: none; border-color: var(--akzent); box-shadow: var(--fokus); }
.kopf__suche button {
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 0.4rem 0.9rem;
  color: #fff; background: var(--akzent);
  border: 1px solid var(--akzent); border-radius: 0 4px 4px 0;
}
.kopf__suche button:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); }

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

.rahmen {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  grid-template-areas: "nav haupt";
  gap: 2rem;
  max-width: 88rem;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 3rem;
}
.rahmen--toc {
  grid-template-columns: 15rem minmax(0, 1fr) 14rem;
  grid-template-areas: "nav haupt toc";
}
.nav { grid-area: nav; }
.toc { grid-area: toc; }
.haupt { grid-area: haupt; min-width: 0; }

.nav > details, .toc > details {
  position: sticky; top: calc(var(--kopfhoehe) + 1rem);
  max-height: calc(100vh - var(--kopfhoehe) - 2rem); overflow: auto;
}
.nav summary, .toc summary {
  cursor: pointer; font-weight: 600; color: var(--navy);
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.25rem 0;
}
.nav ul, .toc ol { list-style: none; margin: 0; padding: 0; }
.nav a, .toc a {
  display: block; padding: 0.3rem 0.6rem; border-radius: 4px;
  color: var(--text); text-decoration: none; line-height: 1.35;
}
.nav a:hover, .toc a:hover { background: var(--akzent-hell); color: var(--navy); }
.nav a[aria-current="page"] { background: var(--akzent-hell); color: var(--akzent-dunkel); font-weight: 600; }
.nav__gruppe > span {
  display: block; margin: 0.9rem 0 0.2rem; padding: 0 0.6rem;
  font-size: 0.8rem; font-weight: 600; color: var(--grau-mittel);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.toc { font-size: 0.93rem; }
.toc__e3 a { padding-left: 1.4rem; font-size: 0.88rem; color: var(--text-leise); }

@media (max-width: 72rem) {
  .rahmen--toc { grid-template-columns: 14rem minmax(0, 1fr); grid-template-areas: "nav toc" "nav haupt"; }
  .toc > details { position: static; max-height: none; }
}
@media (max-width: 52rem) {
  .rahmen, .rahmen--toc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "nav" "toc" "haupt"; gap: 1rem; }
  .nav > details, .toc > details {
    position: static; max-height: none;
    background: var(--flaeche); border: 1px solid var(--linie); border-radius: 6px; padding: 0.4rem 0.8rem;
  }
  .kopf__suche { flex-basis: 100%; margin-left: 0; }
}

/* ---------------------------------------------------------------- Artikel */

.artikel {
  max-width: calc(var(--zeile) + 4rem);
  background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: 6px;
  padding: clamp(1rem, 4vw, 2.5rem);
}
.artikel > * { max-width: var(--zeile); }
.artikel > .tabelle, .artikel > figure, .artikel > .kacheln, .artikel > .suche { max-width: none; }

h1, h2, h3, h4, h5, h6 { color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin: 0 0 1rem; font-weight: 700; }
h2 { font-size: 1.5rem; margin: 2.2rem 0 0.8rem; padding-top: 1.2rem; border-top: 1px solid var(--linie); font-weight: 600; }
h1 + h2, h1 + * + h2 { border-top: 0; padding-top: 0; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 0.5rem; font-weight: 600; }
h4, h5, h6 { font-size: 1.05rem; margin: 1.2rem 0 0.4rem; }
p, ul, ol, blockquote, figure, .tabelle, .kopieren, pre { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li + li { margin-top: 0.25rem; }
hr { border: 0; border-top: 1px solid var(--linie); margin: 2rem 0; }
blockquote {
  margin-left: 0; padding: 0.6rem 1rem;
  border-left: 4px solid var(--akzent); background: var(--grund); color: var(--text-leise);
}
blockquote > :last-child { margin-bottom: 0; }
mark { background: var(--markierung); color: inherit; }
kbd {
  font: 0.85em var(--mono); padding: 0.1em 0.4em;
  border: 1px solid var(--linie); border-bottom-width: 2px; border-radius: 3px; background: var(--grund);
}
code { font: 0.9em var(--mono); background: var(--grund); padding: 0.1em 0.3em; border-radius: 3px; }
pre { overflow-x: auto; background: var(--grund); padding: 0.8rem 1rem; border-radius: 4px; }
pre code { padding: 0; background: none; }

.tabelle { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabelle table { border-collapse: collapse; min-width: 100%; font-size: 0.95rem; }
.tabelle th, .tabelle td { border: 1px solid var(--linie); padding: 0.45rem 0.7rem; text-align: left; vertical-align: top; }
.tabelle th { background: var(--grund); color: var(--navy); }
.tabelle td img { vertical-align: middle; }

details { margin: 0 0 0.8rem; border: 1px solid var(--linie); border-radius: 6px; background: var(--flaeche); }
details > summary { cursor: pointer; padding: 0.7rem 1rem; font-weight: 600; color: var(--navy); }
details[open] > summary { border-bottom: 1px solid var(--linie); }
details > :not(summary) { margin-left: 1rem; margin-right: 1rem; }
details > :not(summary):first-of-type { margin-top: 0.8rem; }
.nav details, .toc details { border: 0; background: none; margin: 0; }
.nav details > *, .toc details > * { margin: 0; }
.nav details[open] > summary, .toc details[open] > summary { border-bottom: 0; }

.kopieren {
  display: flex; align-items: stretch; max-width: 40rem;
  border: 1px solid var(--linie); border-radius: 4px; background: var(--grund);
}
.kopieren code { flex: 1; padding: 0.5rem 0.8rem; background: none; overflow-x: auto; white-space: pre; }
.kopieren__knopf {
  font: inherit; font-size: 0.9rem; cursor: pointer;
  border: 0; border-left: 1px solid var(--linie); border-radius: 0 4px 4px 0;
  background: var(--flaeche); color: var(--akzent); padding: 0 0.9rem;
}
.kopieren__knopf:hover { background: var(--akzent-hell); }

.bild { margin-left: 0; margin-right: 0; }
.bild__lupe { display: inline-block; cursor: zoom-in; }
.bild img { display: block; border: 1px solid var(--linie); border-radius: 4px; }

.lupe {
  border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh;
}
.lupe::backdrop { background: rgba(10, 24, 40, 0.85); }
.lupe img { display: block; max-width: 96vw; max-height: 92vh; width: auto; height: auto; cursor: zoom-out; }
.lupe button {
  position: fixed; top: 0.75rem; right: 0.75rem;
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--flaeche); color: var(--navy); border: 0; border-radius: 4px; padding: 0.4rem 0.8rem;
}

.video { margin-left: 0; margin-right: 0; max-width: 48rem; }
.video__vorschau, .video iframe {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 6px; overflow: hidden; background: var(--navy); border: 0;
}
.video__vorschau img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video__knopf {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--akzent); color: #fff; font-weight: 600;
  padding: 0.6rem 1.2rem 0.6rem 2.4rem; border-radius: 999px;
}
.video__knopf::before {
  content: ""; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  border-style: solid; border-width: 0.45rem 0 0.45rem 0.75rem; border-color: transparent transparent transparent #fff;
}
.video__vorschau:hover .video__knopf { background: var(--akzent-dunkel); }
.video figcaption { font-size: 0.85rem; color: var(--text-leise); margin-top: 0.4rem; }

/* ---------------------------------------------------------------- Startseite */

.kacheln {
  list-style: none; padding: 0; margin: 0 0 2rem;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.kachel {
  position: relative; margin: 0;
  display: flex; flex-direction: column;
  border: 1px solid var(--linie); border-radius: 6px; padding: 1rem 1.1rem;
  background: var(--flaeche);
}
.kachel:hover { border-color: var(--akzent); box-shadow: var(--schatten); }
.kachel h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.kachel h3 a { color: var(--navy); text-decoration: none; }
.kachel h3 a::after { content: ""; position: absolute; inset: 0; }
.kachel p { margin: 0 0 0.6rem; font-size: 0.93rem; color: var(--text-leise); flex: 1; }
.kachel__mehr { font-size: 0.9rem; font-weight: 600; }

/* ---------------------------------------------------------------- Suche */

/* searchit-Web-Widget (E9): bringt Filter und Vorschaubilder mit und braucht die volle Breite. */
.artikel--breit { max-width: none; }
.suche { margin-bottom: 1.5rem; }
.suche searchit-page { display: block; min-height: 12rem; }
.suche__hinweis { color: var(--text-leise); }

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

.fuss {
  padding: 1.5rem clamp(1rem, 3vw, 2rem); text-align: center;
  font-size: 0.9rem; color: var(--text-leise);
  border-top: 1px solid var(--linie); background: var(--flaeche);
}
.fuss p { margin: 0; }

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

@media print {
  .kopf, .nav, .toc, .fuss, .sprung, .kopieren__knopf, .video__knopf { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .rahmen, .rahmen--toc { display: block; padding: 0; max-width: none; }
  .artikel { border: 0; padding: 0; max-width: none; }
  details { border: 0; }
  details > :not(summary) { display: block; }
  a { color: inherit; }
  .artikel a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  figure, .tabelle, h2, h3 { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
