.ng-ag-area {
	width: 100%;
	float: none;
}

.ng-ag {
	--ag-rot: var(--ng-rot, #bf1600);
	--ag-rot-dunkel: var(--ng-rot-dunkel, #8f1000);
	--ag-tinte: var(--ng-tinte, #23221f);
	--ag-text: var(--ng-text, #45433e);
	--ag-papier: var(--ng-papier, #f6f2eb);
	--ag-linie: var(--ng-linie, #d9d3c7);
	max-width: 45rem;
	margin: 0 auto;
	padding: 1.5rem var(--ng-rand, 1.25rem) 4rem;
	box-sizing: border-box;
}

.ng-ag-liste-seite {
	max-width: var(--ng-breite, 72rem);
	padding-top: var(--ng-abschnitt, 3.25rem);
}

.ng-ag p {
	margin-bottom: 0.75rem;
}

.ng-ag-zurueck {
	font-weight: 600;
}

.ng-ag-zurueck a::before {
	content: "← ";
}

.ng-ag-foto {
	margin: 0 0 1.25rem;
}

.ng-ag-foto img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 42vh;
	object-fit: cover;
}

.ng-ag .ng-ag-kicker {
	margin-bottom: 0.25rem;
	color: var(--ag-rot);
	font-size: 1rem;
	font-weight: 600;
}

.ng-ag-titel {
	margin-bottom: 1rem;
}

.ng-ag-intro {
	max-width: 42rem;
	color: var(--ag-tinte);
	font-size: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
	line-height: 1.5;
}

.ng-ag audio {
	width: 100%;
}

/* Bedienelemente */
.ng-ag-player {
	padding: 1.25rem;
	background: var(--ag-papier);
}

.ng-ag-steuerung {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.75rem 1.25rem;
	align-items: center;
}

.ng-ag-steuerung[hidden],
.ng-ag-leiste[hidden],
.ng-ag [hidden] {
	display: none;
}

.ng-ag-play,
.ng-ag-eintrag-play,
.ng-ag-sprung,
.ng-ag-alle {
	border: 0;
	cursor: pointer;
	font: inherit;
	line-height: 1;
}

.ng-ag-play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.5rem;
	height: 4.5rem;
	padding: 0;
	border-radius: 50%;
	background: var(--ag-rot);
	color: #fff;
}

.ng-ag-play:hover,
.ng-ag-play:focus,
.ng-ag-eintrag-play:hover,
.ng-ag-eintrag-play:focus,
.ng-ag-alle:hover,
.ng-ag-alle:focus {
	background: var(--ag-rot-dunkel);
	color: #fff;
}

.ng-ag-play svg {
	width: 2.25rem;
	height: 2.25rem;
	fill: currentColor;
}

.ng-ag-icon-pause,
.ist-aktiv .ng-ag-icon-play {
	display: none;
}

.ist-aktiv .ng-ag-icon-pause {
	display: block;
}

.ng-ag-zeitleiste {
	min-width: 0;
}

.ng-ag input[type="range"] {
	display: block;
	width: 100%;
	height: 2rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	accent-color: var(--ag-rot);
	cursor: pointer;
}

.ng-ag .ng-ag-zeit {
	margin: 0;
	color: var(--ag-text);
	font-size: 1rem;
	font-variant-numeric: tabular-nums;
}

.ng-ag-spruenge {
	display: flex;
	grid-column: 1 / -1;
	gap: 0.75rem;
}

.ng-ag-sprung {
	display: inline-flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.5rem 1rem;
	border: 1px solid var(--ag-text);
	background: #fff;
	color: var(--ag-tinte);
	font-weight: 600;
}

.ng-ag-sprung:hover,
.ng-ag-sprung:focus {
	background: var(--ag-tinte);
	color: #fff;
}

.ng-ag-sprung svg {
	width: 1.5rem;
	height: 1.5rem;
	fill: currentColor;
}

.ng-ag button:focus-visible,
.ng-ag summary:focus-visible,
.ng-ag input:focus-visible {
	outline: 3px solid var(--ag-tinte);
	outline-offset: 2px;
}

.ng-ag .ng-ag-hinweis {
	margin: 0.75rem 0 0;
	font-size: 1rem;
}

/* Mitlesen */
.ng-ag-transkript {
	margin-top: 1.5rem;
	border-top: 1px solid var(--ag-linie);
	border-bottom: 1px solid var(--ag-linie);
}

.ng-ag-transkript summary {
	padding: 1rem 0;
	color: var(--ag-tinte);
	font-weight: 600;
	cursor: pointer;
}

.ng-ag-transkript-text {
	padding-bottom: 0.75rem;
}

/* Blättern */
.ng-ag-blaettern {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.5rem;
}

.ng-ag-blatt {
	display: block;
	padding: 1rem;
	background: var(--ag-papier);
	color: var(--ag-tinte);
	text-decoration: none;
}

.ng-ag-blatt:hover {
	color: var(--ag-rot);
	text-decoration: underline;
}

.ng-ag-blatt-vor {
	grid-column: 2;
	text-align: right;
}

.ng-ag-blatt-label,
.ng-ag-blatt-titel {
	display: block;
}

.ng-ag-blatt-label {
	font-size: 1rem;
}

.ng-ag-blatt-titel {
	font-weight: 600;
}

/* Übersicht */
.ng-ag-kopf {
	margin-bottom: 2.5rem;
}

.ng-ag-alle {
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	margin-top: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: 2px;
	background: var(--ag-rot);
	color: #fff;
	font-weight: 600;
}

.ng-ag-liste {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ng-ag-eintrag {
	display: grid;
	grid-template-columns: 10rem minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: center;
	margin: 0;
	padding-right: 1rem;
	background: var(--ag-papier);
	border-left: 4px solid transparent;
}

.ng-ag-eintrag.ist-aktuell {
	border-left-color: var(--ag-rot);
}

.ng-ag-eintrag img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.ng-ag-eintrag-text {
	min-width: 0;
	padding: 0.75rem 0;
}

.ng-ag .ng-ag-eintrag-titel {
	margin: 0 0 0.25rem;
	font-size: 1.25rem;
	font-weight: 600;
}

.ng-ag-eintrag-titel a {
	color: var(--ag-tinte);
}

.ng-ag-eintrag-titel a:hover {
	color: var(--ag-rot);
}

.ng-ag .ng-ag-eintrag-dauer {
	margin: 0;
	font-size: 1rem;
}

.ng-ag-eintrag-play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	padding: 0;
	border-radius: 50%;
	background: var(--ag-rot);
	color: #fff;
}

.ng-ag-eintrag-play svg {
	width: 1.75rem;
	height: 1.75rem;
	fill: currentColor;
}

/* Abspielleiste der Übersicht */
.ng-ag-leiste {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 50;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: center;
	padding: 0.75rem var(--ng-rand, 1.25rem) calc(0.75rem + env(safe-area-inset-bottom));
	border-top: 3px solid var(--ag-rot);
	background: #fff;
	box-shadow: 0 -4px 20px rgba(35, 34, 31, 0.15);
}

.ng-ag-leiste audio {
	display: none;
}

.ng-ag-play-klein {
	width: 3.5rem;
	height: 3.5rem;
}

.ng-ag-play-klein svg {
	width: 1.75rem;
	height: 1.75rem;
}

.ng-ag .ng-ag-leiste-titel {
	margin: 0;
	overflow: hidden;
	color: var(--ag-tinte);
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ng-ag-leiste-nav {
	display: flex;
	gap: 0.5rem;
}

.ng-ag-leiste-nav .ng-ag-sprung {
	flex: none;
	width: 3rem;
	padding: 0;
}

body.ng-ag-leiste-offen {
	padding-bottom: 6rem;
}

@media (max-width: 1024px) {
	.ng-ag-liste {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.ng-ag-eintrag {
		grid-template-columns: 6rem minmax(0, 1fr) auto;
		gap: 0.75rem;
		padding-right: 0.75rem;
	}

	.ng-ag .ng-ag-eintrag-titel {
		font-size: 1.125rem;
	}

	.ng-ag-blatt-titel {
		overflow-wrap: anywhere;
	}

	.ng-ag-leiste {
		gap: 0.75rem;
	}

	.ng-ag-leiste-nav .ng-ag-sprung {
		width: 2.75rem;
	}

	.ng-ag-player {
		padding: 1rem;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.ng-ag-play,
	.ng-ag-eintrag-play {
		transition: background-color 0.15s ease;
	}
}
