/* ==========================================================
   BEITRÄGE & SEITEN (single.php / page.php)
   ========================================================== */

.npuot-single-main,
.npuot-page-main {
	width: min(var(--section-width, 1320px), calc(100% - 3rem));
	margin-inline: auto;
	padding-block: clamp(2rem, 4vw, 3.5rem) clamp(4rem, 6vw, 6rem);
}

/* ==========================================================
   Inhalt + Sidebar (nur single.php)
   ========================================================== */

.npuot-single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: start;
}

.npuot-single-layout__media {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.npuot-single-figure {
	margin: 0 0 1.5rem;
}

.npuot-single-figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 1.5rem;
}

.npuot-single-figure figcaption {
	margin-top: 0.6rem;
	color: var(--wp--preset--color--dark-blue);
	font-size: 0.85rem;
	line-height: 1.5;
	opacity: 0.85;
}

.npuot-single-figure figcaption .npuot-single-figure__source {
	display: block;
	margin-top: 0.15rem;
	font-weight: 700;
	opacity: 0.7;
}

.npuot-single-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.npuot-sidebar-box {
	padding: 1.5rem;
	background: color-mix(in srgb, var(--wp--preset--color--green) 6%, white);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--dark-blue) 12%, white);
	border-radius: 1rem;
}

.npuot-sidebar-box__title {
	margin: 0 0 1rem;
	color: var(--wp--preset--color--dark-blue);
	font-size: 1.05rem;
	font-weight: 700;
}

@media (max-width: 1000px) {

	.npuot-single-layout {
		grid-template-columns: 1fr;
	}

}

/* ==========================================================
   Breadcrumb
   ========================================================== */

.npuot-breadcrumb {
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.npuot-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--wp--preset--color--dark-blue);
	font-size: 0.875rem;
}

.npuot-breadcrumb li:not(:last-child)::after {
	content: "\203A";
	margin-left: 0.4rem;
	opacity: 0.6;
}

.npuot-breadcrumb a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.npuot-breadcrumb a:hover {
	text-decoration-thickness: 2px;
}

.npuot-breadcrumb [aria-current="page"] {
	font-weight: 700;
}

/* ==========================================================
   Bild (page.php, volle Breite)
   ========================================================== */

.npuot-page-image {
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
	border-radius: 1.5rem;
	overflow: hidden;
}

.npuot-page-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* ==========================================================
   Kopfbereich / Titel
   ========================================================== */

.npuot-single-header,
.npuot-page-header {
	max-width: 860px;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.npuot-single-meta {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--dark-blue);
	font-size: 0.9rem;
	opacity: 0.8;
}

.npuot-single-category {
	padding: 0.2rem 0.75rem;
	color: var(--wp--preset--color--white);
	font-weight: 700;
	background: var(--wp--preset--color--green);
	border-radius: 999px;
}

.npuot-single-title,
.npuot-page-title {
	margin: 0;
	color: var(--wp--preset--color--dark-blue);
	font-size: clamp(2rem, 3.4vw, 3.2rem);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

/* ==========================================================
   Inhalt (Fließtext)
   ========================================================== */

.npuot-single-content,
.npuot-page-content {
	max-width: 75ch;
	color: var(--wp--preset--color--black);
	font-size: 1.05rem;
	line-height: 1.7;
	font-weight: 300;
}

.npuot-single-content>*:first-child,
.npuot-page-content>*:first-child {
	margin-top: 0;
}

.npuot-single-content p,
.npuot-page-content p {
	margin: 0 0 1.25rem;
}

.npuot-single-content h2,
.npuot-page-content h2 {
	margin: 2.25rem 0 1rem;
	color: var(--wp--preset--color--dark-blue);
	font-size: clamp(1.4rem, 2vw, 1.75rem);
	line-height: 1.2;
	font-weight: 700;
}

.npuot-single-content h3,
.npuot-page-content h3 {
	margin: 1.75rem 0 0.75rem;
	color: var(--wp--preset--color--dark-blue);
	font-size: 1.25rem;
	line-height: 1.25;
	font-weight: 700;
}

.npuot-single-content ul,
.npuot-page-content ul {
	margin: 0 0 1.25rem;
	padding-left: 1.4em;
}

.npuot-single-content li,
.npuot-page-content li {
	margin-bottom: 0.4em;
}

.npuot-single-content img {
	max-width: 100%;
	height: auto;
	border-radius: 1rem;
}

/* Klassische WordPress-Ausrichtungsklassen für Bilder im WYSIWYG-Content */
.alignleft {
  float: left;
  margin: 0.25rem 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.25rem 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  float: none;
  margin-left: auto;
  margin-right: auto;
}

.alignnone {
  float: none;
}

.npuot-single-content::after,
.npuot-page-content::after {
  content: "";
  display: table;
  clear: both;
}

.npuot-single-content a,
.npuot-page-content a {
	color: var(--wp--preset--color--blue);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.npuot-single-content a:hover,
.npuot-page-content a:hover {
	text-decoration-thickness: 2px;
}

.npuot-single-content a:focus-visible,
.npuot-page-content a:focus-visible {
	outline: 3px solid var(--wp--preset--color--dark-blue);
	outline-offset: 3px;
}

/* ==========================================================
   Archiv-Seiten
   ========================================================== */

.npuot-archive-main {
	width: min(var(--section-width, 1320px), calc(100% - 3rem));
	margin-inline: auto;
	padding-block: clamp(2rem, 4vw, 3.5rem) clamp(4rem, 6vw, 6rem);
}

.npuot-archive-header {
	max-width: 860px;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.npuot-archive-title {
	margin: 0 0 0.75rem;
	color: var(--wp--preset--color--dark-blue);
	font-size: clamp(2rem, 3.4vw, 3.2rem);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.npuot-archive-description {
	color: var(--wp--preset--color--dark-blue);
	font-size: 1.05rem;
	line-height: 1.6;
	font-weight: 300;
}

.npuot-zeitraum-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.npuot-zeitraum-filter__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1.25rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--dark-blue) 20%, white);
	color: var(--wp--preset--color--dark-blue);
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
}

.npuot-zeitraum-filter__link:hover {
	background: color-mix(in srgb, var(--wp--preset--color--green) 12%, white);
}

.npuot-zeitraum-filter__link.is-active {
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--dark-blue);
	border-color: var(--wp--preset--color--dark-blue);
}

.npuot-zeitraum-filter__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--dark-blue);
	outline-offset: 2px;
}

.npuot-archive-grid {
	margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

/*
 * Einheitliche Kartentitel-Größe für alle Kontexte außerhalb
 * der Startseite (dort greift bereits die spezifischere Regel
 * ".home-section .news-card h3" aus home.css). Deckt sowohl
 * h2 (Archiv-Grid, direkt unter h1) als auch h3 (Ähnliche
 * Beiträge, unter eigener h2-Abschnittsüberschrift) ab.
 */
.npuot-archive-main .news-card h2,
.npuot-archive-main .news-card h3,
.npuot-related-posts .news-card h2,
.npuot-related-posts .news-card h3 {
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--dark-blue);
	font-size: 1.35rem;
	line-height: 1.25;
	font-weight: 700;
}

.npuot-archive-main .news-card__excerpt,
.npuot-related-posts .news-card__excerpt {
	color: var(--wp--preset--color--dark-blue);
	font-size: 0.95rem;
	line-height: 1.55;
	font-weight: 300;
}

.npuot-archive-empty {
	color: var(--wp--preset--color--dark-blue);
	font-size: 1.05rem;
}

.npuot-archive-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.npuot-archive-pagination a,
.npuot-archive-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.75rem;
	color: var(--wp--preset--color--dark-blue);
	font-weight: 700;
	text-decoration: none;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--dark-blue) 20%, white);
	border-radius: 0.5rem;
}

.npuot-archive-pagination a:hover {
	background: color-mix(in srgb, var(--wp--preset--color--green) 12%, white);
}

.npuot-archive-pagination .current {
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--dark-blue);
	border-color: var(--wp--preset--color--dark-blue);
}

.npuot-archive-pagination a:focus-visible {
	outline: 3px solid var(--wp--preset--color--dark-blue);
	outline-offset: 2px;
}

.npuot-related-posts {
	margin-top: clamp(3rem, 5vw, 5rem);
	padding-top: clamp(2rem, 4vw, 3rem);
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--dark-blue) 15%, white);
}

.npuot-related-posts h2 {
	margin: 0 0 clamp(1.5rem, 3vw, 2rem);
	color: var(--wp--preset--color--dark-blue);
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	font-weight: 700;
}

/* ==========================================================
   Smartphone
   ========================================================== */

@media (max-width: 700px) {

	.npuot-single-content,
	.npuot-page-content {
		font-size: 1rem;
	}

}


/* ==========================================================
   Formulare (WPForms) an Design angleichen
   ========================================================== */

.wpforms-container .wpforms-submit {
	background: var(--wp--preset--color--primary) !important;
	border-radius: 999px !important;
	padding: 0.85rem 2rem !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	border: none !important;
}

.wpforms-container .wpforms-submit:hover {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 85%, black) !important;
}

.wpforms-container .wpforms-submit:focus-visible {
	outline: 3px solid var(--wp--preset--color--dark-blue);
	outline-offset: 2px;
}

.wpforms-container .wpforms-field-textarea {
	max-width: 60%;
}

/* ==========================================================
   Standard-Seitentemplates: Layout-Varianten
   ========================================================== */

.npuot-page-layout {
	display: grid;
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: start;
}

.npuot-page-layout--2col {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.npuot-page-layout--33-66 {
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

@media (max-width: 1000px) {

	.npuot-page-layout {
		grid-template-columns: 1fr;
	}

}

.npuot-page-content+.npuot-page-content,
.npuot-page-content+.npuot-page-layout,
.npuot-page-layout+.npuot-page-content,
.npuot-page-layout+.npuot-page-layout {
	margin-top: clamp(2rem, 4vw, 3.5rem);
}

.npuot-page-content {
	overflow-wrap: break-word;
	word-break: break-word;
}
.npuot-page-content--full {
	max-width: none;
}

.npuot-mediathek-card__video {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: #000;
}
.npuot-page-main .news-card h2,
.npuot-page-main .news-card h3 {
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--dark-blue);
	font-size: 1.35rem;
	line-height: 1.25;
	font-weight: 700;
}