/* =====================================================================
   ONLINEHILFE FORSCHUNGSDATENBANK
   Aufbau wie die itegon-Onlinehilfe: Balken oben mit Marke, Suche und
   Menue, darunter eine ruhige Textspalte.

   Farbe bewusst neutral: das Grau aus dem itegon-Logo. Jede Einrichtung
   hat in der FDB ihre eigene Hausfarbe, die Hilfe muss zu allen passen.
   Das Logo-Gruen nur als kleiner Akzent.

   Keine Webfonts von fremden Servern (Datenschutz) - Systemschriften.
   ===================================================================== */

:root {
	--grau:        #454f55;   /* Hauptfarbe, Grau aus dem itegon-Logo */
	--grau-dunkel: #2f363a;
	--gruen:       #b9dc69;   /* Akzent aus dem itegon-Logo, sparsam */
	--text:        #3b4145;
	--text-leise:  #5d666b;   /* 5,3:1 auf --hell, 5,8:1 auf Weiss */
	--hell:        #f3f4f5;
	--linie:       #dde1e3;
	--weiss:       #ffffff;

	--schrift: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--balken-hoehe: 72px;
	--spalte: 46rem;
}

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

html { scroll-padding-top: calc(var(--balken-hoehe) + 16px); }

body {
	margin: 0;
	background: var(--weiss);
	color: var(--text);
	font-family: var(--schrift);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-text-size-adjust: 100%;
}

a { color: var(--grau-dunkel); text-decoration-color: var(--gruen); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #000; }
:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }

.nur-vorlesen {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

.sprungmarke {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--grau); color: #fff; padding: 8px 14px; border-radius: 4px;
}
.sprungmarke:focus { top: 12px; }


/* ---------------------------------------------------------------------
   Balken oben
   --------------------------------------------------------------------- */
.balken {
	position: sticky; top: 0; z-index: 50;
	background: var(--weiss);
	border-bottom: 4px solid var(--grau);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.balken__innen {
	max-width: 72rem; margin: 0 auto;
	height: var(--balken-hoehe);
	padding: 0 16px;
	display: flex; align-items: center; gap: 20px;
}

.marke {
	display: flex; align-items: center; gap: 12px;
	color: var(--grau); text-decoration: none; flex-shrink: 0;
}
.marke__zeichen { width: 40px; height: 40px; }
.marke__text { display: flex; flex-direction: column; line-height: 1.15; }
.marke__produkt { font-size: 0.8rem; color: var(--text-leise); letter-spacing: 0.02em; }
.marke__titel { font-size: 1.4rem; font-weight: 700; color: var(--grau); }

.suchfeld {
	margin-left: auto;
	display: flex; align-items: stretch;
	width: min(20rem, 100%);
	border: 1px solid var(--linie); border-radius: 6px; overflow: hidden;
	background: var(--hell);
}
.suchfeld:focus-within { border-color: var(--grau); }
.suchfeld input {
	flex: 1; min-width: 0; border: 0; background: transparent;
	padding: 9px 12px; font: inherit; font-size: 0.95rem; color: var(--text);
}
.suchfeld input:focus { outline: none; }
.suchfeld button {
	border: 0; background: var(--grau); color: #fff; width: 44px; cursor: pointer;
	display: grid; place-items: center;
}
.suchfeld button svg { width: 20px; height: 20px; }
.suchfeld button:hover { background: var(--grau-dunkel); }

.menueknopf {
	display: none;
	width: 44px; height: 44px; border: 1px solid var(--linie); border-radius: 6px;
	background: var(--weiss); cursor: pointer; padding: 11px 10px;
	flex-direction: column; justify-content: space-between;
}
.menueknopf span:not(.nur-vorlesen) { display: block; height: 3px; border-radius: 2px; background: var(--grau); }


/* ---------------------------------------------------------------------
   Rahmen: Navigation links, Text rechts
   --------------------------------------------------------------------- */
.rahmen {
	max-width: 72rem; margin: 0 auto; padding: 0 16px;
	display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 48px;
}

.seitennav {
	position: sticky; top: calc(var(--balken-hoehe) + 4px);
	align-self: start;
	max-height: calc(100vh - var(--balken-hoehe) - 4px); overflow-y: auto;
	padding: 28px 0 40px;
	font-size: 0.93rem;
}
.seitennav a { display: block; text-decoration: none; color: var(--text); padding: 5px 10px; border-left: 3px solid transparent; border-radius: 0 4px 4px 0; }
.seitennav a:hover { background: var(--hell); }
.seitennav a.ist-aktiv { border-left-color: var(--gruen); background: var(--hell); color: var(--grau-dunkel); font-weight: 600; }
.seitennav__start { font-weight: 600; margin-bottom: 14px; }
/* Rubriken klappen auf und zu (details/summary). Offen ist nur die
   Rubrik der aktuellen Seite, siehe _inc/kopf.php. */
.seitennav__gruppe { margin-bottom: 4px; }
.seitennav__gruppe[open] { margin-bottom: 14px; }
.seitennav__titel {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	padding: 8px 10px; margin-bottom: 4px; cursor: pointer; list-style: none;
	font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--text-leise); border-bottom: 1px solid var(--linie);
	border-radius: 4px 4px 0 0; user-select: none;
}
.seitennav__titel::-webkit-details-marker { display: none; }
.seitennav__titel::after {
	content: ""; flex: none; width: 7px; height: 7px; margin-right: 2px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); transition: transform 0.15s ease;
}
.seitennav__gruppe[open] > .seitennav__titel { color: var(--grau-dunkel); }
.seitennav__gruppe[open] > .seitennav__titel::after { transform: rotate(-135deg) translate(-2px, 0); }
.seitennav__titel:hover { background: var(--hell); color: var(--grau-dunkel); }
.seitennav__titel:focus-visible { outline: 3px solid var(--grau); outline-offset: 1px; }
.seitennav__gruppe ul { padding-bottom: 4px; }
@media (prefers-reduced-motion: reduce) { .seitennav__titel::after { transition: none; } }
.seitennav ul { list-style: none; margin: 0; padding: 0; }


/* ---------------------------------------------------------------------
   Textspalte
   --------------------------------------------------------------------- */
.inhalt { max-width: var(--spalte); padding: 32px 0 64px; min-width: 0; }

.kicker {
	margin: 0 0 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
	text-transform: uppercase; color: var(--text-leise);
}

h1, h2, h3 { hyphens: auto; overflow-wrap: break-word; }
h1 {
	margin: 0; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.2;
	color: var(--grau); font-weight: 700;
}
.unterzeile { margin: 6px 0 28px; font-size: 1.15rem; color: var(--text-leise); }

h2 {
	margin: 2.2em 0 0.6em; font-size: 1.35rem; line-height: 1.3; color: var(--grau-dunkel);
	padding-left: 12px; border-left: 4px solid var(--gruen);
}
h2:first-of-type { margin-top: 1.2em; }
h3 { margin: 1.6em 0 0.4em; font-size: 1.1rem; color: var(--grau-dunkel); }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin-bottom: 0.45em; }
li::marker { color: var(--grau); font-weight: 700; }

.hinweis {
	margin: 1.4em 0; padding: 14px 18px;
	background: var(--hell); border-left: 4px solid var(--grau); border-radius: 0 6px 6px 0;
}
.hinweis p:last-child { margin-bottom: 0; }

.skizze { margin: 1.4em 0 1.6em; }
.skizze img {
	display: block; width: 100%; height: auto;
	padding: 18px; background: var(--weiss);
	border: 1px solid var(--linie); border-radius: 8px;
}
.skizze figcaption { margin-top: 6px; font-size: 0.82rem; color: var(--text-leise); }

/* ---------------------------------------------------------------------
   Mockups (2026-10)
   Schematische Nachbildungen der FDB-Oberflaeche in HTML statt als Bild:
   bleiben bei jedem Zoom scharf, passen sich der Breite an und brauchen
   keine Bilddateien. Die Buehne traegt role="img" und eine Beschreibung
   in aria-label, der Inhalt darin ist fuer Screenreader stumm.
   Akzentfarbe ist bewusst das neutrale Grau: Jede Einrichtung hat ihre
   eigene Farbe, die Hilfe soll zu allen passen.
   --------------------------------------------------------------------- */
.mk { margin: 1.4em 0 1.8em; }
.mk figcaption { margin-top: 6px; font-size: 0.82rem; color: var(--text-leise); }
.mk__buehne {
	--mk-akzent: var(--grau);
	padding: 18px; border: 1px solid var(--linie); border-radius: 10px;
	background: #f6f7f8; color: var(--text);
	font-size: 13px; line-height: 1.35; overflow: hidden;
	-webkit-user-select: none; user-select: none;
}
.mk__buehne * { box-sizing: border-box; }
.mk__h  { margin: 0; font-size: 17px; font-weight: 700; color: var(--grau-dunkel); }
.mk__unter { margin: 2px 0 14px; font-size: 12px; color: var(--text-leise); }
.mk__gruppe {
	margin: 16px 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
	text-transform: uppercase; color: var(--text-leise);
}
.mk__gruppe:first-child { margin-top: 0; }
.mk-leise { color: var(--text-leise); font-size: 11.5px; }
.mk-fett  { font-weight: 600; color: var(--grau-dunkel); }

/* Bausteine */
.mk-karte { background: #fff; border: 1px solid var(--linie); border-radius: 8px; padding: 12px; }
.mk-karte + .mk-karte { margin-top: 10px; }
.mk-reihe { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; }
.mk-reihe--mitte { align-items: center; }
.mk-luft { margin-top: 12px; }
.mk-rechts { margin-left: auto; }

.mk-knopf {
	display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
	padding: 5px 11px; border: 1px solid #c9cfd2; border-radius: 5px;
	background: #fff; color: var(--grau-dunkel); font-size: 12px; line-height: 1.3;
}
.mk-knopf--voll { background: var(--mk-akzent); border-color: var(--mk-akzent); color: #fff; }
.mk-knopf--klein { padding: 3px 8px; font-size: 11px; }

.mk-feld { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 120px; font-size: 11px; color: var(--text-leise); }
.mk-feld--schmal { flex: 0 1 100px; }
.mk-feld--breit  { flex: 2 1 200px; }
.mk-eingabe {
	display: flex; align-items: center; justify-content: space-between; gap: 6px;
	min-height: 30px; padding: 5px 8px; border: 1px solid #c9cfd2; border-radius: 4px;
	background: #fff; color: var(--text); font-size: 12.5px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mk-eingabe--leer { color: var(--text-leise); }
.mk-eingabe--pflicht { border-color: #b98a2e; border-left-width: 3px; }
.mk-eingabe--auswahl::after {
	content: ""; flex: none; width: 6px; height: 6px; margin-right: 2px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px); color: var(--text-leise);
}

.mk-badge {
	display: inline-block; padding: 2px 8px; border-radius: 10px; white-space: nowrap;
	background: #e9ecee; color: var(--grau-dunkel); font-size: 10.5px; font-weight: 600;
}
.mk-badge--ok   { background: #e4f1cf; color: #3a5410; }
.mk-badge--warn { background: #fcefc7; color: #6b4e00; }
.mk-badge--rot  { background: #fbe1df; color: #8a1f17; }
.mk-badge--voll { background: var(--mk-akzent); color: #fff; }

/* Zeilen einer Liste */
.mk-liste { display: flex; flex-direction: column; gap: 6px; }
.mk-zeile {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
	padding: 9px 12px; background: #fff; border: 1px solid var(--linie); border-radius: 6px;
}
.mk-zeile__haupt { flex: 1 1 180px; min-width: 0; }
.mk-zeile__haupt .mk-leise { display: block; }

/* Nummern, auf die der Text darunter verweist */
.mk-nr {
	display: inline-grid; place-items: center; flex: none;
	width: 20px; height: 20px; border-radius: 50%;
	background: var(--gruen); color: #1f2a10; font-size: 11px; font-weight: 700; line-height: 1;
}
.mk-nr--text { width: 1.35em; height: 1.35em; font-size: 0.78em; vertical-align: 0.1em; margin-right: 4px; }

/* Kacheln der Schnellwahl */
.mk-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mk-kachel {
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border: 1px solid var(--linie); border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.mk-kachel__oben > span { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.mk-kachel__oben { flex: 1; display: flex; align-items: center; gap: 9px; padding: 10px; min-height: 54px; font-size: 11px; color: var(--text-leise); }
.mk-kachel__symbol { flex: none; width: 30px; height: 30px; color: var(--grau); }
.mk-kachel__balken { padding: 6px 10px; background: var(--mk-akzent); color: #fff; font-size: 12px; font-weight: 600; }
.mk-kachel--admin { border-style: dashed; box-shadow: none; }
.mk-kachel--admin .mk-kachel__balken { background: #5f696e; }

/* Kennzahlen und Anteilsbalken */
.mk-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.mk-zahl { background: #fff; border: 1px solid var(--linie); border-radius: 8px; padding: 9px 11px; font-size: 11px; color: var(--text-leise); }
.mk-zahl b { display: block; font-size: 19px; line-height: 1.2; color: var(--grau-dunkel); }
.mk-anteile { display: flex; height: 22px; border-radius: 5px; overflow: hidden; font-size: 10.5px; font-weight: 600; }
.mk-anteile span { display: flex; align-items: center; justify-content: center; color: #fff; white-space: nowrap; overflow: hidden; }
.mk-legende { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 11px; color: var(--text-leise); }
.mk-legende i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* Kleine Tabelle */
.mk-tabelle { width: 100%; border-collapse: collapse; background: #fff; font-size: 12px; }
.mk-tabelle th, .mk-tabelle td { padding: 6px 9px; border-bottom: 1px solid var(--linie); text-align: left; }
.mk-tabelle th { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-leise); background: #fafbfb; }
.mk-tabelle td.zahl, .mk-tabelle th.zahl { text-align: right; }

/* Haken-Liste (Kennwortregeln) */
.mk-regeln { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.mk-regeln li { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; }
.mk-regeln li::before {
	content: "✓"; flex: none; display: inline-grid; place-items: center;
	width: 16px; height: 16px; border-radius: 50%; font-size: 10px; font-weight: 700;
	background: #e4f1cf; color: #3a5410;
}
.mk-regeln li.offen { color: var(--text-leise); }
.mk-regeln li.offen::before { content: "–"; background: #e9ecee; color: var(--text-leise); }

/* Tasten (Darstellung) */
.mk-taste {
	display: inline-grid; place-items: center; min-width: 34px; height: 32px; padding: 0 9px;
	background: #fff; border: 1px solid #c9cfd2; border-bottom-width: 3px; border-radius: 6px;
	font-size: 13px; font-weight: 600; color: var(--grau-dunkel);
}
.mk-plus { color: var(--text-leise); font-weight: 600; }

@media (max-width: 560px) {
	.mk__buehne { padding: 12px; font-size: 12px; }
	.mk-knopf { white-space: normal; max-width: 100%; }
	.mk-tabelle th { letter-spacing: 0; text-transform: none; font-size: 11px; hyphens: auto; overflow-wrap: anywhere; }
	.mk-tabelle th, .mk-tabelle td { padding: 5px 6px; }
	.mk-kacheln { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

code, .code {
	font-family: Consolas, "Courier New", monospace; font-size: 0.9em;
	background: var(--hell); padding: 1px 5px; border-radius: 3px;
}


/* ---------------------------------------------------------------------
   Startseite: Themenkarten
   --------------------------------------------------------------------- */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 12px; margin: 0 0 1.5em; padding: 0; list-style: none; }
.karten li { margin: 0; }
.karten a {
	display: block; height: 100%; padding: 14px 16px; text-decoration: none;
	border: 1px solid var(--linie); border-radius: 8px; background: var(--weiss);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.karten a:hover { border-color: var(--grau); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); transform: translateY(-1px); }
.karten strong { display: block; color: var(--grau-dunkel); }
.karten span { display: block; font-size: 0.9rem; color: var(--text-leise); line-height: 1.45; margin-top: 2px; }


/* ---------------------------------------------------------------------
   Sprachauswahl (Seite uebersetzen)
   --------------------------------------------------------------------- */
.sprachen { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5em; padding: 0; list-style: none; }
.sprachen li { margin: 0; }
.sprachen a {
	display: inline-block; padding: 6px 14px; border-radius: 999px; text-decoration: none;
	border: 1px solid var(--grau); color: var(--grau-dunkel); font-weight: 600; font-size: 0.92rem;
}
.sprachen a:hover { background: var(--grau); color: #fff; }
.sprachabschnitt { padding-top: 0.5em; border-top: 1px solid var(--linie); margin-top: 2.5em; }
.sprachabschnitt:first-of-type { border-top: 0; }


/* ---------------------------------------------------------------------
   Weiterfuehrende Infos, Suche, Fuss
   --------------------------------------------------------------------- */
.weiter { margin-top: 3em; padding: 18px 20px; background: var(--hell); border-radius: 8px; }
.weiter__titel { display: block; font-weight: 700; color: var(--grau-dunkel); margin-bottom: 8px; }
.weiter ul { margin: 0; padding: 0; list-style: none; }
.weiter li { margin: 0 0 6px; }
.weiter li span { color: var(--text-leise); font-size: 0.9rem; }

.treffer { list-style: none; padding: 0; }
.treffer li { padding: 14px 0; border-bottom: 1px solid var(--linie); margin: 0; }
.treffer a { font-weight: 600; font-size: 1.05rem; }
.treffer p { margin: 4px 0 0; font-size: 0.93rem; color: var(--text-leise); }
.treffer mark { background: #e6f3c8; color: inherit; padding: 0 2px; border-radius: 2px; }

.fuss { border-top: 1px solid var(--linie); background: var(--weiss); }
.fuss__innen {
	max-width: 72rem; margin: 0 auto; padding: 18px 16px;
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 0.85rem; color: var(--text-leise);
}
.fuss__hoch { margin-left: auto; }

/* "made by itegon" - dezent, wird erst beim Ueberfahren kraeftig */
.fuss__marke {
	display: inline-flex; align-items: center; gap: 8px;
	text-decoration: none; color: var(--text-leise); font-size: 0.78rem;
	transition: color 0.15s ease;
}
.fuss__marke:hover, .fuss__marke:focus-visible { color: var(--grau-dunkel); }
.fuss__marke img { display: block; width: 93px; height: auto; }


/* ---------------------------------------------------------------------
   Schmale Bildschirme: Navigation als ausklappbares Menue
   --------------------------------------------------------------------- */
@media (max-width: 900px) {
	.rahmen { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.menueknopf { display: flex; }
	.seitennav {
		display: none;
		position: fixed; top: calc(var(--balken-hoehe) + 4px); left: 0; right: 0; bottom: 0;
		max-height: none; z-index: 40; background: var(--weiss);
		padding: 16px 16px 40px; border-top: 1px solid var(--linie);
		font-size: 1rem;
	}
	.seitennav.ist-offen { display: block; }
	.seitennav a { padding: 9px 10px; }
}

@media (max-width: 560px) {
	:root { --balken-hoehe: 64px; }
	.balken__innen { gap: 10px; }
	.marke__produkt { display: none; }
	.marke__titel { font-size: 1.15rem; }
	.marke__zeichen { width: 32px; height: 32px; }
	.suchfeld input { padding: 8px; }
	.inhalt { padding-top: 22px; }
	.skizze img { padding: 8px; }
}

@media print {
	.mk, .skizze { break-inside: avoid; }
	.balken, .seitennav, .fuss, .weiter, .sprungmarke { display: none; }
	.rahmen { display: block; }
	.inhalt { max-width: none; padding: 0; }
	a { text-decoration: none; }
}

/* Schritte im Text, die auf Nummern im Mockup verweisen */
ol.mk-schritte { list-style: none; padding-left: 0; }
ol.mk-schritte li { padding-left: 0; }
