/* Allgemeine Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #1f2937;
    margin-bottom: 30px;
    font-size: 2rem;
}

h2 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

h3 {
    color: #1e40af;
    margin: 20px 0 10px 0;
    font-size: 1.2rem;
}

h4 {
    color: #374151;
    margin: 10px 0;
    font-size: 1rem;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Sections */
.input-section, .result-section {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.result-section {
    background-color: #eff6ff;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #374151;
}

input[type="text"],
select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.help-text {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
}

/* Info Boxes */
.info-box, .warning-box {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.info-box {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
    color: #374151;
}

.warning-box {
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    color: #374151;
    font-size: 0.875rem;
}

/* Kurzarbeit Section */
#kurzarbeit-section {
    background-color: #fef9c3;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #fde047;
    margin-top: 15px;
}

/* Result Boxes */
.result-box, .tax-box, .social-insurance-box, .total-box, .comparison-box {
    background-color: white;
    padding: 16px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.result-row:last-child {
    margin-bottom: 0;
}

.result-row .label {
    font-weight: 400;
}

.result-row .value {
    font-weight: 600;
}

.result-row.highlight .label,
.result-row.highlight .value {
    font-weight: 700;
    font-size: 1.1rem;
}

.result-row.highlight:not(.reduced-brutto) .value {
    color: #059669;
}

.result-row.reduced-brutto .value {
    color: #dc2626;
}

.result-row.kurzarbeit-result .value {
    color: #1d4ed8;
}

.kurzarbeit-info {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 8px;
}

.factor-info {
    font-size: 0.75rem;
}

/* Progress Bars */
.progress-bar {
    width: 100%;
    height: 24px;
    background-color: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background-color: #22c55e;
    transition: width 0.3s ease;
}

.progress-fill.kurzarbeit {
    background-color: #3b82f6;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.kurzarbeit-comparison {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .grid-2col {
        grid-template-columns: 1fr;
    }
}