@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../assets/fonts/SchibstedGrotesk-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-top: var(--nav-h);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
}
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.025em; }
h4 { font-size: var(--fs-h4); line-height: 1.2; letter-spacing: -0.015em; }
p { max-width: var(--measure); text-wrap: pretty; }

/* Fokus: 2 px --ink Umriss (auf Schwarz invertiert) */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--ink-inverse); }

.skip {
  position: fixed; left: var(--gutter); top: 8px; z-index: 100;
  padding: 12px 16px; background: var(--ink); color: var(--ink-inverse);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Links und Buttons */
a { color: inherit; }
.textlink { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; min-height: 44px; display: inline-flex; align-items: center; }
.textlink:hover { text-decoration-thickness: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--ink); color: var(--ink-inverse);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: inherit; font-size: var(--fs-ui); font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: #262626; border-color: #262626; }
.on-dark .btn { background: var(--ink-inverse); color: var(--ink); border-color: var(--ink-inverse); }
.on-dark .btn:hover { background: #d9d9d9; border-color: #d9d9d9; }
.btn[disabled] { opacity: 0.55; cursor: default; }

/* Sichtbare Platzhalter */
.todo { outline: 1px dashed currentColor; outline-offset: 3px; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav__bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); gap: 16px; flex-wrap: wrap; }
.logo { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.04em; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav__toggle { display: none; min-height: 44px; padding: 0 4px; background: none; border: 0; font: inherit; font-size: var(--fs-ui); font-weight: 500; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.nav__menu { display: flex; align-items: center; gap: 28px; flex-basis: 100%; flex-wrap: wrap; padding-bottom: 16px; }
.nav__menu ul { display: flex; flex-wrap: wrap; gap: 0 20px; }
.nav__menu li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: var(--fs-ui); }
.nav__menu li a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.js-ready .nav__toggle { display: inline-flex; align-items: center; }
.js-ready .nav__menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; flex-direction: column; align-items: stretch; gap: 8px; }
.js-ready .nav__menu.is-open { display: flex; }
.js-ready .nav__menu ul { flex-direction: column; }
.js-ready .nav__menu li a { width: 100%; border-bottom: 1px solid var(--line); }

@media (min-width: 880px) {
  .nav__bar { flex-wrap: nowrap; }
  .nav__menu, .js-ready .nav__menu { flex-basis: auto; flex: 1; display: flex; flex-direction: row; justify-content: flex-end; position: static; padding: 0; border: 0; background: none; gap: 28px; flex-wrap: nowrap; }
  .nav__menu ul, .js-ready .nav__menu ul { flex-direction: row; gap: 0 24px; }
  .js-ready .nav__menu li a { width: auto; border: 0; }
  .js-ready .nav__toggle { display: none; }
  .nav__menu .btn { min-height: 44px; padding: 0 20px; }
}

section[id], main[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 48px; font-size: var(--fs-small); color: var(--muted); }
.footer__row { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; align-items: center; }
.footer ul { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
.footer a:hover { color: var(--ink); }
.footer .logo { color: var(--ink); }


/* Interaktiver Hover-Button (Erstgespräch buchen): Punkt füllt beim Hover die Fläche, Text wechselt mit Pfeil */
.ihb {
  position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  min-width: 232px; min-height: 52px; padding: 0 28px 0 44px;
  border: 1px solid var(--ink); border-radius: 999px; background: var(--bg); color: var(--ink);
  font: inherit; font-size: var(--fs-ui); font-weight: 500; letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
}
.ihb__label { display: inline-block; transform: translateX(4px); transition: transform .3s, opacity .3s; }
.ihb__hover {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--bg); opacity: 0; transform: translateX(48px); transition: transform .3s, opacity .3s;
}
.ihb__dot {
  position: absolute; left: 24px; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 8px; background: var(--ink);
  transition: left .3s, top .3s, width .3s, height .3s, transform .3s;
}
.ihb:hover .ihb__label, .ihb:focus-visible .ihb__label { transform: translateX(48px); opacity: 0; }
.ihb:hover .ihb__hover, .ihb:focus-visible .ihb__hover { transform: translateX(-4px); opacity: 1; }
.ihb:hover .ihb__dot, .ihb:focus-visible .ihb__dot { left: 0; top: 0; width: 100%; height: 100%; transform: scale(1.8); }
@media (prefers-reduced-motion: reduce) { .ihb__label, .ihb__hover, .ihb__dot { transition: none; } }
.nav__menu .ihb { min-width: 0; min-height: 44px; padding: 0 22px 0 38px; }
.nav__menu .ihb__dot { left: 18px; }
