/* =====================================================
   KIDS AM DÖNBERG E.V.
   WIEDERVERWENDBARE KOMPONENTEN
   ===================================================== */


/* =====================================================
   ALLGEMEINE INHALTSBEREICHE
   ===================================================== */

.section-content {
    width: 100%;
    max-width: var(--page-width);

    margin-inline: auto;
    padding: 30px 20px;
}

/* ----------------------------------------
   Globale Rücknavigation
   ---------------------------------------- */
.global-back-navigation {
    background-color: var(--background-light);
    border-bottom: 1px solid var(--white);
}

.global-back-navigation-inner {
    width: calc(100% - 40px);
    max-width: var(--page-width);
    margin-inline: auto;
    padding: 15px 0 0;
}

.global-back-navigation-bottom {
    display: none;

    padding: 0 0 5px ;
    border-top: 1px solid var(--white);
    border-bottom: 0;
}

.global-back-navigation-bottom.is-visible {
    display: block;
}

/* =====================================================
   SEKTIONSHINTERGRÜNDE
   ===================================================== */

.section-white {
    background-color: var(--white);
}

.section-beige {
    background-color: var(--background-beige);
}

.section-light-blue {
    background-color: var(--background-light);
}

.section-blue {
    background-color: var(--blue);
    color: var(--white);
}


/* =====================================================
   ABSCHNITTSÜBERSCHRIFTEN
   ===================================================== */

.section-header {
    margin-bottom: 24px;
}

.section-kicker {
    margin: 0 0 6px;

    color: var(--green);

    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-header h2 {
    margin: 0 0 12px;

    color: var(--blue);

    font-size: 1.8rem;
    line-height: 1.15;
}

.section-intro {
    margin: 0 0 16px;

    font-size: 1.05rem;
    line-height: 1.5;
}


/* Zentrierte Variante */

.section-header-centered {
    text-align: center;
}

.section-header-centered .section-intro {
    max-width: 420px;

    margin-inline: auto;
}


/* =====================================================
   BUTTONS
   ===================================================== */

.button {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    min-width: 200px;
    max-width: 100%;

    padding: 12px 24px;

    border-radius: 999px;

    font-weight: 700;
    text-decoration: none;

    transition:
        transform 0.15s ease,
        filter 0.15s ease,
        box-shadow 0.15s ease;
}


/* Button-Varianten */

.button-primary {
    color: var(--white);
    background-color: var(--pink);
}

.button-secondary {
    color: var(--white);
    background-color: var(--light-blue);
}

.button-green {
    color: var(--white);
    background-color: var(--green);
}


/*Button-Ausrichtung */

.button-centered {
    display: flex;
    margin-inline: auto;
}


/* Button-Zustände */

.button:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(1px);
}

.button:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}


/* =====================================================
   ZURÜCK-LINK
   ===================================================== */

.page-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;

    color: var(--blue);

    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.page-back img {
    width: 22px;
    height: 22px;

    flex-shrink: 0;
}

.page-back:hover {
    text-decoration: underline;
}

.page-back:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}


/* =====================================================
   SEITENKOPF FÜR UNTERSEITEN
   ===================================================== */

.page-header {
    background-color: var(--background-light);
}

.page-header-content {
    padding-top: 10px;
    padding-bottom: 20px;
}

.page-header h1 {
    margin: 0 0 14px;

    color: var(--blue);

    font-size: clamp(1.8rem, 8vw, 2.2rem);
    line-height: 1.1;

    overflow-wrap: break-word;
}

.page-header-content > p:last-child {

    margin: 0;

    font-size: 1.05rem;
    line-height: 1.55;
}


/* =====================================================
   E-MAIL-KONTAKT
   ===================================================== */

.email-contact-note {
    margin: 20px 0 8px;

    font-size: 0.9rem;
    text-align: center;
}

.copy-email {
    display: flex;
    align-items: center;
    gap: 12px;

    width: fit-content;
    margin-inline: auto;
    padding: 10px 14px;

    border: 1px solid var(--blue);
    border-radius: 10px;

    color: var(--blue);
    background-color: var(--white);

    font: inherit;

    cursor: pointer;
}

.copy-email:hover {
    background-color: var(--background-light);
}

.copy-email:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

.copy-email-label {
    font-size: 0.8rem;
    font-weight: 700;
}

.copy-email-feedback {
    min-height: 1.4em;

    margin: 6px 0 0;

    color: var(--green);

    font-size: 0.85rem;
    text-align: center;
}


/* =====================================================
   SOCIAL MEDIA
   ===================================================== */

.social-section {
    color: var(--white);
    background-color: var(--blue);
}

.social-content {
    text-align: center;
}

.social-kicker {
    margin: 0 0 6px;

    color: var(--yellow);

    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.social-content h2 {
    margin: 0 0 16px;

    color: var(--white);

    font-size: 1.8rem;
    line-height: 1.15;
}

.social-text {
    max-width: 480px;

    margin: 0 auto 28px;

    line-height: 1.5;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 24px;

    color: var(--blue);
    background-color: var(--white);

    border-radius: 999px;

    font-weight: 700;
    text-decoration: none;

    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}

.social-icon {
    width: 24px;
    height: 24px;

    object-fit: contain;
    flex-shrink: 0;
}

.social-link:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
}

.social-link:active {
    transform: translateY(1px);
}

.social-link:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}


/* =====================================================
   RECHTLICHE SEITEN
   ===================================================== */

.legal-page h2 {
    margin: 36px 0 12px;

    color: var(--blue);

    font-size: 1.35rem;
    line-height: 1.25;
}

.legal-page h2:first-child {
    margin-top: 0;
}

.legal-page p {
    margin: 0 0 20px;

    line-height: 1.65;
}

.legal-page a {
    color: var(--blue);

    text-decoration: underline;
}

.legal-page a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}


/* =====================================================
   FEHLER- UND HINWEISSEITEN
   ===================================================== */

.error-page {
    max-width: 720px;
}

.error-page h2 {
    margin: 0 0 16px;

    color: var(--blue);

    font-size: 1.6rem;
    line-height: 1.2;
}

.error-page p {
    margin: 0 0 28px;

    font-size: 1.05rem;
    line-height: 1.6;
}


/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
    color: var(--white);
    background-color: var(--blue);
}

.footer-content {
    width: 100%;
    max-width: var(--page-width);

    display: grid;
    gap: 32px;

    margin-inline: auto;
    padding: 20px 20px 0;
}


/* Verein */

.footer-logo {
    display: block;

    width: 130px;
    height: auto;

    margin-bottom: 16px;
}

.footer-slogan {
    margin: 0 0 12px;

    font-weight: 700;
}

.footer-email {
    color: var(--white);

    text-decoration: none;
}

.footer-email:hover {
    text-decoration: underline;
}


/* Social Media */

.footer-social {
    display: flex;
    gap: 14px;

    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: var(--white);

    border-radius: 50%;
}

.footer-social img {
    width: 24px;
    height: 24px;

    object-fit: contain;
}

.footer-social a:hover {
    transform: translateY(-1px);
}

.footer-social a:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}


/* Navigation */

.footer-nav h2 {
    margin: 0 0 16px;

    color: var(--yellow);

    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-nav ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--white);

    text-decoration: none;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-nav a:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

.footer-legal {
    margin-top: 36px;
}


/* Unterer Bereich */

.footer-bottom {
    width: calc(100% - 40px);
    max-width: calc(var(--page-width) - 40px);

    margin-inline: auto;
    padding: 14px 0 16px;

    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-bottom p {
    margin: 0;

    font-size: 0.8rem;
    line-height: 1.3;
}


/* =====================================================
   NACH-OBEN-BUTTON
   ===================================================== */

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 100;

    width: 52px;
    height: 52px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.back-to-top img {
    display: block;

    width: 100%;
    height: 100%;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top.is-visible:hover {
    transform: translateY(-2px);
}

.back-to-top:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (min-width: 768px) {

    /* Buttons */

    .button {
        min-width: 220px;
    }


    /* Social Media */

    .social-links {
        flex-direction: row;
        justify-content: center;
    }

    .social-link {
        min-width: 200px;
    }


    /* Footer */

    .footer-content {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 60px;

        padding-top: 20px;
        padding-bottom: 10px;
    }


    /* Nach-oben-Button */

    .back-to-top {
        right: 28px;
        bottom: 28px;
    }

}


/* =====================================================
   DESKTOP
   ===================================================== */

@media (min-width: 1000px) {

}