/*
Theme Name: mevaleo 2
Theme URI: https://www.mevaleo.de/
Author: Top The Web GmbH
Author URI: https://www.toptheweb.de/
Description: Neues Design für die mevaleo-Informationsportale (DE, AT, CH): dunkelblauer Hero, Studienformen, interaktiver Wochenplaner, Ratgeber-Rubriken, Berufe von A bis Z und Vergleichstabelle.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: mevaleo2
*/

:root {
	--navy-900: #0B2240;
	--navy-800: #12325A;
	--navy-700: #1C4372;
	--navy-600: #2E5585;
	--blue-600: #1F5FA8;
	--blue-500: #4F86C6;
	--blue-300: #8DB8E8;
	--blue-200: #CFE0F4;
	--ice-100: #E6EEF7;
	--ice-50: #F3F6FA;
	--line: #DCE4EE;
	--line-soft: #E3E9F1;
	--ink: #1B2433;
	--ink-2: #33405A;
	--muted: #4A5568;
	--accent: #5FC2B5;
	--serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
	--sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--wrap: 1240px;
	--radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy-900); line-height: 1.2; font-weight: 700; }
button { font: inherit; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 12px 18px; background: #fff; color: var(--navy-900); font-weight: 700; border-radius: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 640px) { .wrap { padding-left: 20px; padding-right: 20px; } }

.eyebrow { display: block; font-size: 14px; font-weight: 700; color: var(--blue-600); text-transform: uppercase; letter-spacing: .08em; }
.section-title { margin: 0; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; }
.section-head { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end; justify-content: space-between; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 8px 0; }
.arrow-link svg, .btn svg { flex: 0 0 auto; }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--navy-900); }
.btn--accent:hover { color: var(--navy-900); filter: brightness(1.05); }
.btn--ghost { border-color: #5D84B4; color: #fff; font-weight: 600; }
.btn--ghost:hover { color: #fff; background: rgba(255,255,255,.06); }
.btn--navy { background: var(--navy-800); color: #fff; min-height: 46px; padding: 0 22px; font-size: 15px; font-weight: 600; }
.btn--navy:hover { color: #fff; background: var(--navy-900); }

/* ---------- Utility bar ---------- */
.utility { background: var(--navy-900); color: #C9D7EA; font-size: 14px; }
.utility .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; }
.utility__claims { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.utility__claims span { display: inline-flex; align-items: center; gap: 8px; }
.utility__claims svg { stroke: var(--accent); }
.utility__countries { display: flex; gap: 16px; align-items: center; }
.utility__countries span { color: #8FA6C4; }
.utility__countries a { color: #C9D7EA; text-decoration: none; }
.utility__countries a[aria-current] { color: #fff; font-weight: 600; }
.utility__countries a:hover { color: #fff; }
@media (max-width: 720px) { .utility__claims span + span { display: none; } }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header .wrap { display: flex; align-items: center; gap: 16px 40px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand__mark { width: 42px; height: 42px; border-radius: 10px; background: var(--navy-800); display: flex; align-items: center; justify-content: center; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--navy-900); letter-spacing: -.01em; }
.brand__tag { font-size: 13px; color: var(--muted); }
.brand .custom-logo { max-height: 52px; width: auto; }
.main-nav { flex: 1 1 auto; order: 2; }
.header-actions { order: 3; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 30px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 0; display: inline-block; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav .current_page_item > a, .main-nav .current_page_ancestor > a { color: var(--navy-800); border-bottom-color: var(--accent); }
.main-nav .sub-menu { display: none; }
.header-actions { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.icon-btn { width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--ice-50); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--navy-800); }
.icon-btn:hover { background: var(--ice-100); }
.nav-toggle { display: none; }
.header-search { display: none; border-top: 1px solid var(--line); background: var(--ice-50); }
.header-search.is-open { display: block; }
.header-search .wrap { padding-top: 18px; padding-bottom: 18px; }

@media (max-width: 1020px) {
	.nav-toggle { display: inline-flex; }
	.header-actions .btn--navy { display: none; }
	.main-nav { display: none; order: 10; flex-basis: 100%; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
	.main-nav li { border-bottom: 1px solid var(--line); }
	.main-nav a { display: block; padding: 14px 0; border-bottom: 0; }
	.site-header .wrap { flex-wrap: wrap; }
}

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 10px; max-width: 720px; }
.search-form input[type=search] { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 20px; border: 1px solid #C7D5E6; border-radius: 999px; font: inherit; font-size: 17px; background: #fff; color: var(--ink); }
.search-form input[type=search]:focus { outline: 3px solid var(--blue-300); outline-offset: 0; border-color: var(--blue-600); }
.search-form button { height: 52px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--navy-800); color: #fff; font-weight: 600; cursor: pointer; }
.search-form button:hover { background: var(--navy-900); }

/* ---------- Hero ---------- */
.hero { background: var(--navy-800); color: #fff; position: relative; overflow: hidden; }
.hero__rings { position: absolute; right: -140px; top: -160px; width: 620px; height: 620px; opacity: .18; pointer-events: none; }
.hero .wrap { padding-top: 88px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; position: relative; }
.hero__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero__badge { display: inline-flex; align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: rgba(141,184,232,.16); color: var(--blue-200); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.hero h1 { margin: 0; color: #fff; font-size: clamp(38px, 4.6vw, 62px); line-height: 1.08; letter-spacing: -.015em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { margin: 0; font-size: 20px; line-height: 1.55; color: #D5E1F0; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.popular { margin-top: 6px; max-width: 640px; border-top: 1px solid var(--navy-600); display: flex; flex-direction: column; }
.popular__label { padding: 18px 0 6px; font-size: 13px; font-weight: 700; color: var(--blue-300); text-transform: uppercase; letter-spacing: .08em; }
.popular a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--navy-600); color: #fff; text-decoration: none; font-size: 17px; font-weight: 600; }
.popular a:hover { color: var(--accent); }
.popular a svg { stroke: var(--blue-300); flex: 0 0 auto; }
.hero__aside { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero__media { aspect-ratio: 4 / 3; border-radius: 18px; background: var(--navy-700); overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__media svg { width: 100%; height: 100%; display: block; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { flex: 1 1 140px; background: #fff; color: var(--navy-900); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; text-decoration: none; }
.stat:hover { color: var(--navy-900); box-shadow: 0 0 0 3px var(--accent); }
.stat strong { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.1; }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- Trust ---------- */
.trust { background: var(--ice-50); border-bottom: 1px solid var(--line); }
.trust .wrap { padding-top: 30px; padding-bottom: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 32px; }
.trust__item { display: flex; gap: 14px; align-items: center; }
.trust__icon { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.trust__icon svg { stroke: var(--blue-600); }
.trust__item div { display: flex; flex-direction: column; line-height: 1.3; }
.trust__item strong { color: var(--navy-900); }
.trust__item span { font-size: 15px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section > .wrap { display: flex; flex-direction: column; gap: 44px; }
.section--white { background: #fff; }
.section--ice { background: var(--ice-100); }
.section--light { background: var(--ice-50); border-top: 1px solid var(--line); }
.section--dark { background: var(--navy-900); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--blue-300); }
@media (max-width: 720px) { .section { padding: 64px 0; } }

/* Studienformen */
.format-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.format-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: 0 2px 0 rgba(11,34,64,.04); transition: transform .15s ease, box-shadow .15s ease; }
.format-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18,50,90,.12); }
.format-card__bar { height: 8px; }
.format-card__body { padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; }
.format-card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--ice-100); display: flex; align-items: center; justify-content: center; }
.format-card__tag { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.format-card h3 { margin: 0; font-size: 24px; }
.format-card p { margin: 0; color: var(--muted); font-size: 16px; flex: 1 1 auto; }
.format-card__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue-600); font-size: 15px; }

/* Wochenplaner */
.planner .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; flex-direction: row; }
.planner__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.planner__intro p { margin: 0; color: var(--ink-2); font-size: 18px; }
.planner__picks { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.planner__pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 54px; padding: 0 20px; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; text-align: left; background: #fff; color: var(--navy-900); border: 1px solid #C7D5E6; transition: background-color .15s ease; }
.planner__pick:hover { border-color: var(--navy-800); }
.planner__pick[aria-pressed="true"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.planner__board { flex: 999 1 600px; min-width: 0; background: #fff; border-radius: 20px; padding: 32px; box-shadow: 0 20px 50px rgba(18,50,90,.12); display: flex; flex-direction: column; gap: 24px; }
.planner__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; align-items: baseline; }
.planner__head h3 { margin: 0; font-size: 26px; }
.planner__head span { font-size: 15px; color: var(--muted); }
.planner__scroll { overflow-x: auto; }
.planner__grid { min-width: 560px; display: grid; grid-template-columns: 96px repeat(7, minmax(0, 1fr)); gap: 8px; font-size: 14px; }
.planner__day { text-align: center; font-weight: 700; color: var(--navy-900); padding-bottom: 4px; }
.planner__row { display: flex; align-items: center; color: var(--muted); font-weight: 600; }
.cell { height: 64px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; transition: background-color .2s ease; }
.cell--work { background: #DCE5F0; color: var(--navy-800); }
.cell--learn { background: var(--blue-600); color: #fff; }
.cell--pres { background: var(--navy-900); color: #fff; }
.cell--free { border: 1.5px dashed #B3C3D7; color: #5B6B82; }
.planner__legend { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line-soft); padding-top: 18px; }
.planner__legend span { display: inline-flex; align-items: center; gap: 8px; }
.planner__legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.planner__text { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 640px) { .planner__board { padding: 22px; } }

/* Ratgeber (dunkel) */
.guide__cols { display: flex; flex-wrap: wrap; gap: 32px; }
.guide__cards { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.guide-card { display: flex; flex-direction: column; background: var(--navy-800); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; transition: transform .15s ease; }
.guide-card:hover { color: #fff; transform: translateY(-3px); }
.guide-card__img { aspect-ratio: 16 / 10; background: var(--navy-700); border-bottom: 1px solid #24507F; overflow: hidden; }
.guide-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guide-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.chip { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--navy-900); background: var(--blue-300); padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.guide-card h3 { margin: 0; font-size: 21px; line-height: 1.28; }
.rubrics { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; border-top: 1px solid #2A4A73; }
.rubrics a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 4px; border-bottom: 1px solid #2A4A73; color: #fff; text-decoration: none; font-weight: 600; }
.rubrics a:hover { color: var(--accent); }
.rubrics a span { display: inline-flex; align-items: center; gap: 12px; color: var(--blue-300); font-weight: 500; font-size: 15px; white-space: nowrap; }
.btn-outline-light { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1px solid #3A5A84; border-radius: 999px; }
.btn-outline-light:hover { color: #fff; border-color: var(--blue-300); }

/* Placeholder-Grafik für Beiträge ohne Bild */
.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy-700), var(--navy-800)); color: var(--blue-300); }
.ph svg { width: 56px; height: 56px; opacity: .7; }
.ph--light { background: linear-gradient(135deg, var(--ice-100), #D6E3F2); color: var(--blue-600); }

/* Berufe */
.jobs .wrap { flex-direction: row; flex-wrap: wrap; gap: 48px; align-items: center; }
.jobs__intro { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.jobs__intro p { margin: 0; color: var(--ink-2); font-size: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pill { padding: 9px 16px; border-radius: 999px; background: var(--ice-100); color: var(--navy-800); font-weight: 600; font-size: 15px; text-decoration: none; }
.pill:hover { background: #D6E3F2; color: var(--navy-900); }
.letters-box { flex: 999 1 560px; min-width: 0; background: var(--ice-50); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.letters-box > strong { color: var(--navy-900); }
.letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; }
.letters a, .letters span { height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 17px; text-decoration: none; }
.letters a { background: #fff; border: 1px solid #CBD7E6; color: var(--navy-800); font-weight: 700; }
.letters a:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.letters span { color: #8796AB; }

/* Vergleich */
.compare { overflow-x: auto; background: #fff; border-radius: 20px; border: 1px solid var(--line); }
.compare table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 16px; }
.compare thead tr { background: var(--navy-800); color: #fff; text-align: left; }
.compare th, .compare td { padding: 18px 20px; }
.compare thead th { font-weight: 600; }
.compare tbody tr { border-top: 1px solid var(--line-soft); }
.compare tbody th { text-align: left; font-weight: 600; color: var(--navy-900); padding-left: 24px; }
.compare td { color: var(--ink-2); }
.compare td span { display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 999px; flex: 0 0 12px; display: inline-block; background: #fff; border: 1.5px solid #AEBBCC; }
.dot--2 { background: var(--blue-600); border: 0; }
.dot--1 { border: 3px solid var(--blue-300); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #C9D7EA; font-size: 15px; }
.site-footer .wrap { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 36px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col p { margin: 0; line-height: 1.6; }
.footer-col strong { color: #fff; margin-bottom: 4px; }
.footer-col a { color: #C9D7EA; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-brand { font-family: var(--serif); font-size: 26px; font-weight: 700; color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; border-top: 1px solid #23416A; padding-top: 24px; font-size: 14px; color: #8FA6C4; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a { color: #8FA6C4; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Innenseiten ---------- */
.page-hero { background: var(--ice-100); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.page-hero h1 { margin: 0; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -.01em; max-width: 900px; }
.page-hero__lead { margin: 0; font-size: 19px; color: var(--ink-2); max-width: 760px; }
.page-hero__meta { font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.page-hero--dark { background: var(--navy-800); border-bottom: 0; color: #fff; }
.page-hero--dark h1 { color: #fff; }
.page-hero--dark .page-hero__lead { color: #D5E1F0; }
.page-hero--dark .breadcrumbs, .page-hero--dark .breadcrumbs a { color: var(--blue-200); }

.breadcrumbs { font-size: 14px; color: var(--muted); }
.breadcrumbs a { color: var(--blue-600); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .separator, .breadcrumbs .sep { margin: 0 6px; opacity: .6; }
.breadcrumbs p { margin: 0; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 56px; padding-bottom: 96px; align-items: start; }
.layout--full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1020px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

.entry { max-width: 760px; font-size: 18px; line-height: 1.7; color: var(--ink); }
.entry > *:first-child { margin-top: 0; }
.entry h2 { font-size: 30px; margin: 1.8em 0 .5em; }
.entry h3 { font-size: 23px; margin: 1.6em 0 .4em; }
.entry h4 { font-size: 19px; margin: 1.4em 0 .4em; font-family: var(--sans); }
.entry p, .entry ul, .entry ol { margin: 0 0 1.2em; }
.entry li { margin-bottom: .4em; }
.entry ul li::marker { color: var(--blue-600); }
.entry blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--accent); background: var(--ice-50); border-radius: 0 12px 12px 0; font-family: var(--serif); font-size: 20px; color: var(--navy-900); }
.entry blockquote p:last-child { margin-bottom: 0; }
.entry img { border-radius: 12px; }
.entry figure { margin: 1.6em 0; }
.entry figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 16px; display: block; overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.entry thead th, .entry tr:first-child th { background: var(--ice-100); color: var(--navy-900); }
.entry hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.entry .alignright { float: right; margin: .3em 0 1em 1.4em; }
.entry .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry .wp-block-button__link { background: var(--navy-800); color: #fff; border-radius: 999px; padding: 14px 24px; text-decoration: none; font-weight: 600; }
.entry::after { content: ""; display: table; clear: both; }
.entry-thumb { margin: 0 0 32px; border-radius: 18px; overflow: hidden; max-width: 760px; }
.entry-thumb img { display: block; width: 100%; height: auto; }

.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 110px; }
@media (max-width: 1020px) { .sidebar { position: static; } }
.box { background: var(--ice-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.box h2 { font-size: 20px; margin: 0 0 12px; }
.box ul { list-style: none; margin: 0; padding: 0; }
.box li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.35; }
.box li:last-child a { border-bottom: 0; }
.box li a:hover, .box li.is-current a { color: var(--blue-600); }
.box--dark { background: var(--navy-800); border-color: var(--navy-800); color: #D5E1F0; }
.box--dark h2 { color: #fff; }
.box--dark p { margin: 0 0 16px; font-size: 16px; }

/* Listen von Unterseiten / Suchergebnisse */
.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.list-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.list-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18,50,90,.1); }
.list-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ice-100); }
.list-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.list-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.list-card__body .chip { background: var(--ice-100); color: var(--navy-800); }
.list-card h3 { margin: 0; font-size: 20px; line-height: 1.3; }
.list-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.list-card__more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--blue-600); font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }

.subpages { margin-top: 56px; display: flex; flex-direction: column; gap: 24px; }
.subpages > h2 { margin: 0; font-size: 28px; }
.rubric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.rubric-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: var(--navy-800); color: #fff; text-decoration: none; font-family: var(--serif); font-size: 21px; font-weight: 700; }
.rubric-card span { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--blue-300); white-space: nowrap; }
.rubric-card:hover { color: #fff; background: var(--navy-900); }

.pagination { margin-top: 40px; }
.pagination .nav-links, .pagination { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); color: var(--navy-800); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.pagination a.page-numbers:hover { background: var(--ice-100); }
.pagination .dots { border: 0; }

/* Berufe-Register */
.az-nav { position: sticky; top: 79px; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar .az-nav { top: 111px; }
.az-nav .letters { padding: 14px 0; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.az-nav .letters a, .az-nav .letters span { height: 40px; font-size: 16px; }
.az-group { padding-top: 40px; scroll-margin-top: 170px; }
.az-group h2 { font-size: 34px; margin: 0 0 16px; display: flex; align-items: center; gap: 14px; }
.az-group h2::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
.az-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.az-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 12px; background: var(--ice-50); border: 1px solid var(--line); color: var(--navy-900); text-decoration: none; font-weight: 600; }
.az-list a:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

.notfound { text-align: center; padding: 96px 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.notfound .search-form { width: 100%; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
