/* NXTL-Magazin – siehe inc/magazin.php. Farben/Schrift wie Bausteine (Kit: Primär #008FFF, Text #1B242F, Dunkel #11161D, Hell #EFF7FF). */

.nxm, .nxm-cta, .nxm-teaser, .nxm-video {
	--nxm-primary: #0068c9; /* hell: tieferes Blau statt #008fff (31.10.2026) */
	--nxm-primary-dark: #00539f;
	--nxm-text: #1b242f;
	--nxm-muted: #556e83;
	--nxm-dark: #11161d;
	--nxm-light: #eff7ff;
	--nxm-line: #e5e7eb;
}
.nxm {
	font-family: Sandbox, sandbox, sans-serif;
	color: var(--nxm-text);
	background: #fff;
	overflow-x: clip;
}
.nxm *, .nxm *::before, .nxm *::after { box-sizing: border-box; }

/* Volle Breite statt Hello-Inhaltsspalte (wie Bausteine-Seiten): Hintergründe der Abschnitte laufen bis zum Rand.
 * Hello setzt body:not([class*=elementor-page-]) .site-main { max-width: … } (Spezifität 0,2,1). */
html body .site-main.nxm {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

.nxm-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.nxm-wrap--text { max-width: 820px; }
.nxm-section { padding: 48px 0; }
.nxm-h2 { margin: 0 0 20px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.2; font-weight: 700; color: var(--nxm-text); }

/* ── Kopf ───────────────────────────────────────────────────────── */
.nxm-head { padding: 32px 0 24px; }
.nxm-head--index { background: var(--nxm-light); padding: 36px 0 28px; }
.nxm-crumbs { font-size: .85rem; color: var(--nxm-muted); margin: 0 0 18px; }
.nxm-crumbs a { color: var(--nxm-muted); text-decoration: none; }
.nxm-crumbs a:hover { color: var(--nxm-primary); text-decoration: underline; }
.nxm-eyebrow {
	display: inline-block;
	margin: 0 0 10px;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--nxm-primary);
	text-decoration: none;
}
a.nxm-eyebrow:hover { text-decoration: underline; }
.nxm-title {
	margin: 0 0 14px;
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
	line-height: 1.08;
	font-weight: 700;
	color: var(--nxm-text);
	letter-spacing: -.01em;
}
.nxm-title__page { font-size: .5em; color: var(--nxm-muted); font-weight: 500; }
.nxm-teaser { margin: 0 0 18px; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.5; color: #334155; }
.nxm-intro { max-width: 760px; font-size: 1.1rem; line-height: 1.6; color: #334155; }
.nxm-intro p { margin: 0 0 12px; }
.nxm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0; font-size: .9rem; color: var(--nxm-muted); }
.nxm-meta span + span::before { content: "·"; margin-right: 18px; margin-left: -9px; }
.nxm .nxm-share {
	margin-left: auto;
	padding: 6px 14px;
	border: 1px solid var(--nxm-line);
	border-radius: 999px;
	background: #fff;
	color: var(--nxm-text);
	font: inherit;
	font-size: .85rem;
	cursor: pointer;
}
.nxm .nxm-share:hover, .nxm .nxm-share:focus { border-color: var(--nxm-primary); color: var(--nxm-primary); background: #fff; }

/* ── Titelbild ──────────────────────────────────────────────────── */
.nxm-cover { max-width: 1120px; margin: 0 auto 8px; padding: 0 20px; }
.nxm-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; background: var(--nxm-light); }

/* ── Kampagnen-Leiste (nur bei Besuchen aus Anzeigen) ───────────── */
.nxm-kbar[hidden] { display: none; }
.nxm-kbar { margin: 16px 0 0; }
.nxm-kbar .nxm-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.nxm-kbar p { margin: 0; padding: 0; font-size: 1rem; line-height: 1.45; flex: 1 1 320px; }
.nxm-kbar .nxm-wrap { background: var(--nxm-light); border-radius: 16px; padding: 14px 20px; }

/* ── Layout mit Inhaltsverzeichnis ──────────────────────────────── */
.nxm-layout { padding-top: 28px; padding-bottom: 24px; max-width: 820px; }
.nxm-toc { margin: 0 0 24px; }
.nxm-toc details { border: 1px solid var(--nxm-line); border-radius: 14px; padding: 12px 16px; background: #fff; }
.nxm-toc summary { cursor: pointer; font-weight: 700; font-size: .95rem; }
.nxm-toc ol { margin: 10px 0 2px; padding-left: 20px; font-size: .92rem; line-height: 1.45; }
.nxm-toc li { margin: 6px 0; }
.nxm-toc a { color: var(--nxm-text); text-decoration: none; }
.nxm-toc a:hover, .nxm-toc a.is-active { color: var(--nxm-primary); }
.nxm-toc a.is-active { font-weight: 600; }

@media (min-width: 1100px) {
	.nxm-layout--toc { max-width: 1120px; display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 56px; justify-content: center; }
	.nxm-layout--toc .nxm-toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; }
	.nxm-layout--toc .nxm-toc details { border: 0; padding: 0; }
	.nxm-layout--toc .nxm-toc summary { list-style: none; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--nxm-muted); }
	.nxm-layout--toc .nxm-toc summary::-webkit-details-marker { display: none; }
	.nxm-layout--toc .nxm-toc ol { list-style: none; padding: 0; border-left: 2px solid var(--nxm-line); }
	.nxm-layout--toc .nxm-toc li { margin: 0; }
	.nxm-layout--toc .nxm-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; }
	.nxm-layout--toc .nxm-toc a.is-active { border-left-color: var(--nxm-primary); }
}

/* ── Kurzfassung ────────────────────────────────────────────────── */
.nxm-kurz { background: var(--nxm-light); border-radius: 16px; padding: 20px 24px; margin: 0 0 32px; }
.nxm-kurz__title { margin: 0 0 8px; font-weight: 700; font-size: 1.05rem; }
.nxm-kurz ul { margin: 0; padding-left: 20px; }
.nxm-kurz li { margin: 6px 0; line-height: 1.5; }

/* ── Fließtext ──────────────────────────────────────────────────── */
.nxm-prose { font-size: 1.08rem; line-height: 1.72; color: var(--nxm-text); }
.nxm-prose > * { margin-top: 0; margin-bottom: 1.15em; }
.nxm-prose h2 {
	margin: 2.1em 0 .6em;
	font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
	line-height: 1.22;
	font-weight: 700;
	color: var(--nxm-text);
	scroll-margin-top: 90px;
}
.nxm-prose h3 { margin: 1.7em 0 .5em; font-size: 1.25rem; line-height: 1.3; font-weight: 700; color: var(--nxm-text); }
.nxm-prose p { margin: 0 0 1.15em; }
.nxm-prose a { color: var(--nxm-primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.nxm-prose a:hover { color: var(--nxm-primary); }
.nxm-prose ul, .nxm-prose ol { padding-left: 1.3em; }
.nxm-prose li { margin: .35em 0; }
.nxm-prose strong { font-weight: 700; }
.nxm-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--nxm-primary); color: #334155; }
.nxm-prose figure { margin: 1.6em 0; }
.nxm-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.nxm-prose .wp-block-table { overflow-x: auto; }
.nxm-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.45; }
.nxm-prose th, .nxm-prose td { padding: 10px 12px; border-bottom: 1px solid var(--nxm-line); text-align: left; vertical-align: top; }
.nxm-prose thead th { background: var(--nxm-light); font-weight: 700; border-bottom: 2px solid #cfe3f5; }
.nxm-prose tbody tr:nth-child(even) td { background: #fafcff; }

/* ── Hinweis-Box [nxtl_cta] ─────────────────────────────────────── */
.nxm-cta {
	margin: 2.2em 0;
	padding: 26px 28px;
	border-radius: 20px;
	background: var(--nxm-dark);
	background-image: radial-gradient(120% 140% at 100% 0%, rgba(0, 143, 255, .35) 0%, rgba(0, 143, 255, 0) 55%);
	color: #fff;
	font-family: Sandbox, sandbox, sans-serif;
}
.nxm-cta p { margin: 0; color: #fff; }
.nxm-cta__eyebrow { font-size: .78rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8fcaff !important; margin-bottom: 8px !important; }
.nxm-cta__title { font-size: 1.45rem !important; line-height: 1.2 !important; font-weight: 700; margin-bottom: 8px !important; }
.nxm-cta__text { font-size: 1rem !important; line-height: 1.55 !important; color: #d6e2ee !important; margin-bottom: 14px !important; }
.nxm-cta__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.nxm-cta__facts li { margin: 0; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .85rem; line-height: 1.3; color: #fff; }
.nxm-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.nxm-cta .nxb-btn--secondary { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.nxm-cta .nxb-btn--secondary:hover, .nxm-cta .nxb-btn--secondary:focus { background: rgba(255, 255, 255, .12); color: #fff; }
/* Die Box steht im Fließtext: Link-Unterstreichung und Listen-Einzug von .nxm-prose gelten hier nicht. */
.nxm-prose .nxm-cta a, .nxm-cta a.nxb-btn { text-decoration: none; }
.nxm-prose .nxm-cta a.nxb-btn--secondary, .nxm-cta a.nxb-btn--secondary { color: #fff !important; }
.nxm-prose .nxm-cta__facts { padding: 0; }
.nxm-prose .nxm-cta__facts li { margin: 0; }
.nxm-index-cta .nxm-cta { margin: 0; }
/* Kit färbt Buchen-Buttons (.btn-buchen) per !important blau, lässt aber die Textfarbe stehen → auf dunklem Grund immer weiß. */
.nxm-cta a.btn-buchen, .nxm-kbar a.btn-buchen { color: #fff !important; }

/* ── Video [nxtl_video] ─────────────────────────────────────────── */
.nxm-video { margin: 2em 0; }
.nxm-video .nxm-video__play {
	position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 16px; overflow: hidden;
	background: var(--nxm-dark); cursor: pointer; color: #fff; font: inherit;
}
.nxm-video .nxm-video__play:hover, .nxm-video .nxm-video__play:focus { background: var(--nxm-dark); }
.nxm-video__play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: opacity .2s ease; border-radius: 0 !important; }
.nxm-video__play:hover img, .nxm-video__play:focus-visible img { opacity: .62; }
.nxm-video__icon { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--nxm-primary); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.nxm-video__icon::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.nxm-video__label { position: absolute; left: 16px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(17, 22, 29, .75); font-size: .88rem; }
.nxm-video__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #000; }
.nxm-video figcaption { margin-top: 10px; font-size: .92rem; line-height: 1.5; color: #475569; }
.nxm-video__hint { display: block; margin-top: 2px; font-size: .8rem; color: var(--nxm-muted); }

/* ── FAQ, Quellen, Autor ────────────────────────────────────────── */
.nxm-faq { margin: 48px 0 0; }
.nxm-faq .nxb-title { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.nxm-quellen { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--nxm-line); font-size: .88rem; color: var(--nxm-muted); }
.nxm-quellen__title { margin: 0 0 6px; font-weight: 700; color: var(--nxm-text); }
.nxm-quellen ol { margin: 0; padding-left: 20px; line-height: 1.5; }
.nxm-quellen a { color: var(--nxm-muted); }
.nxm-author { display: flex; gap: 16px; align-items: flex-start; margin: 32px 0 0; padding: 20px; border-radius: 16px; border: 1px solid var(--nxm-line); }
.nxm-author__img { width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
.nxm-author p { margin: 0; }
.nxm-author__name { font-weight: 700; margin-bottom: 4px !important; }
.nxm-author__name span { font-weight: 400; color: var(--nxm-muted); }
.nxm-author__bio { font-size: .95rem; line-height: 1.55; color: #334155; }
.nxm-ki-hinweis { margin: 10px 4px 0; font-size: .82rem; line-height: 1.5; color: var(--nxm-muted); }

/* ── Karten ─────────────────────────────────────────────────────── */
.nxm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.nxm-card { min-width: 0; }
.nxm-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 2px 14px rgba(17, 22, 29, .07); transition: transform .2s ease, box-shadow .2s ease; }
.nxm-card__link:hover, .nxm-card__link:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(17, 22, 29, .12); }
.nxm-card__img { display: block; aspect-ratio: 16 / 10; background: var(--nxm-light); overflow: hidden; }
.nxm-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nxm-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.nxm-card__thema { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nxm-primary); }
.nxm .nxm-card__title, .nxm-teaser .nxm-card__title { margin: 0; font-size: 1.2rem; line-height: 1.3; font-weight: 700; color: var(--nxm-text); }
.nxm-card__teaser { font-size: .95rem; line-height: 1.5; color: #475569; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nxm-card__meta { margin-top: auto; font-size: .82rem; color: var(--nxm-muted); }

@media (min-width: 900px) {
	.nxm-grid--index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nxm-card--big { grid-column: 1 / -1; }
	.nxm-card--big .nxm-card__link { flex-direction: row; }
	.nxm-card--big .nxm-card__img { flex: 0 0 58%; aspect-ratio: auto; min-height: 340px; }
	.nxm-card--big .nxm-card__body { padding: 32px 36px; justify-content: center; }
	.nxm .nxm-card--big .nxm-card__title { font-size: 1.9rem; line-height: 1.15; }
	.nxm-card--big .nxm-card__teaser { font-size: 1.05rem; -webkit-line-clamp: 4; }
	.nxm-card--big .nxm-card__meta { margin-top: 8px; }
}

/* ── Themen-Pillen, Seiten ──────────────────────────────────────── */
.nxm-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.nxm-pills a { padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--nxm-text); font-size: .92rem; text-decoration: none; box-shadow: inset 0 0 0 1px #cfe3f5; }
.nxm-pills a:hover { box-shadow: inset 0 0 0 1px var(--nxm-primary); color: var(--nxm-primary); }
.nxm-pills a[aria-current="page"] { background: var(--nxm-primary); color: #fff; box-shadow: none; }
.nxm-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 40px 0 0; }
.nxm-pager a, .nxm-pager span { padding: 8px 14px; border-radius: 10px; text-decoration: none; color: var(--nxm-text); box-shadow: inset 0 0 0 1px var(--nxm-line); }
.nxm-pager .current { background: var(--nxm-primary); color: #fff; box-shadow: none; }
.nxm-empty { color: var(--nxm-muted); }

/* ── Standort, Weiterlesen ──────────────────────────────────────── */
.nxm-related { background: #f7fafd; }
.nxm-store { background: #fff; }
.nxm-teaser { margin: 0; }

@media (max-width: 640px) {
	.nxm-head { padding-top: 20px; }
	.nxm-cover { padding: 0; }
	.nxm-cover img { border-radius: 0; aspect-ratio: 4 / 3; }
	.nxm-cta { padding: 22px 20px; border-radius: 16px; }
	.nxm-meta .nxm-share { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.nxm-card__link { transition: none; }
	.nxm-card__link:hover { transform: none; }
}
