/*
Theme Name: Effizienz in der Praxis
Theme URI: https://effizienzpraxis.de/
Author: Verlag für Unternehmenspraxis
Description: Eigenständiges Magazin-Theme für effizienzpraxis.de (Startseite, Ressorts, Artikel, Suche).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: effizienzpraxis
*/

/* ==========================================================================
   Effizienz in der Praxis – Magazin-Design 2027
   Aufbau: 1 Schrift · 2 Tokens · 3 Basis · 4 Kopf/Navigation · 5 Bausteine
           6 Startseite · 7 Ressortseite · 8 Artikel · 9 FAQ/Formular · 10 Fuß
           11 WordPress-Ergänzungen
   ========================================================================== */

/* ---------- 1. Schrift (lokal, DSGVO-konform, SIL OFL) ---------- */
/* @font-face wird per PHP mit lokalem Pfad eingebunden (functions.php). */

/* ---------- 2. Design-Tokens ---------- */
:root {
  /* Farbwelt „Tinte & Mint“ */
  --tinte: #0e1a2b;       /* Nachtblau: Logo, dunkle Flächen, Überschriften */
  --tinte-2: #1a2a40;     /* Hover/Flächen auf Dunkel */
  --petrol: #0b6b65;      /* Primärfarbe: Links, Buttons (5,9:1 auf Papier) */
  --mint: #8ee6cb;        /* Akzent aus dem bisherigen Logo – nur auf Dunkel/als Fläche */
  --mint-hell: #def6ee;
  --papier: #f5f7f6;      /* Seitenhintergrund (kühles Off-White) */
  --nebel: #e8ecea;       /* Flächen */
  --linie: #d3dad7;
  --weiss: #ffffff;
  --text: #142131;
  --text-2: #4c5a66;      /* Nebentexte (6,6:1) */
  --auf-dunkel: #a9b8c6;  /* Nebentext auf Tinte (8,6:1) */
  --fehler: #b42318;

  /* Ressortfarben (Kicker, Linien, Icons) – alle ≥ 4,9:1 auf Papier */
  --c-prozessoptimierung: #0b6b65;
  --c-automatisierung-ki: #5b3fc4;
  --c-tools-systeme: #1f5fa8;
  --c-ratgeber: #a3530a;
  --c-praxisbeispiele: #2f7a2f;
  --c-expertenstimmen: #b4235a;

  /* Schrift */
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;

  /* Maße */
  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 32px);
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 10px 28px -14px rgba(14, 26, 43, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 3. Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--petrol); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--tinte); }
h1, h2, h3, h4 { margin: 0; font-weight: 750; line-height: 1.15; letter-spacing: -.015em; color: var(--tinte); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; border-radius: 2px; }
.nav :focus-visible, .band--dark :focus-visible, .footer :focus-visible, .side-cta :focus-visible { outline-color: var(--mint); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--tinte); color: var(--weiss); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }

/* ---------- 4. Kopfbereich ---------- */
.masthead { background: var(--weiss); border-top: 4px solid var(--tinte); }
.masthead__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-block: 22px; }
.brand { display: inline-block; text-decoration: none; }
.brand img { width: 260px; height: auto; }
@media (min-width: 768px) { .masthead .brand img { width: 340px; } }
.masthead__meta { text-align: right; font-size: 13.5px; color: var(--text-2); }
.masthead__meta p { margin: 0; }
.masthead__claim { font-weight: 650; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--tinte); margin-bottom: 4px !important; }
.masthead__date span { margin: 0 .5em; color: var(--linie); }
.masthead__date a { color: var(--text-2); }
.masthead__date a:hover { color: var(--petrol); }
@media (max-width: 767px) { .masthead__meta { display: none; } }

/* Ressort-Navigation (dunkel, klebt beim Scrollen) */
.nav { position: sticky; top: 0; z-index: 50; background: var(--tinte); color: var(--weiss); }
.nav__in { display: flex; align-items: center; gap: 12px; min-height: 54px; }
.nav__mini { display: none; }
.nav__mini svg { width: 30px; height: 30px; }
.nav.is-stuck .nav__mini { display: block; }
.nav__toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; margin-left: -12px; border: 0; background: none; color: var(--weiss); font-weight: 650; cursor: pointer; border-radius: var(--radius); }
.nav__toggle .icon { font-size: 22px; }
.nav__toggle .i-close { display: none; }
.nav.is-open .nav__toggle .i-close { display: block; }
.nav.is-open .nav__toggle .i-menu { display: none; }
.nav__list { list-style: none; display: none; }
.nav__list a { display: flex; align-items: center; gap: 9px; padding: 13px 0; color: var(--weiss); text-decoration: none; font-weight: 550; font-size: 15.5px; white-space: nowrap; }
.nav__list a::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--mint); opacity: .55; flex: none; transition: opacity .2s; }
.nav__list a:hover, .nav__list a[aria-current] { color: var(--mint); }
.nav__list a:hover::before, .nav__list a[aria-current]::before { opacity: 1; }
.nav.is-open .nav__list { display: block; position: absolute; left: 0; right: 0; top: 100%; padding: 6px var(--gutter) 16px; background: var(--tinte); border-top: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow); }
.nav.is-open .nav__list li + li { border-top: 1px solid rgba(255, 255, 255, .08); }
.nav__search { margin-left: auto; display: flex; align-items: center; position: relative; }
.nav__search input { width: 150px; padding: 8px 36px 8px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 99px; background: var(--tinte-2); color: var(--weiss); font-size: 14.5px; transition: width .25s var(--ease), border-color .2s; }
.nav__search input::placeholder { color: var(--auf-dunkel); }
.nav__search input:focus { width: 210px; border-color: var(--mint); outline: none; }
.nav__search button { position: absolute; right: 4px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--auf-dunkel); cursor: pointer; }
.nav__search button .icon { font-size: 17px; }
@media (min-width: 1140px) {
  .nav__toggle { display: none; }
  .nav__list { display: flex !important; position: static !important; padding: 0 !important; box-shadow: none !important; border: 0 !important; background: none !important; gap: 26px; }
  .nav__list li + li { border: 0 !important; }
  .nav__list a { padding: 16px 0 14px; border-bottom: 3px solid transparent; }
  .nav__list a[aria-current] { border-bottom-color: var(--mint); }
  .nav.is-stuck .nav__mini { margin-right: 8px; }
}
@media (min-width: 1140px) and (max-width: 1259px) { .nav__list { gap: 18px; } .nav__list a { font-size: 15px; } .nav__search input { width: 120px; } }

/* Ressortfarben über Datenattribut */
[data-c="prozessoptimierung"] { --c: var(--c-prozessoptimierung); }
[data-c="automatisierung-ki"] { --c: var(--c-automatisierung-ki); }
[data-c="tools-systeme"] { --c: var(--c-tools-systeme); }
[data-c="ratgeber"] { --c: var(--c-ratgeber); }
[data-c="praxisbeispiele"] { --c: var(--c-praxisbeispiele); }
[data-c="expertenstimmen"] { --c: var(--c-expertenstimmen); }

/* ---------- 5. Bausteine ---------- */
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--c, var(--petrol)); text-decoration: none; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
a.kicker:hover { color: var(--tinte); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13.5px; color: var(--text-2); }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta .icon { font-size: 14px; }

.section { padding-block: clamp(44px, 6vw, 76px); }
.section + .section { padding-top: 0; }
.lead + .section { padding-top: 0; }
.band--dark + .section, .band--tint + .section { padding-top: clamp(44px, 6vw, 76px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 12px; margin-bottom: 28px; border-bottom: 3px solid var(--tinte); }
.section-head h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.025em; }
.section-head__pre { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c, var(--petrol)); margin-bottom: 4px; }
.section-head a { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.section-head a .icon { transition: transform .2s var(--ease); }
.section-head a:hover .icon { transform: translateX(3px); }

/* Bild mit festem Seitenverhältnis */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--nebel); aspect-ratio: 16 / 9; }
.media picture { display: block; width: 100%; height: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.media--32 { aspect-ratio: 3 / 2; }

/* Karte: ganzer Teaser klickbar (Link auf Überschrift, ::after deckt Karte ab) */
.card { position: relative; display: flex; flex-direction: column; }
.card .media { margin-bottom: 16px; }
.card .media::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--c, var(--petrol)); }
.card__title { font-size: 20px; line-height: 1.25; font-weight: 750; margin-bottom: 10px; }
.card__title a { color: var(--tinte); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .kicker { position: relative; z-index: 2; align-self: flex-start; }
.card__text { color: var(--text-2); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; }
.card:hover .card__title a { text-decoration: underline; text-decoration-color: var(--c, var(--petrol)); text-decoration-thickness: 2px; }
.card:hover .media img { transform: scale(1.035); }

.grid { display: grid; gap: 40px 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: var(--radius); background: var(--tinte); color: var(--weiss); font-weight: 650; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.btn:hover { background: var(--petrol); color: var(--weiss); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--light { background: var(--mint); color: var(--tinte); }
.btn--light:hover { background: var(--weiss); color: var(--tinte); }
.btn--ghost { background: transparent; color: var(--tinte); box-shadow: inset 0 0 0 1.5px var(--tinte); }
.btn--ghost:hover { background: var(--tinte); color: var(--weiss); }

.breadcrumb { font-size: 13.5px; color: var(--text-2); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; color: var(--text-2); }
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--petrol); text-decoration: underline; }

/* ---------- 6. Startseite ---------- */
.intro { padding-top: clamp(30px, 4.5vw, 52px); padding-bottom: clamp(26px, 3vw, 36px); display: grid; gap: 14px 48px; align-items: end; }
.intro h1 { font-size: clamp(28px, 3.8vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; max-width: 24ch; }
.intro h1 span { color: var(--petrol); }
.intro p { margin: 0; color: var(--text-2); max-width: 50ch; font-size: 17.5px; }
@media (min-width: 1024px) { .intro { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

/* Aufmacher */
.lead { display: grid; gap: 36px; padding-bottom: clamp(44px, 6vw, 72px); grid-template-columns: minmax(0, 1fr); }
.lead__main { position: relative; }
.lead__main .media { margin-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
.lead__body { position: relative; padding: 24px 0 0; }
.lead__main h2 { font-size: clamp(27px, 3.2vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -.028em; margin-bottom: 14px; }
.lead__main h2 a { color: var(--tinte); text-decoration: none; }
.lead__main h2 a::after { content: ""; position: absolute; inset: 0; }
.lead__main:hover h2 a { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--c); }
.lead__main:hover .media img { transform: scale(1.02); }
.lead__main .kicker { position: relative; z-index: 2; }
.lead__main .meta + h2 { margin-top: 12px; }
.lead__text { font-size: 18px; color: var(--text-2); max-width: 62ch; }
@media (min-width: 1024px) {
  .lead { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 44px; }
  .lead > .lead__main .lead__body { margin: -64px 56px 0 0; padding: 26px 30px 0 0; background: var(--papier); border-top-right-radius: var(--radius-lg); }
  .lead__side { border-left: 1px solid var(--linie); padding-left: 32px; }
}
.lead__side { display: flex; flex-direction: column; min-width: 0; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tinte); padding-bottom: 10px; border-bottom: 3px solid var(--tinte); }

/* Nummerierte Liste „Neu erschienen“ */
.numlist { list-style: none; counter-reset: n; }
.numlist__item { position: relative; counter-increment: n; padding: 18px 0 18px 58px; border-bottom: 1px solid var(--linie); }
.numlist__item::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.4px var(--c, var(--tinte)); }
.numlist__item .kicker { margin-bottom: 6px; position: relative; z-index: 2; }
.numlist__item h3 { font-size: 17px; line-height: 1.3; font-weight: 700; }
.numlist__item h3 a { color: var(--tinte); text-decoration: none; }
.numlist__item h3 a::after { content: ""; position: absolute; inset: 0; }
.numlist__item:hover h3 a { text-decoration: underline; text-decoration-color: var(--c); }
.numlist__item .meta { margin-top: 6px; font-size: 12.5px; }

/* Kompakte Teaser mit Bild */
.mini { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--linie); }
@media (min-width: 640px) { .mini { grid-template-columns: minmax(0, 1fr) 104px; } }
.mini .kicker { margin-bottom: 6px; position: relative; z-index: 2; }
.mini h3 { font-size: 17px; line-height: 1.3; font-weight: 700; }
.mini h3 a { color: var(--tinte); text-decoration: none; }
.mini h3 a::after { content: ""; position: absolute; inset: 0; }
.mini:hover h3 a { text-decoration: underline; text-decoration-color: var(--c); }
.mini .media { aspect-ratio: 1; }
.mini .meta { margin-top: 6px; font-size: 12.5px; }

/* Dunkles Themenband „Methoden-Kompass“ */
.band--dark { background: var(--tinte); color: var(--auf-dunkel); position: relative; overflow: hidden; }
.band--dark::before { /* Gantt-Balken als Hintergrundmotiv (aus dem Signet) */
  content: ""; position: absolute; right: -40px; top: 40px; width: 460px; height: 220px; pointer-events: none; opacity: .5;
  background:
    linear-gradient(var(--tinte-2), var(--tinte-2)) 0 0 / 52% 44px no-repeat,
    linear-gradient(var(--tinte-2), var(--tinte-2)) 12% 88px / 64% 44px no-repeat,
    linear-gradient(#17384a, #17384a) 24% 176px / 76% 44px no-repeat;
}
.band--dark h2, .band--dark h3 { color: var(--weiss); }
.band--dark a { color: var(--mint); }
.band--dark a:hover { color: var(--weiss); }
.band__head { display: grid; gap: 16px 48px; margin-bottom: 40px; position: relative; }
.band__head .kicker { color: var(--mint); }
.band__head h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.band__head p { margin: 0; max-width: 54ch; }
@media (min-width: 1024px) { .band__head { grid-template-columns: 1fr 1fr; align-items: end; } }
.methods { list-style: none; display: grid; gap: 1px; background: rgba(142, 230, 203, .16); border: 1px solid rgba(142, 230, 203, .16); border-radius: var(--radius-lg); overflow: hidden; position: relative; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .methods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .methods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .methods { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.methods li { display: flex; }
.method { position: relative; flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 24px; background: var(--tinte); color: var(--auf-dunkel) !important; text-decoration: none; transition: background .25s var(--ease); }
.method__tag { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.method__name { font-size: clamp(24px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--weiss); hyphens: manual; }
.method__text { font-size: 14.5px; line-height: 1.45; padding-right: 22px; }
.method__arrow { position: absolute; right: 20px; bottom: 22px; font-size: 18px; color: var(--mint); transition: transform .2s var(--ease); }
.method:hover { background: var(--tinte-2); }
.method:hover .method__name { color: var(--mint); }
.method:hover .method__arrow { transform: translateX(4px); }

/* Expertenstimmen */
.voice { position: relative; }
.voice__pic { position: relative; }
.voice .media { margin-bottom: 14px; }
.voice__name { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c, var(--petrol)); margin-bottom: 6px; }
.voice h3 { font-size: 18px; line-height: 1.3; font-weight: 700; }
.voice h3 a { color: var(--tinte); text-decoration: none; }
.voice h3 a::after { content: ""; position: absolute; inset: 0; }
.voice:hover h3 a { text-decoration: underline; }
.voice:hover .media img { transform: scale(1.03); }
.voice__quote { position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--mint); color: var(--tinte); }
.voice__quote svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }

/* Fokus-Band (Ressortfarbe, sehr hell) */
.band--tint { background: color-mix(in srgb, var(--c) 7%, var(--papier)); border-block: 1px solid color-mix(in srgb, var(--c) 18%, var(--papier)); }
.band--tint .section-head { border-bottom-color: var(--c); }
.focus { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
.focus .card__title { font-size: clamp(22px, 2.2vw, 27px); }
.focus__list .mini:first-child { padding-top: 0; }
@media (min-width: 1024px) { .focus { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; } }

/* Ressort-Spalten */
.ressorts { display: grid; gap: 40px 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ressorts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ressorts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ressort { border-top: 4px solid var(--c); padding-top: 16px; display: flex; flex-direction: column; }
.ressort__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ressort__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius); background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); flex: none; }
.ressort__icon .icon { font-size: 20px; }
.ressort h3 { font-size: 20px; font-weight: 800; }
.ressort h3 a { color: var(--tinte); text-decoration: none; }
.ressort h3 a:hover { color: var(--c); }
.ressort__count { margin-left: auto; padding: 2px 9px; border-radius: 99px; background: var(--weiss); border: 1px solid var(--linie); font-size: 12.5px; font-weight: 650; color: var(--text-2); }
.ressort ul { list-style: none; margin-bottom: 14px; }
.ressort li { border-top: 1px solid var(--linie); }
.ressort li a { display: block; padding: 11px 0; color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.4; }
.ressort li a:hover { color: var(--c); text-decoration: underline; }
.ressort__more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--c); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ressort__more:hover { color: var(--tinte); }

/* ---------- 7. Ressortseite ---------- */
.cat-head { padding: clamp(30px, 5vw, 56px) 0 clamp(26px, 4vw, 40px); border-bottom: 1px solid var(--linie); margin-bottom: clamp(30px, 4vw, 48px); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 8%, transparent), transparent); }
.cat-head .breadcrumb { margin-bottom: 18px; }
.cat-head__in { display: grid; gap: 18px 48px; }
.cat-head h1 { display: flex; align-items: center; gap: 16px; font-size: clamp(36px, 5vw, 62px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
.cat-head h1 .ressort__icon { width: 58px; height: 58px; border-radius: var(--radius-lg); }
.cat-head h1 .ressort__icon .icon { font-size: 30px; }
.cat-head__text { font-size: 18px; color: var(--text-2); max-width: 60ch; margin: 0; }
.cat-head__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cat-head__facts li { padding: 6px 14px; border-radius: 99px; background: var(--weiss); border: 1px solid var(--linie); font-size: 14px; }
.cat-head__facts strong { color: var(--c); }
@media (min-width: 1024px) { .cat-head__in { grid-template-columns: 1.1fr 1fr; align-items: end; } }
.cat-body { padding-bottom: clamp(56px, 7vw, 96px); }
.lead--cat { padding-bottom: 56px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 56px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--linie); background: var(--weiss); text-decoration: none; color: var(--text); font-weight: 650; }
.pager [aria-current] { background: var(--tinte); border-color: var(--tinte); color: var(--weiss); }
.pager a:hover { border-color: var(--petrol); color: var(--petrol); }

/* ---------- 8. Artikel ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--mint); transform: scaleX(0); transform-origin: 0 50%; }
.a-head { padding: clamp(26px, 4vw, 48px) 0 28px; }
.a-head__in { max-width: 920px; }
.a-head .breadcrumb { margin-bottom: 26px; }
.a-head h1 { font-size: clamp(30px, 4.4vw, 54px); font-weight: 800; line-height: 1.06; letter-spacing: -.032em; margin-bottom: 20px; }
.a-head__dek { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--text-2); margin-bottom: 24px; max-width: 64ch; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding-top: 18px; border-top: 1px solid var(--linie); }
.byline__who { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.byline__who svg { width: 38px; height: 38px; }
.byline__who strong { display: block; color: var(--tinte); }
.byline__who span { color: var(--text-2); font-size: 13px; }
.a-hero { margin: 0 0 clamp(30px, 4vw, 52px); }
.a-hero .media { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }
@media (min-width: 1024px) { .a-hero .media { aspect-ratio: 2 / 1; } }

.a-layout { display: grid; gap: 40px; padding-bottom: clamp(48px, 6vw, 80px); grid-template-columns: minmax(0, 1fr); }
.a-layout > * { min-width: 0; }
@media (min-width: 1100px) { .a-layout { grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; } }
.a-aside { display: none; }
@media (min-width: 1100px) { .a-aside { display: block; } .a-aside__sticky { position: sticky; top: 80px; display: grid; gap: 22px; } .toc-mobile { display: none; } }

.toc { font-size: 14.5px; }
.toc ol { list-style: none; border-left: 2px solid var(--linie); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--tinte); }
.toc a.is-active { color: var(--petrol); border-left-color: var(--petrol); font-weight: 650; }
.toc__title { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tinte); margin-bottom: 10px; }
.toc-mobile { margin-bottom: 28px; border: 1px solid var(--linie); border-radius: var(--radius-lg); background: var(--weiss); }
.toc-mobile summary { padding: 14px 18px; font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary .icon { transition: transform .2s; }
.toc-mobile[open] summary .icon { transform: rotate(180deg); }
.toc-mobile .toc { padding: 0 18px 16px; }

.side-cta { padding: 22px; border-radius: var(--radius-lg); background: var(--tinte); color: var(--auf-dunkel); font-size: 14.5px; }
.side-cta h2 { color: var(--weiss); font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.side-cta .btn { width: 100%; min-height: 42px; margin-top: 6px; font-size: 14.5px; }

/* Fließtext */
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: #1b2836; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose > p:first-of-type::first-letter { float: left; font-family: var(--sans); font-size: 4.1em; line-height: .8; margin: .07em .1em 0 0; color: var(--petrol); font-weight: 800; }
.prose h2 { font-family: var(--sans); font-size: clamp(24px, 2.5vw, 30px); font-weight: 800; letter-spacing: -.025em; line-height: 1.2; margin-top: 2.1em; scroll-margin-top: 80px; }
.prose h3 { font-family: var(--sans); font-size: 19px; font-weight: 750; line-height: 1.35; margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--petrol); }
.prose a { color: var(--petrol); text-decoration-color: rgba(11, 107, 101, .45); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--tinte); }
.note { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--mint-hell); font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--text); }
.note .icon { font-size: 22px; color: var(--petrol); margin-top: 1px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--linie); border-radius: var(--radius-lg); background: var(--weiss); font-family: var(--sans); }
.prose .table-wrap { margin-top: 1.6em; margin-bottom: .4em; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--nebel); }
thead th { background: var(--tinte); color: var(--weiss); font-weight: 650; font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { font-weight: 650; color: var(--tinte); }
tbody tr:nth-child(even) { background: #f9fbfa; }
.pullquote { margin: 1.8em 0; padding: 22px 0 20px; border-top: 3px solid var(--tinte); border-bottom: 1px solid var(--tinte); font-family: var(--sans); font-weight: 700; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.35; letter-spacing: -.015em; color: var(--tinte); }
.pullquote p { margin: 0; }
.prose ol.steps { list-style: none; padding: 0; counter-reset: s; }
.prose ol.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 54px; border-top: 1px solid var(--linie); margin: 0; }
.prose ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 13px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius); background: var(--tinte); color: var(--mint); font: 700 15px/1 var(--sans); }
.prose ol.steps li strong:first-child { display: block; }

.related { padding-block: clamp(48px, 6vw, 72px); background: var(--nebel); }

/* ---------- 9. FAQ & Formular ---------- */
.split { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
.split > * { min-width: 0; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.faq { border-top: 1px solid var(--tinte); }
.faq__item { border-bottom: 1px solid var(--linie); }
.faq__q { margin: 0; font-size: inherit; }
.faq__btn { width: 100%; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 0; border: 0; background: none; text-align: left; font-family: var(--sans); font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; color: var(--tinte); cursor: pointer; }
.faq__btn .icon { margin-top: 3px; font-size: 20px; color: var(--petrol); transition: transform .25s var(--ease); }
.faq__btn[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq__btn:hover { color: var(--petrol); }
.faq__a { padding: 0 36px 20px 0; color: var(--text-2); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
.faq__a p:last-child { margin: 0; }
.prose .faq { margin-top: 1em; }

.form-card { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-lg); background: var(--weiss); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(24px, 2.5vw, 30px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 8px; }
.form-card [data-form-view] > p { color: var(--text-2); }
.form-grid { display: grid; gap: 16px; margin-top: 22px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 6px; color: var(--tinte); }
.field label small { font-weight: 400; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--linie); border-radius: var(--radius); background: var(--papier); font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--petrol); background: var(--weiss); box-shadow: 0 0 0 3px rgba(11, 107, 101, .18); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--fehler); }
.field__error { display: block; margin-top: 4px; font-size: 13.5px; color: var(--fehler); }
.field__error:empty { display: none; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14.5px; color: var(--text-2); }
.field .check { font-weight: 400; color: var(--text-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--petrol); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.form-status { font-size: 14.5px; color: var(--text-2); margin: 0; }
.form-status.is-error { color: var(--fehler); }
.form-success { text-align: center; padding: 20px 0; }
.form-success:focus { outline: none; }
.form-success .tick { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--mint); color: var(--tinte); }
.form-success .tick .icon { font-size: 30px; stroke-width: 2.4; }

/* ---------- 10. Fußbereich ---------- */
.footer { background: var(--tinte); color: var(--auf-dunkel); font-size: 15px; padding: clamp(48px, 6vw, 72px) 0 28px; }
.footer a { color: #dfe7ee; text-decoration: none; }
.footer a:hover { color: var(--mint); text-decoration: underline; }
.footer__grid { display: grid; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer .brand { margin-bottom: 18px; }
.footer .brand img { width: 280px; }
.footer h2 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--weiss); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer__about { max-width: 46ch; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: 13.5px; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }

/* 404 */
.notfound { text-align: center; padding: clamp(60px, 10vw, 120px) var(--gutter); }
.notfound h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin-bottom: 14px; }
.notfound p { color: var(--text-2); max-width: 50ch; margin: 0 auto 26px; }

/* Mobil */
@media (max-width: 639px) { .prose { font-size: 17.5px; line-height: 1.66; } .table-wrap table { min-width: 560px; } }

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Druck */
@media print {
  .nav, .a-aside, .toc-mobile, .related, .footer, .progress, .side-cta { display: none !important; }
  body { background: #fff; }
  .prose { font-size: 12pt; }
}

/* Mobil: Grid-Spalten nicht durch lange Wörter aufdehnen */
.intro, .cat-head__in { grid-template-columns: minmax(0, 1fr); }
.intro > *, .cat-head__in > *, .cat-head h1 { min-width: 0; }
@media (max-width: 479px) { .cat-head h1 { font-size: 31px; gap: 12px; } .cat-head h1 .ressort__icon { width: 46px; height: 46px; } }
@media (min-width: 1024px) {
  .intro { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .cat-head__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
.section-head { flex-wrap: wrap; row-gap: 6px; }
@media (max-width: 1023px) { .band--dark::before { display: none; } }

/* ---------- 11. WordPress-Ergänzungen ---------- */
.icon.flip { transform: rotate(180deg); }
.prose blockquote, .prose .wp-block-quote { margin: 1.8em 0; padding: 22px 0 20px; border: 0; border-top: 3px solid var(--tinte); border-bottom: 1px solid var(--tinte); font-family: var(--sans); font-weight: 700; font-size: clamp(20px, 2vw, 24px); line-height: 1.4; letter-spacing: -.01em; color: var(--tinte); }
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: .6em; }
.prose blockquote cite { display: block; margin-top: 12px; font-size: 15px; font-weight: 500; font-style: normal; color: var(--text-2); }
.prose figure { margin: 1.6em 0; }
.prose img { border-radius: var(--radius-lg); height: auto; }
.prose figcaption, .a-hero__cap, .prose .wp-element-caption { margin-top: 8px; font-family: var(--sans); font-size: 14px; color: var(--text-2); }
.prose h4 { font-family: var(--sans); font-size: 17px; font-weight: 750; margin-top: 1.5em; }
.prose hr { border: 0; border-top: 1px solid var(--linie); margin: 2em 0; }
.prose .wp-block-image { margin: 1.6em 0; }
.prose .aligncenter { margin-inline: auto; }
.a-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 40px 0 0; }
.a-tags a { display: inline-block; padding: 5px 12px; border: 1px solid var(--linie); border-radius: 999px; background: var(--weiss); font-size: 14px; text-decoration: none; color: var(--text); }
.a-tags a:hover { border-color: var(--petrol); color: var(--petrol); }
.page-layout { max-width: 800px; padding-bottom: clamp(48px, 7vw, 90px); }
.prose--page > p:first-of-type::first-letter { float: none; font: inherit; color: inherit; margin: 0; }
.search-big { display: flex; gap: 8px; max-width: 620px; margin-top: 22px; }
.search-big--center { margin-inline: auto; }
.search-big input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--weiss); font: inherit; color: var(--text); }
.search-big input:focus { outline: 2px solid var(--petrol); outline-offset: 1px; border-color: var(--petrol); }
.pager .dots { border: 0; background: none; }
.rank-math-breadcrumb { display: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
