/*
Theme Name:   Sebastian Reimer
Theme URI:    https://www.sebastian-reimer.de
Author:       Sebastian Reimer
Description:  Lese-Theme für die „Gedanken“ auf sebastian-reimer.de. Nachtblau und Orange aus dem SR-Logo, gut lesbare Schriften, ohne Page-Builder und ohne Verbindung zu externen Servern.
Version:      1.7.14
Requires at least: 6.4
Requires PHP: 8.0
License:      GPL-2.0-or-later
Text Domain:  sr
*/

/* ---------- Schriften (lokal eingebunden) ---------- */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/atkinson-hyperlegible-next-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: italic; font-weight: 700; font-display: swap; src: url("assets/fonts/atkinson-hyperlegible-next-latin-700-italic.woff2") format("woff2"); }
/* Lexend für Überschriften. Lexend ist breit und kräftig, daher eine Stufe leichter zugeordnet:
   CSS-Gewicht 600 und 700 nutzen den Schnitt 600, CSS-Gewicht 800 den Schnitt 700. */
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/lexend-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/lexend-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/lexend-latin-700-normal.woff2") format("woff2"); }

/* ---------- Design-Tokens: hier zentral anpassen ---------- */
:root {
	--sr-night:      #13254f;  /* Nachtblau: Kopf, Bänder, Fuß */
	--sr-night-deep: #0c1a3a;
	--sr-note:       #f7941e;  /* Orange aus dem SR-Logo: der Warmton */
	--sr-note-soft:  #fdebd5;
	--sr-paper:      #fbfcfe;  /* Lesefläche */
	--sr-surface:    #ffffff;
	--sr-ink:        #0f1b38;  /* Text */
	--sr-muted:      #55607a;
	--sr-line:       #dfe3ec;
	--sr-on-night:   #ffffff;
	--sr-on-night-2: #bcc6de;
	--sr-link:       #13254f;

	--sr-head: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sr-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;

	--sr-read: 40rem;   /* Lesebreite, ca. 65 Zeichen */
	--sr-wide: 72rem;
}
@media (prefers-color-scheme: dark) {
	:root {
		--sr-night:      #172c5e;
		--sr-night-deep: #08122a;
		--sr-note-soft:  #2b2622;
		--sr-paper:      #0b1631;
		--sr-surface:    #111f40;
		--sr-ink:        #e8ecf5;
		--sr-muted:      #a5b0c8;
		--sr-line:       #22325a;
		--sr-link:       #f9a440;
	}
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--sr-paper);
	color: var(--sr-ink);
	font-family: var(--sr-body);
	font-size: 1.1875rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--sr-head); color: inherit; }

a {
	color: var(--sr-link);
	text-decoration-line: underline;
	text-decoration-color: var(--sr-note);
	text-decoration-thickness: .16em;
	text-underline-offset: .14em;
}
a:where(:hover) { background: var(--sr-note-soft); } /* niedrige Spezifität: Buttons mit eigener Farbe bleiben beim Darüberfahren lesbar */
:focus-visible { outline: 3px solid var(--sr-link); outline-offset: 2px; }

.sr-nb { white-space: nowrap; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: .75rem; left: .75rem; z-index: 100; width: auto; height: auto; clip: auto; padding: .6rem 1rem; background: var(--sr-note); color: var(--sr-night); font-weight: 700; }

.sr-wrap { width: 100%; max-width: var(--sr-wide); margin: 0 auto; padding: 0 1.5rem; }
.sr-read { width: 100%; max-width: calc(var(--sr-read) + 3rem); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Nachtblaue Flächen: Kopf, Band, Fuß ---------- */
.sr-header, .sr-band, .sr-footer { background: var(--sr-night); color: var(--sr-on-night); }
.sr-header a, .sr-band a, .sr-footer a { color: var(--sr-on-night); }
.sr-header :focus-visible, .sr-band :focus-visible, .sr-footer :focus-visible { outline-color: var(--sr-note); }
.sr-header a:hover, .sr-band a:hover, .sr-footer a:hover { background: transparent; }

.sr-header .sr-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: 4.5rem; flex-wrap: wrap; }
.sr-brand { display: inline-flex; align-items: center; gap: .75rem; font-family: var(--sr-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; text-decoration: none; }
.sr-logo { display: block; height: 3rem; width: auto; color: var(--sr-on-night); }
.sr-mark { width: 2.4rem; height: 2.4rem; flex: 0 0 auto; transition: transform .25s ease; }
.sr-brand:hover .sr-logo, .sr-brand:hover .sr-mark { transform: none; }
@media (prefers-reduced-motion: reduce) { .sr-mark { transition: none; } }
.sr-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; flex-wrap: wrap; }
.sr-nav a { font-size: 1rem; color: var(--sr-on-night-2); text-decoration: none; padding: .25rem 0; }
.sr-nav a:hover { color: var(--sr-on-night); }

.sr-nav .current-menu-item > a, .sr-nav .current_page_parent > a, .sr-nav .current-menu-parent > a {
	color: var(--sr-on-night);
	text-decoration: underline; text-decoration-color: var(--sr-note); text-decoration-thickness: 3px; text-underline-offset: .45em;
}

.sr-band { padding: 3.5rem 0 4rem; }
.sr-band h1 { font-weight: 800; font-size: clamp(2.2rem, 5.2vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; margin: .5rem 0 1rem; max-width: 18ch; }
.sr-band p { color: var(--sr-on-night-2); margin: 0; max-width: 36rem; }
.sr-band .sr-cat { color: var(--sr-note); }
.sr-band .sr-meta { color: var(--sr-on-night-2); }


/* ---------- Der gelbe Zettel: der Gedanke in einem Satz ---------- */
.sr-note {
	position: relative; z-index: 1;
	margin: -2.5rem 0 2.75rem;
	max-width: 31rem;
	padding: 1.4rem 1.6rem 1.5rem;
	background: var(--sr-note);
	color: #0f1b38;
	font-family: var(--sr-head); font-weight: 600;
	font-size: clamp(1.2rem, 2.6vw, 1.45rem); line-height: 1.3; letter-spacing: -.01em;
	transform: rotate(-1.2deg);
	box-shadow: inset 0 12px 0 rgba(0,0,0,.035), 0 18px 28px -18px rgba(8,18,42,.55);
}
.sr-note p { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
	.sr-note { animation: sr-stick .55s cubic-bezier(.2,.8,.25,1.1) .15s both; }
	@keyframes sr-stick {
		from { opacity: 0; transform: translateY(-18px) rotate(-5deg); }
		to   { opacity: 1; transform: translateY(0) rotate(-1.2deg); }
	}
}

/* ---------- Kategorie und Metazeile ---------- */
.sr-cat { font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--sr-ink); display: inline-flex; align-items: center; gap: .5rem; }
.sr-cat::before { content: ""; width: .7rem; height: .7rem; background: var(--sr-note); transform: rotate(-6deg); flex: 0 0 auto; }
.sr-cat:hover { background: transparent; text-decoration: underline; text-decoration-color: var(--sr-note); }
.sr-meta { font-size: .95rem; color: var(--sr-muted); }

/* ---------- Listen: Gedanken, Kategorien, Suche ---------- */
.sr-main { padding-top: 1rem; padding-bottom: 4rem; }
.sr-section-title { font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; margin: 2.5rem 0 .5rem; }
.sr-list { list-style: none; margin: 0; padding: 0; }
.sr-teaser { padding: 1.75rem 0; border-bottom: 1px solid var(--sr-line); }
.sr-teaser h2 { font-weight: 700; font-size: clamp(1.45rem, 3vw, 1.85rem); line-height: 1.15; letter-spacing: -.015em; margin: .5rem 0 .6rem; }
.sr-teaser h2 a { color: var(--sr-ink); text-decoration: none; }
.sr-teaser h2 a:hover { background: transparent; text-decoration: underline; text-decoration-color: var(--sr-note); text-decoration-thickness: .12em; }
.sr-teaser p { margin: 0 0 .6rem; color: var(--sr-muted); }
.sr-more { margin: 1.5rem 0 0; font-weight: 700; }

.sr-topics { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.sr-topics a { display: inline-block; padding: .55rem 1.1rem; border: 2px solid var(--sr-ink); border-radius: 999px; color: var(--sr-ink); font-weight: 700; font-size: 1rem; text-decoration: none; }
.sr-topics a:hover { background: var(--sr-note); border-color: var(--sr-note); color: #0f1b38; }

.sr-pagination { display: flex; gap: .5rem; flex-wrap: wrap; padding-top: 2rem; }
.sr-pagination .page-numbers { padding: .35rem .8rem; border: 2px solid var(--sr-line); color: var(--sr-ink); text-decoration: none; font-weight: 700; }
.sr-pagination .current { background: var(--sr-note); border-color: var(--sr-note); color: #0f1b38; }

/* ---------- Beitrag ---------- */
.sr-article .sr-band { padding-bottom: 5rem; }
.sr-figure { margin: 0 auto 2.5rem; max-width: var(--sr-wide); padding: 0 1.5rem; }
.sr-figure img { width: 100%; display: block; }

.sr-content { padding-top: 2.5rem; padding-bottom: 3rem; }
.sr-content--after-note, .sr-figure + .sr-content { padding-top: 0; }
.sr-content > * { margin-top: 0; margin-bottom: 1.15em; }
.sr-content h2 { font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 1.85rem); line-height: 1.18; letter-spacing: -.015em; margin: 2.3em 0 .6em; }
.sr-content h3 { font-weight: 700; font-size: 1.3rem; line-height: 1.25; margin: 2em 0 .5em; }
.sr-content strong { font-weight: 700; }
.sr-content ul, .sr-content ol { padding-left: 1.3em; }
.sr-content li + li { margin-top: .4em; }
.sr-content ul li::marker { color: var(--sr-muted); }
.sr-content blockquote { margin: 2em 0; padding: .1em 0 .1em 1.25rem; border-left: 6px solid var(--sr-note); font-size: 1.25rem; }
.sr-content blockquote p { margin: 0 0 .5em; }
.sr-content blockquote cite { font-size: .95rem; color: var(--sr-muted); font-style: normal; }
.sr-content .wp-block-pullquote { border: 0; padding: 1em 0; text-align: left; }
.sr-content .wp-block-pullquote blockquote { border: 0; padding: 0; font-family: var(--sr-head); font-weight: 700; font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.2; letter-spacing: -.015em; }
.sr-content hr { border: 0; height: 6px; width: 3rem; background: var(--sr-note); margin: 3em 0; }
.sr-content code { font-size: .9em; background: var(--sr-note-soft); padding: .1em .35em; }
.sr-content mark { background: var(--sr-note); color: #0f1b38; padding: 0 .15em; }
.sr-content figure { margin: 2em 0; }
/* :where() hält die Regel schwach, damit Polaroid-Beschriftungen der Plugins ihre eigene Farbe behalten. */
.sr-content :where(figcaption) { font-size: .9rem; color: var(--sr-muted); margin-top: .5rem; }
.sr-content .alignwide { margin-left: calc(50% - min(36rem, 50vw) + 1.5rem); margin-right: calc(50% - min(36rem, 50vw) + 1.5rem); }

/* Hervorgehobener Kasten (Gruppe mit der CSS-Klasse "sr-box"), z. B. für einen Check */
.sr-content .sr-box { background: var(--sr-note-soft); border-left: 6px solid var(--sr-note); padding: 1.25rem 1.5rem; }
.sr-content .sr-box > :last-child { margin-bottom: 0; }

/* Beitragsende */
.sr-article-foot { border-top: 1px solid var(--sr-line); padding: 2rem 0 3rem; }
.sr-author strong { display: block; color: var(--sr-ink); font-family: var(--sr-head); font-weight: 700; font-size: 1.15rem; }
.sr-author { color: var(--sr-muted); font-size: 1rem; }

.sr-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: 4rem; }
.sr-postnav a { display: block; padding: 1.1rem 1.25rem; border: 2px solid var(--sr-line); color: var(--sr-ink); text-decoration: none; font-family: var(--sr-head); font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.sr-postnav a:hover { border-color: var(--sr-note); background: transparent; }
.sr-postnav small { display: block; font-family: var(--sr-body); font-weight: 400; font-size: .9rem; color: var(--sr-muted); margin-bottom: .3rem; }
.sr-postnav .next { text-align: right; grid-column: 2; }

/* ---------- Startseite 1.3: Einstieg auf dem Board ---------- */
.sr-hero { padding: 4.5rem 0 1rem; }
.sr-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem 4.5rem; align-items: center; }
.sr-hero h1 { font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 1.25rem; color: var(--sr-ink); }
.sr-hero .sr-lead { font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.55; color: var(--sr-muted); max-width: 36rem; }
.sr-hero .sr-lead p { margin: 0 0 .75em; }
.sr-hero .sr-lead > :last-child { margin-bottom: 0; }
.sr-byline { display: flex; align-items: center; gap: .9rem; margin-top: 2rem; font-size: .95rem; color: var(--sr-muted); line-height: 1.4; }
.sr-byline img { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 3px solid var(--sr-surface); box-shadow: 0 0 0 2px var(--sr-note); }
.sr-byline strong { display: block; color: var(--sr-ink); font-family: var(--sr-head); font-weight: 700; font-size: 1.05rem; }

.sr-bignote { display: block; position: relative; padding: 1.75rem 1.9rem 1.6rem; background: var(--sr-note); color: #0f1b38; text-decoration: none; transform: rotate(1.6deg); box-shadow: inset 0 14px 0 rgba(0,0,0,.05), 0 26px 36px -26px rgba(8,18,42,.6); transition: transform .2s ease; }
.sr-bignote:hover, .sr-bignote:focus-visible { background: var(--sr-note); transform: rotate(0) translateY(-3px); }
.sr-bignote__quote { display: block; font-family: var(--sr-head); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.22; letter-spacing: -.015em; }
.sr-bignote__title { display: block; margin-top: 1.1rem; font-weight: 700; font-size: 1rem; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.sr-bignote__meta { display: block; margin-top: .35rem; font-size: .875rem; color: #0f1b38; }
@media (prefers-reduced-motion: no-preference) {
	.sr-bignote { animation: sr-stick-big .6s cubic-bezier(.2,.8,.25,1.1) .2s both; }
	@keyframes sr-stick-big { from { opacity: 0; transform: translateY(-20px) rotate(7deg); } to { opacity: 1; transform: translateY(0) rotate(1.6deg); } }
}
@media (prefers-reduced-motion: reduce) { .sr-bignote { transition: none; } }
.sr-bignote--empty, .sr-bignote--empty:hover { background: transparent; color: var(--sr-muted); border: 2px dashed var(--sr-line); box-shadow: none; transform: rotate(1.6deg); }
@media (max-width: 860px) { .sr-hero__grid { grid-template-columns: minmax(0, 1fr); } .sr-bignote { max-width: 30rem; } }

/* Startseite: eine durchgehende Board-Fläche */
.sr-front { background-image: radial-gradient(var(--sr-line) 1.2px, transparent 1.2px); background-size: 24px 24px; }
.sr-front .sr-board { background: none; padding-top: 3.5rem; }

/* ---------- Gedanken-Board ---------- */
.sr-board { padding: 3.75rem 0 4.5rem; background-image: radial-gradient(var(--sr-line) 1.2px, transparent 1.2px); background-size: 24px 24px; }
.sr-board__head { margin-bottom: 2rem; max-width: 40rem; }
.sr-board__head h2 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .5rem; }
.sr-board__head p { margin: 0; color: var(--sr-muted); }
.sr-board__cols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.sr-board__col { border-top: 5px solid var(--sr-night); padding-top: .9rem; display: flex; flex-direction: column; gap: 1rem; }
.sr-board__colhead { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin: 0; font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.sr-board__colhead a { color: var(--sr-ink); text-decoration: none; }
.sr-board__colhead a:hover { background: transparent; text-decoration: underline; text-decoration-color: var(--sr-note); }
.sr-board__count { flex: 0 0 auto; min-width: 1.7rem; padding: .1rem .45rem; background: var(--sr-night); color: #fff; font-family: var(--sr-head); font-size: .85rem; font-weight: 700; text-align: center; }
.sr-board__notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.sr-board__note a { display: block; padding: 1rem 1.1rem 1.15rem; background: var(--sr-surface); color: var(--sr-ink); text-decoration: none; box-shadow: 0 1px 0 rgba(8,18,42,.06), 0 12px 20px -16px rgba(8,18,42,.55); transform: rotate(-.8deg); transition: transform .18s ease; }
.sr-board__note:nth-child(even) a { transform: rotate(.7deg); }
.sr-board__note a:hover, .sr-board__note a:focus-visible { background: var(--sr-surface); transform: rotate(0) translateY(-3px); }
.sr-board__note.is-new a, .sr-board__note.is-new a:hover { background: var(--sr-note); color: #0f1b38; }
.sr-board__title { display: block; font-family: var(--sr-head); font-weight: 700; font-size: 1.08rem; line-height: 1.25; letter-spacing: -.01em; }
.sr-board__meta { display: block; margin-top: .5rem; font-size: .85rem; color: var(--sr-muted); }
.sr-board__note.is-new .sr-board__meta { color: #0f1b38; }
.sr-board__empty { margin: 0; min-height: 6.5rem; padding: 1rem 1.1rem; border: 2px dashed var(--sr-line); color: var(--sr-muted); font-size: .95rem; line-height: 1.45; }
.sr-board__more { font-weight: 700; font-size: .95rem; }
.sr-board .sr-more { margin-top: 2.5rem; }
@media (prefers-reduced-motion: reduce) { .sr-board__note a { transition: none; } }
@media (max-width: 960px) { .sr-board__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sr-board__cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Gliederung im Beitrag ---------- */
.sr-article-body { position: relative; }
.sr-toc { width: 100%; max-width: calc(var(--sr-read) + 3rem); margin: 0 auto 2.25rem; padding: 0 1.5rem; }
.sr-toc details { border: 2px solid var(--sr-line); padding: .8rem 1rem; }
.sr-toc summary { cursor: pointer; font-weight: 700; font-size: 1rem; }
.sr-toc ol { list-style: none; counter-reset: sr-toc; margin: .9rem 0 0; padding: 0; }
.sr-toc li { counter-increment: sr-toc; }
.sr-toc a { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .65rem; align-items: start; padding: .3rem 0; color: var(--sr-muted); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.sr-toc a:hover { background: transparent; color: var(--sr-ink); }
.sr-toc a::before { content: counter(sr-toc); display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 2px solid var(--sr-line); font-size: .75rem; font-weight: 700; line-height: 1; color: var(--sr-muted); }
.sr-toc .is-read a::before { content: "✓"; background: var(--sr-note); border-color: var(--sr-note); color: #0f1b38; font-size: .9rem; }
.sr-toc .is-current a { color: var(--sr-ink); font-weight: 700; }
.sr-toc .is-current a::before { background: var(--sr-night); border-color: var(--sr-night); color: #fff; }
.sr-toc__status { margin: .8rem 0 0; font-size: .85rem; color: var(--sr-muted); }
.sr-toc__status:empty { display: none; }
@media (min-width: 1180px) {
	.sr-toc { position: absolute; top: 3.25rem; bottom: 0; left: max(1.5rem, calc(50% - var(--sr-read) / 2 - 1.5rem - 15.5rem)); width: 13.5rem; max-width: none; margin: 0; padding: 0; }
	.sr-toc__inner { position: sticky; top: 2rem; }
	.sr-toc details { border: 0; padding: 0; }
	.sr-toc summary { list-style: none; pointer-events: none; font-size: .9rem; color: var(--sr-muted); }
	.sr-toc summary::-webkit-details-marker { display: none; }
	.sr-toc a { font-size: .875rem; }
}

/* ---------- Fuß 1.2 ---------- */
.sr-footer__id { display: flex; gap: .9rem; align-items: flex-start; }
.sr-mark--small { width: 1.9rem; height: 1.9rem; }
.sr-footer__note { margin: .25rem 0 0; font-size: .875rem; color: var(--sr-on-night-2); }

@media (max-width: 600px) {
	.sr-hero { padding-top: 2.75rem; }
	.sr-bignote { margin-right: .6rem; }
	.sr-logo { height: 2.2rem; }
	.sr-board { padding: 2.75rem 0 3.25rem; }
	.sr-toc { padding: 0 1.25rem; }
}

/* ---------- Fuß ---------- */
.sr-footer { background: var(--sr-night-deep); padding: 2.25rem 0 2.75rem; font-size: .95rem; color: var(--sr-on-night-2); }
.sr-footer .sr-wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sr-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.sr-footer a { color: var(--sr-on-night-2); text-decoration: none; }
.sr-footer a:hover { color: var(--sr-on-night); }

/* ---------- Mobil ---------- */
@media (max-width: 600px) {
	body { font-size: 1.0625rem; }
	.sr-wrap, .sr-read { padding-left: 1.25rem; padding-right: 1.25rem; }
	.sr-band { padding: 2.5rem 0 3rem; }
	.sr-article .sr-band { padding-bottom: 4rem; }
	.sr-note { transform: rotate(-.8deg); margin-top: -2rem; }
	.sr-nav ul { gap: 1.25rem; }
	.sr-postnav { grid-template-columns: 1fr; }
	.sr-postnav .next { grid-column: 1; text-align: left; }
}

/* ---------- Kopf auf dem Handy und schmalen Tablets (1.7.13) ----------
 * Zwei Ebenen: oben das Logo mit Luft, darunter die Navigation als Reiterleiste
 * über die ganze Breite. Der orange Balken sitzt auf der Unterkante und markiert die aktuelle Seite.
 */
@media (max-width: 780px) {
	.sr-header .sr-wrap { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding-top: 1rem; }
	.sr-brand { align-self: flex-start; padding: .15rem 0 .95rem; }
	.sr-logo { height: 2.35rem; }
	.sr-header { border-bottom: 1px solid rgba(255, 255, 255, .06); }
	.sr-nav { margin: 0 -1.5rem; padding: 0 1.15rem; border-top: 1px solid rgba(255, 255, 255, .1); }
	.sr-nav ul { flex-wrap: nowrap; justify-content: flex-start; gap: 1.5rem; }
	.sr-nav a { position: relative; display: block; padding: .85rem .35rem .95rem; font-size: .975rem; line-height: 1.2; white-space: nowrap; }
	.sr-nav .current-menu-item > a, .sr-nav .current_page_parent > a, .sr-nav .current-menu-parent > a { text-decoration: none; font-weight: 600; }
	.sr-nav .current-menu-item > a::after, .sr-nav .current_page_parent > a::after, .sr-nav .current-menu-parent > a::after {
		content: ""; position: absolute; left: 50%; bottom: 0; width: 2.25rem; height: 3px; margin-left: -1.125rem;
		background: var(--sr-note); border-radius: 3px 3px 0 0;
	}
}
@media (max-width: 600px) {
	.sr-nav { margin: 0 -1.25rem; padding: 0 .5rem; }
	.sr-nav ul { justify-content: space-between; gap: 0; }
	.sr-nav li { flex: 1 1 auto; text-align: center; }
}
@media (max-width: 360px) {
	.sr-nav a { font-size: .9rem; padding-left: .2rem; padding-right: .2rem; }
}

/* ---------- Einleitungen auf dem Handy (1.7.14) ----------
 * Kontakt und Meine Welt: dieselbe Größe wie die Einleitung auf der Startseite.
 */
@media (max-width: 600px) {
	.sr-content p.srk-lead, .sr-content p.srwelt-lead { font-size: 1.15rem; line-height: 1.55; }
}

/* ---------- Druck ---------- */
@media print {
	.sr-header, .sr-footer, .sr-postnav { display: none; }
	.sr-band { background: none; color: #000; padding: 0 0 1rem; }
	.sr-band p, .sr-band .sr-meta { color: #333; }
	.sr-note { animation: none; transform: none; box-shadow: none; border: 2px solid #000; background: #fff; margin-top: 0; }
	body { background: #fff; color: #000; font-size: 11pt; }
}

/* ---------- Impressum und Datenschutzerklärung 1.7.2 ---------- */
.sr-legal .sr-band .sr-cat::before { background: var(--sr-note); }
.sr-legal .sr-band .sr-meta { font-size: .95rem; }
.sr-legal__text { font-size: 1.0625rem; overflow-wrap: break-word; hyphens: auto; }
.sr-legal__text > :first-child { margin-top: 0; }
.sr-legal__text h2 { font-size: clamp(1.25rem, 2.4vw, 1.45rem); margin: 2.6rem 0 .7rem; padding-top: 1.6rem; border-top: 1px solid var(--sr-line); scroll-margin-top: 1.5rem; }
.sr-legal__text > h2:first-child { padding-top: 0; border-top: 0; }
.sr-legal__text h3 { font-size: 1.12rem; margin: 1.9rem 0 .45rem; }
.sr-legal__text h4, .sr-legal__text h5 { font-size: 1rem; font-weight: 700; margin: 1.4rem 0 .35rem; }
.sr-legal__text p, .sr-legal__text li { line-height: 1.65; }
.sr-legal__text p { margin: 0 0 .85em; }
.sr-legal__text ul, .sr-legal__text ol { padding-left: 1.25rem; margin: 0 0 1em; }
.sr-legal__text a { overflow-wrap: anywhere; word-break: break-word; }
.sr-legal__text table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.sr-legal__text th, .sr-legal__text td { border: 1px solid var(--sr-line); padding: .5rem .65rem; text-align: left; vertical-align: top; }
.sr-toc--plain .is-read a::before { content: counter(sr-toc); background: transparent; border-color: var(--sr-line); color: var(--sr-muted); font-size: .75rem; }
.sr-toc--plain .is-current a::before { background: var(--sr-night); border-color: var(--sr-night); color: #fff; }
@media (prefers-color-scheme: dark) { .sr-toc--plain .is-current a::before { background: var(--sr-note); border-color: var(--sr-note); color: #0f1b38; } }
.sr-toc--plain .sr-toc__text { overflow-wrap: anywhere; hyphens: auto; min-width: 0; }
.sr-legal .sr-band h1 { overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 1179px) { .sr-legal .sr-toc { margin-top: 2rem; margin-bottom: 0; } }

/* ---------- Porträt 1.7.5 ---------- */
.sr-byline .sr-portrait { width: 4rem; height: 4rem; }
.sr-author.has-portrait { display: flex; align-items: center; gap: 1rem; }
.sr-author .sr-portrait { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 3px solid var(--sr-surface); box-shadow: 0 0 0 2px var(--sr-note); }
.sr-byline__line { display: block; text-wrap: balance; }


/* ---------- Blauer Kopf 1.7.9: niedriger, mit weichem Lichtschimmer ----------
   Oben exakt die Farbe der Navigation. Oben rechts ein großer, sanfter, etwas hellerer Bogen
   ohne Linien. Der Kopf ist ein Titelstreifen, kein Block. */
.sr-band {
	padding: 2.25rem 0 2.5rem;
	background:
		radial-gradient(55% 140% at 100% -10%, rgba(120, 152, 232, .20) 0%, rgba(120, 152, 232, .07) 45%, rgba(120, 152, 232, 0) 70%),
		var(--sr-night);
}
.sr-article .sr-band { padding-bottom: 4.5rem; }
.sr-band h1 { margin: .25rem 0 .5rem; }
.sr-band .sr-band__lead { font-size: 1.15rem; line-height: 1.5; color: var(--sr-on-night-2); margin: 0; max-width: 36rem; }
@media (max-width: 600px) {
	.sr-band { padding: 1.75rem 0 2rem; }
	.sr-article .sr-band { padding-bottom: 3.75rem; }
}
@media print { .sr-band { background: none; padding: 0 0 1rem; } }
