/* =======================================================
   CORE.CSS
   Basis / Reset / Tokens / Mobile-First Defaults
   ======================================================= */
   
/* -----------------------
   Reset & Box-Sizing
   ----------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

/* -----------------------
   CSS Tokens (neutral)
   ----------------------- */
:root {

  /* Backgrounds */
  --bg: #f9f5f0;
  --bg-soft: #fdf7f0dc;
  --panel: rgba(252, 246, 237, 0.6);

  /* Text */
  --text: #222222;
  --text-muted: rgba(80, 80, 80, 0.65);

  /* Borders */
  --border: rgba(200, 200, 200, 0.35);

  /* Accent (sehr dezent!) */
  --accent: #b0c4de;

  /* Shadows */
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);

  /* Layout */
  --max-width: 1120px;
  --page-padding: 16px;
  --section-spacing: 32px;

  /* Header */
  --header-height: 64px;

  /* Typography */
  --font-base: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;


  --ticker-height: 20px;
    
  /* Gesamtoffset (Header + Ticker) */
  --header-offset: calc(var(--header-height) + var(--ticker-height));
    
  --fixed-panel-height: 800px;
}

/* =======================================================
   Dark Theme – derived from Warm-Gray palette
   ======================================================= */

html[data-theme="dark"] {
  /* Backgrounds */
  --bg: #181a20;
  --bg-soft: #20222a;
  --panel: rgba(40, 40, 50, 0.55);

  /* Text */
  --text: #f3f6fa;
  --text-muted: rgba(200, 200, 200, 0.65);

  /* Borders */
  --border: rgba(80, 80, 80, 0.35);

  /* Accent */
  --accent: #b0c4de;

  /* Shadow */
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
}

/* -----------------------
   Base Typography
   ----------------------- */
body {
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering: optimizeLegibility;
}

/* Headings – bewusst simpel */
h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 0.6em
}

h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  line-height: 1.25;
  margin-bottom: 0.4
}

h3 {
  font-size: 1.05rem;
  line-height: 1.3
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.4em;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1,
h2 {
  font-family:'Bragga';
}

p {
  margin: 0 0 1em;
  margin-bottom: 1.1rem;
  max-width: 65ch;
}

/* -----------------------
   Links
   ----------------------- */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* -----------------------
   Media Defaults
   ----------------------- */
img,
picture,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* -----------------------
   Accessibility
   ----------------------- */
:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* -----------------------
   Main Offset (Fixed Header)
   ----------------------- */
main {
  padding-top: var(--header-height);
}

.muted {
    color: var(--text-muted);
}

/* -----------------------
   Utility (sehr sparsam!)
   ----------------------- */
.hidden {
  display: none !important;
}

/* -----------------------
   Barrierefreiheit
   ----------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.skip-link:focus {
  left: 12px;
  z-index: 2000;
}

@media (max-width: 360px) {
    body {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
  :root {
    --fixed-panel-height: 300px;
    /* Mobile max 300px */
  }
}

@font-face {
font-family: "bragga";
font-style: normal;
font-weight: normal;
font-display: swap;
src: url("/assets/fonts/bragga.ttf") format("truetype");
}

.custom-font {
  font-family: "bragga";
}