/* =====================================================================
   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);
}

/* Textlinks -----------------------------------------------------------
   Einheitlicher Stil für alle Textlinks der Seite: gepunktete Linie im
   Ruhezustand, durchgezogene Linie bei Hover/Fokus bzw. für die aktive
   Navigations-Seite. Beide Linien in der Link-Farbe (--accent).
   Links, die die Seite verlassen (target="_blank"), erhalten zusätzlich
   einen Pfeil nach dem Text; der Pfeil bleibt dabei immer ohne Linie,
   da er als generierter Inhalt separat text-decoration: none erhält. */
a {
    color: var(--accent);
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-style 0.12s ease;
}

a:hover,
a:focus {
    text-decoration-style: solid;
}

a[target="_blank"]::after {
    content: "\2192";
    display: inline-block;
    padding-left: 0.15em;
    font-size: 0.85em;
    transform: rotate(-45deg);
    text-decoration-line: none;
}

/* Interne Links mit fest eingebautem "→"-Zeichen im Linktext (z. B.
   Kachel-/Crosslink-Navigation): Der Pfeil steckt hier im Markup
   selbst statt in einem generierten Pseudo-Element, daher über einen
   eigenen Span von der Unterstreichung ausgenommen (display:
   inline-block wirkt wie beim generierten Pfeil oben). Der Abstand
   zum vorherigen Wort wird ausschließlich über padding-left erzeugt;
   im Markup darf davor kein Leerzeichen mehr stehen, da dieses sonst
   noch zum <a>-Text gehört und mit unterstrichen würde. */
.arrow-inline {
    display: inline-block;
    padding-left: 0.3em;
    text-decoration-line: none;
}

/* 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;
    font-size: 0.98rem;
}

.main-nav a[aria-current="page"] {
    text-decoration-style: solid;
}

/* 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);
}


/* 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;
    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;
}

/* 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; }

/* Crosslinks (Seitenende) --------------------------------------------- */

.crosslinks {
    margin: 48px 0 0;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.crosslinks h2 {
    margin: 0 0 18px;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
}

.crosslink-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.crosslink {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.12s ease;
}

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

.crosslink strong {
    color: var(--accent);
    font-size: 1rem;
}

.crosslink span {
    font-size: 0.92rem;
    color: var(--muted);
}

/* 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);
}

/* Story-Teaser (Startseite) ------------------------------------------- */

.story-teaser {
    margin: 32px 0 40px;
    padding: 28px 32px;
    max-width: none;
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
}

.story-teaser-label {
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.story-teaser-quote {
    margin: 0 0 14px;
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.story-teaser p:not(.story-teaser-label):not(.story-teaser-quote) {
    max-width: var(--text-max-width);
    color: var(--text);
}

.story-teaser-link {
    display: inline-block;
    margin-top: 4px;
    font-weight: 700;
}

/* 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; }

/* Buchtipps & Literatur ------------------------------------------------ */

.content-section h3 {
    margin: 28px 0 14px;
    font-size: 1.05rem;
    letter-spacing: -0.005em;
}

.content-section h3:first-of-type { margin-top: 8px; }

.book-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 0 8px;
}

.book {
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.book-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.book-meta {
    margin: 0 0 10px;
    font-size: 0.86rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.book-desc {
    margin: 0 0 10px;
    font-size: 0.97rem;
}

.book-link {
    margin: 0;
    font-size: 0.92rem;
}

/* 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;
}