/* Reset & Basislayout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    background-color: #0a0a0a;
    color: #d0d0d0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Grid-Layout für gesamte Seite */
body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    background: transparent;
}

/* ✅ Video-Hintergrund */
video {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -9999;
    opacity: 0.5;
    pointer-events: none;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
    background: transparent;
}

.intro {
    margin-bottom: 30px;
}

.highlight {
    color: #4fc3f7;
    font-weight: bold;
}

.GuildLogo {
    margin-top: 20px;
    text-align: center;
}

/* ✅ Container (Bereiche) transparent */
.container {
    background-color: rgba(26, 26, 26, 0.6);
    /* halbtransparent */
    padding: 40px;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    text-align: center;
    max-width: 380px;
    width: 100%;
    min-width: 380px;
}

/* ✅ Discord Widget */
.discord-widget {
    text-align: center;
    padding: 20px;
    background-color: rgba(26, 26, 26, 0.6);
    /* halbtransparent */
    border: 1px solid #333;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    min-width: 350px;
}

/* ✅ Verzeichnisliste */
.directory-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.directory-list li {
    margin: 12px 0;
}

.directory-list a {
    text-decoration: none;
    color: #90caf9;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
}

.directory-list a:hover {
    color: #ffffff;
    background-color: #333333;
    text-shadow: 0 0 8px #90caf9;
}

/* Überschriften */
h1 {
    color: #ffffff;
    font-size: 2rem;
    letter-spacing: 1px;
    text-shadow: 0 0 10px #4fc3f7;
}

h2 {
    color: #90caf9;
    font-size: 1.5rem;
    margin: 30px 0 15px;
    text-shadow: 0 0 8px #4fc3f7;
}

h2::after {
    content: "";
    display: block;
    width: 60%;
    height: 2px;
    margin: 10px auto 0;
    background: linear-gradient(to right, #4fc3f7, transparent);
    border-radius: 2px;
}

/* ✅ Iframe Style */
iframe {
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 0 25px rgba(144, 202, 249, 0.15), 0 0 5px rgba(0, 0, 0, 0.8);
    border: 1px solid #2c2c2c;
    background-color: rgba(28, 28, 28, 0.6);
    /* halbtransparent */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

iframe:hover {
    transform: scale(1.02);
    box-shadow: 0 0 35px rgba(144, 202, 249, 0.25), 0 0 10px rgba(0, 0, 0, 0.9);
}

/* ✅ Footer bleibt undurchsichtig */
footer {
    text-align: center;
    padding: 20px;
    color: #b0bec5;
    font-size: 0.9rem;
    background-color: #121212;
    /* vollständig deckend */
    border-top: 1px solid #333;
}

/* Seitenwrapper */
.page-wrapper {
    position: relative;
    z-index: 9998;
}

.favicon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 4px;
}

/* Main-Bereich als Grid */
.Main {
    display: grid;
    grid-template-columns: 1fr 3fr auto;
    gap: 40px;
    align-items: flex-start;
    padding: 40px 20px;
    background: transparent;
}

/* Navigation schmaler */
.nav-container {
    max-width: 200px;
    width: 100%;
}

/* Zentrale Inhaltsbox */
.content-frame {
    background-color: rgba(26, 26, 26, 0.6);
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    padding: 0;
    height: 500px;
    min-width: 500px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

/* Optional iframe Styling */
.content-frame iframe {
    border: none;
    width: 100%;
    height: 100%;
}

.status-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.status-box {
    background-color: rgba(0, 0, 0, 0.6);
    color: #000000;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    min-width: 250px;
    max-width: 300px;
    flex: 1 1 250px;
    text-align: center;
}

.label {
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

/* Infobox für Lauftext zentriert */
.info-box {
    max-width: 800px;
    margin: 30px auto;
    padding: 16px 20px 16px 60px;
    background-color: rgba(20, 20, 20, 0.95);
    border: 2px solid #0ff;
    border-radius: 12px;
    box-shadow: 0 0 25px #0ff;
    color: #0ff;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.info-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #0ff;
    pointer-events: none;
}

/* Info-Lauftext sauber und gleichmäßig scrollend */
.info-message {
    position: relative;
    width: 100%;
    height: 1.5em;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.info-message span {
    display: inline-block;
    padding-left: 100%;
    white-space: nowrap;
    animation: scroll-left linear infinite;
    animation-duration: 20s;
    /* Wird durch JS überschrieben */
}

@keyframes scroll-left {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Music Player*/
#music-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 25px;
    height: 25px;
    font-size: 14px;
    color: cyan;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid cyan;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    cursor: pointer;
    box-shadow: 0 0 8px 2px red;
    transition: all 0.3s ease-in-out;
    z-index: 9999;
}

#music-toggle:hover {
    background-color: cyan;
    color: black;
    transform: scale(1.1);
}
