/* GENERIERT aus styles.css per tools/scope-css.js – nicht von Hand ändern */


#avd, #avd * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#avd {
    display: flex;
    min-height: 100vh;
    background-color: #f5f5f5;
    color: #333;
}


#avd .sidebar {
    width: 300px;
    background-color: #153854;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

#avd .logo {
    width: 240px;
    height: 90px;
    margin: 30px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 14px 22px;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
#avd .logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

#avd .menu {
    flex: 1;
    padding-top: 10px;
}

#avd .menu-item {
    padding: 15px 0 15px 50px;
    margin-bottom: 5px;
    color: #ddd;
    cursor: pointer;
    position: relative;
    font-size: 18px;
    transition: all 0.2s ease;
}

#avd .menu-item:hover { color: white; }

#avd .menu-item.active {
    color: white;
    font-weight: bold;
    background-color: #5C7488;
}

#avd .menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: #42810E;
}

#avd .menu-number {
    display: inline-block;
    width: 25px;
    color: #aaa;
    font-weight: normal;
}

#avd .menu-item.active .menu-number {
    color: white;
    font-weight: bold;
}

#avd .menu-item.menu-legal {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #2c5a7d;
    font-size: 16px;
    color: #aaa;
}

#avd .sidebar-footer {
    padding: 20px 30px;
    color: #aaa;
    font-size: 12px;
    border-top: 1px solid #2c5a7d;
}


#avd .main-container {
    flex: 1;
    margin-left: 300px;
    background-color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#avd .header {
    height: 70px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background-color: white;
}

#avd .header-title {
    color: #153854;
    font-size: 18px;
    font-weight: 600;
}

#avd .header-badge {
    background-color: #42810E;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

#avd .content-area {
    flex: 1;
    padding: 30px;
    width: 100%;
    max-width: 1700px;
}

#avd .content-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

#avd .content-section.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

#avd .section-title {
    color: #153854;
    font-size: 32px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #42810E;
}

#avd .section-content {
    line-height: 1.6;
    font-size: 17px;
    color: #444;
}

#avd .section-content p { margin-bottom: 18px; }
#avd .section-content ul { margin-left: 25px; margin-bottom: 20px; }
#avd .section-content li { margin-bottom: 10px; }


#avd .card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
}

#avd .card-green {
    background-color: #f0f8f0;
    border-left: 5px solid #42810E;
}

#avd .card-blue {
    background-color: #eef5ff;
    border: 1px solid #d0e0ff;
}

#avd .card-dark {
    background-color: #153854;
    color: white;
}

#avd .card-dark h3,
#avd .card-dark h2 { color: white; }

#avd .card-warning {
    background-color: #fff8e1;
    border: 1px solid #ffecb3;
}

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

#avd .card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 1100px) {
    #avd .card-grid-3 { grid-template-columns: 1fr; }
}

#avd .icon-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

#avd .icon-circle {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#avd .icon-circle svg { width: 26px; height: 26px; fill: white; }

#avd .icon-card h3 {
    color: #153854;
    margin-bottom: 8px;
    font-size: 17px;
}

#avd .icon-card p { line-height: 1.6; color: #555; font-size: 15px; }


#avd .kpi-card {
    background: linear-gradient(135deg, #153854, #2c5a7d);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

#avd .kpi-value {
    font-size: 30px;
    font-weight: 700;
    color: #ffd966;
    margin-bottom: 5px;
}

#avd .kpi-label {
    font-size: 13px;
    opacity: 0.9;
}


#avd .variant-table {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

#avd .variant {
    padding: 25px;
    border-right: 1px solid #eee;
}

#avd .variant:last-child { border-right: none; }

#avd .variant-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #42810E;
}

#avd .variant-header h3 {
    color: #153854;
    font-size: 22px;
    margin-bottom: 5px;
}

#avd .variant-header .tagline {
    font-size: 13px;
    color: #666;
}

#avd .variant ul { list-style: none; margin-left: 0; }
#avd .variant li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

#avd .variant li::before {
    content: '✓';
    color: #42810E;
    margin-right: 8px;
    font-weight: bold;
}

@media (max-width: 1100px) {
    #avd .variant-table { grid-template-columns: 1fr; }
    #avd .variant { border-right: none; border-bottom: 1px solid #eee; }
}


#avd .persona-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-top: 5px solid #42810E;
}

#avd .persona-card .persona-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

#avd .persona-card .persona-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #2c5a7d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

#avd .persona-card h3 { color: #153854; font-size: 18px; }
#avd .persona-card .persona-type { color: #42810E; font-size: 13px; font-weight: 600; }
#avd .persona-card p { color: #555; font-size: 14px; line-height: 1.5; }

#avd .persona-card .recommendation {
    margin-top: 15px;
    padding: 10px;
    background-color: #f0f8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #153854;
}


#avd .timeline {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
}

#avd .timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #42810E;
}

#avd .timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 15px;
}

#avd .timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #42810E;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #42810E;
}

#avd .timeline-item h4 { color: #153854; margin-bottom: 6px; font-size: 17px; }
#avd .timeline-item p { font-size: 14px; color: #555; line-height: 1.5; }


#avd .rechner-link-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f2e0 100%);
    border: 1px solid #c2e0a3;
    border-left: 5px solid #42810E;
    border-radius: 10px;
    text-decoration: none;
    color: #153854;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
#avd .rechner-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(66, 129, 14, 0.18);
    background: linear-gradient(135deg, #e8f2e0 0%, #dceacb 100%);
}
#avd .rechner-link-card .rechner-link-icon {
    font-size: 32px;
    flex-shrink: 0;
}
#avd .rechner-link-card .rechner-link-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
#avd .rechner-link-card .rechner-link-text strong {
    font-size: 17px;
    color: #153854;
}
#avd .rechner-link-card .rechner-link-text span {
    font-size: 14px;
    color: #555;
    line-height: 1.45;
}
#avd .rechner-link-card .rechner-link-arrow {
    font-size: 28px;
    color: #42810E;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
#avd .rechner-link-card:hover .rechner-link-arrow {
    transform: translateX(4px);
}


#avd .calculator-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    #avd .calculator-grid { grid-template-columns: 1fr; }
}

#avd .form-section {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
}

#avd .form-section h3 {
    color: #153854;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #42810E;
    font-size: 18px;
}

#avd .form-group { margin-bottom: 18px; }

#avd .form-group label {
    display: block;
    color: #153854;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

#avd .form-group input,
#avd .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    background-color: white;
}

#avd .form-group input:focus,
#avd .form-group select:focus {
    outline: none;
    border-color: #42810E;
    box-shadow: 0 0 0 3px rgba(66, 129, 14, 0.12);
}

#avd .slider-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

#avd .slider-group input[type=range] { flex: 1; }

#avd .slider-value {
    min-width: 80px;
    text-align: right;
    font-weight: 600;
    color: #42810E;
}

#avd .result-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

#avd .result-heading {
    color: #153854;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

#avd .result-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    #avd .result-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    #avd .result-comparison { grid-template-columns: 1fr !important; }
}

#avd .chart-container {
    position: relative;
    height: 340px;
    margin: 18px 0;
}

#avd .chart-container-small {
    position: relative;
    height: 260px;
    margin: 18px 0;
}

#avd .result-comparison {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 18px;
}

#avd .comparison-card {
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
}

#avd .comparison-card.winner {
    border-color: #42810E;
    background-color: #f0f8f0;
}

#avd .comparison-card .comp-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#avd .comparison-card .comp-value {
    font-size: 20px;
    font-weight: 700;
    color: #153854;
    margin-bottom: 4px;
}

#avd .comparison-card .comp-sub {
    font-size: 11px;
    color: #888;
}


#avd .form-section-v2 {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


#avd .hero-input {
    background: linear-gradient(135deg, #153854 0%, #1f4a6d 100%);
    color: #fff;
    border-radius: 14px;
    padding: 24px 24px 20px;
    box-shadow: 0 6px 18px rgba(21, 56, 84, 0.18);
}
#avd .hero-input .hero-label {
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 6px;
}
#avd .hero-value-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 18px;
}
#avd .hero-number {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    width: 160px;
    padding: 0;
    -moz-appearance: textfield;
}
#avd .hero-number::-webkit-outer-spin-button,
#avd .hero-number::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#avd .hero-number:focus { outline: none; }
#avd .hero-unit {
    font-size: 28px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}
#avd .hero-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-left: 10px;
}
#avd .hero-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
    outline: none;
}
#avd .hero-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px; height: 22px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    cursor: pointer;
}
#avd .hero-slider::-moz-range-thumb {
    width: 22px; height: 22px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    cursor: pointer;
}
#avd .hero-slider-ticks {
    position: relative;
    height: 14px;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-top: 6px;
}
#avd .hero-slider-ticks span {
    position: absolute;
    top: 0;
    white-space: nowrap;
    transform: translateX(-50%);
}
#avd .hero-slider-ticks span:first-child { transform: translateX(0); }
#avd .hero-slider-ticks span:last-child { transform: translateX(-100%); }


#avd .hero-optimize-btn {
    margin-top: 18px;
    width: 100%;
    padding: 12px 16px;
    background: #42810E;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s ease, transform 0.1s ease;
}
#avd .hero-optimize-btn:hover { background: #4f9612; }
#avd .hero-optimize-btn:active { transform: scale(0.99); }
#avd .hero-optimize-hint {
    margin-top: 10px;
    font-size: 12.5px;
    line-height: 1.45;
    color: rgba(255,255,255,0.85);
    min-height: 0;
}
#avd .hero-optimize-hint strong { color: #ffd966; font-weight: 700; }


#avd .input-card {
    background: #fff;
    border: 1px solid #e8ebee;
    border-radius: 12px;
    padding: 18px 20px 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
#avd .input-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
#avd .input-card-head .ic {
    width: 30px; height: 30px;
    flex: 0 0 30px;
    background: #e8f2e0;
    color: #42810E;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px;
}
#avd .input-card-head h4 {
    color: #153854;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}
#avd .input-card-body { display: flex; flex-direction: column; gap: 14px; }
#avd .input-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
#avd .input-grid-2 > .full-row { grid-column: 1 / -1; }
@media (max-width: 520px) {
    #avd .input-grid-2 { grid-template-columns: 1fr; }
}


#avd .input-field label {
    display: block;
    color: #556674;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    text-transform: uppercase;
}
#avd .label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}
#avd .label-row label { margin-bottom: 0; }
#avd .label-row .slider-value {
    min-width: auto;
    color: #153854;
    font-size: 15px;
    font-weight: 700;
}

#avd .input-field input[type="number"].plain {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d5dde4;
    border-radius: 8px;
    font-size: 15px;
    color: #153854;
    background: #fff;
    font-weight: 600;
    -moz-appearance: textfield;
}
#avd .input-field input[type="number"].plain::-webkit-outer-spin-button,
#avd .input-field input[type="number"].plain::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#avd .input-field input[type="number"].plain:focus {
    outline: none;
    border-color: #42810E;
    box-shadow: 0 0 0 3px rgba(66,129,14,0.12);
}

#avd .input-with-suffix {
    position: relative;
}
#avd .input-with-suffix input {
    width: 100%;
    padding: 10px 32px 10px 12px;
    border: 1px solid #d5dde4;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #153854;
    background: #fff;
    -moz-appearance: textfield;
}
#avd .input-with-suffix input::-webkit-outer-spin-button,
#avd .input-with-suffix input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#avd .input-with-suffix input:focus {
    outline: none;
    border-color: #42810E;
    box-shadow: 0 0 0 3px rgba(66,129,14,0.12);
}
#avd .input-with-suffix .suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #7a8894;
    font-weight: 600;
    font-size: 14px;
    pointer-events: none;
}


#avd .stepper {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    border: 1px solid #d5dde4;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
#avd .stepper:focus-within { border-color: #42810E; box-shadow: 0 0 0 3px rgba(66,129,14,0.12); }
#avd .stepper-btn {
    border: none;
    background: #f4f7f9;
    color: #153854;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    height: 100%;
    transition: background 0.15s ease;
}
#avd .stepper-btn:hover { background: #e7edf1; }
#avd .stepper-btn:active { background: #d9e1e7; }
#avd .stepper input {
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #153854;
    background: transparent;
    -moz-appearance: textfield;
    padding: 10px 0;
    width: 100%;
}
#avd .stepper input::-webkit-outer-spin-button,
#avd .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#avd .stepper input:focus { outline: none; }


#avd .kids-list { display: flex; flex-direction: column; gap: 8px; }
#avd .kid-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
}
#avd .kid-row input[type="date"] {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #d5dde4;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #153854;
    box-sizing: border-box;
}
#avd .kid-row input[type="date"]:focus {
    outline: none;
    border-color: #42810E;
    box-shadow: 0 0 0 3px rgba(66,129,14,0.12);
}
#avd .kid-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
#avd .kid-status.ok { background: #e6f3d8; color: #2f6a08; }
#avd .kid-status.no { background: #fde2e2; color: #8a2828; }
#avd .kid-remove {
    background: #f4f7f9;
    border: 1px solid #d5dde4;
    color: #7a8894;
    border-radius: 8px;
    width: 32px; height: 32px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}
#avd .kid-remove:hover { background: #fde2e2; color: #8a2828; border-color: #f3b6b6; }
#avd .kid-add {
    background: #f4f7f9;
    border: 1px dashed #d5dde4;
    color: #153854;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}
#avd .kid-add:hover:not(:disabled) { background: #e7edf1; border-color: #b8c5cf; }
#avd .kid-add:disabled { opacity: 0.5; cursor: not-allowed; }


#avd .input-field input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    background: #e1e7ec;
    border-radius: 3px;
    outline: none;
}
#avd .input-field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px; height: 20px;
    background: #42810E;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    cursor: pointer;
}
#avd .input-field input[type="range"]::-moz-range-thumb {
    width: 20px; height: 20px;
    background: #42810E;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}


#avd .segmented {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    border: 1px solid #d5dde4;
    border-radius: 8px;
    padding: 3px;
    background: #f4f7f9;
    gap: 3px;
}
#avd .segmented input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
#avd .segmented label {
    text-align: center;
    padding: 8px 6px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #556674;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    transition: background 0.15s ease, color 0.15s ease;
}
#avd .segmented label:hover { color: #153854; }
#avd .segmented input[type="radio"]:checked + label {
    background: #fff;
    color: #42810E;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}


#avd .advanced-section {
    background: #fff;
    border: 1px solid #e8ebee;
    border-radius: 12px;
    overflow: hidden;
}
#avd .advanced-section summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #153854;
    font-size: 14px;
    user-select: none;
}
#avd .advanced-section summary::-webkit-details-marker { display: none; }
#avd .advanced-section .chev {
    font-size: 14px;
    color: #7a8894;
    transition: transform 0.2s ease;
}
#avd .advanced-section[open] .chev { transform: rotate(180deg); }
#avd .advanced-section[open] summary { border-bottom: 1px solid #f0f0f0; }
#avd .advanced-body {
    padding: 16px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}


#avd .info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px; height: 15px;
    border-radius: 50%;
    background: #c8d4df;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    margin-left: 6px;
    cursor: help;
    position: relative;
    vertical-align: middle;
    transition: background 0.15s ease;
    user-select: none;
}
#avd .info-icon:hover,
#avd .info-icon:focus { background: #42810E; outline: none; }
#avd .info-icon::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%);
    background: #153854;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    font-family: inherit;
    text-transform: none;
    letter-spacing: 0;
    padding: 9px 11px;
    border-radius: 6px;
    width: max-content;
    max-width: 260px;
    text-align: left;
    white-space: normal;
    line-height: 1.45;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}
#avd .info-icon::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #153854;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    pointer-events: none;
    z-index: 100;
}
#avd .info-icon:hover::after,
#avd .info-icon:hover::before,
#avd .info-icon:focus::after,
#avd .info-icon:focus::before {
    opacity: 1;
    visibility: visible;
}

#avd .hero-input .info-icon {
    background: rgba(255,255,255,0.22);
    color: #fff;
}
#avd .hero-input .info-icon:hover,
#avd .hero-input .info-icon:focus { background: rgba(255,255,255,0.5); }


#avd .btn-block { width: 100%; padding: 14px 16px; font-size: 15px; }
#avd .auto-hint {
    margin: 0;
    text-align: center;
    font-size: 12px;
    color: #7a8894;
}
#avd .auto-hint .dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #42810E;
    margin-right: 6px;
    vertical-align: middle;
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}


#avd .solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 1100px) {
    #avd .solutions-grid { grid-template-columns: 1fr; }
}

#avd .solution-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

#avd .solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

#avd .solution-header {
    padding: 25px;
    color: white;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#avd .solution-header.dws { background: linear-gradient(135deg, #1e2c50, #314b8c); }
#avd .solution-header.vanguard { background: linear-gradient(135deg, #96151d, #c23030); }
#avd .solution-header.blackrock { background: linear-gradient(135deg, #000000, #434343); }
#avd .solution-header.allianz { background: linear-gradient(135deg, #003781, #2a6fc9); }

#avd .solution-header .brand {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

#avd .solution-header .brand-sub {
    font-size: 13px;
    opacity: 0.9;
}

#avd .solution-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#avd .solution-body h4 {
    color: #153854;
    font-size: 16px;
    margin-bottom: 10px;
}

#avd .solution-body ul { list-style: none; margin-left: 0; margin-bottom: 18px; flex: 1; }

#avd .solution-body li {
    padding: 6px 0;
    font-size: 14px;
    color: #555;
    position: relative;
    padding-left: 18px;
}

#avd .solution-body li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #42810E;
    font-weight: bold;
}

#avd .solution-link {
    display: inline-block;
    padding: 10px 18px;
    background-color: #42810E;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease;
}

#avd .solution-link:hover { background-color: #37690c; }


#avd .footer {
    height: 70px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background-color: white;
}

#avd .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#avd .btn-primary {
    background-color: #42810E;
    color: white;
}

#avd .btn-primary:hover { background-color: #37690c; }

#avd .btn-nav {
    background-color: #f0f0f0;
    color: #333;
    margin-left: 10px;
}

#avd .btn-nav:hover { background-color: #e0e0e0; }


#avd .btn-print {
    background-color: #153854;
    color: white;
    margin-right: 14px;
}

#avd .btn-print:hover { background-color: #1f4a6d; }
#avd .btn-print[disabled] { opacity: 0.6; cursor: progress; }

#avd .nav-buttons { display: flex; }


#avd .highlight-box {
    background: linear-gradient(135deg, #153854, #2c5a7d);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

#avd .highlight-box h3 { color: white; margin-bottom: 15px; }

#avd .pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 900px) { #avd .pros-cons { grid-template-columns: 1fr; } }

#avd .pros-list,
#avd .cons-list {
    padding: 20px;
    border-radius: 8px;
}

#avd .pros-list {
    background-color: #f0f8f0;
    border-left: 4px solid #42810E;
}

#avd .cons-list {
    background-color: #fff3f3;
    border-left: 4px solid #c0392b;
}

#avd .pros-list h4 { color: #42810E; margin-bottom: 12px; }
#avd .cons-list h4 { color: #c0392b; margin-bottom: 12px; }

#avd .pros-list ul,
#avd .cons-list ul { list-style: none; margin-left: 0; }
#avd .pros-list li,
#avd .cons-list li {
    padding: 5px 0;
    font-size: 14px;
}

#avd .pros-list li::before { content: '✓ '; color: #42810E; font-weight: bold; }
#avd .cons-list li::before { content: '✗ '; color: #c0392b; font-weight: bold; }


#avd .disclaimer {
    padding: 15px 20px;
    background-color: #fff8e1;
    border-radius: 8px;
    border: 1px solid #ffecb3;
    margin-top: 15px;
    font-size: 13px;
    color: #856404;
}

#avd .tab-row {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

#avd .tab-row label {
    padding: 8px 14px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: all 0.2s ease;
}

#avd .tab-row input[type=radio] { display: none; }
#avd .tab-row input[type=radio]:checked + span {
    display: inline-block;
}
#avd .tab-row label:has(input:checked) {
    background: #42810E;
    color: white;
    border-color: #42810E;
}

@media (max-width: 900px) {
    #avd .sidebar { width: 100%; position: relative; min-height: auto; }
    #avd .main-container { margin-left: 0; }
    #avd .logo { width: auto; }
    #avd .content-area { padding: 15px; }
    #avd .result-kpi-grid { grid-template-columns: 1fr; }
}


#avd .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(21, 56, 84, 0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#avd .modal-overlay.visible { display: flex; animation: fadeIn 0.2s ease; }
#avd .modal-content {
    background: #ffffff;
    border-radius: 14px;
    padding: 36px 36px 32px;
    max-width: 540px;
    width: 100%;
    box-shadow: 0 18px 50px rgba(0,0,0,0.28);
    text-align: center;
}
#avd .modal-content h2 {
    color: #153854;
    font-size: 26px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #42810E;
}
#avd .modal-content p {
    color: #444;
    line-height: 1.55;
    font-size: 15px;
    margin-bottom: 10px;
}
#avd .modal-content .modal-question {
    font-size: 18px;
    color: #153854;
    font-weight: 600;
    margin: 18px 0 22px;
}
#avd .modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}
#avd .modal-buttons .btn { width: 100%; padding: 14px 16px; font-size: 15px; }
#avd .btn-secondary {
    background-color: #5C7488;
    color: white;
}
#avd .btn-secondary:hover { background-color: #4a6173; }


#avd .modal-content-wide {
    max-width: 1000px;
    text-align: left;
    padding: 22px;
    position: relative;
    height: 80vh;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
#avd .modal-content-wide h2 { padding-right: 40px; }
#avd .modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0;
}
#avd .modal-close:hover { color: #153854; }

#avd #rl-app {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    text-align: left;
    color: #333;
}
#avd #rl-app * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
@keyframes rlFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
#avd #rl-app .section-content {
    line-height: 1.6;
    font-size: 18px;
    color: #444;
}
#avd #rl-app .form-container {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 5px solid #153854;
}
#avd #rl-app .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
#avd #rl-app .form-group {
    flex: 1;
    min-width: 250px;
}
#avd #rl-app .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #153854;
    font-size: 16px;
}
#avd #rl-app .form-label.required:after {
    content: " *";
    color: #d32f2f;
}
#avd #rl-app .form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}
#avd #rl-app .form-input:focus {
    outline: none;
    border-color: #42810E;
    box-shadow: 0 0 0 2px rgba(66, 129, 14, 0.1);
}
#avd #rl-app .form-hint {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}
#avd #rl-app .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
#avd #rl-app .btn-primary {
    background-color: #42810E;
    color: white;
}
#avd #rl-app .btn-primary:hover {
    background-color: #37690c;
}
#avd #rl-app .btn-secondary {
    background-color: #2c5a7d;
    color: white;
    margin-left: 0;
}
#avd #rl-app .btn-secondary:hover {
    background-color: #234a66;
}
#avd #rl-app .result-container {
    display: none;
    background-color: #f0f8f0;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
    border-left: 5px solid #42810E;
}
#avd #rl-app .result-title {
    color: #153854;
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
#avd #rl-app .result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
#avd #rl-app .result-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
#avd #rl-app .result-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}
#avd #rl-app .result-value {
    font-size: 20px;
    font-weight: 600;
    color: #153854;
}
#avd #rl-app .result-value.highlight {
    color: #42810E;
    font-size: 22px;
}
#avd #rl-app .result-value.warning {
    color: #d32f2f;
    font-size: 22px;
}
#avd #rl-app .chart-container {
    width: 100%;
    height: 400px;
    margin: 30px 0;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
#avd #rl-app .assessment-box {
    background-color: #eef5ff;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #d0e0ff;
}
#avd #rl-app .options-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

#avd #rl-app .rl-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}
#avd #rl-app .rl-modal-inner {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
}
#avd #rl-app .rl-close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}
#avd #rl-app .rl-close:hover {
    color: #333;
}
#avd #rl-app .renten-optionen {
    margin-top: 20px;
}
#avd #rl-app .renten-option {
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-left: 4px solid #42810E;
    border-radius: 4px;
}
#avd #rl-app .renten-option a {
    color: #153854;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}
#avd #rl-app .renten-option a:hover {
    color: #42810E;
    text-decoration: underline;
}
@media (max-width: 768px) {
    #avd #rl-app .form-row {
        flex-direction: column;
    }
    #avd #rl-app .form-group {
        min-width: 100%;
    }
}


#avd .riester-choice-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #eef5ff;
    border: 1px solid #d0e0ff;
    border-left: 4px solid #2c5a7d;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #153854;
    flex-wrap: wrap;
}
#avd .link-btn {
    background: none;
    border: none;
    color: #42810E;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
}
#avd .link-btn:hover { color: #153854; background: rgba(66,129,14,0.08); }


#avd .rechner-selector {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 22px 26px 20px;
    margin-bottom: 24px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
}
#avd .rechner-selector-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
#avd .rechner-selector-sub {
    font-size: 13px;
    color: #777;
    margin-bottom: 4px;
}
#avd .rechner-selector-q {
    font-size: 18px;
    font-weight: 700;
    color: #153854;
}
#avd .rechner-selector-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
#avd .rsel-btn {
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #5C7488;
    background: #5C7488;
    color: white;
    transition: all 0.18s ease;
}
#avd .rsel-btn:hover { background: #4a6173; border-color: #4a6173; }
#avd .rsel-btn.rsel-active {
    background: #42810E;
    border-color: #42810E;
}
#avd .rsel-btn.rsel-active:hover { background: #37690c; border-color: #37690c; }

#avd .btn-reset-calc {
    background: none;
    border: 1px solid #d0d0d0;
    border-radius: 7px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #5C7488;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.18s ease;
}
#avd .btn-reset-calc:hover {
    border-color: #c0392b;
    color: #c0392b;
    background: #fff3f3;
}




#avd .page-vergleich .kpi-value { font-size: 28px; }
#avd .page-vergleich .result-comparison { grid-template-columns: repeat(2, 1fr); }
#avd .page-vergleich .comparison-card { background: #f8f9fa; }
#avd .page-vergleich .comparison-card .comp-value { font-size: 22px; }


#avd .kpi-card.kpi-pav { background: linear-gradient(135deg, #2d5e0a, #42810E); }
#avd .kpi-card.kpi-riester { background: linear-gradient(135deg, #4a6173, #5C7488); }
#avd .kpi-card.kpi-pav .kpi-value { color: #fff; }
#avd .kpi-card.kpi-riester .kpi-value { color: #fff; }


#avd .hero-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}
#avd .hero-toggle .switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex: 0 0 44px;
}
#avd .hero-toggle .switch input {
    opacity: 0;
    width: 0; height: 0;
    position: absolute;
}
#avd .hero-toggle .slider-track {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255,255,255,0.25);
    border-radius: 24px;
    transition: background 0.2s ease;
}
#avd .hero-toggle .slider-track::before {
    content: '';
    position: absolute;
    height: 18px; width: 18px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}
#avd .hero-toggle input:checked + .slider-track { background: #42810E; }
#avd .hero-toggle input:checked + .slider-track::before { transform: translateX(20px); }
#avd .hero-toggle input:focus-visible + .slider-track { box-shadow: 0 0 0 3px rgba(255,255,255,0.45); }
#avd .hero-toggle-label { font-size: 13px; color: rgba(255,255,255,0.85); font-weight: 600; }


#avd .hero-slider:disabled,
#avd .hero-number:disabled { opacity: 0.4; cursor: not-allowed; }


#avd .compare-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 8px;
}
@media (max-width: 900px) { #avd .compare-kpi-grid { grid-template-columns: 1fr; } }

#avd .compare-column {
    border-radius: 10px;
    padding: 18px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
}
#avd .compare-column.pav {
    background: #f0f8f0;
    border-color: #c2e0a3;
}
#avd .compare-column.riester {
    background: #fff8e1;
    border-color: #ffe7a3;
}
#avd .compare-column h4 {
    font-size: 16px;
    color: #153854;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
#avd .compare-column h4 .badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
#avd .compare-column.pav h4 .badge { background: #42810E; color: #fff; }
#avd .compare-column.riester h4 .badge { background: #5C7488; color: #fff; }

#avd .compare-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 14px;
}
#avd .compare-row:last-child { border-bottom: none; }
#avd .compare-row .label { color: #555; }
#avd .compare-row .val {
    color: #153854;
    font-weight: 700;
}
#avd .compare-row.highlight .val { color: #42810E; font-size: 16px; }
#avd .compare-column.riester .compare-row.highlight .val { color: #5C7488; }


#avd .pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}
@media (max-width: 900px) { #avd .pros-cons-grid { grid-template-columns: 1fr; } }

#avd .product-box {
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
#avd .product-box .product-head {
    padding: 18px 22px;
    color: white;
}
#avd .product-box .product-head h3 {
    font-size: 19px;
    margin-bottom: 4px;
}
#avd .product-box .product-head p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}
#avd .product-box.pav .product-head { background: linear-gradient(135deg, #2d5e0a, #42810E); }
#avd .product-box.riester .product-head { background: linear-gradient(135deg, #4a6173, #5C7488); }

#avd .product-body { padding: 18px 22px; }
#avd .product-body h5 {
    color: #153854;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 12px 0 6px;
}
#avd .product-body ul { list-style: none; margin: 0; padding: 0; }
#avd .product-body li {
    padding: 6px 0;
    font-size: 14px;
    color: #555;
    position: relative;
    padding-left: 22px;
}
#avd .product-body li.pro::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #42810E;
    font-weight: 700;
}
#avd .product-body li.con::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #c0392b;
    font-weight: 700;
}


#avd .feature-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
#avd .feature-table th,
#avd .feature-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}
#avd .feature-table th {
    background: #153854;
    color: white;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}
#avd .feature-table th.pav { background: #42810E; }
#avd .feature-table th.riester { background: #5C7488; }
#avd .feature-table td.feature-name {
    font-weight: 600;
    color: #153854;
    background: #f8f9fa;
    width: 28%;
}
#avd .feature-table tr:last-child td { border-bottom: none; }


body.nur-foerderrechner #avd .sidebar { display: none; }
body.nur-foerderrechner #avd .main-container { margin-left: 0; }
body.nur-foerderrechner #avd .footer .nav-buttons { display: none; }


/* ===== Anpassungen für die Einbettung ins CMS-Layout (kein eigenes Vollbild) ===== */
#avd { min-height: 0; align-items: stretch; width: 100%; }
#avd .sidebar {
    position: relative; left: auto; top: auto;
    flex: 0 0 clamp(190px, 20%, 250px);
    width: clamp(190px, 20%, 250px);
    min-height: 0;
}
#avd .sidebar .menu { position: sticky; top: 10px; }
#avd .menu-item { padding-left: 28px; font-size: 16px; }
#avd .menu-item.menu-legal { font-size: 14px; }
#avd .main-container { margin-left: 0; min-width: 0; min-height: 0; }
body.nur-foerderrechner #avd .main-container { margin-left: 0; }
@media (max-width: 900px) {
    #avd { flex-direction: column; }
    #avd .sidebar { flex: none; width: 100%; }
    #avd .sidebar .menu { position: static; }
}
