/* AW-E – Stil der Webseite. Optisch angelehnt an games.aw-e.com. 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;
}
.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) 22%, rgba(7, 13, 26, 0) 70%, var(--grund) 100%);
}
.kopf--gross { height: clamp(300px, 56vw, 780px); }
.kopf--klein { height: clamp(120px, 12vw, 180px); 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: 0.4em; }
.bereich__kopf { margin-bottom: 28px; }
.bereich__kopf p { margin: 0; }

.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;
}

.einstieg { text-align: center; }
.einstieg .einleitung { max-width: 720px; margin: 0 auto 1.4em; }
.einstieg .kachel__knoepfe { justify-content: center; }

/* 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__text p { color: var(--text-leise); }
.kachel__knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.kachel--klein { display: flex; flex-direction: column; transition: transform 0.15s ease, border-color 0.15s ease; }
.kachel--klein:hover { transform: translateY(-3px); border-color: var(--blau); }
.kachel--klein .kachel__text { flex: 1; display: flex; flex-direction: column; }
.kachel--klein .kachel__text p:not(.marke) { flex: 1; }
.kachel--klein .kachel__bild { aspect-ratio: 16 / 9; overflow: hidden; background-color: #050a15; }
.kachel--klein .kachel__bild img { width: 100%; height: 100%; object-fit: cover; }
.kachel--klein h3 { font-size: 1.15rem; overflow-wrap: break-word; hyphens: auto; }
.kachel__link { font-weight: 600; }
.kachel__link::after { content: " →"; }

/* Bildlose Kacheln bekommen ein Symbol statt eines Fotos */
.kachel__symbol {
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 30% 20%, rgba(92, 200, 255, 0.28), transparent 60%),
                linear-gradient(135deg, #0f2147, #0a1530);
}
.kachel__symbol svg { width: 76px; height: 76px; stroke: var(--blau-hell); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Zweispaltiger Abschnitt mit Bild */
.zwei { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.zwei__bild { border-radius: var(--radius); border: 1px solid var(--rand); overflow: hidden; }
.zwei__bild img { width: 100%; }
.liste { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 10px; }
.liste li { padding-left: 28px; position: relative; color: var(--text-leise); }
.liste li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; border-radius: 50%;
                    background: linear-gradient(135deg, var(--blau), var(--blau-hell)); }
.liste strong { color: var(--text); }

/* 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); }

/* Impressum, Rechtstexte */
.angaben { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 1.6em; }
.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; }

/* ---------- 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(2, 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) {
    .zwei { grid-template-columns: 1fr; }
    .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"); }
    .kopf--gross { height: clamp(220px, 56vw, 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__liste.offen { display: flex; }
    .angaben { grid-template-columns: 1fr; gap: 2px; }
    .angaben dd { margin-bottom: 10px; }
}

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