/* ============================================
   Homeoffice vs Pendlerpauschale Decision Guide
   Modern Decision Matrix & Comparison Styles
   ============================================ */

/* ============================================
   Decision Hero Section
   ============================================ */
.decision-hero {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    border-radius: 16px;
    padding: 48px 32px;
    margin-bottom: 48px;
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 51, 102, 0.2);
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-align: center;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 18px;
    text-align: center;
    margin: 0 0 40px 0;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Quick Decision Form
   ============================================ */
.quick-decision-form {
    max-width: 900px;
    margin: 0 auto;
}

.decision-question {
    margin-bottom: 40px;
}

.question-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.question-text {
    flex: 1;
}

/* Distance Options */
.distance-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.distance-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.distance-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.distance-btn.active {
    background: #d69e2e;
    border-color: #d69e2e;
    box-shadow: 0 4px 16px rgba(214, 158, 46, 0.4);
}

.option-icon {
    font-size: 32px;
}

.option-text {
    font-size: 16px;
    font-weight: 600;
}

/* Frequency Options */
.frequency-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.frequency-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.frequency-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.frequency-btn.active {
    background: #d69e2e;
    border-color: #d69e2e;
    box-shadow: 0 4px 16px rgba(214, 158, 46, 0.4);
}

.option-detail {
    font-size: 13px;
    opacity: 0.8;
}

/* Transport Options */
.transport-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.transport-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.transport-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.transport-btn.active {
    background: #d69e2e;
    border-color: #d69e2e;
    box-shadow: 0 4px 16px rgba(214, 158, 46, 0.4);
}

/* ============================================
   Quick Recommendation
   ============================================ */
.quick-recommendation {
    margin-top: 40px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    color: #1a202c;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recommendation-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.recommendation-icon {
    font-size: 48px;
}

.recommendation-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #003366;
}

.recommendation-subtitle {
    font-size: 16px;
    color: #4a5568;
    margin: 0;
}

.recommendation-body {
    margin-bottom: 24px;
}

.recommendation-text {
    font-size: 16px;
    line-height: 1.6;
    color: #2d3748;
    margin-bottom: 16px;
}

.recommendation-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.highlight-item {
    padding: 16px;
    background: #f7fafc;
    border-left: 4px solid #d69e2e;
    border-radius: 8px;
}

.highlight-label {
    font-size: 13px;
    color: #718096;
    margin-bottom: 4px;
}

.highlight-value {
    font-size: 20px;
    font-weight: 700;
    color: #003366;
}

.recommendation-cta {
    text-align: center;
}

.btn-detailed {
    display: inline-block;
    padding: 14px 32px;
    background: #003366;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-detailed:hover {
    background: #004080;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 51, 102, 0.3);
}

/* ============================================
   Detailed Calculator Section
   ============================================ */
.detailed-calculator-section {
    margin-bottom: 48px;
}

.section-description {
    text-align: center;
    color: #4a5568;
    margin-bottom: 32px;
}

.decision-calculator-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #003366;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.label-required {
    color: #e53e3e;
}

.form-input,
.form-select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.input-hint {
    font-size: 13px;
    color: #718096;
    margin-top: 6px;
}

.calculated-info {
    padding: 16px;
    background: #f7fafc;
    border-left: 4px solid #d69e2e;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-size: 15px;
    color: #4a5568;
    font-weight: 600;
}

.info-value {
    font-size: 18px;
    font-weight: 700;
    color: #003366;
}

/* ============================================
   Form Actions
   ============================================ */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-primary {
    background: #003366;
    color: #ffffff;
}

.btn-primary:hover {
    background: #004080;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 51, 102, 0.3);
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-icon {
    font-size: 20px;
}

/* ============================================
   Results Section
   ============================================ */
.results-section {
    margin-top: 48px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.results-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: #003366;
    margin-bottom: 32px;
}

/* Winner Card */
.winner-card {
    background: linear-gradient(135deg, #d69e2e 0%, #f6ad55 100%);
    border-radius: 16px;
    padding: 40px 32px;
    margin-bottom: 40px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(214, 158, 46, 0.3);
}

.winner-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.winner-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.winner-subtitle {
    font-size: 18px;
    opacity: 0.95;
    margin: 0 0 24px 0;
}

.winner-amount {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.winner-description {
    font-size: 16px;
    opacity: 0.9;
}

/* ============================================
   Comparison Matrix
   ============================================ */
.comparison-matrix {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    margin-bottom: 40px;
    align-items: start;
}

.matrix-column {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.matrix-column:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.matrix-homeoffice {
    border-color: #48bb78;
}

.matrix-commuting {
    border-color: #4299e1;
}

.matrix-header {
    padding: 24px;
    text-align: center;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.matrix-homeoffice .matrix-header {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
}

.matrix-commuting .matrix-header {
    background: linear-gradient(135deg, #bee3f8 0%, #90cdf4 100%);
}

.matrix-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.matrix-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #003366;
}

.matrix-body {
    padding: 24px;
}

.matrix-item {
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

.matrix-item:last-child {
    border-bottom: none;
}

.matrix-label {
    font-size: 14px;
    color: #718096;
    margin-bottom: 6px;
}

.matrix-value {
    font-size: 20px;
    font-weight: 700;
    color: #003366;
}

.matrix-value.highlight {
    color: #d69e2e;
    font-size: 24px;
}

/* Matrix Divider */
.matrix-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-badge {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 51, 102, 0.3);
}

/* ============================================
   Optimal Strategy
   ============================================ */
.optimal-strategy {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
    color: #ffffff;
}

.strategy-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.strategy-content {
    font-size: 16px;
    line-height: 1.8;
}

.strategy-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.strategy-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
}

.strategy-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #d69e2e;
    font-weight: 700;
    font-size: 18px;
}

/* ============================================
   Detailed Breakdown
   ============================================ */
.detailed-breakdown {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 40px;
}

.detailed-breakdown h3 {
    font-size: 22px;
    font-weight: 700;
    color: #003366;
    margin: 0 0 24px 0;
}

.breakdown-content {
    display: grid;
    gap: 20px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
}

.breakdown-label {
    font-size: 15px;
    color: #4a5568;
    font-weight: 600;
}

.breakdown-value {
    font-size: 18px;
    font-weight: 700;
    color: #003366;
}

.breakdown-row.total {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: #ffffff;
}

.breakdown-row.total .breakdown-label,
.breakdown-row.total .breakdown-value {
    color: #ffffff;
}

.breakdown-row.total .breakdown-value {
    font-size: 24px;
}

/* ============================================
   Action Recommendations
   ============================================ */
.action-recommendations {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 40px;
}

.action-recommendations h3 {
    font-size: 22px;
    font-weight: 700;
    color: #003366;
    margin: 0 0 24px 0;
}

.recommendations-list {
    display: grid;
    gap: 16px;
}

.recommendation-item {
    padding: 20px;
    background: #f7fafc;
    border-left: 4px solid #d69e2e;
    border-radius: 8px;
    display: flex;
    gap: 16px;
}

.rec-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.rec-content {
    flex: 1;
}

.rec-title {
    font-size: 16px;
    font-weight: 700;
    color: #003366;
    margin: 0 0 8px 0;
}

.rec-text {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   Decision Matrix Guide
   ============================================ */
.decision-matrix-guide {
    margin-bottom: 48px;
}

.matrix-table-wrapper {
    overflow-x: auto;
    margin-bottom: 24px;
}

.decision-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.decision-table thead {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: #ffffff;
}

.decision-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.decision-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.scenario-row:last-child td {
    border-bottom: none;
}

.scenario-row:hover {
    background: #f7fafc;
}

.scenario-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scenario-name strong {
    font-size: 15px;
    color: #003366;
}

.scenario-desc {
    font-size: 13px;
    color: #718096;
}

.recommendation {
    text-align: center;
}

.rec-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.rec-homeoffice {
    background: #c6f6d5;
    color: #22543d;
}

.rec-commuting {
    background: #bee3f8;
    color: #1a365d;
}

.rec-hybrid {
    background: #feebc8;
    color: #7c2d12;
}

.potential {
    font-weight: 700;
    color: #d69e2e;
}

/* Matrix Legend */
.matrix-legend {
    background: #f7fafc;
    border-radius: 12px;
    padding: 24px;
}

.matrix-legend h4 {
    font-size: 16px;
    font-weight: 700;
    color: #003366;
    margin: 0 0 16px 0;
}

.legend-items {
    display: grid;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.legend-text {
    font-size: 14px;
    color: #4a5568;
}

/* ============================================
   Comparison Rules Section
   ============================================ */
.comparison-rules-section {
    margin-bottom: 48px;
}

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

.rule-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rule-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.rule-homeoffice {
    border-color: #48bb78;
}

.rule-commuting {
    border-color: #4299e1;
}

.rule-combination {
    border-color: #d69e2e;
}

.rule-header {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.rule-homeoffice .rule-header {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
}

.rule-commuting .rule-header {
    background: linear-gradient(135deg, #bee3f8 0%, #90cdf4 100%);
}

.rule-combination .rule-header {
    background: linear-gradient(135deg, #feebc8 0%, #fbd38d 100%);
}

.rule-icon {
    font-size: 40px;
}

.rule-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #003366;
    margin: 0;
}

.rule-body {
    padding: 24px;
}

.rule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rule-list li {
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}

.rule-list li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #d69e2e;
    font-weight: 700;
    font-size: 18px;
}

.rule-list li strong {
    color: #003366;
}

/* ============================================
   Practical Examples Section
   ============================================ */
.practical-examples-section {
    margin-bottom: 48px;
}

.examples-container {
    display: grid;
    gap: 32px;
}

.example-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.example-header {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: #ffffff;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.example-icon {
    font-size: 36px;
}

.example-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.example-body {
    padding: 32px;
}

.example-scenario {
    margin-bottom: 24px;
}

.example-scenario h4 {
    font-size: 16px;
    font-weight: 700;
    color: #003366;
    margin: 0 0 12px 0;
}

.example-scenario ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.example-scenario li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
    color: #4a5568;
}

.example-scenario li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #d69e2e;
    font-weight: 700;
}

.example-calculation {
    background: #f7fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.example-calculation h4 {
    font-size: 16px;
    font-weight: 700;
    color: #003366;
    margin: 0 0 16px 0;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-row span:first-child {
    font-size: 14px;
    color: #4a5568;
}

.calc-value {
    font-size: 15px;
    color: #2d3748;
}

.calc-value strong {
    color: #003366;
    font-weight: 700;
}

.calc-total {
    background: #edf2f7;
    padding: 16px;
    margin: 12px -20px 0 -20px;
    border-top: 2px solid #cbd5e0;
}

.calc-total .calc-value strong {
    font-size: 20px;
    color: #d69e2e;
}

.calc-savings {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    padding: 16px;
    margin: 12px -20px -20px -20px;
}

.calc-savings span {
    color: #22543d;
}

.calc-savings .calc-value strong {
    font-size: 20px;
    color: #22543d;
}

.calc-note {
    background: #fef5e7;
    padding: 12px;
    margin: 8px -20px;
    border-left: 4px solid #f39c12;
}

.note-text {
    font-size: 13px;
    color: #7c2d12;
    display: block;
}

.example-conclusion {
    padding: 16px;
    background: linear-gradient(135deg, #d69e2e 0%, #f6ad55 100%);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    text-align: center;
}

.example-conclusion strong {
    font-weight: 700;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .decision-hero {
        padding: 32px 20px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .distance-options,
    .frequency-options,
    .transport-options {
        grid-template-columns: 1fr;
    }

    .comparison-matrix {
        grid-template-columns: 1fr;
    }

    .matrix-divider {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }

    .decision-table {
        font-size: 13px;
    }

    .decision-table th,
    .decision-table td {
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 20px;
    }

    .question-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .winner-amount {
        font-size: 36px;
    }

    .matrix-title {
        font-size: 18px;
    }

    .form-section {
        padding: 20px;
    }
}

