
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}
p, h1, h2, h3, span {
    user-select: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    background-color: #000000; 
    background-image: url('images/background.png'); 
    background-size: auto 100%;
    background-position: right center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: -2;
}


body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0.75) 45%, rgba(0, 0, 0, 0.25) 65%, rgba(0, 0, 0, 0) 85%);
    z-index: -1;
    pointer-events: none;
}

header {
    background-color: transparent;
    padding: 1rem 2rem;
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    justify-content: flex-start;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #aaffaa;
}

/* =========================================
   Header Actions (Info Button & Sound Toggle)
   ========================================= */
.header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 0.6rem 2.8rem 0.6rem 1.5rem;
    margin-right: -2rem;
    background: rgba(180, 180, 180, 0.15);
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    backdrop-filter: blur(4px);
    position: relative;
}

.info-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.2rem;
    font-weight: normal;
    font-style: italic;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.2rem 0.4rem;
}

.info-btn:hover {
    background: transparent;
    color: #aaffaa;
    transform: scale(1.05);
}

.lang-btn {
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    color: #ffffff;
}

/* =========================================
   Info Button Irrlichter
   ========================================= */
.info-btn-wrapper {
    position: relative;
    display: inline-block;
}

.wisp.i-wisp-1 { width: 8px; height: 8px; top: 10%; right: -18px; animation: wispHeader1 4.7s infinite ease-in-out; z-index: 10; pointer-events: none; }
.wisp.i-wisp-2 { width: 6px; height: 6px; bottom: 10%; left: -16px; animation: wispHeader2 6.3s infinite ease-in-out -3.1s; z-index: 10; pointer-events: none; }

@keyframes wispHeader1 {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    33%  { transform: translate3d(-8px, 12px, 0) scale(1.15); }
    66%  { transform: translate3d(10px, -8px, 0) scale(0.9); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes wispHeader2 {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    25%  { transform: translate3d(10px, -10px, 0) scale(0.9); }
    50%  { transform: translate3d(-8px, -15px, 0) scale(1.1); }
    75%  { transform: translate3d(12px, 8px, 0) scale(0.95); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

main {
    flex: 1; 
    padding: 3rem 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .header-actions {
        position: absolute;
        top: 1.5rem;
        right: 0;
        margin-right: 0;
        flex-direction: column;
        padding: 1.2rem 1.2rem 1.2rem 1.2rem;
        border-top-left-radius: 30px;
        border-bottom-left-radius: 30px;
    }
}

.blue-wisp {
    background: #cceeff !important;
    box-shadow: 0 0 20px 5px rgba(150, 200, 255, 0.8) !important;
}

.wisp-text {
    color: #aaffaa;
    text-shadow: 0 0 15px rgba(100, 255, 150, 0.5);
}

@keyframes wispWobble2 {
    0% { transform: translate(0, 0) scale(0.9); }
    100% { transform: translate(-25px, -15px) scale(1.25); }
}

@keyframes wispWobble3 {
    0% { transform: translate(0, 0) scale(0.85); }
    100% { transform: translate(15px, 20px) scale(1.15); }
}

.wisp {
    position: absolute;
    background: #aaffaa;
    border-radius: 50%;
    box-shadow: 0 0 20px 5px rgba(100, 255, 150, 0.8);
    animation: wispWobble 3s infinite alternate ease-in-out;
    will-change: transform;
}

.wisp-1 { width: 12px; height: 12px; top: 10%; left: 20%; animation-duration: 2.5s; animation-delay: 0s; }
.wisp-2 { width: 8px; height: 8px; top: 50%; left: 60%; animation-duration: 3.2s; animation-delay: 0.5s; background: #cceeff; box-shadow: 0 0 15px 5px rgba(150, 200, 255, 0.6); }
.wisp-3 { width: 14px; height: 14px; top: 70%; left: 30%; animation-duration: 2.8s; animation-delay: 1s; }

@keyframes wispWobble {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(25px, -20px, 0); }
}

.m-wisp-1 { width: 12px; height: 12px; animation-duration: 2.5s; animation-delay: 0s; }
.m-wisp-2 { width: 8px; height: 8px; animation-duration: 3.2s; animation-delay: 0.5s; background: #cceeff; box-shadow: 0 0 15px 5px rgba(150, 200, 255, 0.6); }
.m-wisp-3 { width: 14px; height: 14px; animation-duration: 2.8s; animation-delay: 1s; }

@media (max-width: 768px) {
    .info-btn {
        font-size: 1rem !important;
    }
}

/* =========================================
   Regenbogen-Text Animation
   ========================================= */

.rainbow-text {
    background: linear-gradient(to right, #ff2a2a, #ff7a00, #ffc500, #43ea2b, #2b80ff, #9b2bff, #ff2ae6);
    background-size: 400% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: rainbowShift 12s ease-in-out infinite alternate;
}

@keyframes rainbowShift {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}

/* =========================================
   Dropdown Menü (aus- und einklappbar)
   ========================================= */
nav ul li.dropdown {
    position: relative;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 101;
}

.dropdown-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
}

nav ul li.dropdown > a {
    position: relative;
    z-index: 101;
}

nav ul li.dropdown .dropdown-content {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    position: absolute;
    top: -25px;
    left: -25px;
    transform: none;
        background-color: transparent;
        background-image: url('images/nav.png');
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-position: center;
        backdrop-filter: none;
        min-width: calc(100% + 50px);
        width: max-content;
        box-shadow: none;
    z-index: 100;
    padding: 65px 0 10px 0;
    margin: 0;
        border: none;
        transition: max-height 0.8s ease-in-out, opacity 0.6s ease-in-out;
}

/* Aufklappen bei Hover ODER per Klick-Klasse (.open) */
nav ul li.dropdown:hover .dropdown-content,
nav ul li.dropdown.open .dropdown-content {
        max-height: 250px;
    opacity: 1;
}

/* Das Irrlicht im Button (Pfeil-Ersatz) */
.dropdown-btn-wisp {
    position: relative;
    width: 14px;
    height: 14px;
    animation: btnWispWobble 2s infinite alternate ease-in-out;
}

@keyframes btnWispWobble {
    0% { transform: translate3d(0, 2px, 0); }
    100% { transform: translate3d(0, -2px, 0); }
}

nav ul li.dropdown .dropdown-content li {
    width: 100%;
    margin: 0;
}

nav ul li.dropdown .dropdown-content li a {
        padding: 10px 25px;
    display: block;
        text-align: left;
        white-space: nowrap;
        font-size: 1.1rem;
}

nav ul li.dropdown .dropdown-content li a:hover {
        background-color: transparent;
    color: #aaffaa;
}

/* Mobile-Anpassung (Akkordeon-Effekt) */
@media (max-width: 768px) {
    nav ul li.dropdown .dropdown-content {
        position: relative; /* Menüpunkte rutschen nach unten, statt sich zu überlagern */
        box-shadow: none;
        background-color: transparent;
        margin-top: 0.5rem;
        min-width: 100%;
        width: 100%;
        left: 0;
        transform: none;
        top: 0;
        padding: 5px 0;
    }
}

/* =========================================
   Halle der Helden - Listen/Tabellen Layout
   ========================================= */
.heroes-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

.hero-card.list-layout {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(170, 255, 170, 0.2) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
    padding: 0 !important;
    position: relative;
}

.hero-card.list-layout:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    border-color: rgba(170, 255, 170, 0.5) !important;
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.hero-avatar {
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-info-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hero-info-main h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #ffffff;
}

.hero-info-main .hero-title {
    color: #aaffaa;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

.hero-card.list-layout .hero-meta {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    align-items: center;
    min-width: 200px;
    justify-content: flex-end;
}

.hero-toggle-icon {
    font-size: 1.2rem;
    color: #aaaaaa;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.hero-card.list-layout.expanded .hero-toggle-icon {
    transform: rotate(180deg);
    color: #aaffaa;
}

.hero-card-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    position: relative;
}

.hero-card.list-layout.expanded .hero-card-body {
    max-height: 500px;
    opacity: 1;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.hero-card.list-layout .hero-desc {
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.05rem;
    position: relative;
    z-index: 2;
}

.hero-card.list-layout .hero-wisp {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 0;
}

/* Mobile Anpassung der Liste */
@media (max-width: 768px) {
    .hero-card-header {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .hero-info-main {
        width: calc(100% - 120px);
    }
    .hero-card.list-layout .hero-meta {
        width: 100%;
        justify-content: flex-start;
        padding-left: 75px; 
        margin-top: -0.5rem;
    }
    .hero-toggle-icon {
        position: absolute;
        right: 1.5rem;
        top: 1.8rem;
    }
}

html.modal-open, body.modal-open {
    overflow: hidden !important;
}