/* ==========================================================================
   Nukleus – Stile (Business, Student, Standard), gleiche Datei in MyStats, Portal und MP3 Converter
   Cyberpunk ist das Design-Paket selbst (tokens.css, components.css) und braucht hier nichts.
   Hier stehen Schrift, Ecken und der Aufbau der gemeinsamen Bausteine je Stil (.card, .button, .chip ...).
   Keine Farbwerte: alle Farben eines Looks werden aus drei Startfarben berechnet (look-core.js).
   Was nur eine App hat (MyStats: Menü, Blöcke, Uhr, Skills ...) steht in deren CSS unter [data-style=...]
   (MyStats: css/styles.css).
   Auswahl: <html data-style="business|student|standard" data-theme="dark|light">

   Die drei Stile sind bewusst verschieden gebaut, nicht nur anders gefärbt:
   - Business (nach IBM Carbon): dicht wie eine Tabelle, eckig, Linien statt Schatten, Kopfzeile mit
     Trennlinie, Zahlen mit gleicher Ziffernbreite, eine Akzentfarbe.
   - Student (nach Miro): bunt, sehr rund, jede Karte in einem anderen Pastellton, große Titel, Knöpfe als Pillen.
   - Standard (nach Apple): ruhig und hell, weiche kleine Ecken, keine Linien um Karten, große Titel in
     Satzschreibung, Systemschrift.
   Schriften: IBM Plex Sans und Lexend, lokal in fonts/, SIL Open Font License
   (OFL-IBMPlexSans.txt, OFL-Lexend.txt). Quelle: Fontsource 5.3.0, Latin-Teilmenge (deckt Deutsch ab).
   ========================================================================== */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lexend";
  src: url("../fonts/Lexend-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lexend";
  src: url("../fonts/Lexend-SemiBold.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens je Stil ---- */
[data-style="business"] {
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-sans);
  --weight-display: 600;
  --tracking-display: 0;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-pill: 0;
  --size-control: 2.5rem;
  font-variant-numeric: tabular-nums;
}

[data-style="student"] {
  --font-sans: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-sans);
  --weight-display: 700;
  --tracking-display: 0;
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.75rem;
  --size-control: 2.875rem;
}

[data-style="standard"] {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --weight-display: 600;
  --tracking-display: -0.01em;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
}

/* ---- Alles, was nicht Cyberpunk ist: ohne HUD-Zierde ---- */
[data-style]:not([data-style="cyberpunk"]) ::selection {
  background: var(--color-blue-soft);
}

[data-style]:not([data-style="cyberpunk"]) .card {
  background: var(--color-surface);
}

/* keine Eckklammern */
[data-style]:not([data-style="cyberpunk"]) .card::before,
[data-style]:not([data-style="cyberpunk"]) .card::after {
  content: none;
}

/* Titel in normaler Schreibweise statt Versalien, ohne Raute und auslaufende Linie */
[data-style]:not([data-style="cyberpunk"]) .card__title,
[data-style]:not([data-style="cyberpunk"]) .page__title {
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text);
}

[data-style]:not([data-style="cyberpunk"]) .card__title::before,
[data-style]:not([data-style="cyberpunk"]) .card__title::after,
[data-style]:not([data-style="cyberpunk"]) .page__title::before {
  content: none;
}

/* Hauptknopf gefüllt in der Akzentfarbe */
[data-style]:not([data-style="cyberpunk"]) .button--primary {
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: var(--color-on-gold);
}

[data-style]:not([data-style="cyberpunk"]) .button--primary:hover {
  border-color: var(--color-gold-hover);
  background: var(--color-gold-hover);
}

/* kein Leuchten am Knopf, dafür ein kurzer Druckeffekt */
[data-style]:not([data-style="cyberpunk"]) .button:hover {
  box-shadow: none;
}

[data-style]:not([data-style="cyberpunk"]) .button:active {
  transform: translateY(1px);
}

/* ---- Business: dicht und eckig, Linien statt Schatten, Kopfzeile wie bei einer Tabelle ---- */
[data-style="business"] .card {
  padding: var(--space-5);
  border-color: var(--color-line);
  box-shadow: none;
}

[data-style="business"] .card__head {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: var(--border-width) solid var(--color-line);
}

[data-style="business"] .card__title,
[data-style="business"] .page__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

[data-style="business"] .card__hint {
  font-size: var(--text-xs);
}

[data-style="business"] .button {
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
}

[data-style="business"] .chip {
  font-weight: var(--weight-semibold);
}

/* ---- Student: bunt und rund, große Titel, Knöpfe als Pillen ---- */
[data-style="student"] .card {
  padding: var(--space-6);
  border-color: var(--color-clear);
  box-shadow: var(--shadow-card);
}

[data-style="student"] .card__title,
[data-style="student"] .page__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}

[data-style="student"] .button {
  border-radius: var(--radius-pill);
  padding: 0 var(--space-6);
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
}

[data-style="student"] .button:hover {
  transform: translateY(-1px);
}

[data-style="student"] .chip {
  font-weight: var(--weight-semibold);
}

/* ---- Standard: ruhig und hell, weiche kleine Ecken, Titel in Satzschreibung ---- */
[data-style="standard"] .card {
  padding: var(--space-6);
  border-color: var(--color-line);
  box-shadow: var(--shadow-card);
}

[data-style="standard"] .card__head {
  margin-bottom: var(--space-5);
}

[data-style="standard"] .card__title,
[data-style="standard"] .page__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-display);
}

[data-style="standard"] .button {
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
}

[data-style="standard"] .chip {
  border-radius: var(--radius-sm);
}

/* ---- Hintergründe: Cyberpunk hat sein HUD (Design-Paket), die anderen je ein eigenes Muster ---- */
[data-style="business"] body {
  /* Rasterpapier: zwei feine Linien alle 32 px */
  background-image:
    linear-gradient(color-mix(in srgb, var(--color-line) 30%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--color-line) 30%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  background-repeat: repeat;
}

[data-style="student"] body {
  /* drei weiche Farbflecken hinter der Seite */
  background-image:
    radial-gradient(42rem 30rem at 6% -6%, color-mix(in srgb, var(--color-tint-1) 90%, transparent), transparent 70%),
    radial-gradient(38rem 28rem at 96% 4%, color-mix(in srgb, var(--color-tint-2) 85%, transparent), transparent 70%),
    radial-gradient(44rem 30rem at 55% 108%, color-mix(in srgb, var(--color-tint-3) 80%, transparent), transparent 70%);
  background-size: auto;
  background-repeat: no-repeat;
}

[data-style="standard"] body {
  background-image: radial-gradient(70rem 22rem at 50% -9rem, var(--color-blue-soft), transparent 70%);
  background-size: auto;
  background-repeat: no-repeat;
}
