/* =========================================
   Kontakt Seite (Hintergrund-Reset)
   ========================================= */
.kontakt-page::before,
.kontakt-page::after {
    display: none !important;
}

/* =========================================
   Hintergrund-Videos (Kontakt)
   ========================================= */
.kontakt-page .bg-video {
    transform: translateX(35vw);
}

/* =========================================
   Layout für den Text (eher mittig platziert)
   ========================================= */
.kontakt-page main {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 10vh;
    padding-left: 0;
}

.kontakt-page .partner-content {
    max-width: 550px;
}

.kontakt-page .partner-content h1 {
    text-align: center;
}

.kontakt-intro {
    margin-bottom: 3rem;
    text-align: center;
    font-size: 1.15rem;
    color: #e0e0e0;
}

.kontakt-page .partner-list {
    grid-template-columns: 1fr;
}

/* =========================================
   Unsichtbare Hover-Zone für den Drachen-Sound
   ========================================= */
.dragon-trigger-zone {
    position: fixed;
    top: 49.32%;
    left: 70.83%;
    transform: translate(-50%, -50%);
    width: 15vw;
    height: 25vh;
    z-index: 100;
    cursor: help;
}

/* =========================================
   Kontakt-Seite Spezifische Layouts
   ========================================= */
.contact-subheading {
    color: #5da073;
    font-size: 1.05rem;
    font-weight: 400;
    margin: 0 0 2rem 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.highlight-box {
    position: relative;
    display: block;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.highlight-mobile-wisps {
    display: none;
}

.highlight-tabs {
    width: 100%;
    margin-bottom: 0;
}

.highlight-tabs input[type="radio"] {
    display: none;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    line-height: 1;
    padding-top: 2px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.tab-btn:hover {
    background: rgba(170, 255, 170, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(100, 255, 150, 0.1);
}

#htab-1:checked ~ .tab-buttons label[for="htab-1"],
#htab-2:checked ~ .tab-buttons label[for="htab-2"],
#htab-3:checked ~ .tab-buttons label[for="htab-3"],
#htab-4:checked ~ .tab-buttons label[for="htab-4"],
#htab-5:checked ~ .tab-buttons label[for="htab-5"] {
    background: rgba(170, 255, 170, 0.9);
    color: #102418;
    border-color: rgba(170, 255, 170, 0.9);
    box-shadow: 0 0 15px rgba(100, 255, 150, 0.4);
    transform: scale(1.15);
    padding-top: 3px;
}

.tab-panels {
    position: relative;
    min-height: 180px;
}

.tab-panel {
    display: none;
    animation: fadeInTab 0.4s ease-out forwards;
}

#htab-1:checked ~ .tab-panels #panel-1,
#htab-2:checked ~ .tab-panels #panel-2,
#htab-3:checked ~ .tab-panels #panel-3,
#htab-4:checked ~ .tab-panels #panel-4,
#htab-5:checked ~ .tab-panels #panel-5 {
    display: block;
}

@keyframes fadeInTab {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.highlight-card {
    position: relative;
    overflow: hidden;
    cursor: default;
    display: block;
    padding: 2rem;
    background: transparent;
}

.highlight-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.6rem;
    color: #ffffff;
    margin: 0 0 0.8rem 0;
    letter-spacing: 0.5px;
}

.highlight-card p {
    position: relative;
    z-index: 1;
    color: #aaaaaa;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.6;
}

.highlight-number {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

/* =========================================
   Kontakt-Bereich (Icons unter den Highlights)
   ========================================= */
.contact-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.contact-icons-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0 0.5rem;
    position: relative;
    z-index: 10;
}

.contact-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #aaaaaa;
    transition: all 0.3s ease;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.contact-icon-link:hover {
    background: rgba(15, 35, 25, 0.6);
    color: #e0e0e0;
    border-color: rgba(170, 255, 170, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(170, 255, 170, 0.05);
}

.contact-icon-link .icon {
    font-size: 2.2rem;
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(170, 255, 170, 0.5));
}

.contact-icon-link:hover .icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px rgba(170, 255, 170, 0.9));
}

.contact-icon-link span:last-child {
    font-size: 1.05rem;
    font-weight: bold;
    text-align: center;
}

/* =========================================
   Irrlichter in der Kontakt-Box
   ========================================= */
.contact-wisps {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    z-index: 5;
}

.contact-wisps .c-wisp-1 {
    width: 10px;
    height: 10px;
    bottom: 30px;
    left: calc(50% - 15px);
    animation: wispWobble 3.5s infinite alternate ease-in-out;
}

.contact-wisps .c-wisp-2 {
    width: 14px;
    height: 14px;
    bottom: 25px;
    left: calc(50% + 5px);
    background: #cceeff;
    box-shadow: 0 0 15px 5px rgba(150, 200, 255, 0.6);
    animation: wispWobble 2.8s infinite alternate-reverse ease-in-out;
}

/* =========================================
   Bäume (Kontakt-Seite Silhouette unten)
   ========================================= */
.kontakt-trees {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.tree {
    position: absolute;
    bottom: -2%;
}

.tree-1 { left: -5%; width: 22%; filter: brightness(0.05); z-index: 20; }
.tree-2 { left: 8%; width: 25%; filter: brightness(0.12); z-index: 30; }
.tree-bg { 
    left: 14%; 
    width: 20%; 
    bottom: -10%;
    filter: brightness(0.06);
    z-index: 10;
}
.tree-3 { 
    left: 12%; 
    width: 48%; 
    bottom: -15%; 
    filter: brightness(0.12);
    z-index: 40;
}
.tree-3-light {
    left: 12%; 
    width: 48%; 
    bottom: -15%; 
    filter: brightness(0.30) contrast(1.1);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 70%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 70%);
    z-index: 40;
}
.tree-4 { left: 35%; width: 18%; filter: brightness(0.32) contrast(1.1); z-index: 50; }
.tree-5 { left: 39%; width: 12%; filter: brightness(0.40) contrast(1.1); z-index: 60; }
.tree-6 {
    left: 88%;
    width: 22%;
    filter: brightness(0.5) contrast(1.1);
    z-index: 15;
    transform: scaleX(-1);
}
.tree-7 {
    left: 71%;
    width: 35%;
    bottom: -40%;
    filter: brightness(0.4) contrast(1.1);
    z-index: 14;
}

/* =========================================
   Stationäre Irrlichter zwischen den Bäumen
   ========================================= */
.tree-wisps {
    position: absolute;
    width: 100px;
    height: 100px;
    pointer-events: none;
}

.tree-wisps-3-4 {
    bottom: 8%;
    left: 25%;
    z-index: 45;
}

.tree-wisps-7-8 {
    bottom: 10%;
    left: 86%;
    z-index: 14;
}

.tree-wisps .wisp {
    position: absolute;
}

.tree-wisps .t-wisp-1 { width: 12px; height: 12px; top: 10px; left: 10px; animation: wispWobble 3.7s infinite alternate ease-in-out -1.2s; }
.tree-wisps .t-wisp-2 { width: 8px; height: 8px; top: 40px; left: 75px; animation: wispWobble3 4.3s infinite alternate ease-in-out -3.5s; background: #cceeff; box-shadow: 0 0 15px 5px rgba(150, 200, 255, 0.6); }

.tree-wisps .t-wisp-3 { width: 10px; height: 10px; top: 15px; left: 10px; animation: wispDrift1 5.2s infinite ease-in-out -1.5s; }
.tree-wisps .t-wisp-4 { width: 14px; height: 14px; top: 45px; left: 40px; animation: wispDrift2 6.7s infinite ease-in-out -4.3s; background: #cceeff; box-shadow: 0 0 15px 5px rgba(150, 200, 255, 0.6); }
.tree-wisps .t-wisp-5 { width: 9px; height: 9px; top: 25px; left: 70px; animation: wispDrift3 5.9s infinite ease-in-out -2.8s; }

@keyframes wispDrift1 {
    0%   { transform: translate3d(0px, 0px, 0); }
    33%  { transform: translate3d(18px, -4px, 0); }
    66%  { transform: translate3d(5px, 3px, 0); }
    100% { transform: translate3d(0px, 0px, 0); }
}

@keyframes wispDrift2 {
    0%   { transform: translate3d(0px, 0px, 0); }
    33%  { transform: translate3d(-20px, 2px, 0); }
    66%  { transform: translate3d(8px, -5px, 0); }
    100% { transform: translate3d(0px, 0px, 0); }
}

@keyframes wispDrift3 {
    0%   { transform: translate3d(0px, 0px, 0); }
    33%  { transform: translate3d(-12px, -3px, 0); }
    66%  { transform: translate3d(15px, 4px, 0); }
    100% { transform: translate3d(0px, 0px, 0); }
}

/* =========================================
   Irrlichter im Wald (Kontakt-Seite)
   ========================================= */
.forest-wisp-group {
    position: absolute;
    width: 100px;
    height: 100px;
    bottom: 25%;
    left: 0;
    z-index: 15;
    pointer-events: none;
    will-change: transform;
    animation: forestGroupPath 30s infinite alternate ease-in-out;
}

@keyframes forestGroupPath {
    0% { transform: translate3d(-5vw, 0vh, 0); }
    50% { transform: translate3d(12vw, -10vh, 0); }
    100% { transform: translate3d(2vw, 5vh, 0); }
}

/* =========================================
   Schwarm-Korrekturen (Einsammeln der Irrlichter)
   ========================================= */

.captured-wisp {
    position: absolute !important;
    bottom: auto !important;
    right: auto !important;
    margin: 0 !important;
    z-index: 9999 !important;
    pointer-events: none !important;
    animation: wispHover 1.5s infinite alternate ease-in-out !important;
    transition: box-shadow 0.4s ease, background-color 0.4s ease !important;
}

@keyframes wispHover {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-10px) scale(1.1); }
}

/* =========================================
   Leyline Hitbox & Regenbogen-Tanz
   ========================================= */

.rainbow-dance {
    background: linear-gradient(135deg, #ff2a2a, #ff7a00, #ffc500, #43ea2b, #2b80ff, #9b2bff, #ff2ae6) !important;
    background-size: 200% 200% !important;
    box-shadow: 0 0 25px 8px rgba(255, 42, 230, 0.8), 0 0 45px 15px rgba(43, 128, 255, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.4) !important;
    border-radius: 50% !important;
    animation: wispHover 1.5s infinite alternate ease-in-out, elegantLeylineColor 3s infinite alternate ease-in-out !important;
}

@keyframes elegantLeylineColor {
    0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
    100% { background-position: 100% 50%; filter: hue-rotate(360deg); }
}

@media (max-width: 768px) {
    .kontakt-page main {
        justify-content: flex-start;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
        gap: 2.5rem;
    }

    .kontakt-page .bg-video {
        display: none; 
    }

    .kontakt-page::before {
        display: block !important;
        background-image: url('images/kontakt_standbild.png');
        background-size: cover;
        background-position: 35% center;
        filter: none;
        opacity: 1;
    }

    .dragon-trigger-zone {
        display: none !important;
    }

    .kontakt-page .partner-content {
        max-width: 100%; 
    }

    .kontakt-trees { width: 100vw; }
    .tree-1 { left: -5vw;  width: 35vw; }
    .tree-2 { left: 5vw;   width: 45vw; }
    .tree-bg { left: 12vw; width: 30vw; }
    .tree-3, .tree-3-light { left: 20vw;  width: 25vw; }
    .tree-4 { left: 30vw;  width: 35vw; }
    .tree-5, .tree-6, .tree-7 { display: none; }

    .forest-wisp-group,
    .tree-wisps {
        display: none;
    }
    
    .highlight-mobile-wisps {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10;
        pointer-events: none;
    }
    
    .highlight-mobile-wisps .m-wisp-1 { position: absolute; top: -10px; left: -10px; }
    .highlight-mobile-wisps .m-wisp-2 { position: absolute; top: 15px; left: -20px; }
    .highlight-mobile-wisps .m-wisp-3 { position: absolute; top: -20px; left: 15px; }

    .contact-wisps {
        display: block;
    }
    
    .contact-icons-row {
        gap: 0.8rem;
    }
    
    .contact-icon-link {
        padding: 1.2rem 0.5rem;
    }
    
    .contact-icon-link span:last-child {
        font-size: 0.9rem;
    }
}