/* ISI – warme Vergleichsfassung der Startseite.
   Liegt über site.css und fx.css. Türkis bleibt als Markenakzent, das Fast-Schwarz weicht
   Creme, Sand und einem warmen Dunkelbraun; Schaltflächen bleiben in den Blautönen der Marke, Ocker setzt Akzente; Rot gibt es nur im Praxisbeispiel. */

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

:root {
  --cream: #fbf6ec;
  --sand: #f3e9d8;
  --terra: #bf4e33;          /* nur noch im Praxisbeispiel „Ein Fall, viele Hilfen“ */
  --petrol: #1f7f86;
  --petrol-deep: #17666c;
  --terra-deep: #a23f27;
  --ocker: #e9b44c;
  --ink: #2c2723;
  --ink-deep: #231f1c;
  --ink-soft: #3a332e;
  --paper: var(--sand);
  --mist: #eadfcc;
  --line: #e0d3bd;
  --line-dark: rgba(255, 240, 220, .18);
  --text: #2b2622;
  --text-soft: #5f564d;
  --on-dark: #fbf3e6;
  --on-dark-soft: #d6cabb;
  --f-head: "Fraunces", Georgia, "Times New Roman", serif;
  --f-label: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --r: 28px;
  --r-s: 16px;
}

body { background: var(--cream); color: var(--text); }
h1, h2, h3, .quote { font-family: var(--f-head); font-weight: 560; letter-spacing: -.012em; line-height: 1.12; }
::selection { background: var(--ocker); color: var(--ink); }

/* Überzeilen: normale Schreibweise statt schmaler Großbuchstaben */
.eyebrow { font-family: var(--f-text); text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; color: var(--petrol-deep); }
.eyebrow::before { border: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ocker); }
.dark .eyebrow { color: var(--ocker); }
.brand span, .head-tel, .mega h3, .mega .tag, .mob h3, .entry small, .pill, .hub small, .node small, .cta-item small, .foot h3, .quote-by, .net-legend, .fact b, .tile b, .job small { text-transform: none; letter-spacing: 0; }
.brand span { font-size: .86rem; font-weight: 500; }
.head-tel { font-weight: 600; }
.pill { font-size: .8rem; font-weight: 500; background: rgba(44, 39, 35, .7); }
.pill--new { background: var(--ocker); border-color: var(--ocker); color: var(--ink); }
.entry small, .cta-item small, .foot h3, .mega h3, .mob h3 { font-size: .9rem; font-weight: 600; }
.hub small, .node small { font-size: .74rem; }

/* Hervorhebung: Türkis bleibt, dazu ein Ocker-Strich wie mit dem Textmarker */
.hl { color: var(--eau-dark); background: linear-gradient(transparent 68%, rgba(233, 180, 76, .5) 68%, rgba(233, 180, 76, .5) 92%, transparent 92%); border-radius: 2px; }
.dark .hl, .whero .hl { color: var(--turq); background: none; }
.entry:hover .hl, .entry:focus-visible .hl { background: none; }

/* Schaltflächen */
.btn { --bg: var(--petrol); --fg: #fff; box-shadow: 0 8px 20px rgba(23, 102, 108, .22); }
.btn:hover { --bg: var(--petrol-deep); }
.btn .arr { background: #fff; color: var(--petrol-deep); }
.btn--ghost { --bg: rgba(255, 255, 255, .1); --fg: var(--on-dark); border-color: rgba(255, 240, 220, .45); box-shadow: none; }
.btn--ghost:hover { --bg: rgba(255, 255, 255, .18); border-color: #fff; }
.btn--ghost .arr { background: rgba(255, 255, 255, .2); color: #fff; }
.btn--line { --bg: transparent; --fg: var(--text); border-color: #cdbfa6; box-shadow: none; }
.btn--line:hover { --bg: #fff; border-color: var(--petrol); }
.btn--line .arr { background: var(--ink); color: #fff; }
.btn--dark { --bg: var(--petrol); --fg: #fff; }
.btn--dark .arr { background: #fff; color: var(--petrol-deep); }
.head .btn--plain { box-shadow: none; }
.tlink { border-bottom-color: var(--ocker); }

/* Kopfzeile */
.head.is-solid { background: rgba(44, 39, 35, .93); }
.nav { background: rgba(255, 255, 255, .1); }
.mega { box-shadow: 0 30px 60px rgba(35, 31, 28, .35); }
.mega h3, .mob h3 { color: var(--ocker); }

/* ---------- Einstieg: Szenen aus der Arbeit, ruhig ineinander geblendet ---------- */
.whero { position: relative; min-height: min(92vh, 860px); min-height: min(92svh, 860px); display: grid; align-items: end; background: var(--ink); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.whero-media { position: absolute; inset: 0; z-index: -2; }
.whero-media video, .whero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; transition: opacity 1.8s ease; filter: saturate(1.05) sepia(.08); }
.whero-media .is-on { opacity: 1; }
.whero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(35, 31, 28, .55) 0%, rgba(35, 31, 28, .12) 28%, rgba(35, 31, 28, .5) 62%, rgba(35, 31, 28, .9) 100%), linear-gradient(90deg, rgba(35, 31, 28, .55) 0%, rgba(35, 31, 28, 0) 62%); }
.whero-in { padding-top: calc(var(--head-h) + 80px); padding-bottom: clamp(40px, 6vw, 76px); }
.whero-kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem; color: #fff; margin-bottom: 18px; }
.whero-kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ocker); }
.whero h1 { font-size: clamp(2.5rem, 5.8vw, 4.9rem); line-height: 1.04; max-width: 15ch; text-shadow: 0 2px 30px rgba(35, 31, 28, .45); }
.whero .lead { color: #f3e9da; max-width: 54ch; margin-block: 22px 28px; text-shadow: 0 1px 16px rgba(35, 31, 28, .6); }
.whero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: clamp(28px, 4vw, 48px); }
.whero-scene { display: flex; align-items: center; gap: 14px; font-size: .95rem; color: #f3e9da; }
.whero-dots { display: flex; gap: 6px; }
.whero-dots i { width: 26px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .32); transition: background .6s; }
.whero-dots i.is-on { background: var(--ocker); }
.whero-pause { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 240, 220, .5); background: rgba(35, 31, 28, .35); color: #fff; display: grid; place-items: center; }
.whero-pause svg { width: 14px; height: 14px; }
.whero-pause .i-play, .whero-pause[aria-pressed="true"] .i-pause { display: none; }
.whero-pause[aria-pressed="true"] .i-play { display: block; }

/* Kennzahlen: ruhig, ohne Hochzählen */
.wfacts { background: var(--cream); padding-block: clamp(28px, 4vw, 48px) 0; }
.wfacts ul { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .wfacts ul { grid-template-columns: repeat(4, 1fr); } }
.wfacts li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); padding: 18px 20px; }
.wfacts b { display: block; font-family: var(--f-head); font-weight: 560; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; color: var(--eau-dark); }
.wfacts span { display: block; margin-top: 6px; font-size: .94rem; color: var(--text-soft); }

/* Einstiege: drei Karten statt Raster */
.entries { background: var(--cream); gap: 16px; padding: clamp(20px, 3vw, 32px) max(var(--gut), env(safe-area-inset-left, 0px)) 0; max-width: calc(var(--wrap)); margin-inline: auto; }
.entry { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); }
.entry + .entry { border-left: 1px solid var(--line); }
.entry::before { background: var(--sand); }
.entry:hover, .entry:focus-visible { color: var(--text); border-color: var(--petrol); }
.entry:hover small, .entry:hover p, .entry:focus-visible small, .entry:focus-visible p { color: var(--text-soft); }
.entry:hover .hl, .entry:focus-visible .hl { color: var(--eau-dark); }
.entry small { color: var(--petrol-deep); }
.entry .go { border-color: #cdbfa6; }
.entry:hover .go, .entry:focus-visible .go { background: var(--petrol); border-color: var(--petrol); color: #fff; }

/* Leistungen: helle Fläche, größere Bilder */
.sec.dark:not(#werte):not(.cta) { background: var(--cream); color: var(--text); }
.sec.dark:not(#werte):not(.cta) .eyebrow { color: var(--petrol-deep); }
.sec.dark:not(#werte):not(.cta) .hl { color: var(--eau-dark); background: linear-gradient(transparent 68%, rgba(233, 180, 76, .5) 68%, rgba(233, 180, 76, .5) 92%, transparent 92%); }
.sec.dark:not(#werte):not(.cta) .lead { color: var(--text-soft); }
.sec.dark:not(#werte):not(.cta) .chip { border-color: #cdbfa6; color: var(--text); background: #fff; }
.sec.dark:not(#werte):not(.cta) .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.glow::before, .load { display: none; }
.svc-grid { gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.svc { min-height: 460px; background: var(--ink-soft); box-shadow: 0 14px 34px rgba(60, 45, 30, .14); }
.svc img { filter: none; }
.svc::after { background: linear-gradient(180deg, rgba(35, 31, 28, 0) 0%, rgba(35, 31, 28, .12) 38%, rgba(35, 31, 28, .78) 68%, rgba(35, 31, 28, .95) 100%); }
.svc:hover { box-shadow: 0 26px 50px rgba(60, 45, 30, .26); }
.svc .more { color: var(--ocker); }
.svc .play { background: rgba(35, 31, 28, .6); }
.svc .play::before { border-left-color: #fff; }
.svc--bifu .more { color: #f6f0d8; }

/* Praxisbeispiel */
#praxis { background: var(--sand); }
.net .hub { background: var(--terra); box-shadow: 0 18px 36px rgba(162, 63, 39, .28); }
.net .hub small { color: #ffe6b8; }
.node { border-color: #cdbfa6; }
.net-bg { opacity: .5; }
.case-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 34px); }
.case-bar i { background: var(--terra); }

/* Werte */
#werte .value { border-radius: var(--r); }
#werte .lead { color: var(--on-dark-soft); }
.value[aria-expanded="true"] { border-color: rgba(233, 180, 76, .6); }
.value[aria-expanded="true"] .n { border-bottom-color: var(--ocker); }

/* Über uns, Zitat, Karriere */
.tint { background: var(--cream); }
.frame-deco::before { background: var(--ocker); clip-path: none; border-radius: 50%; width: 38%; right: -18px; bottom: -18px; }
.band { background: linear-gradient(120deg, #bfe6e2 0%, #8fd6d0 100%); }
.human rect, .human .me { fill: var(--ink); }
#karriere { background: var(--sand); }
.card { border-radius: var(--r); border-color: var(--line); background: #fff; }

/* Kontakt und Fuß */
.cta { background: var(--ink); }
.cta-item small { color: var(--ocker); }
.cta-item a:hover, .foot a:hover, .head-tel:hover { color: var(--ocker); }
.foot h3 { color: var(--ocker); }
.totop { background: var(--petrol); color: #fff; }

/* Hinweisleiste der Vorschau */
.wnote { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 120; background: rgba(35, 31, 28, .92); color: #fbf3e6; font-size: .86rem; padding: 8px 16px; border-radius: 999px; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; pointer-events: none; }

@media (max-width: 700px) {
  .whero { min-height: 640px; }
  .whero::after { background: linear-gradient(180deg, rgba(35, 31, 28, .6) 0%, rgba(35, 31, 28, .2) 26%, rgba(35, 31, 28, .72) 58%, rgba(35, 31, 28, .95) 100%); }
  .whero-scene span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .whero-media video, .whero-media img { transition: none; } .whero-pause { display: none; } }

/* Nachträge */
.net .hub small, .net .node small { text-transform: none; letter-spacing: 0; }
#praxis { overflow-x: clip; }
.whero-kicker { align-items: flex-start; }
.whero-kicker::before { flex: none; margin-top: .55em; }
.js .wipe { clip-path: none; }
main { overflow-x: clip; }

/* ---------- Kennzahlen mit kleinen Bildern in Bewegung ---------- */
.wfacts li { display: grid; align-content: start; padding: 14px 20px 20px; overflow: hidden; }
.wf-art { height: 108px; display: grid; place-items: center; margin-bottom: 8px; background: var(--cream); border-radius: 12px; }
.wf-art svg { height: 96px; width: auto; overflow: visible; }
.wf-art svg * { transform-box: fill-box; transform-origin: 50% 50%; }

/* Seit 2015: aus den Wurzeln wächst etwas */
.p-ground { stroke: #cdbfa6; stroke-width: 2.5; stroke-linecap: round; fill: none; }
.p-root { stroke: #b99c6b; stroke-width: 2.5; stroke-linecap: round; fill: none; stroke-dasharray: 24; animation: wfRoot 8s ease-in-out infinite; }
.p-stem { stroke: var(--petrol); stroke-width: 3.5; stroke-linecap: round; fill: none; stroke-dasharray: 56; animation: wfStem 8s ease-in-out infinite; }
.p-leaf { fill: var(--turq); animation: wfLeaf 8s ease-in-out infinite; }
.p-leaf.l1 { transform-origin: 100% 80%; } .p-leaf.l2 { transform-origin: 0% 80%; animation-delay: .45s; fill: var(--eau); }
.p-leaf.l3 { transform-origin: 100% 85%; animation-delay: .9s; } .p-leaf.l4 { transform-origin: 0% 90%; animation-delay: 1.35s; fill: var(--ocker); }
@keyframes wfRoot { 0% { stroke-dashoffset: 24; opacity: 1; } 14%, 88% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes wfStem { 0%, 10% { stroke-dashoffset: 56; opacity: 1; } 42%, 88% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes wfLeaf { 0%, 26% { transform: scale(0); opacity: 1; } 38% { transform: scale(1.08); } 42%, 82% { transform: scale(1); opacity: 1; } 92%, 100% { transform: scale(1); opacity: 0; } }

/* Starke Partner: Verbindungen entstehen, eine nach der anderen */
.pt-ln path { stroke: var(--eau); stroke-width: 2.5; stroke-linecap: round; fill: none; stroke-dasharray: 38; animation: wfLink 9s ease-in-out infinite; }
.pt-dot circle { animation: wfPop 9s ease-in-out infinite; }
.pt-ln path:nth-child(2), .pt-dot circle:nth-child(2) { animation-delay: .5s; } .pt-ln path:nth-child(3), .pt-dot circle:nth-child(3) { animation-delay: 1s; }
.pt-ln path:nth-child(4), .pt-dot circle:nth-child(4) { animation-delay: 1.5s; } .pt-ln path:nth-child(5), .pt-dot circle:nth-child(5) { animation-delay: 2s; }
.pt-ln path:nth-child(6), .pt-dot circle:nth-child(6) { animation-delay: 2.5s; }
.c-a { fill: var(--turq); } .c-b { fill: var(--ocker); } .c-c { fill: #fff; stroke: var(--petrol); stroke-width: 2.5; }
.pt-me { fill: var(--petrol); } .pt-house { fill: #fff; }
.pt-ring { fill: none; stroke: var(--turq); stroke-width: 2; animation: wfRing 3s ease-out infinite; }
@keyframes wfLink { 0% { stroke-dashoffset: 38; opacity: 0; } 4% { opacity: 1; } 12%, 62% { stroke-dashoffset: 0; opacity: 1; } 72%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes wfPop { 0%, 8% { transform: scale(0); } 14% { transform: scale(1.2); } 18%, 62% { transform: scale(1); opacity: 1; } 72%, 100% { transform: scale(.4); opacity: 0; } }
@keyframes wfRing { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

/* Tag und Nacht: Sonne und Mond wandern über das Haus, im Fenster bleibt Licht */
.d-arc { fill: none; stroke: #cdbfa6; stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.d-ground { stroke: #cdbfa6; stroke-width: 2.5; stroke-linecap: round; fill: none; }
.wf-day .d-turn { transform-box: view-box; transform-origin: 80px 76px; animation: wfTurn 12s linear infinite; }
.d-sun { fill: var(--ocker); } .d-moon { fill: var(--petrol); }
.d-home { fill: var(--ink); }
.d-win { fill: #fbf3e6; animation: wfWin 12s linear infinite; }
@keyframes wfTurn { to { transform: rotate(360deg); } }
@keyframes wfWin { 0%, 42% { fill: #fbf3e6; } 52%, 92% { fill: var(--ocker); } 100% { fill: #fbf3e6; } }

/* 6 Sprachen: ein Gruß nach dem anderen */
.wf-talk { position: relative; width: 150px; height: 84px; }
.wf-bub { position: absolute; left: 0; top: 4px; width: 112px; height: 46px; border-radius: 18px 18px 18px 4px; background: var(--petrol); color: #fff; font-weight: 600; font-size: 1.12rem; }
.wf-bub i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; opacity: 0; animation: wfWord 12s ease-in-out infinite; }
.wf-bub i:nth-child(2) { animation-delay: 2s; } .wf-bub i:nth-child(3) { animation-delay: 4s; } .wf-bub i:nth-child(4) { animation-delay: 6s; }
.wf-bub i:nth-child(5) { animation-delay: 8s; } .wf-bub i:nth-child(6) { animation-delay: 10s; }
.wf-bub2 { position: absolute; right: 0; bottom: 2px; width: 62px; height: 34px; border-radius: 16px 16px 4px 16px; background: var(--ocker); display: flex; align-items: center; justify-content: center; gap: 5px; }
.wf-bub2 u { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); animation: wfDot 1.4s ease-in-out infinite; }
.wf-bub2 u:nth-child(2) { animation-delay: .18s; } .wf-bub2 u:nth-child(3) { animation-delay: .36s; }
@keyframes wfWord { 0% { opacity: 0; transform: translateY(8px); } 3%, 14% { opacity: 1; transform: none; } 17%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes wfDot { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .wf-art *, .wf-art svg * { animation: none !important; }
  .wf-bub i:first-child { opacity: 1; }
}

/* ---------- Unterseiten ---------- */
/* Kopfzeile steht auf hellen Seitenköpfen immer auf warmem Braun; über den Szenen und bei BiFu bleibt sie durchsichtig */
.head { background: rgba(44, 39, 35, .93); }
body:has(.whero) .head:not(.is-solid), body:has(.bf-hero) .head:not(.is-solid) { background: none; }

/* Seitenkopf hell statt dunkel */
.phero { background: var(--sand); color: var(--text); padding-top: calc(var(--head-h) + clamp(40px, 6vw, 84px)); }
.phero.dark .hl, .phero .hl { color: var(--eau-dark); background: linear-gradient(transparent 68%, rgba(233, 180, 76, .5) 68%, rgba(233, 180, 76, .5) 92%, transparent 92%); }
.phero.dark .lead, .phero .lead { color: var(--text-soft); }
.phero.dark .eyebrow { color: var(--petrol-deep); }
.crumbs { color: var(--text-soft); text-transform: none; letter-spacing: 0; font-size: .92rem; }
.crumbs a:hover { color: var(--petrol); }
.phero-img { box-shadow: 0 22px 46px rgba(60, 45, 30, .2); }
.tiles { border-top-color: #d9c9ae; }
.tile b { font-family: var(--f-head); font-weight: 560; color: var(--text); }
.tile b a:hover, .phero .tile-link { color: var(--petrol); }
.phero .tile-link { border-bottom-color: var(--ocker); }
.tile span { color: var(--text-soft); }
.phero .btn--ghost { --bg: transparent; --fg: var(--text); border-color: #cdbfa6; }
.phero .btn--ghost:hover { --bg: #fff; border-color: var(--petrol); }
.phero .btn--ghost .arr { background: var(--ink); color: #fff; }
.phero.dark .notice strong { color: var(--petrol-deep); }

/* Beschriftungen in normaler Schreibweise */
.notice strong, .switch-row > span, .toc h2, .acc-btn .kind, .step::before, .job small, .contact-list small { text-transform: none; letter-spacing: 0; }
.toc h2, .switch-row > span { font-size: .9rem; font-weight: 600; }
.acc-btn .kind, .step::before, .job small, .contact-list small { font-size: .86rem; font-weight: 600; }

/* Fachrichtungen auf hellem Grund */
.fach-in span { border-color: #cdbfa6; background: #fff; color: var(--text); }
.fach-in span::before { border: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--turq); }
.fach-in span:nth-child(3n)::before { background: var(--ocker); }
.fach-in span:nth-child(4n) { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.fach-in span:nth-child(4n)::before { background: #fff; }

/* Karten, Formulare, Jobs */
.job { border-color: var(--line); }
.job::before { background: var(--sand); }
.job:hover, .job:focus-visible { color: var(--text); border-color: var(--petrol); }
.job:hover small, .job:focus-visible small { color: var(--petrol-deep); }
.notice { border-color: rgba(31, 127, 134, .35); background: rgba(82, 197, 191, .1); }

/* BiFu behält sein eigenes Design */
.bf .hl, .bf-hero .hl, .bf-mint .hl, .bf-cream .hl, .bf-dark .hl { background: none; }
