/* generiert aus rechner/tools/kapitalanlage-rechner.html – nicht direkt bearbeiten */
.fm24-tool h1, .fm24-tool h2, .fm24-tool h3, .fm24-tool h4, .fm24-tool h5, .fm24-tool h6, .fm24-tool p, .fm24-tool li, .fm24-tool label, .fm24-tool td, .fm24-tool th, .fm24-tool small, .fm24-tool strong { color: inherit; letter-spacing: normal; }
.fm24-tool h1, .fm24-tool h2, .fm24-tool h3, .fm24-tool h4 { line-height: 1.3; }

        .fm24-tool, .fm24-tool * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .fm24-tool {
            --primary: #0088CC;
            --secondary: #e36159;
            --tertiary: #2BAAB1;
            --light: #FFFFFF;
            --muted: #F5F5F5;
            --border: #E0E0E0;
            --text: #333333;
            --text-light: #666666;
        }

        .fm24-tool {
            font-family: Poppins, Arial, sans-serif;
            background-color: var(--light);
            color: var(--text);
            line-height: 1.6;
            font-size: 16px;
        }

        .fm24-tool .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header */
        .fm24-tool .header {
            background: linear-gradient(135deg, var(--primary) 0%, #0066AA 100%);
            color: white;
            padding: 30px 20px;
            margin-bottom: 40px;
        }

        .fm24-tool .header h1 {
            font-size: 28px;
            margin-bottom: 5px;
            font-weight: 700;
        }

        .fm24-tool .header p {
            font-size: 14px;
            opacity: 0.95;
        }

        /* Main Layout */
        .fm24-tool .main-content {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 30px;
            padding: 0 20px 40px;
        }

        @media (max-width: 768px) {
            .fm24-tool .main-content {
                grid-template-columns: 1fr;
            }
        }

        /* Sidebar */
        .fm24-tool .sidebar {
            position: sticky;
            top: 20px;
            height: fit-content;
        }

        .fm24-tool .progress-card {
            background: white;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .fm24-tool .progress-card h3 {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-light);
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .fm24-tool .progress-bar {
            height: 6px;
            background: var(--muted);
            border-radius: 3px;
            overflow: hidden;
            margin-bottom: 20px;
        }

        .fm24-tool .progress-fill {
            height: 100%;
            background: var(--primary);
            transition: width 0.3s ease;
        }

        .fm24-tool .steps {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .fm24-tool .step {
            padding: 12px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            border-left: 3px solid transparent;
        }

        .fm24-tool .step.active {
            background: var(--primary);
            color: white;
            border-left-color: var(--primary);
        }

        .fm24-tool .step.completed {
            background: #E8F5E9;
            color: #2E7D32;
            border-left-color: #2E7D32;
        }

        .fm24-tool .step.inactive {
            background: var(--muted);
            color: var(--text-light);
        }

        .fm24-tool .step-label {
            font-size: 12px;
            opacity: 0.8;
            margin-top: 4px;
        }

        /* Form Card */
        .fm24-tool .form-card {
            background: white;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 40px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .fm24-tool .form-card h2 {
            font-size: 24px;
            margin-bottom: 10px;
            color: var(--text);
            font-weight: 700;
        }

        .fm24-tool .form-card > p {
            color: var(--text-light);
            margin-bottom: 30px;
            font-size: 14px;
        }

        /* Form Grid */
        .fm24-tool .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
            margin-bottom: 30px;
        }

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

        .fm24-tool .form-group label {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--text);
        }

        .fm24-tool .form-group input,
        .fm24-tool .form-group select,
        .fm24-tool .form-group textarea {
            padding: 10px 12px;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-family: Poppins, Arial, sans-serif;
            font-size: 14px;
            transition: border-color 0.2s ease;
        }

        .fm24-tool .form-group input:focus,
        .fm24-tool .form-group select:focus,
        .fm24-tool .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
        }

        .fm24-tool .form-group textarea {
            resize: vertical;
            min-height: 100px;
        }

        /* Summary Box */
        .fm24-tool .summary-box {
            background: var(--muted);
            border-left: 4px solid var(--primary);
            padding: 15px;
            border-radius: 4px;
            margin-bottom: 30px;
        }

        .fm24-tool .summary-box p {
            font-size: 13px;
            color: var(--text-light);
            margin-bottom: 8px;
        }

        .fm24-tool .summary-box .value {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary);
            font-family: 'Courier New', monospace;
        }

        /* Radio Group */
        .fm24-tool .radio-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .fm24-tool .radio-option {
            display: flex;
            align-items: flex-start;
            padding: 12px;
            border: 1px solid var(--border);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .fm24-tool .radio-option:hover {
            border-color: var(--primary);
            background: rgba(0, 136, 204, 0.02);
        }

        .fm24-tool .radio-option input[type="radio"] {
            margin-top: 4px;
            margin-right: 12px;
            cursor: pointer;
        }

        .fm24-tool .radio-label {
            flex: 1;
        }

        .fm24-tool .radio-label strong {
            display: block;
            font-weight: 600;
            margin-bottom: 4px;
            color: var(--text);
        }

        .fm24-tool .radio-label small {
            display: block;
            font-size: 12px;
            color: var(--text-light);
        }

        /* Info Box */
        .fm24-tool .info-box {
            background: #E3F2FD;
            border-left: 4px solid var(--primary);
            padding: 15px;
            border-radius: 4px;
            margin-top: 30px;
            font-size: 13px;
            color: #01579B;
        }

        .fm24-tool .info-box strong {
            display: block;
            margin-bottom: 5px;
        }

        /* Navigation */
        .fm24-tool .form-nav {
            display: flex;
            gap: 12px;
            margin-top: 40px;
            padding-top: 30px;
            border-top: 1px solid var(--border);
        }

        .fm24-tool .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 6px;
            font-family: Poppins, Arial, sans-serif;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .fm24-tool .btn-primary {
            background: var(--primary);
            color: white;
        }

        .fm24-tool .btn-primary:hover:not(:disabled) {
            background: #0066AA;
            box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
        }

        .fm24-tool .btn-outline {
            background: white;
            color: var(--text);
            border: 1px solid var(--border);
        }

        .fm24-tool .btn-outline:hover:not(:disabled) {
            background: var(--muted);
        }

        .fm24-tool .btn-yellow {
            background: #FFC107;
            color: #333;
            border: 1px solid #FFB300;
        }

        .fm24-tool .btn-yellow:hover:not(:disabled) {
            background: #FFB300;
        }

        .fm24-tool .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .fm24-tool .btn-ml-auto {
            margin-left: auto;
        }

        /* Results Page */
        .fm24-tool .results-page {
            display: none;
        }

        .fm24-tool .results-page.active {
            display: block;
        }

        .fm24-tool .result-header {
            margin-bottom: 40px;
        }

        .fm24-tool .result-header h2 {
            font-size: 32px;
            margin-bottom: 20px;
            color: var(--text);
            font-weight: 700;
        }

        .fm24-tool .classification {
            margin-bottom: 30px;
        }

        .fm24-tool .classification-label {
            font-size: 12px;
            color: var(--secondary);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .fm24-tool .classification-value {
            font-size: 28px;
            color: var(--secondary);
            font-weight: 700;
        }

        .fm24-tool .results-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
            background: var(--muted);
            padding: 30px;
            border-radius: 8px;
        }

        .fm24-tool .result-card {
            text-align: center;
        }

        .fm24-tool .result-card .label {
            font-size: 12px;
            color: var(--text-light);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }

        .fm24-tool .result-card .value {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
            font-family: 'Courier New', monospace;
        }

        /* Charts */
        .fm24-tool .chart-container {
            background: white;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .fm24-tool .chart-container h3 {
            font-size: 16px;
            margin-bottom: 20px;
            color: var(--text);
            font-weight: 600;
        }

        .fm24-tool .chart-wrapper {
            position: relative;
            height: 300px;
            margin-bottom: 20px;
        }

        .fm24-tool .chart-summary {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-top: 20px;
        }

        .fm24-tool .chart-summary-item {
            text-align: center;
        }

        .fm24-tool .chart-summary-label {
            font-size: 12px;
            color: var(--text-light);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }

        .fm24-tool .chart-summary-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--primary);
            font-family: 'Courier New', monospace;
        }

        /* Detailed Calculation */
        .fm24-tool .calculation-table {
            background: white;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 30px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            margin-bottom: 30px;
        }

        .fm24-tool .calculation-table h3 {
            font-size: 16px;
            margin-bottom: 20px;
            color: var(--text);
            font-weight: 600;
        }

        .fm24-tool .calculation-table table {
            width: 100%;
            border-collapse: collapse;
        }

        .fm24-tool .calculation-table tr {
            border-bottom: 1px solid var(--border);
        }

        .fm24-tool .calculation-table tr:last-child {
            border-bottom: none;
        }

        .fm24-tool .calculation-table td {
            padding: 12px 0;
            font-size: 14px;
        }

        .fm24-tool .calculation-table td:first-child {
            color: var(--text);
        }

        .fm24-tool .calculation-table td:last-child {
            text-align: right;
            color: var(--primary);
            font-weight: 600;
            font-family: 'Courier New', monospace;
        }

        .fm24-tool .calculation-table tr:nth-child(odd) {
            background: var(--muted);
        }

        .fm24-tool .calculation-table tr:nth-child(odd) td {
            padding: 12px 12px;
        }

        /* Explanation Section */
        .fm24-tool .explanation-section {
            background: #F0F8FF;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .fm24-tool .explanation-section h3 {
            font-size: 16px;
            margin-bottom: 20px;
            color: var(--primary);
            font-weight: 600;
        }

        .fm24-tool .explanation-item {
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border);
        }

        .fm24-tool .explanation-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .fm24-tool .explanation-item strong {
            color: var(--primary);
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
        }

        .fm24-tool .explanation-item p {
            font-size: 13px;
            color: var(--text-light);
            line-height: 1.6;
            margin-bottom: 8px;
        }

        /* Action Buttons */
        .fm24-tool .action-buttons {
            display: flex;
            gap: 12px;
            margin-top: 40px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .fm24-tool .disclaimer {
            background: var(--muted);
            border: 1px solid var(--border);
            padding: 15px;
            border-radius: 6px;
            font-size: 12px;
            color: var(--text-light);
            margin-top: 30px;
            line-height: 1.6;
        }

        /* Print Styles */
        @media print {
            .fm24-tool, .fm24-tool * {
                margin: 0;
                padding: 0;
            }

            .fm24-tool {
                background: white;
                margin: 0;
                padding: 20px;
                font-size: 11pt;
            }

            .fm24-tool .container {
                max-width: 100%;
                margin: 0;
                padding: 0;
            }

            .fm24-tool .header {
                display: block !important;
                margin-bottom: 30px;
                page-break-after: avoid;
            }

            .fm24-tool .main-content {
                display: block !important;
                grid-template-columns: 1fr !important;
            }

            .fm24-tool .sidebar {
                display: none !important;
            }

            .fm24-tool .form-nav {
                display: none !important;
            }

            .fm24-tool .action-buttons {
                display: none !important;
            }

            .fm24-tool .results-page {
                display: block !important;
            }

            .fm24-tool .form-card {
                box-shadow: none;
                border: none;
                padding: 0;
                margin-bottom: 20px;
                page-break-inside: avoid;
            }

            .fm24-tool .result-header {
                page-break-inside: avoid;
            }

            .fm24-tool .results-grid {
                page-break-inside: avoid;
            }

            .fm24-tool .chart-container {
                page-break-inside: avoid;
                margin-bottom: 20px;
            }

            .fm24-tool .calculation-table {
                page-break-inside: avoid;
                margin-bottom: 20px;
            }

            .fm24-tool .explanation-section {
                page-break-inside: avoid;
                margin-bottom: 20px;
            }

            .fm24-tool .disclaimer {
                page-break-inside: avoid;
            }

            .fm24-tool h2 {
                page-break-after: avoid;
            }

            .fm24-tool h3 {
                page-break-after: avoid;
            }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .fm24-tool .form-card {
                padding: 20px;
            }

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

            .fm24-tool .chart-summary {
                grid-template-columns: 1fr;
            }
        }
    
/* Anpassung an finanzmanager24.de */
.fm24-tool { font-family: inherit; color: var(--fm24-text, #4f5b66); line-height: 1.6; font-size: 16px; border-radius: 12px; }
.fm24-tool .header, .fm24-tool header.top { display: none !important; }
.fm24-tool .container, .fm24-tool .app { max-width: none; padding-left: 0; padding-right: 0; }
.fm24-tool h1, .fm24-tool h2, .fm24-tool h3 { text-transform: none; }
.fm24-tool input, .fm24-tool select, .fm24-tool textarea, .fm24-tool button { font-family: inherit; }
.fm24-tool a { text-decoration: underline; }
.fm24-tool .btn, .fm24-tool button { box-shadow: none; }
@media (max-width: 575px) { .fm24-tool .form-card, .fm24-tool .results-card { padding: 20px; } .fm24-tool div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; } .fm24-tool input, .fm24-tool select { max-width: 100%; } }
.fm24-tool .sidebar { top: 110px; }
.fm24-tool output { font-family: inherit; }
