/* =====================================================
   MA Bußgeldrechner – Stylesheet
   Farben: Dunkelblau #003A74 | Gelb #FAD130 | Grau #333333
   ===================================================== */

#ma-bgr-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333333;
    max-width: 1100px;
    margin: 0 auto;
    line-height: 1.7;
}

#ma-bgr-wrap h2 {
    color: #003A74;
    font-size: 1.6em;
    margin-top: 2em;
    margin-bottom: 0.5em;
    border-bottom: 3px solid #FAD130;
    padding-bottom: 0.3em;
}

#ma-bgr-wrap h3 {
    color: #003A74;
    font-size: 1.25em;
    margin-top: 1.5em;
}

#ma-bgr-wrap h4 {
    color: #003A74;
    font-size: 1.05em;
    margin-top: 1.2em;
    margin-bottom: 0.4em;
}

#ma-bgr-wrap p,
#ma-bgr-wrap li {
    font-size: 1em;
    margin-bottom: 0.8em;
}

#ma-bgr-wrap ul,
#ma-bgr-wrap ol {
    padding-left: 1.5em;
}

/* ===== INTRO ===== */
.ma-bgr-intro {
    background: #f0f6ff;
    border-left: 5px solid #003A74;
    padding: 18px 22px;
    border-radius: 4px;
    margin-bottom: 2em;
}

.ma-bgr-lead {
    font-size: 1.1em !important;
    margin: 0 !important;
    color: #1a1a2e;
}

/* ===== CALCULATOR BOX ===== */
.ma-bgr-calculator-box {
    background: #003A74;
    color: #fff;
    border-radius: 10px;
    padding: 32px 36px;
    margin-bottom: 2.5em;
    box-shadow: 0 6px 24px rgba(0, 58, 116, 0.25);
}

.ma-bgr-calc-title {
    color: #FAD130 !important;
    font-size: 1.8em !important;
    border-bottom: 2px solid rgba(250, 209, 48, 0.4) !important;
    margin-top: 0 !important;
    padding-bottom: 10px;
}

.ma-bgr-calc-subtitle {
    color: #cce0ff;
    margin-bottom: 1.5em;
    font-size: 0.95em !important;
}

/* ===== FORM ===== */
.ma-bgr-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ma-bgr-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ma-bgr-form-row label {
    color: #FAD130;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
}

.ma-bgr-form-row select {
    padding: 12px 16px;
    border-radius: 6px;
    border: 2px solid transparent;
    background: #fff;
    color: #333;
    font-size: 1em;
    width: 100%;
    max-width: 600px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.ma-bgr-form-row select:focus {
    outline: none;
    border-color: #FAD130;
}

.ma-bgr-form-row input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.ma-bgr-form-row label {
    display: flex;
    align-items: center;
}

#ma-bgr-calc-btn {
    display: inline-block;
    background: #FAD130;
    color: #003A74;
    border: none;
    padding: 14px 36px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 8px;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#ma-bgr-calc-btn:hover {
    background: #e8bc00;
    transform: translateY(-1px);
}

#ma-bgr-calc-btn:active {
    transform: translateY(0);
}

/* ===== RESULT BOX ===== */
#ma-bgr-result {
    margin-top: 24px;
    animation: ma-bgr-fadein 0.3s ease;
}

@keyframes ma-bgr-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ma-bgr-result-inner {
    background: rgba(255,255,255,0.08);
    border: 2px solid #FAD130;
    border-radius: 8px;
    padding: 24px;
}

.ma-bgr-result-inner h3 {
    color: #FAD130 !important;
    margin-top: 0 !important;
    font-size: 1.2em !important;
    margin-bottom: 16px;
}

.ma-bgr-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.ma-bgr-result-item {
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ma-bgr-result-label {
    font-size: 0.82em;
    color: #a8c4e0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ma-bgr-result-value {
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
}

.ma-bgr-result-note {
    color: #cce0ff;
    font-size: 0.9em;
    line-height: 1.5;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 12px;
    margin-top: 4px;
}

.ma-bgr-rental-warn {
    background: rgba(250, 209, 48, 0.12);
    border: 1px solid #FAD130;
    border-radius: 6px;
    padding: 14px;
    margin-top: 14px;
    color: #FAD130;
    font-size: 0.9em;
    line-height: 1.5;
}

/* ===== SECTION ===== */
.ma-bgr-section {
    margin-bottom: 2.5em;
}

/* ===== TABS ===== */
.ma-bgr-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
    border-bottom: 3px solid #003A74;
    padding-bottom: 0;
}

.ma-bgr-tab {
    background: #e8eef5;
    border: none;
    padding: 10px 18px;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    color: #003A74;
    transition: background 0.2s, color 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

.ma-bgr-tab:hover {
    background: #d0dce8;
}

.ma-bgr-tab.active {
    background: #003A74;
    color: #FAD130;
    border-bottom: 3px solid #003A74;
}

.ma-bgr-tab-content {
    display: none;
    background: #fff;
    border: 1px solid #d0dce8;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 28px;
}

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

.ma-bgr-tab-content h3 {
    margin-top: 0 !important;
}

/* ===== TABLES ===== */
.ma-bgr-table-wrap {
    overflow-x: auto;
    margin-bottom: 1.5em;
}

.ma-bgr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93em;
    min-width: 480px;
}

.ma-bgr-table thead {
    background: #003A74;
    color: #fff;
}

.ma-bgr-table thead th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 0.02em;
}

.ma-bgr-table tbody tr {
    border-bottom: 1px solid #e0e8f0;
    transition: background 0.15s;
}

.ma-bgr-table tbody tr:hover {
    background: #f0f6ff;
}

.ma-bgr-table tbody td {
    padding: 11px 14px;
    vertical-align: middle;
}

.ma-bgr-table tbody tr:nth-child(even) {
    background: #f7f9fc;
}

.ma-bgr-table tbody tr:nth-child(even):hover {
    background: #eef3fa;
}

/* Row severity colors */
.ma-bgr-row-warn {
    background: #fffbea !important;
}
.ma-bgr-row-warn:hover {
    background: #fff5c0 !important;
}
.ma-bgr-row-danger {
    background: #fff0f0 !important;
}
.ma-bgr-row-danger:hover {
    background: #ffe0e0 !important;
}

/* ===== HINT BOXES ===== */
.ma-bgr-hint {
    background: #f0f6ff;
    border-left: 4px solid #003A74;
    padding: 12px 16px;
    border-radius: 0 4px 4px 0;
    font-size: 0.9em !important;
    color: #1a3a60;
}

.ma-bgr-alert {
    background: #fff0f0;
    border-left: 4px solid #cc0000;
    padding: 16px 18px;
    border-radius: 0 4px 4px 0;
    margin: 1.5em 0;
    font-size: 0.95em;
    color: #5a0000;
}

/* ===== CONTENT SECTION ===== */
.ma-bgr-content {
    margin-top: 2em;
}

/* ===== FAQ ===== */
.ma-bgr-faq {
    margin: 1.5em 0;
}

.ma-bgr-faq-item {
    border: 1px solid #d0dce8;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}

.ma-bgr-faq-q {
    background: #f0f6ff;
    color: #003A74 !important;
    margin: 0 !important;
    padding: 14px 18px;
    font-size: 1em !important;
    cursor: pointer;
    border-bottom: 1px solid #d0dce8;
}

.ma-bgr-faq-item p {
    padding: 14px 18px;
    margin: 0 !important;
    font-size: 0.95em;
    color: #444;
}

/* ===== DISCLAIMER ===== */
.ma-bgr-disclaimer {
    background: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 18px;
    font-size: 0.85em;
    color: #666;
    margin-top: 2.5em;
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .ma-bgr-calculator-box {
        padding: 20px 18px;
    }

    .ma-bgr-calc-title {
        font-size: 1.4em !important;
    }

    .ma-bgr-tab {
        font-size: 0.8em;
        padding: 8px 12px;
    }

    .ma-bgr-tab-content {
        padding: 18px 14px;
    }

    .ma-bgr-result-grid {
        grid-template-columns: 1fr;
    }

    #ma-bgr-calc-btn {
        width: 100%;
        text-align: center;
    }

    .ma-bgr-form-row select {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .ma-bgr-tabs {
        gap: 4px;
    }
    .ma-bgr-tab {
        font-size: 0.75em;
        padding: 7px 10px;
    }
}
