@font-face {
    font-family: 'Ouvriere';
    font-style: normal;
    src: url("fonts/Ouvrieres-soldates.woff") format("woff");
}

@font-face {
    font-family: 'ReplicaStd';
    font-style: normal;
    src: url("fonts/ReplicaStd.woff") format("woff");
}

@font-face {
    font-family: 'Ouroboros';
    font-style: normal;
    src: url("fonts/Ouroboros-Regular.woff") format("woff");
}

@font-face {
    font-family: 'Ornaments';
    font-style: normal;
    src: url("fonts/Bodoni\ Ornaments.woff") format("woff");
}

@font-face {
    font-family: 'Cosplay';
    font-style: normal;
    src: url("fonts/Cosplay-Trial-Regular.woff") format("woff");
}

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

}

body {
    font-family: 'ReplicaStd', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overscroll-behavior: none;
    overflow-y: hidden !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: auto;
}

body.no-scroll {
     overflow: hidden;
}

.hintergrund {
    position: relative;
    width: min-content;
    z-index: 1;
    height: 100%;
}

.farbflaeche {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 30;
    background-color: rgb(150, 0, 215);
    mix-blend-mode: luminosity;
}

.textur {
    position: relative;
    width: auto;
    height: 100vh;
    object-fit: cover;
    object-position: left center;
    min-width: 100vw;
    vertical-align: bottom;
}

.karte {
    position: absolute;
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    min-width: 100vw;
    top: 0;
    left: 0;
    vertical-align: bottom;
    filter: drop-shadow(0px 0px 30px rgb(9, 255, 0));
}

.map-point {
    display: flex;
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 15;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    text-align: center;
    transform: translate(-50%, -50%);

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;

    &.text {
        /* background-color: rgba(255, 255, 255, 0.8); */
        /* border: solid 2px rgb(150, 0, 215); */
        color: rgb(197, 197, 197);
        font-family: 'Ouvriere', sans-serif;
        font-size: 35px;
    }

    &.text:hover {
        font-size: 50px;
        filter: drop-shadow(0px 0px 5px rgb(140, 0, 255));
    }

    &.magic {
        width: 40px;
        height: 40px;
        max-height: initial;
        max-width: initial;
        filter: drop-shadow(0px 0px 2px rgba(255, 255, 255, 0.424));

        &.fullscreen.playing {
            animation: magicRotate 5s infinite linear;
        }

        &.fullscreen.paused {
            animation: magicRotate 5s infinite linear;
            animation-play-state: paused;
        }

        &.fullscreen.stopped {
            animation: none;
        }

        &.magic:hover {
            width: 50px !important;
            height: 50px !important;
        }
    }

    &.pflanze {
        width: 100px !important;
        height: 100px !important;
        max-height: initial;
        max-width: initial;

        border-radius: 100%;
        filter: blur(10px);

        transition: filter 2s ease-in-out;
        animation: pulse 3s infinite alternate ease-in-out;

        &.fullscreen {
            filter: blur(0px);
            background-color: rgba(255, 0, 0, 0);
            transition: all 2s ease-in-out;
            animation: none;
        }

        /* Roter Shadow wenn Audio abgespielt wird */

        &.fullscreen.playing {
            filter: drop-shadow(0px 0px 10px rgb(255, 255, 255));
            transition: all 2s ease-in-out;

        }

        /* Kein Shadow wenn pausiert */

        &.fullscreen.paused {
            filter: none;
        }

        /* Kein Shadow wenn gestoppt */

        &.fullscreen.stopped {
            filter: none;
        }

        &.pflanze:hover {
            width: auto;
            height: 120%;
            filter: drop-shadow(0px 0px 20px rgb(255, 0, 0));
        }
    }
}

.auszeichnung {
    font-size: 28px !important;
    line-height: 0.9;
    font-family: 'Cosplay' !important;
    word-break: break-word !important;
}


img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#pflanze-lattich {
    top: 70svh;
    left: 54svh;
    font-family: 'Ornaments';
}

#pflanze2 {
    top: 77svh;
    left: 24svh;
}

#pflanze-spitzw1 {
    top: 75svh;
    left: 68svh;
}

#pflanze-bn {
    top: 77svh;
    left: 152svh;
}

#pflanze-giersch {
    top: 60svh;
    left: 110svh;
}

#pflanze-beifuss {
    top: 50svh;
    left: 65svh;
}

#pflanze7 {
    top: 51svh;
    left: 92svh;
}

#pflanze-lz2 {
    top: 77svh;
    left: 76svh;
}

#redCircle1 {
    top: 55svh;
    left: 15svh;
}

/* #redCircle2 {
    top: 39svh;
    left: 72svh;
} */

/* #redCircle3 {
    top: 48svh;
    left: 110svh;
} */

#redCircle2 {
    top: 77svh;
    left: 43svh;
}

#redCircle3 {
    top: 55svh;
    left: 75svh;
}

#redCircle4 {
    top: 62svh;
    left: 118svh;
}

#magic1 {
    top: 66svh;
    left: 74svh;
}

#magic2 {
    top: 73svh;
    left: 144svh;
}

#magic3 {
    top: 55svh;
    left: 100svh;
}

#magic4 {
    top: 30svh;
    left: 100svh;
}

#magic5 {
    top: 77svh;
    left: 48svh;
}

.anweisung {
    display: none;
}

.anweisungsbox {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 100svw;
    height: 100svh;
    background-color: rgba(161, 18, 223, 0.2);
    font-family: 'ReplicaStd', sans-serif;
    font-size: 25px;
    line-height: 1.1;
    -webkit-text-stroke: 1.3px black;
    z-index: 40;
    padding: 20px;
    transition: all 1.5s ease-in-out, filter 2s ease-in-out;
    backdrop-filter: blur(10px);
    opacity: 0;
    filter: blur(10px);
    pointer-events: none;

    &.visible {
        backdrop-filter: blur(3px);
        filter: blur(0px);
        opacity: 1;
        pointer-events: all;
    }
}

/* Anweisungen in der Anweisungsbox */
.anweisungsbox p {
    margin: 0 0 8px 0;
    text-align: left;
    max-width: 500px;
    break-inside: avoid;
    word-wrap: normal;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
}

.anweisung span {
    font-size: 40px;
    font-family: 'Ouroboros';
}

.reference-point {
    display: none;
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: red;
    z-index: 1000;
    top: 0;
    left: 0;
    pointer-events: none;
}

#referencePoint1 {
    top: 17svh;
    left: 40svh;
}

#referencePoint2 {
    top: 74.5svh;
    left: 91svh;
}

#referencePoint3 {
    top: 14svh;
    left: 155svh;
}

.close-button {
    position: absolute;
    bottom: 15px;
    left: 50%;
    font-family: 'ReplicaStd';
    transform: translateX(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: rgb(0, 0, 0);
    -webkit-text-stroke: 1.3px black;
    cursor: pointer;
    z-index: 20;
    transition: transform 0.3s ease;
}

/* Audio Control Strip - schmaler Streifen am unteren Bildrand */
.audio-control-strip {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100svw;
    height: 40px;
    background-color: rgba(162, 18, 223, 0.477);
    backdrop-filter: blur(10px);
    z-index: 102;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 1.5s ease-in-out, filter 2s ease-in-out;
    opacity: 0;
    filter: blur(10px);
    pointer-events: none;
}

.audio-control-strip.visible {
    opacity: 1;
    filter: blur(0px);
    pointer-events: all;
    backdrop-filter: blur(3px);
}

/* Play/Pause Button innerhalb des Streifens */
.audio-control-strip .audio-play-pause-button {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    background: none;
    border: none;
    font-family: 'Ouroboros';
    width: 50px;
    height: 50px;
    font-size: 20px;
    color: rgb(0, 0, 0);
    cursor: pointer;
    z-index: 103;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.audio-control-strip .audio-play-pause-button:hover {
    transform: scale(1.1);
}

.audio-control-strip .audio-play-pause-button:active {
    transform: scale(0.95);
}

.disabled-while-anweisung {
    pointer-events: none;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    animation: none !important;
}

.map-point.text.disabled-while-anweisung {
    opacity: 0;
}

/* Ensure anweisungsbox has higher z-index than map-points */
.anweisungsbox {
    z-index: 100 !important;
}

/* Ensure anweisungsbox close button is clickable */
.anweisungsbox .close-button {
    z-index: 101 !important;
    pointer-events: all;
}

/* Make sure audio button stays on top */
.audio-play-pause-button {
    z-index: 102 !important;
}


#gpsUpdateBtn,
#gpsTrackingBtn,
#gpsTestingBtn,
#gpsStatus {
    display: none;
}

@keyframes magicRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
        filter: drop-shadow(0px 0px 20px rgb(255, 0, 0));
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
        filter: drop-shadow(0px 0px 20px rgb(255, 0, 0));
    }
}

@keyframes pflanzeImagePulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0.9);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1) translate(-50%, -50%);
    }

    100% {
        transform: scale(1.1) translate(-50%, -50%);
    }
}

.start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100svh;
    background-color: transparent;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 1s ease-in-out;
    opacity: 1;
    visibility: visible;
}

.start-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.start-content {
    color: rgb(0, 0, 0);
    font-family: 'ReplicaStd', sans-serif;
    font-size: 25px;
    line-height: 1.1;
    -webkit-text-stroke: 1.3px rgb(0, 0, 0);
    filter: drop-shadow(0px 0px 20px rgb(255, 255, 255));
    width: 90%;
    margin-bottom: 50px;
    /* text-align: center; */
    /* Zentriert den Button und Text */
}

.start-description {
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    word-break: break-word !important;
}

.start-description span {
    font-size: 40px;
    font-family: 'Ouroboros';
}

/* SVG-Pfeil-Button mit Pulsing-Animation */
.svg-arrow-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0 auto 30px auto;
    display: block;
    transition: all 0.3s ease;
    width: 30svh;
    height: auto;
    /* Pulsing-Animation hinzugefügt */
    animation: arrowPulse 3s infinite alternate ease-in-out;
}

.svg-arrow-button:hover {
    transform: translateY(-3px) scale(1.1);
    filter: drop-shadow(0 8px 15px rgba(150, 0, 215, 0.4));
    /* Animation beim Hover pausieren (optional) */
    animation-play-state: paused;
}

.svg-arrow-button:active {
    transform: translateY(0) scale(0.95);
}

/* Das SVG im Button */
.arrow-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.1s ease;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
}

.svg-arrow-button:hover .arrow-svg {
    filter: drop-shadow(0 5px 15px rgba(150, 0, 215, 0.6));
}

/* Neue Pulse-Animation für den Pfeil (ohne blur) */
@keyframes arrowPulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}


/* SVG als img-Element */
.start-overlay-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    opacity: 0.5;
    z-index: -1;
    filter: drop-shadow(0px 0px 20px rgba(81, 255, 0, 0.336));
}