/* =========================================
   Guild Wars 3 Seite
   ========================================= */
.gw3-page {
    color: #fff;
}
.gw3-page::before,
.gw3-page::after {
    display: none !important;
}
.gw3-page header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}
.gw3-main {
    display: block;
    padding: 0;
}
.gw3-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}
.gw3-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.gw3-lightning {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 35%, rgba(170, 200, 255, 0.35) 0%, rgba(170, 200, 255, 0) 60%);
    opacity: 0;
    pointer-events: none;
    animation: gw3-lightning-flash 25s infinite;
    mix-blend-mode: screen;
}

@keyframes gw3-lightning-flash {
    /* Standard: Unsichtbar zwischen den Gewittern */
    0%, 9.8%, 15%, 44.8%, 49%, 74.8%, 80%, 100% { opacity: 0; }
    
    /* Cluster 1: Wanderndes Gewitter (Startet Links -> springt zur Mitte) */
    9.9% { opacity: 0.8; background: radial-gradient(ellipse at 20% 40%, rgba(170, 200, 255, 0.5) 0%, rgba(170, 200, 255, 0) 65%); }
    10.2% { opacity: 0; }
    10.8% { opacity: 0.6; background: radial-gradient(ellipse at 35% 35%, rgba(170, 200, 255, 0.4) 0%, rgba(170, 200, 255, 0) 60%); }
    11.1% { opacity: 0; }
    12.0% { opacity: 0.9; background: radial-gradient(ellipse at 50% 30%, rgba(170, 200, 255, 0.6) 0%, rgba(170, 200, 255, 0) 65%); }
    12.3% { opacity: 0.2; background: radial-gradient(ellipse at 50% 30%, rgba(170, 200, 255, 0.6) 0%, rgba(170, 200, 255, 0) 65%); }
    13.0% { opacity: 0; }

    /* Cluster 2: Kurzes Flackern auf der rechten Seite */
    44.9% { opacity: 0.7; background: radial-gradient(ellipse at 80% 25%, rgba(170, 200, 255, 0.4) 0%, rgba(170, 200, 255, 0) 60%); }
    45.1% { opacity: 0; }
    45.4% { opacity: 0.5; background: radial-gradient(ellipse at 85% 30%, rgba(170, 200, 255, 0.3) 0%, rgba(170, 200, 255, 0) 60%); }
    45.6% { opacity: 0; }
    46.2% { opacity: 0.8; background: radial-gradient(ellipse at 70% 35%, rgba(170, 200, 255, 0.5) 0%, rgba(170, 200, 255, 0) 60%); }
    46.8% { opacity: 0; }

    /* Cluster 3: Doppelter massiver Einschlag in der Mitte */
    74.9% { opacity: 0.9; background: radial-gradient(ellipse at 45% 25%, rgba(170, 200, 255, 0.6) 0%, rgba(170, 200, 255, 0) 65%); }
    75.1% { opacity: 0; }
    75.3% { opacity: 0.9; background: radial-gradient(ellipse at 45% 25%, rgba(170, 200, 255, 0.6) 0%, rgba(170, 200, 255, 0) 65%); }
    75.8% { opacity: 0.1; background: radial-gradient(ellipse at 45% 25%, rgba(170, 200, 255, 0.6) 0%, rgba(170, 200, 255, 0) 65%); }
    76.5% { opacity: 0.5; background: radial-gradient(ellipse at 55% 35%, rgba(170, 200, 255, 0.3) 0%, rgba(170, 200, 255, 0) 60%); }
    77.0% { opacity: 0; }
}

.gw3-ring-left {
    animation: floatLeftRing 7s ease-in-out infinite alternate;
    animation-delay: -3.4s;
    will-change: transform;
}
.gw3-ring-right {
    animation: floatRightRing 5.5s ease-in-out infinite alternate;
    animation-delay: -1.8s;
    will-change: transform;
}

@keyframes floatLeftRing {
    0% { transform: translateY(15px); }
    100% { transform: translateY(-15px); }
}

@keyframes floatRightRing {
    0% { transform: translateY(-1px); }
    100% { transform: translateY(-35px); }
}
.gw3-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 80%);
    z-index: 1;
}
.gw3-hero::after {
    content: '';
    position: absolute;
    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;
}
.gw3-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 4rem 2rem;
}
.gw3-gold-line {
    border: 0;
    height: 30px;
    background: url('images/line.png') center center no-repeat;
    background-size: contain;
    margin: 0 auto 0.5rem auto;
    width: 100%;
    max-width: 600px;
}
.gw3-title {
    margin: 0 auto 1rem auto;
    display: block;
    text-align: center;
}
.gw3-logo {
    width: clamp(350px, 85vw, 950px);
    max-width: 100%;
    height: auto;
    filter: invert(1) drop-shadow(0 4px 10px rgba(0,0,0,0.9)) drop-shadow(0 0 20px rgba(0,0,0,0.9)) drop-shadow(0 0 40px rgba(255,250,180,0.4));
}
.gw3-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #ffffff;
    font-weight: 500; 
    text-shadow: 0 2px 5px rgba(0,0,0,1), 0 0 15px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.8);
}
.gw3-section {
    padding: 4.5rem 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.gw3-text-section {
    padding-bottom: 1rem;
}
.gw3-video-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.gw3-section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
}
.gw3-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 2px solid rgb(255, 250, 180);
}
.gw3-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.gw3-text-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}
.gw3-text-block h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.gw3-text-block h3:first-child {
    margin-top: 0;
}
.gw3-text-block p {
    color: #e0e0e0;
    font-size: 1.15rem;
    line-height: 1.6;
}
.gw3-cta-section {
    text-align: center;
    padding-top: 1.5rem;
    padding-bottom: 4.5rem;
}
.gw3-cta-btn {
    display: inline-block;
    background: linear-gradient(180deg, #2a2a2a 66%, #0a0a0a) no-repeat 50% 100%;
    background-size: 100% 200%;
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    transition: background 0.2s ease, filter 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.gw3-cta-btn:hover {
    background-position: 50% 0;
    filter: brightness(1.2);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}
.gw3-cta-section .gw3-subtitle {
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}
.gw3-red-banner {
    background-image: url('images/banner-red-top.webp');
    background-size: 100% 100%;
    background-position: center top;
    height: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
}
.gw3-red-banner-middle {
    background-image: url('images/kachel_banner.png');
    background-size: 100% auto;
    background-repeat: repeat-y;
    width: 100%;
    position: relative;
}
.gw3-red-banner-bottom {
    background-image: url('images/banner-red-bottom.webp');
    background-size: 100% 100%;
    background-position: center bottom;
    height: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
}
.gw3-red-banner-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: -150px;
    z-index: 5;
}
.gw3-banner-content {
    position: relative;
    width: 100%;
    z-index: 4;
    margin-top: -400px;
    margin-bottom: -400px;
}
.gw3-side-graphics-mask-wrapper {
    position: absolute;
    top: -1500px;
    bottom: -500px;
    left: 0;
    width: 100%;
    z-index: 2;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 499px, rgba(0,0,0,1) 500px, rgba(0,0,0,1) 100%);
    mask-image: linear-gradient(to top, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 499px, rgba(0,0,0,1) 500px, rgba(0,0,0,1) 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    overflow: hidden;
}
.gw3-side-graphics-bottom-mask {
    position: absolute;
    top: -1500px;
    bottom: -500px;
    left: 0;
    width: 100%;
    z-index: 2;
    pointer-events: none;
    -webkit-mask-image: url('images/mask-bottom.png');
    mask-image: url('images/mask-bottom.png');
    -webkit-mask-position: center bottom;
    mask-position: center bottom;
    -webkit-mask-size: 100% 500px;
    mask-size: 100% 500px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    overflow: hidden;
}
.gw3-side-graphic,
.gw3-side-graphic-right {
    position: absolute;
    top: 300px;
    bottom: -350px;
    width: 725px;
    background-image: url('images/seitengrafik.png');
    background-size: 100% auto; 
    background-position: right bottom;
    background-repeat: no-repeat;
    opacity: 0.6;
}
.gw3-side-graphic {
    right: calc(50% + 420px);
}
.gw3-side-graphic-right {
    left: calc(50% + 420px);
    background-image: url('images/seitengrafik_2.png');
    top: 400px;
    bottom: -450px;
}

/* =========================================
   Mobile Anpassungen für die Banner & Breite
   ========================================= */
@media (max-width: 768px) {
    .gw3-hero {
        align-items: flex-start;
        padding-top: 350px;
        padding-left: 10px;
        padding-right: 10px;
    }
    .gw3-hero-content {
        padding-left: 0;
        padding-right: 0;
    }
    .gw3-gold-line {
        display: none;
    }
    .gw3-red-banner {
        height: 250px;
        background-size: cover;
        background-position: center bottom;
    }
    .gw3-red-banner-bottom {
        height: 250px;
        background-size: cover;
        background-position: center top;
    }
    .gw3-banner-content {
        margin-top: -150px;
        margin-bottom: -150px;
    }
    .gw3-red-banner-container {
        margin-top: -50px;
    }
    .gw3-section {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* =========================================
   Spezifische Anpassung nur für kleine Smartphones
   ========================================= */
@media (max-width: 500px) {
    .gw3-side-graphics-mask-wrapper,
    .gw3-side-graphics-bottom-mask {
        display: none;
    }
}