/*
|--------------------------------------------------------------------------
| JustDate24 – Unterseite „Nutzungsbedingungen“
|--------------------------------------------------------------------------
| Pfad: /css/nutzungsbedingungen.css
|--------------------------------------------------------------------------
*/

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=Roboto:wght@400;500;700;900&display=swap');

:root {
    --terms-navy: #082f6b;
    --terms-navy-dark: #06265a;
    --terms-orange: #ff6329;
    --terms-orange-dark: #e84f18;
    --terms-blue: #3375c7;
    --terms-green: #76b657;
    --terms-red: #f05367;
    --terms-text: #183861;
    --terms-muted: #5b6e88;
    --terms-border: #dce5ef;
    --terms-soft: #f6f9fd;
    --terms-white: #ffffff;
}

.terms-page,
.terms-page * {
    box-sizing: border-box;
}

.terms-page {
    width: 100%;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .98), transparent 36%),
        linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    color: var(--terms-text);
    font-family: 'Roboto', Arial, sans-serif;
    padding: 8px 0 28px;
}

.terms-page a {
    color: inherit;
}

.terms-shell {
    width: min(100% - 44px, 1180px);
    margin: 0 auto;
}

.terms-icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.terms-skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    padding: 10px 14px;
    border-radius: 4px;
    background: var(--terms-navy);
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-150%);
}

.terms-skip-link:focus {
    transform: translateY(0);
}

/* BREADCRUMB */

.terms-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 27px;
    margin-bottom: 8px;
    color: #365273;
    font-size: 12px;
    font-weight: 700;
}

.terms-breadcrumb a {
    text-decoration: none;
}

.terms-breadcrumb a:hover {
    color: var(--terms-orange);
}

/* HERO */

.terms-hero {
    display: grid;
    grid-template-columns: minmax(0, 57%) minmax(300px, 43%);
    min-height: 220px;
    margin-bottom: 13px;
    overflow: hidden;
    border-bottom: 1px solid #e5ebf2;
    background:
        linear-gradient(100deg, #fff 0%, #fff 59%, #f7faff 100%);
}

.terms-hero-copy {
    position: relative;
    z-index: 2;
    padding: 23px 35px 24px 14px;
}

.terms-hero-copy::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 0;
    width: 95px;
    height: 3px;
    background: var(--terms-orange);
}

.terms-hero h1 {
    margin: 0;
    color: var(--terms-navy);
    font-size: clamp(40px, 4.3vw, 58px);
    font-weight: 900;
    letter-spacing: -1.7px;
    line-height: 1;
}

.terms-hero-script {
    margin: 10px 0 13px;
    color: var(--terms-orange);
    font-family: 'Caveat', cursive;
    font-size: clamp(25px, 2.5vw, 35px);
    font-weight: 600;
    line-height: 1;
}

.terms-hero-text {
    max-width: 590px;
    margin: 0;
    color: #29496f;
    font-size: 15px;
    line-height: 1.7;
}

.terms-date {
    display: inline-flex;
    margin: 12px 0 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eff5fc;
    color: var(--terms-navy);
    font-size: 12px;
    font-weight: 800;
}

.terms-hero-media {
    position: relative;
    min-width: 0;
    min-height: 220px;
}

.terms-hero-media::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 1;
    width: 80px;
    background: linear-gradient(90deg, #fff, transparent);
}

.terms-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    object-position: center;
}

/* LAYOUT */

.terms-layout {
    display: grid;
    grid-template-columns: 315px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.terms-sidebar {
    min-width: 0;
}

.terms-toc {
    position: sticky;
    top: 12px;
    overflow: hidden;
    border: 1px solid var(--terms-border);
    border-radius: 9px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 4px 16px rgba(22, 51, 90, .04);
}

.terms-toc h2 {
    margin: 0;
    padding: 18px 18px 13px;
    color: var(--terms-navy);
    font-size: 17px;
    font-weight: 900;
}

.terms-toc ol,
.terms-mobile-toc ol {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0 9px 11px;
    list-style: none;
}

.terms-toc ol {
    max-height: min(64vh, 630px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #b8c9dd transparent;
}

.terms-toc a,
.terms-mobile-toc a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 4px 8px;
    border-left: 2px solid transparent;
    border-radius: 4px;
    color: #28486f;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.terms-toc a > span:first-child,
.terms-mobile-toc a > span:first-child {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--terms-navy);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.terms-toc a:hover,
.terms-toc a.is-active {
    border-left-color: var(--terms-orange);
    background: #fff7f2;
    color: var(--terms-orange-dark);
}

.terms-toc a.is-active > span:first-child {
    background: var(--terms-orange);
}

.terms-toc-message {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 5px 9px 9px;
    padding: 14px 11px;
    border-top: 1px solid #e7ecf2;
    background: linear-gradient(135deg, #fffaf7, #fff);
}

.terms-toc-message > span {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff0e8;
    color: var(--terms-orange);
}

.terms-toc-message svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.terms-toc-message p {
    margin: 0;
    color: #365273;
    font-size: 11px;
    line-height: 1.55;
}

.terms-mobile-toc {
    display: none;
}

/* RECHTSTEXT */

.terms-legal-content {
    min-width: 0;
    border: 1px solid var(--terms-border);
    border-radius: 9px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 4px 16px rgba(22, 51, 90, .035);
}

.terms-legal-section {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 13px;
    padding: 18px 22px 19px;
    scroll-margin-top: 20px;
}

.terms-legal-section + .terms-legal-section {
    border-top: 1px solid #e5ebf2;
}

.terms-legal-heading {
    display: contents;
}

.terms-section-icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #eef5fd;
    color: var(--terms-blue);
}

.terms-section-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.terms-legal-heading > div {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
    padding-top: 4px;
}

.terms-section-number,
.terms-legal-heading h2 {
    color: var(--terms-navy);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
}

.terms-legal-heading h2 {
    margin: 0;
}

.terms-legal-copy {
    grid-column: 2;
    min-width: 0;
    color: #29486e;
    font-size: 14px;
    line-height: 1.72;
}

.terms-legal-copy > p {
    margin: 0 0 10px;
}

.terms-clause-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 22px;
}

.terms-clause-list > li {
    padding-left: 4px;
}

.terms-clause-list > li::marker {
    color: var(--terms-navy);
    font-weight: 900;
}

.terms-clause-main {
    min-width: 0;
}

.terms-clause-extra {
    margin: 7px 0 0;
}

.terms-address {
    margin: 9px 0 4px;
    padding: 10px 12px;
    border-left: 3px solid var(--terms-orange);
    border-radius: 0 5px 5px 0;
    background: #fff8f4;
    color: #29486e;
    font-style: normal;
    line-height: 1.55;
}

.terms-legal-copy a {
    color: #175da9;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.terms-bullet-list {
    display: grid;
    gap: 5px;
    margin: 8px 0 2px;
    padding-left: 20px;
}

.terms-bullet-list li::marker {
    color: var(--terms-orange);
}

/* FRAGEN-KARTE */

.terms-question-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    min-height: 86px;
    margin-top: 11px;
    padding: 14px 21px;
    border: 1px solid #f0e2d8;
    border-radius: 9px;
    background:
        linear-gradient(90deg, #fff8f3 0%, #fff 55%, #fff8f3 100%);
}

.terms-question-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: #fff;
    color: var(--terms-orange);
}

.terms-question-icon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.terms-question-card h2 {
    margin: 0;
    color: var(--terms-navy);
    font-size: 15px;
    font-weight: 900;
}

.terms-question-card p {
    margin: 4px 0 0;
    color: #506681;
    font-size: 9px;
}

.terms-question-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.terms-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 34px;
    padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease;
}

.terms-button:hover {
    transform: translateY(-1px);
}

.terms-button-primary {
    background: linear-gradient(180deg, #ff7a3e, var(--terms-orange));
    color: #fff !important;
    box-shadow: 0 4px 11px rgba(255,99,41,.2);
}

.terms-button-secondary {
    border-color: #ff9c78;
    background: #fff;
    color: var(--terms-orange-dark);
}

/* VERTRAUENSLEISTE */

.terms-trustbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 12px;
    padding: 13px 5px 0;
    border-top: 1px solid #e1e7ef;
}

.terms-trust-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 58px;
    padding: 0 16px;
    border-right: 1px solid #e1e7ef;
}

.terms-trust-item:last-child {
    border-right: 0;
}

.terms-trust-icon {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
}

.terms-trust-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.terms-trust-green {
    color: var(--terms-green);
}

.terms-trust-blue {
    color: var(--terms-blue);
}

.terms-trust-red {
    color: var(--terms-red);
}

.terms-trust-item p {
    margin: 0;
    color: #50647f;
    font-size: 10px;
    line-height: 1.5;
}

.terms-trust-item strong {
    display: block;
    margin-bottom: 3px;
    color: var(--terms-navy);
    font-size: 9px;
}

/* TABLET */

@media (max-width: 980px) {
    .terms-shell {
        width: min(100% - 28px, 900px);
    }

    .terms-layout {
        grid-template-columns: 275px minmax(0, 1fr);
    }

    .terms-toc a {
        font-size: 10px;
    }

    .terms-question-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .terms-question-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .terms-question-actions .terms-button {
        flex: 1;
    }

    .terms-trustbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 14px;
    }

    .terms-trust-item:nth-child(2) {
        border-right: 0;
    }
}

/* MOBILE */

@media (max-width: 760px) {
    .terms-page {
        padding-top: 3px;
    }

    .terms-shell {
        width: min(100% - 18px, 650px);
    }

    .terms-breadcrumb {
        overflow-x: auto;
        white-space: nowrap;
    }

    .terms-hero {
        grid-template-columns: 1fr;
    }

    .terms-hero-copy {
        padding: 24px 15px 22px;
    }

    .terms-hero-media,
    .terms-hero-media img {
        min-height: 205px;
    }

    .terms-hero-media::before {
        display: none;
    }

    .terms-layout {
        grid-template-columns: 1fr;
    }

    .terms-toc {
        display: none;
    }

    .terms-mobile-toc {
        display: block;
        margin-bottom: 10px;
        border: 1px solid var(--terms-border);
        border-radius: 8px;
        background: #fff;
    }

    .terms-mobile-toc summary {
        padding: 13px 15px;
        color: var(--terms-navy);
        cursor: pointer;
        font-size: 13px;
        font-weight: 900;
    }

    .terms-mobile-toc ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 9px 11px;
    }

    .terms-mobile-toc a {
        font-size: 10px;
    }

    .terms-legal-section {
        grid-template-columns: 43px minmax(0, 1fr);
        gap: 10px;
        padding: 16px 14px 17px;
    }

    .terms-section-icon {
        width: 39px;
        height: 39px;
    }

    .terms-section-icon svg {
        width: 25px;
        height: 25px;
    }

    .terms-legal-heading > div {
        align-items: flex-start;
    }

    .terms-section-number,
    .terms-legal-heading h2 {
        font-size: 17px;
    }

    .terms-legal-copy {
        grid-column: 1 / -1;
        font-size: 13px;
        line-height: 1.7;
    }

    .terms-question-card {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .terms-hero h1 {
        font-size: 39px;
    }

    .terms-hero-script {
        font-size: 26px;
    }

    .terms-mobile-toc ol {
        grid-template-columns: 1fr;
    }

    .terms-question-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .terms-question-icon {
        margin: 0 auto;
    }

    .terms-question-actions {
        display: grid;
    }

    .terms-trustbar {
        grid-template-columns: 1fr;
    }

    .terms-trust-item,
    .terms-trust-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid #e1e7ef;
        padding: 11px 5px;
    }

    .terms-trust-item:last-child {
        border-bottom: 0;
    }
}
