/* Reset und Basis-Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Particles.js Hintergrund */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
}



/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.title {
    font-size: 3rem;
    color: #000000;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    background: linear-gradient(45deg, #000000, #6c757d, #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
    font-family: 'Arial Black', sans-serif;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
}

/* Calculator */
.calculator {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 1s ease-out;
}

/* Form */
.form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.required {
    color: #ff4444;
    font-weight: bold;
    margin-left: 3px;
}

.input-group input[type="text"] {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

/* Slider Styling */
.slider-container {
    margin-top: 10px;
    position: relative;
}

.slider-value {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
    padding: 8px 15px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(108, 117, 125, 0.1));
    border-radius: 8px;
    border: 2px solid rgba(108, 117, 125, 0.2);
    font-family: 'Arial Black', sans-serif;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e0e0e0 0%, #f0f0f0 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.slider:hover {
    background: linear-gradient(90deg, #d0d0d0 0%, #e8e8e8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider:focus {
    box-shadow: 0 0 20px rgba(108, 117, 125, 0.3);
}

/* Webkit Slider Thumb */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000000, #6c757d);
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.slider::-webkit-slider-thumb:active {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Firefox Slider Thumb */
.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000000, #6c757d);
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.slider::-moz-range-thumb:active {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Firefox Slider Track */
.slider::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e0e0e0 0%, #f0f0f0 100%);
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Gender Buttons */
.gender-buttons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.gender-btn {
    flex: 1;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.gender-btn:hover {
    border-color: #6c757d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.2);
    background: rgba(248, 249, 250, 0.9);
}

.gender-btn.selected {
    border-color: #000000;
    background: linear-gradient(135deg, #000000, #6c757d);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.gender-btn.error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.gender-icon {
    font-size: 1.5rem;
    font-weight: bold;
}

.gender-text {
    font-size: 0.9rem;
    font-weight: 600;
}

.input-group input[type="text"]:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 20px rgba(108, 117, 125, 0.3);
    transform: translateY(-2px);
}

.input-group input[type="text"]:hover {
    border-color: #495057;
    transform: translateY(-1px);
}

.input-group input[type="text"].error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    animation: shake 0.5s ease-in-out;
}

.slider.error {
    background: linear-gradient(90deg, #ffcccc 0%, #ffe6e6 100%);
    animation: shake 0.5s ease-in-out;
}

/* Calculate Button */
.calculate-btn {
    background: linear-gradient(45deg, #000000, #6c757d);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    font-family: 'Arial Black', sans-serif;
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(45deg, #6c757d, #000000);
}

.calculate-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

/* Result */
.result {
    margin-top: 40px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.result.hidden {
    display: none;
}

.result-content {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(108, 117, 125, 0.1));
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(108, 117, 125, 0.2);
}

.result-name {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Monster Dose */
.dose-container {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.monster-dose {
    width: 120px;
    height: 180px;
    position: relative;
    animation: doseJump 0.8s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.monster-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.2));
    animation: doseGlow 2s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.monster-image:hover {
    transform: scale(1.05);
}

/* Result Text */
.result-text {
    margin: 20px 0;
}

.dose-count {
    font-size: 4rem;
    font-weight: bold;
    color: #000000;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    display: block;
    animation: countUp 1s ease-out;
    font-family: 'Arial Black', sans-serif;
}

.dose-label-text {
    font-size: 1.5rem;
    color: #666;
    font-weight: 500;
}


/* Reset Button */
.reset-btn {
    background: linear-gradient(45deg, #666, #888);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.reset-btn:hover {
    background: linear-gradient(45deg, #555, #777);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    }
    50% {
        text-shadow: 2px 2px 20px rgba(108, 117, 125, 0.5);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes doseJump {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes doseGlow {
    0%, 100% {
        filter: drop-shadow(0 8px 20px rgba(0,0,0,0.2));
    }
    50% {
        filter: drop-shadow(0 8px 30px rgba(108, 117, 125, 0.4));
    }
}

@keyframes countUp {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}



/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .calculator {
        padding: 30px 20px;
    }
    
    .dose-count {
        font-size: 3rem;
    }
    
    .dose-label-text {
        font-size: 1.2rem;
    }
    
    .monster-dose {
        width: 90px;
        height: 135px;
    }
    
    .gender-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .gender-btn {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .gender-icon {
        font-size: 1.3rem;
    }
    
    .gender-text {
        font-size: 0.8rem;
    }
    
    .slider-value {
        font-size: 1.1rem;
        padding: 6px 12px;
    }
    
    .slider {
        height: 6px;
    }
    
    .slider::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }
    
    .slider::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }
    
    .slider-labels {
        font-size: 0.8rem;
    }
    
    /* Particles auf Tablet reduzieren */
    #particles-js {
        opacity: 0.7;
    }
    
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .calculator {
        padding: 20px 15px;
    }
    
    .dose-count {
        font-size: 2.5rem;
    }
    
    .dose-label-text {
        font-size: 1rem;
    }
    
    .monster-dose {
        width: 75px;
        height: 112px;
    }
    
    .gender-btn {
        padding: 10px 6px;
        font-size: 0.8rem;
    }
    
    .gender-icon {
        font-size: 1.2rem;
    }
    
    .gender-text {
        font-size: 0.7rem;
    }
    
    .slider-value {
        font-size: 1rem;
        padding: 5px 10px;
    }
    
    .slider {
        height: 6px;
    }
    
    .slider::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }
    
    .slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }
    
    .slider-labels {
        font-size: 0.7rem;
    }
    
    /* Particles auf Mobile noch weiter reduzieren */
    #particles-js {
        opacity: 0.5;
    }
    
}
