/* Fischmann Group (FFI Holding GmbH) – fischmann.group
   Schrift: Inter (SIL Open Font License), lokal eingebunden */

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

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --card: #ffffff;
  --ink: #16202b;
  --ink-soft: #4a5663;
  --ink-faint: #6f7a86;
  --line: #e3e8ee;
  --line-strong: #cfd6de;
  --title: #12355b;
  --accent: #12355b;          /* Holding-Blau */
  --accent-light: #4290fb;    /* Netzwerk-Punkte, Fokus */
  --shadow: 0 1px 2px rgba(16, 32, 48, .05), 0 6px 20px rgba(16, 32, 48, .06);
  --shadow-hover: 0 2px 4px rgba(16, 32, 48, .07), 0 12px 32px rgba(16, 32, 48, .10);
  --header: #ffffff;
  --logo-ink: #12355b;
  --foot: #1d2228;
  --todo-bg: #fdf0c4;
  --todo-ink: #6b4d00;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --head-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }

/* Platzhalter für noch fehlende Angaben – vor dem Livegang ersetzen */
.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 0 .35em; border-radius: 3px; font-size: .92em; white-space: nowrap; }

/* ---------- Kopfzeile ---------- */
.top { position: sticky; top: 0; z-index: 10; background: var(--header); box-shadow: 0 1px 0 var(--line), 0 4px 16px rgba(16, 32, 48, .05); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--head-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__text { display: inline-flex; align-items: baseline; gap: .42em; font-size: 23px; line-height: 1; text-transform: uppercase; }
.brand__text b { font-weight: 800; letter-spacing: .015em; color: var(--logo-ink); }
.brand__group { font-weight: 400; letter-spacing: .2em; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); }
.nav a { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
  .nav { gap: 14px; }
  .nav a { font-size: 13px; }
  .nav a.opt { display: none; }
  .brand__text { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 19px; }
  .brand__group { font-size: 10.5px; letter-spacing: .55em; font-weight: 500; }
  }
@media (max-width: 430px) { .nav a.opt-sm { display: none; } }

/* ---------- Hero mit Netzwerk ---------- */
.hero { position: relative; min-height: calc(100svh - var(--head-h)); display: grid; place-items: center; background: #05080c; color: #fff; overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 60% 45% at 50% 50%, rgba(5, 8, 12, .85), rgba(5, 8, 12, 0) 75%); }
.hero__inner { text-align: center; padding: 96px var(--gutter); max-width: 860px; }
.hero h1 { margin: 0; font-size: clamp(36px, 5.6vw, 60px); font-weight: 700; line-height: 1.1; letter-spacing: -.022em; text-wrap: balance; }
.hero p { margin: 22px auto 0; max-width: 36em; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: #d4dbe3; text-wrap: balance; }
.hero__cta { margin-top: 40px; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 4px; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.btn--light { background: #fff; color: #0c2742; }
.btn--light:hover { background: #dce9fd; }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section--soft { background: var(--bg-soft); }
.section-title { margin: 0; text-align: center; font-size: clamp(28px, 3.4vw, 36px); font-weight: 700; letter-spacing: -.018em; color: var(--title); }
.section-title::after { content: ""; display: block; width: 40px; height: 2px; margin: 18px auto 0; background: var(--accent); opacity: .7; }
.section-lead { margin: 18px auto 0; max-width: 42em; text-align: center; color: var(--ink-soft); font-size: 17px; text-wrap: pretty; }

.cards { margin-top: clamp(40px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--card); border-top: 3px solid var(--accent); border-radius: 6px; box-shadow: var(--shadow); padding: 30px 28px 32px; }
.card__icon { width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--accent); margin-bottom: 20px; }
.card__icon svg { width: 20px; height: 20px; }
.card h3 { margin: 0; font-size: 18px; font-weight: 650; color: var(--ink); letter-spacing: -.01em; }
.card p { margin: 10px 0 0; color: var(--ink-soft); font-size: 15.5px; }
.cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-left: auto; margin-right: auto; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Beteiligung */
.holding { margin: clamp(40px, 5vw, 56px) auto 0; max-width: 880px; padding: 0; overflow: hidden; }
.holding { transition: box-shadow .25s; }
.holding:hover { box-shadow: var(--shadow-hover); }
.holding__link { display: grid; grid-template-columns: 240px minmax(0, 1fr); text-decoration: none; color: inherit; }
.holding__logo { display: grid; place-items: center; padding: 32px; border-right: 1px solid var(--line); background: var(--card); }
.holding__logo img { width: 100%; max-width: 180px; height: auto; }
.holding__body { padding: 30px 32px 32px; }
.holding__tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.holding__body h3 { margin-top: 6px; font-size: 21px; }
.holding__more { display: inline-flex; gap: 6px; margin-top: 16px; font-weight: 600; font-size: 15px; color: var(--accent); }
.holding__link:hover .holding__more span { transform: translateX(3px); }
.holding__more span { transition: transform .2s; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts div { padding: 16px 20px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.facts dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; }
@media (max-width: 720px) {
  .holding__link { grid-template-columns: 1fr; }
  .holding__logo { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .facts div:last-child { border-bottom: 0; }
}

/* Kontakt */
/* Geschäftsführung */
.person { margin: clamp(40px, 5vw, 56px) auto 0; max-width: 880px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: center; }
.person__photo { position: relative; margin: 0; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.person__photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.ki-badge { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(15, 24, 41, .55); border: 1px solid rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .85); font-size: 8.5px; font-weight: 600; letter-spacing: .06em; line-height: 1; cursor: default; user-select: none; }
.person__body h3 { margin: 0; font-size: 22px; font-weight: 650; color: var(--ink); letter-spacing: -.01em; }
.person__role { margin: 4px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.person__body p:not(.person__role) { margin: 16px 0 0; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 700px) { .person { grid-template-columns: 1fr; justify-items: center; text-align: center; } .person__photo { width: 200px; } }
.card address, .card .big { font-style: normal; margin: 10px 0 0; color: var(--ink); font-size: 16px; }
.card a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- Fußzeile ---------- */
.foot { background: var(--foot); color: #c9d1d9; text-align: center; padding: 36px 0 40px; font-size: 14px; }
.foot p { margin: 0; }
.foot nav { margin-top: 6px; display: inline-flex; gap: 14px; align-items: center; }
.foot nav span { width: 1px; height: 14px; background: #6b7682; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot__note { max-width: 46em; margin: 18px auto 0 !important; font-size: 12.5px; line-height: 1.6; color: #8b96a1; }

/* ---------- Einblenden beim Scrollen (nur mit JavaScript) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0ms); }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 9vw, 112px); }
.legal .wrap { max-width: 800px; }
.legal h1 { margin: 14px 0 0; font-size: clamp(32px, 4.6vw, 42px); font-weight: 700; letter-spacing: -.02em; color: var(--title); }
.back { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-soft); }
.back:hover { color: var(--accent); }
.legal .prose { margin-top: 36px; }
.legal .prose h2 { margin: 36px 0 0; font-size: 20px; font-weight: 700; color: var(--ink); }
.legal .prose h3 { margin: 24px 0 0; font-size: 17px; font-weight: 700; }
.legal .prose p, .legal .prose li { color: var(--ink-soft); }
.legal .prose p { margin: 10px 0 0; }
.legal .prose ul { padding-left: 1.2em; margin: 10px 0 0; }
.legal .prose li + li { margin-top: 4px; }
.legal .prose a { color: var(--accent); }
