/* Shared Herr Faul frame; keep each learning app's styles isolated. */
:root {
  --hf-frame-height: 64px;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
}
body { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.hf-learning-frame {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--hf-frame-height);
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
}
.hf-learning-frame-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1440px;
  height: 100%;
  margin: auto;
  padding: 0 24px;
}
.hf-learning-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.hf-learning-brand img { width: 36px; height: 36px; }
.hf-learning-links { display: flex; align-items: center; gap: 10px; }
.hf-learning-frame a { color: #0f172a; }
.hf-learning-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 650; text-decoration: none; }
.hf-learning-links a:last-child { background: #fef3c7; }
.hf-learning-frame a:hover { color: #1d4ed8; }
.hf-learning-frame a:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.hf-learning-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; padding: 20px; font-size: 13px; border-top: 1px solid #e2e8f0; background: #fff; }
.hf-learning-footer a { color: #475569; }
.hf-zahlenreise .shell { min-height: calc(100vh - var(--hf-frame-height)); }
.hf-zahlenreise .sidebar { top: var(--hf-frame-height); height: calc(100vh - var(--hf-frame-height)); }
.hf-gemeinde > header { top: var(--hf-frame-height); }
@media (max-width: 800px) {
  :root { --hf-frame-height: 72px; }
  .hf-learning-frame-inner { padding: 0 12px; gap: 8px; }
  .hf-learning-brand { font-size: 16px; gap: 6px; }
  .hf-learning-brand img { width: 30px; height: 30px; }
  .hf-learning-links { gap: 2px; }
  .hf-learning-links a { font-size: 12px; padding: 8px; }
  .hf-zahlenreise .sidebar { top: auto; height: auto; }
}
@media (max-width: 520px) {
  .hf-gemeinde .top { flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
  .hf-gemeinde .top .brand { flex-basis: 100%; }
  .hf-gemeinde .top .brand small { font-size: 10px; letter-spacing: 1px; }
  .hf-gemeinde .top .progress { display: flex; align-items: center; gap: 12px; width: 100%; }
  .hf-gemeinde .top .progress .track { flex: 1; margin: 0; }
}
@media print {
  .hf-learning-frame, .hf-learning-footer { display: none !important; }
  .hf-gemeinde > header { top: 0; }
}
