/* ==============================
   Fonts
   ============================== */

/* Bebas Neue (nur Regular, reicht als Display-Font) */
@font-face {
  font-family: 'Bebas Neue';
  src: url('/assets/fonts/BebasNeue-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Open Sans Variable (normal) */
@font-face {
  font-family: 'Open Sans Variable';
  src: url('/assets/fonts/OpenSans-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

/* Open Sans Variable (italic) */
@font-face {
  font-family: 'Open Sans Variable';
  src: url('/assets/fonts/OpenSans-Italic-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: italic;
  font-display: swap;
}

/* ==============================
   Reset & Basics
   ============================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; scroll-behavior: smooth;}
body {
  font: 16px/1.5 system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--fg);
}
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

/* Screenreader-Only */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==============================
   Variablen & Theme
   ============================== */
:root {
  --bg: #ffffff;
  --fg: #0b0b0c;
  --muted: #6b7280;
  --accent: #DC2E49;
  --radius: 0.5rem;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Open Sans Variable', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --fg: #f5f6f7;
    --muted: #9aa0a6;
    --accent: #DC2E49;
  }
}

/* ==============================
   Typografie
   ============================== */
a { color: var(--fg); text-decoration: none; }
h1, h2 {   font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.02em;margin-top: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem);  margin-bottom: 1rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; }
.muted { color: var(--muted); }

/* Grundlegendes */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
}

/* Text */
p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

small {
  font-size: 0.85rem;
  color: var(--muted);
}

strong {
  font-weight: 600;
}
em {
  font-style: italic;
}

/* Zitate */
blockquote {
  font-style: italic;
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--muted);
}

/* ==============================
   Layout – vereinheitlichte Container
   ============================== */

   section{
    margin: 4rem 0;
   }

.container {
  max-width: 1200px;      /* Hauptbreite */
  margin-inline: auto;
  padding: 0 1rem;
}

.container.narrow {
  max-width: 800px;       /* für Textseiten wie Impressum, Datenschutz */
}

.container.full {
  max-width: 100%;        /* volle Breite, z.B. Karten/Grids */
}

/* ==============================
   Header & Navigation
   ============================== */
/* Header-Layout */
.header {
  position: sticky;
  top: 0;
  z-index: 1000; 
  height: 100px; 
  background: color-mix(in sRGB, var(--bg) 95%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid color-mix(in oklab, var(--fg) 10%, transparent);
}

.logo img{ display:block; max-height:50px; height:auto; width:auto; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100px;
}


.main-nav a{
  display:inline-block;
  padding:.5rem .75rem;
  border-radius: var(--radius);
}
.main-nav a[aria-current="page"], .main-nav a.active{
  background: color-mix(in oklab, var(--fg) 15%, transparent);
  text-decoration:none;
}


.search-form {
  flex: 1; /* füllt den Rest */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline: 1rem;
}
.search-form input {
  flex: 1; /* Input nimmt die volle Breite */
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--fg) 20%, transparent);
  background: var(--bg);
  color: var(--fg);
}
.search-form button{
  background:var(--accent); border:none; color:#fff;
  padding:.5rem .75rem; border-radius: var(--radius);
  cursor:pointer; transition: background .2s;
}
.search-form button:hover{ background: color-mix(in oklab, var(--accent) 80%, black); }

.menu-toggle{ display:none; background:none; border:none; font-size:1.5rem; }
.mobile-menu[hidden]{ display:none !important; }  
.mobile-menu{
  display:flex; flex-direction:column; gap:1rem;
  padding:1rem; background:var(--bg);
  border-top:1px solid color-mix(in oklab, var(--fg) 10%, transparent);
}
.mobile-menu a{ padding:.5rem .75rem; }
.mobile-menu a.btn.small{ align-self:flex-start; } 


@media (max-width: 900px){
  .main-nav{ display:none; }      
  .menu-toggle{ display:block; }
}


/* ==============================
   Footer
   ============================== */
.footer {
  border-top: 1px solid color-mix(in oklab, var(--fg) 10%, transparent);
  padding-block: 2rem;
  font-size: 0.9rem;
  color: var(--fg);
}

.footer p {
  margin: 0;
  text-align: center;   /* mittig ausgerichtet für mehr Ruhe */
  font-size: 0.9rem;
}

.footer a {
  color: var(--muted);
  margin: 0 0.25rem;
}

.footer a:hover {
  color: var(--accent);
}

/* ==============================
   Hero & CTA
   ============================== */
.hero { padding: clamp(3rem, 6vw, 5rem) 1rem; text-align: center; margin-top:0; margin-bottom: 0;}
.hero .cta { margin-top: 1.5rem; }

/* ==============================
   Hero Section mit animiertem Hintergrund
   ============================== */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 1rem;
  text-align: center;
  color: var(--fg);

  /* diagonales Streifenmuster */
  background: 
    linear-gradient(
      135deg, 
      rgba(220,46,73,0.08) 25%, 
      transparent 25%, 
      transparent 50%, 
      rgba(220,46,73,0.08) 50%, 
      rgba(220,46,73,0.08) 75%, 
      transparent 75%, 
      transparent
    );
    background-size: 32px 32px;

  /* Animation für Bewegung */
  animation: heroScroll 60s linear infinite;
  overflow: hidden; /* für das ::before Glow */
}

@keyframes heroScroll {
  0%   { background-position: 0 0; }
  100% { background-position: 200px 200px; }
}





/* ==============================
   Grid & Cards
   ============================== */
.grid { display: grid; gap: 1.5rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background: color-mix(in sRGB, var(--bg) 95%, transparent);
  border: 1px solid color-mix(in oklab, var(--fg) 10%, transparent);
  border-radius: var(--radius);
  padding: 1.25rem;
}

/* ==============================
   Buttons & Badges
   ============================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.btn:hover { background: color-mix(in oklab, var(--accent) 80%, black); }
.btn.ghost {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn.ghost:hover { background: var(--accent); color: #fff; }

.badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-right: 0.5rem;
}

/* ==============================
   Rechtstexte
   ============================== */
.legal { max-width: 70ch; }
.legal article { margin-inline: auto; }
.legal h1 { font-size: 2rem; margin-bottom: 0.75rem; }
.legal h2 { font-size: 1.5rem; margin: 2rem 0 0.5rem 0; }
.legal h3 { font-size: 1.125rem; margin: 1.5rem 0 0.5rem 0; }
.legal p, .legal ul, .legal ol { margin: 0 0 1rem 0; }
.legal ul, .legal ol { padding-left: 1.25rem; }
.legal li { margin-bottom: .375rem; }

.legal .toc {
  border: 1px solid color-mix(in oklab, var(--fg) 10%, transparent);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem 0 2rem;
  background: color-mix(in sRGB, var(--bg) 95%, transparent);
}
.legal .toc strong { display: block; margin-bottom: .5rem; }
.legal .toc a:hover, .legal .toc a:focus { text-decoration: underline; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.legal th, .legal td {
  border: 1px solid color-mix(in oklab, var(--fg) 15%, transparent);
  padding: .5rem .625rem;
}
.legal th {
  text-align: left;
  background: color-mix(in sRGB, var(--bg) 92%, transparent);
  font-weight: 600;
}
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  background: color-mix(in sRGB, var(--bg) 92%, transparent);
  padding: .1rem .3rem;
  border-radius: .25rem;
}

/* ==============================
   Kontakt
   ============================== */
.contact-form { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-form label { font-weight: 600; margin-bottom: 0.25rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--fg) 20%, transparent);
  background: var(--bg);
  color: var(--fg);
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form button { margin-top: 0.5rem; align-self: flex-start; }

.form-check { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9rem; }
.socials { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.socials a {
  padding: 0.5rem 0.75rem;
  border: 1px solid color-mix(in oklab, var(--fg) 20%, transparent);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--accent);
}
.socials a:hover { background: var(--accent); color: #fff; }

/* ==============================
   Support Wall of Fame
   ============================== */
.wall ul { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.wall li { margin-bottom: 0.25rem; font-weight: 500; }
.wall .gold h3 { color: goldenrod; }
.wall .silver h3 { color: silver; }
.wall .bronze h3 { color: peru; }
.note { margin-top: 1.25rem; font-size: 0.85rem; font-style: italic; }

/* ==============================
   Timeline
   ============================== */
.devrow { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.devrow .lane { display: flex; align-items: flex-start; gap: 1rem; }
.devrow .badge {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* ==============================
   Spiele
   ============================== */
.games-grid { margin-top: 2rem; }
.game-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.game-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
}
.game-card h3 {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  font-weight: 600;
}

.game-detail .cover img {
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.game-detail .info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.game-detail h1 { margin: 0; font-size: 2rem; }
.game-detail p { font-size: 1.1rem; }

/* ==============================
   Utilities
   ============================== */
:target { scroll-margin-top: 110px; }

/* ==============================
   Medienpräferenzen
   ============================== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==============================
   Print
   ============================== */
@media print {
  .header, .footer { display: none !important; }
  body { background: #fff; color: #000; }
}




/* Funding Goal */
#funding-goal {
  text-align: center;
}

.progress-bar {
  --progress: 0%; /* Fallback */
  position: relative;
  width: 100%;
  height: 20px;
    background: 
    linear-gradient(
      135deg, 
      rgba(220,46,73,0.08) 25%, 
      rgba(255,255,255,0.08) 25%, 
      rgba(255,255,255,0.08) 50%, 
      rgba(220,46,73,0.08) 50%, 
      rgba(220,46,73,0.08) 75%, 
      rgba(255,255,255,0.08) 75%, 
      rgba(255,255,255,0.08)
    );
    background-size: 32px 32px;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1rem 0;
  transition: width 1.2s ease;
    animation: progressBarScroll 60s linear infinite;
  overflow: hidden; /* für das ::before Glow */
}

.progress-bar .progress {
  height: 100%;
  width: var(--progress);
    background: 
    linear-gradient(
      135deg, 
      var(--accent) 25%, 
      rgba(255,255,255,0.8) 25%, 
      rgba(255,255,255,0.8) 50%, 
      var(--accent) 50%, 
      var(--accent) 75%, 
      rgba(255,255,255,0.8) 75%, 
      rgba(255,255,255,0.8)
    );
    background-size: 32px 32px;
  transition: width 0.6s ease;
    animation: progressBarScroll 60s linear infinite;
  overflow: hidden; /* für das ::before Glow */
}

@keyframes progressBarScroll {
  0%   { background-position: 0 0; }
  100% { background-position: 200px 200px; }
}