/* Freistellungsauftrag Specific Styles */

/* Country Notice */
.country-notice {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
    color: #dc2626;
}

/* Sources Grid */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    width: fit-content;
    margin: auto;
    gap: 1.5rem;
    margin-top: 2rem;
}

.source-card {
    background: white;
    border: 2px solid #14b8a6;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.source-card.official {
    border-color: #dc2626;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.source-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.source-card h3 {
    color: #14b8a6;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.source-card.official h3 {
    color: #dc2626;
}

.source-card p {
    margin: 0 0 1rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.source-card a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #14b8a6;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid #14b8a6;
    border-radius: 4px;
    transition: var(--transition);
}

.source-card.official a {
    color: #dc2626;
    border-color: #dc2626;
}

.source-card a:hover {
    background: #14b8a6;
    color: white;
    transform: translateX(2px);
}

.source-card.official a:hover {
    background: #dc2626;
    color: white;
}

.disclaimer {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.disclaimer h3 {
    color: #dc2626;
    margin: 0 0 1rem 0;
}

.disclaimer p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Interactive Freibetrag Calculator */
.interactive-freibetrag-calculator {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(13, 148, 136, 0.1) 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(20, 184, 166, 0.2);
    margin: 2rem 0;
}

.calculator-input-group {
    display: grid;
    grid-template-columns: repeat(2, 280px);
    width: fit-content;
    margin: auto;
    gap: 2rem;
    margin-bottom: 2rem;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.input-row label {
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.input-row input, .input-row select {
    padding: 0.75rem;
    border: 2px solid #14b8a6;
    border-radius: 4px;
    font-size: 1rem;
    min-width: 120px;
}

.input-row input:focus, .input-row select:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.calculator-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.result-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: var(--transition);
}

.result-card.without-freistellung {
    border-color: #ef4444;
}

.result-card.with-freistellung {
    border-color: #22c55e;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.result-card h4 {
    margin: 0 0 1rem 0;
    text-align: center;
    font-size: 1.1rem;
}

.result-card.without-freistellung h4 {
    color: #ef4444;
}

.result-card.with-freistellung h4 {
    color: #22c55e;
}

.result-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.result-line:last-child {
    border-bottom: none;
}

.result-line.tax {
    color: #ef4444;
    font-weight: 600;
}

.result-line.total {
    background: rgba(20, 184, 166, 0.1);
    padding: 0.75rem;
    border-radius: 4px;
    border-bottom: none;
    margin-top: 0.5rem;
    font-weight: 600;
    color: #0d9488;
}

.savings-display {
    grid-column: span 2;
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.savings-display h3, .savings-display p, .savings-display .savings-amount {
    margin: 0 0 1rem 0;
    color: white;
}

.savings-amount {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.savings-display p {
    margin: 0;
    opacity: 0.9;
}

/* Definition Cards */
.definition-cards {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    width: fit-content;
    margin: auto;
    gap: 2rem;
    margin-top: 2rem;
}

.definition-card {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(13, 148, 136, 0.1) 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #14b8a6;
    transition: var(--transition);
}

.definition-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-left-color: #0d9488;
}

.definition-card h3 {
    color: #14b8a6;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.definition-card ul {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
}

.definition-card li {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Process Flow */
.process-flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, rgba(13, 148, 136, 0.05) 100%);
    border-radius: var(--border-radius);
    border: 1px solid rgba(20, 184, 166, 0.2);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateX(10px);
    border-color: #14b8a6;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step:nth-child(even):hover {
    transform: translateX(-10px);
}

.step-number {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: #14b8a6;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.step-content p {
    margin: 0;
    color: var(--text-color);
}

/* Example Calculation */
.example-calculation {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, rgba(13, 148, 136, 0.05) 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(20, 184, 166, 0.2);
    margin-top: 2rem;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    width: fit-content;
    margin: auto;
    gap: 2rem;
    margin-top: 1.5rem;
}

.example-without, .example-with {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
    transition: var(--transition);
}

.example-without {
    border-color: #ef4444;
}

.example-with {
    border-color: #22c55e;
}

.example-without:hover, .example-with:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.example-without h4 {
    color: #ef4444;
    margin: 0 0 1rem 0;
}

.example-with h4 {
    color: #22c55e;
    margin: 0 0 1rem 0;
}

.calculation {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.calc-line.total {
    background: rgba(20, 184, 166, 0.1);
    padding: 0.75rem;
    border-radius: 4px;
    border-bottom: none;
    margin-top: 0.5rem;
    font-weight: 600;
}

.savings-highlight {
    text-align: center;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

/* Application Methods */
.application-methods {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    width: fit-content;
    margin: auto;
    gap: 2rem;
    margin-top: 2rem;
}

.method-card {
    background: white;
    border: 2px solid #14b8a6;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.method-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #0d9488;
}

.method-card h3 {
    color: #14b8a6;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.method-card ul {
    margin: 0;
    padding-left: 1.5rem;
}

.method-card li {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Strategy Scenarios */
.strategy-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.scenario-card {
    background: white;
    border: 2px solid #14b8a6;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.scenario-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #0d9488;
}

.scenario-card h3 {
    color: #14b8a6;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.pros h4 {
    color: #22c55e;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.cons h4 {
    color: #ef4444;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.pros ul, .cons ul {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.8rem;
}

.distribution-example {
    background: rgba(20, 184, 166, 0.1);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.broker-split {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

/* Optimization Tips */
.optimization-tips {
    margin-top: 2rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 280px);
    width: fit-content;
    margin: auto;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.optimization-tip {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(13, 148, 136, 0.1) 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #14b8a6;
    transition: var(--transition);
}

.optimization-tip:hover {
    transform: translateX(5px);
    border-left-color: #0d9488;
}

.optimization-tip h4 {
    color: #14b8a6;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

/* Family Strategies */
.family-strategies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.family-card {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, rgba(13, 148, 136, 0.05) 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(20, 184, 166, 0.2);
    transition: var(--transition);
}

.family-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #14b8a6;
}

.family-card h3 {
    color: #14b8a6;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.split-example {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(20, 184, 166, 0.2);
}

.split-example:last-child {
    border-bottom: none;
}

.child-depot-info ul {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
}

/* Error List */
.error-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.error-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-radius: var(--border-radius);
    border: 1px solid rgba(239, 68, 68, 0.2);
    transition: var(--transition);
}

.error-item:hover {
    transform: translateX(5px);
    border-color: #ef4444;
}

.error-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.error-content h3 {
    color: #ef4444;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.error-content p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.error-content p strong {
    color: var(--text-color);
}

/* Change Scenarios */
.change-scenarios {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    width: fit-content;
    margin: auto;
    gap: 2rem;
    margin-top: 2rem;
}

.change-card {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(13, 148, 136, 0.1) 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #14b8a6;
    transition: var(--transition);
}

.change-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-left-color: #0d9488;
}

.change-card h3 {
    color: #14b8a6;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.change-card ul {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
}

.change-card li {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .definition-cards,
    .example-grid,
    .application-methods,
    .strategy-scenarios,
    .tips-grid,
    .family-strategies,
    .change-scenarios {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .process-step:nth-child(even) {
        flex-direction: column;
    }
    
    .process-step:hover, 
    .process-step:nth-child(even):hover {
        transform: translateY(-3px);
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
} 