/* ==========================================================================
   Karriere-Magazin Stationsradar.de
   Ergänzt css/style.css der Website. Alle Regeln sind auf .mag beschränkt,
   damit Kopf- und Fußbereich unverändert bleiben.
   ========================================================================== */

/* Menüpunkt "Karriere-Magazin" aktiv (fehlt in style.css) */
.hauptmenu_ref_aktiv1, .hauptmenu_ref_aktiv1 a:link, .hauptmenu_ref_aktiv1 a:visited {
	float: left;
	background-color: #202463;
	color: #ffffff;
	font-size: 13px;
	text-decoration: none;
	text-align: center;
	width: 18.0%;
	height: 15px;
	padding-top: 7px;
	padding-bottom: 7px;
	margin-right: 0%;
}

.mag {
	--mag-navy: #202463;
	--mag-navy-dunkel: #161a4a;
	--mag-rot: #e3141c;
	--mag-beige: #dfd8c7;
	--mag-sand: #f6f3ec;
	--mag-text: #1f2330;
	--mag-grau: #5d6170;
	--mag-linie: #e7e2d6;
	--mag-radius: 8px;

	color: var(--mag-text);
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	padding: 28px 2% 48px;
	-webkit-text-size-adjust: 100%;
}
.mag *, .mag *::before, .mag *::after { box-sizing: border-box; }
.mag p { margin: 0 0 1em; }
.mag a { color: var(--mag-navy); }
.mag img { max-width: 100%; height: auto; border: 0; }
.mag :focus-visible { outline: 3px solid #f2b21b; outline-offset: 2px; border-radius: 3px; }
/* menu_design.css blendet alle <nav> aus (für das mobile Menü) und unterstreicht alle Links */
.mag nav.mag-rubriken, .mag nav.mag-blaettern { display: flex; }
.mag nav.mag-nachbarn { display: grid; }
.mag nav.mag-pfad, .mag nav.mag-box { display: block; }
.mag a:link, .mag a:visited, .mag a:active { text-decoration: none; }
.mag a:hover { text-decoration: underline; }
.mag a.mag-knopf:hover, .mag .mag-rubriken a:hover, .mag .mag-blaettern a:hover,
.mag a.mag-nachbarn__link:hover, .mag a.mag-karte__bild:hover, .mag a.mag-mini:hover,
.mag .mag-box--dossier a:hover { text-decoration: none; }
.mag .mag-artikel__text a:link, .mag .mag-artikel__text a:visited,
.mag .mag-rss a:link, .mag .mag-rss a:visited, .mag a.mag-zurueck:link, .mag a.mag-zurueck:visited { text-decoration: underline; }

.mag-sr {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Raster: Inhalt + Seitenleiste */
.mag-raster {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 48px;
	align-items: start;
}

/* Kopf der Übersicht */
.mag-kopf { margin-bottom: 8px; }
.mag-kopf__titel {
	margin: 0 0 10px;
	font-size: 34px;
	line-height: 1.15;
	font-weight: bold;
	color: var(--mag-navy);
	letter-spacing: -0.01em;
}
.mag-kopf__seite { font-size: 18px; font-weight: normal; color: var(--mag-grau); margin-left: 6px; }
.mag-kopf__text { font-size: 17px; color: var(--mag-grau); max-width: 680px; margin-bottom: 22px; }

/* Rubriken als Leiste */
.mag-rubriken {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 0 26px;
	border-bottom: 1px solid var(--mag-linie);
}
.mag-rubriken a {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--mag-sand);
	border: 1px solid var(--mag-linie);
	color: var(--mag-text);
	font-size: 14px;
	text-decoration: none;
	transition: background .15s, color .15s, border-color .15s;
}
.mag-rubriken a:hover { background: var(--mag-beige); border-color: var(--mag-beige); }
.mag-rubriken a.ist-aktiv { background: var(--mag-navy); border-color: var(--mag-navy); color: #fff; }

/* Meta-Zeile: Rubrik + Datum */
.mag-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin: 0 0 8px !important;
	font-size: 13px;
	color: var(--mag-grau);
}
.mag-rubrik {
	font-size: 12px;
	font-weight: bold;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--mag-rot) !important;
	text-decoration: none;
}
.mag-rubrik:hover { text-decoration: underline; }

/* Artikelkarten */
.mag-liste { display: flex; flex-direction: column; }
.mag-karte {
	display: grid;
	grid-template-columns: 148px minmax(0, 1fr);
	gap: 24px;
	padding: 28px 0;
	border-bottom: 1px solid var(--mag-linie);
}
.mag-karte__bild { display: block; align-self: start; }
.mag-bild {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--mag-radius);
	background: var(--mag-sand);
}
.mag-karte__bild .mag-bild { transition: transform .25s ease, box-shadow .25s ease; }
.mag-karte:hover .mag-karte__bild .mag-bild { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(32, 36, 99, .14); }
.mag-bild--leer {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--mag-navy) 0%, #3a3f8f 100%);
	color: #fff;
	font-size: 44px;
	font-weight: bold;
}
.mag-karte__titel {
	margin: 0 0 8px;
	font-size: 21px;
	line-height: 1.3;
	font-weight: bold;
}
.mag-karte__titel a { color: var(--mag-navy); text-decoration: none; }
.mag-karte__titel a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.mag-karte__teaser { color: #3c4050; font-size: 15.5px; margin-bottom: 12px !important; }
.mag-karte__aktionen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	margin: 0 !important;
	font-size: 14px;
}
.mag-weiter { font-weight: bold; text-decoration: none; color: var(--mag-navy); }
.mag-weiter:hover { text-decoration: underline; }
.mag-quelle-hinweis { color: var(--mag-grau); font-size: 13px; }

/* Aufmacher (neuester Artikel) */
.mag-karte--aufmacher {
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 30px;
	padding: 30px;
	margin-top: 28px;
	background: var(--mag-sand);
	border: 1px solid var(--mag-linie);
	border-radius: 12px;
}
.mag-karte--aufmacher .mag-karte__titel { font-size: 28px; line-height: 1.22; }
.mag-karte--aufmacher .mag-karte__teaser { font-size: 16.5px; }

/* Seitenblättern */
.mag-blaettern {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 36px 0 0;
	font-size: 15px;
}
.mag-blaettern a, .mag-blaettern span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 6px;
	text-decoration: none;
}
.mag-blaettern a { background: var(--mag-sand); border: 1px solid var(--mag-linie); color: var(--mag-navy); }
.mag-blaettern a:hover { background: var(--mag-beige); }
.mag-blaettern .ist-aktiv { background: var(--mag-navy); color: #fff; font-weight: bold; }
.mag-blaettern__luecke { color: var(--mag-grau); min-width: 20px !important; padding: 0 !important; }

/* Seitenleiste */
.mag-leiste { display: flex; flex-direction: column; gap: 22px; }
.mag-box {
	background: #fff;
	border: 1px solid var(--mag-linie);
	border-radius: 10px;
	padding: 20px;
	font-size: 15px;
}
.mag-box__titel {
	display: block;
	margin: 0 0 10px !important;
	font-size: 13px;
	font-weight: bold;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--mag-navy);
}
.mag-suche__zeile { display: flex; gap: 8px; }
.mag-suche input {
	flex: 1;
	min-width: 0;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #cfc8b6;
	border-radius: 6px;
	font: inherit;
	font-size: 15px;
	background: #fff;
	color: var(--mag-text);
}
.mag-suche button {
	height: 42px;
	padding: 0 14px;
	border: 0;
	border-radius: 6px;
	background: var(--mag-navy);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: bold;
	cursor: pointer;
}
.mag-suche button:hover { background: var(--mag-navy-dunkel); }
.mag-box--station { background: var(--mag-navy); border-color: var(--mag-navy); color: #e6e8f6; }
.mag-box--station .mag-box__titel { color: #fff; font-size: 18px; letter-spacing: 0; text-transform: none; }
.mag-box--station strong { color: #fff; }
.mag-box--station .mag-knopf { background: var(--mag-rot); width: 100%; text-align: center; }
.mag-box--station .mag-knopf:hover { background: #c40f16; }
.mag-rubrikliste { list-style: none; margin: 0; padding: 0; }
.mag-rubrikliste li + li { border-top: 1px solid var(--mag-linie); }
.mag-rubrikliste a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 9px 0;
	text-decoration: none;
	color: var(--mag-text);
}
.mag-rubrikliste a:hover { color: var(--mag-navy); text-decoration: underline; }
.mag-rubrikliste span { color: var(--mag-grau); font-size: 13px; }
.mag-box--dossier { padding: 0; border: 0; text-align: center; }
.mag-box--dossier img { width: 100%; max-width: 240px; border: 1px solid #000; transition: transform .2s; }
.mag-box--dossier a:hover img { transform: scale(1.02); }
.mag-rss { font-size: 13px; margin: 0 !important; }
.mag-rss a { color: var(--mag-grau); }

/* Knöpfe */
.mag-knopf {
	display: inline-block;
	padding: 11px 18px;
	border-radius: 6px;
	background: var(--mag-navy);
	color: #fff !important;
	font-weight: bold;
	font-size: 15px;
	line-height: 1.3;
	text-decoration: none;
	transition: background .15s;
}
.mag-knopf:hover { background: var(--mag-navy-dunkel); }
.mag-knopf--gross { padding: 14px 22px; font-size: 16px; white-space: nowrap; }
.mag-knopf--hell { background: #fff; color: var(--mag-navy) !important; }
.mag-knopf--hell:hover { background: var(--mag-beige); }

/* Brotkrumen */
.mag-pfad { margin: 0 0 14px; font-size: 13px; color: var(--mag-grau); }
.mag-pfad ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.mag-pfad li { display: inline; }
.mag-pfad li + li::before { content: "›"; margin: 0 8px; color: #a8a49a; }
.mag-pfad a { color: var(--mag-grau); text-decoration: none; }
.mag-pfad a:hover { text-decoration: underline; color: var(--mag-navy); }
.mag-pfad li:last-child span {
	display: inline-block;
	max-width: 46ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

/* Einzelartikel */
.mag-artikel { max-width: none; }
.mag-artikel__kopf { margin-bottom: 22px; }
.mag-artikel__titel {
	margin: 0;
	font-size: 36px;
	line-height: 1.18;
	color: var(--mag-navy);
	letter-spacing: -0.015em;
}
.mag-artikel__text { font-size: 18px; line-height: 1.75; color: #22252f; }
.mag-artikel__text::after { content: ""; display: table; clear: both; }
.mag-artikel__text p { margin: 0 0 1.1em; }
.mag-artikel__text a { color: var(--mag-navy); font-weight: bold; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mag-artikel__bild {
	float: right;
	width: 300px;
	max-width: 42%;
	margin: 6px 0 18px 30px;
}
.mag-artikel__bild.ist-klein { width: auto; }
.mag-artikel__bild .mag-bild { aspect-ratio: auto; box-shadow: 0 10px 28px rgba(32, 36, 99, .12); }

.mag-quelle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px 28px;
	margin: 30px 0 0;
	padding: 22px 24px;
	background: var(--mag-sand);
	border: 1px solid var(--mag-linie);
	border-left: 5px solid var(--mag-rot);
	border-radius: 10px;
}
.mag-quelle__titel { margin: 0 0 4px !important; font-weight: bold; font-size: 17px; color: var(--mag-navy); }
.mag-quelle__text { margin: 0 !important; color: var(--mag-grau); font-size: 15px; }

.mag-artikel__fuss { margin-top: 22px; font-size: 15px; }
.mag-zurueck { color: var(--mag-navy); }

.mag-station {
	margin: 40px 0 0;
	padding: 28px 30px;
	background: var(--mag-navy);
	background-image: linear-gradient(120deg, #202463 0%, #2d3383 100%);
	border-radius: 12px;
	color: #e3e6f7;
	font-size: 15.5px;
}
.mag-station__titel { color: #fff; font-size: 21px; font-weight: bold; margin-bottom: 8px !important; }
.mag-station p { max-width: 620px; }

.mag-abschnitt {
	margin: 44px 0 18px;
	font-size: 20px;
	color: var(--mag-navy);
	padding-bottom: 10px;
	border-bottom: 2px solid var(--mag-navy);
}
.mag-aehnlich__raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.mag-mini { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--mag-text); }
.mag-mini .mag-bild { aspect-ratio: 16 / 10; }
.mag-mini__datum { font-size: 12.5px; color: var(--mag-grau); }
.mag-mini__titel { font-weight: bold; color: var(--mag-navy); line-height: 1.35; font-size: 15.5px; }
.mag-mini:hover .mag-mini__titel { text-decoration: underline; }

.mag-nachbarn {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-top: 38px;
	padding-top: 22px;
	border-top: 1px solid var(--mag-linie);
}
.mag-nachbarn__link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border: 1px solid var(--mag-linie);
	border-radius: 10px;
	text-decoration: none;
	color: var(--mag-navy);
	font-weight: bold;
	font-size: 15px;
	line-height: 1.35;
}
.mag-nachbarn__link span { font-weight: normal; font-size: 13px; color: var(--mag-grau); }
.mag-nachbarn__link:hover { background: var(--mag-sand); }
.mag-nachbarn__link--rechts { text-align: right; grid-column: 2; }

.mag-vorschau { margin: 0 0 24px !important; padding: 12px 16px; background: #fff4d6; border: 1px solid #f2c94c; border-radius: 8px; font-size: 14px; }
.mag-vorschau a { margin-left: 8px; font-weight: bold; }

.mag-leer { padding: 30px; margin-top: 26px; background: var(--mag-sand); border-radius: 10px; }

/* ---------- Tablets ---------- */
@media screen and (max-width: 980px) {
	.mag-raster { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.mag-leiste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mag-box--dossier, .mag-rss { grid-column: span 1; }
}

/* ---------- Smartphones ---------- */
@media screen and (max-width: 640px) {
	.mag { padding: 18px 16px 36px; font-size: 15.5px; }
	.mag-kopf__titel { font-size: 27px; }
	.mag-kopf__text { font-size: 15.5px; }
	.mag-rubriken { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 18px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
	.mag-rubriken::-webkit-scrollbar { display: none; }
	.mag-rubriken a { flex: 0 0 auto; }
	.mag-karte { grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 22px 0; }
	.mag-karte__titel { font-size: 17.5px; }
	.mag-karte__teaser { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
	.mag-karte--aufmacher { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 16px; margin-top: 20px; }
	.mag-karte--aufmacher .mag-karte__bild { max-width: 100%; }
	.mag-karte--aufmacher .mag-bild { aspect-ratio: 16 / 10; }
	.mag-karte--aufmacher .mag-karte__titel { font-size: 22px; }
	.mag-karte--aufmacher .mag-karte__teaser { -webkit-line-clamp: 6; }
	.mag-bild--leer { font-size: 30px; }
	.mag-leiste { grid-template-columns: minmax(0, 1fr); }
	.mag-artikel__titel { font-size: 27px; }
	.mag-artikel__text { font-size: 17px; line-height: 1.7; }
	.mag-artikel__bild { float: none; width: 100%; max-width: 100%; margin: 0 0 20px; }
	.mag-artikel__bild:not(.ist-klein) .mag-bild { aspect-ratio: 16 / 10; object-fit: cover; }
	.mag-artikel__bild.ist-klein { width: auto; max-width: 160px; float: right; margin: 4px 0 12px 16px; }
	.mag-quelle { flex-direction: column; align-items: stretch; padding: 18px; }
	.mag-knopf--gross { white-space: normal; text-align: center; }
	.mag-aehnlich__raster { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.mag-mini { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 2px; }
	.mag-mini .mag-bild { grid-row: span 2; aspect-ratio: 1 / 1; }
	.mag-nachbarn { grid-template-columns: minmax(0, 1fr); }
	.mag-nachbarn__link--rechts { grid-column: 1; }
	.mag-pfad li:last-child span { max-width: 22ch; }
}

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

@media print {
	.mag-leiste, .mag-station, .mag-aehnlich, .mag-nachbarn, .mag-rubriken { display: none !important; }
	.mag-raster { display: block; }
}
