/* BlueValleyBytes – Stil der Webseite. Alle Farben und Maße oben als Variablen. */

:root {
    --grund: #070d1a;
    --flaeche: #0d1730;
    --flaeche-hell: #0a1226;
    --rand: rgba(80, 150, 255, 0.22);
    --text: #e6eefc;
    --text-leise: #9fb0cf;
    --blau: #2f8cff;
    --blau-hell: #5cc8ff;
    --breite: 1180px;
    --breite-schmal: 860px;
    --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--grund);
    color: var(--text);
    font: 16px/1.65 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blau-hell); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: 0.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.nur-vorlesen {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sprungmarke {
    position: absolute; left: 12px; top: -60px; z-index: 20;
    background: var(--blau); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.sprungmarke:focus { top: 12px; text-decoration: none; }

/* ---------- Kopf mit Hintergrundbild und Menü ---------- */

.kopf {
    position: relative;
    background: var(--grund) url("../img/hero.jpg") center / cover no-repeat;
}
/* Marke aw-e games (games.aw-e.com): eigenes Kopfbild; Klasse sitzt am <body> (siehe includes/marken/). */
.marke-awe .kopf { background-image: url("../img/aw-e/hero.jpg"); }

.kopf::after { /* oben dunkel fürs Menü, unten weich in die Seite */
    content: "";
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, rgba(7, 13, 26, 0.88) 0, rgba(7, 13, 26, 0) 38%, rgba(7, 13, 26, 0) 62%, var(--grund) 100%);
}
.kopf--gross  { height: clamp(300px, 42vw, 640px); }
.kopf--klein  { height: clamp(150px, 15vw, 240px); background-position: center 42%; }

.menue {
    position: relative; z-index: 5;
    display: flex; align-items: center; gap: 8px;
    max-width: var(--breite); margin: 0 auto; padding: 14px 20px;
}
.menue__logo img { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(92, 200, 255, 0.5); }
.menue__logo:hover img { box-shadow: 0 0 0 2px var(--blau-hell), 0 0 16px rgba(92, 200, 255, 0.6); }

.menue__liste {
    flex: 1; display: flex; align-items: center; gap: 4px;
    list-style: none; margin: 0 0 0 10px; padding: 0;
}
.menue__abstand { flex: 1; }
.menue__liste a {
    display: block; padding: 10px 14px; border-radius: 8px;
    color: var(--text); font-weight: 600; letter-spacing: 0.08em; font-size: 0.92rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.menue__liste a:hover { background: rgba(47, 140, 255, 0.22); text-decoration: none; }
.menue__liste a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--blau-hell); }

.menue__knopf { display: none; }

/* ---------- Inhalt ---------- */

.bereich { padding: 56px 0; }
.bereich--hell { background: var(--flaeche-hell); border-block: 1px solid var(--rand); }
.bereich__titel { margin-bottom: 1.1em; }

.behaelter { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }
.behaelter--schmal { max-width: var(--breite-schmal); }

.einleitung { font-size: 1.15rem; color: var(--text-leise); }
.klein { font-size: 0.9rem; color: var(--text-leise); }

.marke {
    display: inline-block; margin: 0 0 0.6em; padding: 2px 10px;
    border: 1px solid var(--rand); border-radius: 999px;
    color: var(--blau-hell); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
}

.hinweis {
    padding: 12px 16px; border-left: 4px solid var(--blau); border-radius: 6px;
    background: rgba(47, 140, 255, 0.12);
}

.spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 24px; }

/* Kacheln */
.kachel {
    background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius);
    overflow: hidden;
}
.kachel__text { padding: 24px; }
.kachel__text > :last-child { margin-bottom: 0; }

.kachel--gross { display: grid; grid-template-columns: 1.3fr 1fr; align-items: stretch; }
.kachel--gross .kachel__bild { display: block; min-height: 260px; }
.kachel--gross .kachel__bild img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.kachel--gross .kachel__text { align-self: center; padding: 32px; }
.kachel__knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.kachel--klein { transition: transform 0.15s ease, border-color 0.15s ease; }
.kachel--klein:hover { transform: translateY(-3px); border-color: var(--blau); }

.banner {
    min-height: 220px; display: flex; align-items: flex-end;
    border-radius: var(--radius); border: 1px solid var(--rand);
    background: var(--flaeche) url("../img/weitere-welten.jpg") center / cover no-repeat;
}
.banner__text {
    width: 100%; padding: 28px 32px;
    background: linear-gradient(to top, rgba(7, 13, 26, 0.92), rgba(7, 13, 26, 0));
    border-radius: 0 0 var(--radius) var(--radius);
}
.banner__text h2 { margin-bottom: 0.2em; }
.banner__text p { margin: 0; color: var(--text-leise); }

/* Knöpfe */
.knopf {
    display: inline-block; padding: 11px 22px; border-radius: 10px;
    border: 1px solid var(--blau); color: var(--text); background: transparent;
    font: inherit; font-weight: 600; cursor: pointer;
}
.knopf:hover { background: rgba(47, 140, 255, 0.2); text-decoration: none; }
.knopf--primaer { background: linear-gradient(135deg, #2f8cff, #1c5fe0); border-color: transparent; color: #fff; }
.knopf--primaer:hover { background: linear-gradient(135deg, #4a9dff, #2d70f0); }

/* Downloads */
.downloads { list-style: none; margin: 1.4em 0; padding: 0; display: grid; gap: 14px; }
.downloads li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.downloads .knopf { min-width: 170px; text-align: center; }
.downloads__info { color: var(--text-leise); font-size: 0.9rem; }

/* Impressum, Rechtstexte */
.angaben { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.angaben dt { color: var(--text-leise); }
.angaben dd { margin: 0; }
.rechtstext h2 { margin-top: 1.8em; font-size: 1.2rem; color: var(--blau-hell); }
.rechtstext p { color: #cbd7ee; }
code { background: rgba(255, 255, 255, 0.08); padding: 1px 6px; border-radius: 4px; }

/* ---------- Fußzeile ---------- */

.fuss { margin-top: 40px; background: #050a15; border-top: 1px solid var(--rand); }
.fuss__innen {
    max-width: var(--breite); margin: 0 auto; padding: 40px 20px 24px;
    display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px;
}
.fuss__marke { display: flex; align-items: center; gap: 14px; }
.fuss__marke img { width: 72px; height: 72px; border-radius: 50%; }
.fuss__marke p { margin: 0; line-height: 1.3; }
.fuss__spalte h2 { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-leise); margin-bottom: 0.9em; }
.fuss__spalte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fuss__spalte a { color: var(--text); }
.fuss__spalte a:hover { color: var(--blau-hell); }
.fuss__unten {
    max-width: var(--breite); margin: 0 auto; padding: 18px 20px 28px;
    display: flex; align-items: center; gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-leise); font-size: 0.85rem;
}
.fuss__unten img { width: 32px; height: 32px; border-radius: 50%; }
.fuss__unten p { margin: 0; }

/* ---------- Handy ---------- */

@media (max-width: 860px) {
    .kachel--gross { grid-template-columns: 1fr; }
    .kachel--gross .kachel__bild { min-height: 0; aspect-ratio: 16 / 9; }
    .fuss__innen { grid-template-columns: 1fr 1fr; }
    .fuss__marke { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .kopf { background-image: url("../img/hero-klein.jpg"); }
    .marke-awe .kopf { background-image: url("../img/aw-e/hero-klein.jpg"); }
    .kopf--gross { height: clamp(220px, 52vw, 340px); }
    .menue { flex-wrap: wrap; }
    .menue__liste { flex-basis: 100%; flex-direction: column; align-items: stretch; margin: 6px 0 0;
                    background: rgba(7, 13, 26, 0.94); border-radius: 12px; padding: 6px; }
    .menue__abstand { display: none; }

    /* Mit JavaScript: Menü hinter dem Knopf, sonst bleibt es einfach sichtbar. */
    .js .menue__knopf { display: inline-block; margin-left: auto; padding: 9px 16px; border-radius: 8px;
                        border: 1px solid var(--rand); background: rgba(7, 13, 26, 0.7); color: var(--text); font: inherit; cursor: pointer; }
    .js .menue__liste { display: none; }
    .js .menue--offen .menue__liste { display: flex; }

    .bereich { padding: 40px 0; }
    .angaben { grid-template-columns: 1fr; gap: 2px; }
    .angaben dd { margin-bottom: 12px; }
}

@media (max-width: 480px) {
    .fuss__innen { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .kachel--klein { transition: none; }
}

/* Formulare (Tester werden) */
.formular { display: grid; gap: 20px; margin-top: 28px; padding: 28px; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); }
.formular__feld { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.formular__feld > label, .formular__feld > legend { font-weight: 600; }
.formular__feld legend { margin-bottom: 6px; }
.formular input[type=email], .formular input[type=text], .formular textarea {
    width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--rand);
    background: var(--grund); color: var(--text); font: inherit;
}
.formular textarea { resize: vertical; min-height: 140px; }
.formular input:focus, .formular textarea:focus { outline: 2px solid var(--blau); outline-offset: 1px; border-color: var(--blau); }
.formular .klein { margin: 0; }
.formular__feld > .formular__wahl, .formular__wahl { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; margin: 2px 0; }
.formular__wahl input { margin-top: 0.3em; accent-color: var(--blau); }
.formular__feld--fehler input, .formular__feld--fehler textarea { border-color: #ff6b6b; }
.formular__feld--fehler > label, .formular__feld--fehler > legend { color: #ff9a9a; }
.formular__falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formular .knopf { justify-self: start; }
.pflicht { color: var(--blau-hell); }
.hinweis--fehler { border-left-color: #ff6b6b; background: rgba(255, 107, 107, 0.12); }
details { margin: 1.2em 0; }
summary { cursor: pointer; color: var(--text-leise); }
