/* Quersummen-Rechner Plugin Styles */

.quersummen-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.quersummen-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.quersummen-form label {
    display: inline-block;
    margin: 0 15px 10px 0;
    font-weight: 600;
    color: #333;
    font-size: 16px;
    min-width: 60px;
}

.quersummen-form select {
    padding: 12px 16px;
    margin: 0 10px 15px 0;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    color: #333;
    min-width: 80px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quersummen-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.quersummen-form select:hover {
    border-color: #667eea;
}

#qr-calculate {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-top: 10px;
}

#qr-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#qr-calculate:active {
    transform: translateY(0);
}

#qr-result {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
    color: #333;
}

#qr-result h3 {
    color: #667eea;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

#qr-result h4 {
    color: #764ba2;
    font-size: 20px;
    margin: 20px 0 15px 0;
}

#qr-result p {
    margin-bottom: 15px;
    font-size: 16px;
}

#qr-result ul {
    margin: 10px 0 20px 20px;
}

#qr-result li {
    margin-bottom: 8px;
    font-size: 15px;
}

#qr-result strong {
    color: #333;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quersummen-container {
        margin: 15px;
        padding: 20px;
    }
    
    .quersummen-form {
        padding: 20px;
        text-align: center;
    }
    
    .quersummen-form label {
        display: block;
        margin: 15px 0 8px 0;
        width: 100%;
    }
    
    .quersummen-form select {
        width: 100%;
        margin: 0 0 15px 0;
        max-width: 200px;
    }
    
    #qr-calculate {
        width: 100%;
        max-width: 250px;
        margin-top: 20px;
    }
    
    #qr-result {
        padding: 20px;
    }
    
    #qr-result h3 {
        font-size: 20px;
    }
    
    #qr-result h4 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .quersummen-container {
        margin: 10px;
        padding: 15px;
    }
    
    .quersummen-form {
        padding: 15px;
    }
    
    .quersummen-form select {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    #qr-calculate {
        font-size: 16px;
        padding: 12px 25px;
    }
    
    #qr-result {
        padding: 15px;
    }
    
    #qr-result h3 {
        font-size: 18px;
    }
    
    #qr-result h4 {
        font-size: 16px;
    }
    
    #qr-result p,
    #qr-result li {
        font-size: 14px;
    }
}

/* Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#qr-result {
    animation: fadeIn 0.5s ease-out;
}

/* Fokus-Styles für Barrierefreiheit */
.quersummen-form select:focus,
#qr-calculate:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Hover-Effekte für bessere UX */
.quersummen-form select option:hover {
    background-color: #f8f9ff;
}

/* Ladezustand */
.quersummen-loading {
    text-align: center;
    padding: 20px;
    color: #667eea;
    font-style: italic;
}

.quersummen-loading::after {
    content: "...";
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        color: rgba(0,0,0,0);
        text-shadow: .25em 0 0 rgba(0,0,0,0),
                     .5em 0 0 rgba(0,0,0,0);
    }
    40% {
        color: #667eea;
        text-shadow: .25em 0 0 rgba(0,0,0,0),
                     .5em 0 0 rgba(0,0,0,0);
    }
    60% {
        text-shadow: .25em 0 0 #667eea,
                     .5em 0 0 rgba(0,0,0,0);
    }
    80%, 100% {
        text-shadow: .25em 0 0 #667eea,
                     .5em 0 0 #667eea;
    }
}