/* ═══ Schrift: Inter, selbst gehostet (SIL Open Font License) ═══
   Datei: assets/fonts/InterVariable.woff2 – variable Schrift, deckt 100–900 ab.
   Fehlt die Datei, greift die Ersatzschrift aus font-family. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ═══ Grundlagen ═════════════════════════════════════════ */
:root {
  --ink: #21262e;
  --text: #333a44;
  --muted: #55606e;
  --blue: #1c4e80;
  --blue-dark: #143a61;
  --blue-soft: #eef3f8;
  --green: #276b4f;
  --green-soft: #edf5f0;
  --line: #dde2e8;
  --bg: #ffffff;
  --radius: 10px;
  --gutter: 28px;
  --header-h: 84px;
  color-scheme: light;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
ul { list-style: none; }
a { color: var(--blue); }

/* Inhaltsspalte – berücksichtigt Notch/abgerundete Displays im Querformat */
.wrap {
  max-width: 1000px; margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
@media (max-width: 480px) { :root { --gutter: 18px; } }

section[id] { scroll-margin-top: var(--header-h); }
@media (max-width: 1020px) { :root { --header-h: 76px; } }

/* Sichtbarer Tastatur-Fokus für alle interaktiven Elemente */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* Sprunglink für Tastatur- und Screenreader-Nutzung */
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--blue-dark); color: #fff; text-decoration: none; font-weight: 600;
  padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ═══ Header & Navigation ════════════════════════════════ */
header.site {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
header.site.scrolled { box-shadow: 0 4px 18px -8px rgba(20, 58, 97, .16); }
.brand {
  display: flex; align-items: center; justify-content: space-between;
  /* nur vertikal setzen, damit der seitliche .wrap-Innenabstand erhalten bleibt */
  padding-top: 14px; padding-bottom: 14px; gap: 16px;
}
.logo-text {
  display: inline-flex; align-items: baseline; gap: 8px;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.logo-text .name {
  font-weight: 700; font-size: 3.5rem; letter-spacing: -.5px; line-height: 1;
  /* Platz für die Unterlänge (g): der Verlauf wird nur innerhalb der Box gemalt.
     Der negative Außenabstand gleicht die zusätzliche Höhe wieder aus. */
  padding-bottom: .18em; margin-bottom: -.18em;
  color: #39424e; /* Fallback für Browser ohne background-clip */
  /* Graphit-Silber: senkrechter Verlauf, dunkel mit dezentem Glanzstreif auf halber Höhe.
     Der Verlauf bezieht sich auf Text + Unterlängen-Polster, deshalb sitzt der Glanz
     etwas oberhalb der Mitte der Box – optisch mittig in den Buchstaben. */
  background: linear-gradient(180deg, #2a3039 0%, #4b5561 36%, #9aa5b1 45%, #4b5561 55%, #262c34 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-text .name sup { font-size: .38em; vertical-align: super; line-height: 0; }
.logo-text .gmbh {
  font-weight: 500; font-size: 1.15rem; letter-spacing: .12em; line-height: 1;
  color: #5c6878;
}
/* Kontrastmodus (z. B. Windows): Verlauf abschalten, Systemfarbe nutzen */
@media (forced-colors: active) {
  .logo-text .name { background: none; -webkit-text-fill-color: currentColor; color: LinkText; }
}

/* Desktop-Navigation: rechtsbündig mit der rechten Textkante */
nav.main ul { display: flex; flex-wrap: nowrap; gap: 0; }
nav.main a {
  display: block; white-space: nowrap;
  text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 500;
  padding: 8px 9px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
nav.main li:last-child a { padding-right: 0; }
nav.main a.active { color: var(--blue-dark); border-bottom-color: var(--green); }
@media (hover: hover) {
  nav.main a:hover { color: var(--blue); border-bottom-color: var(--blue); }
}

.nav-toggle {
  display: none; flex-shrink: 0;
  width: 48px; height: 48px; margin-right: -10px;
  align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: 50%; cursor: pointer;
  transition: background .2s ease;
}
@media (hover: hover) { .nav-toggle:hover { background: var(--blue-soft); } }
.nav-toggle .bars { width: 22px; height: 16px; position: relative; }
.nav-toggle .bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: var(--blue-dark);
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s ease, top .3s cubic-bezier(.4,0,.2,1);
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 7px; }
.nav-toggle .bars span:nth-child(3) { top: 14px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Mobiles Menü: geschlossen unsichtbar UND nicht fokussierbar (visibility) */
.mobile-panel {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 18px 30px -18px rgba(20, 58, 97, .28);
  border-top: 1px solid var(--line);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.mobile-panel.open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .25s ease, transform .25s ease, visibility 0s;
}
.mobile-panel ul {
  padding: 10px 18px 16px;
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
}
.mobile-panel a {
  display: block; text-decoration: none; color: var(--ink);
  font-size: 1.05rem; font-weight: 500;
  padding: 14px 12px; border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.mobile-panel a:hover, .mobile-panel a:focus-visible { background: var(--blue-soft); color: var(--blue-dark); }
.mobile-panel a.active { color: var(--blue-dark); font-weight: 700; background: var(--green-soft); }

/* Ab Tablet-Breite: Hamburger-Menü (Logo + Menü passen sonst nicht in eine Zeile) */
@media (max-width: 1020px) {
  .nav-toggle { display: flex; }
  nav.main { display: none; }
  .mobile-panel { display: block; }
  .logo-text .name { font-size: 2.6rem; }
  .logo-text .gmbh { font-size: 1rem; }
}
@media (max-width: 760px) {
  .logo-text .name { font-size: 2rem; }
  .logo-text .gmbh { font-size: .85rem; }
}
@media (max-width: 480px) {
  .logo-text .name { font-size: 1.6rem; }
  .logo-text .gmbh { font-size: .72rem; }
}
/* Ohne JavaScript: Menü dauerhaft sichtbar statt Hamburger */
.no-js .nav-toggle { display: none; }
.no-js .mobile-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; }

/* ═══ Hero ═══════════════════════════════════════════════ */
.hero { padding: 0 0 56px; background: var(--blue-soft); border-bottom: 1px solid var(--line); }
.banner-frame {
  /* Höhe wächst mit der Breite (22vw), damit der Bildausschnitt auf allen
     Bildschirmen etwa gleich hoch bleibt und der Schriftzug vollständig sichtbar ist */
  width: 100%; height: clamp(180px, 22vw, 600px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, #d8e2ec 0%, var(--blue-soft) 55%, #dcebe4 100%);
}
.banner-frame.hide-banner { display: none; }
/* Schriftzug „SOCIAL“ liegt bei ca. 49 % der Bildhöhe – dort wird der Ausschnitt zentriert */
.banner { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 49%; display: block; }
.hero-inner { padding-top: 48px; }
.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.2; font-weight: 700;
  color: var(--blue-dark); letter-spacing: -.5px; margin-bottom: 14px;
  max-width: 24ch; text-wrap: balance;
  -webkit-hyphens: auto; hyphens: auto;
}
.hero .sub { font-size: clamp(1rem, 2.5vw, 1.15rem); color: var(--muted); max-width: 56ch; margin-bottom: 28px; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: var(--radius);
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: background .15s; margin: 5px 12px 5px 0;
}
.btn:hover { background: var(--blue-dark); }

/* ═══ Abschnitte & Überschriften ═════════════════════════ */
section { padding: 64px 0; }
@media (max-width: 600px) { section { padding: 48px 0; } }
section.tinted { background: #fafbfc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  display: block;
  text-transform: uppercase; letter-spacing: 2px;
  font-size: .82rem; font-weight: 700; color: var(--green);
  margin-bottom: 8px; line-height: 1.3;
}
.rule { border: none; border-top: 3px solid var(--green); width: 64px; margin: 0 0 24px; }

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 700; color: var(--blue-dark);
  margin-bottom: 18px; letter-spacing: -.3px; line-height: 1.25; text-wrap: balance;
}
h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 36px 0 12px; }
p { color: var(--text); margin-bottom: 14px; }

/* Pfeil „Nach oben“ an den Abschnittsüberschriften (h2) */
.to-top {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; margin-left: .35em;
  vertical-align: middle; position: relative; top: -.08em;
  border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--muted);
  cursor: pointer; padding: 0;
  transition: color .15s, border-color .15s, background .15s;
}
/* unsichtbar vergrößerte Trefferfläche (44 px) für Touch-Bedienung */
.to-top::after { content: ""; position: absolute; inset: -7px; }
.to-top svg { width: 14px; height: 14px; display: block; }
@media (hover: hover) {
  .to-top:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-soft); }
}

/* ═══ Beratungsprozess ═══════════════════════════════════ */
.process {
  display: flex; align-items: stretch;
  margin: 26px 0 8px;
  counter-reset: step;
}
.process .step {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-weight: 600; font-size: .92rem; line-height: 1.5; color: var(--blue-dark);
  counter-increment: step;
}
.process .step::before {
  content: counter(step);
  display: grid; place-items: center; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-size: .8rem; font-weight: 700;
}
.process .sep {
  flex: 0 0 30px; display: grid; place-items: center;
  color: var(--green); font-weight: 800; font-size: 1.15rem;
}
@media (max-width: 900px) {
  .process { flex-direction: column; }
  .process .sep { flex: 0 0 26px; transform: rotate(90deg); }
}

/* ═══ Beratungsangebot ═══════════════════════════════════ */
.pill-list { display: flex; flex-direction: column; gap: 10px; margin: 26px 0 8px; }
.pill-list li {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 20px; font-weight: 600; font-size: .98rem;
  display: flex; gap: 12px; align-items: baseline;
}
.pill-list li::before { content: "→"; color: var(--green); font-weight: 800; flex-shrink: 0; }
.pill-list li > span { min-width: 0; -webkit-hyphens: auto; hyphens: auto; }
.pill-list li .benefit { display: block; font-weight: 400; color: var(--text); font-size: .94rem; line-height: 1.55; margin-top: 3px; }
.pill-list li .sub { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 4px; }
@media (max-width: 480px) { .pill-list li { padding: 12px 16px; } }

/* ═══ Geschäftsführung ═══════════════════════════════════ */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .profile { grid-template-columns: 1fr; gap: 24px; } }
.portrait { margin: 0; }
.portrait img {
  width: 100%; max-width: 380px; height: auto; display: block;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.portrait figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.portrait .img-fallback {
  aspect-ratio: 3 / 4; max-width: 380px; display: grid; place-items: center; text-align: center; padding: 20px;
  background: var(--blue-soft); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--muted); font-size: .9rem;
}
@media (max-width: 800px) { .portrait img, .portrait .img-fallback { max-width: 300px; } }

.timeline { margin: 8px 0 4px; }
.timeline > li {
  position: relative; padding: 0 0 10px 20px;
  border-left: 2px solid var(--line); margin-left: 5px;
}
.timeline > li:last-child { border-left-color: transparent; padding-bottom: 2px; }
.timeline > li::before {
  content: ""; position: absolute; left: -6px; top: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 3px rgba(28, 78, 128, .12);
}
.timeline .txt { color: var(--text); font-size: .92rem; line-height: 1.5; }
.timeline ul { margin: 3px 0 0 4px; }
.timeline ul li { position: relative; padding-left: 16px; margin-bottom: 2px; font-size: .88rem; line-height: 1.45; }
.timeline ul li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); opacity: .55;
}

/* ═══ Referenzen & Publikationen ═════════════════════════ */
.wordcloud { margin: 8px 0 28px; }
.wordcloud img { width: 100%; height: auto; display: block; }

details.acc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
details.acc summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--blue-dark);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  font-size: clamp(.98rem, 2.5vw, 1.08rem);
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary:focus-visible { outline-offset: -3px; }
details.acc summary .pm { color: var(--green); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
details.acc:not([open]) summary .pm::before { content: "+"; }
details.acc[open] summary .pm::before { content: "–"; }
details.acc[open] summary { border-bottom: 1px solid var(--line); background: var(--green-soft); }
details.acc .acc-body { padding: 14px 20px 20px; }
@media (max-width: 480px) {
  details.acc summary { padding: 14px 16px; }
  details.acc .acc-body { padding: 12px 16px 16px; }
}

.reflist {
  margin: 14px 0 6px;
  columns: 2; column-gap: 40px;
  font-size: .95rem; color: var(--text);
}
@media (max-width: 600px) { .reflist { columns: 1; } }
.reflist li {
  margin-bottom: 8px; padding-left: 18px; position: relative;
  break-inside: avoid;
}
.reflist li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); opacity: .55;
}

.pub-item { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; color: var(--text); }
.pub-item:last-child { border-bottom: none; }
.pub-item a { text-decoration: none; overflow-wrap: anywhere; }
.pub-item a:hover { text-decoration: underline; }
.pub-link { display: block; margin-top: 2px; font-size: .88rem; }

/* ═══ Kontakt & Impressum ════════════════════════════════ */
.contact-grid { display: grid; gap: 28px; margin: 22px 0 46px; }
.contact-visual { margin: 0; max-width: 420px; }
.contact-visual svg { width: 100%; height: auto; display: block; }

.contact-list { font-style: normal; }
.contact-list dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 24px; }
.contact-list dt { color: var(--muted); font-weight: 600; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.impressum { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; }
.impressum h3 { margin-top: 0; }
.impressum .lead { font-size: .94rem; }
.impressum dl { display: grid; grid-template-columns: minmax(160px, 250px) 1fr; gap: 8px 24px; font-size: .94rem; }
.impressum dt { font-weight: 600; color: var(--ink); }
.impressum dd { color: var(--muted); }
.impressum a { text-decoration: none; }
.impressum a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .impressum { padding: 20px; }
  .impressum dl, .contact-list dl { grid-template-columns: 1fr; gap: 2px; }
  .impressum dd, .contact-list dd { margin-bottom: 10px; }
}

/* ═══ Datenschutz ════════════════════════════════════════ */
#datenschutz p { font-size: .88rem; line-height: 1.65; }
#datenschutz .stand { color: var(--muted); margin-top: 18px; }
/* Widerspruchsrecht: gesondert hervorgehoben (Art. 21 Abs. 4 DSGVO) */
#datenschutz .notice {
  margin: 28px 0 8px; padding: 4px 22px 8px;
  background: var(--green-soft); border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
}
#datenschutz .notice h3 { margin-top: 16px; }
@media (max-width: 480px) { #datenschutz .notice { padding: 2px 16px 6px; } }

/* ═══ Footer ═════════════════════════════════════════════ */
footer.site { border-top: 1px solid var(--line); padding: 28px 0; padding-bottom: max(28px, env(safe-area-inset-bottom)); color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
footer.site .legal a {
  text-decoration: none;
  display: inline-block; padding: 10px 8px; margin: -10px -8px;
}
footer.site .legal a:hover { text-decoration: underline; }
footer.site .sep { opacity: .6; padding: 0 2px; }

/* ═══ Bewegung reduzieren ════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ═══ Druck ══════════════════════════════════════════════ */
@media print {
  header.site { position: static; box-shadow: none; }
  .nav-toggle, nav.main, .mobile-panel, .to-top, .skip-link, .banner-frame { display: none !important; }
  section, .hero { padding: 16px 0; background: none; border: none; }
  body { font-size: 11pt; }
  .pub-link a::after { content: " (" attr(href) ")"; }
}
