/* Gemeinsame Kopfzeile für Reihe und Artikel; bündig mit dem Seiteninhalt. */
.mast{width:min(1144px,calc(100% - 56px));max-width:none;min-height:72px;margin:auto;display:flex;align-items:center;gap:20px;flex-wrap:nowrap;padding:14px 0;border-bottom:1px solid var(--line);font-family:var(--font)}
.wrap>.mast{width:100%}
.mast .brand{display:inline-flex;align-items:center;gap:10px;margin-right:auto;min-width:0;font-size:1.4rem;line-height:1.2;font-weight:700;letter-spacing:-.025em;color:var(--ink);text-decoration:none;white-space:nowrap}
.mast .brand img{display:block;width:36px;height:36px;flex-shrink:0;background:transparent;border-radius:0}
.mast .site-nav{display:flex;align-items:center;gap:24px}
.mast .site-nav a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;font-weight:500;line-height:1.4;color:var(--muted);text-decoration:none;white-space:nowrap}
.mast .site-nav a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:5px}
.mast .terms-toggle{order:1;flex-shrink:0;margin:0}
.mast .theme-toggle{order:2;display:grid;place-items:center;flex-shrink:0;min-width:44px;width:44px;height:44px;padding:10px;margin:0;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}
.mast .theme-toggle:hover{background:var(--blue-soft);color:var(--ink)}
.mast a:focus-visible,.mast button:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
.theme-toggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .theme-sun{display:none}.theme-toggle[data-mode=dark] .theme-sun{display:block}.theme-toggle[data-mode=dark] .theme-moon{display:none}
@media(max-width:800px){
  .mast{flex-wrap:wrap;gap:0 12px;padding:12px 0 4px}
  .mast .site-nav{order:3;flex-basis:100%;justify-content:space-between;gap:8px}
  .mast .site-nav a{font-size:13px}
}
@media(max-width:600px){
  .mast{width:calc(100% - 40px);display:flex;gap:0 8px;padding:12px 0 4px}
  .mast .brand{font-size:1.2rem;gap:8px}
  .mast .theme-toggle,.mast .terms-toggle{margin:0}
}
@media(max-width:360px){.mast .brand{font-size:1.1rem;gap:6px}.mast .site-nav a{font-size:12px}}

/* Ruhige, einheitliche Fußzeile auf Übersicht und Artikel. */
footer.site-foot{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;color:var(--muted);font-size:14px}
footer.site-foot nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px}
footer.site-foot a{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;color:var(--muted);font-size:14px;line-height:1.4;text-decoration:none;white-space:nowrap}
footer.site-foot a:hover{color:var(--blue);text-decoration:underline;text-underline-offset:4px}
footer.site-foot a:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
@media(max-width:600px){footer.site-foot{align-items:flex-start;flex-direction:column;gap:4px}footer.site-foot nav{gap:8px 24px}}
