/* basis.css – Schrift, Grundlagen und Rahmen (Kopf, Menü, Fuß, Schnellkontakt).
 * Das Inhalts-Design (jj-ds) kommt aus alt.css, das beim Bau auf die
 * tatsächlich benutzten Regeln gekürzt wird. */

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/schrift/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/schrift/source-sans-3-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
}

:root {
  --kfo-dunkel: #343637;
  --kfo-dunkel-2: #28332f;
  --kfo-salbei: #779c94;
  --kfo-gruen: #5b7872;
  --kfo-mint: #bacec7;
  --kfo-creme: #fbf4ee;
  --kfo-text: #404041;
  --kfo-rand: 1250px;
  --kfo-kopf-h: 84px;
}

/* ---------- Grundlagen (ersetzt Hello-Theme reset.css/theme.css) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kfo-kopf-h) + 12px); }
body { margin: 0; font-family: "Source Sans 3", "SS3 Fallback", system-ui, sans-serif; color: var(--kfo-text); background: #fff; line-height: 1.5; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--kfo-gruen); }
.kfo-nur-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kfo-springen { position: absolute; left: 12px; top: -60px; z-index: 1000; background: #fff; color: var(--kfo-dunkel); padding: .6rem 1rem; border-radius: 8px; }
.kfo-springen:focus { top: 12px; }
main:focus { outline: none; }

.kfo-knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .7rem 1.5rem; border: 0; border-radius: 999px;
  background: var(--kfo-gruen); color: #fff; font: 600 1rem/1.2 inherit; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 22px rgba(52, 54, 55, .18);
}
.kfo-knopf--hell, .kfo-kopf a.kfo-knopf--hell { background: var(--kfo-creme); color: var(--kfo-dunkel); }
.kfo-kopf a.kfo-knopf--hell:hover { background: #fff; color: var(--kfo-dunkel); }
/* Termin-Knopf im Kopf trägt für den Tag Manager (.terminbuchen a.elementor-button) die alte Elementor-Klasse –
   deren übernommene Regeln hier neutralisieren */
.kfo-kopf .terminbuchen { display: contents; }
.kfo-kopf .terminbuchen a.elementor-button { font-size: 1rem !important; line-height: 1.5 !important; transition: transform .3s, text-shadow .3s !important; }
.kfo-knopf:focus-visible, .kfo-menue a:focus-visible, .kfo-menue button:focus-visible { outline: 3px solid var(--kfo-mint); outline-offset: 2px; }

/* ---------- Kopf ---------- */
/* Rahmen-Elemente gegen geerbte Inhalts-Regeln (alt.css) abschirmen */
.kfo-kopf, .kfo-fuss, .kfo-schnell, .kfo-kopf button, .kfo-kopf a, .kfo-fuss a, .kfo-schnell a { font-family: "Source Sans 3", "SS3 Fallback", system-ui, sans-serif; letter-spacing: normal; }
.kfo-kopf { position: sticky; top: 0; z-index: 100; background: var(--kfo-dunkel); color: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.kfo-kopf__innen { max-width: 1320px; margin: 0 auto; min-height: var(--kfo-kopf-h); padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.kfo-kopf__logo { flex: none; display: block; line-height: 0; }
.kfo-kopf__logo img { width: auto; height: 58px; }

.kfo-menue { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.kfo-menue__liste { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.kfo-menue__punkt { position: relative; display: flex; align-items: center; }
.kfo-kopf .kfo-menue__link, .kfo-kopf .kfo-menue__link:visited { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .55rem; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.02rem; cursor: pointer; }
.kfo-menue__link svg { width: 17px; height: 17px; fill: var(--kfo-mint); flex: none; }
.kfo-kopf .kfo-menue__punkt.ist-aktiv > .kfo-menue__link, .kfo-kopf .kfo-menue__link:hover { color: var(--kfo-mint); }
.kfo-menue__auf { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 36px; margin-left: -6px; padding: 0; background: none; border: 0; color: #fff; cursor: pointer; }
.kfo-menue__auf svg { width: 16px; height: 16px; transition: transform .2s; }
.kfo-menue__auf[aria-expanded="true"] svg { transform: rotate(180deg); }
.kfo-menue__unter { list-style: none; margin: 0; padding: .5rem; position: absolute; top: 100%; left: 0; min-width: 260px;
  background: #fff; border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, .18); display: none; }
.kfo-kopf .kfo-menue__unter a { display: block; padding: .55rem .8rem; border-radius: 8px; color: var(--kfo-dunkel); text-decoration: none; font-weight: 500; }
.kfo-kopf .kfo-menue__unter a:hover, .kfo-kopf .kfo-menue__unter a[aria-current="page"] { background: rgba(186, 206, 199, .35); color: var(--kfo-dunkel); }
.kfo-menue__auf[aria-expanded="true"] + .kfo-menue__unter { display: block; }
@media (hover: hover) and (min-width: 1181px) {
  .kfo-menue__punkt:hover > .kfo-menue__unter, .kfo-menue__punkt:focus-within > .kfo-menue__unter { display: block; }
}
.kfo-menue__fuss { display: flex; align-items: center; gap: 18px; }
.kfo-kopf .kfo-sprache { color: #fff; text-decoration: none; font-weight: 600; letter-spacing: .04em; padding: .5rem; }
.kfo-sprache:hover { color: var(--kfo-mint); }

.kfo-burger { display: none; margin-left: auto; width: 46px; height: 46px; padding: 11px; background: none; border: 0; cursor: pointer; }
.kfo-burger span { display: block; height: 2px; margin: 5px 0; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.kfo-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kfo-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.kfo-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
  .kfo-burger { display: block; }
  .kfo-menue { position: fixed; inset: var(--kfo-kopf-h) 0 0 auto; width: min(420px, 100vw); flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 12px 20px 120px; background: var(--kfo-dunkel); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; }
  .kfo-menue.ist-offen { transform: none; visibility: visible; }
  .kfo-menue__liste { flex-direction: column; align-items: stretch; gap: 0; }
  .kfo-menue__punkt { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .kfo-menue__link { flex: 1; padding: .95rem .2rem; font-size: 1.1rem; }
  .kfo-menue__auf { width: 46px; height: 46px; }
  .kfo-menue__unter { position: static; width: 100%; min-width: 0; background: transparent; box-shadow: none; padding: 0 0 .6rem 1.9rem; }
  .kfo-kopf .kfo-menue__unter a { color: #e7eeeb; padding: .55rem .2rem; }
  .kfo-kopf .kfo-menue__unter a:hover, .kfo-kopf .kfo-menue__unter a[aria-current="page"] { background: none; color: var(--kfo-mint); }
  .kfo-menue__fuss { justify-content: space-between; padding-top: 20px; }
  html.kfo-menue-offen { overflow: hidden; }
}
@media (max-width: 600px) { :root { --kfo-kopf-h: 70px; } .kfo-kopf__logo img { height: 48px; } .kfo-kopf__innen { padding: 0 16px; } }

/* ---------- Beitrag ---------- */
.kfo-beitrag__kopf { max-width: 1200px; margin: 0 auto; padding: 40px 20px 16px; }
.kfo-beitrag__kats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.kfo-beitrag__kat { display: inline-block; padding: .3rem .9rem; border: 1px solid var(--kfo-mint); border-radius: 999px; color: var(--kfo-gruen); text-decoration: none; font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.kfo-beitrag__kopf h1 { margin: .8rem 0 0; font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 400; line-height: 1.15; color: var(--kfo-dunkel); }
.kfo-beitrag__raster { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.kfo-beitrag--ohne-bild .kfo-beitrag__raster { grid-template-columns: minmax(0, 1fr); }
.kfo-beitrag__bild { margin: 24px 0 0; position: sticky; top: calc(var(--kfo-kopf-h) + 24px); }
.kfo-beitrag__bild img { width: 100%; border-radius: 22px; display: block; box-shadow: 0 18px 44px rgba(52, 54, 55, .12); }
@media (max-width: 900px) {
  .kfo-beitrag__raster { grid-template-columns: 1fr; }
  .kfo-beitrag__bild { position: static; order: -1; }
}

/* ---------- Externe Inhalte (Karte, Video) ---------- */
.kfo-extern { position: relative; min-height: 280px; height: 100%; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #e9efec, #d9e4df); }
.kfo-extern__hinweis { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: var(--kfo-dunkel); }
.kfo-extern__hinweis p { margin: 0; max-width: 28em; font-size: .95rem; }
.kfo-extern iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Fuß ---------- */
.kfo-fuss { margin-top: 64px; background: linear-gradient(180deg, var(--kfo-dunkel), var(--kfo-dunkel-2)); color: #d9e2de; border-radius: 36px 36px 0 0; }
.kfo-fuss a, .kfo-fuss a:visited { color: #fff; text-decoration: none; }
.kfo-fuss a:hover { color: var(--kfo-mint); }
.kfo-fuss h2 { margin: 0 0 1.2rem; font-size: 1.6rem; font-weight: 400; color: var(--kfo-mint); }
.kfo-fuss__innen { max-width: var(--kfo-rand); margin: 0 auto; padding: 90px 24px 60px; display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.1fr; gap: 40px; }
.kfo-fuss__praxis img { width: 190px; margin-bottom: 1.5rem; }
.kfo-fuss ul { list-style: none; margin: 0; padding: 0; }
.kfo-fuss__kontakt li { margin: .35rem 0; }
.kfo-fuss__sozial { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.2rem !important; }
.kfo-fuss .kfo-fuss__sozial a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; }
.kfo-fuss .kfo-fuss__sozial svg { width: 18px; height: 18px; fill: currentColor; }
.kfo-fuss__sonder { margin: .4rem 0 0; font-style: italic; color: #bacec7; }
.kfo-fuss__links li { margin: 0 0 .7rem; }
.kfo-fuss__links a { font-weight: 600; font-size: 1.05rem; }
.kfo-fuss__karte .kfo-extern { min-height: 340px; }
.kfo-fuss__unten { max-width: var(--kfo-rand); margin: 0 auto; padding: 22px 24px 110px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .95rem; }
.kfo-fuss__unten ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 1000px) { .kfo-fuss__innen { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .kfo-fuss__innen { grid-template-columns: 1fr; padding-top: 60px; } .kfo-fuss { border-radius: 24px 24px 0 0; } }

/* ---------- Schnellkontakt ---------- */
.kfo-schnell { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.kfo-schnell a, .kfo-schnell a:visited { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 700; color: var(--kfo-dunkel);
  background: rgba(233, 240, 237, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(91, 120, 114, .35); box-shadow: 0 10px 28px rgba(52, 54, 55, .18); }
.kfo-schnell svg { width: 22px; height: 22px; fill: var(--kfo-gruen); }
.kfo-schnell__tel { width: 50px; height: 50px; justify-content: center; border-radius: 50%; }
.kfo-schnell__tel .kfo-schnell__text { display: none; }
.kfo-schnell a.kfo-schnell__termin { color: var(--kfo-dunkel) !important; }
.kfo-schnell__termin { padding: .75rem 1.2rem; border-radius: 999px; font-size: 1.1rem; }
@media (max-width: 767px) {
  .kfo-schnell { left: 12px; right: 12px; bottom: 12px; flex-direction: row; justify-content: stretch; gap: 10px; }
  .kfo-schnell a { flex: 1; justify-content: center; height: 52px; border-radius: 16px; }
  .kfo-schnell__tel { width: auto; }
  .kfo-schnell__tel .kfo-schnell__text { display: inline; }
}

/* Barrierefreiheits-Knopf: über dem Schnellkontakt halten */
.jj-a11y-fab { bottom: 150px !important; }
@media (max-width: 767px) { .jj-a11y-fab { bottom: 80px !important; } }

/* ---------- 404 ---------- */
.kfo-404 { max-width: 760px; margin: 0 auto; padding: 64px 20px 24px; }
.kfo-404 h1 { margin: 0 0 .6em; font-size: 1.9rem; line-height: 1.25; color: var(--kfo-dunkel); }
.kfo-404 ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.kfo-404 a { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--kfo-mint); border-radius: 999px; text-decoration: none; }

/* ---------- Einwilligung ---------- */
.kfo-ew { position: fixed; inset: 0; z-index: 2147483647; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(28, 32, 31, .55); }
.kfo-ew__box { width: min(620px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; color: var(--kfo-text); border-radius: 18px; padding: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); font-family: "Source Sans 3", "SS3 Fallback", system-ui, sans-serif; }
.kfo-ew__box h2 { margin: 0 0 12px; font-size: 1.45rem; color: var(--kfo-dunkel); }
.kfo-ew__text p { margin: 0 0 8px; font-size: .9rem; line-height: 1.45; }
.kfo-ew__gruppen { border: 0; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.kfo-ew__gruppe { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start; padding: 10px 12px; border: 1px solid #dfe7e4; border-radius: 12px; cursor: pointer; }
.kfo-ew__gruppe input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--kfo-gruen); grid-row: span 2; }
.kfo-ew__gruppe span { font-size: .85rem; line-height: 1.4; color: #5c5f60; }
.kfo-ew__knoepfe { display: grid; gap: 10px; }
.kfo-ew__knoepfe .kfo-knopf { width: 100%; border-radius: 10px; font-family: inherit; }
.kfo-knopf--zweit { background: #e9f0ed; color: var(--kfo-dunkel); box-shadow: none; }
.kfo-ew__links { display: flex; gap: 18px; justify-content: center; margin: 14px 0 0; font-size: .9rem; }
html.kfo-ew-offen { overflow: hidden; }
.kfo-ew .kfo-ew__knoepfe .kfo-knopf { color: #fff; background: var(--kfo-gruen); font-size: 1rem; font-weight: 600; }
.kfo-ew .kfo-ew__knoepfe .kfo-knopf--zweit { color: var(--kfo-dunkel); background: #e9f0ed; border: 1px solid #c9d8d2; }
.kfo-ew .kfo-ew__knoepfe .kfo-knopf--zweit:hover { background: #dde8e3; }
