/* ==========================================================
   DRINBLICK
   App Styles
   ----------------------------------------------------------
   Ziel: FastAPI-App optisch an die Landingpage/Stratus-Optik
   angleichen, ohne die bestehende JavaScript-Logik zu ändern.
========================================================== */


/* ----------------------------------------------------------
   1. Design Tokens
---------------------------------------------------------- */

:root {
    --mtr-primary: #3A3B74;
    --mtr-primary-dark: #2d2e5f;
    --mtr-accent: #F5BE58;

    --mtr-text: #343434;
    --mtr-muted: #6f7280;
    --mtr-soft-text: #8a8d98;

    --mtr-bg: #fbfcfd;
    --mtr-bg-soft: #f4f6fb;
    --mtr-white: #ffffff;

    --mtr-border: #e5e8ef;
    --mtr-border-soft: rgba(58, 59, 116, 0.12);

    --mtr-success: #2f9e5b;
    --mtr-success-soft: #eefaf2;

    --mtr-warning: #e0a800;
    --mtr-warning-soft: #fff7df;

    --mtr-danger: #c94a3f;
    --mtr-danger-soft: #fff0ef;

    --mtr-radius-sm: 10px;
    --mtr-radius-md: 16px;
    --mtr-radius-lg: 24px;
    --mtr-radius-pill: 999px;

    --mtr-shadow-sm: 0 8px 24px rgba(24, 30, 55, 0.06);
    --mtr-shadow-md: 0 18px 50px rgba(24, 30, 55, 0.10);
    --mtr-shadow-lg: 0 28px 80px rgba(24, 30, 55, 0.14);

    --mtr-container: 1360px;
    --mtr-content-width: 860px;
}

.mtr-saved-analyses { padding: 32px 0 0; }
.mtr-saved-analysis { padding: 20px 0; border-top: 1px solid #d9e2ec; }
.mtr-saved-analysis .btn { margin: 8px 8px 8px 0; }
.mtr-access-hint { max-width: 760px; color: #526579; }
.mtr-access-page { max-width: 680px; margin: 10vh auto; padding: 32px; }
dialog input { width: 100%; margin: 12px 0; }

.mtr-cookie-notice {
    position: fixed;
    right: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 50%;
    z-index: 80;
    width: min(calc(100% - 32px), 920px);
    color: #183b56;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(16, 38, 75, 0.16);
    border-radius: 18px;
    box-shadow: 0 18px 52px rgba(24, 30, 55, 0.2);
    transform: translateX(-50%);
    animation: mtrCookieNoticeEnter 0.28s ease-out both;
}

body.mtr-cookie-notice-visible {
    padding-bottom: var(--mtr-cookie-notice-space, 0);
    transition: padding-bottom 0.2s ease;
}

@keyframes mtrCookieNoticeEnter {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mtr-cookie-notice {
        animation: none;
    }

    body.mtr-cookie-notice-visible {
        transition: none;
    }
}

.mtr-cookie-notice-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
}

.mtr-cookie-notice h2 {
    margin: 0 0 4px;
    color: var(--mtr-navy, #10264b);
    font-size: 18px;
    font-weight: 800;
}

.mtr-cookie-notice p {
    margin: 0;
    color: #183b56;
    font-size: 14px;
    line-height: 1.55;
}

.mtr-cookie-notice-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 14px;
}

.mtr-cookie-notice a:focus-visible,
.mtr-cookie-notice button:focus-visible {
    outline: 3px solid #0b65c2;
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .mtr-cookie-notice {
        bottom: max(12px, env(safe-area-inset-bottom));
        width: calc(100% - 24px);
        border-radius: 16px;
    }

    .mtr-cookie-notice-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .mtr-cookie-notice-actions {
        justify-content: space-between;
        gap: 12px;
    }

    .mtr-cookie-notice-actions .btn {
        min-height: 44px;
    }
}


/* ----------------------------------------------------------
   2. Base
---------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--mtr-bg);
    color: var(--mtr-text);
    font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
p,
li,
label,
input,
button {
    font-size: 15px;
}

p {
    color: var(--mtr-muted);
    line-height: 1.7;
}

a {
    color: var(--mtr-primary);
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
    color: var(--mtr-primary-dark);
    text-decoration: none;
}

.container {
    width: calc(100% - 30px);
    max-width: var(--mtr-container) !important;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}


/* ----------------------------------------------------------
   3. Header
---------------------------------------------------------- */

.mtr-site-header {
    position: relative;
    z-index: 20;
    background: var(--mtr-white);
    border-bottom: 1px solid rgba(58, 59, 116, 0.08);
    box-shadow: 0 4px 20px rgba(24, 30, 55, 0.035);
}

.mtr-header-inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.mtr-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    max-width: 100%;
    color: var(--mtr-primary);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.mtr-logo:hover,
.mtr-logo:focus {
    color: var(--mtr-primary-dark);
}

.mtr-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left:auto;
}

.mtr-nav a {
    position: relative;
    color: #555866;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 0;
}

.mtr-nav a:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--mtr-primary);
    transition: width 0.2s ease;
}

.mtr-nav a:hover:after,
.mtr-nav a:focus:after {
    width: 100%;
}


/* ----------------------------------------------------------
   4. Hero
---------------------------------------------------------- */

.mtr-app-hero {
    padding: 88px 0 58px;
    background:
        radial-gradient(circle at 12% 15%, rgba(245, 190, 88, 0.18), transparent 32%),
        radial-gradient(circle at 86% 10%, rgba(58, 59, 116, 0.10), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.mtr-app-hero-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.mtr-eyebrow {
    margin: 0 0 14px;
    color: var(--mtr-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.mtr-app-hero h1 {
    margin: 0 0 18px;
    color: #33344a;
    font-size: clamp(42px, 7vw, 68px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.mtr-app-hero p:not(.mtr-eyebrow) {
    max-width: 700px;
    margin: 0 auto;
    color: var(--mtr-muted);
    font-size: 19px;
    line-height: 1.65;
}


/* ----------------------------------------------------------
   5. App Layout & Cards
---------------------------------------------------------- */

.mtr-app-section {
    padding: 38px 0 90px;
}

.mtr-page {
    width: min(var(--mtr-content-width), 100%);
    margin: 0 auto;
}

.mtr-app-card {
    width: 100%;
    max-width: var(--mtr-content-width);
    margin: 0 auto 28px;
    padding: 44px;
    background: var(--mtr-white);
    border: 1px solid var(--mtr-border-soft);
    border-radius: var(--mtr-radius-lg);
    box-shadow: var(--mtr-shadow-md);
}

#analyseForm,
#result {
    width: 100%;
    max-width: var(--mtr-content-width);
    margin-left: auto !important;
    margin-right: auto !important;
}

#analyseForm {
    position: relative;
}

.mtr-form-header {
    max-width: 680px;
    margin: 0 auto 34px;
    text-align: center;
}

.mtr-form-header h2 {
    margin: 0 0 12px;
    color: #33344a;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.mtr-form-header p {
    margin: 0;
    color: var(--mtr-muted);
    font-size: 16px;
}

.mtr-form-block {
    max-width: 660px;
    margin: 34px auto 0;
    padding-top: 30px;
    border-top: 1px solid var(--mtr-border);
}

.mtr-form-block-first {
    padding-top: 0;
    border-top: 0;
}

.mtr-form-block h3 {
    margin: 0 0 20px;
    color: #33344a;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.mtr-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}


/* ----------------------------------------------------------
   6. Forms
---------------------------------------------------------- */

.form-group {
    margin-bottom: 19px;
}

label {
    display: block;
    margin: 0 0 8px;
    color: #3e4050;
    font-weight: 700;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="file"],
select,
textarea {
    width: 100%;
    height: 50px;
    padding: 12px 16px;
    color: #33344a !important;
    background: #ffffff;
    border: 1px solid #dfe3ec;
    border-radius: var(--mtr-radius-sm);
    box-shadow: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--mtr-primary) !important;
    box-shadow: 0 0 0 4px rgba(58, 59, 116, 0.10);
    outline: none;
}

input[type="file"].form-control {
    height: auto;
    min-height: 56px;
    padding: 14px;
    cursor: pointer;
    background:
        linear-gradient(180deg, #ffffff, #fbfcfd);
}

.help-block {
    margin: 8px 0 0;
    color: var(--mtr-soft-text);
    font-size: 14px;
    line-height: 1.5;
}


/* ----------------------------------------------------------
   7. Analyse Mode Cards
---------------------------------------------------------- */

.analyse-mode {
    max-width: 660px;
    margin: 0 auto 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.mode-card {
    display: block;
    margin: 0;
    cursor: pointer;
}

.mode-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mode-content {
    height: 100%;
    padding: 22px 22px 20px;
    background: #ffffff;
    border: 2px solid #e5e8ef;
    border-radius: var(--mtr-radius-md);
    box-shadow: var(--mtr-shadow-sm);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

.mode-content:hover {
    transform: translateY(-2px);
    border-color: rgba(58, 59, 116, 0.28);
    box-shadow: 0 14px 34px rgba(24, 30, 55, 0.09);
}

.mode-content strong {
    display: block;
    margin-bottom: 8px;
    color: #33344a;
    font-size: 18px;
    font-weight: 800;
}

.mode-content p {
    margin: 0;
    color: var(--mtr-muted);
    font-size: 14px;
    line-height: 1.55;
}

.mode-card input[type="radio"]:checked + .mode-content {
    background:
        linear-gradient(180deg, rgba(58, 59, 116, 0.06), rgba(245, 190, 88, 0.06)),
        #ffffff;
    border-color: var(--mtr-primary);
    box-shadow: 0 16px 40px rgba(58, 59, 116, 0.13);
}


/* ----------------------------------------------------------
   8. Buttons
---------------------------------------------------------- */

.mtr-submit-wrapper {
    max-width: 660px;
    margin: 36px auto 0;
    text-align: center;
}

.btn,
button {
    border-radius: var(--mtr-radius-pill);
    font-weight: 800;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease,
        background-color 0.18s ease;
}

.btn-primary,
button.btn-primary {
    min-width: 240px;
    padding: 14px 38px;
    color: #ffffff;
    background: var(--mtr-primary);
    border: 2px solid var(--mtr-primary);
    box-shadow: 0 14px 30px rgba(58, 59, 116, 0.22);
}

.btn-primary:hover,
.btn-primary:focus,
button.btn-primary:hover,
button.btn-primary:focus {
    color: #ffffff;
    background: var(--mtr-primary-dark);
    border-color: var(--mtr-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(58, 59, 116, 0.26);
}

.btn-default,
button.btn-default {
    padding: 12px 30px;
    color: var(--mtr-primary);
    background: #ffffff;
    border: 2px solid var(--mtr-primary);
}

.btn-default:hover,
.btn-default:focus,
button.btn-default:hover,
button.btn-default:focus {
    color: #ffffff;
    background: var(--mtr-primary);
    border-color: var(--mtr-primary);
}


/* ----------------------------------------------------------
   9. Form Overlay / Loading
---------------------------------------------------------- */

.mtr-form-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.76);
    backdrop-filter: blur(5px);
}

.mtr-form-overlay.is-visible {
    display: flex;
    animation: mtrFadeIn 0.22s ease forwards;
}

.mtr-form-overlay-card {
    width: min(440px, 100%);
    padding: 36px 32px;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--mtr-border-soft);
    border-radius: var(--mtr-radius-lg);
    box-shadow: var(--mtr-shadow-lg);
}

.mtr-form-overlay-card h3 {
    margin: 16px 0 8px;
    color: #33344a;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.mtr-form-overlay-card p {
    margin: 0;
    color: var(--mtr-muted);
}

.spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 18px;
    border: 5px solid rgba(58, 59, 116, 0.12);
    border-top-color: var(--mtr-primary);
    border-radius: 50%;
    animation: mtrSpin 0.9s linear infinite;
}

.mtr-loading-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.mtr-loading-list li {
    padding: 8px 12px;
    color: #33344a;
    background: #f7f8fb;
    border: 1px solid #edf0f5;
    border-radius: var(--mtr-radius-pill);
    font-size: 13px;
    font-weight: 800;
}

@keyframes mtrSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes mtrFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ----------------------------------------------------------
   10. Results
---------------------------------------------------------- */

.result,
#result.mtr-app-card {
    display: none;
}

#result.mtr-app-card.is-visible {
    display: block;
    animation: mtrFadeIn 0.35s ease forwards;
}

.mtr-result {
    margin-top: 34px;
}

.mtr-result-status {
    position: relative;
    padding: 32px 36px;
    margin-bottom: 28px;
    background: var(--mtr-warning-soft);
    border-left: 7px solid var(--mtr-warning);
    border-radius: var(--mtr-radius-lg);
}

.mtr-status-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
}

.mtr-status-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff4b9, #e0a800);
    box-shadow: 0 0 0 8px rgba(224, 168, 0, 0.12);
}

.mtr-result-status h2 {
    margin: 0;
    color: #33344a;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.mtr-status-text {
    margin-left: 52px;
}

.mtr-status-text p {
    margin: 0 0 10px;
    color: #555866;
    font-size: 17px;
    line-height: 1.6;
}

.mtr-result-box {
    padding: 24px;
    margin-bottom: 18px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: var(--mtr-radius-md);
    box-shadow: var(--mtr-shadow-sm);
}

.mtr-result-box strong {
    color: #33344a;
    font-size: 20px;
    font-weight: 800;
}

.mtr-result-box p {
    margin: 8px 0 0;
    color: var(--mtr-muted);
}

.mtr-result-box ul {
    margin: 6px 0 0;
    padding-left: 21px;
    color: var(--mtr-muted);
}

.mtr-result-box li {
    margin-bottom: 7px;
    line-height: 1.6;
}

.mtr-box-label {
    display: block;
    margin-bottom: 11px;
    color: var(--mtr-soft-text);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.mtr-important-box {
    background: #fffaf0;
    border-color: rgba(224, 168, 0, 0.22);
    border-left: 6px solid var(--mtr-warning);
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f5;
}

.cost-row:last-child {
    border-bottom: none;
}

.cost-row span {
    color: var(--mtr-muted);
}

.cost-row strong {
    white-space: nowrap;
    color: #33344a;
    font-size: 16px;
}

#costs {
    white-space: pre-line;
    line-height: 1.6;
    margin: 0;
}

/* Result color states */

.mtr-result.green .mtr-result-status {
    background: var(--mtr-success-soft);
    border-left-color: var(--mtr-success);
}

.mtr-result.green .mtr-status-icon {
    background: radial-gradient(circle at 35% 35%, #c6ffd8, var(--mtr-success));
    box-shadow: 0 0 0 8px rgba(47, 158, 91, 0.12);
}

.mtr-result.yellow .mtr-result-status {
    background: var(--mtr-warning-soft);
    border-left-color: var(--mtr-warning);
}

.mtr-result.yellow .mtr-status-icon {
    background: radial-gradient(circle at 35% 35%, #fff4b9, var(--mtr-warning));
    box-shadow: 0 0 0 8px rgba(224, 168, 0, 0.12);
}

.mtr-result.red .mtr-result-status {
    background: var(--mtr-danger-soft);
    border-left-color: var(--mtr-danger);
}

.mtr-result.red .mtr-status-icon {
    background: radial-gradient(circle at 35% 35%, #ffd4cf, var(--mtr-danger));
    box-shadow: 0 0 0 8px rgba(201, 74, 63, 0.12);
}


/* ----------------------------------------------------------
   11. Premium
---------------------------------------------------------- */

.premium-locked {
    position: relative;
    overflow: hidden;
}

.premium-locked > *:not(.premium-overlay) {
    visibility: hidden;
    user-select: none;
    pointer-events: none;
}

.premium-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    color: #33344a;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(4px);
    text-align: center;
}

.premium-unlocked > * {
    visibility: visible;
    user-select: auto;
    pointer-events: auto;
}

.premium-unlocked .premium-overlay {
    display: none;
}

#pdfButton {
    margin-top: 22px;
}

/* ----------------------------------------------------------
   11.5 Premium Overlay Freischaltung
---------------------------------------------------------- */
.premium-overlay{
    transition: all .35s ease;
}

.premium-locked .premium-overlay{
    opacity:1;
    visibility:visible;
}

.mtr-result-box:not(.premium-locked) .premium-overlay{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
}

/* ----------------------------------------------------------
   12. Footer
---------------------------------------------------------- */

.mtr-site-footer {
    margin-top: 80px;
    padding: 40px 20px;
    background: #1f2937;
    color: #cbd5e1;
    text-align: center;
}

.mtr-footer-copy {
    margin: 0 0 14px;
    font-size: .95rem;
}

.mtr-footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .95rem;
}

.mtr-footer-nav a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity .2s;
}

.mtr-footer-nav a:hover {
    opacity: .7;
}

.mtr-footer-nav span {
    color: #ffffff;
}


/* ----------------------------------------------------------
   13. Compatibility Cleanup
   ----------------------------------------------------------
   Überschreibt alte Styles aus früheren Versionen.
---------------------------------------------------------- */

.app-shell,
.hero-card,
.card,
.form-card,
.layout-grid,
.form-grid,
.results-column,
.box {
    all: unset;
}

.panel,
.panel-default,
.panel-body {
    border: 0;
    box-shadow: none;
    background: transparent;
}

.mtr-header,
.mtr-hero,
.mtr-main,
.mtr-footer,
#loading {
    display: none !important;
}


/* ----------------------------------------------------------
   14. Responsive
---------------------------------------------------------- */

@media (max-width: 991px) {
    .mtr-app-card {
        padding: 36px 30px;
    }

    .mtr-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .mtr-header-inner {
        min-height: auto;
        padding-top: 18px;
        padding-bottom: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .mtr-nav {
        width: 100%;
        gap: 18px;
        flex-wrap: wrap;
    }

    .mtr-app-hero {
        padding: 58px 0 38px;
    }

    .mtr-app-hero-content {
        text-align: left;
    }

    .mtr-app-hero h1 {
        font-size: clamp(38px, 13vw, 52px);
    }

    .mtr-app-hero p:not(.mtr-eyebrow) {
        font-size: 17px;
    }

    .mtr-app-section {
        padding: 28px 0 62px;
    }

    .mtr-app-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .mtr-form-header {
        text-align: left;
    }

    .mtr-form-header h2 {
        font-size: 29px;
    }

    .analyse-mode,
    .mtr-field-grid {
        grid-template-columns: 1fr;
    }

    .mtr-form-block {
        margin-top: 28px;
        padding-top: 24px;
    }

    .mtr-result-status {
        padding: 26px 22px;
    }

    .mtr-status-header {
        align-items: flex-start;
    }

    .mtr-status-text {
        margin-left: 0;
    }

    .mtr-result-status h2 {
        font-size: 27px;
    }

    .cost-row {
        flex-direction: column;
        gap: 4px;
    }

    .cost-row strong {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 22px);
    }

    .mtr-app-card {
        padding: 24px 18px;
    }

    .mtr-app-hero h1 {
        letter-spacing: -0.04em;
    }

    .mtr-result-box {
        padding: 20px;
    }

    .mtr-form-overlay {
        padding: 16px;
    }

    .mtr-form-overlay-card {
        padding: 28px 22px;
    }

    .mtr-loading-list {
        grid-template-columns: 1fr;
    }

    .btn-primary,
    button.btn-primary {
        width: 100%;
        min-width: 0;
    }
}


/* ----------------------------------------------------------
   15. Bezahlbox
---------------------------------------------------------- */

.mtr-payment-box {
    margin: 32px auto;
    padding: 28px;
    max-width: 720px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.mtr-payment-info {
    background: #f8fafc;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 22px;
}

.mtr-payment-info h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
}

.mtr-payment-info ul {
    margin: 0;
    padding-left: 20px;
}

.mtr-payment-info li {
    margin: 6px 0;
}

.mtr-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 22px;
}

.mtr-price-label {
    color: #475569;
}

.mtr-price {
    font-size: 1.6rem;
    color: #0f172a;
}

.mtr-checkbox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 16px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #334155;
}

.mtr-checkbox input {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.mtr-checkbox a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.mtr-checkbox a:hover {
    text-decoration: underline;
}

.mtr-pay-button {
    width: 100%;
    margin-top: 22px;
    padding: 16px 22px;
    border: none;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mtr-pay-button:not(:disabled):hover {
    transform: translateY(-1px);
}

.mtr-pay-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.mtr-payment-note {
    margin: 14px 0 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .mtr-payment-box {
        padding: 20px;
        border-radius: 14px;
    }

    .mtr-price-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .mtr-price {
        font-size: 1.4rem;
    }
}


/* ==========================================================
   PHASE 1 REDESIGN
   Visuelle Angleichung an die Drinblick-Landingpage.
   Bestehende Funktionsselektoren bleiben unverändert.
========================================================== */

:root {
    --mtr-primary: #2357d9;
    --mtr-primary-dark: #173f9f;
    --mtr-navy: #10264b;
    --mtr-coral: #f26a4f;
    --mtr-accent: #f26a4f;
    --mtr-text: #172a49;
    --mtr-muted: #5d6b7d;
    --mtr-soft-text: #758194;
    --mtr-bg: #fffdf9;
    --mtr-bg-soft: #f7f3ea;
    --mtr-white: #ffffff;
    --mtr-border: #deded8;
    --mtr-border-soft: rgba(16, 38, 75, 0.13);
    --mtr-success: #3c9a78;
    --mtr-success-soft: #edf8f3;
    --mtr-warning: #d7942e;
    --mtr-warning-soft: #fff7e9;
    --mtr-danger: #d85f50;
    --mtr-danger-soft: #fff0ed;
    --mtr-radius-sm: 12px;
    --mtr-radius-md: 18px;
    --mtr-radius-lg: 28px;
    --mtr-shadow-sm: 0 8px 24px rgba(16, 38, 75, 0.06);
    --mtr-shadow-md: 0 24px 64px rgba(16, 38, 75, 0.09);
    --mtr-shadow-lg: 0 30px 90px rgba(16, 38, 75, 0.15);
    --mtr-container: 1180px;
    --mtr-content-width: 920px;
}

html {
    background: var(--mtr-bg);
    scroll-padding-top: 88px;
}

body {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 82% 16%, rgba(242, 106, 79, 0.06), transparent 24rem),
        var(--mtr-bg);
    color: var(--mtr-text);
    font-family: Arial, Helvetica, sans-serif;
}

body,
p,
li,
label,
input,
button,
select,
textarea {
    font-size: 16px;
}

p {
    color: var(--mtr-muted);
    line-height: 1.65;
}

.container {
    width: min(calc(100% - 48px), var(--mtr-container));
}

.mtr-site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 253, 249, 0.94);
    border-bottom-color: rgba(16, 38, 75, 0.1);
    box-shadow: none;
    backdrop-filter: blur(14px);
}

.mtr-header-inner {
    min-height: 80px;
    gap: 32px;
}

.mtr-logo img {
    display: block;
    width: 176px;
    height: auto;
    max-width: 176px;
    max-height: 54px;
}

.mtr-nav {
    gap: 30px;
}

.mtr-nav a {
    color: var(--mtr-navy);
    font-size: 14px;
    font-weight: 700;
}

.mtr-nav .mtr-header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 17px;
    color: var(--mtr-primary);
    border: 1px solid rgba(35, 87, 217, 0.28);
    border-radius: 12px;
}

.mtr-nav .mtr-header-button::after {
    display: none;
}

.mtr-nav .mtr-header-button:hover,
.mtr-nav .mtr-header-button:focus,
.mtr-nav .mtr-header-button:active {
    color: #fff;
    background: var(--mtr-primary);
    border-color: var(--mtr-primary);
}

.mtr-app-hero {
    position: relative;
    padding: 88px 0 72px;
    background:
        radial-gradient(circle at 14% 14%, rgba(35, 87, 217, 0.08), transparent 23rem),
        radial-gradient(circle at 86% 18%, rgba(242, 106, 79, 0.1), transparent 20rem);
}

.mtr-app-hero::after {
    content: "";
    position: absolute;
    right: clamp(28px, 8vw, 130px);
    bottom: 38px;
    width: 118px;
    height: 118px;
    border: 2px dashed rgba(35, 87, 217, 0.24);
    border-radius: 50%;
    pointer-events: none;
}

.mtr-app-hero-content {
    max-width: 820px;
}

.mtr-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 15px;
    color: var(--mtr-primary);
    background: #eaf0ff;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.14em;
}

.mtr-app-hero h1,
.mtr-form-header h2,
.mtr-result-status h2 {
    color: var(--mtr-navy);
    font-family: Georgia, "Times New Roman", serif;
}

.mtr-app-hero h1 {
    margin: 20px 0 20px;
    font-size: clamp(48px, 7vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.mtr-app-hero h1::after {
    content: ".";
    color: var(--mtr-coral);
}

.mtr-app-hero p:not(.mtr-eyebrow) {
    max-width: 670px;
    color: #465871;
    font-size: 19px;
}

.mtr-hero-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin-top: 30px;
}

.mtr-hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #526176;
    font-size: 13px;
    font-weight: 700;
}

.mtr-hero-trust span::before {
    content: "✓";
    color: var(--mtr-success);
    font-size: 16px;
}

.mtr-app-section {
    padding: 34px 0 112px;
    background: linear-gradient(180deg, transparent 0, var(--mtr-bg-soft) 240px, var(--mtr-bg-soft) 100%);
}

.mtr-app-card {
    padding: clamp(28px, 5vw, 58px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(16, 38, 75, 0.12);
    border-radius: 28px;
    box-shadow: var(--mtr-shadow-md);
}

#analyseForm {
    scroll-margin-top: 110px;
}

.mtr-form-header {
    max-width: 700px;
    margin-bottom: 42px;
}

.mtr-form-header .mtr-eyebrow {
    margin-bottom: 18px;
}

.mtr-form-header h2 {
    margin-bottom: 14px;
    font-size: clamp(32px, 5vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.mtr-form-block {
    max-width: 720px;
    margin-top: 38px;
    padding-top: 34px;
    border-top-color: rgba(16, 38, 75, 0.11);
}

.mtr-form-block h3 {
    color: var(--mtr-navy);
    font-size: 20px;
}

.mtr-field-grid,
.analyse-mode {
    max-width: 720px;
    gap: 18px;
}

label {
    color: var(--mtr-navy);
    font-size: 14px;
    font-weight: 700;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="file"],
select,
textarea {
    min-height: 54px;
    padding: 14px 16px;
    color: var(--mtr-navy) !important;
    background: #fffdfa;
    border: 1px solid #d9dcd9;
    border-radius: 12px;
}

.form-control:hover,
input:hover,
select:hover,
textarea:hover {
    border-color: rgba(35, 87, 217, 0.45);
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--mtr-primary) !important;
    box-shadow: 0 0 0 4px rgba(35, 87, 217, 0.11);
}

input[type="file"].form-control {
    min-height: 86px;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(35, 87, 217, 0.035), rgba(242, 106, 79, 0.035)),
        #fffdfa;
    border: 1px dashed rgba(35, 87, 217, 0.44);
}

input[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 10px 14px;
    color: var(--mtr-primary);
    background: #eaf0ff;
    border: 0;
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.help-block {
    color: var(--mtr-soft-text);
    font-size: 13px;
}

.mtr-document-source {
    min-width: 0;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.mtr-document-source legend {
    margin-bottom: 12px;
    color: var(--mtr-navy);
    font-size: 14px;
    font-weight: 800;
}

.mtr-document-source-mode {
    margin-right: 0;
    margin-left: 0;
}

.mtr-document-source-mode .mode-content {
    display: flex;
    min-height: 108px;
    flex-direction: column;
    gap: 8px;
}

.mtr-document-source-mode .mode-content > span {
    display: block;
    color: var(--mtr-soft-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.mtr-document-source-panel[hidden] {
    display: none;
}

.mtr-document-text-help {
    margin: 0 0 10px;
}

textarea.mtr-document-textarea {
    height: auto;
    min-height: 260px;
    resize: vertical;
    line-height: 1.55;
}

.mtr-character-count {
    margin: 8px 0 0;
    color: var(--mtr-soft-text);
    font-size: 13px;
    text-align: right;
}

.mtr-character-count.is-near-limit {
    color: #9a4d00;
    font-weight: 700;
}

.mode-content {
    position: relative;
    min-height: 128px;
    padding: 24px;
    background: #fffdfa;
    border: 1px solid #dfe1de;
    border-radius: 18px;
    box-shadow: none;
}

.mode-content::before {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;
    width: 18px;
    height: 18px;
    border: 2px solid #c8cdd3;
    border-radius: 50%;
}

.mode-content strong {
    padding-right: 34px;
    color: var(--mtr-navy);
}

.mode-card input[type="radio"]:checked + .mode-content {
    background: #f1f5ff;
    border-color: var(--mtr-primary);
    box-shadow: 0 14px 32px rgba(35, 87, 217, 0.1);
}

.mode-card input[type="radio"]:checked + .mode-content::before {
    border: 5px solid var(--mtr-primary);
    background: #fff;
}

.mode-card input[type="radio"]:focus-visible + .mode-content {
    outline: 3px solid rgba(35, 87, 217, 0.22);
    outline-offset: 3px;
}

.mtr-submit-wrapper {
    max-width: 720px;
    margin-top: 42px;
}

.mtr-form-privacy-note {
    max-width: 720px;
    margin: 18px auto 0;
    padding: 14px 16px;
    color: #526176;
    background: var(--mtr-bg-soft);
    border: 1px solid rgba(16, 38, 75, 0.1);
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.mtr-form-privacy-note a,
.mtr-privacy-details a {
    color: var(--mtr-primary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.mtr-information-section {
    padding: 72px 0;
    background: var(--mtr-bg-soft);
}

.mtr-privacy-details {
    max-width: 920px;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(16, 38, 75, 0.12);
    border-radius: 20px;
    box-shadow: var(--mtr-shadow-sm);
}

.mtr-privacy-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 68px;
    padding: 18px 22px;
    color: var(--mtr-navy);
    cursor: pointer;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    list-style: none;
}

.mtr-privacy-details summary::-webkit-details-marker {
    display: none;
}

.mtr-privacy-details summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--mtr-primary);
    font-size: 25px;
    font-weight: 500;
}

.mtr-privacy-details[open] summary::after {
    content: "−";
}

.mtr-privacy-details summary:focus-visible {
    outline: 3px solid rgba(35, 87, 217, 0.32);
    outline-offset: -4px;
}

.mtr-privacy-details-content {
    padding: 4px 22px 22px;
    color: #526176;
    border-top: 1px solid rgba(16, 38, 75, 0.08);
    font-size: 14px;
    line-height: 1.65;
}

.mtr-privacy-details-content p {
    margin: 16px 0 0;
}

.btn,
button {
    border-radius: 12px;
}

.btn-primary,
button.btn-primary {
    min-height: 56px;
    padding: 15px 24px;
    background: var(--mtr-primary);
    border-color: var(--mtr-primary);
    box-shadow: 0 14px 30px rgba(35, 87, 217, 0.22);
}

.btn-primary:hover,
.btn-primary:focus,
button.btn-primary:hover,
button.btn-primary:focus {
    background: var(--mtr-primary-dark);
    border-color: var(--mtr-primary-dark);
    box-shadow: 0 18px 38px rgba(35, 87, 217, 0.27);
}

.mtr-checkbox {
    gap: 13px;
    color: #43536a;
}

.mtr-checkbox input[type="checkbox"] {
    appearance: none;
    width: 21px;
    height: 21px;
    margin-top: 2px;
    background: #fff;
    border: 2px solid #aeb6c1;
    border-radius: 6px;
    cursor: pointer;
}

.mtr-checkbox input[type="checkbox"]:checked {
    background-color: var(--mtr-primary);
    border-color: var(--mtr-primary);
    box-shadow: inset 0 0 0 4px #fff;
}

.mtr-checkbox input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(35, 87, 217, 0.2);
    outline-offset: 2px;
}

.mtr-result-box,
.mtr-payment-box,
.mtr-payment-info {
    border-color: rgba(16, 38, 75, 0.11);
    border-radius: 18px;
}

.mtr-payment-box {
    box-shadow: var(--mtr-shadow-sm);
}

.mtr-payment-info {
    background: var(--mtr-bg-soft);
}

.mtr-price,
.mtr-payment-info h3,
.mtr-result-box strong {
    color: var(--mtr-navy);
}

.mtr-pay-button {
    border-radius: 12px;
    background: var(--mtr-primary);
}

.mtr-site-footer {
    margin-top: 0;
    padding: 46px 20px;
    background: var(--mtr-navy);
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 72px;
    }

    .container {
        width: min(calc(100% - 32px), var(--mtr-container));
    }

    .mtr-header-inner {
        min-height: 70px;
        padding: 10px 0;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 18px;
    }

    .mtr-logo img {
        width: 142px;
        max-width: 142px;
        max-height: 44px;
    }

    .mtr-nav {
        width: 100%;
        margin-left: 0;
        gap: 10px;
    }

    .mtr-nav .mtr-header-button {
        flex: 1 1 0;
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .mtr-nav a:not(.mtr-header-button) {
        display: none;
    }

    .mtr-app-hero {
        padding: 56px 0 48px;
    }

    .mtr-app-hero::after {
        display: none;
    }

    .mtr-app-hero-content {
        text-align: left;
    }

    .mtr-app-hero h1 {
        margin-top: 18px;
        font-size: clamp(43px, 14vw, 58px);
    }

    .mtr-app-hero p:not(.mtr-eyebrow) {
        font-size: 17px;
    }

    .mtr-hero-trust {
        justify-content: flex-start;
        gap: 10px 18px;
        margin-top: 24px;
    }

    .mtr-app-section {
        padding: 24px 0 72px;
    }

    .mtr-app-card {
        padding: 30px 22px;
        border-radius: 22px;
    }

    .mtr-form-header h2 {
        font-size: 34px;
    }

    .analyse-mode,
    .mtr-field-grid {
        grid-template-columns: 1fr;
    }

    .mode-content {
        min-height: 0;
    }

    .mtr-form-block {
        margin-top: 30px;
        padding-top: 28px;
    }

    .mtr-form-privacy-note {
        padding: 13px 14px;
        text-align: left;
    }

    .mtr-information-section {
        padding: 48px 0;
    }

    .mtr-privacy-details {
        border-radius: 16px;
    }

    .mtr-privacy-details summary {
        min-height: 62px;
        padding: 16px 18px;
        font-size: 16px;
    }

    .mtr-privacy-details-content {
        padding: 2px 18px 20px;
    }

    input[type="file"].form-control {
        min-height: 92px;
    }

    .mtr-payment-box {
        padding: 22px 18px;
    }
}

@media (max-width: 420px) {
    .container {
        width: calc(100% - 24px);
    }

    .mtr-logo img {
        width: 126px;
        max-width: 126px;
    }

    .mtr-nav .mtr-header-button {
        padding: 9px 10px;
    }

    .mtr-app-hero h1 {
        font-size: 42px;
    }

    .mtr-app-card {
        padding: 26px 17px;
    }

    .mtr-form-header h2 {
        font-size: 31px;
    }

    .mode-content {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    textarea.mtr-document-textarea {
        min-height: 300px;
        font-size: 16px;
    }

    .mtr-document-source-mode .mode-content {
        min-height: 0;
    }
}

/* ==========================================================
   VERIFIED PAYMENT RECEIPT
========================================================== */

.mtr-payment-receipt {
    margin: 24px 0;
    padding: clamp(20px, 3vw, 30px);
    overflow: hidden;
    border: 1px solid rgba(20, 126, 90, 0.24);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(232, 248, 240, 0.96), rgba(255, 252, 245, 0.98));
    box-shadow: 0 16px 38px rgba(13, 43, 79, 0.09);
}

.mtr-payment-receipt[hidden] {
    display: none;
}

.mtr-payment-receipt-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.mtr-payment-receipt-header h3 {
    margin: 3px 0 0;
    color: var(--mtr-navy, #0d2b4f);
    font-size: clamp(22px, 3vw, 29px);
}

.mtr-payment-receipt-paid {
    flex: 0 0 auto;
    padding: 8px 13px;
    border-radius: 999px;
    background: #147e5a;
    color: #fff;
    font-weight: 750;
}

.mtr-payment-receipt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.mtr-payment-receipt-grid > div {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(13, 43, 79, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
}

.mtr-payment-receipt-grid dt {
    margin-bottom: 5px;
    color: #53657a;
    font-size: 13px;
    font-weight: 650;
}

.mtr-payment-receipt-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #0d2b4f;
    font-weight: 780;
}

.mtr-payment-receipt-note {
    margin: 0 0 16px;
    color: #334b64;
    line-height: 1.55;
}

.mtr-payment-receipt-copy-status {
    min-height: 1.5em;
    margin: 10px 0 0;
    color: #334b64;
    font-size: 14px;
}

@media (max-width: 520px) {
    .mtr-payment-receipt {
        padding: 19px 16px;
        border-radius: 18px;
    }

    .mtr-payment-receipt-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .mtr-payment-receipt-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #copyPaymentOrderId {
        width: 100%;
        min-height: 48px;
    }
}


/* ==========================================================
   PHASE 2 ANALYSIS OVERLAY
========================================================== */

body.mtr-analysis-running {
    overflow: hidden;
    overscroll-behavior: none;
}

body.mtr-analysis-running > .mtr-site-header,
body.mtr-analysis-running > main,
body.mtr-analysis-running > .mtr-site-footer {
    pointer-events: none;
    user-select: none;
}

body.mtr-analysis-running #formOverlay {
    pointer-events: auto;
    user-select: text;
}

.mtr-form-overlay {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    padding: clamp(18px, 5vw, 48px);
    overflow: hidden;
    background: rgba(255, 253, 249, 0.82);
    backdrop-filter: blur(16px) saturate(0.88);
    -webkit-backdrop-filter: blur(16px) saturate(0.88);
}

.mtr-form-overlay::before,
.mtr-form-overlay::after {
    content: "";
    position: absolute;
    width: min(38vw, 460px);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.2;
    pointer-events: none;
}

.mtr-form-overlay::before {
    top: -18%;
    left: -10%;
    background: rgba(35, 87, 217, 0.34);
}

.mtr-form-overlay::after {
    right: -12%;
    bottom: -22%;
    background: rgba(242, 106, 79, 0.32);
}

.mtr-form-overlay.is-visible {
    display: grid;
    place-items: center;
    animation: mtrOverlayIn 0.24s ease-out both;
}

.mtr-form-overlay-card {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: calc(100dvh - clamp(36px, 10vw, 96px));
    padding: clamp(30px, 5vw, 48px);
    overflow-y: auto;
    color: var(--mtr-navy);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(255, 253, 249, 0.97));
    border: 1px solid rgba(16, 38, 75, 0.13);
    border-radius: 28px;
    box-shadow:
        0 34px 90px rgba(16, 38, 75, 0.18),
        0 3px 0 rgba(255, 255, 255, 0.86) inset;
    outline: none;
    scrollbar-width: thin;
}

.mtr-form-overlay-card:focus-visible {
    box-shadow:
        0 34px 90px rgba(16, 38, 75, 0.18),
        0 0 0 4px rgba(35, 87, 217, 0.13);
}

.mtr-loading-kicker {
    display: inline-flex;
    margin: 4px 0 16px !important;
    padding: 7px 12px;
    color: var(--mtr-primary) !important;
    background: #eaf0ff;
    border-radius: 999px;
    font-size: 11px !important;
    font-weight: 900;
    letter-spacing: 0.13em;
    line-height: 1.2 !important;
    text-transform: uppercase;
}

.mtr-form-overlay-card h3 {
    max-width: 390px;
    margin: 0 auto 14px;
    color: var(--mtr-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(29px, 5vw, 38px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.mtr-form-overlay-card > p:not(.mtr-loading-kicker):not(.mtr-loading-note) {
    max-width: 410px;
    margin: 0 auto;
    color: #5b697c;
    font-size: 15px;
    line-height: 1.6;
}

.spinner {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 22px;
    border: 0;
    background: transparent;
    animation: none;
}

.spinner::before,
.spinner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.spinner::before {
    inset: 0;
    border: 2px solid rgba(16, 38, 75, 0.09);
    border-top-color: var(--mtr-primary);
    border-right-color: var(--mtr-coral);
    animation: mtrOrbit 1.65s linear infinite;
}

.spinner::after {
    inset: 23px;
    background: var(--mtr-navy);
    box-shadow: 0 8px 22px rgba(16, 38, 75, 0.22);
    animation: mtrCorePulse 1.65s ease-in-out infinite;
}

.spinner span {
    position: absolute;
    z-index: 1;
    width: 14px;
    height: 14px;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 5px 12px rgba(16, 38, 75, 0.16);
}

.spinner span:nth-child(1) {
    top: -3px;
    left: 37px;
    background: var(--mtr-primary);
    animation: mtrDotPulse 1.65s 0s ease-in-out infinite;
}

.spinner span:nth-child(2) {
    right: 2px;
    bottom: 14px;
    background: var(--mtr-coral);
    animation: mtrDotPulse 1.65s 0.2s ease-in-out infinite;
}

.spinner span:nth-child(3) {
    left: 3px;
    bottom: 14px;
    background: var(--mtr-success);
    animation: mtrDotPulse 1.65s 0.4s ease-in-out infinite;
}

.mtr-loading-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 26px;
}

.mtr-loading-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 9px 8px;
    color: #43536a;
    background: #f7f3ea;
    border: 1px solid rgba(16, 38, 75, 0.08);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
}

.mtr-loading-list li > span {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    background: var(--mtr-success);
    border-radius: 50%;
    animation: mtrStatusPulse 1.4s ease-in-out infinite;
}

.mtr-loading-list li:nth-child(2) > span {
    animation-delay: 0.18s;
}

.mtr-loading-list li:nth-child(3) > span {
    animation-delay: 0.36s;
}

.mtr-loading-list li:nth-child(4) > span {
    animation-delay: 0.54s;
}

.mtr-loading-note {
    margin: 20px 0 0 !important;
    color: #7a8492 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

@keyframes mtrOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes mtrOrbit {
    to {
        transform: rotate(360deg);
    }
}

@keyframes mtrCorePulse {
    0%,
    100% {
        transform: scale(0.88);
        opacity: 0.86;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes mtrDotPulse {
    0%,
    100% {
        transform: scale(0.85);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes mtrStatusPulse {
    0%,
    100% {
        opacity: 0.35;
    }

    50% {
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .mtr-form-overlay {
        align-items: center;
        min-height: 100dvh;
        padding:
            max(14px, env(safe-area-inset-top))
            14px
            max(14px, env(safe-area-inset-bottom));
    }

    .mtr-form-overlay-card {
        width: 100%;
        max-height: calc(
            100dvh
            - max(28px, env(safe-area-inset-top))
            - max(28px, env(safe-area-inset-bottom))
        );
        padding: 28px 20px 24px;
        border-radius: 22px;
    }

    .spinner {
        width: 74px;
        height: 74px;
        margin-bottom: 18px;
    }

    .spinner::after {
        inset: 20px;
    }

    .spinner span:nth-child(1) {
        left: 30px;
    }

    .spinner span:nth-child(2),
    .spinner span:nth-child(3) {
        bottom: 11px;
    }

    .mtr-loading-kicker {
        margin-bottom: 13px !important;
    }

    .mtr-form-overlay-card h3 {
        font-size: clamp(27px, 8.5vw, 34px);
    }

    .mtr-loading-list {
        grid-template-columns: 1fr 1fr;
        margin-top: 22px;
    }

    .mtr-loading-list li {
        min-height: 40px;
    }

    .mtr-loading-note {
        margin-top: 16px !important;
    }
}

@media (max-height: 580px) {
    .mtr-form-overlay-card {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .spinner {
        width: 58px;
        height: 58px;
        margin-bottom: 12px;
    }

    .spinner::after {
        inset: 16px;
    }

    .spinner span {
        width: 11px;
        height: 11px;
        border-width: 2px;
    }

    .spinner span:nth-child(1) {
        left: 24px;
    }

    .spinner span:nth-child(2),
    .spinner span:nth-child(3) {
        bottom: 8px;
    }

    .mtr-loading-list {
        margin-top: 16px;
    }

    .mtr-loading-note {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .mtr-form-overlay.is-visible,
    .spinner::before,
    .spinner::after,
    .spinner span,
    .mtr-loading-list li > span {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ==========================================================
   PHASE 3 RESULTS
========================================================== */

#result.mtr-app-card {
    max-width: 1040px;
    padding: clamp(26px, 5vw, 58px);
    background: #fffdf9;
}

.mtr-results-intro {
    max-width: 680px;
    margin: 0 auto 38px;
    text-align: center;
}

.mtr-results-intro .mtr-eyebrow {
    margin-bottom: 18px;
}

.mtr-results-intro h2 {
    margin: 0 0 12px;
    color: var(--mtr-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.mtr-results-intro p:last-child {
    margin: 0;
    font-size: 16px;
}

.mtr-result-status {
    overflow: hidden;
    padding: clamp(28px, 5vw, 44px);
    margin-bottom: 22px;
    background: #fff7e9;
    border: 1px solid rgba(215, 148, 46, 0.25);
    border-left: 0;
    border-radius: 24px;
}

.mtr-result-status::after {
    content: "";
    position: absolute;
    top: -54px;
    right: -44px;
    width: 180px;
    height: 180px;
    border: 2px dashed currentColor;
    border-radius: 50%;
    opacity: 0.1;
}

.mtr-status-header {
    position: relative;
    z-index: 1;
    align-items: center;
    margin-bottom: 16px;
}

.mtr-status-icon {
    position: relative;
    width: 46px;
    height: 46px;
    background: var(--mtr-warning);
    box-shadow: 0 0 0 10px rgba(215, 148, 46, 0.12);
}

.mtr-status-icon::after {
    content: "!";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 23px;
    font-weight: 900;
}

.mtr-result-status h2 {
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.05;
}

.mtr-status-text {
    position: relative;
    z-index: 1;
    margin-left: 64px;
}

.mtr-status-text p {
    max-width: 710px;
    color: #48586e;
}

#difference {
    display: inline-flex;
    margin-top: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
}

#difference.is-positive {
    color: #237455;
    background: rgba(60, 154, 120, 0.12);
}

#difference.is-negative {
    color: #b3483c;
    background: rgba(216, 95, 80, 0.11);
}

#difference.is-neutral {
    color: #a16718;
    background: rgba(215, 148, 46, 0.12);
}

.mtr-result.green .mtr-result-status {
    color: var(--mtr-success);
    background: var(--mtr-success-soft);
    border-color: rgba(60, 154, 120, 0.24);
}

.mtr-result.green .mtr-status-icon {
    background: var(--mtr-success);
    box-shadow: 0 0 0 10px rgba(60, 154, 120, 0.12);
}

.mtr-result.green .mtr-status-icon::after {
    content: "✓";
}

.mtr-result.yellow .mtr-result-status {
    color: var(--mtr-warning);
    background: var(--mtr-warning-soft);
    border-color: rgba(215, 148, 46, 0.25);
}

.mtr-result.red .mtr-result-status {
    color: var(--mtr-danger);
    background: var(--mtr-danger-soft);
    border-color: rgba(216, 95, 80, 0.24);
}

.mtr-result.red .mtr-status-icon {
    background: var(--mtr-danger);
    box-shadow: 0 0 0 10px rgba(216, 95, 80, 0.11);
}

.mtr-result.red .mtr-status-icon::after {
    content: "×";
}

.mtr-free-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.mtr-result-box {
    margin-bottom: 18px;
    padding: clamp(22px, 3vw, 30px);
    background: #fff;
    border: 1px solid rgba(16, 38, 75, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(16, 38, 75, 0.05);
}

.mtr-free-results .mtr-result-box {
    min-width: 0;
    margin-bottom: 0;
}

.mtr-result-box-note {
    display: block;
    margin-top: 9px;
    color: var(--mtr-soft-text);
    font-size: 12px;
    line-height: 1.45;
}

.mtr-provider-box {
    background:
        radial-gradient(circle at 95% 0, rgba(35, 87, 217, 0.08), transparent 9rem),
        #fff;
}

.mtr-provider-box #anbieterName,
.mtr-savings-box #savingsHighlight {
    display: block;
    color: var(--mtr-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(21px, 3.4vw, 29px);
    line-height: 1.16;
    text-wrap: balance;
    word-break: normal;
}

.mtr-provider-box #anbieterName {
    overflow-wrap: anywhere;
}

#savingsHighlight.is-positive {
    color: #267b5c;
}

#savingsHighlight.is-negative {
    color: var(--mtr-coral);
}

#savingsHighlight.is-neutral {
    color: #b4751f;
}

.mtr-savings-box {
    background:
        radial-gradient(circle at 95% 0, rgba(242, 106, 79, 0.09), transparent 9rem),
        #fff;
}

.mtr-cost-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 16px;
    margin-top: 4px;
}

.mtr-tariff-column {
    display: flex;
    min-height: 150px;
    padding: 24px;
    flex-direction: column;
    justify-content: center;
    background: #f7f3ea;
    border: 1px solid rgba(16, 38, 75, 0.08);
    border-radius: 17px;
}

.mtr-tariff-column.is-new {
    background: #edf3ff;
    border-color: rgba(35, 87, 217, 0.2);
}

.mtr-tariff-label {
    color: #5f6c7c;
    font-size: 13px;
    font-weight: 800;
}

.mtr-tariff-column strong {
    display: block;
    margin: 7px 0 3px;
    color: var(--mtr-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3.4vw, 34px);
    line-height: 1.08;
    text-wrap: balance;
    word-break: normal;
}

.mtr-tariff-column small,
.cost-row small {
    color: var(--mtr-soft-text);
    font-size: 12px;
}

.mtr-cost-arrow {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    align-self: center;
    color: var(--mtr-primary);
    background: #fff;
    border: 1px solid rgba(35, 87, 217, 0.18);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 900;
}

.mtr-cost-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.mtr-cost-grid-offer {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 4px;
}

.cost-row {
    display: flex;
    min-width: 0;
    padding: 18px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: #fbfaf7;
    border: 1px solid rgba(16, 38, 75, 0.08);
    border-radius: 14px;
}

.cost-row:last-child {
    border-bottom: 1px solid rgba(16, 38, 75, 0.08);
}

.cost-row span {
    color: #59677a;
    font-size: 12px;
    font-weight: 750;
}

.cost-row strong {
    color: var(--mtr-navy);
    font-size: 20px;
}

.cost-row.is-featured {
    background: #edf3ff;
    border-color: rgba(35, 87, 217, 0.18);
}

.cost-row.is-bonus {
    background: #fff5f0;
    border-color: rgba(242, 106, 79, 0.18);
}

#keyFacts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

#keyFactsSection[hidden] {
    display: none;
}

.mtr-key-fact {
    min-width: 0;
    padding: 17px;
    background: #fbfaf7;
    border: 1px solid rgba(16, 38, 75, 0.08);
    border-radius: 13px;
}

.mtr-key-fact span {
    display: block;
    margin-bottom: 8px;
    color: #748093;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
}

.mtr-key-fact strong {
    overflow-wrap: anywhere;
    color: var(--mtr-navy);
    font-size: 15px;
    line-height: 1.35;
}

.mtr-important-box {
    background: #fff;
    border: 1px solid rgba(16, 38, 75, 0.1);
    border-left: 0;
}

.mtr-installment-message {
    padding: 18px 20px;
    margin-bottom: 12px;
    background: #f7f3ea;
    border-radius: 14px;
}

.mtr-installment-message strong,
.mtr-installment-message span {
    display: block;
}

.mtr-installment-message strong {
    margin-bottom: 5px;
    color: var(--mtr-navy);
    font-size: 17px;
}

.mtr-installment-message span {
    color: #637084;
    font-size: 13px;
}

.mtr-installment-message.is-positive {
    background: var(--mtr-success-soft);
}

.mtr-installment-message.is-warning {
    background: var(--mtr-warning-soft);
}

.mtr-installment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.mtr-installment-grid > div {
    padding: 16px;
    background: #fbfaf7;
    border: 1px solid rgba(16, 38, 75, 0.08);
    border-radius: 12px;
}

.mtr-installment-grid span,
.mtr-installment-grid strong {
    display: block;
}

.mtr-installment-grid span {
    margin-bottom: 6px;
    color: #748093;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.mtr-installment-grid strong {
    color: var(--mtr-navy);
    font-size: 15px;
}

.mtr-installment-grid .is-risk {
    background: var(--mtr-danger-soft);
    border-color: rgba(216, 95, 80, 0.16);
}

.mtr-reasons-box #reasons {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mtr-reasons-box #reasons li {
    position: relative;
    margin: 0;
    padding: 14px 16px 14px 44px;
    color: #4f5e72;
    background: #fbfaf7;
    border: 1px solid rgba(16, 38, 75, 0.07);
    border-radius: 12px;
}

.mtr-reasons-box #reasons li::before {
    content: "i";
    position: absolute;
    top: 14px;
    left: 16px;
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    color: #fff;
    background: var(--mtr-primary);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
}

.mtr-payment-box {
    max-width: none;
    padding: clamp(24px, 4vw, 36px);
    background:
        radial-gradient(circle at 100% 0, rgba(35, 87, 217, 0.09), transparent 16rem),
        #fff;
    border-color: rgba(35, 87, 217, 0.16);
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(16, 38, 75, 0.08);
}

.mtr-payment-info {
    background: #f7f3ea;
}

.mtr-payment-info ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    padding: 0;
    list-style: none;
}

.mtr-payment-info li {
    position: relative;
    padding-left: 22px;
}

.mtr-payment-info li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--mtr-success);
    font-weight: 900;
}

.mtr-premium-heading {
    max-width: 700px;
    margin: 54px auto 24px;
    text-align: center;
}

.mtr-premium-heading .mtr-eyebrow {
    margin-bottom: 16px;
}

.mtr-premium-heading h3 {
    margin: 0 0 10px;
    color: var(--mtr-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 4vw, 37px);
    line-height: 1.08;
}

.mtr-premium-heading p:last-child {
    margin: 0;
}

.mtr-premium-result-box {
    min-height: 330px;
    overflow: hidden;
}

.premium-locked > *:not(.premium-overlay) {
    opacity: 0;
}

.premium-overlay {
    padding: 26px;
    color: var(--mtr-navy);
    background:
        linear-gradient(145deg, rgba(243, 247, 255, 0.96), rgba(255, 250, 242, 0.98));
    backdrop-filter: none;
}

.mtr-premium-teaser {
    text-align: left;
}

.mtr-premium-teaser-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 14px;
    padding: 5px 11px;
    color: var(--mtr-primary);
    background: rgba(35, 87, 217, 0.09);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.mtr-premium-teaser-badge::before {
    content: "🔒";
    margin-right: 7px;
}

.mtr-premium-teaser h3 {
    margin: 0 0 10px;
    color: var(--mtr-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3vw, 31px);
    line-height: 1.12;
}

.mtr-premium-teaser p {
    margin: 0 0 10px;
    color: #46546a;
    font-size: 16px;
    line-height: 1.55;
}

.mtr-premium-teaser strong {
    display: block;
    margin: 0;
    color: #24496f;
    font-size: 15px;
    line-height: 1.5;
}

.premium-unlocked.mtr-premium-result-box {
    min-height: 0;
}

#scenarioBox {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mtr-scenario-item {
    padding: 18px;
    background: #fbfaf7;
    border: 1px solid rgba(16, 38, 75, 0.09);
    border-radius: 14px;
}

.mtr-scenario-rate {
    display: inline-flex;
    padding: 7px 10px;
    color: #a86319;
    background: var(--mtr-warning-soft);
    border-radius: 9px;
    font-weight: 900;
}

.mtr-scenario-values {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.mtr-scenario-values > div {
    padding-top: 10px;
    border-top: 1px solid rgba(16, 38, 75, 0.08);
}

.mtr-scenario-values span,
.mtr-scenario-values strong,
.mtr-scenario-values small {
    display: block;
}

.mtr-scenario-values span {
    color: #748093;
    font-size: 11px;
}

.mtr-scenario-values strong {
    margin: 3px 0;
    color: var(--mtr-navy);
    font-size: 18px;
}

.mtr-scenario-values small {
    color: var(--mtr-soft-text);
}

.mtr-scenario-item > p {
    margin: 13px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(16, 38, 75, 0.08);
    font-size: 12px;
    font-weight: 800;
}

.mtr-scenario-item > p.is-positive {
    color: #267b5c;
}

.mtr-scenario-item > p.is-negative {
    color: #b3483c;
}

.mtr-summary-risk-list {
    min-width: 0;
    margin-top: 20px;
}

.mtr-risk-item {
    min-width: 0;
    padding: 22px 0;
    overflow-wrap: anywhere;
}

.mtr-risk-item + .mtr-risk-item {
    border-top: 1px solid rgba(16, 38, 75, 0.13);
}

.mtr-risk-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.mtr-risk-title h5 {
    margin: 0;
    color: var(--mtr-navy);
    font-size: 17px;
    line-height: 1.35;
}

.mtr-risk-title span {
    flex: 0 1 auto;
    text-align: right;
    color: #657286;
    font-size: 12px;
    font-weight: 800;
    text-transform: capitalize;
}

.mtr-risk-item > div:not(.mtr-risk-title) {
    margin-top: 15px;
}

.mtr-risk-item > div:not(.mtr-risk-title) > strong {
    display: block;
    margin-bottom: 5px;
    color: var(--mtr-navy);
    font-size: 13px;
}

.mtr-risk-item p {
    margin: 0;
    white-space: pre-line;
    font-size: 14px;
    line-height: 1.65;
}

.mtr-risk-item p + p {
    margin-top: 8px;
}

.mtr-risk-points {
    margin: 10px 0 0;
    padding-left: 20px;
}

.mtr-risk-points li {
    margin: 5px 0;
    padding-left: 3px;
    font-size: 14px;
    line-height: 1.55;
}

.mtr-risk-recommendation {
    padding-left: 12px;
    border-left: 3px solid var(--mtr-warning);
}

@media (max-width: 900px) {
    #keyFacts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mtr-cost-grid-offer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #scenarioBox {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    #result.mtr-app-card {
        padding: 26px 18px;
    }

    .mtr-results-intro {
        margin-bottom: 28px;
        text-align: left;
    }

    .mtr-result-status {
        padding: 25px 20px;
    }

    .mtr-status-header {
        align-items: flex-start;
    }

    .mtr-status-icon {
        width: 36px;
        height: 36px;
        box-shadow: 0 0 0 7px rgba(60, 154, 120, 0.11);
    }

    .mtr-status-icon::after {
        font-size: 18px;
    }

    .mtr-status-text {
        margin-left: 0;
    }

    .mtr-free-results {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mtr-cost-comparison {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .mtr-cost-arrow {
        width: 36px;
        height: 36px;
        transform: rotate(90deg);
    }

    .mtr-tariff-column {
        min-height: 0;
        padding: 20px;
    }

    .mtr-cost-grid,
    .mtr-cost-grid-offer,
    #keyFacts,
    .mtr-installment-grid {
        grid-template-columns: 1fr;
    }

    .cost-row {
        padding: 16px;
    }

    .mtr-payment-info ul {
        grid-template-columns: 1fr;
    }

    .mtr-premium-heading {
        margin-top: 42px;
        text-align: left;
    }

    .mtr-premium-result-box {
        min-height: 220px;
    }

    .premium-overlay {
        padding: 16px;
    }

    .mtr-risk-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .mtr-risk-title span {
        text-align: left;
    }
}


/* ==========================================================
   PHASE 4 PREMIUM & PAYMENT
========================================================== */

.mtr-payment-box {
    position: relative;
    overflow: hidden;
    margin: 34px 0 0;
    padding: clamp(26px, 4.5vw, 44px);
    background:
        radial-gradient(circle at 100% 0, rgba(35, 87, 217, 0.1), transparent 20rem),
        linear-gradient(145deg, #ffffff, #fffdf9);
    border: 1px solid rgba(35, 87, 217, 0.18);
    border-radius: 24px;
    box-shadow: 0 22px 56px rgba(16, 38, 75, 0.09);
}

.mtr-payment-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--mtr-primary),
        var(--mtr-coral),
        var(--mtr-success)
    );
}

.mtr-payment-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: center;
    gap: 34px;
    margin-bottom: 26px;
}

.mtr-premium-badge {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 11px;
    color: var(--mtr-primary);
    background: #eaf0ff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mtr-payment-header h3 {
    margin: 0 0 9px;
    color: var(--mtr-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 37px);
    line-height: 1.07;
    letter-spacing: -0.035em;
}

.mtr-payment-header p {
    max-width: 570px;
    margin: 0;
    font-size: 14px;
}

.mtr-price-box {
    display: flex;
    min-height: 150px;
    padding: 22px;
    margin: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    background: var(--mtr-navy);
    border: 0;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(16, 38, 75, 0.18);
}

.mtr-price-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mtr-price {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    line-height: 1.1;
}

.mtr-price-box small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
}

.mtr-payment-info {
    padding: 24px;
    margin-bottom: 18px;
    background: #f7f3ea;
    border: 1px solid rgba(16, 38, 75, 0.08);
    border-radius: 17px;
}

.mtr-payment-info h3 {
    margin: 0 0 16px;
    color: var(--mtr-navy);
    font-size: 16px;
}

.mtr-payment-info ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    margin: 0;
    padding: 0;
}

.mtr-payment-info li {
    margin: 0;
    padding-left: 25px;
    color: #4b5b70;
    font-size: 13px;
}

.mtr-payment-info li::before {
    content: "✓";
    top: 0;
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    color: #fff;
    background: var(--mtr-success);
    border-radius: 50%;
    font-size: 10px;
}

.mtr-payment-assurances {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid rgba(16, 38, 75, 0.09);
}

.mtr-payment-assurances span {
    display: inline-flex;
    padding: 7px 10px;
    color: #4c6078;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(16, 38, 75, 0.08);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.mtr-payment-consent {
    padding: 22px 24px;
    background: #fff;
    border: 1px solid rgba(16, 38, 75, 0.1);
    border-radius: 17px;
}

.mtr-payment-consent-title {
    margin: 0 0 15px;
    color: var(--mtr-navy);
    font-size: 13px;
    font-weight: 900;
}

.mtr-payment-consent .mtr-checkbox {
    position: relative;
    min-height: 25px;
    margin: 0;
    padding: 15px 0;
    border-top: 1px solid rgba(16, 38, 75, 0.08);
}

.mtr-payment-consent .mtr-checkbox:first-of-type {
    border-top: 0;
}

.mtr-payment-consent .mtr-checkbox span {
    color: #526177;
    font-size: 12px;
    line-height: 1.58;
}

.mtr-payment-consent .mtr-checkbox a {
    color: var(--mtr-primary);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(35, 87, 217, 0.3);
    text-underline-offset: 2px;
}

.mtr-payment-consent .mtr-checkbox input[type="checkbox"] {
    width: 23px;
    height: 23px;
    margin-top: 0;
    border-color: #9fa9b7;
}

.mtr-payment-consent .mtr-checkbox input[type="checkbox"]:checked {
    background-color: var(--mtr-success);
    border-color: var(--mtr-success);
}

.mtr-pay-button {
    position: relative;
    width: 100%;
    min-height: 60px;
    margin-top: 18px;
    padding: 17px 24px;
    color: #fff;
    background: var(--mtr-primary);
    border: 0;
    border-radius: 13px;
    box-shadow: 0 15px 30px rgba(35, 87, 217, 0.22);
    font-size: 15px;
}

.mtr-pay-button:not(:disabled)::after {
    content: "→";
    margin-left: 11px;
    font-size: 18px;
}

.mtr-pay-button:not(:disabled):hover,
.mtr-pay-button:not(:disabled):focus {
    background: var(--mtr-primary-dark);
    box-shadow: 0 19px 38px rgba(35, 87, 217, 0.28);
}

.mtr-pay-button:disabled {
    color: #7d8999;
    background: #e8eaec;
    box-shadow: none;
    opacity: 1;
}

.mtr-payment-status {
    display: none;
    margin: 14px 0 0;
    padding: 13px 15px;
    border-radius: 11px;
    text-align: left;
    font-size: 12px;
    font-weight: 800;
}

.mtr-payment-status:not(:empty) {
    display: block;
}

.mtr-payment-status.is-waiting {
    color: #986318;
    background: var(--mtr-warning-soft);
    border: 1px solid rgba(215, 148, 46, 0.18);
}

.mtr-payment-status.is-success {
    color: #267859;
    background: var(--mtr-success-soft);
    border: 1px solid rgba(60, 154, 120, 0.18);
}

.mtr-payment-status.is-error {
    color: #ad4439;
    background: var(--mtr-danger-soft);
    border: 1px solid rgba(216, 95, 80, 0.18);
}

.mtr-payment-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 17px;
}

.mtr-payment-security-icon {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: var(--mtr-success);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 900;
}

.mtr-payment-security p,
.mtr-payment-security strong,
.mtr-payment-security span {
    display: block;
    margin: 0;
}

.mtr-payment-security strong {
    color: var(--mtr-navy);
    font-size: 11px;
}

.mtr-payment-security p > span {
    color: #7a8594;
    font-size: 10px;
}

.mtr-premium-heading {
    position: relative;
    padding-top: 8px;
}

.mtr-premium-heading::before {
    content: "Kostenlose Kurzanalyse abgeschlossen";
    position: absolute;
    top: -34px;
    left: 50%;
    padding: 6px 10px;
    color: #34775e;
    background: var(--mtr-success-soft);
    border-radius: 999px;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mtr-premium-heading::after {
    content: "";
    position: absolute;
    top: -18px;
    left: calc(50% + 112px);
    width: 90px;
    height: 1px;
    background: linear-gradient(90deg, rgba(60, 154, 120, 0.3), transparent);
}

.mtr-premium-result-box {
    background:
        radial-gradient(circle at 100% 0, rgba(35, 87, 217, 0.055), transparent 14rem),
        #fff;
    border-color: rgba(35, 87, 217, 0.12);
}

.premium-overlay strong {
    margin-bottom: 7px;
    font-size: 13px;
}

.premium-overlay span {
    font-size: 12px;
    line-height: 1.45;
}

.premium-unlocked.mtr-premium-result-box {
    border-color: rgba(60, 154, 120, 0.22);
    box-shadow: 0 12px 32px rgba(60, 154, 120, 0.07);
}

.premium-unlocked.mtr-premium-result-box::before {
    content: "Freigeschaltet";
    display: inline-flex;
    margin-bottom: 13px;
    padding: 6px 9px;
    color: #287657;
    background: var(--mtr-success-soft);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#simpleSummary {
    display: grid;
    gap: 16px;
    width: 100%;
}

.mtr-summary-title {
    margin: 3px 0 22px;
    color: var(--mtr-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 4vw, 36px);
    line-height: 1.12;
}

.mtr-summary-panel {
    --summary-accent: var(--mtr-primary);
    --summary-background: #f3f7ff;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 18px;
    width: 100%;
    padding: 24px 26px;
    color: #43536c;
    background: var(--summary-background);
    border: 1px solid color-mix(in srgb, var(--summary-accent) 23%, white);
    border-left: 5px solid var(--summary-accent);
    border-radius: 16px;
}

.mtr-summary-panel.is-risks {
    --summary-accent: #e3a12b;
    --summary-background: #fff8ea;
}

.mtr-summary-panel.is-installment {
    --summary-accent: var(--mtr-coral);
    --summary-background: #fff2ed;
}

.mtr-summary-panel.is-recommendation {
    --summary-accent: var(--mtr-success);
    --summary-background: #edf8f3;
    padding-block: 27px;
    border-color: rgba(60, 154, 120, 0.3);
    box-shadow: 0 12px 28px rgba(60, 154, 120, 0.09);
}

.mtr-summary-panel.is-empty {
    display: none;
}

.mtr-summary-icon {
    width: 46px;
    height: 46px;
    padding: 10px;
    color: var(--summary-accent);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid currentColor;
    border-radius: 13px;
}

.mtr-summary-panel-content {
    min-width: 0;
    max-width: 820px;
}

.mtr-summary-panel h4 {
    margin: 0 0 7px;
    color: var(--mtr-navy);
    font-size: 18px;
    line-height: 1.25;
}

.mtr-summary-panel.is-recommendation h4 {
    font-size: 20px;
}

.mtr-summary-panel p {
    margin: 0;
    color: #43536c;
    font-size: 15px;
    line-height: 1.72;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.mtr-report-download {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    padding: 23px 24px;
    background: #f7f3ea;
    border: 1px solid rgba(16, 38, 75, 0.13);
    border-radius: 16px;
}

.mtr-report-download-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--mtr-primary);
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 6px 18px rgba(16, 38, 75, 0.08);
}

.mtr-report-download-icon svg {
    width: 26px;
    height: 26px;
}

.mtr-report-download h4 {
    margin: 0 0 4px;
    color: var(--mtr-navy);
    font-size: 17px;
    line-height: 1.3;
}

.mtr-report-download p {
    margin: 0;
    color: #5c6879;
    font-size: 13px;
    line-height: 1.5;
}

#pdfButton {
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 0;
    border-radius: 11px;
}

@media (max-width: 700px) {
    .mtr-summary-title {
        margin-bottom: 18px;
        font-size: 28px;
    }

    .mtr-summary-panel {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 13px;
        padding: 20px 18px;
        border-radius: 14px;
    }

    .mtr-summary-panel.is-risks {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .mtr-summary-panel.is-risks .mtr-summary-icon {
        margin-bottom: -3px;
    }

    .mtr-summary-panel.is-risks .mtr-risk-item {
        padding: 18px 0;
    }

    .mtr-summary-icon {
        width: 38px;
        height: 38px;
        padding: 8px;
        border-radius: 11px;
    }

    .mtr-summary-panel h4,
    .mtr-summary-panel.is-recommendation h4 {
        font-size: 17px;
    }

    .mtr-summary-panel p {
        font-size: 14px;
        line-height: 1.65;
    }

    .mtr-report-download {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
        padding: 20px 18px;
    }

    .mtr-report-download-icon {
        width: 44px;
        height: 44px;
    }

    #pdfButton {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 48px;
    }
}

@media (max-width: 700px) {
    .mtr-payment-box {
        padding: 28px 20px 22px;
        border-radius: 21px;
    }

    .mtr-payment-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mtr-price-box {
        min-height: 0;
        padding: 20px;
    }

    .mtr-price {
        font-size: 34px;
    }

    .mtr-payment-info,
    .mtr-payment-consent {
        padding: 20px 17px;
    }

    .mtr-payment-info ul {
        grid-template-columns: 1fr;
    }

    .mtr-payment-assurances {
        align-items: flex-start;
        flex-direction: column;
    }

    .mtr-payment-consent .mtr-checkbox {
        gap: 11px;
    }

    .mtr-pay-button {
        min-height: 58px;
        padding: 15px 16px;
        font-size: 14px;
        line-height: 1.35;
    }

    .mtr-payment-security {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .mtr-premium-heading::before,
    .mtr-premium-heading::after {
        display: none;
    }
}


/* ==========================================================
   PHASE 5 ACCESSIBILITY AND RESPONSIVE POLISH
========================================================== */

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(35, 87, 217, 0.34);
    outline-offset: 3px;
}

.mtr-mollie-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.mtr-withdrawal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
    color: var(--mtr-primary);
    border: 1px solid currentColor;
    border-radius: 10px;
    text-decoration: none;
}

.mtr-withdrawal-page {
    box-sizing: border-box;
    min-height: calc(100vh - 84px);
    padding: clamp(38px, 7vw, 84px) 20px;
    background: #fffdf9;
}

.mtr-withdrawal-card {
    box-sizing: border-box;
    width: min(760px, 100%);
    margin: 0 auto;
    padding: clamp(26px, 5vw, 48px);
    background: #fff;
    border: 1px solid rgba(16, 38, 75, 0.13);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(16, 38, 75, 0.09);
}

.mtr-withdrawal-card h1 {
    margin: 0 0 14px;
    color: var(--mtr-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 6vw, 48px);
    line-height: 1.08;
}

.mtr-withdrawal-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.mtr-withdrawal-form label {
    display: grid;
    gap: 7px;
    color: var(--mtr-navy);
    font-weight: 700;
}

.mtr-withdrawal-form input {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    color: var(--mtr-navy);
    background: #fff;
    border: 1px solid #c8cfda;
    border-radius: 10px;
    font: inherit;
}

.mtr-withdrawal-declaration,
.mtr-withdrawal-review,
.mtr-withdrawal-errors {
    padding: 18px;
    background: #f3f7ff;
    border: 1px solid #d8e2fb;
    border-radius: 12px;
}

.mtr-withdrawal-errors {
    color: #8b241b;
    background: #fff1ed;
    border-color: #f7c5ba;
}

.mtr-withdrawal-review > div {
    padding: 10px 0;
    border-bottom: 1px solid #d8e2fb;
}

.mtr-withdrawal-review > div:last-child {
    border-bottom: 0;
}

.mtr-withdrawal-review dt {
    color: #657287;
    font-size: 13px;
    font-weight: 700;
}

.mtr-withdrawal-review dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
}

.mtr-withdrawal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
}

.mtr-withdrawal-actions form {
    margin: 0;
}

@media (max-width: 600px) {
    .mtr-withdrawal-actions,
    .mtr-withdrawal-actions form,
    .mtr-withdrawal-actions .btn {
        width: 100%;
    }
}

.mtr-logo,
.mtr-footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.mtr-footer-nav a {
    padding: 8px 4px;
}

@media (max-width: 420px) {
    input[type="file"].form-control {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 11px;
    }

    input[type="file"]::file-selector-button {
        margin-right: 8px;
        padding-right: 9px;
        padding-left: 9px;
        font-size: 12px;
    }
}

.premium-locked.mtr-premium-result-box {
    min-height: 330px;
}

.premium-locked > *:not(.premium-overlay) {
    visibility: hidden;
    opacity: 0;
}

.premium-overlay {
    padding: 26px;
    background:
        linear-gradient(145deg, rgba(243, 247, 255, 0.96), rgba(255, 250, 242, 0.98));
    backdrop-filter: none;
}

.premium-overlay .mtr-premium-teaser-badge {
    display: inline-flex;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.4;
}

.premium-overlay.mtr-premium-teaser h3 {
    margin: 0 0 10px;
    font-size: clamp(24px, 3vw, 31px);
}

.premium-overlay.mtr-premium-teaser p {
    margin: 0 0 10px;
    font-size: 16px;
}

.premium-overlay.mtr-premium-teaser strong {
    margin: 0;
    color: #24496f;
    font-size: 15px;
}

@media (max-width: 600px) {
    .premium-locked.mtr-premium-result-box {
        min-height: 390px;
    }

    .premium-overlay {
        padding: 14px;
    }
}

.premium-overlay.mtr-premium-teaser {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 34px clamp(24px, 5vw, 58px);
    text-align: left;
}

.premium-overlay.mtr-premium-teaser > * {
    max-width: 760px;
}

@media (max-width: 600px) {
    .premium-overlay.mtr-premium-teaser {
        padding: 24px 20px;
    }
}
