/* ============================================================
   RESTNUTZUNGSDAUER ONLINE-CHECK — Mobile First
   ============================================================ */

.rnd-check-section {
    margin: 56px 0 64px;
    scroll-margin-top: 150px;
}

.rnd-check-section.rnd-check-inline {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto 48px;
}

.rnd-check-shell {
    overflow: hidden;
    background: #f6f1e6;
    border: 1px solid #ddd6c8;
    border-radius: 10px;
    box-shadow: none;
}

.rnd-check-intro,
.rnd-check-app {
    padding: 26px 20px;
}

.rnd-check-eyebrow,
.rnd-step-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #9b7c3e;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rnd-check-intro h2,
.rnd-check-screen h3 {
    margin: 0;
    color: #1f344d;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.08;
}

.rnd-check-intro h2 {
    font-size: clamp(2rem, 8vw, 2.75rem);
}

.rnd-check-screen h3 {
    font-size: clamp(1.4rem, 5.2vw, 1.8rem);
}

.rnd-check-intro > p,
.rnd-step-lead {
    margin: 16px 0 0;
    color: #4a4a4a;
    font-size: 0.96rem;
    line-height: 1.65;
}

.rnd-check-benefits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 18px 0 0;
    color: #1f344d;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.4;
}

.rnd-check-benefits span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.rnd-check-benefits span + span::before {
    content: '·';
    margin-right: 8px;
    color: #b89b5e;
    font-weight: 700;
}

.rnd-sidebar-launch .rnd-check-benefits {
    margin: -7px 0 20px;
}

.rnd-check-facts {
    display: grid;
    gap: 8px;
    margin: 22px 0;
}

.rnd-check-facts span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #1f344d;
    font-size: 0.82rem;
    font-weight: 500;
}

.rnd-check-facts span::before {
    content: '';
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #b89b5e;
}

.rnd-check-start {
    width: 100%;
    margin-top: 22px;
}

.rnd-check-disclaimer,
.rnd-result-disclaimer,
.rnd-check-noscript {
    margin: 16px 0 0 !important;
    color: #6b6b6b !important;
    font-size: 0.75rem !important;
    line-height: 1.55 !important;
}

.rnd-result-disclaimer {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.rnd-check-progress {
    margin-bottom: 28px;
}

.rnd-check-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 9px;
    color: #6b6b6b;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rnd-check-progress-track {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #eee9df;
}

.rnd-check-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #b89b5e;
    transition: width 0.25s ease;
}

.rnd-options {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.rnd-choice {
    position: relative;
    display: block;
    cursor: pointer;
}

.rnd-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.rnd-choice-content {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 13px 15px;
    border: 1px solid #dcd5c8;
    border-radius: 5px;
    background: #fdfbf6;
    color: #28384d;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.35;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.rnd-choice-content::before {
    content: '';
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-right: 11px;
    border: 1px solid #b8b0a1;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 4px #fff;
}

.rnd-choice input:checked + .rnd-choice-content {
    border-color: #b89b5e;
    background: #f6f1e6;
    box-shadow: 0 0 0 2px rgba(184, 155, 94, 0.13);
}

.rnd-choice input:checked + .rnd-choice-content::before {
    border-color: #b89b5e;
    background: #b89b5e;
}

.rnd-choice input:focus-visible + .rnd-choice-content,
.rnd-year-input:focus-visible,
.rnd-nav-button:focus-visible {
    outline: 3px solid rgba(184, 155, 94, 0.32);
    outline-offset: 2px;
}

.rnd-split-grid {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.rnd-split-group {
    padding: 18px 14px;
    border: 1px solid #e4ded2;
    border-radius: 6px;
    background: #fdfbf6;
}

.rnd-split-group h4 {
    margin: 0;
    color: #1f344d;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

.rnd-split-group .rnd-options {
    margin-top: 14px;
}

.rnd-split-group .rnd-choice-content {
    min-height: 48px;
    padding: 11px 12px;
    background: #fff;
    font-size: 0.8rem;
}

.rnd-year-wrap {
    margin-top: 24px;
    padding: 20px 16px;
    border: 1px solid #ded7ca;
    border-radius: 6px;
    background: #fdfbf6;
}

.rnd-year-wrap label {
    display: block;
    margin-bottom: 9px;
    color: #1f344d;
    font-size: 0.78rem;
    font-weight: 600;
}

.rnd-year-input {
    width: 100%;
    min-height: 54px;
    padding: 10px 14px;
    border: 1px solid #cfc6b7;
    border-radius: 4px;
    background: #fff;
    color: #1f344d;
    font: 600 1.15rem 'Inter', sans-serif;
    letter-spacing: 0.04em;
}

.rnd-year-input::placeholder {
    color: #9a958c;
    font-weight: 400;
    letter-spacing: 0;
}

.rnd-year-error {
    margin: 8px 0 0;
    color: #9a3f36;
    font-size: 0.73rem;
}

.rnd-year-note {
    margin: 10px 0 0;
    color: #6b6b6b;
    font-size: 0.73rem;
    line-height: 1.45;
}

.rnd-tool-nav {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 10px;
    margin-top: 28px;
}

.rnd-nav-button {
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #1f344d;
    border-radius: 3px;
    cursor: pointer;
    font: 600 0.75rem 'Inter', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rnd-nav-back {
    background: transparent;
    color: #1f344d;
}

.rnd-nav-next {
    background: #1f344d;
    color: #fff;
}

.rnd-nav-next:disabled {
    cursor: not-allowed;
    border-color: #c8c2b8;
    background: #d8d3ca;
    color: #777;
}

.rnd-stop-card {
    margin-top: 22px;
    padding: 22px 18px;
    border: 1px solid #dcd5c8;
    border-radius: 5px;
    background: #f6f1e6;
}

.rnd-stop-card strong {
    display: block;
    margin-bottom: 8px;
    color: #1f344d;
}

.rnd-stop-card p {
    margin: 0;
    color: #4a4a4a;
    font-size: 0.88rem;
    line-height: 1.6;
}

.rnd-result-hero {
    margin-top: 22px;
    padding: 24px 18px;
    border-radius: 6px;
    background: #1f344d;
    color: #fff;
}

.rnd-result-label {
    display: block;
    color: #c7ac73;
    font-family: 'Inter', sans-serif;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rnd-result-value {
    display: block;
    margin-top: 7px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 10vw, 3.25rem);
    font-weight: 500;
    line-height: 0.95;
}

.rnd-result-sub {
    display: block;
    margin-top: 9px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.77rem;
}

.rnd-result-grid {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.rnd-result-card {
    padding: 16px;
    border: 1px solid #ded7ca;
    border-radius: 5px;
    background: #fdfbf6;
}

.rnd-result-card span {
    display: block;
    color: #6b6b6b;
    font-size: 0.7rem;
}

.rnd-result-card strong {
    display: block;
    margin-top: 4px;
    color: #1f344d;
    font-size: 1rem;
}

.rnd-potential {
    margin-top: 12px;
    padding: 18px;
    border: 1px solid #d7d0c3;
    border-radius: 5px;
    background: #fff;
}

.rnd-potential strong {
    display: block;
    color: #1f344d;
    font-size: 1rem;
}

.rnd-potential p {
    margin: 7px 0 0;
    color: #4a4a4a;
    font-size: 0.83rem;
    line-height: 1.55;
}

.rnd-result-details {
    margin-top: 14px;
    border-top: 1px solid #e5dfd4;
    border-bottom: 1px solid #e5dfd4;
}

.rnd-result-details summary {
    padding: 14px 0;
    cursor: pointer;
    color: #1f344d;
    font-size: 0.8rem;
    font-weight: 600;
}

.rnd-result-details dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    margin: 0;
    padding: 0 0 16px;
    font-size: 0.75rem;
}

.rnd-result-details dt { color: #6b6b6b; }
.rnd-result-details dd { margin: 0; color: #1f344d; font-weight: 600; text-align: right; }

.rnd-result-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    min-width: 0;
}

.rnd-result-actions .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.rnd-result-restart {
    min-height: 46px;
    border: 0;
    background: transparent;
    color: #1f344d;
    cursor: pointer;
    font: 600 0.75rem 'Inter', sans-serif;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rnd-request-form {
    position: relative;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid #e4ded2;
}

.rnd-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rnd-request-back {
    display: block;
    margin: 18px auto 0;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: #1f344d;
    cursor: pointer;
    font: 500 0.82rem 'Inter', sans-serif;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rnd-request-back:hover {
    color: #9b7c3e;
}

.rnd-request-back:focus-visible {
    outline: 3px solid rgba(184, 155, 94, 0.32);
    outline-offset: 3px;
}

@media (min-width: 901px) {
    .rnd-check-section.rnd-check-inline {
        display: none;
        margin-bottom: 64px;
    }

    .content-block.rnd-tool-expanded .rnd-check-section.rnd-check-inline {
        display: block;
        animation: rnd-expand-tool 0.35s ease both;
    }

    .content-block.rnd-tool-expanded .rnd-sidebar-launch {
        display: none;
    }
}

@media (max-width: 900px) {
    .rnd-sidebar-launch {
        display: none;
    }

    .content-block:not(.rnd-tool-expanded) .rnd-check-inline .rnd-check-shell {
        background: #f6f1e6;
        border-color: #ddd6c8;
        border-radius: 10px;
        box-shadow: none;
    }

    .content-block:not(.rnd-tool-expanded) .rnd-check-inline .rnd-check-intro {
        padding: 28px 24px;
    }

    .content-block:not(.rnd-tool-expanded) .rnd-check-inline .rnd-check-intro h2 {
        margin: 0 0 12px;
        font-size: 1.2rem;
        line-height: 1.25;
    }

    .content-block:not(.rnd-tool-expanded) .rnd-check-inline .rnd-check-intro > p:first-of-type {
        margin: 0 0 20px;
        color: #5c5c5c;
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .content-block:not(.rnd-tool-expanded) .rnd-check-inline .rnd-check-start {
        width: 100%;
        margin-top: 0;
    }

    .content-block:not(.rnd-tool-expanded) .rnd-check-inline .rnd-check-benefits {
        margin: 0 0 18px;
    }

    .content-block:not(.rnd-tool-expanded) .rnd-check-inline .rnd-check-disclaimer {
        display: none;
    }
}

@media (max-width: 600px) {
    .rnd-result-actions .btn {
        padding-right: 14px;
        padding-left: 14px;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.35;
        text-align: center;
    }
}

@keyframes rnd-expand-tool {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (min-width: 700px) {
    .rnd-check-section {
        margin: 64px 0 72px;
    }

    .rnd-check-intro,
    .rnd-check-app {
        padding: 38px 40px;
    }

    .rnd-check-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .rnd-check-start {
        width: auto;
    }

    .rnd-options--building {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rnd-options--short {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rnd-split-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rnd-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rnd-result-actions {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rnd-check-progress-track span,
    .rnd-choice-content {
        transition: none;
    }

    .content-block.rnd-tool-expanded .rnd-check-section.rnd-check-inline {
        animation: none;
    }
}
