/*!
 * DR. FRIEDERICH & COLLEGEN – Website-Styles v0.3.0
 * Eigenes, schlankes Stylesheet (ersetzt Avada/WordPress-CSS).
 * Schrift: Lato (SIL Open Font License), Icons: Lucide (ISC).
 */

/* ---------- Schriften (lokal) ---------- */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/lato-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/lato-latin-ext-300-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Design-Tokens ---------- */
:root {
  --navy: #2b364a;
  --navy-deep: #222b3c;
  --ink: #1a1a2e;
  --text: #474d5c;
  --muted: #646a78;
  --line: #e3e6eb;
  --soft: #f5f6f8;
  --white: #fff;

  --accent: #ff6f61;          /* Markenfarbe (dekorativ, Icons) */
  --accent-on-navy: #ff8478;  /* Markenfarbe als Text auf Navy (Kontrast ≥ 4,5:1) */
  --accent-strong: #c93f32;   /* Buttons, Links (Kontrast ≥ 4,5:1) */
  --accent-hover: #b03528;
  --accent-soft: #ffecea;
  --accent-ink: #a8362a;

  --teal: #009688;
  --teal-strong: #00796b;
  --teal-soft: #e2f3f0;
  --teal-ink: #00695c;

  /* Flächen und Text auf dunklen/farbigen Flächen – werden von den Kontrastmodi
     des Barrierefreiheits-Menüs (a11y.css) umgestellt */
  --bg: #fff;                 /* Seitenhintergrund */
  --surface: #fff;            /* Karten, Buttons, Menüs */
  --on-dark-rgb: 255 255 255; /* Text auf Navy, Teal und Koralle */
  --on-dark: rgb(var(--on-dark-rgb));
  --on-accent: #fff;          /* Text auf Buttons in Markenfarbe */
  --accent-grad-end: #d4523f;
  --teal-grad-end: #00675b;

  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgb(26 26 46 / 4%), 0 10px 30px rgb(26 26 46 / 7%);
  --shadow-hover: 0 2px 4px rgb(26 26 46 / 6%), 0 16px 40px rgb(26 26 46 / 11%);
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --section: clamp(56px, 8vw, 104px);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body.menu-open { overflow: hidden; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 .6em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; overflow-wrap: break-word; }
/* Keine Silbentrennung; Zeilen so umbrechen, dass kein einzelnes Wort allein in der letzten Zeile steht. */
p, li, dd, dt, td, th, figcaption, blockquote, address, summary, label, .lead { text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
strong { color: var(--ink); font-weight: 700; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; }

/* ---------- Hilfsklassen ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--surface); color: var(--ink); border-radius: var(--radius-s); box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-s { margin-top: 1rem; }
.mt-l { margin-top: 2.5rem; }
.small { font-size: .9rem; }
.link-strong { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; text-decoration: none; }
.link-strong:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em;
  border: 2px solid transparent; border-radius: var(--radius-s);
  font: inherit; font-size: .975rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--accent-strong); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-outline { background: var(--surface); border-color: var(--accent-strong); color: var(--accent-strong); }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent-hover); }
.btn-light { background: var(--surface); color: var(--accent-strong); }
.btn-light:hover { background: var(--accent-soft); color: var(--accent-hover); }
.btn-ghost-light { border-color: rgb(var(--on-dark-rgb) / 75%); color: var(--on-dark); background: transparent; }
.btn-ghost-light:hover { background: rgb(var(--on-dark-rgb) / 12%); color: var(--on-dark); }
.btn-teal { background: var(--surface); color: var(--teal-ink); }
.btn-teal:hover { background: var(--teal-soft); color: var(--teal-ink); }
.btn-small { min-height: 40px; padding: .5em 1em; font-size: .9rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }
.button-row--center { justify-content: center; }

/* ---------- Kopfbereich ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--on-dark); box-shadow: 0 1px 0 rgb(var(--on-dark-rgb) / 6%); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: block; flex: none; margin-right: auto; }
.brand img { width: 220px; }
.main-nav__list { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.main-nav__item { position: relative; display: flex; align-items: center; }
.main-nav__link { display: block; padding: 10px 12px; color: var(--on-dark); font-size: 1.05rem; text-decoration: none; border-radius: 8px; }
.main-nav__link:hover, .main-nav__item.is-active > .main-nav__link { color: var(--accent-on-navy); }
.main-nav__link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.has-sub .main-nav__link { padding-right: 2px; }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 36px; padding: 0; color: var(--on-dark); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.sub-toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; margin: 0; padding: 10px; list-style: none;
  background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-hover);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.is-open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 9px 14px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
.site-header__cta { margin-left: 12px; }

/* Megamenü (Desktop): Panel über die ganze Inhaltsbreite unter dem Kopfbereich.
   Geschlossen display:none – so lädt der Browser die Fotos erst beim ersten Öffnen. */
.main-nav__item.has-mega { position: static; }
/* Nur die Karte selbst nimmt die Maus an – der transparente Rand darum hält das Menü nicht offen.
   Den Weg vom Menüpunkt ins Panel überbrückt die Schließverzögerung in site.js. */
.mega { position: absolute; top: 100%; left: 0; right: 0; display: none; padding-top: 10px; pointer-events: none; }
.mega__inner { pointer-events: auto; }
html:not(.mega-js) .has-mega:hover > .mega, .has-mega:focus-within > .mega, .has-mega.is-open > .mega { display: block; animation: mega-in .18s ease-out; }
.has-mega.is-suppressed > .mega { display: none !important; }
@keyframes mega-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mega__inner {
  display: grid; grid-template-columns: minmax(280px, 34%) 1fr; overflow: hidden;
  color: var(--ink); background: var(--surface); border-radius: 18px; box-shadow: 0 24px 60px rgb(26 26 46 / 22%), 0 2px 6px rgb(26 26 46 / 8%);
}
.mega__intro {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 36px 36px 32px;
  color: rgb(var(--on-dark-rgb) / 82%); background: var(--navy); isolation: isolate; overflow: hidden;
}
.mega__intro::after {
  content: ""; position: absolute; z-index: -1; inset: auto -180px -240px auto; width: 480px; height: 480px;
  background: radial-gradient(closest-side, rgb(255 111 97 / 30%), rgb(255 111 97 / 10%) 55%, rgb(255 111 97 / 0));
}
.mega__eyebrow { margin: 0 0 10px; color: var(--accent-on-navy); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mega__title { margin: 0 0 12px; color: var(--on-dark); font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.mega__text { margin: 0 0 22px; font-size: .98rem; line-height: 1.6; }
.mega__more { display: inline-flex; gap: 8px; align-items: center; margin-top: auto; color: var(--accent-on-navy); font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.mega__more .icon { width: 18px; height: 18px; transition: transform .18s; }
.mega__more:hover .icon, .mega__more:focus-visible .icon { transform: translateX(4px); }
.mega__more:focus-visible { outline: 3px solid var(--accent-on-navy); outline-offset: 4px; border-radius: 2px; }
.mega__list { margin: 0; padding: 14px 30px; list-style: none; }
.mega__list li + li { border-top: 1px solid var(--line); }
/* Beschriftung links, Bild rechts (kompakt); Bildausschnitt je Foto so gewählt, dass keine Köpfe abgeschnitten sind */
.mega__link { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: center; padding: 10px 0; color: var(--ink); text-decoration: none; }
.mega__label { display: inline-flex; gap: 12px; align-items: center; font-size: 1.08rem; line-height: 1.3; }
.mega__label .icon { flex: none; width: 18px; height: 18px; color: var(--accent); transition: transform .18s; }
.mega__img { display: block; overflow: hidden; border-radius: 12px; }
.mega__img img { display: block; width: 100%; height: 96px; object-fit: cover; object-position: 50% 35%; transition: transform .35s ease; }
.mega__img--team-geschaeftsfuehrung-2 img { object-position: 50% 28%; }
.mega__img--beratung-gespraech img { object-position: 50% 32%; }
.mega__img--kanzlei-empfang img { object-position: 50% 52%; }
.mega__img--steuerberatung-team img { object-position: 50% 22%; }
.mega__img--team-unterlagen img { object-position: 50% 30%; }
.mega__img--buchhaltung-digital img { object-position: 50% 40%; }
.mega__img--bwl-beratung img { object-position: 50% 15%; }
.mega__img--team-karriere img { object-position: 50% 38%; }
.mega__img--team-ausbildung img { object-position: 50% 16%; }
.mega__img--team-weiterbildung img { object-position: 50% 38%; }
.mega__link:hover .mega__label, .mega__link:focus-visible .mega__label, .mega__link[aria-current="page"] .mega__label { color: var(--accent-ink); }
.mega__link:hover .mega__label .icon, .mega__link:focus-visible .mega__label .icon { transform: translateX(4px); }
.mega__link:hover .mega__img img, .mega__link:focus-visible .mega__img img { transform: scale(1.03); }
.mega__link:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 4px; border-radius: 6px; }
@media (max-width: 1240px) {
  .mega__inner { grid-template-columns: minmax(250px, 32%) 1fr; }
  .mega__intro { padding: 30px 28px 28px; }
  .mega__link { grid-template-columns: minmax(0, 1fr) 230px; }
  .mega__img img { height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .has-mega > .mega { animation: none !important; }
  .mega__img img, .mega__label .icon, .mega__more .icon { transition: none; }
}
.menu-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; color: var(--on-dark); background: none; border: 0; border-radius: 10px; cursor: pointer; }
.menu-toggle .icon { width: 30px; height: 30px; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline-flex; }

.mobile-menu { display: none; }
.mobile-menu.is-open {
  display: block; position: fixed; inset: var(--header-h) 0 0; overflow-y: auto; overscroll-behavior: contain;
  background: var(--navy-deep); border-top: 1px solid rgb(var(--on-dark-rgb) / 8%);
}
.mobile-menu__inner { padding-block: 16px 40px; }
.mobile-menu__list, .mobile-menu__list ul { margin: 0; padding: 0; list-style: none; }
.mobile-menu__list a { display: block; padding: 13px 4px; color: var(--on-dark); font-size: 1.1rem; text-decoration: none; border-bottom: 1px solid rgb(var(--on-dark-rgb) / 10%); }
.mobile-menu__list a[aria-current="page"] { color: var(--accent-on-navy); }
.mobile-menu__group { margin-top: 18px; }
.mobile-menu__group ul a { padding-left: 16px; }
.mobile-menu__heading { display: block; padding: 6px 4px; color: rgb(var(--on-dark-rgb) / 72%); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mobile-menu__contact { display: grid; gap: 12px; margin-top: 28px; }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--section); }
.section--soft { background: var(--soft); }
.section-head { max-width: 880px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.section-head__intro { color: var(--muted); font-size: 1.1rem; text-wrap: balance; }
.eyebrow {
  display: inline-block; margin: 0 0 1rem; padding: 6px 14px;
  color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase;
}
.eyebrow--teal { color: var(--teal-ink); background: var(--teal-soft); }
.eyebrow--light { color: var(--on-dark); background: rgb(var(--on-dark-rgb) / 16%); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__lead { max-width: 62ch; font-size: clamp(1.08rem, 1rem + .35vw, 1.22rem); color: var(--muted); }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.inline-contact { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 1.5rem 0 0; padding: 0; list-style: none; font-weight: 700; }
.inline-contact li { display: flex; align-items: center; gap: .5em; }
.inline-contact .icon { color: var(--accent-strong); }
.inline-contact a { color: var(--ink); text-decoration: none; }
.inline-contact a:hover { color: var(--accent-strong); text-decoration: underline; }

.section-head.mt-l { margin-top: clamp(48px, 7vw, 80px); }

/* Kompakter Seitenkopf (ohne Foto) */
.hero--compact { padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 72px); color: rgb(var(--on-dark-rgb) / 86%); background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); }
.hero--compact h1 { color: var(--on-dark); }
.hero--compact .hero__lead { color: rgb(var(--on-dark-rgb) / 82%); }
.hero--compact .hero__inner { grid-template-columns: minmax(0, 1fr); max-width: 860px; }

/* Brotkrumenpfad */
.breadcrumb { margin-bottom: clamp(20px, 3vw, 32px); font-size: .9rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin: 0 .55em; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-strong); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 700; }
.hero--compact .breadcrumb li, .hero--compact .breadcrumb li::before, .hero--compact .breadcrumb a { color: rgb(var(--on-dark-rgb) / 75%); }
.hero--compact .breadcrumb a:hover { color: var(--on-dark); }
.hero--compact .breadcrumb [aria-current] { color: var(--on-dark); }

/* ---------- Raster & Karten ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Text neben einem Kasten: der Kasten wächst nicht auf die Höhe des Textes (keine leere Fläche unten) */
.grid--2 > :not(.card) + .card, .grid--2 > .feature-box { align-self: start; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(22px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none;
}
.section--soft .card { border-color: transparent; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); }
.card--link { transition: transform .2s, box-shadow .2s, border-color .2s; }
.card--link:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 18px;
  color: var(--accent-strong); background: var(--accent-soft); border-radius: 14px;
}
.card__icon .icon { width: 24px; height: 24px; }
.card__icon--teal { color: var(--teal-strong); background: var(--teal-soft); }
.card__more { display: block; margin-top: auto; padding-top: 1.1rem; color: var(--accent-strong); font-weight: 700; font-size: .95rem; line-height: 1.4; }
.card__more .icon { display: inline-block; margin-left: .35em; vertical-align: -.15em; }
.card--link:hover .card__more .icon { transform: translateX(3px); }
.card__more .icon { transition: transform .2s; }
.card .check-list { margin-top: .5rem; }

.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 1.9em; margin-bottom: .55em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.2em; height: 1.2em; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300796b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.check-list--compact li { margin-bottom: .3em; font-size: .95rem; }
.check-list--columns { columns: 2; column-gap: 32px; }
.check-list--columns li { break-inside: avoid; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.tags li { display: inline-flex; align-items: center; gap: .4em; padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 700; color: var(--ink); }
.tags .icon { color: var(--teal-strong); width: 1em; height: 1em; }

/* Leistungsübersicht */
.service-list { display: grid; gap: 18px; }
.service-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(18px, 3vw, 36px); align-items: center; padding: clamp(22px, 3vw, 32px); background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); }
.service-row__icon { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; color: var(--accent-strong); background: var(--accent-soft); border-radius: 22px; }
.service-row__icon .icon { width: 40px; height: 40px; }
.service-row__body h3 { font-size: 1.35rem; font-weight: 400; }
.service-row__body .tags { margin-top: .9rem; }
.service-row:nth-child(even) .service-row__icon { color: var(--teal-strong); background: var(--teal-soft); }

/* Bild + Text */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.split__text h2 { margin-bottom: .5em; }

/* Hervorgehobener Block */
.feature-box { padding: clamp(28px, 4vw, 48px); color: rgb(var(--on-dark-rgb) / 92%); background: linear-gradient(135deg, var(--teal-strong), var(--teal-grad-end)); border-radius: 22px; }
.feature-box h2, .feature-box h3, .feature-box strong { color: var(--on-dark); }
.feature-box .check-list li::before { background-color: rgb(var(--on-dark-rgb) / 18%); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.feature-box a:not(.btn) { color: var(--on-dark); }
.panel-navy { padding: clamp(28px, 4vw, 52px); color: rgb(var(--on-dark-rgb) / 85%); background: var(--navy); border-radius: 22px; }
.panel-navy h2, .panel-navy h3 { color: var(--on-dark); }
.panel-navy .columns-2 { columns: 2; column-gap: 40px; }
.columns-2 > * { break-inside: avoid; }
.check-list--columns + p { margin-top: 1.25rem; }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; text-align: center; }
.stats li { padding: 8px; }
.stats strong { display: block; color: var(--teal-strong); font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem); font-weight: 700; line-height: 1.1; }
.stats span { display: block; color: var(--muted); font-size: .8rem; font-weight: 700; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; text-wrap: balance; }
.stat-inline { display: inline-flex; align-items: center; gap: 14px; margin: .5rem 0 1.5rem; padding: 14px 20px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); }
.stat-inline strong { color: var(--accent-strong); font-size: 2.2rem; line-height: 1; }
.stat-inline span { color: var(--muted); font-size: .9rem; line-height: 1.35; }

/* Personen */
.team-grid { align-items: stretch; }
/* Berufsträger-Seite: Gruppen unterschiedlicher Größe zentriert, gleiche Kartengröße in allen Gruppen
   (5 je Reihe auf dem Desktop, 3 auf dem Tablet, 2 auf dem Smartphone) – keine Lücken, keine einzelne Karte. */
.team-grid--center { --g: clamp(16px, 2.4vw, 28px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--g); }
.team-grid--center > * { flex: 0 0 calc((100% - 4 * var(--g)) / 5); min-width: 0; }
.person { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.section--soft .person { border-color: transparent; box-shadow: var(--shadow); }
.person--link { color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.person--link:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.person--link:hover .person__name { color: var(--accent-strong); }
.person[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.person__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.person__body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 22px; }
.person__body .badges { margin-top: auto; padding-top: 12px; }
.person__name { margin: 0 0 .2em; font-size: 1.1rem; }
.person__role { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.45; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.badge { display: inline-flex; align-items: center; gap: .35em; margin: 0; padding: 4px 10px; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; font-size: .8rem; font-weight: 700; }
.badge--muted { color: var(--teal-ink); background: var(--teal-soft); }
.badge--plain { color: var(--ink); background: var(--soft); }
.badge .icon { width: 1em; height: 1em; }

.contact-person { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(22px, 3vw, 36px); background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); }
.contact-person__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.contact-person__name { margin: 0 0 .1em; font-size: 1.5rem; font-weight: 400; }
.contact-person .button-row { margin-top: 1.25rem; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; border-radius: 14px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { width: 30px; height: 30px; padding: 6px; color: var(--accent-strong); background: var(--accent-soft); border-radius: 8px; transition: transform .2s; }
.faq__item[open] .faq__icon { transform: rotate(180deg); }
.faq__answer { padding: 0 22px 20px; }

/* Kontaktaufruf */
.cta-band { padding-block: clamp(48px, 7vw, 80px); color: rgb(var(--on-dark-rgb) / 92%); background: linear-gradient(120deg, var(--accent-strong), var(--accent-grad-end)); text-align: center; }
.cta-band h2 { color: var(--on-dark); margin-bottom: .4em; }
.cta-band__inner { max-width: 900px; }
.cta-band p { text-wrap: balance; }

/* Auszeichnungen */
.awards { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.award { display: flex; flex-direction: column; align-items: center; width: 220px; padding: 22px 18px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.award--wide { width: 220px; }
.award__media { display: flex; align-items: center; justify-content: center; height: 150px; margin-bottom: 14px; }
.award__media img { max-height: 150px; width: auto; border-radius: 8px; }
.award--wide .award__media img { max-width: 100%; height: auto; }
.award__title { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.35; }
.award__by { margin: .3em 0 0; color: var(--muted); font-size: .85rem; line-height: 1.4; }

/* Standorte */
.locations { display: grid; gap: clamp(28px, 4vw, 48px); }
.location { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(18px, 2.5vw, 28px); background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); }
.location__media picture { height: 100%; }
.location__media img { width: 100%; height: 100%; min-height: 260px; max-height: 520px; object-fit: cover; border-radius: 16px; }
.location__body h3 { font-size: 1.6rem; font-weight: 400; margin-bottom: .3em; }
.facts { display: grid; gap: 8px; margin: 1.25rem 0; }
.facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.facts dt { display: flex; align-items: center; gap: .5em; color: var(--ink); font-weight: 700; font-size: .95rem; }
.facts dt .icon { color: var(--accent-strong); }
.facts dd { margin: 0; }
/* Öffnungszeiten: Tag und Uhrzeit auch auf dem Smartphone nebeneinander */
.facts.facts--hours > div { grid-template-columns: minmax(118px, auto) minmax(0, 1fr); gap: 12px; }
.facts--hours dt { white-space: nowrap; }
.map { overflow: hidden; border-radius: 14px; background: var(--soft); }
.map__consent { display: grid; justify-items: start; gap: 10px; padding: 20px; font-size: .9rem; color: var(--muted); }
.map__icon { width: 28px; height: 28px; color: var(--teal-strong); }
.map iframe { display: block; width: 100%; height: 300px; border: 0; }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.download { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.section--soft .download { border-color: transparent; box-shadow: var(--shadow); }
.download__label { color: var(--ink); font-weight: 700; line-height: 1.35; }
.download__meta { color: var(--muted); font-size: .85rem; }
.download a { display: inline-flex; align-items: center; gap: .4em; margin-top: auto; padding-top: 10px; font-weight: 700; font-size: .93rem; text-decoration: none; }
.download a:hover { text-decoration: underline; }
.download--new { border: 2px solid var(--accent-strong); }
.download--new.download--teal { border-color: var(--teal-strong); }
.tag-new { align-self: flex-start; margin-bottom: 6px; padding: 2px 9px; color: var(--on-accent); background: var(--accent-strong); border-radius: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.download--teal .tag-new { background: var(--teal-strong); }
.download--teal a { color: var(--teal-ink); }
.more-downloads { margin-top: 20px; }
.more-downloads summary { display: inline-flex; align-items: center; gap: .5em; padding: 10px 18px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-weight: 700; cursor: pointer; list-style: none; }
.more-downloads summary::-webkit-details-marker { display: none; }
.more-downloads[open] summary .icon { transform: rotate(180deg); }
.more-downloads .downloads { margin-top: 16px; }

/* Rechtstexte */
.legal > * { max-width: 760px; }
.legal > .legal-grid { max-width: 860px; }
.legal h2 { margin-top: 2.2em; font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem); }
.legal h3 { margin-top: 1.6em; font-size: 1.1rem; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal .people-list { padding-left: 0; list-style: none; }
.legal .people-list li { margin-bottom: .7em; line-height: 1.5; }
.legal .card { margin-bottom: 20px; }
.legal-grid .card { margin-bottom: 0; }
.legal p, .legal li { text-wrap: wrap; }
.legal .card h2 { margin-top: 0; }
.nowrap { white-space: nowrap; }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.toc { margin: 0 0 2.5rem; padding: 0 0 1.5rem; border-bottom: 1px solid var(--line); }
.toc h2 { margin: 0 0 .6em; font-size: 1.1rem; font-weight: 700; }
.toc ol { columns: 2; column-gap: 32px; margin: 0; padding-left: 1.3em; }
.toc li { break-inside: avoid; margin-bottom: .3em; }
.stand { margin-top: 2.5rem; color: var(--muted); font-size: .9rem; }

/* Stellen */
.jobs { display: grid; gap: 16px; }
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 22px 26px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); }
.job h3 { margin: 0 0 .2em; }
.job__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; }
.job__meta li { display: inline-flex; align-items: center; gap: .4em; }
.job__facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: .7rem 0 0; }
.job__facts dt { display: flex; align-items: center; gap: .4em; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.job__facts dt .icon { color: var(--accent-strong); }
.job__facts dd { margin: .1em 0 0; color: var(--ink); font-weight: 700; line-height: 1.4; }
.notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: clamp(22px, 3vw, 32px); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.notice > .icon { width: 44px; height: 44px; padding: 10px; color: var(--teal-strong); background: var(--teal-soft); border-radius: 12px; }
.notice h3 { margin-bottom: .3em; }
.notice p { max-width: 80ch; }

/* 404 */
.error-page { padding-block: clamp(64px, 10vw, 128px); text-align: center; }
.error-page__code { margin: 0; color: var(--accent-strong); font-size: clamp(4rem, 3rem + 5vw, 7rem); font-weight: 700; line-height: 1; }

/* ---------- Fußbereich ---------- */
.site-footer { color: rgb(var(--on-dark-rgb) / 78%); background: var(--navy); font-size: .97rem; }
.site-footer a { color: rgb(var(--on-dark-rgb) / 88%); text-decoration: none; }
.site-footer a:hover { color: var(--accent-on-navy); text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 48px; padding-block: 64px 48px; }
.site-footer__brand img { width: 240px; margin-bottom: 22px; }
.site-footer__brand address { margin-bottom: 18px; line-height: 1.6; }
.site-footer__contact { margin: 0; padding: 0; list-style: none; }
.site-footer__contact li { display: flex; align-items: flex-start; gap: .65em; margin-bottom: .45em; line-height: 1.5; }
.site-footer__contact .icon { margin-top: .2em; color: var(--accent); }
.site-footer__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.site-footer__title { margin: 0 0 14px; color: var(--on-dark); font-size: 1rem; font-weight: 700; }
.site-footer__nav ul { margin: 0; padding: 0; list-style: none; }
.site-footer__nav li { margin-bottom: .55em; line-height: 1.4; }
.site-footer__bottom { border-top: 1px solid rgb(var(--on-dark-rgb) / 10%); font-size: .88rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 22px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }

/* ---------- Responsiv ---------- */
@media (max-width: 1120px) {
  .main-nav, .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand img { width: 200px; }
  :root { --header-h: 68px; }
}
@media (max-width: 1200px) {
  .team-grid--center > * { flex-basis: calc((100% - 2 * var(--g)) / 3); }
  .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-row { grid-template-columns: auto minmax(0, 1fr); }
  .service-row__action { grid-column: 2; }
  .check-list--columns, .panel-navy .columns-2 { columns: 1; }
}
@media (min-width: 1201px) {
  /* Leistungs-Zeilen: gleich breite Button-Spalte, damit die Texte überall gleich breit laufen */
  .service-row { grid-template-columns: auto minmax(0, 1fr) 220px; }
  .service-row__action .btn { width: 100%; }
}
@media (min-width: 1101px) and (max-width: 1200px) {
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1400px) {
  /* Vier Karten nebeneinander erst ab 1400 px – darunter 2 × 2, damit Texte und Links nicht gestaucht umbrechen */
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .hero__inner, .faq-layout, .split, .grid--2:not(.legal-grid) { grid-template-columns: minmax(0, 1fr); }
  .split__media img { max-height: 440px; object-fit: cover; }
  .split--reverse .split__media { order: 0; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .grid--3:not(.team-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Ungerade letzte Karte füllt die Reihe (keine einzelne halbe Karte) */
  .grid--3:not(.team-grid) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hero__media img { aspect-ratio: 16 / 9; }
}
@media (max-width: 1000px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .location { grid-template-columns: minmax(0, 1fr); }
  .location__media img { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 900px) {
  .hero__inner, .split, .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .service-row { grid-template-columns: auto minmax(0, 1fr); }
  .service-row__action { grid-column: 2; }
  .split--reverse .split__media { order: 0; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-person { grid-template-columns: minmax(0, 1fr); }
  .contact-person__photo { max-width: none; }
  .contact-person__photo img { aspect-ratio: 4 / 3; object-position: 50% 22%; }
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .service-row { grid-template-columns: minmax(0, 1fr); }
  .service-row__action { grid-column: auto; }
  .service-row__icon { width: 64px; height: 64px; border-radius: 16px; }
  .service-row__icon .icon { width: 30px; height: 30px; }
  .grid--2, .grid--3, .grid--4, .downloads { grid-template-columns: minmax(0, 1fr); }
  .team-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .team-grid--center { --g: 12px; }
  .team-grid--center > * { flex-basis: 100%; }
  .person { flex-direction: row; }
  .person__photo { flex: 0 0 108px; }
  .person__photo img { height: 100%; min-height: 136px; aspect-ratio: auto; }
  .person__body { justify-content: center; padding: 14px 16px; }
  .person__body .badges { margin-top: 10px; padding-top: 0; }
  .person__name { font-size: 1rem; }
  .person__role { font-size: .85rem; }
  .check-list--columns, .panel-navy .columns-2, .toc ol { columns: 1; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .button-row .btn { flex: 1 1 100%; }
  .job { grid-template-columns: minmax(0, 1fr); }
  .notice { grid-template-columns: minmax(0, 1fr); }
  .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
  .award { width: calc(50% - 10px); padding: 16px 12px; }
  .award:last-child:nth-child(odd) { width: 100%; }
  .award__media { height: 120px; }
  .award__media img { max-height: 120px; }
}
@media (max-width: 400px) {
  /* Lange Fachwörter („Datenschutzerklärung“, „betriebswirtschaftlichen“) passen ohne Trennung in die Zeile */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.42rem; }
  .stats span { font-size: .74rem; letter-spacing: .04em; }
  .brand img { width: 170px; }
  .site-footer__nav { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .map, .skip-link, .greeting, .event-preview, .notice-bar { display: none !important; }
  /* Schwarz auf Weiß drucken – auch heller Text auf dunklen Flächen (Seitenkopf, Buttons), deren Hintergrund der
     Browser beim Drucken weglässt */
  :root { --bg: #fff; --surface: #fff; --soft: #fff; --ink: #000; --text: #000; --muted: #333; --on-dark-rgb: 0 0 0; --on-accent: #000; --accent-on-navy: #000; }
  body { color: #000; background: #fff; font-size: 11pt; }
  a { color: #000; }
  .hero--compact, .hero--compact :is(h1, p, a, span, .eyebrow) { color: #000 !important; background: none !important; }
  .btn { color: #000 !important; background: none !important; border: 1px solid #000 !important; }
}
.h3-like { font-size: 1.2rem; font-weight: 700; margin-bottom: .45em; }
.h4-like { margin-top: 0 !important; font-size: 1.05rem; }

/* Stellen-Detailseite */
.job-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.job-detail__body h3 { margin-top: 1.4em; font-size: 1.25rem; font-weight: 400; }
.job-detail__body h3:first-child { margin-top: 0; }
.job-detail__facts { position: sticky; top: calc(var(--header-h) + 24px); }
.job-detail__facts .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.job h3 a { color: var(--ink); text-decoration: none; }
.job h3 a:hover { color: var(--accent-strong); text-decoration: underline; }
@media (max-width: 900px) {
  .job-detail { grid-template-columns: minmax(0, 1fr); }
  .job-detail__facts { position: static; }
}

/* ---------- Festtags-Aktionen (Verwaltung → Aktionen) ----------
   Aktiv über Attribute am <html>: data-event (Anlass), data-event-logo (Schmuck), data-advent (brennende Kerzen 0–4). */
.brand { position: relative; }
.brand::before, .brand::after { content: none; position: absolute; pointer-events: none; background: no-repeat center / contain; }
html[data-event-logo="muetze"] .brand::before { content: ""; left: -13px; top: -22px; width: 30px; height: 25px; background-image: url("../../mpcms/img/events/muetze.svg"); transform: rotate(-16deg); }
html[data-event-logo="stern"] .brand::before { content: ""; left: -12px; top: -16px; width: 17px; height: 17px; background-image: url("../../mpcms/img/events/stern.svg"); transform: rotate(-12deg); }
html[data-event-logo="osterei"] .brand::after { content: ""; right: -20px; top: -15px; width: 14px; height: 18px; background-image: url("../../mpcms/img/events/osterei.svg"); transform: rotate(14deg); }
html[data-event-logo="funkeln"] .brand::after { content: ""; right: -18px; top: -14px; width: 22px; height: 18px; background-image: url("../../mpcms/img/events/funkeln.svg"); }

.event-candles { display: none; position: absolute; left: calc(100% + 16px); top: 50%; width: 46px; transform: translateY(-58%); }
html[data-advent="1"] .event-candles, html[data-advent="2"] .event-candles, html[data-advent="3"] .event-candles, html[data-advent="4"] .event-candles { display: block; }
html[data-event-logo="osterei"] .event-candles, html[data-event-logo="funkeln"] .event-candles { left: calc(100% + 26px); }
.event-candles svg { display: block; width: 100%; height: auto; overflow: visible; }
.event-candles__wax rect { fill: #e04f42; }
.event-candles__wick path { stroke: rgb(var(--on-dark-rgb) / 70%); stroke-width: 1.2; stroke-linecap: round; }
.event-candles__green { fill: #13998a; }
.event-candles__flame path { fill: #ffc04d; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.event-candles__glow circle { fill: #ffd166; opacity: 0; }
html[data-advent="1"] .event-candles__flame .f1,
html[data-advent="2"] .event-candles__flame :is(.f1, .f2),
html[data-advent="3"] .event-candles__flame :is(.f1, .f2, .f3),
html[data-advent="4"] .event-candles__flame :is(.f1, .f2, .f3, .f4) { opacity: 1; }
html[data-advent="1"] .event-candles__glow .f1,
html[data-advent="2"] .event-candles__glow :is(.f1, .f2),
html[data-advent="3"] .event-candles__glow :is(.f1, .f2, .f3),
html[data-advent="4"] .event-candles__glow :is(.f1, .f2, .f3, .f4) { opacity: .28; }
.event-candles__flame path { animation: flame-flicker 2.4s ease-in-out infinite; }
.event-candles__flame .f2 { animation-delay: -.6s; }
.event-candles__flame .f3 { animation-delay: -1.3s; }
.event-candles__flame .f4 { animation-delay: -1.9s; }
@keyframes flame-flicker { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(.92, 1.08); } 60% { transform: scale(1.05, .94); } }

/* Festtagsgruß: dezente Karte unten links, kein blockierendes Fenster */
.greeting {
  position: fixed; z-index: 45; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start; width: min(420px, calc(100vw - 32px));
  padding: 18px 44px 18px 18px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 18px 50px rgb(26 26 46 / 20%), 0 2px 6px rgb(26 26 46 / 8%); animation: greeting-in .45s cubic-bezier(.2, .8, .2, 1);
}
.greeting[hidden] { display: none; }
.greeting[data-level="wichtig"] { border: 2px solid var(--accent-strong); }
@keyframes greeting-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.greeting__art { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; background: var(--accent-soft); border-radius: 16px; }
.greeting__art img { width: 64px; height: 64px; object-fit: contain; }
.greeting__body { min-width: 0; }
.greeting__title { margin: 2px 0 6px; color: var(--ink); font-size: 1.22rem; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.greeting__text { margin: 0; font-size: .97rem; line-height: 1.55; }
.greeting__note { margin: 10px 0 0; padding: 8px 10px; color: var(--ink); font-size: .9rem; line-height: 1.45; background: var(--soft); border-radius: 8px; }
.greeting__sign { margin: 10px 0 0; color: var(--muted); font-size: .88rem; font-style: italic; }
.greeting__close { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; color: var(--muted); background: none; border: 0; border-radius: 10px; cursor: pointer; }
.greeting__close:hover { color: var(--ink); background: var(--soft); }
.greeting__close:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 1px; }
.greeting__close .icon { width: 20px; height: 20px; }
body.menu-open .greeting, body.consent-open .greeting { display: none; }
@media (max-width: 640px) {
  /* Platz rechts für das Barrierefreiheits-Symbol lassen */
  .greeting { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; width: calc(100vw - 32px - 64px); padding: 14px 40px 14px 14px; }
  .greeting__art { width: 56px; height: 56px; border-radius: 12px; }
  .greeting__art img { width: 48px; height: 48px; }
  .greeting__title { font-size: 1.08rem; }
  .greeting__text { font-size: .92rem; }
}

/* Vorschau einer Aktion (nur für angemeldete Mitarbeiter, siehe Verwaltung → Aktionen) */
.event-preview {
  position: fixed; z-index: 70; top: calc(var(--header-h) + 10px); right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; max-width: calc(100vw - 32px); padding: 8px 10px 8px 14px;
  color: #fff; background: #1a1a2e; border: 2px solid #ffc04d; border-radius: 12px; box-shadow: 0 10px 30px rgb(0 0 0 / 25%); font-size: .9rem;
}
.event-preview strong { color: #ffc04d; }
.event-preview button { padding: 6px 10px; color: #1a1a2e; font: inherit; font-weight: 700; background: #ffc04d; border: 0; border-radius: 8px; cursor: pointer; }
.event-preview button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .event-candles__flame path, .greeting { animation: none !important; }
}

/* ---------- Hinweise (Verwaltung → Aktionen → Hinweise) ---------- */
.notice-bar { color: var(--on-dark); background: var(--navy-deep); border-bottom: 1px solid rgb(var(--on-dark-rgb) / 12%); }
.notice-bar--wichtig { color: var(--on-accent); background: var(--accent-strong); border-bottom-color: rgb(0 0 0 / 12%); }
.notice-bar__inner { display: flex; gap: 12px; align-items: center; padding-block: 10px; }
.notice-bar__icon { flex: none; width: 22px; height: 22px; }
.notice-bar--info .notice-bar__icon { color: var(--accent-on-navy); }
.notice-bar__text { margin: 0; font-size: .97rem; line-height: 1.5; }
.notice-bar__text strong { color: inherit; font-weight: 700; }
.notice-bar__text a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.notice-bar__text a:focus-visible, .notice-bar__close:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; border-radius: 4px; }
.notice-bar__close { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: auto; padding: 0; color: inherit; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.notice-bar__close:hover { background: rgb(255 255 255 / 16%); }
.notice-bar__close .icon { width: 20px; height: 20px; }
.notice-bar + .notice-bar { border-top: 0; }
@media (max-width: 640px) {
  .notice-bar__inner { align-items: flex-start; gap: 10px; padding-block: 9px; }
  .notice-bar__icon { width: 20px; height: 20px; margin-top: 2px; }
  .notice-bar__text { font-size: .92rem; }
}
.hours-note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 10px 14px; color: var(--accent-ink); background: var(--accent-soft); border-radius: 10px; font-weight: 700; line-height: 1.45; }
.hours-note .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.site-footer__note span { color: var(--accent-on-navy); font-weight: 700; }
.greeting__link { margin: 10px 0 0; }

/* ---------- Formulare (Kontakt, Bewerbung) – ab 0.9.0 ---------- */
.form-trap { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-card { padding: clamp(22px, 3.5vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.section--soft .form-card { border-color: transparent; box-shadow: var(--shadow); }
.form-card--small { padding: clamp(20px, 2.4vw, 26px); }
.form-card--small h3 { margin-bottom: .6em; font-size: 1.1rem; }
.form-card--small p { margin-bottom: .55em; }
.form-card__title { margin-bottom: .8em; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); font-weight: 700; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
.form-field { display: grid; gap: 6px; margin: 0 0 18px; min-width: 0; }
.form-field[data-inactive] { display: none; }
/* Zusatzfeld nur beim passenden Anliegen – auch ohne JavaScript (forms.js sperrt es zusätzlich) */
.contact-form:has(.topic__input:checked) [data-topic-only] { display: none; }
.contact-form:has(.topic__input[value="termin"]:checked) [data-topic-only="termin"]:not([data-inactive]) { display: grid; }
.form-field > label, .form-label { color: var(--ink); font-size: .95rem; font-weight: 700; line-height: 1.4; }
.form-opt { color: var(--muted); font-size: .85rem; font-weight: 400; }
.form-input {
  width: 100%; min-height: 50px; padding: 11px 14px; color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.5;
  background: var(--surface); border: 1.5px solid #b9bfca; border-radius: var(--radius-s);
  transition: border-color .15s, box-shadow .15s;
}
textarea.form-input { min-height: 150px; resize: vertical; }
.form-input::placeholder { color: #7b8190; opacity: 1; }
.form-input:hover { border-color: #8d95a3; }
.form-input:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 4px rgb(201 63 50 / 18%); }
.form-input[aria-invalid="true"] { border-color: var(--accent-strong); box-shadow: inset 4px 0 0 var(--accent-strong); }
.form-input[aria-invalid="true"]:focus { box-shadow: inset 4px 0 0 var(--accent-strong), 0 0 0 4px rgb(201 63 50 / 18%); }
.form-help { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.form-error { display: flex; gap: 8px; align-items: flex-start; margin: 2px 0 0; color: var(--accent-ink); font-size: .9rem; font-weight: 700; line-height: 1.45; }
.form-error .icon { margin-top: 2px; width: 1.05em; height: 1.05em; }
.form-check + .form-error { margin: -10px 0 16px; }
.form-summary { margin: 0 0 22px; padding: 16px 18px; color: var(--ink); background: var(--accent-soft); border-left: 4px solid var(--accent-strong); border-radius: var(--radius-s); }
.form-summary:focus { outline: 3px solid var(--accent); outline-offset: 3px; }
.form-summary ul { margin: .4em 0 0; }
.form-summary p + p { margin-top: .5em; }
.form-summary a { color: var(--accent-ink); font-weight: 700; }
.form-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; margin: 4px 0 20px; font-size: .93rem; line-height: 1.55; }
.form-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent-strong); cursor: pointer; }
.form-check label { cursor: pointer; }
.form-card .btn[type="submit"][disabled] { opacity: .75; cursor: progress; transform: none; }
.form-note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.form-note span { text-wrap: balance; }
.form-note .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--teal-strong); }

/* Anliegen (Kacheln als Optionsfelder) */
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.topic { position: relative; display: block; min-width: 0; cursor: pointer; }
.topic__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.topic__box {
  display: grid; gap: 6px; height: 100%; padding: 18px 18px 16px; color: var(--ink);
  background: var(--surface); border: 2px solid var(--line); border-radius: 16px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.section--soft .topic__box { border-color: transparent; box-shadow: var(--shadow); }
.topic__icon { width: 28px; height: 28px; margin-bottom: 4px; color: var(--teal-strong); }
.topic__box strong { font-size: 1.03rem; line-height: 1.3; }
.topic__box small { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.topic:hover .topic__box { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.topic__input:checked + .topic__box { border-color: var(--accent-strong); box-shadow: 0 0 0 4px var(--accent-soft); }
.topic__input:checked + .topic__box .topic__icon { color: var(--accent-strong); }
.topic__input:focus-visible + .topic__box { outline: 3px solid var(--accent); outline-offset: 3px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.contact-side { display: grid; gap: clamp(16px, 2vw, 24px); }
.contact-side .link-strong { overflow-wrap: anywhere; }
.steps-list { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps-list li { position: relative; margin: 0 0 .7em; padding-left: 40px; counter-increment: step; line-height: 1.5; }
.steps-list li::before {
  content: counter(step); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 27px; height: 27px;
  color: var(--teal-ink); background: var(--teal-soft); border-radius: 50%; font-size: .85rem; font-weight: 700;
}
.steps-list li:last-child { margin-bottom: 0; }

/* Datei-Upload (das echte Eingabefeld liegt unsichtbar über der Fläche – Klick und Ablegen funktionieren ohne JavaScript) */
.upload { position: relative; }
.upload__input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.upload__zone {
  display: grid; justify-items: center; gap: 4px; padding: 24px 18px; text-align: center; color: var(--muted);
  background: var(--soft); border: 2px dashed #b9bfca; border-radius: 14px; font-size: .92rem; line-height: 1.45;
  transition: border-color .15s, background-color .15s;
}
.upload__zone .icon { width: 30px; height: 30px; margin-bottom: 4px; color: var(--accent-strong); }
.upload__zone strong { color: var(--ink); }
.upload__zone u { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.upload:hover .upload__zone, .upload.is-dragover .upload__zone { border-color: var(--accent-strong); background: var(--accent-soft); }
.upload__input:focus-visible + .upload__zone { outline: 3px solid var(--accent); outline-offset: 3px; }
.upload__input[aria-invalid="true"] + .upload__zone { border-color: var(--accent-strong); }
.upload__list { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; font-size: .9rem; }
.upload__list:empty { display: none; }
.upload__list li { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); }
.upload__list li .icon { color: var(--accent-strong); }
.upload__list li span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload__list li span + span { margin-left: auto; color: var(--muted); white-space: nowrap; }
.upload__list li.is-invalid { color: var(--accent-ink); border-color: var(--accent-strong); background: var(--accent-soft); }

/* Stellen-Detailseite mit Formular */
.job-chips { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.job-chips li { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; font-weight: 700; line-height: 1.4; }
.job-chips .icon { color: var(--accent-strong); }
.job-detail--apply { grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr); }
.apply-form .form-field { margin-bottom: 16px; }
.apply-form .btn[type="submit"] { width: 100%; justify-content: center; }

/* Danke-Seite */
.thanks { padding-block: clamp(56px, 9vw, 112px); background: var(--soft); }
.thanks__card { max-width: 760px; margin-inline: auto; padding: clamp(28px, 5vw, 56px); text-align: center; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); }
.thanks__card .hero__lead { margin-inline: auto; text-wrap: balance; }
.thanks__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; color: var(--teal-strong); background: var(--teal-soft); border-radius: 50%; }
.thanks__icon .icon { width: 32px; height: 32px; }

@media (max-width: 1100px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-detail--apply { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .contact-side { grid-template-columns: minmax(0, 1fr); }
  .topics { gap: 10px; }
  .topic__box { padding: 14px; }
  .topic__box small { display: none; }
}
@media (max-width: 380px) {
  .topics { grid-template-columns: minmax(0, 1fr); }
  .topic__box { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
  .topic__icon { margin: 0; }
}
@media print {
  .contact-form, .apply-form, .job-detail__apply { display: none !important; }
}

/* Allgemeine Auftragsbedingungen im Impressum (0.9.2) */
.legal .terms-list { padding-left: 0; list-style: none; }
.legal .terms-list li { margin-bottom: 1em; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); line-height: 1.55; }
.legal .terms-list .link-strong { margin-top: .35em; }

/* =====================================================================
   MP CMS – Farben für die Bausteine des Kerns (Barrierefreiheits-Menü, Cookie-Banner)
   Die Stylesheets des Kerns (public/mpcms/css/a11y.css, consent.css) lesen diese Variablen; die Kontrastmodi
   „dunkel“ und „hell“ erhalten hier die Akzent- und Zweitfarben dieser Website (sonst: brand.css).
   ===================================================================== */
:root { --ui-primary: #2b364a; --ui-focus: #c93f32; }
html[data-a11y-contrast-dark] {
  --accent: #ff8a7e; --accent-strong: #ff8a7e; --accent-hover: #ffa79e; --accent-soft: #3b2421; --accent-ink: #ffaba2; --accent-grad-end: #ff9d93;
  --teal: #5fd6c6; --teal-strong: #5fd6c6; --teal-soft: #12332f; --teal-ink: #84e3d6; --teal-grad-end: #4cc3b3;
  --accent-on-navy: #ff8a7e;
}
html[data-a11y-contrast-dark] body .feature-box { background: #0f3a35; }
html[data-a11y-contrast-dark] body .cta-band { background: #3b2421; }
html[data-a11y-contrast-dark] body .cta-band .btn-light { color: #ffaba2; }
html[data-a11y-contrast-light] {
  --accent: #8f1a0e; --accent-strong: #8f1a0e; --accent-hover: #6e130a; --accent-soft: #fff; --accent-ink: #6e130a; --accent-grad-end: #8f1a0e;
  --teal: #00463b; --teal-strong: #00463b; --teal-soft: #fff; --teal-ink: #00463b; --teal-grad-end: #00463b;
  --accent-on-navy: #8f1a0e;
}
