/* =========================================================
   von Basum Steuerberatung – Design Tokens
   Single source of truth. Import this on every page.
   ========================================================= */

@import url('https://api.fontshare.com/v2/css?f[]=switzer@300,400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600&family=Manrope:wght@400;500;600&family=Inter+Tight:wght@400;500;600&family=Google+Sans+Flex:wght@400;500;600&family=Tenor+Sans&family=Playfair+Display:wght@400;500;600&family=Lustria&family=Reddit+Sans:wght@400;500;600&family=Funnel+Sans:wght@400;500;600&family=Besley:wght@400;500;600&family=Pontano+Sans:wght@400;500;600&display=swap');

/* Mona Sans — self-hosted (DSGVO: keine Anfragen an Google-Server).
   Font: Mona Sans by GitHub, SIL Open Font License 1.1.
   Subsets latin + latin-ext (deckt deutsche Umlaute/Sonderzeichen ab). */
@font-face {
  font-family: 'Mona Sans'; font-style: normal; font-weight: 400; font-stretch: 100%; font-display: swap;
  src: url('fonts/mona-sans-400-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: 'Mona Sans'; font-style: normal; font-weight: 400; font-stretch: 100%; font-display: swap;
  src: url('fonts/mona-sans-400-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: 'Mona Sans'; font-style: normal; font-weight: 500; font-stretch: 100%; font-display: swap;
  src: url('fonts/mona-sans-500-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: 'Mona Sans'; font-style: normal; font-weight: 500; font-stretch: 100%; font-display: swap;
  src: url('fonts/mona-sans-500-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: 'Mona Sans'; font-style: normal; font-weight: 600; font-stretch: 100%; font-display: swap;
  src: url('fonts/mona-sans-600-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: 'Mona Sans'; font-style: normal; font-weight: 600; font-stretch: 100%; font-display: swap;
  src: url('fonts/mona-sans-600-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;
}

:root {
  /* ---------- Color (Mono palette is the canonical baseline) ---------- */
  --bg:           #FFFFFF;
  --white:        #FFFFFF;
  --stone-100:    #F4F4F4;
  --stone-300:    #E5E5E5;

  --navy-500:     #1B365D;
  --navy-700:     #142847;
  --navy-900:     #0F0F0F;

  /* Stahl — secondary tone (dividers, icons, calm surfaces);
     also the primary colour when the Sand scheme is active */
  --steel-500:    #738391;
  --steel-700:    #5E6C78;

  /* Default accent = Burgunder */
  --cognac-500:   #6B2C39;
  --cognac-700:   #4E1F2A;
  --cognac-900:   #6B2D17;   /* darkest cognac — accent hover */

  /* Hover targets */
  --accent-hover: #6B2D17;   /* cognac 900 — alle Cognac-Hover */
  --navy-hover:   #0C1A30;   /* navy 900 — alle Navy-500-Hover */

  --text-dark:    #0F0F0F;
  --text-body:    #2A2A2A;
  --text-muted:   #6B6B6B;

  /* ---------- Type ----------
     H1 has its own family (--font-h1, default Cormorant Garamond via the
     'garamond' display tweak). H2/H3/Body use the active sans (--font-display
     / --font-body, default Switzer). --font-h1 falls back to --font-display so
     the uniform-font tweaks (Switzer, Manrope, …) still drive H1 too. */
  --font-display: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-h1:      var(--font-display);

  /* ---------- Radius ---------- */
  --r-button:     6px;
  --r-input:      6px;
  --r-card:       8px;
  --r-container:  12px;
  --r-tag:        4px;
  --r-image:      0px;   /* deliberate: never round images */

  /* ---------- Spacing scale ---------- */
  --s-1:   8px;
  --s-2:  16px;
  --s-3:  24px;
  --s-4:  32px;
  --s-5:  48px;
  --s-6:  64px;
  --s-7:  96px;
  --s-8: 120px;

  /* ---------- Layout ---------- */
  --max-w:       1240px;
  --section-py:  104px;   /* 96–120 */

  /* ---------- Borders ---------- */
  --hairline: 1px solid var(--stone-300);
  --hairline-thin: 0.5px solid var(--stone-300);
}

/* ---------- Base reset & body ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

/* ---------- Type scale ----------
   Weight rules: H1 SemiBold (600) · H2 Medium (500) · Body Regular (400).
   These weights must stay constant when the font is switched.
   ---------------------------------- */
.h1, h1 {
  font-family: var(--font-h1);
  font-weight: 600;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy-500);
}
.h2, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy-500);
}
.h3, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.3;
  margin: 0;
  color: var(--navy-500);
}
.body-lg { font-size: 18px; line-height: 1.55; color: var(--text-body); }
.body    { font-size: 16px; line-height: 1.6;  color: var(--text-body); }
.caption { font-size: 14px; line-height: 1.5;  color: var(--text-muted); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cognac-500);
}

p { margin: 0 0 1em 0; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--r-button);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary {
  background: var(--navy-500);
  color: var(--bg);
}
.btn-primary:hover { background: var(--navy-hover); }

.btn-secondary {
  background: transparent;
  border-color: var(--navy-500);
  color: var(--navy-500);
}
.btn-secondary:hover { background: rgba(27,54,93,0.06); }

.btn-link {
  color: var(--cognac-500);
  text-decoration: none;
  border-bottom: 1.5px solid var(--cognac-500);
  padding: 0 0 2px 0;
  font-weight: 500;
}
.btn-link:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}
.section-stone { background: var(--stone-100); }
.section-navy  { background: var(--navy-900); color: var(--bg); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--bg); }

/* ---------- Card ---------- */
.card {
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--r-card);
  padding: 32px;
}

/* =========================================================
   THEME OVERRIDES — driven by <html data-*> attributes.
   Foundation tweak-panel toggles these; structure never changes.
   ========================================================= */

/* Headline + body font (one family does both — weights handle hierarchy) */
html[data-display="switzer"]            { --font-display: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;            --font-body: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
html[data-display="plus-jakarta-sans"]  { --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;   --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
html[data-display="manrope"]            { --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;             --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
html[data-display="inter-tight"]        { --font-display: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;          --font-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
html[data-display="google-sans-flex"]   { --font-display: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;     --font-body: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
html[data-display="tenor-sans"]         { --font-display: 'Tenor Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;           --font-body: 'Tenor Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
html[data-display="mona-sans"]          { --font-display: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;             --font-body: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
html[data-display="reddit-sans"]        { --font-display: 'Reddit Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;          --font-body: 'Reddit Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
html[data-display="funnel-sans"]        { --font-display: 'Funnel Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;          --font-body: 'Funnel Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
html[data-display="pontano-sans"]       { --font-display: 'Pontano Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;         --font-body: 'Pontano Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* Serif display faces — elegant headlines, set uniformly across the page */
html[data-display="playfair"]           { --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;                            --font-body: 'Playfair Display', Georgia, 'Times New Roman', serif; }
html[data-display="lustria"]            { --font-display: 'Lustria', Georgia, 'Times New Roman', serif;                                     --font-body: 'Lustria', Georgia, 'Times New Roman', serif; }
html[data-display="besley"]             { --font-display: 'Besley', Georgia, 'Times New Roman', serif;                                      --font-body: 'Besley', Georgia, 'Times New Roman', serif; }

/* Accent colour — burgundy is the baseline (see :root); these are alternates */
html[data-accent="burgundy"] {
  --cognac-500: #6B2C39;
  --cognac-700: #4E1F2A;
}
html[data-accent="cognac"] {
  --cognac-500: #B5552E;
  --cognac-700: #8A4124;
}
html[data-accent="bronze"] {
  --cognac-500: #9C7849;
  --cognac-700: #6E5333;
}
html[data-accent="sienna"] {
  --cognac-500: #966542;
  --cognac-700: #6E4A30;
}

/* Sand accent — primary colour stays Navy (see :root). Stahl is reserved
   as a secondary tone (icons, dividers), not the primary. */
html[data-accent="sand"] {
  --cognac-500:   #A79A8A;   /* Sand — accent */
  --cognac-700:   #8C8070;
  --accent-hover: #8C8070;
}

/* Sharp corners — all radii to 0 (images stay 0 either way) */
html[data-corners="sharp"] {
  --r-button:    0px;
  --r-input:     0px;
  --r-card:      0px;
  --r-container: 0px;
  --r-tag:       0px;
}

/* ---------- Image placeholder (when real image not available) ---------- */
.img-placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(27,54,93,0.04) 0px,
      rgba(27,54,93,0.04) 12px,
      rgba(27,54,93,0.07) 12px,
      rgba(27,54,93,0.07) 24px
    ),
    var(--stone-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
  border-radius: var(--r-image);
}
