
/* ===== RESET & GRUNDLAGEN ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', 'Segoe UI', sans-serif;
    background: #0a0505;
    color: #e8d5b5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 70px;
    background-image:
            radial-gradient(ellipse at 20% 50%, rgba(80, 20, 20, 0.15), transparent 60%),
            radial-gradient(ellipse at 80% 50%, rgba(80, 20, 20, 0.15), transparent 60%),
            radial-gradient(ellipse at 50% 100%, rgba(40, 10, 10, 0.3), transparent 50%);
    position: relative;
}

/* Subtile Partikel im Hintergrund (CSS-Only) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
            radial-gradient(1px 1px at 10% 20%, rgba(180, 40, 40, 0.1), transparent),
            radial-gradient(1px 1px at 30% 60%, rgba(180, 40, 40, 0.08), transparent),
            radial-gradient(1px 1px at 50% 10%, rgba(180, 40, 40, 0.12), transparent),
            radial-gradient(1px 1px at 70% 80%, rgba(180, 40, 40, 0.06), transparent),
            radial-gradient(1px 1px at 90% 40%, rgba(180, 40, 40, 0.1), transparent);
    background-size: 100% 100%;
    z-index: 0;
}

/* ===== HEADER ===== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: rgba(10, 5, 5, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #8b1a1a;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
    box-sizing: border-box;
}

.header-logo img {
    height: 50px;
    width: auto;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-btn-dnd {
    background: rgba(139, 26, 26, 0.15);
    border: 2px solid #8b1a1a;
    color: #e8d5b5;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
    text-decoration: none;
    white-space: nowrap;
}

.header-btn-dnd:hover {
    background: rgba(139, 26, 26, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 26, 26, 0.3);
}

/* ===== SCHRIFTROLLE – HAUPTCONTAINER ===== */
.scroll-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.scroll-outer {
    max-width: 900px;
    width: 100%;
    position: relative;
}

/* Schriftrollen-Ränder (oben/unten) */
.scroll-top,
.scroll-bottom {
    height: 12px;
    background: linear-gradient(90deg,
    transparent 0%,
    #5a1a1a 10%,
    #8b2a2a 30%,
    #6a1a1a 50%,
    #8b2a2a 70%,
    #5a1a1a 90%,
    transparent 100%
    );
    border-radius: 50%;
    position: relative;
}

.scroll-top::before,
.scroll-bottom::before {
    content: '☯';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #8b2a2a;
    font-size: 0.8rem;
    opacity: 0.4;
}

.scroll-bottom::before {
    content: '⚔️';
}

/* Schriftrollen-Inneres – das "Pergament" */
.scroll-inner {
    background: linear-gradient(180deg,
    rgba(25, 12, 12, 0.95) 0%,
    rgba(35, 15, 15, 0.98) 50%,
    rgba(25, 12, 12, 0.95) 100%
    );
    border-left: 3px solid #5a1a1a;
    border-right: 3px solid #5a1a1a;
    padding: 2.5rem 3rem;
    position: relative;
    box-shadow:
            inset 0 0 60px rgba(80, 20, 20, 0.2),
            0 0 40px rgba(0, 0, 0, 0.5);
}

/* 🔥 Pergament-Textur (CSS-Only) */
.scroll-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image:
            repeating-linear-gradient(
                    0deg,
                    transparent,
                    transparent 2px,
                    rgba(60, 20, 20, 0.03) 2px,
                    rgba(60, 20, 20, 0.03) 4px
            ),
            repeating-linear-gradient(
                    90deg,
                    transparent,
                    transparent 3px,
                    rgba(60, 20, 20, 0.02) 3px,
                    rgba(60, 20, 20, 0.02) 5px
            );
    border-radius: 0;
    z-index: 0;
}

.scroll-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* ===== RUNEN-DEKORATION ===== */
.rune-decoration {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    color: #5a2a2a;
    letter-spacing: 0.5rem;
    opacity: 0.5;
    font-family: serif;
    padding: 0.5rem 0;
}

.rune-top {
    border-bottom: 1px solid rgba(90, 26, 26, 0.2);
    margin-bottom: 1rem;
}

.rune-bottom {
    border-top: 1px solid rgba(90, 26, 26, 0.2);
    margin-top: 1rem;
    padding-top: 0.8rem;
}

/* ===== DRACHEN-ICON ===== */
.dragon-icon-main {
    font-size: 5rem;
    margin-bottom: 0.5rem;
    animation: dragonFloat 4s ease-in-out infinite;
    display: block;
}

@keyframes dragonFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg) scale(1); }
    25% { transform: translateY(-8px) rotate(0deg) scale(1.05); }
    50% { transform: translateY(-4px) rotate(3deg) scale(1); }
    75% { transform: translateY(-8px) rotate(0deg) scale(1.05); }
}

/* ===== TITEL ===== */
.scroll-title {
    font-size: 4rem;
    font-weight: 300;
    color: #c0392b;
    text-shadow: 0 0 50px rgba(192, 57, 43, 0.2);
    margin-bottom: 0.3rem;
    letter-spacing: 8px;
}

.scroll-title span {
    color: #e8d5b5;
}

.scroll-subtitle {
    color: #8a7a6a;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    letter-spacing: 2px;
}

/* ===== TRENNLINIE ===== */
.divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: #5a2a2a;
    font-size: 1.2rem;
    margin: 1.5rem 0;
    opacity: 0.6;
}

.divider span {
    display: inline-block;
}

/* ===== STATUS-BANNER ===== */
.status-banner {
    display: inline-block;
    background: rgba(139, 26, 26, 0.15);
    border: 1px solid #5a1a1a;
    border-radius: 50px;
    padding: 0.5rem 1.8rem;
    font-size: 0.95rem;
    color: #a08070;
    margin-bottom: 2rem;
}

.status-banner .flame {
    display: inline-block;
    animation: flameFlicker 1.5s ease-in-out infinite;
    margin-right: 6px;
}

@keyframes flameFlicker {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

#player-count {
    color: #c0392b;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== BUTTONS ===== */
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.btn-scroll {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    border-radius: 60px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
    text-decoration: none;
    border: 2px solid;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
}

.btn-scroll .btn-icon {
    font-size: 1.4rem;
}

/* 🔥 Glow-Effekt beim Hover (leuchtet auf) */
.btn-scroll .btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.btn-scroll:hover .btn-glow {
    opacity: 1;
}

/* Primary Button – Rot/Gold */
.btn-primary {
    background: rgba(192, 57, 43, 0.2);
    border-color: #c0392b;
    color: #e8d5b5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: rgba(192, 57, 43, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(192, 57, 43, 0.4);
    border-color: #e74c3c;
}

/* Secondary Button – Dunkel/Rot */
.btn-secondary {
    background: rgba(139, 26, 26, 0.15);
    border-color: #5a1a1a;
    color: #a08070;
}

.btn-secondary:hover {
    background: rgba(139, 26, 26, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(139, 26, 26, 0.3);
    border-color: #8b1a1a;
    color: #e8d5b5;
}

/* ===== FEATURES-PREVIEW ===== */
.features-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(90, 26, 26, 0.2);
}

.features-preview span {
    font-size: 0.85rem;
    color: #5a4a3a;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    background: rgba(90, 26, 26, 0.1);
    border: 1px solid rgba(90, 26, 26, 0.1);
    transition: all 0.3s ease;
}

.features-preview span:hover {
    color: #a08070;
    border-color: #5a1a1a;
    background: rgba(90, 26, 26, 0.2);
}

/* ===== FOOTER ===== */
.footer-dnd {
    margin-top: auto;
    padding: 1.2rem 2rem;
    background: rgba(10, 5, 5, 0.7);
    backdrop-filter: blur(8px);
    border-top: 2px solid rgba(139, 26, 26, 0.2);
    text-align: center;
    font-size: 0.9rem;
    color: #5a4a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-icon-dnd {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.5;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 0 10px rgba(192, 57, 43, 0.1));
}

.footer-icon-dnd:hover {
    transform: scale(1.2);
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .scroll-inner {
        padding: 2rem 1.5rem;
    }
    .scroll-title {
        font-size: 3rem;
        letter-spacing: 5px;
    }
    .dragon-icon-main {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 1rem;
        height: 60px;
    }
    .header-logo img {
        height: 35px;
    }
    .header-btn-dnd {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    .header-btn-dnd span {
        display: none;
    }
    .scroll-inner {
        padding: 1.5rem 1rem;
    }
    .scroll-title {
        font-size: 2.4rem;
        letter-spacing: 3px;
    }
    .scroll-subtitle {
        font-size: 1rem;
    }
    .btn-scroll {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        min-width: 160px;
    }
    .rune-decoration {
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    .rune-decoration span {
        display: none;
    }
    .rune-decoration span:nth-child(2),
    .rune-decoration span:nth-child(4),
    .rune-decoration span:nth-child(6),
    .rune-decoration span:nth-child(8) {
        display: inline-block;
    }
    .features-preview span {
        font-size: 0.75rem;
        padding: 0.15rem 0.6rem;
    }
}

@media (max-width: 500px) {
    .scroll-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    .dragon-icon-main {
        font-size: 3rem;
    }
    .button-row {
        flex-direction: column;
        align-items: center;
    }
    .btn-scroll {
        width: 100%;
        max-width: 280px;
    }
    .status-banner {
        font-size: 0.8rem;
        padding: 0.3rem 1rem;
    }
    .scroll-container {
        padding: 1rem;
    }
    .scroll-top,
    .scroll-bottom {
        height: 6px;
    }
    .scroll-top::before,
    .scroll-bottom::before {
        font-size: 0.5rem;
    }
    .features-preview {
        gap: 0.4rem;
    }
    .features-preview span {
        font-size: 0.65rem;
        padding: 0.1rem 0.4rem;
    }
}