/*
 * AK Archiv – geteilter Bildschirm
 * Maße in vh wie im Theme „templatekoch“. GT America ist im Theme als „normal“ deklariert
 * (die Datei ist bereits Bold), daher überall font-weight: normal.
 */

@font-face {
	font-family: "AKA Garamond Italic";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "AKA Garamond Italic";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/eb-garamond-latin-ext-400-italic.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.aka {
	--aka-stage: 50%;
	--aka-anchor: calc(2.9vh + 3.4vh * 1.1 + 4.3vh); /* Oberkante der Kategoriezeile: dort beginnen Zitate und Titel rechts */
	--aka-indent: 8%; /* linker Rand: Kante von Name, Kategorie und Text */
	--aka-gap: calc(2.5vh * 1.3 * 3 * 1.3); /* Abstand zwischen Einträgen: drei Textzeilen plus 30 % */
	--aka-link: #808080; /* Links: grau wie die Sprachwahl im Menü */
	--aka-top: var(--wp-admin--admin-bar--height, 0px);
	--aka-fade: 600ms;
	--aka-ink: #000;
	--aka-dim: #8e8e89;
	--aka-dark: #161615;
	--aka-dark-ink: #f4f3ef;
	--aka-light: #ecebe6;
	--aka-light-ink: #161615;
	--aka-sans: "GT America", sans-serif;
	--aka-serif: "EB Garamond", serif;
	--aka-italic: "AKA Garamond Italic", "EB Garamond", serif;

	clear: both;
	position: relative;
	display: grid;
	/* Die Kopfzeile (Name und Kategorie) ersetzt den Kopf des Themes; die Seite beginnt oben. */
	margin-top: 0;
	grid-template-columns: var(--aka-indent) minmax(0, 1fr) var(--aka-stage);
	width: 100%;
	color: var(--aka-ink);
}

.aka *,
.aka *::before,
.aka *::after {
	box-sizing: border-box;
}

/* ---------- Bühne (rechts, fixiert) ---------- */

.aka-stage {
	grid-column: 3;
	grid-row: 1;
	position: sticky;
	top: var(--aka-top); /* bleibt unter der Werkzeugleiste, wenn angemeldet */
	height: calc(100vh - var(--aka-top));
	height: calc(100svh - var(--aka-top));
	overflow: hidden;
	background: var(--aka-dark);
}

.aka-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--aka-fade) ease, visibility 0s linear var(--aka-fade);
}

.aka-slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity var(--aka-fade) ease, visibility 0s linear 0s;
	z-index: 1;
}

.aka-slide > img,
.aka-media > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aka-fit--contain .aka-slide,
.aka-fit--contain .aka-media {
	background: var(--aka-light);
}

.aka-fit--contain .aka-slide > img {
	object-fit: contain;
	padding: 10vh 8%;
}

.aka-fit--contain .aka-media > img {
	object-fit: contain;
	padding: 6%;
}

.aka-caption {
	position: absolute;
	left: 2.2vh;
	bottom: 2.2vh;
	max-width: calc(100% - 4.4vh);
	margin: 0;
	padding: 0.35vh 0.8vh 0.45vh;
	background: rgba(0, 0, 0, 0.32);
	color: #fff;
	font-family: var(--aka-serif, "EB Garamond", serif);
	font-style: normal;
	font-weight: 400;
	font-size: 1.65vh;
	line-height: 1.3;
	letter-spacing: 0.01em;
}

.aka-fit--contain .aka-caption {
	display: none;
}

/* ---------- Bildfolge ---------- */

.aka-show {
	position: absolute;
	inset: 0;
	cursor: pointer;
}

.aka-show-item {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity var(--aka-fade) ease;
}

.aka-show-item.is-current {
	opacity: 1;
}

.aka-show-item > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aka-fit--contain .aka-show-item {
	background: var(--aka-light);
}

.aka-fit--contain .aka-slide .aka-show-item > img {
	object-fit: contain;
	padding: 10vh 8%;
}

.aka-fit--contain .aka-media .aka-show-item > img {
	object-fit: contain;
	padding: 6%;
}

.aka-show-count {
	position: absolute;
	right: 2.2vh;
	bottom: 2.2vh;
	z-index: 1;
	padding: 0.35vh 0.8vh 0.45vh;
	background: rgba(0, 0, 0, 0.32);
	color: #fff;
	font-family: var(--aka-serif, "EB Garamond", serif);
	font-style: normal;
	font-weight: 400;
	font-size: 1.65vh;
	line-height: 1.3;
	letter-spacing: 0.01em;
}

.aka-caption {
	z-index: 1;
}

/* ---------- Felder ohne Bild ---------- */

/* Zitate und Titel stehen oben, auf Höhe der Kategorie; darunter bleibt Raum für Player, gleich ob vorhanden. */
.aka-field {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 4vh;
	width: 100%;
	height: 100%;
	padding: var(--aka-anchor) 9% 7vh;
}

.aka-tone--dark {
	background: var(--aka-dark);
	color: var(--aka-dark-ink);
}

.aka-tone--light {
	background: var(--aka-light);
	color: var(--aka-light-ink);
}

.aka-field-label {
	font-family: var(--aka-sans);
	font-weight: normal;
	font-size: 1.5vh;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.aka-field-text {
	margin: 0;
}

/* Optischer Ausgleich: Versalhöhe der ersten Zeile genau auf der Versalhöhe der Kategorie. */
.aka-field--quote {
	padding-top: calc(var(--aka-anchor) - 0.48vh);
}

.aka-field--title {
	padding-top: calc(var(--aka-anchor) - 0.14vh);
}

.aka-field--quote .aka-field-text {
	font-family: var(--aka-italic);
	font-style: italic;
	font-size: 5vh;
	line-height: 1.12;
}

.aka-field--partner .aka-field-text {
	font-family: var(--aka-sans);
	font-weight: normal;
	font-size: 6vh;
	line-height: 1.02;
}

.aka-field--title .aka-field-text {
	font-family: var(--aka-sans);
	font-weight: normal;
	font-size: 5vh;
	line-height: 1.05;
}

/* ---------- Abspielen ---------- */

.aka-play {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.aka-play-icon {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 11vh;
	height: 11vh;
	margin: -5.5vh 0 0 -5.5vh;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	transition: transform 200ms ease;
}

.aka-play-icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	margin: -1.9vh 0 0 -1.1vh;
	border-style: solid;
	border-width: 1.9vh 0 1.9vh 3.2vh;
	border-color: transparent transparent transparent #000;
}

.aka-play:hover .aka-play-icon {
	transform: scale(1.06);
}

.aka-frame {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

/* ---------- Liste (links, scrollt) ---------- */

.aka-list {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	padding: 0 4vw 0 0;
}

/* Die leere .category-Hülle des Themes (mit 15vh Innenabstand) nicht anzeigen. */
.category:has(+ .aka) {
	display: none;
}

/* ---------- Kopfzeile: Name und Kategorie, bleibt oben stehen ---------- */


.aka-head {
	position: sticky;
	top: var(--aka-top);
	z-index: 3;
	margin: 0;
	padding: 2.9vh 0 2.5vh; /* oben wie der Name im Menü (1em = 2.9vh über der Namensliste) */
	background: #fff;
}

.aka .aka-head-line {
	margin: 0;
	padding: 0;
	font-family: var(--aka-sans);
	font-weight: normal;
	font-size: 3.4vh; /* wie die Beitragstitel */
	line-height: 1.1;
	color: var(--aka-ink);
}

.aka .aka-head a {
	color: inherit;
	text-decoration: none;
}


.aka-intro-text {
	font-family: var(--aka-serif);
	font-size: 2.5vh;
	line-height: 1.3;
}

.aka-intro-text p {
	margin: 0 0 1.3vh;
}

.aka-item {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 0;
	color: var(--aka-dim);
	transition: color 300ms ease;
	/* Sprungziel (Rückweg aus dem Beitrag) landet unter der Kopfzeile. */
	scroll-margin-top: calc(var(--aka-top) + 15vh);
}

/* Gleicher Abstand zwischen allen Einträgen. */
.aka-item + .aka-item {
	margin-top: var(--aka-gap);
}

.aka-item.is-active {
	color: var(--aka-ink);
}

.aka-item a {
	color: inherit;
}

.aka-media {
	display: none;
}

.aka-body > * {
	margin: 0;
}

.aka-body > * + * {
	margin-top: 1.4vh;
}

.aka-anlass {
	font-family: var(--aka-sans);
	font-weight: normal;
	font-size: 6vh;
	line-height: 1;
	letter-spacing: -0.01em;
}

.aka-body > .aka-anlass + * {
	margin-top: 3vh;
}

.aka-meta {
	font-family: var(--aka-sans);
	font-weight: normal;
	font-size: 2.2vh;
	line-height: 1.2;
}

.aka .aka-title {
	font-family: var(--aka-sans);
	font-weight: normal;
	font-size: 3.4vh;
	line-height: 1.1;
}

.aka-excerpt {
	font-family: var(--aka-serif);
	font-size: 2.5vh;
	line-height: 1.3;
}

.aka-excerpt p {
	margin: 0 0 1.2vh;
}

.aka-excerpt p:last-child {
	margin-bottom: 0;
}

/* Vollständiger Text im Archiv (Projekte, Konversationen, Vorträge, Bücher) */

.aka-content {
	font-family: var(--aka-serif);
	font-size: 2.5vh;
	line-height: 1.3;
}

.aka-content > :first-child {
	margin-top: 0;
}

.aka-content p,
.aka-content ul,
.aka-content ol,
.aka-content blockquote {
	margin: 0 0 1.3vh;
}

.aka-content h2,
.aka-content h3,
.aka-content h4 {
	margin: 2.5vh 0 1.3vh;
	font-family: var(--aka-serif);
	font-weight: normal;
	font-size: 2.5vh;
	line-height: 1.3;
}

.aka-content ul,
.aka-content ol {
	float: none;
	width: auto;
	padding-left: 1.2em;
	list-style: disc;
}

.aka-content li {
	float: none;
	width: auto;
	font-family: var(--aka-serif);
	font-size: inherit;
	line-height: inherit;
}

.aka-content a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.aka-content iframe,
.aka-content video,
.aka-content audio {
	display: block;
	max-width: 100%;
	margin: 2vh 0;
}

.aka-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1vh 2.4vh;
	font-family: var(--aka-sans);
	font-weight: normal;
	font-size: 1.8vh;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.aka-readmore,
.aka-video-btn {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.aka-video-btn {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	cursor: pointer;
}

.aka a:focus-visible,
.aka button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.aka-end {
	height: 50vh; /* damit auch der letzte Eintrag die Bildschirmmitte erreicht */
}

.aka--single .aka-end {
	height: 15vh;
}

.aka--single .aka-item--single {
	padding-top: 3vh;
}

/* ---------- Seite (Mentoring) ---------- */

.aka--page .aka-list {
	padding-bottom: 12vh;
}

.aka-page-content {
	font-family: var(--aka-serif);
	font-size: 2.5vh;
	line-height: 1.3;
}

.aka-page-content img {
	max-width: 100%;
	height: auto;
}

/* ---------- Handy und Hochformat: Bild über jedem Eintrag ---------- */

@media (max-width: 900px), (orientation: portrait) {
	.aka {
		display: block;
	}

	.aka-stage {
		display: none;
	}

	.aka-list {
		width: 100%;
		padding: 0 5% 0 var(--aka-indent);
	}

	.aka-item {
		color: var(--aka-ink);
	}

	.aka-media {
		position: relative;
		display: block;
		aspect-ratio: 4 / 3;
		margin: 0 0 2.4vh;
		overflow: hidden;
		background: var(--aka-dark);
	}

	.aka-fit--contain .aka-media {
		aspect-ratio: 1 / 1;
	}

	.aka-media .aka-field {
		padding: 3vh 6%;
		gap: 2vh;
	}

	.aka-media .aka-field--quote .aka-field-text {
		font-size: 3.4vh;
	}

	.aka-media .aka-field--partner .aka-field-text,
	.aka-media .aka-field--title .aka-field-text {
		font-size: 3.6vh;
	}

	.aka-anlass {
		font-size: 4.4vh;
	}

	.aka-end {
		display: none;
	}

	.aka--page .aka-media {
		aspect-ratio: auto;
		background: none;
	}

	.aka--page .aka-media > img {
		height: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aka-slide,
	.aka-slide.is-active,
	.aka-item {
		transition: none;
	}
}

.aka-slide { cursor: pointer; }
.aka--page .aka-slide { cursor: default; }

/* ---------- Kopf des Themes: Name steht fest oben, beim Darüberfahren erscheint das Menü ---------- */

.home:has(~ .aka) {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	z-index: 50;
	width: max-content;
	max-width: 40vw;
	/* 1em = Abstand über dem Namen (margin der Liste), dazu eine Zeile Name plus Raum für Unterlängen */
	height: calc(1em + 3.4vh * 1.1 + 0.6vh);
	padding-left: 8vw;
	padding-right: 2vw;
	background: transparent;
}

.home:has(~ .aka):hover {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	/* Das Menü steht immer ganz im Fenster, auch bei niedrigen Fenstern. */
	height: auto;
	min-height: 85vh;
	max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
	overflow-y: auto;
	padding-bottom: 4vh;
	background-color: #d7d5c6;
}

/* Name und Kategorie stehen sichtbar im selben Block: gleicher Abstand und kein Anschnitt in jedem Browser.
   Der Name des Themes darüber bleibt unsichtbar als Auslöser für das Menü und erscheint erst beim Darüberfahren. */
.home:has(~ .aka):not(:hover) > ul:first-child a {
	color: transparent;
}

/* Abstand Name – Kategorie: derselbe wie Name – erster Menüpunkt im Menü
   (dort: unterer Rand der Namensliste 1em = 2.9vh plus 1.4vh über dem Menü). */
.aka .aka-head-line + .aka-head-line {
	margin-top: 4.3vh;
}

.home:has(~ .aka) #menu-neu {
	margin-top: 1.4vh;
}

/* „Nach oben / Back to top“ entfällt. */
a[href="#top"] {
	display: none !important;
}

/* ---------- Links: grau statt unterstrichen, beim Darüberfahren schwarz ---------- */

.aka a,
.aka .aka-item a,
.aka .aka-content a,
.aka .aka-head a.aka-head-cat,
.aka .aka-readmore,
.aka .aka-video-btn {
	color: var(--aka-link);
	text-decoration: none;
	transition: color 200ms ease;
}

.aka a:hover,
.aka .aka-item a:hover,
.aka .aka-content a:hover,
.aka .aka-head a.aka-head-cat:hover,
.aka .aka-video-btn:hover {
	color: var(--aka-ink);
	text-decoration: none;
}

/* Titel und Bilder bleiben, wie sie sind. */
.aka .aka-item .aka-title a,
.aka .aka-media-link {
	color: inherit;
}

/* ---------- Bild über dem Eintrag (Handy) ---------- */

.aka-media-link {
	display: block;
	width: 100%;
	height: 100%;
}

.aka-media-link > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aka-fit--contain .aka-media-link > img {
	object-fit: contain;
	padding: 6%;
}

/* ---------- Große Ansicht: Symbol oben rechts am Bild ---------- */

.aka-zoom {
	position: absolute;
	top: 2.2vh;
	right: 2.2vh;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.4vh;
	height: 4.4vh;
	min-width: 32px;
	min-height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	cursor: pointer;
	transition: background 200ms ease;
}

.aka-stage > .aka-zoom {
	top: 2.2vh;
}

.aka-zoom:hover {
	background: rgba(0, 0, 0, 0.85);
}

.aka-zoom[hidden] {
	display: none;
}

.aka-zoom svg {
	width: 60%;
	height: 60%;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- Große Ansicht: Karussell im ganzen Fenster ---------- */

html.aka-lb-on {
	overflow: hidden;
}

.aka-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	background: #000;
	color: #fff;
}

.aka-lb.is-open {
	display: block;
}

.aka-lb-frame {
	position: absolute;
	inset: 0; /* Bild füllt das Fenster: hoch an oben und unten, quer an die Seiten */
	display: flex;
	align-items: center;
	justify-content: center;
}

.aka-lb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.aka-lb-video {
	display: block;
	width: 100%;
	max-width: calc(100vh * 16 / 9);
	aspect-ratio: 16 / 9;
	border: 0;
	background: #000;
}

.aka-lb-btn {
	position: absolute;
	z-index: 1;
	filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.6));
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	opacity: 0.8;
	cursor: pointer;
	transition: opacity 200ms ease;
}

.aka-lb-btn:hover,
.aka-lb-btn:focus-visible {
	opacity: 1;
}

.aka-lb-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.aka-lb-btn svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.aka-lb-close {
	top: 2.5vh;
	right: 2.5vh;
	width: 6vh;
	height: 6vh;
	min-width: 40px;
	min-height: 40px;
	opacity: 1;
}

.aka-lb-prev,
.aka-lb-next {
	top: 50%;
	display: none;
	width: 5vh;
	height: 9vh;
	min-width: 32px;
	min-height: 56px;
	transform: translateY(-50%);
}

.aka-lb.is-multi .aka-lb-prev,
.aka-lb.is-multi .aka-lb-next {
	display: flex;
}

.aka-lb-prev {
	left: 1.5vw;
}

.aka-lb-next {
	right: 1.5vw;
}

.aka-lb-count {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2.5vh;
	margin: 0;
	text-align: center;
	font-family: "GT America", sans-serif;
	font-weight: normal;
	font-size: 1.8vh;
	line-height: 1;
	text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

@media (max-width: 900px), (orientation: portrait) {
	.aka-lb-frame {
		inset: 0;
	}
}

/* ---------- Player (Podcasts, Audio) rechts im Feld ---------- */

.aka-players--stage {
	position: absolute;
	left: 2.2vh;
	right: 2.2vh;
	bottom: 2.2vh;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 1.2vh;
}

.aka-player iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 0;
}

/* Kompakte Spotify-Player auf der Bühne: kleines Cover, eine Zeile Titel. */
.aka-players--stage iframe[data-src*="open.spotify.com"],
.aka-players--stage iframe[src*="open.spotify.com"] {
	height: 152px;
}

.aka-player audio,
.aka-player .wp-audio-shortcode {
	display: block;
	width: 100% !important;
}

.aka-slide:has(.aka-players--stage) .aka-caption {
	display: none;
}

.aka-players--inline {
	display: none;
}

/* ---------- Seiten in Blöcken (Vita u. a.) ---------- */

.aka--page .aka-content > :last-child {
	margin-bottom: 0;
}

@media (max-width: 900px), (orientation: portrait) {
	.aka-players--inline {
		display: flex;
		flex-direction: column;
		gap: 1.5vh;
		margin-top: 2.4vh;
	}

	.aka-media--page {
		margin-top: 1vh;
	}

	.home:has(~ .aka) {
		max-width: 80vw;
	}
}

/* ---------- Symbole: feine schwarze Linien, alle gleich groß ---------- */
/* Ein heller Hauch um die Linie hält sie auch auf dunklen Bildern und auf Schwarz lesbar. */

.aka-zoom,
.aka-zoom:hover,
.aka-lb-btn {
	width: 3.2vh;
	height: 3.2vh;
	min-width: 24px;
	min-height: 24px;
	background: none;
	color: #000;
	opacity: 1;
	filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.95));
}

.aka-zoom svg,
.aka-lb-btn svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.aka-lb-btn:hover,
.aka-zoom:hover {
	opacity: 0.6;
}

/* Schließen sitzt genau dort, wo das Öffnen-Symbol am Bild sitzt. */
.aka-lb-close {
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 2.2vh);
	right: 2.2vh;
}

/* Vollansicht: Symbole in derselben Form, Größe und Lage, auf Schwarz als feine weiße Linien, ohne Schein und Rahmen. */
.aka-lb:focus {
	outline: none;
}

.aka-lb-btn,
.aka-lb-btn:hover {
	color: #fff;
	filter: none;
}

.aka-lb-btn:focus,
.aka-lb-btn:focus-visible {
	outline: none;
}

.aka-lb-btn:focus-visible {
	opacity: 0.6;
}

/* Öffnen und Schließen: gleich groß (20 % größer), schwarze Linie mit hauchdünner grauer Kontur. */
.aka-zoom,
.aka-zoom:hover,
.aka-lb-close,
.aka-lb-close:hover {
	width: 3.84vh;
	height: 3.84vh;
	min-width: 29px;
	min-height: 29px;
	color: #000;
	filter: drop-shadow(0.5px 0 0 #8e8e8e) drop-shadow(-0.5px 0 0 #8e8e8e) drop-shadow(0 0.5px 0 #8e8e8e) drop-shadow(0 -0.5px 0 #8e8e8e);
}

/* ---------- Pfeile der Bildfolge und einheitliche Symbole ---------- */
/* Alle Symbole: feine schwarze Linie mit grauer Kontur, damit sie auf Hell wie auf Schwarz sichtbar bleiben. */

.aka-show-nav {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 200ms ease;
}

.aka-show-prev {
	left: 2.2vh;
}

.aka-show-next {
	right: 2.2vh;
}

.aka-show-nav svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.aka-zoom,
.aka-zoom:hover,
.aka-show-nav,
.aka-show-nav:hover,
.aka-lb-btn,
.aka-lb-btn:hover {
	width: 3.84vh;
	height: 3.84vh;
	min-width: 29px;
	min-height: 29px;
	color: #000;
	filter: drop-shadow(0.6px 0 0 #a6a6a6) drop-shadow(-0.6px 0 0 #a6a6a6) drop-shadow(0 0.6px 0 #a6a6a6) drop-shadow(0 -0.6px 0 #a6a6a6);
}

.aka-zoom:hover,
.aka-show-nav:hover,
.aka-lb-btn:hover {
	opacity: 0.6;
}

/* Symbole auf dunklen und unruhigen Bildern: hellgraue Kontur und ein leichter heller Schimmer. */
.aka-zoom,
.aka-zoom:hover,
.aka-show-nav,
.aka-show-nav:hover,
.aka-lb-btn,
.aka-lb-btn:hover {
	filter:
		drop-shadow(0.8px 0 0 #c4c4c4)
		drop-shadow(-0.8px 0 0 #c4c4c4)
		drop-shadow(0 0.8px 0 #c4c4c4)
		drop-shadow(0 -0.8px 0 #c4c4c4)
		drop-shadow(0 0 2.5px rgba(255, 255, 255, 0.6));
}

/* ---------- Aufgeklappter Text ---------- */

.aka-more > :first-child {
	margin-top: 0;
}

.aka-item.is-loading .aka-readmore {
	opacity: 0.5;
}

.aka .aka-less {
	margin-top: 2.5vh;
	font-family: var(--aka-serif);
	font-size: 2.5vh;
	line-height: 1.3;
}

/* Suche im Menü entfällt. */
.ak-search {
	display: none !important;
}

/* Symbole kehren sich automatisch zum Hintergrund um: auf Hell schwarz, auf Dunkel weiß. */
.aka-zoom,
.aka-zoom:hover,
.aka-show-nav,
.aka-show-nav:hover,
.aka-lb-btn,
.aka-lb-btn:hover {
	color: #fff;
	filter: none;
	mix-blend-mode: difference;
}

.aka-zoom svg,
.aka-show-nav svg,
.aka-lb-btn svg {
	stroke-width: 1.5;
}

/* ---------- Rückweg aus aufgeklappten Texten ---------- */
/* Die Kategorie in der Kopfzeile bleibt schwarz. Ist ein Text aufgeklappt, wird sie beim Darüberfahren grau und führt zurück; sonst ist sie kein Link. */

.aka .aka-head a.aka-head-back {
	color: var(--aka-ink);
}

.aka.aka--reading .aka-head a.aka-head-back:hover {
	color: var(--aka-link);
}

.aka:not(.aka--reading) .aka-head a.aka-head-back {
	cursor: default;
	pointer-events: none;
}

/* ---------- Eingefügte Formatierung neutralisieren ---------- */
/* Aus Word u. a. mitkopierte Inline-Stile (Schrift, Größe, Farbe, Laufweite) im Fließtext ignorieren. */

.aka-content :is([style*="font-family"], [style*="font-size"], [style*="color"], [style*="letter-spacing"], font):not(sup):not(sub) {
	font-family: inherit !important;
	font-size: inherit !important;
	color: inherit !important;
	letter-spacing: inherit !important;
}
/* ---------- Vita: Porträt immer ganz, nie beschnitten ---------- */

@media (max-width: 900px), (orientation: portrait) {
	.aka--page.aka-fit--contain .aka-media > img {
		padding: 0;
	}
}

/* ---------- Handy: Bilder von Rand zu Rand ---------- */
/* Der Text bleibt an der Menükante (8 % Einzug), die Bilder reichen über die ganze Breite. */

@media (max-width: 900px), (orientation: portrait) {
	.aka .aka-media {
		width: 100vw;
		max-width: none;
		margin-left: -8vw; /* = --aka-indent */
	}

	/* Kopfzeile: weißer Grund ebenfalls von Rand zu Rand, über Bildern und Pfeilen. */
	.aka .aka-head {
		z-index: 6;
		margin-left: -8vw;
		margin-right: -5vw;
		padding-left: 8vw;
		padding-right: 5vw;
	}
}
