/* Gesamtbereich des Nav */

body {
    margin: 0;
    padding: 0;
    background-color: #333;
}
main {
    background-color: white;
}

nav {
    background-color: #333;     /* dunkler Hintergrund */
    padding: 10px 0;
    width: 100%;
}

/* Liste horizontal machen */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;              /* Elemente nebeneinander */
    justify-content: center;    /* zentriert */
    gap: 20px;
    flex-wrap: wrap;
}
nav li {
    flex: 1 1 auto;
    min-width: 120px;
}
nav ul li:nth-child(-n+4) {
    order: 1;
}
nav ul li:nth-child(n+5) {
    order: 2;
}
/* Links */
nav a {
    display: block;
    text-align: center;
    color: white;               /* Textfarbe */
    text-decoration: none;      /* Unterstrich weg */
    font-size: 18px;
    padding: 8px 12px;          /* Klickfläche größer */
    border-radius: 5px;         /* leicht abgerundet */
    transition: 0.3s;           /* weicher Hover */
}

/* Hover-Effekt */
nav a:hover {
    background-color: #555;     /* helleres Grau */
}

/* Optional: aktive Seite markieren */
nav a.active {
    background-color: #9a9a9a;
}
.class-section {
    display: none; /* standardmäßig ausgeblendet */
    padding: 20px;
}
.class-section.active {
    display: block; /* nur aktive Section sichtbar */
}
.Zauberlist {
    padding-left: 0;
    margin: 20px 0;
}

.Zauberlist > li {
    list-style: none;
    margin: 15px 0;
    padding: 10px 15px;
    background: #f4f4f4;
    border-radius: 8px;
    font-size: 18px;
    position: relative;
}

/* ------------------------- */
/* Unterliste – Sublist      */
/* ------------------------- */
.spells {
    margin-top: 10px;
    padding-left: 25px;
    margin-top: 10px;
    padding-left: 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
}
.spells.show {
    max-height: 1000px; /* groß genug, um die Unterliste zu zeigen */
    opacity: 1;
}
.spells li {
    list-style: disc;
    margin: 5px 0;
    font-size: 16px;
    position: relative;
    cursor: pointer;
}
.spells li a {
    color: #333;               /* Textfarbe */
    text-decoration: none;      /* Unterstrich weg */
    font-size: 18px;
    padding: 8px 12px;          /* Klickfläche größer */
    border-radius: 5px;         /* leicht abgerundet */
    transition: 0.3s;           /* weicher Hover */
}
.spells li.specialspell a {
    color: blue;
}
.grade-title {
    cursor: pointer;
    font-weight: bold;
    padding: 8px;
    background-color: #e0e0e0;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.grade-title:hover {
    background-color: #d0d0d0;
}
/* ------------------------- */
/* Tooltip                  */
/* ------------------------- */
#tooltip {
    position: absolute;
    display: none;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    max-width: 250px;
    white-space: pre-wrap; /* Zeilenumbrüche erlauben */
    z-index: 100;
    pointer-events: none;
}
footer {
    background-color: #333;        /* dunkler Hintergrund passend zur Nav */
    color: white;                  /* weiße Schrift */
    text-align: center;            /* alles zentriert */
    padding: 40px 20px;            /* großzügiger Abstand */
    font-size: 16px;               /* etwas größere Schrift */
    border-top: 3px solid #0080ff; /* optional: blaue Trennlinie oben */
}

footer .footer-content h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

footer .footer-content p {
    margin: 5px 0;
}
.spell-filter {
    display: flex;
    justify-content: center;      /* zentriert */
    gap: 10px;                    /* Abstand zwischen den Buttons */
    margin: 20px 0;
    flex-wrap: wrap;              /* Wenn es zu eng wird, Zeilenumbruch */
}

.spell-filter label {
    background-color: #444;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 16px;
    user-select: none;
    display: inline-block;
}

.spell-filter label:hover {
    background-color: #555;
    transform: scale(1.05);       /* leicht vergrößern beim Hover */
}

.spell-filter input[type="radio"] {
    display: none;                /* Radio-Buttons verstecken */
}

/* Aktive Auswahl hervorheben */
.spell-filter input[type="radio"]:checked + label {
    background-color: #0080ff;
    color: white;
    font-weight: bold;
}
/* Container für Zusatzfilter */
.spell-filter.extra-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

/* Checkbox verstecken */
.spell-filter.extra-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Label als Button stylen */
.spell-filter.extra-option label {
    padding: 6px 14px;
    border: 2px solid #4a8aff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 15px;
    color: #ddd;
    transition: 0.2s;
    user-select: none;
    background: #1a1a1a;
}

/* Hover */
.spell-filter.extra-option label:hover {
    background: #2a2a2a;
}

/* Aktiv: wenn Checkbox angeklickt wurde */
.spell-filter.extra-option input[type="checkbox"]:checked + label {
    background: #4a8aff;
    color: white;
    border-color: #4a8aff;
    box-shadow: 0 0 6px rgba(74, 138, 255, 0.5);
}