/* =====================================================================
   Gesichtsblindheit - zentrale Stile
   ===================================================================== */

:root {
    --page-width: 1100px;
    --text-max-width: 55ch;
    --text: #222;
    --muted: #666;
    --background: #f5f6f7;
    --surface: #fff;
    --border: #ddd;
    --accent: #315b7d;
    --accent-soft: #eaf1f7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    color: var(--text);
    background: var(--background);
}

a { color: inherit; }

/* Skip-Link ---------------------------------------------------------- */

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-100%);
    z-index: 1000;
    padding: 12px 20px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 0 0 6px 0;
    transition: transform 0.15s ease;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 3px solid #fff;
    outline-offset: -6px;
}

@media (prefers-reduced-motion: reduce) {
    .skip-link { transition: none; }
}

/* Kopfleiste --------------------------------------------------------- */

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.header-bar {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.site-brand:hover,
.site-brand:focus { color: var(--accent); }

.site-logo {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    color: var(--accent);
}

/* Hamburger ---------------------------------------------------------- */

.nav-toggle {
    display: none;
    margin-left: auto;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font: inherit;
    font-size: 0.95rem;
    color: inherit;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus {
    border-color: var(--accent);
    color: var(--accent);
}

.nav-toggle:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.nav-toggle-icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after  { top:  6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Hauptnavigation ---------------------------------------------------- */

.main-nav { margin-left: auto; }

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 22px;
}

.main-nav a {
    display: inline-block;
    padding: 4px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 0.98rem;
    border-bottom: 2px solid transparent;
    transition: color 0.12s ease, border-color 0.12s ease;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.main-nav a[aria-current="page"] {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Hero --------------------------------------------------------------- */

.header-hero {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 30px 24px 50px;
    text-align: center;
}

.hero-face {
    display: block;
    width: 110px;
    height: 110px;
    margin: 0 auto 24px;
    color: var(--accent);
}

.site-title {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.site-tagline {
    margin: 18px auto 0;
    max-width: 650px;
    font-size: 1.2rem;
    color: var(--muted);
}

/* Breadcrumb --------------------------------------------------------- */

.breadcrumb {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 18px 24px 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumb li + li::before {
    content: "\203A";
    margin-right: 6px;
    color: var(--border);
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus { text-decoration: underline; }

/* Seitenkopf --------------------------------------------------------- */

.page-intro {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 24px 24px 0;
}

.page-intro h1 {
    margin: 0 0 14px;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-intro .lead {
    margin: 0;
    max-width: 760px;
    font-size: 1.1rem;
    color: var(--muted);
}

/* Layout ------------------------------------------------------------- */

.layout {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 40px 24px 70px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}

.layout--single {
    grid-template-columns: 1fr;
    max-width: 820px;
}

/* Inhaltsnavigation -------------------------------------------------- */

.toc {
    position: sticky;
    top: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 22px;
}

.toc h2 {
    margin: 0 0 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 700;
}

.toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc;
}

.toc li {
    counter-increment: toc;
    margin: 0 0 8px;
}

.toc li:last-child { margin-bottom: 0; }

.toc a {
    display: block;
    padding: 4px 0 4px 26px;
    position: relative;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.35;
}

.toc a::before {
    content: counter(toc) ".";
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.toc a:hover,
.toc a:focus {
    color: var(--accent);
    text-decoration: underline;
}

/* Inhaltsabschnitte -------------------------------------------------- */

.content { min-width: 0; }

.content-section {
    max-width: var(--text-max-width);
    margin: 0 0 48px;
    scroll-margin-top: 24px;
}

.content-section:last-child { margin-bottom: 0; }

.content-section h2 {
    margin: 0 0 14px;
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.content-section p { margin: 0 0 14px; }
.content-section p:last-child { margin-bottom: 0; }

.content-section ul {
    margin: 0 0 14px;
    padding-left: 22px;
}

.content-section li { margin: 0 0 6px; }
.content-section li:last-child { margin-bottom: 0; }

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

.home {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 40px 24px 70px;
}

.introduction,
.orientation {
    max-width: var(--text-max-width);
}

.tile p {
    max-width: var(--text-max-width);
}

/* Hinweis-Kasten ----------------------------------------------------- */

.note {
    margin: 18px 0;
    padding: 16px 20px;
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    font-size: 0.97rem;
}

.note strong { display: block; margin-bottom: 4px; }
.note p { margin: 0; }

/* Footer --------------------------------------------------------------- */

.site-footer {
	margin-top: 40px;
	padding: 20px 24px;
	text-align: center;
	color: var(--muted);
	font-size: 0.85rem;
}

.footer-links {
	margin-left: 10px;
}

.footer-links a {
	margin: 0 6px;
	color: var(--muted);
	text-decoration: underline;
}

.footer-links a:hover,
.footer-links a:focus {
	color: var(--accent);
}