@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url("../fonts/archivo-600.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("../fonts/archivo-700.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-400.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/source-sans-3-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); }

/* Layout: ruhige Textspalte mit Randspalte für Norm- und Aktenverweise,
   wie in einem Gutachten. Farben: Nachtblau mit Messing als einzigem Akzent.
   Gemeinsames CI für fm-gutachter.de und fh-consulting.de. */

:root {
  --paper: #f5f6f8;
  --surface: #ffffff;
  --ink: #151b2b;
  --ink-soft: #4c5468;
  --rule: #d6dae3;
  --band: #16213d;
  --band-ink: #f1f3f8;
  --accent: #c8a24a;
  --accent-ink: #1b1608;
  --link: #24427a;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s-xs: 0.875rem; --s-sm: 1rem; --s-md: 1.1875rem; --s-lg: 1.5rem; --s-xl: 2.125rem; --s-2xl: clamp(2.25rem, 5vw, 3.5rem);
  --wrap: 72rem;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1220; --surface: #151b2d; --ink: #e6e9f2; --ink-soft: #a2a9bd; --rule: #283049;
    --band: #0c1430; --band-ink: #e6e9f2; --accent: #d4b05a; --accent-ink: #1b1608; --link: #9db6ee;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1220; --surface: #151b2d; --ink: #e6e9f2; --ink-soft: #a2a9bd; --rule: #283049;
  --band: #0c1430; --band-ink: #e6e9f2; --accent: #d4b05a; --accent-ink: #1b1608; --link: #9db6ee;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--s-md)/1.6 var(--f-text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: 0.02em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; z-index: 50; }

/* Kopf */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--band); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--band); color: var(--band-ink); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; color: inherit; text-decoration: none; line-height: 1.2; }
.brand strong { font-family: var(--f-display); font-size: 1.125rem; letter-spacing: 0.01em; }
.brand span { font-family: var(--f-mono); font-size: 0.75rem; opacity: 0.8; letter-spacing: 0.04em; }
.nav { display: flex; gap: 0.25rem 1.25rem; flex-wrap: wrap; font-size: var(--s-sm); }
.nav a { color: inherit; text-decoration: none; padding-block: 0.25rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--accent); }

/* Einstieg */
.hero { background: var(--band); color: var(--band-ink); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3rem; padding-block: 4rem 4.5rem; align-items: end; }
.hero .eyebrow { font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; margin-bottom: 1.25rem; }
.hero h1 { font-size: var(--s-2xl); max-width: 18ch; }
.hero .lede { margin-top: 1.5rem; font-size: 1.25rem; max-width: 40ch; opacity: 0.92; }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
.btn { display: inline-block; font: 600 var(--s-sm)/1 var(--f-text); padding: 0.95rem 1.4rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.06); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }

/* Prüfplakette: das eine markante Element */
.tag { justify-self: end; width: 100%; max-width: 20rem; border: 1px solid rgba(255,255,255,0.28); padding: 1.25rem 1.25rem 1.1rem; font-family: var(--f-mono); font-size: 0.8125rem; line-height: 1.5; }
.tag-head { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 0.9rem; margin-bottom: 0.9rem; border-bottom: 1px dashed rgba(255,255,255,0.3); }
.tag-seal { flex: none; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 500; font-size: 0.75rem; text-align: center; line-height: 1.1; }
.tag dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; }
.tag dt { opacity: 0.7; }
.tag dd { margin: 0; }
.placeholder { background: rgba(242,194,48,0.22); outline: 1px dashed #e0b020; padding: 0 0.2em; }

/* Abschnitte */
section { padding-block: 4.5rem; }
section + section { border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
.sec-head .mono { color: var(--ink-soft); padding-top: 0.6rem; }
.sec-head h2 { font-size: var(--s-xl); max-width: 24ch; }
.sec-head p { margin-top: 1rem; color: var(--ink-soft); max-width: 60ch; }
.sec-body { margin-left: 14rem; }

/* Leistungen als Liste mit Randverweis */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.services li { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 2rem; padding-block: 1.6rem; border-bottom: 1px solid var(--rule); }
.services .ref { color: var(--ink-soft); padding-top: 0.25rem; }
.services h3 { font-size: var(--s-lg); margin-bottom: 0.4rem; }
.services p { max-width: 62ch; }

/* Anlässe */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.case { background: var(--surface); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.case .who { font-family: var(--f-mono); font-size: var(--s-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.case h3 { font-size: 1.1875rem; }
.case p { font-size: var(--s-sm); color: var(--ink-soft); }

/* Ablauf: echte Reihenfolge, daher nummeriert */
.steps { list-style: none; margin-block: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.25rem; border-top: 1px solid var(--rule); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-weight: 500; color: var(--link); padding-top: 0.15rem; }
.steps h3 { font-size: 1.1875rem; margin-bottom: 0.25rem; }
.steps p { color: var(--ink-soft); max-width: 62ch; }

/* Profil */
.profile { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 2rem; }
.profile > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(0.15); }
.profile-text { display: grid; gap: 1rem; max-width: 62ch; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem 1.5rem; margin: 0.5rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--rule); }
.facts dt { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--ink-soft); padding-top: 0.2rem; }
.facts dd { margin: 0; }

/* Unabhängigkeit */
.pledge { background: var(--surface); border-left: 4px solid var(--accent); padding: 1.5rem 1.75rem; display: grid; gap: 0.75rem; max-width: 62ch; }

/* Honorar & FAQ */
.fees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.fees > div { display: grid; gap: 0.5rem; align-content: start; }
.fees h3 { font-size: 1.1875rem; }
details { border-top: 1px solid var(--rule); padding-block: 1rem; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--f-mono); color: var(--link); }
details[open] summary::after { content: "–"; }
details p { margin-top: 0.6rem; color: var(--ink-soft); max-width: 62ch; }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3rem; }
.contact-direct { display: grid; gap: 1rem; align-content: start; }
.contact-direct .big { font-family: var(--f-display); font-size: var(--s-lg); font-weight: 600; }
form { display: grid; gap: 1rem; }
label { display: grid; gap: 0.35rem; font-size: var(--s-sm); font-weight: 600; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); padding: 0.7rem 0.8rem; width: 100%; }
textarea { min-height: 8rem; resize: vertical; }
.check { display: flex; gap: 0.6rem; align-items: start; font-weight: 400; font-size: var(--s-xs); color: var(--ink-soft); }
.check input { width: auto; margin-top: 0.25rem; }
.form-note { font-size: var(--s-xs); color: var(--ink-soft); }

/* Fuß */
.site-foot { background: var(--band); color: var(--band-ink); font-size: var(--s-sm); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-block: 2rem; }
.site-foot a { color: inherit; }
.site-foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Rechtstexte */
.legal { max-width: 46rem; }
.legal h1 { font-size: var(--s-xl); margin-bottom: 2rem; }
.legal h2 { font-size: var(--s-lg); margin: 2.25rem 0 0.6rem; }
.legal p, .legal ul { margin: 0 0 0.9rem; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-block: 3rem; }
  .tag { justify-self: start; }
  .sec-head, .services li, .profile { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .sec-body { margin-left: 0; }
  .profile > img { max-width: 14rem; }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .fees, .contact { grid-template-columns: minmax(0, 1fr); }
  section { padding-block: 3rem; }
}
@media (min-width: 901px) and (max-width: 1100px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Verbands- und Zertifikatslogos: auf weißer Platte, damit sie in beiden Themen lesbar bleiben */
.tag-logo { flex: none; width: 4.75rem; height: auto; border-radius: 50%; background: #fff; padding: 2px; }
.proofs { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.proof { margin: 0; background: #fff; border: 1px solid var(--rule); padding: 0.75rem 1rem; display: flex; align-items: center; justify-content: center; min-width: 0; }
.proof img { display: block; max-height: 2.5rem; width: auto; }
.proof-sq img { max-height: 4.5rem; }
.proof-ph { flex-direction: column; gap: 0.35rem; color: #4a5b60; font-size: var(--s-xs); text-align: center; width: 10rem; }
.proof-ph small { font-family: var(--f-mono); font-size: 0.6875rem; }
.proof:first-child { flex: 1 1 20rem; }
.proof:first-child img { width: 100%; max-width: 26rem; max-height: none; height: auto; }
.proof-sq { flex: 0 0 auto; }
.proof.proof-eucert { flex: 0 1 auto; }
.proof.proof-eucert img { width: 13rem; max-width: 100%; height: auto; max-height: none; }
@media (max-width: 600px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .facts dd { margin-bottom: 0.75rem; }
}

/* Hell/Dunkel-Umschalter */
.head-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.theme-toggle { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; opacity: 0.9; }
.theme-toggle:hover { opacity: 1; background: rgba(255,255,255,0.08); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
@media (max-width: 600px) {
  .site-head .wrap { position: relative; }
  .brand { padding-right: 3.25rem; }
  .theme-toggle { position: absolute; top: 0.85rem; right: max(16px, env(safe-area-inset-right, 0px)); }
}

.pledge-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.pledge-list li::marker { color: var(--accent); }

/* FH Consulting: Symptome und Leistungen */
.symptoms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.symptoms li { background: var(--surface); padding: 1.1rem 1.25rem; display: flex; gap: 0.75rem; align-items: baseline; }
.symptoms li::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; background: var(--accent); transform: translateY(-0.1rem); }
.statement { font-family: var(--f-display); font-size: var(--s-lg); line-height: 1.3; max-width: 34ch; text-wrap: balance; }
.prose { display: grid; gap: 1rem; max-width: 62ch; }
.cross { background: var(--surface); border: 1px solid var(--rule); padding: 1.25rem 1.5rem; display: grid; gap: 0.5rem; max-width: 62ch; }
.cross .mono { color: var(--ink-soft); }
@media (max-width: 900px) { .symptoms { grid-template-columns: minmax(0, 1fr); } }

/* Logo: [FH] in Messingklammern */
.brand { flex-direction: row; align-items: center; gap: 0.75rem; }
.brand-mark { flex: none; width: 2.75rem; height: 2.75rem; color: var(--band-ink); }
.brand-div { flex: none; width: 1px; height: 2rem; background: currentColor; opacity: 0.25; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
@media (max-width: 600px) { .brand-mark { width: 2.25rem; height: 2.25rem; } .brand-div { display: none; } }

/* Deploy-Ergänzungen 12/2026 */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.faq-title { font-size: var(--s-lg); margin-bottom: 0.75rem; }
.contact-direct .big a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.contact-direct .big a:hover { border-bottom-color: var(--accent); }
button[disabled] { opacity: 0.6; cursor: wait; }
.legal a { overflow-wrap: anywhere; }

.nw { white-space: nowrap; }
