/* ontoview 1.2.6 — erzeugt von bin/erzeugen aus gehaeuse/; nicht von Hand aendern. */
/* ontoview Kopfleiste (concepts/gehaeuse.md G38). Allein ladbar, auch fuer einen fremden Kopf mit data-kopf.
   Der Kopf liegt fest; schmal schiebt ihn nur per transform, der Inhalt behaelt die volle Hoehe. Sichtbar
   bleibt eine duenne Linie, 6 px: der eigene Grund des Kopfs und seine untere Linie. Kein Zeichen, kein
   Titel, kein Pfeil. Die Leiste ist durchsichtig, nur die Trefferflaeche der Linie. Der Knopf bleibt
   fokussierbar und traegt den Namen, sichtbar ist er nicht (wie .ov-kopf-sr). Ohne Skript bleibt der Kopf
   voll (die Leiste ist verborgen). Bewegung nur mit der Klasse ov-kopf-uebergang; bei reduziert setzt das
   Skript sie nicht. */

/* :not(:root): data-kopf auf html ist die Stufe, nicht der Kopf. */
[data-kopf]:not(:root) {
  --ov-kopf-schmal: 6px;
  position: fixed; top: 0; left: 0; right: 0; z-index: 3; overflow: visible;
}
[data-kopf]:not(:root).ov-kopf-uebergang {
  transition: transform var(--gh-takt, .42s) var(--gh-kurve, cubic-bezier(.2, .9, .25, 1));
}
[data-kopf]:not(:root).ov-kopf-ist-schmal {
  transform: translateY(calc(-100% + var(--ov-kopf-schmal, 6px)));
  pointer-events: none;
}
[data-kopf]:not(:root).ov-kopf-ist-schmal .ov-kopf-voll { visibility: hidden; }

.ov-kopf-leiste {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
  height: var(--ov-kopf-schmal, 6px); overflow: visible;
  visibility: hidden; pointer-events: none;
  background: transparent;
}
[data-kopf]:not(:root).ov-kopf-ist-schmal .ov-kopf-leiste { visibility: visible; pointer-events: auto; }

/* Nur fuer die Tastatur, wie der Sprung zum Inhalt. Der Name bleibt der Inhalt aus der schmalen Vorlage. */
.ov-kopf-auf {
  position: absolute !important; inset-inline-start: 0; top: 0;
  width: 1px; height: 1px; min-width: 0; min-height: 0;
  padding: 0; margin: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
  background: transparent;
}
.ov-kopf-zeichen {
  flex: none; color: var(--ov-akzent, currentColor);
  font: 600 1.05rem/1 var(--gh-display, Georgia, serif); letter-spacing: .02em;
}
.ov-kopf-zeichen b {
  font: 300 .78em/1 var(--gh-text, system-ui, sans-serif); font-weight: 300;
  letter-spacing: .04em; color: var(--ov-tinte, inherit); padding-left: .07em;
}
.ov-kopf-titel {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start;
}
.ov-kopf-pfeil {
  flex: none; width: 1.1rem; height: 1.1rem; margin-inline-start: auto;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.ov-kopf-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  [data-kopf]:not(:root) { transition: none; }
}
@media print {
  [data-kopf]:not(:root) { position: static; transform: none; }
  .ov-kopf-leiste { display: none !important; }
}
