/* Schriften: lokal, Latin-Subset, SIL Open Font License (Lizenztexte in src/fonts/) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/fraunces-900.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-400.woff2') format('woff2');
}

/* Erweiterter Zeichensatz (Latin Extended, z. B. Polnisch ą ć ę ł ń ś ź ż), Quelle: Fontsource, ebenfalls OFL.
   Der Browser lädt diese Dateien nur, wenn eine Seite solche Zeichen enthält. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/fraunces-900-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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400-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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-400-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;
}

/* Farben (erzeugt aus src/lib/farben.js) */
:root {
  --sb-waldgruen: #113529;
  --sb-kieferngruen: #2F5A45;
  --sb-salbei: #6E8F6A;
  --sb-moos: #A9C3A0;
  --sb-nebelgruen: #D6E3CC;
  --sb-creme: #EDEAE0;
  --sb-bernstein: #C9963C;
  --sb-tinte: #1B2A22;
  --sb-bernstein-dunkel: #8C5F1C;
  --sb-bernstein-text: #A8782A;
}

/* Kopf- und Fußzeile. Alles unter .sb-kopf / .sb-fuss gekapselt,
   damit das Paket auch auf der Mutkompass-Landingpage neben deren CSS funktioniert. */

.sb-kopf, .sb-kopf *, .sb-fuss, .sb-fuss * { box-sizing: border-box; }

/* Filter-Bibliothek (unsichtbar) */
.sb-filter { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Sprunglink für Tastatur-Nutzer */
.sb-sprung {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--sb-waldgruen);
  color: var(--sb-creme);
  font: 500 16px/1.4 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.sb-sprung:focus { top: 12px; color: var(--sb-creme); outline: 3px solid var(--sb-bernstein); outline-offset: 3px; }

/* ---------- Kopfzeile ---------- */
.sb-kopf {
  position: relative;
  z-index: 10;
  background: var(--sb-creme);
  color: var(--sb-waldgruen);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.4;
}
.sb-kopf__innen {
  max-width: 1104px;
  margin: 0 auto;
  padding: 14px max(16px, 4vw);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.sb-kopf__marke {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sb-waldgruen);
  text-decoration: none;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
}
.sb-kopf__marke img { display: block; width: 44px; height: 44px; }
.sb-kopf__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}
.sb-kopf__nav a {
  display: inline-block;
  padding: 10px 0;
  color: var(--sb-waldgruen);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color .2s ease;
}
.sb-kopf__nav a:hover { text-decoration-color: var(--sb-bernstein); }
.sb-kopf__menueknopf { display: none; }
.sb-kopf__linie { display: block; width: 100%; height: 8px; }
.sb-kopf a:focus-visible,
.sb-kopf button:focus-visible {
  outline: 3px solid var(--sb-waldgruen);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 720px) {
  .sb-kopf__marke { font-size: 18px; }
  /* Ohne JavaScript bleiben die Links sichtbar und rutschen unter die Marke */
  .sb-kopf__nav { flex-basis: 100%; }
  .sb-kopf__nav ul { gap: 0 18px; }

  .js .sb-kopf__menueknopf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    margin: 0;
    font: 500 16px/1 'Inter', system-ui, sans-serif;
    color: var(--sb-waldgruen);
    background: transparent;
    border: 1.5px solid var(--sb-kieferngruen);
    border-radius: 999px;
    cursor: pointer;
  }
  .js .sb-kopf__nav { display: none; }
  .js .sb-kopf__menueknopf[aria-expanded="true"] + .sb-kopf__nav { display: block; }
  .js .sb-kopf__nav ul { flex-direction: column; padding: 6px 0 4px; }
  .js .sb-kopf__nav a { display: block; padding: 12px 0; }
}

/* ---------- Fußzeile ---------- */
.sb-fuss {
  background: var(--sb-waldgruen);
  color: var(--sb-creme);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
.sb-fuss__innen {
  max-width: 1104px;
  margin: 0 auto;
  padding: 44px max(16px, 4vw) 40px;
  display: grid;
  gap: 14px;
}
.sb-fuss p { margin: 0; }
.sb-fuss__marke { display: flex; align-items: center; gap: 14px; }
.sb-fuss__marke strong { font-family: 'Fraunces', Georgia, serif; font-weight: 900; font-size: 17px; }
/* Auf Waldgrün würde der Kreis des Badges verschwinden: darum eine Creme-Fläche dahinter */
.sb-fuss__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--sb-creme);
}
.sb-fuss__badge img { display: block; width: 48px; height: 48px; }
.sb-fuss ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
}
.sb-fuss li + li::before {
  content: "·";
  content: "·" / "";
  margin-right: 10px;
  color: var(--sb-moos);
}
.sb-fuss a {
  display: inline-block;
  padding: 6px 0;
  color: var(--sb-creme);
  text-decoration: underline;
  text-decoration-color: rgba(201, 150, 60, .6);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.sb-fuss a:hover { text-decoration-color: var(--sb-bernstein); }
.sb-fuss a:focus-visible {
  outline: 3px solid var(--sb-bernstein);
  outline-offset: 3px;
  border-radius: 2px;
}
.sb-fuss__recht { color: var(--sb-nebelgruen); }
/* Direkt nach einem waldgrünen Abschnitt (Startseite): feine Trennlinie */
.sb-fuss--anschluss .sb-fuss__innen { border-top: 1px solid rgba(169, 195, 160, .3); }

/* Auf Seiten mit eigenem Design (Mutkompass) setzt deren CSS generische footer-Regeln
   (Abstände, Flex-Navigation, Linkfarben). Diese Regeln heben sie für die Studio-Fußzeile auf. */
footer.sb-fuss {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
}
footer.sb-fuss nav { display: block; }
footer.sb-fuss a { font-size: 15px; }
footer.sb-fuss a:hover { color: var(--sb-creme); }

/* Kleingedrucktes der Mutkompass-Seite (vorher Teil der alten Fußzeile) */
.sb-kleingedruckt {
  position: relative;
  z-index: 1;
  max-width: 1104px;
  margin: clamp(32px, 6vw, 64px) auto 0;
  padding: 0 max(16px, 4vw) 28px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: #5E5A53;
}
.sb-kleingedruckt p { margin: 0; }

/* Sprachauswahl auf mehrsprachigen Seiten (App-Seiten, Landingpage); im Rahmen-Paket, damit es auch auf den Altseiten wirkt */
.sb-sprachwahl { margin: 0 0 28px; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.4; }
.sb-sprachwahl ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.sb-sprachwahl li { margin: 0; }
.sb-sprachwahl a, .sb-sprachwahl [aria-current] {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--sb-kieferngruen); color: var(--sb-waldgruen); text-decoration: none;
}
.sb-sprachwahl a:hover { background: rgba(255, 255, 255, .6); }
.sb-sprachwahl [aria-current] { background: var(--sb-waldgruen); border-color: var(--sb-waldgruen); color: var(--sb-creme); font-weight: 500; }
