/**
 * ==========================================================
 * Legal Page Styles
 * ==========================================================
 *
 * Styles für rechtliche Informationsseiten.
 *
 * Enthält:
 * - Inhaltslayout
 * - Seitentitel
 * - Überschriften
 * - Fließtext
 * - Listen
 * - Verlinkungen
 * - Responsive Anpassungen
 *
 * Diese Datei wird ausschließlich auf rechtlichen Seiten wie
 * Impressum, Datenschutz, AGB, Widerruf und Versand geladen.
 */


/* ==========================================================
   Inhaltslayout
========================================================== */

.content-page {
    padding: 40px 24px;
}

.content-page__article {
    width: 100%;
    max-width: 820px;

    margin: 0 auto;
    padding: 0;
}


/* ==========================================================
   Seitentitel
========================================================== */

.content-page__title {
    margin: 0 0 48px;

    font-size: clamp(36px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
}


/* ==========================================================
   Inhaltsüberschriften
========================================================== */

.content-page__body h2 {
    margin: 48px 0 16px;

    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
}

.content-page__body h3 {
    margin: 36px 0 12px;

    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
}


/* ==========================================================
   Fließtext
========================================================== */

.content-page__body p,
.content-page__body li {
    font-size: 17px;
    line-height: 1.75;
}

.content-page__body p {
    margin: 0 0 20px;
}

.content-page__body strong {
    font-weight: 600;
}


/* ==========================================================
   Listen
========================================================== */

.content-page__body ul,
.content-page__body ol {
    margin: 0 0 28px;
    padding-left: 24px;
}

.content-page__body ul > li {
    list-style: disc;
}

.content-page__body ol > li {
    list-style: decimal;
}

.content-page__body li + li {
    margin-top: 8px;
}


/* ==========================================================
   Verlinkungen
========================================================== */

.content-page__body a {
    color: inherit;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.content-page__body a:hover {
    text-decoration-thickness: 2px;
}


/* ==========================================================
   Elektronische Widerrufsfunktion
========================================================== */

.withdrawal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 12px 24px;

    color: #ffffff;
    background-color: #8b6b47;

    border: 1px solid #8b6b47;
    border-radius: 4px;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.content-page__body .withdrawal-button {
    color: #ffffff;
    text-decoration: none;
}

.withdrawal-button:hover,
.withdrawal-button:focus-visible {
    color: #ffffff;
    background-color: #725536;
    border-color: #725536;
}

.withdrawal-button:active {
    transform: translateY(1px);
}

.withdrawal-form-section {
    scroll-margin-top: 32px;

    margin-top: 56px;
    padding: 32px;

    background-color: rgba(255, 255, 255, 0.22);

    border: 1px solid rgba(139, 107, 71, 0.22);
    border-radius: 12px;
}

.withdrawal-form-section > h2:first-child {
    margin-top: 0;
}

.withdrawal-form {
    display: grid;
    gap: 22px;

    margin-top: 28px;
}

.withdrawal-form__field {
    display: grid;
    gap: 7px;
}

.withdrawal-form__field label {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.withdrawal-form__field input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;

    color: #222222;
    background-color: #ffffff;

    border: 1px solid rgba(34, 34, 34, 0.35);
    border-radius: 4px;
}

.withdrawal-form__field input:focus {
    border-color: #8b6b47;
    outline: 2px solid rgba(139, 107, 71, 0.22);
    outline-offset: 1px;
}

.withdrawal-form__field small,
.withdrawal-form__required {
    color: rgba(34, 34, 34, 0.68);

    font-size: 14px;
    line-height: 1.55;
}

.content-page__body .withdrawal-form__required {
    margin: -8px 0 0;
}

.withdrawal-form__declaration,
.withdrawal-notice,
.withdrawal-sample {
    padding: 20px;

    background-color: #f5f1e8;

    border: 1px solid rgba(34, 34, 34, 0.12);
    border-radius: 8px;
}

.withdrawal-form__declaration p,
.withdrawal-notice p,
.withdrawal-sample p:last-child {
    margin-bottom: 0;
}

.withdrawal-notice--success {
    border-color: rgba(75, 108, 76, 0.4);
}

.withdrawal-notice--error {
    border-color: rgba(150, 62, 45, 0.45);
}

.withdrawal-notice h3 {
    margin-top: 0;
}

.withdrawal-form__honeypot {
    position: absolute !important;
    left: -10000px !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;
}


/* ==========================================================
   Mobile
========================================================== */

@media (max-width: 600px) {
    .content-page {
        padding: 28px 20px;
    }

    .content-page__title {
        margin-bottom: 36px;
    }

    .content-page__body h2 {
        margin-top: 40px;

        font-size: 23px;
    }

    .content-page__body h3 {
        margin-top: 30px;

        font-size: 19px;
    }

    .content-page__body p,
    .content-page__body li {
        font-size: 16px;
        line-height: 1.7;
    }

    .withdrawal-form-section {
        margin-top: 44px;
        padding: 22px 18px;
    }

    .withdrawal-button {
        width: 100%;
    }
}
