.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}





/* --- Umfrage Design --- */

.frage-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.frage-titel {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

/* Container für die Auswahlmöglichkeiten (z.B. 6 Würfel nebeneinander) */
.optionen-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center; /* Zentriert die Optionen */
}

/* --- Der Würfel --- */
.wuerfel-btn {
    width: 60px;
    height: 60px;
    background-color: white;
    border: 2px solid #ccc;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Wenn ausgewählt: Dunkelrot */
    .wuerfel-btn.active {
        background-color: #8B0000; /* Dunkelrot */
        border-color: #8B0000;
        transform: scale(1.1); /* Leicht vergrößern */
    }

/* --- Bunte Klassen-Auswahl --- */

.klasse-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%; /* Kreisrund */
    border: none;
    font-size: 2rem; /* Riesige Schrift */
    font-weight: 900;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

    /* Jede Klasse bekommt eine eigene Farbe (Regenbogen-Prinzip) */
    .klasse-btn.k-1 {
        background-color: #FFD700;
        color: #333;
    }
    /* Goldgelb */
    .klasse-btn.k-2 {
        background-color: #FF8C00;
    }
    /* Orange */
    .klasse-btn.k-3 {
        background-color: #FF4500;
    }
    /* Rot-Orange */
    .klasse-btn.k-4 {
        background-color: #32CD32;
    }
    /* Grün */
    .klasse-btn.k-5 {
        background-color: #1E90FF;
    }
    /* Blau */
    .klasse-btn.k-6 {
        background-color: #9370DB;
    }
    /* Lila */

    /* Hover-Effekt (Maus drüber) */
    .klasse-btn:hover {
        transform: scale(1.1) rotate(5deg); /* Wackelt leicht */
    }

    /* Ausgewählt-Status */
    .klasse-btn.active {
        transform: scale(1.2);
        box-shadow: 0 0 0 5px rgba(0,0,0,0.1); /* Dicker Rand */
        border: 3px solid white;
    }

/* Wenn Würfel aktiv ist, werden die Punkte weiß */
.wuerfel-btn.active .dot {
    background-color: white;
}

/* Positionen der Punkte (CSS Grid Trick für Würfel-Gesichter) */
/* Wir machen das gleich im HTML per Inline-Style, das ist flexibler */







/* --- UNIVERSAL DESIGN --- */

.frage-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s;
}

.frage-titel {
    font-size: 1.3rem;
    font-weight: 800;
    color: #444;
    margin-bottom: 20px;
    text-align: center;
}

/* Basis für ALLE Buttons */
.btn-design {
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy Effekt */
    position: relative;
    outline: none;
}

    .btn-design:active {
        transform: scale(0.95);
    }

/* 1. WÜRFEL / KLASSEN STYLE */
.wuerfel {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background-color: var(--btn-color, #ccc); /* Farbe kommt vom Code */
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 0 rgba(0,0,0,0.2); /* 3D Effekt unten */
    margin-bottom: 4px; /* Platz für den Schatten */
}

    .wuerfel.aktiv {
        transform: scale(1.15);
        box-shadow: 0 0 0 4px rgba(0,0,0,0.1);
        z-index: 2;
    }

/* 2. SMILEY STYLE (Jetzt mit SVGs) */
.smiley {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    padding: 15px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Der neue Container für das Smiley-SVG */
.emoji-svg-wrapper {
    width: 80px;
    height: 80px;
    /* Standard: Etwas blasser und kleiner */
    filter: saturate(0.7);
    transform: scale(0.9);
    transition: all 0.3s;
}

.smiley .label {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #777;
    font-weight: 600;
    transition: color 0.3s;
}

/* Hover und Aktiv Zustand */
.smiley:hover, .smiley.aktiv {
    background-color: #FFF9C4; /* Helles Gelb als Hintergrund */
    transform: translateY(-5px);
}

    .smiley:hover .emoji-svg-wrapper,
    .smiley.aktiv .emoji-svg-wrapper {
        /* Wenn aktiv: Volle Farbe, größer und wackelt */
        filter: saturate(1.2) drop-shadow(0 5px 10px rgba(255, 193, 7, 0.4));
        transform: scale(1.2) rotate(5deg);
    }

    .smiley.aktiv .label {
        color: #333;
    }

/* 3. TEXT-BUTTONS (Ja/Nein/Junge) */
.text-btn {
    padding: 10px 20px;
    border-radius: 50px; /* Pillenform */
    background-color: #eee;
    color: #555;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
}

    .text-btn.aktiv {
        background-color: #0d6efd; /* Blau */
        color: white;
        box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
    }

/* 4. BILD CARDS (Obst/Gemüse) */
.bild-card {
    width: 100px;
    height: 120px;
    border-radius: 15px;
    background: white;
    border: 2px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .bild-card .bild-placeholder {
        font-size: 2.5rem;
    }

    .bild-card.aktiv {
        border-color: #28a745;
        background-color: #f0fff4;
    }



/* --- SUNSHINE ANIMATIONEN --- */

.sonne-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 20px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy Effekt */
    min-width: 100px; /* Damit sie im Grid nicht zu klein werden */
}

/* Der SVG Container */
.sonne-svg-wrapper {
    width: 80px;
    height: 80px;
    transition: transform 0.3s;
}

/* Standardzustand der Strahlen */
.strahlen {
    transform-origin: 50px 50px;
    /* Langsame Drehung immer */
    animation: drehen 10s linear infinite;
}

@keyframes drehen {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- INTERAKTION --- */

/* Hover Effekt */
.sonne-card:hover {
    border-color: #FFD700;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

    .sonne-card:hover .sonne-svg-wrapper {
        transform: scale(1.1);
    }

/* AKTIV (Ausgewählt) */
.sonne-card.aktiv {
    background-color: #FFF8E1; /* Ganz helles Gelb */
    border-color: #FFD700;
    transform: scale(1.05);
    box-shadow: 0 0 0 4px #FFD700; /* Goldener Ring */
}

    .sonne-card.aktiv .strahlen {
        /* Wenn ausgewählt, dreht sie sich schneller! */
        animation: drehen 3s linear infinite;
    }

/* --- BILDER STYLE --- */

.bild-card {
    background: white;
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 10px;
    width: 140px; /* Feste Breite für Kacheln */
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.opt-bild {
    width: 100px;
    height: 100px;
    object-fit: contain; /* Bild wird nicht verzerrt */
    margin-bottom: 5px;
}

.bild-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bild-card.aktiv {
    border-color: #28a745; /* Grüner Rand bei Auswahl */
    background-color: #f0fff4; /* Hellgrüner Hintergrund */
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.2);
}