/* Finanzmanager24 Theme CSS – Optimiert für iframe-Einbettung */

/* Global Styles */
:root {
    --primary-color: #0088cc;
    --secondary-color: #f8f9fa;
    --accent-color: #ffc107;
    --text-color: #333;
    --light-text: #6c757d;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --border-radius: 0.25rem;
    --transition: all 0.3s ease;
}

/* Body transparent – kein eigener Hintergrund, da im iframe eingebettet */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: transparent;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.5rem 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* h1 wird nicht mehr verwendet (Header entfernt) */
h1 {
    display: none;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.subtitle {
    display: none; /* Untertitel entfernt, da Header entfernt */
}

/* Header & Footer – ausgeblendet */
header {
    display: none;
}

footer {
    display: none;
}

/* Calculator Container */
.calculator-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.calculator-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-top: 3px solid var(--primary-color);
}

.results-container {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-top: 3px solid var(--primary-color);
}

.results-container.hidden {
    display: none;
}

/* Form Styling */
.calculator-form .form-section {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
}

.form-group input[type="number"],
.form-group input[type="text"] {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    box-sizing: border-box;
}

.form-group input[type="number"]:focus,
.form-group input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 136, 204, 0.25);
}

.input-with-slider {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Slider in Primärfarbe */
.input-with-slider input[type="range"] {
    width: 100%;
    margin-top: 0.5rem;
    accent-color: var(--primary-color);
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group input {
    flex: 1;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--light-text);
}

.info-text {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--light-text);
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-check-input {
    margin-right: 0.5rem;
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
}

.form-check-label {
    font-weight: normal;
}

/* Interest Scenarios */
.interest-scenarios {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.interest-scenario {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}

.interest-scenario input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--primary-color);
}

/* Comparison Costs */
.comparison-costs {
    background-color: #fff8f8;
    border-left: 3px solid #dc3545;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comparison-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.comparison-value {
    color: var(--danger-color);
    font-weight: 700;
}

/* Button Styling */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #006fa8;
    border-color: #006fa8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,136,204,0.3);
}

.btn-secondary {
    color: var(--text-color);
    background-color: var(--secondary-color);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Strategy Cards */
.strategy-comparison {
    margin-bottom: 2rem;
}

.strategy-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.strategy-card {
    flex: 1;
    min-width: 130px;
    padding: 1rem;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    border-top: 3px solid #ccc;
}

.strategy-card h4 {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #555;
}

.strategy-card.highlight {
    background-color: var(--primary-color);
    color: white;
    border-top-color: #006fa8;
}

.strategy-card.highlight h4 {
    color: white;
}

.strategy-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

/* Results Styling */
.result-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-item {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    text-align: center;
}

.result-item.highlight {
    background-color: var(--primary-color);
    color: white;
}

.result-item.highlight h3 {
    color: white;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.result-visualization,
.result-capital,
.cost-comparison {
    margin-bottom: 2.5rem;
}

.chart-container {
    height: 300px;
    margin-bottom: 1.5rem;
}

/* Tabs Styling */
.tabs {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.tab {
    padding: 0.65rem 1.25rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Savings Highlight */
.savings-highlight {
    text-align: center;
    padding: 1.5rem;
    background-color: #f0fff4;
    border: 1px solid #c3e6cb;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
}

.savings-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--success-color);
    margin: 0.5rem 0;
}

.savings-percent {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--success-color);
}

/* Table Styling */
.result-details-centered {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 2rem auto;
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-top: 3px solid var(--primary-color);
    overflow-x: auto;
}

.result-details-centered h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 0.9rem;
}

.result-table th,
.result-table td {
    padding: 0.6rem 0.75rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.result-table th {
    background-color: #0088cc;
    color: white;
    font-weight: 600;
    text-align: center;
}

.result-table th:first-child,
.result-table td:first-child {
    text-align: left;
}

.result-table tr:nth-child(even) td {
    background-color: #f0f7fb;
}

.result-table tr:hover td {
    background-color: #e0f0fa;
}

.result-table .total-row td {
    font-weight: 700;
    background-color: #d0e8f5;
    border-top: 2px solid var(--primary-color);
}

/* Info Section – ausgeblendet (Inhalte auf WordPress-Seite) */
.info-section {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .calculator-container {
        flex-direction: column;
    }
    
    .strategy-cards {
        flex-direction: column;
    }
    
    .tabs {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .tab {
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        margin-bottom: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .tab.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
    
    .result-table {
        display: block;
        overflow-x: auto;
    }

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

    .btn {
        width: 100%;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}
