/* =========================================================
   1. SCHRIFTARTEN LOKAL LADEN (DSGVO-KONFORM)
   ========================================================= */

/* --- INTER (Fließtext) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400; /* Regular */
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400; /* Italic */
  src: url('../fonts/inter-v20-latin-italic.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700; /* Bold */
  src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
  font-display: swap;
}

/* --- WORK SANS (Überschriften) --- */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 200; /* Extra Light */
  src: url('../fonts/work-sans-v24-latin-200.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 800; /* Extra Bold */
  src: url('../fonts/work-sans-v24-latin-800.woff2') format('woff2');
  font-display: swap;
}

/* =========================================================
   2. VARIABLEN & FARBEN (FÜR BOOTSTRAP UND CASSIOPEIA)
   ========================================================= */

:root, body {
  /* Basis-Farben Die Linke */
  --linke-rot: #e6001a; 
  --linke-magenta: #b1003a;
  --linke-dunkel: #1a1a1a;
  --linke-grau: #f4f4f4;

  /* 1. Cassiopeia direkt überschreiben (WICHTIG!) */
  --cassiopeia-font-family-body: 'Inter', sans-serif !important;
  --cassiopeia-font-family-headings: 'Work Sans', sans-serif !important;
  --cassiopeia-color-primary: var(--linke-rot) !important;
  --cassiopeia-color-hover: var(--linke-magenta) !important;
  --cassiopeia-color-link: var(--linke-rot) !important;
  
  /* Die Inline-Styles von Cassiopeia kaltstellen */
  --template-special-color: var(--linke-rot) !important;
  --template-link-color: var(--linke-rot) !important;
  --template-bg-light: var(--linke-grau) !important;
  --template-text-dark: var(--linke-dunkel) !important;

  /* 2. Normale Bootstrap-Variablen (als Backup) */
  --bs-primary: var(--linke-rot);
  --bs-body-color: var(--linke-dunkel);
  --bs-link-color: var(--linke-rot);
  --bs-link-hover-color: var(--linke-magenta);
}

/* =========================================================
   3. SCHRIFTEN DIREKT ZUWEISEN (DER HOLZHAMMER)
   ========================================================= */

/* Fließtext zwingend auf Inter setzen */
body, p, li, a, span {
  font-family: 'Inter', sans-serif !important;
}

/* Alle Überschriften zwingend auf Work Sans setzen */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Work Sans', sans-serif !important;
  font-weight: 800 !important; /* Den dicken "Extra Bold" Schnitt erzwingen */
  color: var(--linke-dunkel);
}

/* Link-Farben allgemein anpassen */
a {
  color: var(--linke-rot) !important;
  text-decoration: none;
}
a:hover {
  color: var(--linke-magenta) !important;
  text-decoration: underline;
}

/* =========================================================
   3. TYPE SCALE (Digitale Anpassung) & HEADINGS
   ========================================================= */

/* Anpassung der Überschriften gemäß digitaler Skalierung */
h1, .h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem); /* Skaliert responsiv mit der Bildschirmgröße */
  letter-spacing: -0.02em; /* Leicht engere Laufweite, typisch für Work Sans 800 */
  margin-bottom: 1.5rem;
  text-transform: uppercase; /* Oft im CD für Hauptschlagzeilen genutzt, ggf. entfernen */
}

h2, .h2 {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

h3, .h3 {
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

/* Eine Hilfsklasse für extrem feine Überschriften (Work Sans 200) */
/* Perfekt für Zitate oder große, leichte Introtexte */
.font-light {
  font-weight: 200 !important;
}

/* =========================================================
   4. LAYOUT-HILFEN (Typo3-Look)
   ========================================================= */

/* Der rote Balken oben am Header (wie auf www.die-linke.de) */
.container-header {
  border-top: 5px solid var(--linke-rot);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Markante Inhaltskacheln */
.lissi-kachel {
  background-color: var(--linke-grau);
  padding: 2rem;
  height: 100%;
  border-left: 8px solid var(--linke-rot);
}

:root {
  /* Hier weisen wir dem Fließtext (Body) die Inter zu */
  --bs-body-font-family: 'Inter', sans-serif;
  
  /* Hier weisen wir allen Überschriften (Headings) die Work Sans zu */
  --bs-heading-font-family: 'Work Sans', sans-serif;
}