/* ==========================================================================
   style_main.css – gemeinsame Styles aller Webseiten (www, gamedate, ...)
   Wird VOR der seiten-spezifischen style.css eingebunden.
   Seitenspezifische Besonderheiten gehören in die jeweilige style.css.
   ========================================================================== */

/* ==========================================================================
   1. Schriften
   Eigene Schriften liegen unter assets/fonts (falls installiert),
   sonst greifen die Fallbacks aus den Variablen unten.
   ========================================================================== */
@font-face {
  font-family: "NEXT ART";
  src: url("assets/fonts/NEXT%20ART_Thin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NEXT ART";
  src: url("assets/fonts/NEXT%20ART_Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NEXT ART";
  src: url("assets/fonts/NEXT%20ART_Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NEXT ART";
  src: url("assets/fonts/NEXT%20ART_SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NEXT ART";
  src: url("assets/fonts/NEXT%20ART_Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Style your Lipstick";
  src: url("assets/fonts/Style%20your%20Lipstick.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Recepts NF W01";
  src: url("assets/fonts/Recepts%20NF%20W01%20Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   2. Design-Variablen (Farben, Schriften)
   ========================================================================== */
:root {
  color-scheme: dark;

  /* Flächen & Text (Palette von GameDate) */
  --bg: #100e15;
  --panel: rgba(26, 24, 34, 0.86);
  --panel-2: #1a1822;
  --panel2: var(--panel-2);
  --text: #eeeaf3;
  --muted: #aaa5b5;
  --soft: #948da3;

  /* Akzentfarben */
  --purple: #aa9bda;
  --pink: #d49bc5;
  --cyan: #8acbd3;
  --mint: #b7d5c1;
  --lime: var(--mint);
  --orange: #d9ad98;

  /* Linien */
  --line: rgba(194, 185, 213, 0.13);
  --stroke: var(--line);

  /* Schriftarten */
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "DM Mono", monospace;
  --body: var(--sans);
  --display: var(--sans);
  --script: "Style your Lipstick", "Brush Script MT", cursive;
}

/* ==========================================================================
   3. Reset & Basis-Elemente
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(
      ellipse at 13% 4%,
      rgba(112, 81, 197, 0.16),
      transparent 30rem
    ),
    radial-gradient(
      ellipse at 92% 26%,
      rgba(91, 145, 157, 0.09),
      transparent 27rem
    ),
    var(--bg);
}

/* Dezentes Gitter im Hintergrund */
body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ==========================================================================
   4. Barrierefreiheit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   5. Gemeinsame Komponenten
   ========================================================================== */

/* Logo / Markenzeichen in der Kopfzeile */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
  color: var(--text);
}

.brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #130e20;
  background: linear-gradient(
    135deg,
    var(--cyan),
    var(--purple) 55%,
    var(--pink)
  );
  box-shadow: 0 0 30px #9174ff2b;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.065em;
}

.brand-name span {
  color: var(--purple);
}
