/*
Theme Name: mevaleo
Theme URI: https://www.mevaleo.de/
Author: Top The Web GmbH
Author URI: https://www.toptheweb.de/
Description: Schlankes Theme für die mevaleo-Informationsportale (DE, AT, CH): Weiterbildung und Studium neben dem Beruf. Startseite mit Wochenplan der Studienformen, Ratgeber-Hierarchie und Berufe-Register von A bis Z.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: Proprietary
Text Domain: mevaleo
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--ink: #1c2631;
	--grey: #56626f;
	--blue: #0f67ab;
	--blue-dark: #0b4f85;
	--night: #102a45;
	--mist: #eaf1f7;
	--line: #d3dde7;
	--paper: #ffffff;
	--marker: #f5d547;
	--marker-soft: #faeba3;

	--serif: "Literata", Georgia, "Times New Roman", serif;
	--sans: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

	--step--1: 0.875rem;
	--step-0: 1rem;
	--step-1: 1.1875rem;
	--step-2: 1.5rem;
	--step-3: 1.875rem;
	--step-4: clamp(2.125rem, 1.6rem + 2.2vw, 2.875rem);
	--step-5: clamp(2.5rem, 1.6rem + 4vw, 4.25rem);

	--wrap: 76rem;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--gap: clamp(3rem, 6vw, 5.5rem);
	--radius: 6px;
}

/* ==========================================================================
   Basis
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 var(--step-0)/1.55 var(--sans);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; box-shadow: 0 0 0 5px var(--night); border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0; color: var(--night); text-wrap: balance; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--text { width: min(100% - 2 * var(--gutter), 44rem); }
.section-gap { padding-block: var(--gap); }

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

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--night); color: #fff; font-weight: 700; }
.skip:focus { top: 1rem; }

/* ==========================================================================
   Kopf
   ========================================================================== */
.masthead { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.admin-bar .masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar .masthead { top: 0; position: relative; } }

.masthead__inner { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }

.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.brand__name { font-weight: 700; font-size: 1.875rem; letter-spacing: -0.035em; color: var(--blue); }
.brand__claim { font-size: 0.8125rem; color: var(--grey); margin-top: 0.3rem; }
.brand__logo { max-height: 3.25rem; width: auto; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.975rem; padding-block: 0.35rem; background: linear-gradient(var(--marker), var(--marker)) left 88% / 0 0.35em no-repeat; transition: background-size 0.2s ease; }
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list .current-page-ancestor > a, .nav__list a[aria-current] { background-size: 100% 0.35em; }

.nav__search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding-inline: 0.9rem 0.4rem; }
.nav__search input { border: 0; background: none; font: inherit; font-size: 0.9375rem; width: 9rem; padding: 0.45rem 0; color: var(--ink); }
.nav__search input:focus { outline: none; }
.nav__search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px var(--marker); }
.nav__search button { border: 0; background: none; color: var(--grey); padding: 0.3rem; cursor: pointer; display: grid; }

.nav-toggle { display: none; }

@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; align-items: center; gap: 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: none; padding: 0.55rem 0.85rem; font: 500 0.9375rem var(--sans); color: var(--ink); cursor: pointer; }
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 1.1rem; height: 2px; background: currentColor; position: relative; transition: transform 0.2s ease; }
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -6px; }
	.nav-toggle__bars::after { top: 6px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 1.25rem; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1.25rem var(--gutter) 1.75rem; }
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { display: block; padding-block: 0.7rem; font-size: 1.0625rem; border-bottom: 1px solid var(--mist); background: none; }
	.nav__search input { width: 100%; }
}

/* ==========================================================================
   Startseite: Einstieg und Wochenplan
   ========================================================================== */
.intro { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 3vw, 2rem); }
.intro__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.intro__title { font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.035em; hyphens: manual; max-width: 12ch; }
.intro__lead { font-family: var(--serif); font-size: var(--step-1); line-height: 1.6; color: var(--grey); margin: 1.5rem 0 0; max-width: 34em; }

.week { background: var(--mist); border-radius: calc(var(--radius) * 2); padding: clamp(1.25rem, 3vw, 2rem); }

.week__switch { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; margin-bottom: 1.5rem; }
.week__option { font: 500 0.9375rem var(--sans); color: var(--night); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 0.95rem; cursor: pointer; }
.week__option:hover { border-color: var(--night); }
.week__option[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }

.week__plan { display: grid; grid-template-columns: 4.25rem repeat(7, minmax(0, 1fr)); gap: 4px; }
.week__day { font-weight: 700; font-size: 0.875rem; color: var(--night); text-align: center; padding-bottom: 0.35rem; }
.week__row { font-size: 0.8125rem; color: var(--grey); align-self: center; }

.week__cell { position: relative; height: 4.75rem; border-radius: 3px; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.week__cell.is-job { background: repeating-linear-gradient(-45deg, #dfe7ef 0 6px, #edf2f7 6px 12px); }
.week__label { position: relative; z-index: 1; font-size: 0.75rem; font-weight: 500; color: var(--grey); text-align: center; line-height: 1.15; padding: 0 2px; }

/* Textmarker-Strich: wird beim Umschalten von links nach rechts gezogen */
.week__cell::before { content: ""; position: absolute; inset: 20% 3% 18% 3%; background: var(--marker); border-radius: 3px 10px 4px 8px / 6px 4px 10px 5px; clip-path: polygon(0 8%, 100% 0, 98% 100%, 2% 92%); transform: rotate(-1.5deg) scaleX(0); transform-origin: left center; transition: transform 0.32s cubic-bezier(0.3, 0.7, 0.2, 1); }
.week__cell.is-study::before { transform: rotate(-1.5deg) scaleX(1); }
.week__cell.is-study .week__label { color: var(--ink); font-weight: 700; }
.week__cell.is-flex::before { background: repeating-linear-gradient(90deg, var(--marker) 0 8px, var(--marker-soft) 8px 12px); }
.week__cell.is-swap::before { inset: 14% 4% 52% 4%; }
.week__cell.is-swap .week__label { align-self: start; margin-top: 18%; }
.week__cell.is-swap::after { content: "Praxis"; position: absolute; bottom: 14%; font-size: 0.75rem; font-weight: 500; color: var(--grey); }

.week__cell.is-study::before { transition-delay: calc(var(--d, 0) * 45ms); }

.week__legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; list-style: none; padding: 0; margin: 1rem 0 0; font-size: 0.8125rem; color: var(--grey); }
.week__key { display: flex; align-items: center; gap: 0.45rem; }
.week__key::before { content: ""; width: 1.1rem; height: 0.75rem; border-radius: 2px; }
.week__key--job::before { background: repeating-linear-gradient(-45deg, #cdd8e3 0 3px, #edf2f7 3px 6px); }
.week__key--study::before { background: var(--marker); }
.week__key--flex::before { background: repeating-linear-gradient(90deg, var(--marker) 0 4px, var(--marker-soft) 4px 6px); }
.week__key--swap::before { background: linear-gradient(var(--marker) 50%, #dfe7ef 50%); }
.week__key[hidden] { display: none; }

.week__info { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.week__name { font-weight: 700; font-size: var(--step-2); color: var(--night); margin: 0; letter-spacing: -0.015em; }
.week__text { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.6; margin: 0.5rem 0 0.9rem; max-width: 38em; }
.week__more { font-weight: 700; }

@media (max-width: 960px) {
	.intro__grid { grid-template-columns: 1fr; }
	.intro__title { max-width: 14ch; }
}
@media (max-width: 520px) {
	.week__plan { grid-template-columns: 2.75rem repeat(7, minmax(0, 1fr)); gap: 3px; }
	.week__row { font-size: 0.6875rem; }
	.week__cell { height: 3.75rem; }
	.week__label { font-size: 0.625rem; }
	.week__cell .week__label { font-size: 0; }
	.week__cell.is-swap::after { font-size: 0.5625rem; }
	.week__option { font-size: 0.875rem; padding: 0.45rem 0.8rem; }
}

/* ==========================================================================
   Abschnitte
   ========================================================================== */
.block { padding-block: var(--gap); }
.block--tint { background: var(--mist); }
.block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 2rem; }
.block__title { font-size: var(--step-4); letter-spacing: -0.025em; }
.block__head .block__title { margin: 0; }
.block > .wrap > .block__title { margin-bottom: 2rem; }
.block__link { font-weight: 700; }
.block__text { font-family: var(--serif); font-size: var(--step-1); color: var(--grey); margin: 0.75rem 0 0; max-width: 32em; }

/* Ratgeber-Themen */
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4.5rem); }
.topics__item { padding-block: 1.4rem 1.6rem; border-top: 2px solid var(--night); }
.topics__link { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; text-decoration: none; }
.topics__name { font-weight: 700; font-size: var(--step-2); letter-spacing: -0.015em; color: var(--night); }
.topics__link:hover .topics__name { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.topics__count { flex: none; font-size: var(--step--1); color: var(--grey); }
.topics__text { font-family: var(--serif); color: var(--grey); margin: 0.5rem 0 0; max-width: 34em; }
@media (max-width: 760px) { .topics { grid-template-columns: 1fr; } }

/* Berufe-Teaser und Alphabet */
.jobs-teaser { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 4rem; align-items: center; }
.alphabet { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.alphabet a, .alphabet span { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; font-weight: 700; font-size: 1.0625rem; border-radius: var(--radius); text-decoration: none; }
.alphabet a { background: var(--paper); color: var(--night); border: 1px solid var(--line); }
.alphabet a:hover { background: var(--marker); border-color: var(--marker); color: var(--ink); }
.alphabet span { color: #a9b5c1; }
@media (max-width: 860px) { .jobs-teaser { grid-template-columns: 1fr; } }

/* ==========================================================================
   Seiten und Artikel
   ========================================================================== */
.entry__head { padding-block: clamp(1.75rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.entry__title { font-size: var(--step-4); letter-spacing: -0.03em; max-width: 22ch; }
.entry__lead { font-family: var(--serif); font-size: 1.3125rem; line-height: 1.55; color: var(--grey); margin: 1rem 0 0; max-width: 36em; }

.crumbs { font-size: 0.875rem; color: var(--grey); margin-bottom: 1.25rem; }
.crumbs a { color: var(--grey); }
.crumbs a:hover { color: var(--blue); }
.crumbs__sep, .crumbs .separator { margin-inline: 0.5rem; color: #a9b5c1; }

.entry__body { display: grid; grid-template-columns: 15rem minmax(0, 44rem); gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2rem, 5vw, 3.5rem) var(--gap); }
.entry__body > .prose:only-child, .entry__body > .toc[hidden] + .prose { grid-column: 1 / -1; width: min(100%, 44rem); margin-inline: auto; }
.entry__image { margin: 0 0 2rem; }
.entry__image img { border-radius: var(--radius); display: block; }
.entry__updated { font-family: var(--sans); font-size: var(--step--1); color: var(--grey); margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); }

.toc { position: sticky; top: 6.5rem; align-self: start; font-size: 0.9375rem; }
.toc__head { font-weight: 700; color: var(--night); margin: 0 0 0.75rem; }
.toc__list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc__list a { display: block; padding: 0.35rem 0 0.35rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--grey); text-decoration: none; line-height: 1.35; }
.toc__list a:hover { color: var(--blue); }
.toc__list a.is-current { color: var(--night); font-weight: 700; border-left-color: var(--marker); }

@media (max-width: 1000px) {
	.entry__body { grid-template-columns: minmax(0, 1fr); }
	.toc { display: none; }
	.entry__body > .prose { width: min(100%, 44rem); }
}

/* Fließtext */
.prose { font-family: var(--serif); font-size: var(--step-1); line-height: 1.7; }
.prose > * + * { margin-top: 1.15em; }
.prose > :first-child { margin-top: 0; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: var(--step-3); margin-top: 2.2em; letter-spacing: -0.02em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.9em; }
.prose h4 { font-size: var(--step-1); margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.65em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 0; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--blue); }
.prose strong { font-weight: 600; }
.prose blockquote { margin-inline: 0; padding: 0.25em 0 0.25em 1.25em; border-left: 4px solid var(--marker); font-style: italic; color: var(--night); }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-element-caption { font-family: var(--sans); font-size: var(--step--1); color: var(--grey); margin-top: 0.5rem; }
.prose img { border-radius: var(--radius); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5em; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 0.9375rem; line-height: 1.45; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.65rem 0.9rem 0.65rem 0; border-bottom: 1px solid var(--line); }
.prose th { color: var(--night); border-bottom: 2px solid var(--night); }
.prose .wp-block-table { margin-inline: 0; }
.prose mark { background: var(--marker-soft); color: inherit; padding: 0 0.15em; }

/* Hinweisbox über die Block-Klasse "is-style-hinweis" oder Klasse .hinweis */
.prose .hinweis, .prose .is-style-hinweis { background: var(--mist); border-radius: var(--radius); padding: 1.25rem 1.5rem; font-size: 1.0625rem; }

/* Listen (Unterseiten, Suche) */
.listing { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4.5rem); }
.listing--single { grid-template-columns: minmax(0, 46rem); }
.listing__item { padding-block: 1.25rem 1.4rem; border-top: 1px solid var(--line); }
.block--tint .listing__item { border-top-color: #c6d3df; }
.listing__link { font-weight: 700; font-size: 1.25rem; line-height: 1.25; color: var(--night); text-decoration: none; }
.listing__link:hover { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; }
.listing__text { font-family: var(--serif); font-size: 1rem; color: var(--grey); margin: 0.45rem 0 0; }
@media (max-width: 760px) { .listing { grid-template-columns: 1fr; } }

/* Berufe-Register */
.alphabet--sticky { position: sticky; top: 4.5rem; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); padding-block: 0.75rem; }
.admin-bar .alphabet--sticky { top: calc(4.5rem + 32px); }
.alphabet--sticky .wrap { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.alphabet--sticky a, .alphabet--sticky span { width: 2.2rem; height: 2.2rem; font-size: 0.9375rem; }
.register { padding-block: 2.5rem var(--gap); columns: 3 17rem; column-gap: clamp(2rem, 5vw, 4rem); }
.register__group { break-inside: avoid; padding-bottom: 2rem; scroll-margin-top: 9rem; }
.register__letter { font-size: 2.25rem; line-height: 1; color: var(--blue); padding-bottom: 0.5rem; margin-bottom: 0.5rem; border-bottom: 2px solid var(--night); }
.register__list { list-style: none; margin: 0; padding: 0; }
.register__list a { display: block; padding-block: 0.4rem; color: var(--ink); text-decoration: none; font-size: 1.0625rem; }
.register__list a:hover { color: var(--blue); text-decoration: underline; }
.register__intro { padding-bottom: var(--gap); }

/* Suche */
.searchform { display: flex; gap: 0.5rem; max-width: 36rem; margin-top: 1.5rem; }
.searchform input { flex: 1; min-width: 0; font: inherit; font-size: 1.0625rem; padding: 0.75rem 1rem; border: 1px solid #b7c5d3; border-radius: var(--radius); color: var(--ink); }
.searchform input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--marker); }
.searchform button, .button, .wp-block-button__link { font: 700 1rem var(--sans); background: var(--blue); color: #fff; border: 0; border-radius: var(--radius); padding: 0.8rem 1.4rem; cursor: pointer; text-decoration: none; display: inline-block; }
.searchform button:hover, .button:hover, .wp-block-button__link:hover { background: var(--night); color: #fff; }
.result-count { color: var(--grey); margin: 0 0 1rem; }
.empty { font-family: var(--serif); font-size: var(--step-1); max-width: 36em; }

.pager { margin-top: 2.5rem; }
.pager .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pager .page-numbers { display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding-inline: 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--night); font-weight: 500; }
.pager .page-numbers.current { background: var(--night); border-color: var(--night); color: #fff; }

/* ==========================================================================
   Fuß
   ========================================================================== */
.colophon { background: var(--night); color: #c9d6e3; font-size: 0.9375rem; padding-block: 3.5rem 2.5rem; }
.colophon a { color: #fff; text-decoration: none; }
.colophon a:hover { text-decoration: underline; color: #fff; }
.colophon__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.colophon__name { font-weight: 700; font-size: 1.5rem; letter-spacing: -0.03em; color: #fff; margin: 0 0 0.5rem; }
.colophon__about p:last-child { max-width: 28em; margin: 0; }
.colophon__head { color: #fff; font-weight: 700; margin: 0 0 0.6rem; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li + li { margin-top: 0.35rem; }
.colophon a[aria-current] { background: linear-gradient(var(--marker), var(--marker)) left 92% / 100% 2px no-repeat; }
.colophon__copy { margin: 1rem 0 0; color: #93a6b9; }
@media (max-width: 760px) { .colophon__inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   WordPress-Klassen
   ========================================================================== */
.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 1em 0; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
	html { scroll-behavior: auto; }
}
