/* =====================================================
NUTZUNGSBEDINGUNGEN – JUSTLYKKE
Datei: nutzungsbedingungen.css
Designbasis: Datenschutzerklärung
===================================================== */

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

.terms-page {
    --terms-bg: #F5EFE8;
    --terms-surface: #FDF9F7;
    --terms-surface-soft: #F7F2ED;
    --terms-text: #555555;
    --terms-title: #343434;
    --terms-green: #7F8D73;
    --terms-green-dark: #5E6D54;
    --terms-rose: #D6A09D;
    --terms-border: #E8E2DD;

    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--terms-bg);
    color: var(--terms-text);
    font-family: "Inter", Arial, sans-serif;
}

/* =====================================================
HERO
===================================================== */

.terms-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(470px, 58vw, 720px);
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(252, 248, 245, 0.98) 0%,
            rgba(252, 248, 245, 0.92) 38%,
            rgba(252, 248, 245, 0.50) 68%,
            rgba(252, 248, 245, 0.12) 100%
        ),
        url("/img/datenschutz_img_1.png") center / cover no-repeat;
}

.terms-hero-inner {
    width: min(100%, 1440px);
    min-height: inherit;
    margin: 0 auto;
    padding: clamp(70px, 9vw, 128px) clamp(24px, 8.5vw, 122px) 150px;
    display: flex;
    align-items: center;
}

.terms-hero-content {
    width: min(100%, 720px);
}

.terms-eyebrow {
    margin: 0 0 18px;
    color: var(--terms-green-dark);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.terms-hero h1 {
    margin: 0 0 22px;
    color: var(--terms-title);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(44px, 6vw, 56px);
    font-weight: 600;
    line-height: 1.06;
    overflow-wrap: anywhere;
}

.terms-version {
    display: inline-flex;
    min-height: 40px;
    margin: 0 0 25px;
    padding: 0 17px;
    align-items: center;
    border: 1px solid rgba(127, 141, 115, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--terms-green-dark);
    font-size: 17px;
    font-weight: 700;
}

.terms-intro {
    max-width: 690px;
    margin: 0;
    color: #555555;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.72;
}

/* =====================================================
CONTAINER
===================================================== */

.terms-container {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 40px), 1100px);
    margin: -88px auto 110px;
    padding: clamp(30px, 5vw, 62px);
    border: 1px solid rgba(232, 226, 221, 0.88);
    border-radius: 40px;
    background: var(--terms-surface);
    box-shadow: 0 18px 52px rgba(70, 50, 40, 0.07);
}

.terms-container a {
    color: var(--terms-green-dark);
    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.terms-container a:hover {
    color: #44513D;
}

.terms-container a:focus-visible,
.terms-contact-button:focus-visible {
    outline: 3px solid rgba(127, 141, 115, 0.35);
    outline-offset: 4px;
}

/* =====================================================
KURZÜBERSICHT
===================================================== */

.terms-key-points {
    margin: 0 0 35px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid #DDE4D5;
    border-radius: 26px;
    background: #F2F6EC;
}

.terms-key-points h2,
.terms-toc h2 {
    margin: 0 0 20px;
    color: #3F523B;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 600;
}

.terms-key-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.terms-key-item {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(127, 141, 115, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.terms-key-item > span {
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #DCE8D2;
    color: #526A48;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
}

.terms-key-item p {
    margin: 0;
    color: #596252;
    font-size: 15px;
    line-height: 1.55;
}

.terms-key-item strong {
    color: #374B34;
    font-size: 16px;
}

/* =====================================================
INHALTSVERZEICHNIS
===================================================== */

.terms-toc {
    margin-bottom: 56px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--terms-border);
    border-radius: 26px;
    background: var(--terms-surface-soft);
}

.terms-toc ol {
    margin: 0;
    padding-left: 24px;
    columns: 2;
    column-gap: 54px;
}

.terms-toc li {
    margin: 0 0 10px;
    padding-left: 5px;
    break-inside: avoid;
    color: #7B756E;
    font-size: 15px;
    line-height: 1.5;
}

.terms-toc a {
    color: #5C6756;
    font-weight: 600;
    text-decoration: none;
}

.terms-toc a:hover {
    text-decoration: underline;
}

/* =====================================================
RECHTSTEXT
===================================================== */

.terms-content {
    scroll-margin-top: 20px;
}

.terms-section {
    scroll-margin-top: 28px;
}

.terms-section + .terms-section {
    margin-top: 64px;
    padding-top: 4px;
}

.terms-section h2 {
    margin: 0 0 22px;
    color: var(--terms-title);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(27px, 3.2vw, 35px);
    font-weight: 600;
    line-height: 1.22;
}

.terms-section h3 {
    margin: 30px 0 14px;
    color: #41413E;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(22px, 2.4vw, 27px);
    font-weight: 600;
}

.terms-section p,
.terms-section li,
.terms-address {
    color: var(--terms-text);
    font-size: clamp(16px, 1.65vw, 18px);
    line-height: 1.82;
}

.terms-section p {
    margin: 0 0 19px;
}

.terms-section ul,
.terms-section ol {
    margin: 22px 0 24px;
    padding-left: 29px;
}

.terms-section li {
    margin-bottom: 9px;
    padding-left: 4px;
}

.terms-address {
    margin: 20px 0 24px;
    padding: 22px 24px;
    border-left: 4px solid #AAB99C;
    border-radius: 0 16px 16px 0;
    background: #F7F3EF;
    font-style: normal;
}

.terms-address-compact {
    max-width: 620px;
}

.terms-notice {
    margin: 28px 0;
    padding: 22px 24px;
    border: 1px solid #E9D9B6;
    border-radius: 18px;
    background: #FFF8E9;
    color: #655B48;
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.65;
}

.terms-notice strong {
    color: #514837;
}

/* =====================================================
WIDERRUF
===================================================== */

.terms-withdrawal {
    padding: clamp(24px, 4vw, 36px);
    border: 2px solid #D8E0CE;
    border-radius: 26px;
    background: #F5F8F1;
}

.terms-withdrawal h2 {
    color: #3F553A;
}

.terms-form-template {
    margin-top: 25px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px dashed #BFB6AE;
    border-radius: 20px;
    background: #FFFFFF;
}

.terms-form-template p {
    overflow-wrap: anywhere;
}

/* =====================================================
KONTAKTBOX
===================================================== */

.terms-contact-box {
    margin-top: 76px;
    padding: 34px clamp(24px, 4vw, 48px);
    border-radius: 24px;
    background: #F7F2EF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 38px;
}

.terms-contact-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 25px;
}

.terms-contact-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    object-fit: contain;
}

.terms-contact-text h2 {
    margin: 0 0 8px;
    color: #3A3A3A;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 500;
}

.terms-contact-text p {
    margin: 0;
    color: #666666;
    font-size: 17px;
    line-height: 1.55;
}

.terms-contact-button,
.terms-contact-button:visited {
    min-width: 250px;
    min-height: 60px;
    padding: 12px 24px;
    border-radius: 15px;
    background: var(--terms-rose);
    color: #FFFFFF !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 650;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.terms-contact-button:hover {
    background: #C78F8B;
    transform: translateY(-1px);
}

/* =====================================================
RESPONSIVE
===================================================== */

@media (max-width: 900px) {
    .terms-hero {
        background-position: 62% center;
    }

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

    .terms-toc ol {
        columns: 1;
    }

    .terms-contact-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .terms-contact-left {
        flex-direction: column;
    }

    .terms-contact-button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 680px) {
    .terms-hero {
        min-height: auto;
        background:
            linear-gradient(rgba(252, 248, 245, 0.93), rgba(252, 248, 245, 0.93)),
            url("/img/datenschutz_img_1.png") 68% center / cover no-repeat;
    }

    .terms-hero-inner {
        min-height: 500px;
        padding: 64px 22px 115px;
        align-items: center;
    }

    .terms-container {
        width: min(calc(100% - 24px), 1100px);
        margin-top: -66px;
        margin-bottom: 70px;
        padding: 27px 21px 32px;
        border-radius: 27px;
    }

    .terms-key-points,
    .terms-toc,
    .terms-withdrawal {
        border-radius: 20px;
    }

    .terms-section + .terms-section {
        margin-top: 50px;
    }

    .terms-address,
    .terms-notice {
        padding: 18px;
    }

    .terms-contact-box {
        margin-top: 58px;
        padding: 28px 21px;
        border-radius: 20px;
    }
}

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

    .terms-intro {
        font-size: 17px;
    }

    .terms-version {
        font-size: 15px;
    }

    .terms-section h2 {
        font-size: 27px;
    }

    .terms-section p,
    .terms-section li,
    .terms-address {
        font-size: 16px;
        line-height: 1.72;
    }

    .terms-form-template {
        padding: 18px;
    }
}

/* =====================================================
DRUCKANSICHT
===================================================== */

@media print {
    .terms-page {
        background: #FFFFFF;
    }

    .terms-hero {
        min-height: auto;
        background: none;
    }

    .terms-hero-inner {
        min-height: auto;
        padding: 30px 0;
    }

    .terms-container {
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .terms-key-points,
    .terms-toc,
    .terms-contact-box {
        break-inside: avoid;
    }

    .terms-contact-button {
        display: none;
    }

    .terms-section {
        break-inside: auto;
    }

    .terms-section h2,
    .terms-section h3 {
        break-after: avoid;
    }
}
