/**
 * PM Blog – index2:
 *   - Ticker (rechts über den Kacheln): Badge + smooth Laufschrift + Exzerpt
 *   - Kacheln unter dem Hauptbild: responsives Grid mit Headline + Exzerpt
 *   - Einzelbeitrag-Ansicht
 * Nur für index2 + Einzelbeitrag geladen.
 */

/* ------------------------------------------------------------------ */
/* index2: Panel-Layout – Ticker oben, Buttons unten                  */
/* ------------------------------------------------------------------ */

/* Panel-Inhalt oben ausrichten – so weit oben wie im Original. */
.pm-glass-right-panel--index2 {
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.pm-header-overlay--index2 .pm-header-content {
	display: flex;
	flex-direction: column;
	width: 100%;
}

/* Abstände: 24px zwischen Überschrift und Ticker sowie Ticker und
   "Themen & Ratgeber". Der Ticker-Block selbst trägt diese Margins. */
.pm-header-overlay--index2 .pm-blog-ticker {
	margin-top: 24px;
	margin-bottom: 24px;
}

/* ------------------------------------------------------------------ */
/* Ticker: Badge + smooth Laufschrift (Headline) + Exzerpt darunter   */
/* ------------------------------------------------------------------ */

.pm-blog-ticker {
	width: 100%;
	max-width: 520px;
	margin: 0 0 0.2em auto;
}

/* Zeile mit Badge + Laufschrift – gleiche Optik wie die Ratgeber-Kacheln:
   kein weißer Füll-Background, nur der Kachel-Box-Shadow. */
.pm-blog-ticker__bar {
	display: flex;
	align-items: stretch;
	gap: 10px;
	width: 100%;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(255, 255, 255, 0.35), 0 3px 14px rgba(255, 103, 0, 0.35);
	border-radius: 2px;
	overflow: hidden;
	text-decoration: none;
	font-family: Helvetica, Arial, sans-serif;
	transition: box-shadow 0.22s ease;
}

.pm-blog-ticker__bar:hover {
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), inset 0 -1px 0 rgba(255, 255, 255, 0.5), 0 8px 22px rgba(255, 103, 0, 0.5);
}

.pm-blog-ticker__badge {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	padding: 8px 12px;
	background: #FF6700;
	color: #fff;
	font-weight: 700;
	font-size: 0.72em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Laufschrift-Fenster (schneidet ab, Text scrollt darin) */
.pm-blog-ticker__viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	position: relative;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
	        mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

.pm-blog-ticker__marquee {
	display: inline-flex;
	flex-wrap: nowrap;
	white-space: nowrap;
	will-change: transform;
	animation: pm-ticker-scroll 18s linear infinite;
}

/* zwei identische Kopien -> nahtlose Endlosschleife bei -50% */
.pm-blog-ticker__text {
	display: inline-block;
	padding: 8px 24px 8px 0;
	color: #333;
	font-size: 0.92em;
	line-height: 1.3;
	font-weight: 600;
}

.pm-blog-ticker__bar:hover .pm-blog-ticker__marquee {
	animation-play-state: paused;
}

@keyframes pm-ticker-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* Formatierungs-Spans für die Ticker-Headline (aus <mq-*> im XML) */
.mq-orange { color: #FF6700; }
.mq-black  { color: #333; }
.mq-bold   { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
	.pm-blog-ticker__marquee {
		animation: none;
	}
	.pm-blog-ticker__viewport {
		-webkit-mask-image: none;
		        mask-image: none;
	}
	.pm-blog-ticker__text:nth-child(2) {
		display: none;
	}
	.pm-blog-ticker__text {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
	}
}

/* Exzerpt-Bereich unter der Laufschrift, 12px Abstand oben */
.pm-blog-ticker__excerpt {
	display: block;
	margin-top: 12px;
	padding: 8px 12px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(255, 255, 255, 0.35), 0 3px 14px rgba(255, 103, 0, 0.35);
	border-radius: 2px;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 0.8em;
	line-height: 1.4;
	color: #4f5a6b;
	text-decoration: none;
	transition: box-shadow 0.2s ease;
}

.pm-blog-ticker__excerpt:hover {
	color: #2d3746;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), inset 0 -1px 0 rgba(255, 255, 255, 0.5), 0 8px 22px rgba(255, 103, 0, 0.5);
}

.pm-blog-ticker__more {
	font-weight: 700;
	color: #FF6700;
	white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Kacheln unter dem Hauptbild – responsives Grid                     */
/* ------------------------------------------------------------------ */

.pm-blog-cards-section {
	padding: 2.4em 0 3em;
}

.pm-blog-cards-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

.pm-blog-cards-title {
	margin: 0 0 1.1em;
	font-family: 'Noto Serif', Georgia, serif;
	font-size: 1.5em;
	font-weight: 700;
	color: #173f7a;
}

.pm-blog-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.pm-blog-card {
	display: flex;
	flex-direction: column;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid #e2e7f0;
	border-radius: 6px;
	box-shadow: 0 2px 10px rgba(20, 24, 31, 0.06);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pm-blog-card:hover {
	transform: translateY(-3px);
	border-color: #c8d3e8;
	box-shadow: 0 12px 28px rgba(20, 24, 31, 0.14);
}

.pm-blog-card__headline {
	margin: 0 0 0.5em;
	font-family: 'Noto Serif', Georgia, serif;
	font-size: 1.12em;
	line-height: 1.3;
	color: #294277;
}

.pm-blog-card__excerpt {
	margin: 0 0 24px;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 0.92em;
	line-height: 1.5;
	color: #4f5a6b;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pm-blog-card__more {
	margin-top: auto;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 0.85em;
	font-weight: 700;
	color: #FF6700;
}

.pm-blog-cards-empty {
	color: #7a8496;
	font-family: Helvetica, Arial, sans-serif;
}

@media only screen and (max-width: 600px) {
	.pm-blog-ticker {
		max-width: 100%;
	}
	.pm-blog-cards {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------ */
/* Einzelbeitrag                                                       */
/* ------------------------------------------------------------------ */

.pm-blog-single {
	max-width: 760px;
	margin: 2.4em auto 3em;
	font-family: 'Noto Serif', Georgia, serif;
	color: #1e2430;
}

.pm-blog-single__title {
	font-size: 2em;
	line-height: 1.2;
	margin: 0 0 0.3em;
	color: #173f7a;
}

.pm-blog-single__date {
	margin: 0 0 1.4em;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 0.85em;
	color: #7a8496;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.pm-blog-single__lead {
	font-size: 1.15em;
	line-height: 1.5;
	font-weight: 600;
	color: #2d3746;
	margin: 0 0 1.4em;
}

.pm-blog-single__body {
	font-size: 1.02em;
	line-height: 1.65;
}

.pm-blog-single__body h2 {
	font-size: 1.3em;
	margin: 1.6em 0 0.5em;
	color: #294277;
}

.pm-blog-single__body p {
	margin: 0 0 1em;
}

.pm-blog-single__footer {
	margin-top: 2.4em;
	padding-top: 1.2em;
	border-top: 1px solid #e2e7f0;
}

.pm-blog-single__back {
	font-family: Helvetica, Arial, sans-serif;
	font-size: 0.95em;
	font-weight: 700;
	color: #173f7a;
	text-decoration: none;
}

.pm-blog-single__back:hover {
	text-decoration: underline;
}
