/* -------------------------------------------------
   Grundlegende Einstellungen
   ------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Schrift & Grundfarbe */
html {
    font-family: 'Montserrat', sans-serif;
    color: #f5f5f5;
    background: #111;               /* fallback, falls das Bild nicht geladen wird */
}

/* Vollflächiger Hintergrund */
.bg {
    position: fixed;
    inset: 0;
    background: url('assets/background.jpg') center/cover no-repeat fixed;
    filter: brightness(0.35) contrast(1.2);
    z-index: -1;
}

/* -------------------------------------------------
   TOP‑BUTTONS (Discord & Twitch)
   ------------------------------------------------- */
.top-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;   /* mittig */
    margin-top: 1rem;
    z-index: 5;
}
.top-buttons .btn {
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    transition: background 0.3s, transform 0.2s;
}
.top-buttons .btn:hover {
    transform: translateY(-2px);
}
.top-buttons .discord {background:#5865F2;}   /* Discord‑Blau */
.top-buttons .twitch  {background:#9146FF;}   /* Twitch‑Lila */

/* -------------------------------------------------
   QUIZ‑LAUNCH‑BUTTON (auf der Hauptseite)
   ------------------------------------------------- */
.quiz-launch {
    display: flex;
    justify-content: center;
    margin-top: 0.8rem;
}
.quiz-launch .btn.quiz {
    background:#4caf50;   /* freundliches Grün */
}

/* -------------------------------------------------
   Layout – Container für den eigentlichen Inhalt
   ------------------------------------------------- */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Header */
.header {
    text-align: center;
    animation: fadeSlideIn 1.2s ease-out forwards;
}
.header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: .4rem;
}
.header .subtitle {
    font-size: 1.2rem;
    opacity: .85;
}

/* -------------------------------------------------
   Regel‑Blöcke (wie vorher)
   ------------------------------------------------- */
.rules {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.rule {
    background: rgba(0,0,0,.45);
    padding: 1.5rem 1.2rem;
    border-left: 5px solid #38b6ff;
    border-radius: 8px;
    backdrop-filter: blur(3px);
    opacity: 0;                     /* wird per JS eingeblendet */
    transform: translateY(30px);
    transition: all .4s ease-out;
}
.rule:hover {
    border-left-color: #ffca38;
    background: rgba(0,0,0,.55);
}
.rule h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: .6rem;
    color: #ffca38;
}
blockquote {
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid #ffca38;
    font-style: italic;
    color: #e0e0e0;
}

/* -------------------------------------------------
   Footer
   ------------------------------------------------- */
.footer {
    text-align: center;
    font-size: .9rem;
    opacity: .7;
}

/* -------------------------------------------------
   Quiz‑Spezifisches Styling (nur auf abfrage.html)
   ------------------------------------------------- */
.question {
    margin-bottom: 1.5rem;
    background: rgba(0,0,0,.25);
    padding: 1rem;
    border-left: 4px solid #4caf50;
    border-radius: 6px;
}
.qtitle {
    margin-bottom: .5rem;
    font-weight: 600;
    color: #ffca38;
}
.quiz-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.result {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0,0,0,.35);
    border-left: 4px solid #ffca38;
    border-radius: 6px;
    color: #ffca38;
}

/* -------------------------------------------------
   Buttons – allgemeine Styles & Farben
   ------------------------------------------------- */
.btn {
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    transition: background 0.3s, transform 0.2s;
}
.btn:hover {
    opacity: 0.9;
}
.btn.quiz-submit {background:#4caf50;}
.btn.quiz-reset  {background:#d32f2f;}

/* -------------------------------------------------
   Animationen
   ------------------------------------------------- */
@keyframes fadeSlideIn {
    0%   {opacity:0; transform: translateY(-20px);}
    100% {opacity:1; transform: translateY(0);}
}

/* -------------------------------------------------
   Responsives Design
   ------------------------------------------------- */
@media (max-width: 600px) {
    .header h1 {font-size: 2rem;}
    .rule h2    {font-size: 1.4rem;}
}
