@charset "UTF-8";
/* CSS Document */

        @font-face {
      font-family: ratfur;
      src: url("fonts/Cookies.ttf");
    }

            body {
			font-family: 'ratfur', sans-serif;
            margin: 0px;
            padding: 0px;
            background: #000000
        }
            
			img,
			object,
			.custom-audio-player,
			details,
			summary {
				display: block;
				margin: 0;
				padding: 0;
			}


            .img {
            width: 100%;
            max-width: 100%;
            margin: 0px;
            padding: 0px;
            border: none;
            
}
            
            .footer{
            width: 100%;
            max-width: 100%;
            margin: 0px;
            padding: 0px;
            border: none;
            position: relative;
            margin-bottom: -5px;
            

            }
    

/* === FOOTER TOGGLE (thestory fährt nach UNTEN aus) === */
.footer-stack {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.footer-hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
    opacity: 0;
    margin: 0;
    padding: 0;
}

/* Geöffneter Zustand – das Bild fährt nach UNTEN aus */
.footer-stack.open .footer-hidden {
    max-height: 800px;   /* groß genug für das Bild – passe an falls nötig */
    opacity: 1;
}

/* Klickbare Trigger-Grafik (relax) – bleibt immer oben */
.footer-trigger {
    cursor: pointer;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    /*transition: opacity 0.2s;*/
}

.footer-trigger:hover {
    /*opacity: 0.85;*/
}

/* thestory behält seine footer-Klasse (kein extra Margin) */
.footer-hidden .footer {
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
}





    
            .svg-wrapper {
            width: 100%;
            height: auto;
            border: 0px solid #333;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 0 30px rgba(255, 0, 255, 0.2);
        }
            
    

         

/* === Details / Summary === */
details {
  padding: 0;
}

summary {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  cursor: pointer;
  padding: 10px 0;
  overflow: visible;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "➳";
  font-size: 2.5rem;
  line-height: 1;
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(180deg);
}


.custom-audio-player {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    margin: 0 auto;
    width: 100%;
}

.play-btn {
    font-family: 'ratfur', 'Helvetica Neue', sans-serif;
	-webkit-appearance: none;          /* Entfernt iOS-Standard-Styling */
    appearance: none;
    
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    background: #95202B;
    
    /* FARBE MIT !IMPORTANT ERZWINGEN */
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    
    font-size: 32px;                   /* Etwas größer für bessere Sichtbarkeit */
    font-weight: bold;
   
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    padding: 0;
    line-height: 1;
    text-align: center;
}

/* ALLE Zustände mit !important überschreiben */
.play-btn:focus,
.play-btn:active,
.play-btn:hover,
.play-btn:focus-visible {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: #95202B;
}

.play-btn:active {
    transform: scale(0.92);
    background: #7a1a22;
}

/* Media-Queries für verschiedene Bildschirmgrößen */
@media (max-width: 480px) {
    .play-btn {
        flex: 0 0 56px;
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
}

@media (min-width: 768px) {
    .play-btn {
        flex: 0 0 96px;
        width: 96px;
        height: 96px;
        font-size: 48px;
    }
}

@media (min-width: 1200px) {
    .play-btn {
        flex: 0 0 120px;
        width: 120px;
        height: 120px;
        font-size: 60px;
    }
}





/* === UP‑Button === */
#up-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffec00;          
    color: #000000 !important;
    font-family: 'ratfur', sans-serif;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid #1a1a1a;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#up-button.visible {
    opacity: 1;
    transform: scale(1);
}

#up-button:hover {
    background: #ffec00;
    transform: scale(1.05);
}

#up-button:active {
    transform: scale(0.92);
}


@media (max-width: 480px) {
    #up-button {
        width: 50px;
        height: 50px;
        font-size: 2rem;
        bottom: 20px;
        right: 20px;
    }
}




/* === LOADER === */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;          
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;               /* Ganz weit oben */
    transition: opacity 0.8s ease, visibility 0.8s ease;
    opacity: 1;
    visibility: visible;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;        
}

.loader-content {
    text-align: center;
    max-width: 90%;
}

#loader-image {
    max-width: 80%;
    max-height: 80%;
    display: block;
    margin: 0 auto;
}

.loader-content p {
    font-family: 'ratfur', sans-serif;
    font-size: 60px;
    color: #000000;
    margin-top: 1.5rem;
    letter-spacing: 2px;
}

/* Optional: CSS-Spinner als Fallback, falls kein Bild da ist */
.spinner {
    width: 80px;
    height: 80px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #95202B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Kleine Bildschirme */
@media (max-width: 480px) {
    .loader-content p {
        font-size: 100px;
    }
}


.custom-audio-player[id] {
    scroll-margin-top: 100px;
}