#rahmen {
    width: 98vw;
    height: 98vh;
    margin: 0.5vh auto; 
    padding: 0; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Inhalte oben halten */
    background: url(pexels-maxavans-5092830.jpg) no-repeat center center/cover;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    border: 6px solid rgba(255,255,255,0.85);

    overflow-y: auto; /* Scrollbar falls Inhalt zu groß */
    overflow-x: hidden;
    padding-top: 16px; /* Abstand oben zum Rahmen */

    /* Filter-Effekte, prüfen ob nötig */
    -webkit-filter: contrast(1.5) saturate(2);
    filter: contrast(1.2) saturate(2);

        -webkit-filter: saturate(2);
    filter: saturate(2);


}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: white;
}

#überschrift2-links {
   width: 50%;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
 /*   background-color: rgb(135, 150, 186); */
}


#rahmen-belohnungspunkte-Container {
    margin: 0.0rem;
    padding: 2.0rem;  

  
}

#belohnungspunkte-Container-A, #belohnungspunkte-Container-B, #belohnungspunkte-Container-pre-A, #offboarding-container {
    background: rgba(255,255,255,0.2); 
    display: flex;
    justify-content: center;;
    border-radius: 15px;
    padding: 25px; /* hier war 20px */
    min-width: 10px;
    max-width: 450px;
    flex: 1 1 0;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: transform 0.3s ease-in-out;
    font-size: 0.875rem;
}

#technischer-hinweis-container {
    background: linear-gradient(135deg, rgba(90,199,215,0.12) 0%, rgba(255,255,255,0.22) 100%);
    width: 210px;
    max-height: calc(75vh - 10px); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 32px 8px 32px 8px / 16px 32px 8px 32px;
    border: 4px double rgba(90,199,215,0.32);
    box-shadow:
        0 8px 32px rgba(90,199,215,0.22),
        0 0 24px rgba(154,217,19,0.18),
        0 0 0 8px rgba(90,199,215,0.08) inset,
        0 0 40px 10px #ff00cc88,
        0 0 60px 20px #00ffd088;
    padding: 32px 26px;
    text-align: center;
    backdrop-filter: blur(16px) brightness(1.12) contrast(1.08);
    font-size: 1.05rem;
    transition: box-shadow 0.3s, transform 0.2s, border-radius 0.4s, background 0.5s;
    position: relative;
    overflow: hidden;
    animation: technischer-hinweis-pop 2.2s cubic-bezier(.68,-0.55,.27,1.55) 1, disco-bg 6s linear infinite;
    background: linear-gradient(135deg, #ff00cc 0%, #00ffd0 50%, #fffb00 100%);
    background-size: 200% 200%;
}

#technischer-hinweis-container::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, #ff00cc88 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(2px);
    animation: technischer-hinweis-glow 3.5s infinite alternate, disco-glow 2.5s linear infinite;
}

#technischer-hinweis-container::after {
    content: '';
    position: absolute;
    left: -24px;
    bottom: -24px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #00ffd088 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(1.5px);
    opacity: 0.7;
    animation: technischer-hinweis-glow 2.2s infinite alternate-reverse, disco-glow 2.2s linear infinite reverse;
}

#technischer-hinweis-container:hover {
    box-shadow:
        0 16px 48px rgba(90,199,215,0.32),
        0 0 48px rgba(154,217,19,0.28),
        0 0 0 16px rgba(90,199,215,0.12) inset,
        0 0 80px 20px #ff00cc,
        0 0 120px 40px #00ffd0;
    transform: scale(1.08) rotate(-4deg);
    border-radius: 8px 32px 8px 32px / 32px 8px 32px 8px;
    background: linear-gradient(135deg, #fffb00 0%, #ff00cc 50%, #00ffd0 100%);
    background-size: 200% 200%;
}

@keyframes technischer-hinweis-pop {
    0% { transform: scale(0.8) rotate(-8deg); opacity: 0.2; }
    60% { transform: scale(1.08) rotate(2deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes technischer-hinweis-glow {
    0% { opacity: 0.7; filter: blur(2px); }
    100% { opacity: 1; filter: blur(4px); }
}

@keyframes disco-bg {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

@keyframes disco-glow {
    0% { box-shadow: 0 0 20px 5px #ff00cc88, 0 0 30px 10px #00ffd088; }
    25% { box-shadow: 0 0 40px 10px #fffb0088, 0 0 60px 20px #ff00cc88; }
    50% { box-shadow: 0 0 60px 20px #00ffd088, 0 0 80px 30px #fffb0088; }
    75% { box-shadow: 0 0 40px 10px #ff00cc88, 0 0 30px 10px #00ffd088; }
    100% { box-shadow: 0 0 20px 5px #fffb0088, 0 0 30px 10px #ff00cc88; }
}

/* CSS wie Intro Audio Button */
#fortschritt-Container {
    width: 98vw;
    padding: 5vw;
    max-width: auto;
    margin: 0px 0 0px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
   
    background: rgba(90,199,215,0.10);
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(90,199,215,0.10);
    border: 1.5px solid rgba(90,199,215,0.18);
    backdrop-filter: blur(4px);
    font-size: 1.1rem;
    

    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word; 
    word-break: break-word; 

    max-height: calc(95vh - 10px);
    overflow-y: both;
}



#fortschritt-text, #fortschritt-nummer {
    font-size: 0.825rem;
    color: white (90, 199, 215);
    display: inline;
    white-space: nowrap;
    
}


/* Fortschrittsbalken Styling */
#fortschritt-balken {
  width: 100%;
  height: 20px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 5px;
  margin-right: 5px;
}

#fortschritt-füllung {
  height: 100%;
  background: rgb(90, 199, 215);
  width: 0%;
  transition: width 0.5s;
  border-radius: 10px 0 0 10px;
  position: relative;
}

#fortschritt-füllung::after {
    content: attr(data-fortschritt) ' Hopp, füll auf !';
    position: absolute;
    right: 10px;
    top: 0;
    color: white;
    font-size: 0.75rem;
    line-height: 20px; /* Zentriert den Text vertikal */
    font-weight: bold;
}

#fragen-container-links {
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    text-align: start; 
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: transform 0.3s ease-in-out;
    font-size: 1.25rem;

    margin-bottom: 2px;   /* Abstand zwischen den Containern */
    
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word; 
    word-break: break-word; 

    max-height: calc(95vh - 10px);
    overflow-y: both; 

   
   
}

#glossar-container-rechts {
    background: rgba(255,255,255,0.2); 
    border-radius: 15px;
    padding: 20px;
 
    width: 100%;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: transform 0.3s ease-in-out;
    font-size: 1.25rem;
   
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word; 
    word-break: break-word; 

    max-height: calc(95vh - 10px);
    overflow-y: both; 

}

/*  Überschrift: Check dein Leben */
#neutral-bg-btn {
transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
background: linear-gradient(135deg, rgba(90,199,215,0.18) 0%, rgba(154,217,19,0.18) 100%);
box-shadow: 0 2px 8px rgba(90,199,215,0.12);
} 


#neutral-bg-btn:hover {
    background: linear-gradient(135deg, rgba(154,217,19,0.32) 0%, rgba(90,199,215,0.32) 100%);
    box-shadow: 0 4px 16px rgba(154,217,19,0.18), 0 0 12px rgba(90,199,215,0.12);
    transform: scale(1.05);
}



#intro-audio-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(135deg, rgb(90,199,215) 60%, rgb(154,217,19) 100%);
    border: none;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    box-shadow: 0 8px 32px rgba(90,199,215,0.25), 0 0 24px rgba(154,217,19,0.18);
    border: 4px solid rgba(255,255,255,0.7);
    transition: box-shadow 0.3s, transform 0.2s, background 0.3s;
    animation: kreis-rotation 9.5s linear infinite;
    padding: 0;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
}

#intro-audio-button:active {
    background: linear-gradient(135deg, rgb(154,217,19) 60%, rgb(90,199,215) 100%);
    box-shadow: 0 4px 16px rgba(154,217,19,0.35), 0 0 12px rgba(90,199,215,0.18);
    transform: scale(2.97);
}



h1:hover {
    color: #ff00cc;
    text-shadow:
        0 0 12px #00ffd0,
        0 0 24px #fffb00,
        0 0 48px #ff00cc,
        0 0 2px #fff;
    background: linear-gradient(90deg, #ff00cc 0%, #00ffd0 50%, #fffb00 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: h1-crazy 1.2s infinite alternate cubic-bezier(.68,-0.55,.27,1.55);
    transform: scale(1.15) rotate(-3deg) skewY(2deg) translateX(200px);
    transition: all 0.3s cubic-bezier(.68,-0.55,.27,1.55);
}

@keyframes h1-crazy {
    0% { letter-spacing: 0.05em; filter: hue-rotate(0deg); }
    50% { letter-spacing: 0.25em; filter: hue-rotate(90deg) brightness(1.3); }
    100% { letter-spacing: 0.05em; filter: hue-rotate(180deg); }
}



h2 {
    color: rgb(90, 199, 215);
    font-size: 1.125rem;
   
   
}

h4 {
    color:  rgb(90, 199, 215);
    font-size: 2.0rem;
    font-style: italic;
    text-align: center; 
    padding: 1.875rem;
    margin: 0.5rem 1;

    color: white;
   

}

a {
    text-decoration: none;
}


p {
      color: white;
    font-size: 0,75 rem;
}

label {
    color: whitesmoke;
}

input[type="text"] {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: calc(100% - 1rem);
}

input[type="checkbox"] {
   
    margin: 0.5rem 0;
    padding: 0.25rem;
    appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid rgb(90, 199, 215);
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    margin-right: 0.7rem;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(90,199,215,0.15);
    vertical-align: middle;
}


/* Stil für alle Radio-Buttons bei Fragen */
input[type="radio"] {
    margin: 0.5rem 0;
    padding: 0.25rem;
    appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid rgb(90, 199, 215);
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    margin-right: 0.7rem;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(90,199,215,0.15);
    vertical-align: middle;
}

input[type="radio"]:checked {
    border-color: rgb(154, 217, 19);
    background: linear-gradient(135deg, rgb(154, 217, 19) 60%, rgb(90, 199, 215) 100%);
    box-shadow: 0 0 0 4px rgba(154,217,19,0.15);
}

input[type="radio"]:checked::after {
    content: '';
    display: block;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    box-shadow: 0 1px 4px rgba(90,199,215,0.12);
}

input[type="radio"]:focus {
    outline: none;
    border-color: rgb(90, 199, 215);
    box-shadow: 0 0 0 3px rgba(90,199,215,0.25);
}

/* Stil für alle Checkboxen bei Fragen */
input[type="checkbox"] {
    appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid rgb(90, 199, 215);
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    margin-right: 0.7rem;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(90,199,215,0.15);
}

input[type="checkbox"]:checked {
    border-color: rgb(154, 217, 19);
    background: linear-gradient(135deg, rgb(154, 217, 19) 60%, rgb(90, 199, 215) 100%);
    box-shadow: 0 0 0 4px rgba(154,217,19,0.15);
}

input[type="checkbox"]:checked::after {
    content: '';
    display: block;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    box-shadow: 0 1px 4px rgba(90,199,215,0.12);
}

input[type="checkbox"]:focus {
    outline: none;
    border-color: rgb(90, 199, 215);
    box-shadow: 0 0 0 3px rgba(90,199,215,0.25);
}

button {
    background-color: rgb(90, 199, 215);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 0.5rem;
}


button:hover {
    background-color: rgb(70, 170, 180);
    transform: scale(1.05);
}
button:active {
    background-color: rgb(50, 140, 150);
    transform: scale(0.95);

    }

    /* Kreisförmige Onboarding-Animation */
    @keyframes kreis-rotation {
        20% {
            transform: rotate(0deg);
        }
        100% {
            transform: rotate(360deg);
        }
    }
    
    .onboarding-kreis-animation {
        width: 70px;
        height: 80px;
        border: 80px solid rgba(90,199,215,0.2);
        border-top: 80px solid rgb(90,199,215);
        border-radius: 90%;
        animation: kreis-rotation 9.5s linear infinite; 
        margin: 32px auto;
        display: block;
        margin-top: 50px;
    }

    #intro-audio-button {
    display: block;
    margin: 0 100px;
     font-size: 0.875rem;
 
    }


    
@media screen and (max-width: 368px) { 
    #rahmen {
        width: 100vw;
        height: 100vh;
        margin: 0; 
        padding: 0; 
        border-radius: 0;
        box-shadow: none;
        overflow-y: auto; /* Scrollbar falls Inhalt zu groß */
    }

    #belohnungspunkte-Container-A, #belohnungspunkte-Container-B, #belohnungspunkte-Container-pre-A, #offboarding-container {
        font-size: 0.75rem; 
    }

    p, h1, h2, h3, h4, li {
        font-size: 1.25rem;
        line-height: 1.5; 
    }
}