/* =========================================
   BeetwinnTV – Statische Website
   Ohne Frameworks oder JavaScript
   ========================================= */

/* Farben und Grundeinstellungen */
:root {
  color-scheme: dark;

  --background: #101318;
  --surface: #191e26;
  --surface-light: #222935;

  --text: #f7f8fb;
  --secondary: #b7bfca;
  --soft: #8993a1;

  /* HIER DIE AKZENTFARBE ÄNDERN */
  /*
    --accent: #8ee4d1;
    --accent: #fb923c;
    */

 /* Arctic Ice Blue */
  --accent: #A7D8EB;

 /* Frost White Blue */
 /* 
  --accent: #C4E7F5;
  */

  --border: rgba(255, 255, 255, 0.10);
  --max-width: 1140px;
}


/* =========================================
   Allgemein
   ========================================= */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  background: var(--background);
  color: var(--text);

  font: 400 16px/1.75 system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;

  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

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

img {
  display: block;
  max-width: 100%;
}

figure, p, h1, h2, h3 {
  margin-top: 0;
}

p {
  color: var(--secondary);
}

::selection {
  background: var(--accent);
  color: var(--background);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.accent,
.hero h1 span {
  color: var(--accent);
}

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


/* =========================================
   Kopfzeile / Navigation
   ========================================= */

.site-header {
  background: rgba(12, 15, 19, .94);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  font-size: 1.13rem;
  font-weight: 800;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.brand-dot {
  color: var(--accent);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 34px);
}

.nav-link {
  color: var(--secondary);
  font-size: .9rem;
  transition: color .2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}


/* =========================================
   Überschriften und Buttons
   ========================================= */

.eyebrow {
  color: var(--accent);
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .15em;
  line-height: 1.5;
}

h1, h2, h3 {
  line-height: 1.18;
  letter-spacing: -.045em;
}

h1 {
  font-size: clamp(2.9rem, 6.7vw, 5.4rem);
  font-weight: 800;
  margin-bottom: 25px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 750;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.38rem;
  font-weight: 700;
}

.lead {
  color: var(--text);
  font-size: clamp(1.07rem, 2vw, 1.23rem);
  line-height: 1.65;
}


/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  max-width: 100%;
  padding: 13px 20px;

  border-radius: 10px;

  font-size: .94rem;
  font-weight: 700;
  line-height: 1.4;

  transition: transform .2s, background .2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #10211f;
}

/* Hover-Farbe wird automatisch berechnet */
.button-primary:hover {
  background: color-mix(
    in srgb,
    var(--accent) 80%,
    white 20%
  );
}

.button span {
  font-size: 1.2rem;
  font-weight: 400;
}


/* =========================================
   Startseite / Hero
   ========================================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  align-items: center;

  gap: clamp(50px, 8vw, 100px);
  padding-block: clamp(76px, 11vw, 146px);
}

.hero-copy p:not(.eyebrow) {
  max-width: 60ch;
}

.hero-copy .button {
  margin-top: 18px;
}


/* Statuspunkt */

.status-dot {
  display: inline-block;

  width: 8px;
  height: 8px;
  margin-right: 6px;

  border-radius: 50%;
  background: currentColor;

  /* Transparenter Akzentring */
  box-shadow: 0 0 0 4px color-mix(
    in srgb,
    var(--accent) 13%,
    transparent
  );
}


/* Logo ohne zusätzlichen Rahmen */

.hero-logo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}


/* =========================================
   Inhaltsbereiche
   ========================================= */

.section {
  padding-block: clamp(70px, 8vw, 112px);
}

.section-divider {
  border-top: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;

  gap: clamp(38px, 8vw, 90px);
}

.section-copy p:not(.eyebrow) {
  max-width: 66ch;
}


/* TrackMania-Bild */

.feature-image {
  margin: 0;
}

.feature-image img {
  width: 100%;
  max-height: 540px;
  aspect-ratio: 4 / 5;

  object-fit: cover;

  border-radius: 16px;
  border: 1px solid var(--border);
}

.feature-image figcaption {
  color: var(--soft);
  font-size: .79rem;
  padding-top: 12px;
  text-align: right;
}


/* Tags */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.tags span {
  padding: 7px 13px;

  border: 1px solid var(--border);
  background: var(--surface);

  border-radius: 999px;

  font-size: .82rem;
  color: var(--secondary);
}


/* =========================================
   Info-Karten
   ========================================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 22px;
  margin-top: 36px;
}

.info-card {
  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: 17px;

  padding: clamp(26px, 3vw, 38px);
}

.info-card p {
  margin-bottom: 0;
}

.card-number {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 28px;
}


/* =========================================
   Community-Bereich
   ========================================= */

.community-section {
  padding-top: 16px;
}

.community-panel {
  display: grid;
  grid-template-columns: 1.25fr .75fr;

  gap: clamp(28px, 7vw, 82px);
  align-items: center;

  padding: clamp(30px, 5vw, 60px);

  border: 1px solid var(--border);
  border-radius: 20px;

  background: linear-gradient(
    130deg,
    #1c2830,
    #191e26 58%
  );
}

.community-panel > div:first-child > p:not(.eyebrow) {
  max-width: 58ch;
}

.community-panel .button {
  margin-top: 12px;
}


/* =========================================
   Social Media
   ========================================= */

.social-box {
  background: rgba(11, 15, 20, .48);

  border: 1px solid var(--border);
  padding: 26px;
  border-radius: 14px;
}

.social-box h3 {
  font-size: 1rem;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}


/* Social-Media-Icons */

.social-links {
  list-style: none;

  margin: 16px 0 0;
  padding: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.social-icon {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  color: #fff;

  transition: transform .2s, filter .2s;
}

.social-icon svg {
  width: 25px;
  height: 25px;

  fill: currentColor;
  display: block;
}

.social-icon:hover {
  transform: translateY(-3px);
  filter: brightness(1.17);
}


/* Originalfarben der Plattformen */

.social-icon--twitch {
  background: #6440a4;
}

.social-icon--youtube {
  background: #ff230d;
}

.social-icon--instagram {
  background: #dc2871;
}

.social-icon--x {
  background: #000;
}

.social-icon--tiktok {
  background: #000;
}


/* =========================================
   Impressum
   ========================================= */

.legal-main {
  width: min(calc(100% - 48px), 880px);
  padding-block: clamp(55px, 9vw, 110px) 140px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-bottom: clamp(55px, 8vw, 95px);

  color: var(--secondary);
  font-size: .9rem;
}

.back-link:hover {
  color: var(--accent);
}

.legal-main h1 {
  margin-bottom: 38px;
}

.legal-card {
  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: 18px;

  padding: clamp(28px, 6vw, 56px);
}

.legal-card section + section {
  border-top: 1px solid var(--border);

  margin-top: 35px;
  padding-top: 35px;
}

.legal-card h2 {
  font-size: 1.35rem;
  margin-bottom: 13px;
}

.legal-card address {
  color: var(--secondary);
  font-style: normal;
  line-height: 1.9;
}

.legal-card p {
  margin: 0;
}

.legal-card p + p {
  margin-top: 5px;
}

.text-link {
  color: var(--accent);

  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--text);
}


/* =========================================
   Footer
   ========================================= */

.site-footer {
  border-top: 1px solid var(--border);

  color: var(--soft);
  font-size: .84rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;

  gap: 20px;
  padding-block: 26px;
}

.site-footer a:hover {
  color: var(--accent);
}


/* =========================================
   Responsive: Tablet
   ========================================= */

@media (max-width: 850px) {

  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-visual {
    width: min(100%, 400px);
    justify-self: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-image {
    width: min(100%, 560px);
  }

  .feature-image img {
    aspect-ratio: 5 / 4;
  }

  .community-panel {
    grid-template-columns: 1fr;
  }

}


/* =========================================
   Responsive: Smartphone
   ========================================= */

@media (max-width: 600px) {

  .container,
  .legal-main {
    width: min(calc(100% - 36px), var(--max-width));
  }

  .header-inner {
    min-height: 68px;
  }

  nav {
    gap: 16px;
  }

  .brand {
    font-size: .96rem;
  }

  .nav-link {
    font-size: .84rem;
  }

  .hero {
    padding-block: 60px 70px;
  }

  .section {
    padding-block: 64px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .community-section {
    padding-top: 0;
  }

  .feature-image figcaption {
    text-align: left;
  }

  .legal-main {
    padding-bottom: 85px;
  }

}


/* =========================================
   Barrierefreiheit
   Animationen reduzieren
   ========================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

}
