/* Magdeburg eSports – Design-Tokens
   Quelle: Figma "MDeS Website-Konzept", Seite "02 Website-Relaunch"
   (Frames Desktop 1440 / Tablet 768 / Mobile 390, Text-Styles Type/*, Radien 4/8/12/16).

   Breakpoints (Referenzbreiten der Frames):
     Mobile   < 768px    (Design 390px, 4 Spalten, Rand 16, Gutter 16)
     Tablet   768-1199px (Design 768px, 8 Spalten, Rand 24, Gutter 20)
     Desktop  >= 1200px  (Design 1440px, 12 Spalten, Rand 80, Gutter 24)

   Schriften sind lokal eingebunden (kein Aufruf externer Server, DSGVO). */

@font-face {
  font-family: 'Khand';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../Fonts/Khand-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Mukta';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../Fonts/Mukta-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Mukta';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../Fonts/Mukta-SemiBold.woff2') format('woff2');
}

/* ------------------------------------------------------------------ */
/* Basis: Desktop (>= 1200px)                                          */
/* ------------------------------------------------------------------ */
:root {
  /* Farben (Figma-Variablen: ink, cream, red, red-text, gold) */
  --color-ink: #2a2a28;
  --color-cream: #e4e2d9;
  --color-red: #f03625;
  --color-red-text: #b32618;
  --color-gold: #c7a35e;
  --color-white: #ffffff;
  /* abgeleitete Werte, die im Design vorkommen */
  --color-nav-text: #e0ded6;        /* 224,222,214 – Navigation auf dunkel */
  --color-muted: #5f5f5a;           /* 95,95,90 – gedämpfter Fließtext auf Creme, 4,95:1 (AA) */
  --color-on-dark-muted: #d9d6cc;   /* 217,214,204 – Beschriftung auf dunkel */
  --color-scrim: rgb(0 0 0 / 0.35);  /* Foto-Credit-Hintergrund */

  /* Eckradien (eine Stufe pro Element) */
  --radius-s: 4px;   /* Buttons, Tags, Credits, Social-Icons */
  --radius-m: 8px;   /* Datums-Badge, Logos in Partner-Karten */
  --radius-l: 12px;  /* Karten, News-Bilder */
  --radius-xl: 16px; /* große Foto-/Video-Flächen, rote Karten */

  /* Raster */
  --page-max: 1440px;
  --page-margin: 80px;
  --gutter: 24px;
  --cols: 12;
  --section-pad-y: 60px;

  /* Schriftfamilien */
  --font-head: 'Khand', Arial, sans-serif;
  --font-body: 'Mukta', Arial, sans-serif;

  /* Typo-Rollen: Größe / Zeilenhöhe / Laufweite
     Zeilenhöhen als ganze Pixel: Figma rundet "145 %" bei 14 px auf 20 px (nicht 20,3), so stimmen
     die Abschnittshöhen in Neos mit den Figma-Frames überein. */
  --fs-display-xl: min(10.556vw, 152px);  /* 152 bei 1440 */
  --lh-display-xl: normal;
  --fs-display-l: min(7.292vw, 105px);    /* 105 bei 1440 */
  --lh-display-l: normal;
  --fs-h2: 40px;      --lh-h2: 1;
  --fs-h3: 32px;      --lh-h3: 37px;      --ls-h3: 0.02em;
  --fs-title: 18px;   --lh-title: 21px;   --ls-title: 0.02em;
  --fs-lede: 18px;    --lh-lede: 26px;
  --fs-body: 14px;    --lh-body: 20px;
  --fs-ui: 15px;      --lh-ui: 18px;
  --fs-button: 15px;  --lh-button: 18px;   --ls-button: 0.04em;
  --fs-tag: 11px;     --lh-tag: 13px;      --ls-tag: 0.08em;
}

/* ------------------------------------------------------------------ */
/* Tablet (768 - 1199px)                                               */
/* ------------------------------------------------------------------ */
@media (max-width: 1199px) {
  :root {
    --page-margin: 24px;
    --gutter: 20px;
    --cols: 8;

    --fs-display-xl: min(10.417vw, 80px);  /* 80 bei 768 */
    --fs-display-l: min(7.161vw, 55px);    /* 55 bei 768 (0,69 x XL wie Desktop) */
    --fs-h2: 32px;
    --fs-h3: 28px;      --lh-h3: 32px;
    --fs-lede: 16px;    --lh-lede: 23px;
    --fs-ui: 14px;      --lh-ui: 17px;
  }
}

/* ------------------------------------------------------------------ */
/* Mobile (< 768px)                                                    */
/* ------------------------------------------------------------------ */
@media (max-width: 767px) {
  :root {
    --page-margin: 16px;
    --gutter: 16px;
    --cols: 4;
    --section-pad-y: 40px;

    --fs-display-xl: min(11.795vw, 64px);  /* 46 bei 390 (größte Größe, bei der "ZUSAMMEN SIND WIR" in eine Zeile passt) */
    --fs-display-l: min(8.205vw, 45px);    /* 32 bei 390 (0,7 x XL) */
    --fs-h2: 28px;
    --fs-h3: 24px;      --lh-h3: 28px;
  }
}

/* ------------------------------------------------------------------ */
/* Typo-Klassen (1:1 die Figma-Styles Type/*)                          */
/* ------------------------------------------------------------------ */
.t-display-xl { font: 700 var(--fs-display-xl)/var(--lh-display-xl) var(--font-head); }
.t-display-l  { font: 700 var(--fs-display-l)/var(--lh-display-l) var(--font-head); }
.t-h2         { font: 700 var(--fs-h2)/var(--lh-h2) var(--font-head); }
.t-h3         { font: 700 var(--fs-h3)/var(--lh-h3) var(--font-head); letter-spacing: var(--ls-h3); }
.t-title      { font: 700 var(--fs-title)/var(--lh-title) var(--font-head); letter-spacing: var(--ls-title); }
.t-lede       { font: 400 var(--fs-lede)/var(--lh-lede) var(--font-body); }
.t-body       { font: 400 var(--fs-body)/var(--lh-body) var(--font-body); }
.t-ui         { font: 600 var(--fs-ui)/var(--lh-ui) var(--font-body); }
.t-button     { font: 600 var(--fs-button)/var(--lh-button) var(--font-body); letter-spacing: var(--ls-button); }
.t-tag        { font: 600 var(--fs-tag)/var(--lh-tag) var(--font-body); letter-spacing: var(--ls-tag); }

/* ------------------------------------------------------------------ */
/* Raster                                                              */
/* ------------------------------------------------------------------ */
.container {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-margin);
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
}

/* Spaltenbreite je Breakpoint über Custom Properties, z. B.
   <div class="cell" style="--span-m:4; --span-t:4; --span-d:6"> */
.grid > .cell { grid-column: span var(--span-m, 4); }
@media (min-width: 768px) {
  .grid > .cell { grid-column: span var(--span-t, var(--span-m, 8)); }
}
@media (min-width: 1200px) {
  .grid > .cell { grid-column: span var(--span-d, var(--span-t, var(--span-m, 12))); }
}

/* Section-Rhythmus: 60 / 60 (Desktop, Tablet), 40 / 40 (Mobile) */
.section { padding-block: var(--section-pad-y); }

/* ------------------------------------------------------------------ */
/* Button: Höhe 46 px (28 / 14 Padding), Breite folgt dem Text         */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 46px;
  padding: 14px 28px;
  border-radius: var(--radius-s);
  border: 0;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { opacity: 0.9; }
.btn--primary { background: var(--color-red-text); color: var(--color-white); }
.btn--outline { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 1.5px var(--color-ink); }
.btn--outline-light { background: transparent; color: var(--color-cream); box-shadow: inset 0 0 0 1.5px var(--color-cream); }
@media (max-width: 767px) {
  .btn--block { display: flex; width: 100%; }
}
