/* flink+fleißig 2026 – eigene Handschrift über dem CMS-Baukasten (Runde 2).
   Liegt VOR cms-blocks.css im <head>: jede Regel braucht body + mindestens dieselbe Tiefe.
   Raster: gleiche Abstände je Band, Fotos immer 4:3 mit Lime-Versatz, Kicker in der Grundschrift
   mit geradem Lime-Strich, Überschriften Fraunces, keine Trennlinien. */

@font-face {
    font-family: "Fraunces"; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url("/Data/Pages/Files/ff-2026/fonts/fraunces.woff2") format("woff2");
}

/* ---------- Farben & Schriften ---------- */
html body {
    --ff-lime: #afcb44;
    --ff-page: #fbf8f0;
    --ff-footer: #17290f;
    --ff-ink: #1f2717;
    --ff-shadow: 0 1px 2px rgba(31, 39, 23, .06), 0 10px 28px -14px rgba(31, 39, 23, .22);
    --ff-offset: color-mix(in srgb, #afcb44 38%, transparent);
    --ff-lime-soft: color-mix(in srgb, #afcb44 18%, #ffffff);
    --cms-primary: #627619;
    --cms-text: #1f2717;
    --cms-muted: #565e4c;
    --cms-border: #e2e4d2;
    --cms-bg-surface: #ffffff;
    --cms-bg-muted: #f2f3e4;
    --cms-bg-inverse: #1f3518;
    --cms-hero-bg: #ffffff;
    --cms-heading-align: left;
    --cms-font-heading: "Fraunces", Georgia, "Times New Roman", serif;
    --cms-font-mono: var(--cms-font);
    background-color: var(--ff-page);
    color: var(--cms-text);
}

/* ---------- Gleichmäßiger Rhythmus ---------- */
body .cms-section { --cms-section-pad: clamp(3.5rem, 7vw, 6rem); border-top: 0; }
body .cms-section.cms-bg-default { background-color: var(--ff-page); }
body .cms-section.cms-bg-muted { background-color: var(--cms-bg-muted); }
body .cms-section > .cms-media-text + .cms-feature-grid { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* Überschriften: warme Serif, linksbündig */
body .cms-section h1, body .cms-section h2, body .cms-section h3 {
    font-family: var(--cms-font-heading);
    font-variation-settings: "SOFT" 80, "WONK" 0;
    font-weight: 620;
    letter-spacing: -.012em;
    color: var(--cms-text);
}
body .cms-section h2 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); line-height: 1.15; }
body .cms-section h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }

/* ---------- Kicker: Grundschrift, gerader Lime-Strich davor ---------- */
body .cms-section .cms-eyebrow,
body .cms-richtext > p:has(> small:only-child):has(+ h2) small {
    font-family: var(--cms-font);
    font-size: .95rem;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: .02em;
    text-transform: none;
    color: var(--cms-primary);
}
body .cms-section .cms-eyebrow { display: flex; align-items: center; gap: .65rem; margin-bottom: .6rem; }
body .cms-section .cms-eyebrow::before,
body .cms-richtext > p:has(> small:only-child):has(+ h2)::before {
    content: ""; display: inline-block; flex: none; margin: 0;
    width: 28px; height: 3px; border-radius: 2px; background: var(--ff-lime);
}
body .cms-richtext > p:has(> small:only-child):has(+ h2) { display: flex; align-items: center; gap: .65rem; margin: 0 0 .6rem; }
body .cms-richtext > p:has(> small:only-child):has(+ h2) + h2 { margin-top: 0; }

/* ---------- Menü ---------- */
body .cms-menu {
    border-bottom: 0;
    background: color-mix(in srgb, var(--ff-page) 90%, transparent);
    -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
}
body .cms-menu .cms-menu-cta { white-space: nowrap; font-variant-numeric: tabular-nums; }
body .cms-menu .cms-menu-link { white-space: nowrap; }
body .cms-menu .cms-menu-items { gap: clamp(1rem, 1.6vw, 1.6rem); }
/* Sieben Menüpunkte passen erst ab 1200 px in eine Zeile — darunter der Burger des Baukastens */
@media (min-width: 768px) and (max-width: 1199.98px) {
    body .cms-menu .cms-menu-inner { height: auto; flex-wrap: wrap; }
    body .cms-menu .cms-menu-check { display: block; }
    body .cms-menu .cms-menu-toggle { display: flex; }
    body .cms-menu .cms-menu-items { display: none; width: 100%; order: 3; flex-basis: 100%; padding: 1rem 0; }
    body .cms-menu .cms-menu-check:checked ~ .cms-menu-items { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ---------- Split-Hero: Textkarte + Foto gleich hoch, Logo-Bogen dahinter ---------- */
body .cms-section:has(> .cms-hero-split) {
    align-items: stretch; position: relative; overflow: clip;
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
}
body .cms-section > .cms-hero.cms-hero-split {
    min-height: 0; border-radius: 32px; box-shadow: var(--ff-shadow);
    padding: clamp(2rem, 4vw, 3.5rem) !important;
}
body .cms-section:has(> .cms-hero-split) > .cms-image { position: relative; z-index: 1; padding-inline: 0; margin-right: 1.25rem; }
body .cms-section:has(> .cms-hero-split) > .cms-image img {
    width: 100%; height: 100%; min-height: 380px; object-fit: cover; border-radius: 32px; display: block;
}
body .cms-section:has(> .cms-hero-split)::after {
    content: ""; position: absolute; z-index: 0; pointer-events: none;
    width: clamp(220px, 24vw, 340px); aspect-ratio: 1; border-radius: 50%;
    border: clamp(12px, 1.4vw, 20px) solid color-mix(in srgb, #afcb44 45%, transparent);
    right: max(.25rem, calc((100vw - 1200px) / 2 - 3.5rem)); top: .5rem;
}
body .cms-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; }
body .cms-hero h1::after {
    content: ""; display: block; width: 72px; height: 5px; margin-top: 1.1rem;
    border-radius: 3px; background: var(--ff-lime);
}
body .cms-hero p { color: var(--cms-muted); }
body .cms-hero .cms-hero-facts { color: var(--cms-muted); font-size: .9rem; }

/* ---------- Startseite: Video vollflächig, „Menschen im Fokus" darüber ---------- */
body .cms-section.cms-width-full:has(> .cms-video):has(> .cms-hero) {
    display: grid; padding: 0; position: relative; overflow: hidden;
    min-height: clamp(540px, 84vh, 800px); background: #1f3518;
}
body .cms-section.cms-width-full:has(> .cms-video):has(> .cms-hero) > * {
    grid-area: 1 / 1; margin: 0; max-width: none; padding-inline: 0;
}
body .cms-section.cms-width-full:has(> .cms-hero) > .cms-video { position: relative; z-index: 0; }
body .cms-section.cms-width-full:has(> .cms-hero) > .cms-video .cms-video-el {
    position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0;
}
body .cms-section.cms-width-full:has(> .cms-hero) > .cms-video figcaption { display: none; }
body .cms-section.cms-width-full:has(> .cms-video) > .cms-hero {
    z-index: 1; min-height: 100%; border-radius: 0; box-shadow: none; color: #fff;
    background: linear-gradient(90deg, rgba(20, 34, 14, .88) 0%, rgba(20, 34, 14, .66) 42%, rgba(20, 34, 14, .12) 100%);
    padding: clamp(4rem, 9vw, 7rem) max(1.5rem, calc((100vw - 1200px) / 2 + 1.25rem)) !important;
}
body .cms-section.cms-width-full:has(> .cms-video) > .cms-hero h1 {
    color: #fff; font-size: clamp(3rem, 8vw, 6.2rem); line-height: 1; max-width: 12ch;
}
body .cms-section.cms-width-full:has(> .cms-video) > .cms-hero h1::after { width: 104px; height: 6px; margin-top: 1.4rem; }
body .cms-section.cms-width-full:has(> .cms-video) > .cms-hero p { color: rgba(255, 255, 255, .9); max-width: 36rem; }
body .cms-section.cms-width-full:has(> .cms-video) > .cms-hero .cms-eyebrow { color: var(--ff-lime); font-size: 1.05rem; }
body .cms-section.cms-width-full:has(> .cms-video) > .cms-hero .cms-hero-facts { color: rgba(255, 255, 255, .78); }
body .cms-section.cms-width-full:has(> .cms-video) > .cms-hero .btn.btn-primary { background: var(--ff-lime); border-color: var(--ff-lime); color: #1f2a12; }
body .cms-section.cms-width-full:has(> .cms-video) > .cms-hero .btn.cms-btn-secondary { color: #fff; border-color: rgba(255, 255, 255, .55); }
body .cms-section.cms-width-full:has(> .cms-video) > .cms-hero .btn.cms-btn-secondary:hover { color: var(--ff-lime); border-color: var(--ff-lime); }
@media (prefers-reduced-motion: reduce) {
    body .cms-section.cms-width-full:has(> .cms-hero) > .cms-video .cms-video-el { display: none; }
}

/* ---------- Fotos: immer 4:3, runde Ecken, Lime-Versatz ---------- */
body .cms-media-text .cms-media-text-media { overflow: visible; }
body .cms-media-text .cms-media-text-media img {
    aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover;
    border-radius: 28px; box-shadow: 18px 18px 0 0 var(--ff-offset);
}
body .cms-media-text.cms-media-text-img-links .cms-media-text-media img { box-shadow: -18px 18px 0 0 var(--ff-offset); }
body .cms-media-text h2 { margin-top: 0; }

/* ---------- Fließtext: Lesebreite ---------- */
body .cms-richtext > :is(p, ul, ol, h2, h3, aside, details) { max-width: 46rem; }
body .cms-richtext h3 { margin-top: 2.25rem; }

/* Sprungmarken-Block (nur <a name>) nimmt keinen Platz ein */
body .cms-section > .cms-richtext:has(> a[name]:only-child),
body .cms-section > .cms-richtext:has(> p:only-child > a[name]:only-child) { height: 0; margin: 0; padding: 0; overflow: hidden; }
body .cms-section > .cms-richtext:has(> a[name]:only-child) + *,
body .cms-section > .cms-richtext:has(> p:only-child > a[name]:only-child) + * { margin-top: 0; }

/* ---------- Karten (dl > div) ---------- */
body .cms-richtext dl {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; margin: 1.5rem 0;
}
body .cms-richtext dl > div {
    background: var(--cms-bg-surface); border-radius: 24px; padding: 1.4rem 1.5rem; box-shadow: var(--ff-shadow);
    display: flex; flex-direction: column; gap: .35rem;
}
body .cms-richtext dt { font-family: var(--cms-font-heading); font-variation-settings: "SOFT" 80; font-weight: 620; font-size: 1.15rem; color: var(--cms-text); }
body .cms-richtext dd { margin: 0; color: var(--cms-muted); }
body .cms-richtext dd a { font-weight: 650; color: var(--cms-primary); }
body .cms-richtext dd a[href^="mailto:"]::before { content: "✉\FE0E  "; }
/* Knöpfe einer Kartenreihe sitzen unten auf gleicher Höhe (25.10., Max) */
body .cms-richtext dl > div > dd:has(> menu) { margin-top: auto; }
/* Bildkarten: Foto oben, ganze Karte klickbar */
body .cms-richtext dl > div:has(> dt > img) { padding: 0 0 1.3rem; overflow: hidden; position: relative; transition: transform .2s ease, box-shadow .2s ease; }
body .cms-richtext dl > div:has(> dt > img) > * { padding-inline: 1.3rem; }
body .cms-richtext dl > div > dt:has(> img) { padding: 0; }
body .cms-richtext dt > img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 1rem; }
body .cms-richtext dt:has(> img) > a { display: block; padding-inline: 1.3rem; color: var(--cms-text); text-decoration: none; }
body .cms-richtext dt:has(> img) > a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
body .cms-richtext dl > div:has(> dt > img):hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(31, 39, 23, .06), 0 18px 36px -16px rgba(31, 39, 23, .32); }
body .cms-richtext dl > div:has(> dt > img):hover dt a { color: var(--cms-primary); }
body .cms-richtext dl > div:has(> dt > img) dd:last-child { margin-top: auto; padding-top: .5rem; }
body .cms-richtext dl > div:has(> dt > img) dd:last-child small {
    display: inline-block; background: var(--ff-lime-soft); color: var(--cms-primary);
    font-weight: 650; font-size: .8rem; padding: .25rem .7rem; border-radius: 999px;
}
body .cms-richtext > p > img { height: 72px; width: auto; }

/* ---------- Tabelle, Hinweis, Knöpfe, Linkliste ---------- */
body .cms-richtext table { width: 100%; border-collapse: separate; border-spacing: 0 .5rem; margin: 1.25rem 0; font-size: .97rem; }
body .cms-richtext th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cms-muted); font-weight: 650; padding: 0 1.1rem .2rem; border: 0; }
body .cms-richtext td { background: var(--cms-bg-surface); padding: .95rem 1.1rem; vertical-align: top; border: 0; }
body .cms-richtext td:first-child { border-radius: 18px 0 0 18px; }
body .cms-richtext td:last-child { border-radius: 0 18px 18px 0; font-weight: 650; }
body .cms-richtext td a { font-weight: 650; color: var(--cms-primary); }

body .cms-richtext aside { background: var(--ff-lime-soft); border: 0; border-radius: 20px; padding: 1.1rem 1.35rem; margin: 1.5rem 0; }
body .cms-richtext aside p { margin: 0; }

body .cms-richtext menu { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; padding: 0; margin: 1.6rem 0 .5rem; }
body .cms-richtext menu li { margin: 0; padding: 0; }
body .cms-richtext menu a {
    display: inline-block; padding: .85rem 1.7rem; border-radius: 999px; font-weight: 650; text-decoration: none;
    background: var(--cms-primary); color: #fff; border: 1.5px solid var(--cms-primary); transition: transform .15s ease, background .2s ease;
}
body .cms-richtext menu li + li a { background: transparent; color: var(--cms-text); border-color: var(--cms-border); }
body .cms-richtext menu a:hover { transform: translateY(-1px); }

body .cms-richtext ul:has(> li > a:first-child) > li { border: 0; border-left: 0; background: var(--cms-bg-surface); border-radius: 18px; box-shadow: var(--ff-shadow); }

body .cms-richtext details { margin-top: 2rem; color: var(--cms-muted); font-size: .85rem; }
body .cms-richtext details summary { cursor: pointer; font-weight: 600; }

/* ---------- Bausteine ---------- */
body .cms-feature-grid .cms-feature-item { border-top: 0; padding-top: 0; }
body .cms-feature-grid .cms-feature-item .bi {
    display: inline-grid; place-items: center; width: 3rem; height: 3rem; font-size: 1.3rem;
    border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
    background: var(--ff-lime-soft); color: var(--cms-primary);
}
body .cms-feature-grid .cms-feature-item h3 { font-size: 1.15rem; }

body .cms-steps .cms-steps-item + .cms-steps-item { border-top: 0; }
body .cms-steps .cms-steps-item { padding-block: .9rem; }
body .cms-steps.cms-steps-zahlen .cms-steps-item::before {
    width: 2.8rem; height: 2.8rem; display: inline-grid; place-items: center;
    border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
    background: var(--ff-lime-soft); color: var(--cms-primary); font-weight: 700; font-family: var(--cms-font-heading);
}
body .cms-steps h3 { font-size: 1.2rem; }

body .cms-stats .cms-stat { border-left: 0; padding-left: 0; }
body .cms-stats .cms-stat-value { font-family: var(--cms-font-heading); font-variation-settings: "SOFT" 80; color: var(--cms-primary); }

body .cms-faq .cms-faq-list { border-top: 0; }
body .cms-faq .cms-faq-item { border-bottom: 0; background: var(--cms-bg-surface); border-radius: 20px; margin-bottom: .65rem; padding-inline: 1.2rem; box-shadow: var(--ff-shadow); }
body .cms-accordion .accordion-item,
body .cms-accordion .accordion-item:last-child { border: 0; background: var(--cms-bg-surface); border-radius: 20px !important; margin-bottom: .65rem; overflow: hidden; box-shadow: var(--ff-shadow); }

body .cms-logo-band .cms-logo-band-item { filter: none; opacity: 1; background: #fff; border-radius: 16px; padding: 10px 16px; box-shadow: var(--ff-shadow); }
body .cms-logo-band .cms-logo-band-item img { height: 60px; }

body .cms-video .cms-video-el { border-radius: 28px; }

/* ---------- Dunkles Band: schwebende grüne Fläche mit Logo-Bogen ---------- */
body .cms-section.cms-bg-inverse {
    margin-inline: clamp(.6rem, 3vw, 2.5rem); margin-bottom: clamp(1.5rem, 4vw, 3rem);
    border-radius: clamp(28px, 4vw, 44px); overflow: hidden; position: relative;
    background-color: var(--cms-bg-inverse);
}
body .cms-section.cms-bg-inverse::before { content: none; animation: none; }
body .cms-section.cms-bg-inverse:is(.cms-width-wide, .cms-width-full, .cms-width-narrow)::after {
    content: ""; position: absolute; z-index: 0; pointer-events: none; animation: none; inset: auto;
    width: 340px; aspect-ratio: 1; border-radius: 50%; right: -110px; top: -120px; background: none;
    border: 24px solid color-mix(in srgb, #afcb44 26%, transparent); transform: none; opacity: 1;
}
body .cms-section.cms-bg-inverse > * { position: relative; z-index: 1; }
body .cms-section.cms-bg-inverse h2,
body .cms-section.cms-bg-inverse dt { color: #f6f3e8; }
body .cms-section.cms-bg-inverse p,
body .cms-section.cms-bg-inverse dd { color: rgba(246, 243, 232, .82); }
body .cms-section.cms-bg-inverse .cms-richtext > p:has(> small:only-child):has(+ h2) small,
body .cms-section.cms-bg-inverse .cms-eyebrow { color: var(--ff-lime); }
body .cms-section.cms-bg-inverse a { color: var(--ff-lime); }
body .cms-section.cms-bg-inverse dl > div { background: rgba(255, 255, 255, .07); box-shadow: none; }
body .cms-section.cms-bg-inverse dd a { color: var(--ff-lime); }
body .cms-section.cms-bg-inverse .cms-richtext menu a { background: var(--ff-lime); border-color: var(--ff-lime); color: #1f2a12; }
body .cms-section.cms-bg-inverse .cms-richtext menu li + li a { background: transparent; color: #f6f3e8; border-color: rgba(246, 243, 232, .45); }
body .cms-section.cms-bg-inverse small { color: rgba(246, 243, 232, .7); }

/* ---------- Fußzeile ---------- */
body .cms-footer { background: var(--ff-footer); }
body .cms-footer .cms-footer-divider { border-top-color: transparent; background: transparent; height: 0; }

/* ---------- Logo: Baukasten erzwingt 4.444 (TeamHUB-Logo) — unser Logo ist 295 × 80 ---------- */
body .cms-menu-brand img { aspect-ratio: 295 / 80; height: 40px; max-height: none; width: auto; }

/* ---------- Karten mit Liniengrafik (SVG-Motive aus tools/motive.py) ---------- */
body .cms-richtext dl:has(> div > dt > img[src$=".svg"]) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
body .cms-richtext dl > div:has(> dt > img[src$=".svg"]) { padding: 1.5rem 1.4rem 1.4rem; }
body .cms-richtext dl > div:has(> dt > img[src$=".svg"]) > * { padding-inline: 0; }
body .cms-richtext dt:has(> img[src$=".svg"]) > a { padding-inline: 0; }
body .cms-richtext dt > img[src$=".svg"] { width: 132px; aspect-ratio: 1; object-fit: contain; margin: 0 0 .8rem -6px; }
body .cms-richtext dt > b { display: block; font-weight: inherit; }
/* Karten ohne Kartenlink (Titel als <b>, eigene Knöpfe): kein Anheben beim Darüberfahren */
body .cms-richtext dl > div:has(> dt > b):hover { transform: none; box-shadow: var(--ff-shadow); }
body .cms-richtext dd menu { margin: .9rem 0 0; }
/* Genau zwei Karten: breit und quer — Grafik links, Text rechts */
body .cms-richtext dl:has(> div:first-child:nth-last-child(2) > dt > img[src$=".svg"]) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 1.5rem; }
body .cms-richtext dl:has(> div:first-child:nth-last-child(2) > dt > img[src$=".svg"]) > div {
    display: grid; grid-template-columns: 150px 1fr; grid-template-rows: auto auto 1fr; column-gap: 1.75rem; row-gap: .5rem; padding: 2rem 2.1rem;
}
body .cms-richtext dl:has(> div:first-child:nth-last-child(2) > dt > img[src$=".svg"]) > div > dd:last-child { align-self: end; }
body .cms-richtext dl:has(> div:first-child:nth-last-child(2) > dt > img[src$=".svg"]) > div > dt { display: contents; }
body .cms-richtext dl:has(> div:first-child:nth-last-child(2) > dt > img[src$=".svg"]) > div > dt > img { grid-row: 1 / -1; width: 150px; margin: 0; }
body .cms-richtext dl:has(> div:first-child:nth-last-child(2) > dt > img[src$=".svg"]) > div > dt > :is(a, b) { grid-column: 2; font-size: 1.4rem; line-height: 1.25; }
body .cms-richtext dl:has(> div:first-child:nth-last-child(2) > dt > img[src$=".svg"]) > div > dd { grid-column: 2; }

/* ---------- Logos mit Dunkel-Variante: erstes Bild hell, zweites dunkel (content.logo) ---------- */
body .cms-richtext dt > a > img { display: block; height: 52px; width: auto; aspect-ratio: auto; margin: 0 0 .7rem; }
body .cms-richtext :is(dt > a, p):has(> img + img) > img + img { display: none; }
/* Kostenträger als einzelne Schildchen */
body .cms-richtext dl > div dd:last-child:has(> small + small) { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- Akkordeon: Karten brauchen Innenabstand (Stil „ruhig" setzt ihn auf 4px) ---------- */
body .cms-section .cms-accordion .accordion-button { padding: 1.15rem 1.5rem; }
body .cms-section .cms-accordion .accordion-body { padding: .4rem 1.5rem 1.5rem; }
/* ---------- Akkordeon mit Infografik: Grafik links, Kennzahl + Text rechts ---------- */
body .cms-accordion .accordion-body:has(> p > img) {
    display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: .5rem 2rem; align-items: start; padding-top: .4rem;
}
body .cms-accordion .accordion-body > p:has(> img) { grid-row: 1 / span 3; margin: 0; }
body .cms-accordion .accordion-body > p > img { display: block; width: 100%; height: auto; }
body .cms-accordion .accordion-body > aside { grid-column: 2; margin: 0; color: var(--cms-muted); }
body .cms-accordion .accordion-body > aside b {
    display: block; font-family: var(--cms-font-heading); font-variation-settings: "SOFT" 80; font-weight: 620;
    font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.1; color: var(--cms-primary); margin-bottom: .15rem;
}
body .cms-accordion .accordion-body > p:not(:has(> img)) { grid-column: 2; margin: .4rem 0 0; }

/* ---------- Stellenanzeigen (job-ad): an das Raster der Seite angeglichen, ohne Linien ---------- */
body .cms-section > .cms-job-ad {
    padding: 0; margin-inline: max(20px, calc((100% - 1160px) / 2)); border: 0; border-radius: 28px;
    box-shadow: var(--ff-shadow); font-size: 1rem; overflow: hidden;
}
body .cms-section > .cms-job-ad + .cms-job-ad { margin-top: 2rem; }
body .cms-job-ad .cms-job-ad-bar {
    align-items: center; border: 0; border-radius: 0; background: var(--ff-lime-soft); padding: .75rem 2rem;
    font-family: var(--cms-font); font-size: .95rem; font-weight: 650; letter-spacing: .02em; text-transform: none; color: var(--cms-primary);
}
body .cms-job-ad .cms-job-ad-bar > span:last-child {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: .8rem; font-weight: 650;
    background: var(--cms-bg-surface); padding: .3rem .85rem; border-radius: 999px;
}
body .cms-job-ad .cms-job-ad-stamp {
    top: 5.1rem; right: 2rem; border-width: 2.5px; border-color: var(--cms-primary); color: var(--cms-primary);
    font-size: .7rem; padding: .45rem .8rem; opacity: 1;
}
body .cms-job-ad .cms-job-ad-body { padding: 1.9rem 2rem 1.6rem; }
body .cms-job-ad .cms-job-ad-title {
    font-family: var(--cms-font-heading); font-variation-settings: "SOFT" 80; font-weight: 620;
    font-size: clamp(1.45rem, 2.3vw, 1.95rem); line-height: 1.18; letter-spacing: -.01em; margin: 0 0 .45rem;
}
body .cms-job-ad.cms-job-ad-has-stamp .cms-job-ad-title { padding-right: 9rem; }
body .cms-job-ad .cms-job-ad-sub { font-family: inherit; font-size: .95rem; letter-spacing: 0; color: var(--cms-muted); margin: 0 0 1.3rem; }
body .cms-job-ad .cms-job-ad-tasks { gap: .55rem; margin-bottom: 1.5rem; }
body .cms-job-ad .cms-job-ad-tasks li { font-size: 1rem; padding-left: 1.4rem; }
body .cms-job-ad .cms-job-ad-tasks li::before { content: ""; top: .5em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ff-lime); }
body .cms-job-ad .cms-job-ad-facts { border: 0; background: var(--cms-bg-muted); border-radius: 20px; padding: 1.1rem 1.35rem; gap: .9rem 1.5rem; }
body .cms-job-ad .cms-job-ad-facts dt { font-family: inherit; font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--cms-muted); }
body .cms-job-ad .cms-job-ad-facts dd { font-size: .98rem; }
body .cms-job-ad .cms-job-ad-foot { border: 0; padding: 0 2rem 1.8rem; font-family: inherit; font-size: .95rem; letter-spacing: 0; color: var(--cms-muted); }
body .cms-job-ad .cms-job-ad-foot a {
    display: inline-block; margin: .4rem 0 0 .35rem; background: var(--cms-primary); color: #fff; padding: .55rem 1.25rem;
    border-radius: 999px; text-decoration: none; font-weight: 650;
}
body .cms-job-ad .cms-job-ad-foot a:hover { background: var(--cms-primary-dark); color: #fff; }

/* ---------- Dunkelmodus: sehr dunkles, warmes Grün ---------- */
@media (prefers-color-scheme: dark) {
    body .cms-richtext :is(dt > a, p):has(> img + img) > img:first-child { display: none; }
    body .cms-richtext dt > a:has(> img + img) > img + img { display: block; }
    body .cms-richtext p:has(> img + img) > img + img { display: inline; }
    body .cms-job-ad .cms-job-ad-foot a,
    body .cms-job-ad .cms-job-ad-foot a:hover { color: #1f2a12; }
    html body {
        --ff-page: #0f1a0d;
        --ff-footer: #0a1408;
        --ff-ink: #f2efe3;
        --ff-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -16px rgba(0, 0, 0, .6);
        --ff-offset: color-mix(in srgb, #afcb44 26%, transparent);
        --ff-lime-soft: color-mix(in srgb, #afcb44 20%, #172614);
        --cms-primary: #afcb44;
        --cms-primary-rgb: 175, 203, 68;
        --cms-primary-dark: #c3dc5c;
        --cms-text: #f2efe3;
        --cms-muted: #c8cbb2;
        --cms-border: #2c3e25;
        --cms-bg-surface: #182816;
        --cms-bg-muted: #13210f;
        --cms-bg-inverse: #1d3415;
        --cms-hero-bg: #182816;
        --cms-text-inverse: #f6f3e8;
        --cms-muted-inverse: #cfd2ba;
        background-color: var(--ff-page);
    }
    body .btn.btn-primary,
    body .cms-menu .cms-menu-cta,
    body .cms-richtext menu a { color: #1f2a12; }
    body .cms-richtext menu li + li a { color: var(--cms-text); }
    body .btn.btn-primary:hover,
    body .cms-menu .cms-menu-cta:hover { color: #1f2a12; background: #c3dc5c; border-color: #c3dc5c; }
    body .cms-section.cms-bg-inverse { background-image: radial-gradient(700px 320px at 85% -10%, color-mix(in srgb, #afcb44 16%, transparent), transparent 70%); }
}

/* ---------- Handy & Tablet ---------- */
@media (max-width: 900px) {
    body .cms-section:has(> .cms-hero-split) > .cms-image { margin-right: 0; padding-inline: 1.25rem; }
    body .cms-section:has(> .cms-hero-split) > .cms-image img { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
    body .cms-section:has(> .cms-hero-split)::after { display: none; }
    body .cms-section.cms-width-full:has(> .cms-video) > .cms-hero {
        background: linear-gradient(180deg, rgba(20, 34, 14, .5) 0%, rgba(20, 34, 14, .86) 55%, rgba(20, 34, 14, .92) 100%);
        justify-content: flex-end;
    }
}
@media (max-width: 640px) {
    body .cms-media-text .cms-media-text-media img,
    body .cms-media-text.cms-media-text-img-links .cms-media-text-media img { box-shadow: 10px 10px 0 0 var(--ff-offset); }
    body .cms-section.cms-bg-inverse:is(.cms-width-wide, .cms-width-full, .cms-width-narrow)::after { width: 220px; right: -90px; top: -90px; border-width: 16px; }
    body .cms-richtext table, body .cms-richtext tbody, body .cms-richtext tr, body .cms-richtext td { display: block; }
    body .cms-richtext thead { display: none; }
    body .cms-richtext tr { margin-bottom: .6rem; background: var(--cms-bg-surface); border-radius: 18px; padding: .45rem 0; }
    body .cms-richtext td, body .cms-richtext td:first-child, body .cms-richtext td:last-child { background: transparent; border-radius: 0; padding: .3rem 1.1rem; }
}
/* Kleine Viewports: der Baukasten zentriert den Hero – Strich unter der H1 zieht mit */
@media (max-width: 575.98px) {
    body .cms-hero h1::after { margin-inline: auto; }
    body .cms-richtext dt > img { aspect-ratio: 16 / 9; }
    /* Grafik-Karten quer: Motiv links klein, Text rechts */
    body .cms-richtext dl > div:has(> dt > img[src$=".svg"]),
    body .cms-richtext dl:has(> div:first-child:nth-last-child(2) > dt > img[src$=".svg"]) > div {
        display: grid; grid-template-columns: 84px 1fr; column-gap: 1rem; row-gap: .35rem; align-content: start; padding: 1.25rem 1.2rem;
    }
    body .cms-richtext dl > div:has(> dt > img[src$=".svg"]) > dt { display: contents; }
    body .cms-richtext dl > div > dt > img[src$=".svg"],
    body .cms-richtext dl:has(> div:first-child:nth-last-child(2) > dt > img[src$=".svg"]) > div > dt > img { grid-row: 1 / span 2; width: 84px; aspect-ratio: 1; margin: 0; }
    body .cms-richtext dl > div:has(> dt > img[src$=".svg"]) > dt > :is(a, b),
    body .cms-richtext dl > div:has(> dt > img[src$=".svg"]) > dd { grid-column: 2; }
    body .cms-richtext dl:has(> div:first-child:nth-last-child(2) > dt > img[src$=".svg"]) > div > dt > :is(a, b) { font-size: 1.2rem; }
    body .cms-richtext dl:has(> div:first-child:nth-last-child(2) > dt > img[src$=".svg"]) > div > dd:has(> menu) { grid-column: 1 / -1; }
    body .cms-section .cms-accordion .accordion-button { padding: 1rem 1.15rem; }
    body .cms-section .cms-accordion .accordion-body { padding: .3rem 1.15rem 1.3rem; }
    body .cms-accordion .accordion-body:has(> p > img) { grid-template-columns: 1fr; }
    body .cms-accordion .accordion-body > p:has(> img) { grid-row: auto; max-width: 17rem; margin-bottom: .6rem; }
    body .cms-accordion .accordion-body > :is(aside, p:not(:has(> img))) { grid-column: 1; }
    body .cms-job-ad.cms-job-ad-has-stamp .cms-job-ad-title { padding-right: 0; }
    body .cms-job-ad .cms-job-ad-stamp { position: static; display: inline-block; margin: 1.2rem 0 0 1.4rem; transform: rotate(-2deg); }
    body .cms-job-ad .cms-job-ad-bar { padding: .65rem 1.4rem; }
    body .cms-job-ad .cms-job-ad-body { padding: 1.2rem 1.4rem 1.3rem; }
    body .cms-job-ad .cms-job-ad-foot { padding: 0 1.4rem 1.5rem; }
    body .cms-job-ad .cms-job-ad-facts { grid-template-columns: 1fr; }
}
