/* ── Hofer.Consult — shared base (fonts, tokens, header, buttons) ── */

/* ── FONTS (self-hosted, SIL Open Font License) ─────────────
   Variable fonts: one file covers the full weight range.     */
@font-face {
  font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(../fonts/newsreader-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(../fonts/newsreader-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/instrument-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/instrument-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── TOKENS ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans:  'Instrument Sans', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, monospace;

  --forest-950: #0E1A14; --forest-900: #152822; --forest-800: #1B3A30;
  --forest-700: #244F42; --forest-600: #2F6454; --forest-500: #3F7F6B;
  --forest-400: #69A290; --forest-300: #9BC4B6; --forest-200: #C9E0D7;
  --forest-100: #E6F0EB; --forest-50:  #F2F7F4;

  --paper-950: #1A1814; --paper-900: #25221C; --paper-800: #3A352C;
  --paper-700: #554E42; --paper-600: #78705F; --paper-500: #9A907C;
  --paper-400: #BBB0A0; --paper-300: #D6CEC0; --paper-200: #E8E2D6;
  --paper-100: #F2ECE0; --paper-50:  #F8F4EA; --paper-25:  #FCFAF3;

  --brass-900: #5A4014; --brass-700: #8C6320; --brass-600: #A87A29;
  --brass-500: #C19039; --brass-400: #D4A858; --brass-300: #E4C284;
  --brass-200: #F0DBB3; --brass-100: #F8EBD5;

  --signal-green: #23A06B;
  --signal-red:   #9A3C2F;

  --bg-canvas:  var(--paper-50);
  --bg-inverse: var(--forest-900);
  --fg-primary: var(--forest-950);
  --fg-secondary: var(--paper-800);
  --fg-tertiary:  var(--paper-600);
  --fg-brand:     var(--forest-700);
  --fg-accent:    var(--brass-700);

  --border-subtle:  rgba(26,24,20,.08);
  --border-default: rgba(26,24,20,.14);
  --border-strong:  rgba(26,24,20,.32);
  --border-inverse: rgba(242,236,224,.12);

  --ease-std: cubic-bezier(0.22,0.61,0.36,1);
  --ease-in:  cubic-bezier(0.16,1,0.3,1);
}

body {
  background: var(--bg-canvas);
  color: var(--fg-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── LOGO (inline SVG wordmark) ─────────────────────────── */
.wm-h { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.02em; }
.wm-c { font-family: var(--font-sans); font-weight: 600; letter-spacing: .01em; }

/* ── HEADER ─────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 68px;
  background: rgba(248,244,234,.82);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 200ms var(--ease-std);
}
.hdr.scrolled { box-shadow: 0 1px 16px rgba(26,24,20,.07); }
.hdr-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hdr-brand svg { height: 34px; width: auto; display: block; }
.hdr-nav { display: flex; align-items: center; gap: 28px; }
.hdr-nav a {
  color: var(--fg-secondary); font-size: 14px; text-decoration: none;
  letter-spacing: -.01em; transition: color 160ms;
}
.hdr-nav a:hover { color: var(--fg-primary); }
.hdr-nav .btn-primary,
.hdr-nav .btn-primary:hover { color: #fff; }

/* Schmale Fenster: „Startseite" ausblenden, damit die Nav nicht ans Logo stößt (Logo führt ebenfalls zur Startseite) */
@media (max-width: 960px) {
  .hdr-nav .nav-home { display: none; }
}
/* Mobil: nur der Button „Erstberatung" bleibt im Header sichtbar */
@media (max-width: 780px) {
  .hdr { padding: 0 20px; }
  .hdr-nav a:not(.btn) { display: none; }
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  padding: 10px 18px; border-radius: 4px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: background 180ms var(--ease-std), color 180ms var(--ease-std),
              transform 120ms var(--ease-std), box-shadow 180ms var(--ease-std);
  white-space: nowrap;
}
.btn-primary {
  background: var(--forest-800); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 2px rgba(0,0,0,.08);
}
.btn-primary:hover {
  background: var(--forest-950); color: #fff;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 4px 12px rgba(21,40,34,.22);
}
.btn-accent {
  background: var(--brass-500); color: var(--forest-950);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(0,0,0,.06);
}
.btn-accent:hover {
  background: var(--brass-400); color: var(--forest-950);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(167,124,47,.28);
}
.btn-secondary {
  background: transparent; color: var(--forest-900);
  border-color: var(--forest-300);
}
.btn-secondary:hover { background: var(--forest-50); border-color: var(--forest-500); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(35,160,107,.18); }
  50%      { box-shadow: 0 0 0 6px rgba(35,160,107,0); }
}
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
