/* ==========================================================================
   Satzung
   Datei:
   /frontend/assets/css/pages/club/chater/chater.css
   ========================================================================== */

.charter-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}


/* ==========================================================================
   Seitenkopf
   ========================================================================== */

.charter-header {
    max-width: 900px;
    margin-bottom: 2.5rem;
}

.charter-header h1 {
    margin: 0;
}

.charter-header__subtitle {
    margin: 1rem 0 0;
    color: var(--color-text, #f8fafc);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 700;
    line-height: 1.45;
}

.charter-header__meta {
    margin: 0.45rem 0 0;
    color: var(--color-text-muted, #94a3b8);
    font-size: 0.98rem;
    line-height: 1.6;
}


/* ==========================================================================
   Hinweis zur offiziellen Fassung
   ========================================================================== */

.charter-notice {
    max-width: 1000px;
    margin-bottom: 2rem;
    padding: 1.5rem 1.75rem;
    background:
        linear-gradient(
            145deg,
            rgba(30, 58, 95, 0.86),
            rgba(17, 35, 61, 0.96)
        );
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-left: 5px solid var(--color-primary, #3b82f6);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.charter-notice h2 {
    margin: 0 0 0.85rem;
    color: var(--color-text, #f8fafc);
    font-size: 1.2rem;
    line-height: 1.4;
}

.charter-notice p {
    margin: 0 0 0.75rem;
    color: var(--color-text-muted, #cbd5e1);
    line-height: 1.75;
}

.charter-notice p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   Inhaltsverzeichnis
   ========================================================================== */

.charter-navigation {
    max-width: 1000px;
    margin-bottom: 3rem;
    padding: 1.6rem 1.75rem;
    background: rgba(8, 22, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.charter-navigation h2 {
    margin: 0 0 1.25rem;
    color: var(--color-text, #f8fafc);
    font-size: 1.2rem;
    line-height: 1.4;
}

.charter-navigation__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: charter-navigation;
}

.charter-navigation__list li {
    min-width: 0;
}

.charter-navigation__list a {
    display: flex;
    align-items: flex-start;
    min-height: 100%;
    padding: 0.85rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 10px;
    color: #bfdbfe;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.charter-navigation__list a:hover,
.charter-navigation__list a:focus-visible {
    background: rgba(37, 99, 235, 0.22);
    border-color: rgba(96, 165, 250, 0.42);
    color: #ffffff;
    transform: translateY(-1px);
}

.charter-navigation__list a:focus-visible {
    outline: 2px solid rgba(147, 197, 253, 0.9);
    outline-offset: 3px;
}


/* ==========================================================================
   Satzungsabschnitte
   ========================================================================== */

.charter-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.charter-section {
    scroll-margin-top: 2rem;
    padding: 1.8rem;
    background:
        linear-gradient(
            145deg,
            rgba(21, 43, 72, 0.84),
            rgba(12, 27, 49, 0.95)
        );
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.charter-section__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.charter-section__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4rem;
    min-height: 3rem;
    padding: 0.45rem 0.8rem;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 10px;
    color: #93c5fd;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.charter-section__header h2 {
    margin: 0;
    color: var(--color-text, #f8fafc);
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
    line-height: 1.35;
}

.charter-section__content {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}


/* ==========================================================================
   Einzelne Absätze
   ========================================================================== */

.charter-paragraph {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: rgba(8, 22, 42, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
}

.charter-paragraph__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    min-height: 2.35rem;
    padding: 0.35rem 0.55rem;
    background: rgba(30, 64, 175, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 8px;
    color: #bfdbfe;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
}

.charter-paragraph__text {
    min-width: 0;
}

.charter-paragraph__text p {
    margin: 0 0 0.75rem;
    color: var(--color-text-muted, #cbd5e1);
    font-size: 0.98rem;
    line-height: 1.78;
}

.charter-paragraph__text p:last-child {
    margin-bottom: 0;
}

.charter-paragraph__text strong {
    color: var(--color-text, #f8fafc);
    font-weight: 700;
}


/* ==========================================================================
   Buchstabenlisten
   ========================================================================== */

.charter-letter-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0.85rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: charter-letter;
}

.charter-letter-list > li {
    position: relative;
    padding-left: 2.2rem;
    color: var(--color-text-muted, #cbd5e1);
    font-size: 0.98rem;
    line-height: 1.75;
    counter-increment: charter-letter;
}

.charter-letter-list > li::before {
    content: counter(charter-letter, lower-alpha) ")";
    position: absolute;
    top: 0;
    left: 0;
    width: 1.7rem;
    color: #93c5fd;
    font-weight: 800;
}

.charter-letter-list > li p {
    margin: 0.5rem 0 0;
}

.charter-letter-list--detailed {
    gap: 1rem;
}

.charter-letter-list--detailed > li {
    padding: 1rem 1rem 1rem 3.25rem;
    background: rgba(15, 23, 42, 0.36);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 10px;
}

.charter-letter-list--detailed > li::before {
    top: 1rem;
    left: 1rem;
}

.charter-letter-list--detailed strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--color-text, #f8fafc);
}


/* ==========================================================================
   Zurück-nach-oben-Link
   ========================================================================== */

.charter-back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.4rem;
    padding: 0.55rem 0.85rem;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 8px;
    color: #bfdbfe;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.charter-back-to-top:hover,
.charter-back-to-top:focus-visible {
    background: rgba(37, 99, 235, 0.24);
    border-color: rgba(96, 165, 250, 0.4);
    color: #ffffff;
}

.charter-back-to-top:focus-visible {
    outline: 2px solid rgba(147, 197, 253, 0.9);
    outline-offset: 3px;
}


/* ==========================================================================
   Sprungmarken
   ========================================================================== */

.charter-section:target {
    border-color: rgba(96, 165, 250, 0.42);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.14),
        0 0 0 3px rgba(59, 130, 246, 0.08);
}


/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 900px) {

    .charter-page,
    .charter-header,
    .charter-notice,
    .charter-navigation {
        max-width: none;
    }

    .charter-navigation__list {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================================
   Smartphone
   ========================================================================== */

@media (max-width: 700px) {

    .charter-header {
        margin-bottom: 2rem;
    }

    .charter-notice,
    .charter-navigation {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .charter-section {
        padding: 1.25rem;
        border-radius: 13px;
    }

    .charter-section__header {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .charter-section__number {
        justify-self: flex-start;
        min-width: auto;
        min-height: 2.55rem;
    }

    .charter-paragraph {
        grid-template-columns: 3rem minmax(0, 1fr);
        gap: 0.8rem;
        padding: 1rem;
    }

    .charter-paragraph__number {
        min-width: 2.7rem;
    }

    .charter-paragraph__text p,
    .charter-letter-list > li {
        font-size: 0.95rem;
        line-height: 1.72;
    }

}


/* ==========================================================================
   Sehr kleine Displays
   ========================================================================== */

@media (max-width: 460px) {

    .charter-section {
        padding: 1rem;
    }

    .charter-paragraph {
        grid-template-columns: 1fr;
    }

    .charter-paragraph__number {
        justify-self: flex-start;
    }

    .charter-letter-list--detailed > li {
        padding: 1rem 0.9rem 1rem 2.8rem;
    }

    .charter-letter-list--detailed > li::before {
        left: 0.85rem;
    }

}


/* ==========================================================================
   Reduzierte Bewegung
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .charter-navigation__list a,
    .charter-back-to-top {
        transition: none;
    }

}
