/* Quick Reference 2025 - Specialized Styles */
/* Homeoffice-Pauschale Speed Reference Guide */

/* ========================================
   HERO QUICK FACTS SECTION
   ======================================== */

.quick-facts-hero {
    background: linear-gradient(135deg, #003366 0%, #0066cc 100%);
    border-radius: 16px;
    padding: 48px 32px;
    margin: 32px 0;
    box-shadow: 0 8px 32px rgba(0, 51, 102, 0.2);
    text-align: center;
}

.hero-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.facts-grid-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.fact-hero {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.fact-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.15);
}

.fact-hero-primary {
    border-color: #d69e2e;
}

.fact-hero-accent {
    border-color: #ed8936;
}

.fact-hero-success {
    border-color: #38a169;
}

.fact-hero-info {
    border-color: #3182ce;
}

.fact-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.fact-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.fact-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-cta {
    margin-top: 32px;
}

.btn-calculate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #d69e2e;
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(214, 158, 46, 0.3);
}

.btn-calculate:hover {
    background: #b8832a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(214, 158, 46, 0.4);
}

/* ========================================
   COMPARISON TABLE SECTION
   ======================================== */

.comparison-section {
    margin: 48px 0;
}

.comparison-section h2 {
    color: var(--color-dark);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.9375rem;
}

.comparison-table thead {
    background: var(--color-primary);
    color: #ffffff;
}

.comparison-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.comparison-table th:first-child {
    border-top-left-radius: 12px;
}

.comparison-table th:last-child {
    border-top-right-radius: 12px;
}

.year-col {
    text-align: center;
    min-width: 100px;
}

.year-2025 {
    background: var(--color-primary-light);
    font-weight: 700;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--color-light-gray);
    transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: var(--color-light);
}

.comparison-table td {
    padding: 16px 12px;
}

.label-col {
    font-weight: 600;
    color: var(--color-dark-gray);
}

.value-col {
    text-align: center;
    font-weight: 500;
}

.value-col.highlight {
    background: #fffbeb;
    color: #d69e2e;
    font-weight: 700;
    font-size: 1.125rem;
}

.value-col.changed {
    color: var(--color-warning);
    font-style: italic;
}

.status-success {
    color: var(--color-success);
}

.status-warning {
    color: var(--color-warning);
}

.table-note {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--color-secondary);
    font-style: italic;
}

/* ========================================
   PREREQUISITES CHECKLIST
   ======================================== */

.prerequisites-section {
    margin: 48px 0;
}

.prerequisites-section h2 {
    color: var(--color-dark);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.checklist-item {
    display: flex;
    gap: 16px;
    background: #ffffff;
    border-left: 4px solid var(--color-success);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.checklist-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.check-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-success);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
}

.check-content h3 {
    color: var(--color-dark);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.check-content p {
    color: var(--color-dark-gray);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.check-content strong {
    color: var(--color-primary);
}

/* Alerts */
.alert {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 8px;
    margin-top: 24px;
}

.alert-warning {
    background: #fffbeb;
    border: 2px solid #ed8936;
}

.alert-info {
    background: #ebf8ff;
    border: 2px solid #3182ce;
}

.alert-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
}

.alert-content h4 {
    color: var(--color-dark);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.alert-content p {
    color: var(--color-dark-gray);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.alert-content p:last-child {
    margin-bottom: 0;
}

.alert-content a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.alert-content a:hover {
    text-decoration: underline;
}

/* ========================================
   COMMON MISTAKES SECTION
   ======================================== */

.mistakes-section {
    margin: 48px 0;
    padding: 32px;
    background: var(--color-light);
    border-radius: 12px;
}

.mistakes-section h2 {
    color: var(--color-danger);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.mistake-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.mistake-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.mistake-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff5f5;
    padding: 16px 20px;
    border-bottom: 2px solid #feb2b2;
}

.mistake-icon {
    font-size: 1.5rem;
}

.mistake-header h3 {
    color: var(--color-danger);
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0;
}

.mistake-body {
    padding: 20px;
}

.mistake-wrong {
    color: var(--color-danger);
    font-size: 0.9375rem;
    margin-bottom: 12px;
    padding: 12px;
    background: #fff5f5;
    border-left: 3px solid var(--color-danger);
    border-radius: 4px;
}

.mistake-right {
    color: var(--color-success);
    font-size: 0.9375rem;
    padding: 12px;
    background: #f0fff4;
    border-left: 3px solid var(--color-success);
    border-radius: 4px;
}

/* ========================================
   QUICK CALCULATOR SECTION
   ======================================== */

.quick-calc-section {
    margin: 48px 0;
}

.quick-calc-section h2 {
    color: var(--color-dark);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.quick-calc-box {
    background: #ffffff;
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.1);
}

.calc-input-group {
    margin-bottom: 24px;
}

.calc-input-group label {
    display: block;
    color: var(--color-dark-gray);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.calc-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.125rem;
    border: 2px solid var(--color-light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.calc-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.input-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.875rem;
    color: var(--color-medium-gray);
    font-style: italic;
}

.btn-calc {
    width: 100%;
    padding: 16px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-calc:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

.calc-result {
    margin-top: 24px;
    padding: 24px;
    background: var(--color-light);
    border-radius: 8px;
    border-left: 4px solid var(--color-success);
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.result-row:last-of-type {
    border-bottom: none;
}

.result-highlight {
    background: #f0fff4;
    margin: 12px -12px 0;
    padding: 16px 12px;
    border-radius: 8px;
}

.result-label {
    font-size: 1rem;
    color: var(--color-dark-gray);
    font-weight: 500;
}

.result-value {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
}

.result-highlight .result-value {
    color: var(--color-success);
    font-size: 2rem;
}

.result-note {
    margin-top: 16px;
    font-size: 0.9375rem;
    color: var(--color-secondary);
    text-align: center;
    font-style: italic;
}

.calc-cta {
    text-align: center;
    margin-top: 24px;
}

.btn-detail {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-detail:hover {
    background: var(--color-primary);
    color: #ffffff;
}

/* ========================================
   ANLAGE N GUIDE SECTION
   ======================================== */

.anlage-n-section {
    margin: 48px 0;
    padding: 32px;
    background: linear-gradient(135deg, #ebf8ff 0%, #f0fff4 100%);
    border-radius: 12px;
}

.anlage-n-section h2 {
    color: var(--color-dark);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 32px;
}

.anlage-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-item {
    display: flex;
    gap: 20px;
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
}

.step-content h3 {
    color: var(--color-dark);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--color-dark-gray);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.step-content p:last-child {
    margin-bottom: 0;
}

.step-content code {
    display: inline-block;
    background: var(--color-light);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--color-primary);
    border: 1px solid var(--color-light-gray);
}

.step-content strong {
    color: var(--color-primary);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .quick-facts-hero {
        padding: 32px 20px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .facts-grid-hero {
        grid-template-columns: 1fr;
    }

    .fact-value {
        font-size: 2rem;
    }

    .comparison-section h2,
    .prerequisites-section h2,
    .mistakes-section h2,
    .quick-calc-section h2,
    .anlage-n-section h2 {
        font-size: 1.5rem;
    }

    .checklist-grid,
    .mistakes-grid {
        grid-template-columns: 1fr;
    }

    .quick-calc-box {
        padding: 24px 20px;
    }

    .anlage-n-section {
        padding: 24px 20px;
    }

    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-number {
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .btn-calculate {
        width: 100%;
        justify-content: center;
    }

    .result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .result-value {
        font-size: 1.25rem;
    }

    .result-highlight .result-value {
        font-size: 1.5rem;
    }
}

