:root {
  color-scheme: dark;

  /* Hintergrund & Grundtext */
  --bg-color:       #2e2e2e;   /* dunkelgrau */
  --text-color:     #f5f5f5;   /* hellgrau */
  --subtle-text:    #d8d8d8;
  --heading-color:  #fffdf5;

  /* Akzent (Gelb) — 7.0 : 1 auf #2e2e2e */
  --accent-color:        #ffdd33;
  --accent-color-hover:  #ffef80;

  --focus-ring: #ffd700;
  --font-stack: "Georgia","Times New Roman",serif;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-stack);
  line-height: 1.5;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 2rem 1rem;
  text-align: center;
}

/* Skiplink */
.skip-link {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  padding: 0.5em 0.75em;
  background: var(--accent-color);
  color: #000;
  border-radius: 0.4em;
  font-weight: 700;
  z-index: 1000;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--focus-ring);
}

/* Typografie */
h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  color: var(--heading-color);
  margin: 0 0 0.5rem;
}
h2 {
  font-size: 1.2rem;
  color: var(--subtle-text);
  margin: 0 0 1rem;
}
h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: var(--heading-color);
}

p {
  font-size: 1rem;
  margin: 0.4em 0;
}

.highlight {
  color: var(--accent-color);
  font-weight: 700;
}

/* Feature-Liste */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25ch, 1fr));
  gap: 0.35rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 1rem auto 1.25rem;
  max-width: 42rem;
  text-align: left;
  line-height: 1.4;
}

.features li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  margin: 0.2rem 0;
  white-space: nowrap; /* verhindert Zeilenumbruch */
}
.features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

/* CTA */
.cta {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  text-align: center;
}
.cta-button {
  appearance: none;
  border: none;
  background: var(--accent-color);
  color: #000;
  padding: 1em 2em; /* größer! */
  border-radius: 0.6em;
  font-size: 1.2rem; /* sichtbar größer */
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-top: 1.5em;
  min-width: 40ch;          /* ≈ längster Button-Text */
  white-space: nowrap;      /* kein Zeilenumbruch */
}

.cta-button:hover,
.cta-button:focus {
  background: var(--accent-color-hover);
}
.cta-button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Beta */
.beta-announcement {
  margin-top: 1.5rem;
}
.beta-announcement p {
  max-width: 40rem;
  margin: auto;
  color: var(--subtle-text);
}

/* Sprachauswahl */
.languages {
  margin-top: calc(2rem - 30px);
  padding-top: 1rem;
  border-top: 2px solid #3a3a3a;
}
.languages ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.languages li {
  margin: 0;
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.3rem;
  text-decoration: none;
  color: var(--text-color);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease;
  touch-action: manipulation;
}

.lang img {
  width: 1.25rem;
  border-radius: 2px;
}

.lang:hover,
.lang:focus {
  background: #1f1f1f;
  text-decoration: underline;
}

.lang:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

[aria-current="page"] {
  font-weight: 700;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--subtle-text);
  font-size: 0.875rem;
}

/* Utility */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.tracker {
  width: 1px;
  height: 1px;
  position: absolute;
  left: -9999px;
  top: auto;
  opacity: 0;
  pointer-events: none;
  display: none;
}

@media (max-width: 480px) {
  .features li {
    white-space: normal;
  }
}

/* 1) Versteckt-Klasse – bleibt unverändert        */
.hidden {
  display: none !important;   /* !important überstimmt alles */
}

/* 2) Generelles Layout des Formulars              */
/* (ohne display – es ist zunächst weiter hidden)  */
.cta-form {
  margin-top: 1rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* 3) Nur wenn die Klasse .hidden entfernt wurde   */
/*    soll das Formular tatsächlich angezeigt werden */
.cta-form:not(.hidden) {
  display: inline-flex;       /* oder flex, wie du möchtest */
}

/* ----------------------------------------------- */
/* Inputs, Select und Button bleiben wie gehabt    */
.cta-form input,
.cta-form select {
  padding: 0.6rem 0.8rem;
  border-radius: 0.4rem;
  border: 1px solid #555;
  background: #1a1a1a;
  color: var(--text-color);
  min-width: 14rem;
}
.cta-form button {
  background: var(--accent-color);
  color: #000;
  border: none;
  border-radius: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
}
.cta-form button:hover,
.cta-form button:focus {
  background: var(--accent-color-hover);
}

/* roter Rahmen bei aria-invalid */
[aria-invalid="true"] {
  border-color: #ff6666;
}

/* ---------- Footer: Impressum | © | Datenschutz ---------- */
.footer-legal{
  display:flex;
  justify-content:center;   /* alles zentriert ausrichten */
  align-items:center;
  flex-wrap:wrap;
  gap:1.25rem;              /* enger, aber klarer Abstand */
  padding-top:1rem;
  font:0.875rem/1.4 var(--font-stack); /* gleiche Schrift wie Rest! */
  color:var(--subtle-text);
}

.footer-legal a{
  color:inherit;            /* gleiche Farbe wie Text */
  text-decoration:none;     /* wie „o-gamesworld.de“ */
  transition:color .2s;
}
.footer-legal a:hover,
.footer-legal a:focus{
  text-decoration:underline;
  color:var(--accent-color);
}

/* Copyright-Text */
.footer-copy{
  margin:0;
  white-space:nowrap;       /* kein Zeilenumbruch im Jahr + Name */
}

/* Mobile-Umbruch */
@media(max-width:479px){
  .footer-copy{flex:1 1 100%; text-align:center;}
}

/* dezente Hervorhebung des Urlaubs-Hinweises */
.notice{
  font-style: italic;
  color: var(--accent-color);     /* Kontrast ≥ 7:1 in Dark + Light */
  line-height: 1.45;
}

.skip-link {
  position: absolute;
  left: .25rem; top: .25rem;
  padding: .5em .75em;
  background: var(--focus);
  color: #000;
  font-weight: 700;
  border-radius: .4em;
  transform: translateY(-120%);
  transition: transform .2s ease;
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
}
