/* DPSG Blog – Magazin-Layout */
.dpsg-blog {
	--b-accent: #5b2a86;
	--b-ink: #1f1f1f;
	--b-muted: #5f6368;
	--b-line: #e3e0e8;
	--b-card: #f6f4f9;
	--b-hero: linear-gradient(135deg, #efe8f7 0%, #e6eefc 100%);
	--b-radius: 24px;
	color: var(--b-ink);
	font-size: 16px;
	line-height: 1.5;
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 40px;
}
.dpsg-blog *, .dpsg-blog *::before, .dpsg-blog *::after { box-sizing: border-box; }
.dpsg-blog a { color: inherit; text-decoration: none !important; }
.dpsg-blog h2, .dpsg-blog h3, .dpsg-blog p { margin: 0; padding: 0; }
.dpsg-blog img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; border: 0; border-radius: 0; }

.dpsg-blog__eyebrow { font-size: 13px; font-weight: 600; color: var(--b-accent); letter-spacing: .01em; }
.dpsg-blog__by { font-size: 13px; color: var(--b-muted); line-height: 1.45; }
.dpsg-blog__by strong { color: var(--b-ink); font-weight: 600; }

.dpsg-blog__btn {
	display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
	padding: 9px 18px; border: 1px solid var(--b-ink); border-radius: 99px;
	font-size: 14px; font-weight: 500; color: var(--b-ink); background: transparent;
	transition: background .15s, color .15s;
}
.dpsg-blog a:hover .dpsg-blog__btn, .dpsg-blog a:focus-visible .dpsg-blog__btn { background: var(--b-ink); color: #fff; }

/* Bildersatz für Beiträge ohne Foto */
.is-placeholder {
	display: grid; place-items: center; color: #fff;
	background:
		radial-gradient(circle at 20% 15%, rgba(255,255,255,.28), transparent 45%),
		linear-gradient(135deg, var(--tint), color-mix(in srgb, var(--tint) 60%, #000));
}
.is-placeholder svg { width: 22%; height: auto; min-width: 48px; max-width: 120px; opacity: .9; }

/* ---------- Aufmacher ---------- */
.dpsg-blog__hero-link {
	display: grid; grid-template-columns: 1fr; gap: 8px; border-radius: var(--b-radius);
}
.dpsg-blog__hero-text {
	display: flex; flex-direction: column; gap: 14px; padding: 28px 24px;
	background: var(--b-hero); border-radius: var(--b-radius);
}
.dpsg-blog__hero-title { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.15; font-weight: 500; letter-spacing: -.01em; color: var(--b-ink); }
.dpsg-blog__hero-excerpt { color: #3c4043; font-size: 16px; }
.dpsg-blog__hero-foot { display: flex; flex-direction: column; gap: 16px; margin-top: auto; padding-top: 8px; }
.dpsg-blog__hero-media { border-radius: var(--b-radius); overflow: hidden; aspect-ratio: 16 / 10; }
.dpsg-blog__hero-link:hover .dpsg-blog__hero-title { color: var(--b-accent); }
@media (min-width: 860px) {
	.dpsg-blog__hero-link { grid-template-columns: 5fr 7fr; }
	.dpsg-blog__hero-text { padding: 36px 32px; }
	.dpsg-blog__hero-media { aspect-ratio: auto; min-height: 380px; }
}

/* ---------- Karten ---------- */
.dpsg-blog__cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .dpsg-blog__cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .dpsg-blog__cards { grid-template-columns: repeat(min(var(--n), 4), 1fr); } }
.dpsg-blog__card > a {
	display: flex; flex-direction: column; height: 100%;
	background: var(--b-card); border-radius: var(--b-radius); overflow: hidden;
	transition: box-shadow .2s, transform .2s;
}
.dpsg-blog__card > a:hover { box-shadow: 0 6px 24px rgba(40, 20, 70, .12); transform: translateY(-2px); }
.dpsg-blog__card-media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--b-radius) var(--b-radius) 0 0; }
.dpsg-blog__card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 22px; flex: 1; }
.dpsg-blog__card-title {
	font-size: 22px; line-height: 1.25; font-weight: 500; color: var(--b-ink);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dpsg-blog__card-text { font-size: 15px; color: #3c4043; }
.dpsg-blog__card .dpsg-blog__by { margin-top: auto; padding-top: 6px; }

/* ---------- Liste ---------- */
.dpsg-blog__latest { display: grid; gap: 24px; grid-template-columns: 1fr; padding-top: 8px; scroll-margin-top: 90px; }
@media (min-width: 860px) {
	.dpsg-blog__latest { grid-template-columns: 300px 1fr; gap: 48px; }
	.dpsg-blog__latest.no-filters { grid-template-columns: 1fr; }
	.dpsg-blog__aside { position: sticky; top: 100px; align-self: start; }
}
.dpsg-blog__h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 400; line-height: 1.2; color: var(--b-ink); }
.dpsg-blog__filter-label { margin-top: 16px !important; font-size: 14px; color: var(--b-muted); }
.dpsg-blog__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dpsg-blog__chip {
	padding: 7px 15px; border: 1px solid #c8c4cf; border-radius: 99px; font-size: 14px; background: #fff;
	transition: background .15s, border-color .15s;
}
.dpsg-blog__chip:hover { border-color: var(--b-accent); }
.dpsg-blog__chip.is-active { background: color-mix(in srgb, var(--b-accent) 14%, #fff); border-color: transparent; color: var(--b-accent) !important; font-weight: 600; }

.dpsg-blog__list { display: flex; flex-direction: column; }
.dpsg-blog__row { border-bottom: 1px solid var(--b-line); }
.dpsg-blog__row:first-child > a { padding-top: 0; }
.dpsg-blog__row > a { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
@media (min-width: 600px) { .dpsg-blog__row > a { grid-template-columns: 240px 1fr; gap: 24px; align-items: start; } }
.dpsg-blog__row-media { aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; }
.dpsg-blog__row-body { display: flex; flex-direction: column; gap: 10px; }
.dpsg-blog__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dpsg-blog__tags span { padding: 4px 12px; border-radius: 99px; background: var(--b-card); font-size: 13px; color: #3c4043; }
.dpsg-blog__row-title { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; font-weight: 400; color: var(--b-ink); }
.dpsg-blog__row > a:hover .dpsg-blog__row-title { color: var(--b-accent); }
.dpsg-blog__row-text { color: #3c4043; }

.dpsg-blog__more {
	display: flex; justify-content: center; align-items: center; margin: 28px auto 0; width: max-content;
	padding: 12px 28px; border-radius: 99px; background: var(--b-accent); color: #fff !important; font-weight: 600;
}
.dpsg-blog__more:hover { filter: brightness(1.12); }
.dpsg-blog__more.is-loading { opacity: .6; pointer-events: none; }
.dpsg-blog__empty { color: var(--b-muted); padding: 20px 0; }

@media (prefers-reduced-motion: reduce) { .dpsg-blog * { transition: none !important; } }

/* ---------- Mobil kompakter ---------- */
@media (max-width: 859px) {
	.dpsg-blog__hero-media { order: -1; aspect-ratio: 16 / 9; }
	.dpsg-blog__hero-text { padding: 22px 20px; gap: 12px; }
}
@media (max-width: 559px) {
	.dpsg-blog { gap: 32px; }
	.dpsg-blog__cards {
		display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
		margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; scrollbar-width: none;
	}
	.dpsg-blog__cards::-webkit-scrollbar { display: none; }
	.dpsg-blog__card { flex: 0 0 78%; scroll-snap-align: start; }
	.dpsg-blog__card-title { font-size: 19px; }
	.dpsg-blog__row > a { grid-template-columns: 1fr 96px; gap: 14px; padding: 18px 0; }
	.dpsg-blog__row-media { grid-column: 2; grid-row: 1; aspect-ratio: 1; border-radius: 12px; }
	.dpsg-blog__row-body { grid-column: 1; grid-row: 1; gap: 6px; }
	.dpsg-blog__row-title { font-size: 19px; }
	.dpsg-blog__row-text { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.is-placeholder svg { min-width: 32px; }
}

/* ---------- Schlagwort-Filter ---------- */
.dpsg-blog__filter { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.dpsg-blog__filter .dpsg-blog__filter-label { margin: 0 !important; display: block; }
.dpsg-blog__tagsearch {
	width: 100%; min-height: 44px; padding: 10px 14px; margin: 0; font: inherit; font-size: 15px;
	border: 1px solid #c8c4cf; border-radius: 99px; background: #fff; color: var(--b-ink); box-shadow: none;
	-webkit-appearance: none; appearance: none;
}
.dpsg-blog__tagsearch:focus { outline: none; border-color: var(--b-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--b-accent) 18%, transparent); }
.dpsg-blog__selected { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dpsg-blog__reset { font-size: 14px; color: var(--b-muted) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.dpsg-blog__filter-note, .dpsg-blog__filter-none { margin: 0 !important; font-size: 13px; color: var(--b-muted); }
.dpsg-blog__chips { margin-top: 0; }
.dpsg-blog__chip[hidden] { display: none !important; }
.dpsg-blog__count { font-size: 12px; color: var(--b-muted); margin-left: 2px; }
.dpsg-blog__chip.is-active .dpsg-blog__count { color: inherit; }
.dpsg-blog__chip--more { cursor: pointer; font: inherit; font-size: 14px; color: var(--b-accent) !important; border-style: dashed; }

/* ---------- Suche ---------- */
.dpsg-blog__search { display: flex; margin-top: 16px; border: 1px solid #c8c4cf; border-radius: 99px; background: #fff; overflow: hidden; }
.dpsg-blog__search:focus-within { border-color: var(--b-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--b-accent) 18%, transparent); }
.dpsg-blog__search input[type="search"] {
	flex: 1; min-width: 0; min-height: 44px; padding: 10px 16px; margin: 0; border: 0 !important; outline: none; box-shadow: none !important;
	font: inherit; font-size: 15px; background: transparent; color: var(--b-ink); -webkit-appearance: none; appearance: none;
}
.dpsg-blog__search button { flex: 0 0 auto; width: 48px; border: 0; margin: 0; padding: 0; background: transparent; cursor: pointer; font-size: 16px; box-shadow: none; }
.dpsg-blog__selected { margin-top: 12px; }

/* ---------- Angeheftet ---------- */
.dpsg-blog__hero .dpsg-blog__eyebrow { white-space: normal; }

/* ---------- E-Mail-Abo ---------- */
.dpsg-abo {
	display: flex; flex-direction: column; gap: 18px; padding: 28px 24px; border-radius: var(--b-radius, 24px);
	background: linear-gradient(135deg, #efe8f7 0%, #e6eefc 100%); scroll-margin-top: 90px;
}
.dpsg-abo__intro { display: flex; gap: 16px; align-items: flex-start; }
.dpsg-abo__icon { font-size: 32px; line-height: 1; }
.dpsg-abo h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 28px); font-weight: 500; color: var(--b-ink, #1f1f1f); }
.dpsg-abo p { margin: 0; color: #3c4043; }
.dpsg-abo__form { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.dpsg-abo__row { display: flex; gap: 8px; flex-wrap: wrap; }
.dpsg-abo__row input[type="email"] {
	flex: 1 1 220px; min-height: 48px; padding: 10px 16px; margin: 0; font: inherit; font-size: 16px;
	border: 1px solid #c8c4cf; border-radius: 99px; background: #fff; box-shadow: none;
}
.dpsg-abo__btn {
	min-height: 48px; padding: 0 24px; border: 0; border-radius: 99px; background: var(--b-accent, #5b2a86); color: #fff !important;
	font: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer;
}
.dpsg-abo__btn:hover { filter: brightness(1.12); }
.dpsg-abo__btn[disabled] { opacity: .6; }
.dpsg-abo__topics summary { cursor: pointer; font-size: 14px; color: var(--b-accent, #5b2a86); font-weight: 600; }
.dpsg-abo__topics summary span { color: var(--b-muted, #5f6368); font-weight: 400; }
.dpsg-abo__checks { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 14px; }
.dpsg-abo__checks label { display: inline-flex; gap: 6px; align-items: center; }
.dpsg-abo__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #3c4043; line-height: 1.45; }
.dpsg-abo__consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--b-accent, #5b2a86); }
.dpsg-abo__consent a { color: var(--b-accent, #5b2a86) !important; text-decoration: underline !important; }
.dpsg-abo__msg, .dpsg-abo__status { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; background: #fff; }
.dpsg-abo__msg.is-ok, .dpsg-abo__status.is-ok { background: #e7f5ec; color: #1f7a44; }
.dpsg-abo__msg.is-err, .dpsg-abo__status.is-err { background: #fdecea; color: #b42318; }
.dpsg-abo__unsub { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dpsg-abo__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.dpsg-blog .screen-reader-text, .dpsg-abo .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Ortsangabe aus dem Baukasten im Beitrag */
.dpsg-ort { padding: 14px 18px !important; border-radius: 14px; background: #f6f4f9; }
.dpsg-ort a { font-size: 15px; }
.dpsg-ort__addr { color: #5f6368; font-size: 15px; }
