@charset "UTF-8";

:root {

    /* Hauptfarben */
    --color-primary: #2c3e50;
    --color-secondary: #34495e;

    /* Hintergründe */
    --color-page: #f4f5f6;
    --color-container: #d5d9da;
    --color-container2:black;
    --color-card: #eef0f2;

    /* Texte */
    --color-text: #2d3436;
    --color-text-light: #636e72;

    /* Akzent */
    --color-accent: #0078d4;
    --color-accent-hover: #005ea6;

    /* Status */
    --color-warning: #d63031;
    --color-success: #00b894;

    /* Schatten */
    --shadow-card: 0 3px 12px rgba(0,0,0,.08);

}

/* ==================================================
   CRM SYSTEM STYLESHEET
   ==================================================
   Projekt : CRM / Vereinsverwaltung
   Autor   : Frank Hobucher
   Version : 1.0

   INHALT

   01. BASIS
   02. LAYOUT / CONTAINER
   03. HEADER / NAVIGATION
   04. LOGIN
   05. FOOTER
   06. CRM KOMPONENTEN
   07. TABELLEN
   08. KALENDER
   09. BILDER / GALERIE
   10. FORMULAR / ADMIN-KOMPONENTEN
   11. HINWEISE / SECTIONEN
   12. FAMILIEN
   13. MITGLIEDER / SPEZIAL
   14. RESPONSIVE
   15. LOGIN-FORMULAR
   ================================================== */


/* ==================================================
   01. BASIS
   ================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    font-family: "Jost", sans-serif;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #eef1f3 0%, #e7ebee 100%);
    color: var(--color-text);
}

.admin-app {
    margin: 0;
    --color-container2: var(--color-card);
}

.admin-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 28px;
}

.admin-panel {
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(31, 45, 61, 0.08);
    border: 1px solid rgba(64, 76, 88, 0.08);
}

.admin-main-panel {
    flex: 1 1 auto;
    background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(241,244,246,0.7) 100%);
    padding: 1.25rem 1rem;
}

input,
select {
    font-family: inherit;
}

::selection {
    color: white;
    background-color: rgba(213, 217, 218, 0.8);
}

::-moz-selection {
    color: white;
    background-color: rgba(213, 217, 218, 0.8);
}


/* ==================================================
   02. LAYOUT / CONTAINER
   ================================================== */

.container {
    margin: 1rem auto;
    padding: 1rem;
    background-color: var(--color-container2);
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.login__container,
.frontend__container,
.admin__container,
.admin__container-member {
    max-width: 65rem;
}

.login__container {
    max-width: 35rem;
    color: #fff;
}

.cashbook-page {
    max-width: 100%;
    font-size: 0.9rem;
}

.member-page {
    max-width: 100%;
    width: 100%;
    font-size: 0.9rem;
}

.member-page .admin__container,
.member-page .admin__container-member {
    width: calc(100% - 2rem);
    max-width: 100%;
}

.member-list-filter-form {
    margin-top: 1rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.member-award-groups {
    width: 100%;
    overflow-x: auto;
    background: #d5d9da;
    border: 1px solid #cbd1d4;
    border-radius: 12px;
    padding: 0.5rem;
    box-sizing: border-box;
    font-size: 0.6rem;
}

.member-award-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    background: #f6f7f7;
    font-size: 0.6rem;
}

.member-award-table th,
.member-award-table td {
    background: #f6f7f7;
    border: 1px solid #d3d8da;
    padding: 0.2rem 0.25rem;
    text-align: center;
    vertical-align: top;
    font-size: 0.6rem;
    white-space: nowrap;
    color: #202a30;
}

.member-award-table th.member-award-group-header {
    background: grey;
    border-color: #ddd;
    color: #fff;
    font-weight: 700;
    padding: 0.35rem 0.2rem;
}

.member-award-table th.member-award-column-header {
    font-weight: 600;
    background: grey;
    border-color: #ddd;
    color: #fff;
    padding: 0.25rem 0.15rem;
    white-space: nowrap;
}

.member-award-filter-row td {
    padding: 0.18rem;
    background: grey;
    border-color: #ddd;
    color: #fff;
}

.member-award-table .member-award-filter-row input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.08rem 0.18rem;
    border: 1px solid #c7cfd3;
    border-radius: 4px;
    background: #fff;
    color: #202a30;
    font-size: 0.6rem;
    line-height: 1.2;
    height: 1.55rem;
}

.member-award-filter-row input:focus {
    border-color: var(--color-accent);
    outline: 2px solid rgba(0, 120, 212, 0.12);
    outline-offset: 1px;
}

.member-award-data-cell {
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
    background: #f6f7f7;
}

.member-award-group-empty {
    background: #f0f2f3;
}

.member-list-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.72rem;
}

.member-list-table th,
.member-list-table td {
    padding: 0.35rem 0.4rem;
    vertical-align: top;
    white-space: normal;
    word-break: break-word;
}

.member-list-table th input,
.member-list-table th select {
    width: 100%;
    min-width: 0;
    margin-top: 4px;
    padding: 2px 4px;
    font-size: 0.68rem;
    font-weight: 400;
}

.member-list-table__actions {
    min-width: 5rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: nowrap;
}

.member-list-table__actions a,
.member-list-table__actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 5px;
    background: var(--color-accent);
    color: #fff;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.member-list-table__actions form {
    display: inline-block;
    margin: 0;
}

.member-list-table__action--delete {
    background: var(--color-warning);
}

.member-list-table__icon {
    width: 0.9rem;
    height: 0.9rem;
    fill: currentColor;
    display: block;
}

.member-list-table__actions a:hover,
.member-list-table__actions button:hover {
    opacity: 0.9;
}

.cashbook-page .crm__table {
    margin-top: 0.5rem;
}

.cashbook-page .crm__table th,
.cashbook-page .crm__table td {
    padding: 4px 5px;
    white-space: nowrap;
}

.cashbook-page .crm__table th select {
    width: 100%;
    min-width: 7rem;
    max-width: 13rem;
    margin-top: 2px;
    padding: 1px 2px;
    font-size: 0.75rem;
    font-weight: 400;
}

.cashbook-year-form {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cashbook-year-form .crm__form-row {
    margin: 0;
}

.cashbook-year-form .crm__form-row label {
    display: block;
    margin-bottom: 2px;
    font-size: 0.8rem;
}

.cashbook-year-form input[type="date"] {
    width: 9rem;
    padding: 2px 4px;
    font-size: 0.8rem;
}

.cashbook-year-form .crm__form-actions {
    margin: 0;
}

.cashbook-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cashbook-actions__group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cashbook-actions__group--options {
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(44, 62, 80, 0.35);
}

.cashbook-filter-input,
.cashbook-filter-select,
.cashbook-filter-range {
    width: 100%;
    min-width: 5.25rem;
    max-width: 100%;
    padding: 0.35rem 0.45rem;
    border: 1px solid #b7c0c4;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-text);
    font-size: 0.68rem;
    line-height: 1.3;
    box-sizing: border-box;
}

.cashbook-filter-input {
    min-height: 2.1rem;
}

.cashbook-filter-select {
    min-height: 2.1rem;
}

.cashbook-filter-range {
    margin-top: 0.25rem;
    min-width: 4.75rem;
    min-height: 2rem;
}

.cashbook-page .crm__table thead th {
    font-size: 0.75rem;
    vertical-align: top;
}

.cashbook-page .crm__table thead th input,
.cashbook-page .crm__table thead th select {
    font-size: 0.68rem;
}

.cashbook-actions .crm__item {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    border-radius: 6px;
    background: var(--color-success);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.2;
    text-shadow: none;
    text-decoration: none;
}

.cashbook-actions .crm__item:hover {
    background: #009b7d;
    color: #fff;
    text-shadow: none;
}

.cashbook-summary-page .crm_h1 {
    margin-bottom: 0.35rem;
}

.cashbook-summary-page {
    max-width: 65rem;
}

.cashbook-summary-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.cashbook-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.cashbook-page-header .crm_h1 {
    margin: 0;
}

.cashbook-page-header .crm__item-link {
    flex: 0 0 auto;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    background: var(--color-success);
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.2;
    text-shadow: none;
}

.cashbook-page-header .crm__item-link:hover {
    background: #009b7d;
    color: #fff;
    text-shadow: none;
}

.cashbook-summary-toolbar .crm__item-link {
    flex: 0 0 auto;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    background: var(--color-success);
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.2;
    text-shadow: none;
}

.member-page {
    max-width: 100%;
    font-size: 0.9rem;
}

.member-page .crm__table {
    margin-top: 0.5rem;
}

.member-list-filter-form {
    margin-top: 1rem;
    overflow-x: auto;
}

.member-list-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.72rem;
}

.member-list-table th,
.member-list-table td {
    padding: 0.35rem 0.4rem;
    vertical-align: top;
    white-space: normal;
    word-break: break-word;
}

.member-list-table th input,
.member-list-table th select {
    width: 100%;
    min-width: 0;
    margin-top: 4px;
    padding: 2px 4px;
    font-size: 0.68rem;
    font-weight: 400;
}

.member-list-table__actions {
    min-width: 8rem;
}

.member-list-table__actions a,
.member-list-table__actions button {
    display: inline-block;
    margin: 0.1rem 0.2rem 0.1rem 0;
    padding: 0.28rem 0.55rem;
    border: none;
    border-radius: 5px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.member-list-table__actions button {
    background: var(--color-warning);
}

.member-list-table__actions a:hover,
.member-list-table__actions button:hover {
    opacity: 0.9;
}

.cashbook-summary-toolbar .crm__item-link:hover {
    background: #009b7d;
    color: #fff;
    text-shadow: none;
}

.cashbook-summary-table {
    margin-top: 0;
}

.cashbook-summary-table th,
.cashbook-summary-table td {
    padding: 3px 6px;
}

.cashbook-summary-table tfoot th {
    background-color: var(--color-primary);
}

.cashbook-option-edit-form {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.cashbook-option-edit-form input[type="text"] {
    width: min(100%, 18rem);
    padding: 2px 5px;
    font-size: 0.85rem;
}

.cashbook-option-edit-form input[type="submit"] {
    padding: 2px 7px;
    font-size: 0.75rem;
}

.cashbook-balances-page {
    max-width: 65rem;
}

.cashbook-balance-form,
.cashbook-balance-edit-form,
.cashbook-inline-delete-form {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.cashbook-balance-form {
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.cashbook-balance-form .crm__form-row {
    margin: 0;
}

.cashbook-balance-form label {
    display: block;
    font-size: 0.8rem;
}

.cashbook-balance-form select,
.cashbook-balance-form input[type="number"],
.cashbook-balance-edit-form select,
.cashbook-balance-edit-form input[type="number"] {
    min-width: 9rem;
    padding: 2px 5px;
    font-size: 0.85rem;
}

.cashbook-balance-form .crm__form-actions {
    margin: 0;
}

.cashbook-balance-edit-form input[type="number"] {
    width: 9rem;
}

.cashbook-rettichfest-page {
    max-width: 100%;
}

.cashbook-revenue-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.cashbook-revenue-form .crm__form-row,
.cashbook-revenue-form .crm__form-actions {
    margin: 0;
}

.cashbook-revenue-form label {
    display: block;
    font-size: 0.75rem;
}

.cashbook-revenue-form input,
.cashbook-revenue-form select {
    width: 8rem;
    max-width: 100%;
    padding: 3px 5px;
    font-size: 0.8rem;
}

.cashbook-revenue-form .crm__button {
    width: auto;
    max-width: 12rem;
    padding: 0.45rem 0.75rem;
    white-space: nowrap;
    font-size: 0.8rem;
}

.cashbook-rettichfest-heading {
    margin: 0.5rem 0 0.2rem;
    font-size: 1.05rem;
}

.cashbook-revenue-table {
    margin-top: 0;
}

.cashbook-revenue-table th,
.cashbook-revenue-table td {
    padding: 3px 5px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.cashbook-revenue-table th:first-child,
.cashbook-revenue-table td:first-child {
    min-width: 10rem;
    white-space: normal;
}

.cashbook-revenue-edit-table {
    margin-top: 0;
}

.cashbook-revenue-edit-table th,
.cashbook-revenue-edit-table td {
    padding: 3px 5px;
    font-size: 0.75rem;
}

.cashbook-revenue-edit-table select,
.cashbook-revenue-edit-table input[type="date"],
.cashbook-revenue-edit-table input[type="number"] {
    width: 100%;
    min-width: 7rem;
    padding: 2px 4px;
    font-size: 0.75rem;
}

.cashbook-revenue-edit-table input[type="submit"] {
    padding: 3px 7px;
    font-size: 0.75rem;
}

.cashbook-edit-toggle {
    margin: 0.5rem 0 0.35rem;
    padding: 0.4rem 0.75rem;
    border: 0;
    border-radius: 6px;
    background: var(--color-success);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
}

.cashbook-edit-toggle:hover {
    background: #009b7d;
}

.cashbook-revenue-edit[hidden] {
    display: none;
}

.cashbook-rettichfest-summary {
    margin-top: 1rem;
}

.cashbook-rettichfest-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 58rem;
}

.cashbook-rettichfest-result-table {
    margin-top: 0;
}

.cashbook-rettichfest-result-table th,
.cashbook-rettichfest-result-table td {
    padding: 3px 6px;
    font-size: 0.85rem;
}

.cashbook-rettichfest-result-table th {
    background: #f7c9aa;
    color: #222;
}

.cashbook-rettichfest-result-table td {
    text-align: right;
    background: #fff;
}

.cashbook-rettichfest-profit {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) 12rem 8rem;
    max-width: 58rem;
    margin-top: 0.75rem;
    background: #b8d99b;
    font-size: 1rem;
}

.cashbook-rettichfest-profit span,
.cashbook-rettichfest-profit strong {
    padding: 0.45rem 0.65rem;
    border: 1px solid #999;
    text-align: center;
}

.cashbook-rettichfest-profit strong {
    font-size: 1.25rem;
}

@media (max-width: 60rem) {
    .cashbook-rettichfest-summary-grid {
        grid-template-columns: 1fr;
    }

    .cashbook-rettichfest-profit {
        grid-template-columns: 1fr;
    }
}

.cashbook-rettichfest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.cashbook-rettichfest-section h2 {
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
    text-align: center;
}

.cashbook-rettichfest-totals {
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.2rem;
    padding: 0.25rem 0.35rem;
    background: #eef0f2;
    font-size: 0.75rem;
}

.cashbook-rettichfest-table {
    margin-top: 0;
}

.cashbook-rettichfest-table th,
.cashbook-rettichfest-table td {
    padding: 2px 4px;
    font-size: 0.75rem;
}

.cashbook-rettichfest-table th:first-child,
.cashbook-rettichfest-table td:first-child {
    width: 100%;
    white-space: normal;
}

@media (max-width: 60rem) {
    .cashbook-rettichfest-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 42rem) {
    .cashbook-actions__group--options {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }
}

.cashbook-form {
    max-width: 60rem;
}

.cashbook-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.cashbook-form .crm__form-row {
    min-width: 0;
}

.cashbook-form .crm__form-row label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.cashbook-form input,
.cashbook-form select,
.cashbook-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    background: #fff;
    font: inherit;
}

.cashbook-form textarea {
    resize: vertical;
}

.cashbook-form input[readonly] {
    background: #eef1f2;
}

.cashbook-form__amount {
    grid-column: 2;
}

.cashbook-form__description {
    margin-top: 1rem;
}

.cashbook-form__inline-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.admin__container.image-edit-page,
.admin__container.image-upload-page {
    max-width: 65rem;
    background: #d7dadb;
    border-radius: 18px;
    padding: 1.5rem 1.5rem 2rem;
    min-height: 650px;
    box-sizing: border-box;
    margin: 0 auto 1.5rem;
}

/* ==================================================
   03. HEADER / NAVIGATION
   ================================================== */

.header-h1 {
    padding-top: 1rem;
    margin-bottom: 0.35rem;
    text-align: center;
    font-size: 2rem;
    letter-spacing: 0.02em;
    color: var(--brand-name-color, var(--color-primary));
}

.frontend-brand-subtitle {
    margin: 0.15rem 0 0.65rem;
    color: var(--brand-subtitle-color, var(--color-primary));
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
    animation: brand-subtitle-appear 650ms ease-out 1.2s both;
}

@keyframes brand-subtitle-appear {
    0% {
        opacity: 0;
        transform: translateY(0.45em);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .frontend-brand-subtitle {
        animation: none;
    }
}

.frontend-header {
    position: relative;
    width: min(90vw, 65rem);
    max-width: 65rem;
    margin-bottom: 0.35rem;
    padding-bottom: 3.25rem;
    background-color: var(--brand-header-background, var(--color-container));
    border-radius: 18px;
}

.header-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    padding: 1rem 0;
    text-align: center;
}

.frontend-header .header-nav .header__nav-item,
.branding-preview__nav .header__nav-item {
    color: var(--brand-nav-text-color, var(--color-primary));
    text-shadow: 1px 2px 3px rgba(var(--brand-nav-shadow-rgb, 44, 62, 80), var(--brand-nav-shadow-opacity, 0.45));
}

.frontend-header .header-nav .header__nav-item:hover,
.frontend-header .header-nav .header__nav-item:focus-visible,
.branding-preview__nav .header__nav-item:hover,
.branding-preview__nav .header__nav-item:focus-visible {
    color: var(--brand-nav-hover-text-color, var(--color-accent));
}

.frontend-language-switch {
    position: absolute;
    right: 1rem;
    bottom: 0.5rem;
    display: flex;
    gap: 0.35rem;
    margin: 0;
}

.frontend-language-switch button {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--brand-header-background, var(--color-container));
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.frontend-language-switch img {
    display: block;
    width: 1.5rem;
    height: 1rem;
    object-fit: cover;
}

.branding-settings-page {
    max-width: 55rem;
}

.branding-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.5rem;
    border: 1px solid rgba(44, 62, 80, 0.2);
    border-radius: 10px;
    background: #f7f9fa;
}

.branding-tab-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(44, 62, 80, 0.15);
    border-radius: 999px;
    color: var(--color-primary);
    background: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.branding-tab-link.is-active,
.branding-tab-link:hover,
.branding-tab-link:focus-visible {
    color: #fff;
    background: var(--color-accent, #0078d4);
    border-color: var(--color-accent, #0078d4);
}

.branding-tab-panels {
    display: block;
}

.branding-tab-panel {
    display: none;
    max-width: 40rem;
    padding-top: 0.5rem;
}

.branding-tab-panel.is-active {
    display: block;
}

.branding-settings-form {
    display: grid;
    gap: 0.8rem;
    max-width: 40rem;
}

.branding-settings-form .crm__form-row {
    display: grid;
    gap: 0.3rem;
}

.branding-settings-form .crm__form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.branding-settings-form .crm__form-actions .crm__button,
.branding-settings-form .crm__form-actions .crm__button--ghost {
    flex: 1 1 11rem;
    min-width: 11rem;
    min-height: 2.75rem;
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.branding-settings-form .crm__form-actions .crm__button {
    border: 1px solid #1a9d4d;
    background: linear-gradient(180deg, #2dbf66 0%, #1fa65b 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(34, 152, 78, 0.2);
}

.branding-highlight-settings {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.branding-highlight-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    font-weight: 600;
    cursor: pointer;
}

.branding-highlight-toggle input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: var(--color-accent);
    cursor: pointer;
}

.branding-highlight-settings h2,
.branding-home-highlights-preview > h2 {
    margin: 0;
    font-size: 1.15rem;
}

.branding-highlight-card-settings {
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid rgba(44, 62, 80, 0.2);
    border-radius: 6px;
}

.branding-highlight-card-settings legend {
    padding: 0 0.35rem;
    font-weight: 700;
}

.branding-highlight-card-settings__fields {
    display: grid;
    grid-template-columns: minmax(13rem, 1.5fr) repeat(2, minmax(10rem, 1fr));
    gap: 0.65rem;
}

.branding-highlight-card-settings select {
    width: 100%;
    min-width: 0;
    padding: 0.55rem 0.65rem;
}

.branding-home-highlights-preview {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(44, 62, 80, 0.2);
}

.branding-home-highlights-preview[hidden] {
    display: none;
}

.branding-home-highlights-preview__track {
    width: 100%;
}

.homepage-highlight-card[hidden] {
    display: none;
}

.branding-settings-colors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem;
}

.branding-settings-form input[type="text"] {
    width: 100%;
    max-width: 100%;
    padding: 0.55rem 0.65rem;
}

.crm__button--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(44, 62, 80, 0.2);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.branding-settings-form input[type="file"] {
    width: 100%;
    max-width: 100%;
}

.branding-settings-form output {
    color: var(--color-text-light);
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.branding-settings-form input[type="color"] {
    width: 4rem;
    height: 2.5rem;
    padding: 0.15rem;
    border: 1px solid #bfc5c8;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}

.branding-settings-form input[type="range"] {
    width: 100%;
    max-width: 16rem;
    accent-color: var(--color-accent);
}

.branding-settings-message {
    margin: 0 0 0.75rem;
    color: #176b47;
    font-weight: 600;
}

.branding-settings-message--error {
    color: #a51d22;
}

.branding-preview {
    max-width: 40rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(44, 62, 80, 0.2);
}

.branding-preview h2 {
    margin-bottom: 0.65rem;
    font-size: 1.1rem;
}

.branding-preview__header {
    padding: 1rem;
    border-radius: 8px;
    background: var(--brand-header-background, var(--color-container));
    text-align: center;
}

.branding-preview__name {
    margin: 0;
    color: var(--brand-name-color, var(--color-primary));
    font-size: 1.8rem;
    line-height: 1.2;
}

.branding-preview .frontend-brand-subtitle {
    color: var(--brand-subtitle-color, var(--color-primary));
}

.branding-preview__nav {
    margin-top: 0.75rem;
}

.branding-preview__nav .header__nav-item {
    font-size: 0.95rem;
}

.branding-highlight-preview {
    max-width: 55rem;
    margin-top: 1.5rem;
}

.branding-highlight-preview > h2 {
    margin-bottom: 0.65rem;
    font-size: 1.1rem;
}

.motto-rotator {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.7rem;
    width: min(90vw, 65rem);
    max-width: 65rem;
    margin: 0 auto 3.2rem;
    padding: 0.8rem 0.9rem 0.95rem;
    background: #001a1f;
    border: 0;
    border-radius: 18px;
    box-shadow: none;
    color: #fff;
}

.motto-rotator__content {
    display: flex;
    justify-content: center;
    width: 100%;
}

.motto-rotator__eyebrow {
    margin: 0;
    color: #ff1616;
    font-size: clamp(1.3rem, 1.8vw, 2.2rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 3px 5px rgba(0, 0, 0, 0.8);
}

.motto-rotator__stage {
    position: relative;
    width: min(100%, 42rem);
    min-height: 16rem;
    max-height: 21rem;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #001a1f;
}

.motto-rotator__slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 650ms ease, transform 650ms ease;
}

.motto-rotator__slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.monthly-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 0;
    gap: 1.15rem;
    margin: 0;
    padding: 1.25rem 1rem 2rem;
    background: #001a1f;
    text-align: center;
}

.monthly-highlight__image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 14rem);
    max-height: 20rem;
    object-fit: contain;
    object-position: center;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.45);
}

.monthly-highlight__image[hidden],
.monthly-highlight__empty[hidden] {
    display: none;
}

.monthly-highlight__caption {
    position: static;
    width: 100%;
    padding: 0;
    color: #ff1616;
    background: transparent;
}

.monthly-highlight__caption h1 {
    max-width: 100%;
    margin: 0;
    color: #ff1616;
    font-size: 4rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-shadow: 2px 3px 5px rgba(0, 0, 0, 0.8);
}

.monthly-highlight__empty {
    display: grid;
    place-items: center;
    width: min(100%, 14rem);
    height: 20rem;
    color: #fff;
    background: #64717a;
}

.feger-section {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 34rem;
    overflow: hidden;
    color: #fff;
    background: #102735;
}

.feger-section__video,
.feger-section__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.feger-section__video {
    z-index: -2;
    object-fit: cover;
    object-position: center;
}

.feger-section__overlay {
    z-index: -1;
    background: rgba(4, 26, 39, 0.56);
}

.feger-section__content {
    width: min(78vw, 58rem);
    margin: 0 auto;
    padding: 1.5rem 0 4rem;
}

.feger-section__content h2 {
    margin: 0 0 3.4rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-align: center;
}

.feger-section__columns {
    column-count: 2;
    column-gap: 2rem;
    column-rule: 1px solid rgba(255, 255, 255, 0.7);
}

.feger-section__columns p {
    margin: 0;
    break-inside: auto;
    color: rgba(130, 136, 137,  0.96);
    font-size: 0.94rem;
    line-height: 1.18;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.about-section {
    display: flow-root;
    width: min(90vw, 80rem);
    min-height: 32rem;
    margin: 0 auto 3rem;
    padding: 3rem;
    color: #fff;
    background: #001c22;
}

.about-section__media {
    position: relative;
    float: left;
    width: 27rem;
    height: 27rem;
    margin: 0 2rem 1.5rem 0;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    shape-outside: circle(50% at 50% 50%);
}

.about-section__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 900ms ease;
}

.about-section__image.is-active {
    opacity: 1;
}

.about-section__content {
    min-width: 0;
    padding-top: 2.5rem;
}

.about-section__line {
    display: block;
    width: 4rem;
    height: 0.18rem;
    margin-bottom: 1.2rem;
    margin-left: 29rem;
    background: #00d8ac;
}

.about-section__content h2 {
    margin: 0 0 1rem 29rem;
    color: #00d8ac;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.05;
    text-transform: uppercase;
}

.about-section__intro {
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.96);
    font-size: 0.92rem;
    line-height: 1.35;
}

.about-section__members {
    display: grid;
    gap: 0.65rem;
}

.about-section__members p {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    color: rgba(130, 136, 137,  0.95);
    font-size: 0.92rem;
    line-height: 1.3;
}

.about-section__member.is-empty {
    min-height: 2.4rem;
    visibility: hidden;
}

.about-section__members strong {
    font-weight: 600;
}

.about-section__members span {
    color: rgba(130, 136, 137,  0.9);
}

.contact-section {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    min-width: 100%;
    overflow: auto;
    padding: 3rem 0 0.5rem;
    color: #fff;
   /* background: #416f79;*/
   background: black;
}

.footer__container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: min(100%, 72rem);
    padding: 0 2rem 2rem;
    box-sizing: border-box;
}

.footer__text-column {
    flex: 0 0 auto;
    width: min(100%, 31rem);
    margin-right: 5rem;
    text-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
}

.footer__logo-column {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__heading {
    max-width: 25rem;
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0.12rem 0.16rem 0.35rem rgba(0, 0, 0, 0.35);
}

.footer__paragraph {
    margin: 0 0 1rem;
    padding: 1rem 0;
    color: #00d8ac;
    font-size: 1rem;
}

.contact-section__links {
    display: grid;
    gap: 0.75rem;
    max-width: 18rem;
}

.footer__empty-state {
    margin: 0;
    color: #dffaf4;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.footer__contact-item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 4rem;
    color: #fff;
    text-decoration: none;
}

.footer__contact-item-icon {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    flex: 0 0 4rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    color: #075b61;
    background: #00d8ac;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer__contact-item-link {
    position: absolute;
    z-index: 1;
    left: 2rem;
    top: 0.25rem;
    width: 16rem;
    box-sizing: border-box;
    padding: 1rem 1rem 1rem 2.8rem;
    overflow: hidden;
    border-radius: 0 1rem 1rem 0;
    color: #fff;
    background: rgba(125, 193, 208, 0.75);
    text-align: center;
    white-space: nowrap;
}

.footer__contact-item:hover .footer__contact-item-link,
.footer__contact-item:focus-visible .footer__contact-item-link {
    background: #00d8ac;
    color: #075b61;
}

.footer__logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 18rem;
    height: 22rem;
    padding: 0.35rem;
    overflow: hidden;
    border-radius: 45% 45% 48% 48%;
    background: linear-gradient(135deg, #00d8ac 0%, #075b61 100%);
    box-shadow: 0.6rem 0.6rem 0 rgba(0, 70, 76, 0.25);
}

.footer__logo-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0.25rem solid #fff;
    border-radius: 45% 45% 48% 48%;
}

.branding-highlight-preview__figure {
    padding: 1rem;
}

.branding-highlight-preview__figure .monthly-highlight__caption h2 {
    margin: 0;
    color: #ff1616;
    font-size: 2.4rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-shadow: 2px 3px 5px rgba(0, 0, 0, 0.8);
}

.container.frontend-home-main {
    width: min(90vw, 65rem);
    max-width: 65rem;
    margin: 1rem auto 0;
    padding: 0;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    color: #fff;
}

.container.frontend__container:not(.frontend-home-main) {
    padding: 0;
    border: 0;
    background: #000;
}

.container.frontend-home-main > main.frontend-page {
    display: grid;
    gap: 1rem;
    background: #fff;
}

.container.frontend-home-main > main.frontend-page > section {
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    box-shadow: 0 0.45rem 1.2rem rgba(0, 0, 0, 0.14);
    overflow: hidden;
}

.container.frontend-home-main > main.frontend-page > .monthly-highlight,
.container.frontend-home-main > main.frontend-page > .contact-section {
    width: 100%;
}

.container.frontend-home-main > main.frontend-page > .motto-rotator,
.container.frontend-home-main > main.frontend-page > .story-section,
.container.frontend-home-main > main.frontend-page > .about-section {
    width: 100%;
}

.homepage-highlights {
    position: relative;
    overflow: hidden;
    padding-top: 1.6rem;
    padding-bottom: 1.2rem;
    background: #001a1f;
    color: #fff;
}

.homepage-highlights__heading {
    position: relative;
    z-index: 1;
    margin: 0 0 2.7rem;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.homepage-highlights__track {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(72rem, calc(100% - 2rem));
    margin: 0 auto;
    gap: 0.15rem;
}

.homepage-highlight-card {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 10px;
    background: #26373a;
    color: #fff;
    text-decoration: none;

}

.homepage-highlight-card img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 280ms ease;
}

.homepage-highlight-card:hover img,
.homepage-highlight-card:focus-visible img {
    transform: scale(1.055);
}

.homepage-highlight-card__details {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 0.35rem;
    padding: 2.25rem 0.7rem 0.75rem;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.homepage-highlight-card__details strong {
    font-size: 0.95rem;
    line-height: 1.2;
}

.homepage-highlight-card__details span {
    font-size: 0.85rem;
}

.homepage-highlights__watermark {
    position: relative;
    z-index: 0;
    height: 7rem;
    margin: 1.1rem 0 1.1rem;
    overflow: hidden;
    color: transparent;
    font-size: 7.5rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
}

.story-section {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr);
    align-items: center;
    gap: 1.2rem 1.8rem;
    width: min(90vw, 65rem);
    max-width: 65rem;
    margin: 0 auto 3.2rem;
    padding: 1.4rem 1.2rem 1.6rem;
    background: #001c22;
    border-radius: 0;
    color: #eaf6f8;
}

.story-section__copy {
    display: grid;
    align-content: center;
    gap: 0.8rem;
    min-width: 0;
    padding-left: 0.2rem;
}

.story-section__line {
    display: block;
    width: 4.1rem;
    height: 0.12rem;
    background: #7ee3f3;
    border-radius: 999px;
}

.story-section__copy h2 {
    margin: 0;
    color: #a8edf8;
    font-size: clamp(2.6rem, 2.8vw, 4.4rem);
    line-height: 0.96;
    font-weight: 300;
    letter-spacing: -0.06em;
    text-transform: none;
}

.story-section__copy p {
    margin: 0;
    color: rgba(130, 136, 137, 0.95);
    font-size: 1.08rem;
    line-height: 1.6;
    text-align: left;
    max-width: 31rem;
}

.story-section__image-grid {
    position: relative;
    width: min(100%, 42rem);
    height: 26rem;
    margin-left: auto;
    overflow: visible;
}

.story-section__image {
    position: absolute;
    display: block;
    width: clamp(11rem, 19vw, 18rem);
    height: auto;
    max-height: 19.5rem;
    object-fit: cover;
    border-radius: 38% 62% 52% 48% / 44% 54% 46% 56%;
    background: #dfe7ea;
    box-shadow: 0 18px 20px rgba(0, 0, 0, 0.2);
    transform-origin: center;
    transition: transform 220ms ease, box-shadow 220ms ease, z-index 0s linear 0s;
    cursor: pointer;
}

.story-section__image:hover,
.story-section__image:focus-visible {
    z-index: 50;
    transform: scale(1.06) rotate(0deg);
    box-shadow: 0 28px 32px rgba(0, 0, 0, 0.3);
}

.story-section__image--1 {
    left: 0.8rem;
    top: 0.8rem;
    z-index: 1;
    transform: rotate(-8deg);
}

.story-section__image--2 {
    right: 0.4rem;
    top: 1.8rem;
    z-index: 3;
    transform: rotate(8deg);
}

.story-section__image--3 {
    left: 10.2rem;
    bottom: -0.9rem;
    z-index: 2;
    transform: rotate(12deg);
}

.story-section__image--4 {
    right: 7.4rem;
    bottom: 1.5rem;
    z-index: 4;
    transform: rotate(-10deg);
}

@media (max-width: 64rem) {
    .about-section__media {
        width: 25.6rem;
        height: 25.6rem;
    }

    .about-section__line,
    .about-section__content h2 {
        margin-left: 27.6rem;
    }
}

@media (max-width: 56rem) {
    .about-section__media {
        width: 20.48rem;
        height: 20.48rem;
    }

    .about-section__line,
    .about-section__content h2 {
        margin-left: 22.48rem;
    }
}

@media (max-width: 48rem) {
    .motto-rotator {
        grid-template-columns: 1fr;
        width: min(90vw, 65rem);
        padding: 1rem 0.9rem 1.15rem;
    }

    .motto-rotator__content {
        padding-left: 0;
        text-align: center;
    }

    .motto-rotator__stage {
        min-height: 15rem;
    }

    .homepage-highlights__heading {
        margin-bottom: 1.5rem;
        font-size: 1.45rem;
    }

    .homepage-highlights__track {
        display: flex;
        width: 100%;
        gap: 0.6rem;
        overflow-x: auto;
        padding: 0 1rem 0.75rem;
        scroll-snap-type: x mandatory;
    }

    .homepage-highlight-card {
        flex: 0 0 14rem;
        scroll-snap-align: start;
    }

    .homepage-highlights__watermark {
        height: 3.5rem;
        margin-top: -0.25rem;
        font-size: 3.2rem;
    }

    .story-section {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 1.3rem 1rem 1rem;
    }

    .story-section__image-grid {
        gap: 0.6rem;
    }

    .story-section__image {
        height: 10.5rem;
    }

    .feger-section {
        min-height: 0;
    }

    .feger-section__content {
        padding: 2.6rem 0 3rem;
    }

    .feger-section__content h2 {
        margin-bottom: 2rem;
    }

    .feger-section__columns {
        column-count: 1;
        column-rule: 0;
    }

    .about-section {
        display: block;
        width: min(90vw, 40rem);
        padding: 2rem 0 2.5rem;
    }

    .about-section__media {
        float: none;
        width: min(78vw, 12.8rem);
        height: min(78vw, 12.8rem);
        margin: 0 auto 2rem;
    }

    .about-section__line,
    .about-section__content h2 {
        margin-left: 0;
    }

    .about-section__content {
        padding-top: 0.5rem;
    }

    .about-section__content {
        padding-right: 0;
    }

    .about-section__members p {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }

    .about-section__members {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 2.5rem 0.5rem 3rem;
    }

    .footer__container {
        flex-direction: column;
        align-items: stretch;
        padding: 0 1rem 2rem;
    }

    .footer__text-column {
        order: 2;
        width: 100%;
        margin-right: 0;
    }

    .footer__logo-column {
        order: 1;
        justify-content: flex-start;
        padding-bottom: 2rem;
    }

    .footer__logo-container {
        width: min(70vw, 15rem);
        height: min(70vw, 18rem);
    }
}

.admin-header-bar {
    background: linear-gradient(135deg, #dfe4e8 0%, #bcc5cb 100%);
    border: 1px solid rgba(98, 109, 121, 0.18);
    border-radius: 22px;
    width: 100%;
    padding: 1rem 1.5rem 1.5rem;
    box-sizing: border-box;
    box-shadow: 0 12px 26px rgba(55, 65, 74, 0.08);
}

.admin-header-nav {
    gap: 1.2rem 2rem;
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
    align-items: center;
}

.admin-language-switch {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

.admin-language-switch select {
    min-width: 4.5rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid rgba(44, 62, 80, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    color: var(--color-primary);
    cursor: pointer;
}

.admin-header__nav-item {
    font-size: clamp(1rem, 1.8vw, 1.7rem);
    font-weight: 700;
    text-shadow: none;
    color: #1f1f1f;
}

.nav-toggle {
    display: none;
    width: 3rem;
    height: 3rem;
    margin: 0 0 0.75rem auto;
    border: 1px solid rgba(44, 62, 80, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.55rem 0.65rem;
    align-self: flex-end;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 0.22rem;
    background: var(--color-primary);
    margin: 0.25rem 0;
    border-radius: 10px;
}

.header__nav-item,
.header__admin-nav-item {
    display: inline-block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--color-primary);
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: bold;
    text-shadow: 1px 1px #ff0000;
}

.header__admin-nav-item {
    font-size: 1rem;
    text-shadow: 1px 1px white;
}

.header__nav-item:hover,
.header__admin-nav-item:hover {
    color: var(--color-accent);
    text-shadow: 1px 1px black;
}


/* ==================================================
   04. LOGIN
   ================================================== */

.header__login-container {
    max-width: 35rem;
    margin: 1rem auto;
    padding: 0 2rem;
    background-color: #c2c5c6;
    border-radius: 20px;
}

.header__login-h1 {
    padding-top: 1rem;
    text-align: center;
    font-size: 2.2rem;
}

.header__login-nav {
    padding: 1rem 5rem 1rem 0;
    text-align: right;
}

.header__login-nav-item {
    padding: 1rem;
    text-decoration: none;
    color: black;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 1px 1px #ff0000;
}

.header__nav-item,
.header__admin-nav-item {
    color: var(--color-primary);
}
.header__nav-item:hover,
.header__admin-nav-item:hover {
    color: var(--color-accent);
}



/* ==================================================
   05. FOOTER
   ================================================== */

.footer__login-container {
    max-width: 35rem;
    height: 3rem;
    margin: 0 auto;
    padding: 1rem 2rem;
    background-color: #eaeced;
    text-align: right;
    border-radius: 10px;
}

.footer__frontend-container
{
    max-width: 65rem;
    min-height: 2.8rem;
    margin: 1rem auto 0;
    padding: 0.5rem 2rem;
    overflow: hidden;
    border-radius: 10px;
    background-color: #000;
    color: rgba(255, 255, 255, 0.72);
}

.footer__legal-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    padding-top: 0.45rem;
    border-top: 2px solid rgba(255, 255, 255, 0.22);
}

.footer__legal-links a {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.85rem;
    text-decoration: none;
}

.footer__legal-links a:hover,
.footer__legal-links a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.legal-page {
    min-height: 24rem;
    padding: 2rem;
    color: #fff;
}
.footer__admin-container {
    width: 100%;
    max-width: 100%;
    min-height: 3rem;
    margin: 0;
    padding: 1rem 2rem;
    background: linear-gradient(180deg, #f2f3f4 0%, #e8ebed 100%);
    text-align: right;
    border-radius: 22px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.footer__admin-container p {
    margin: 0;
    color: #49555d;
    font-weight: 600;
}

.footer__admin-container-member {
    max-width: 35rem;
    height: 3rem;
    margin: 0 auto 1rem;
    padding: 1rem 2rem;
    background-color: #eaeced;
    text-align: right;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}


/* ==================================================
   06. CRM KOMPONENTEN
   ================================================== */

.crm_h1,
.crm_frontend_h1 {
    font-size: 1.2rem;
    font-weight: bold;
    color: black;
}

.crm_h1 {
    padding-bottom: 0.2rem;
}

.member-page .crm_h1,
.member-page h1,
.member-section-title,
.member-section-subtitle {
    font-size: 1.1rem !important;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.crm_frontend_h1 {
    padding-bottom: 1rem;
}

.crm__item {
    padding-bottom: 1rem;
    color: black;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px white;
}

.crm__item:hover {
    color: #ff0000;
    text-shadow: 1px 1px black;
}

.crm__item-link,
input[type="submit"] {
    padding: 2px 10px 1rem 10px;
    color: black;
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 1px 1px white;
    border-radius: 15px;
    margin: 1px 2px;
    cursor: pointer;
}

.crm__item-link:hover,
input[type="submit"]:hover {
    color: #ff0000;
    text-shadow: 1px 1px black;
}


/* ==================================================
   07. TABELLEN
   ================================================== */

.crm__table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
}

.event-filter {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.event-filter__link {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    background: #e0e0e0;
    color: #333;
}

.event-filter__link--active {
    background: #0d8be8;
    color: #fff;
}

.event-table {
    margin-top: 1.5rem;
}

.event-empty-state {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 200, 0, 0.1);
    border-radius: 6px;
    border-left: 4px solid #ffc800;
}

td,
th {
    border: 1px solid #ddd;
    padding: 8px;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #ffff80;
}

.event-table tbody tr:nth-child(odd) {
    background-color: #fff;
    color: #1f2933;
}

.event-table tbody tr:nth-child(even) {
    background-color: #e8ebed;
    color: #1f2933;
}

.event-table tbody tr:hover {
    background-color: #ffff80;
}

th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: grey;
    color: white;
}


/* ==================================================
   08. KALENDER
   ================================================== */

.calendar-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 4rem;
    background-color: lightgrey;
}

.calendar-heading {
    color: #eaeced;
    background-color: lightgray;
    text-transform: uppercase;
    text-align: center;
    font-size: 4rem;
    letter-spacing: 0.1em;
}

.calendar-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.calendar-td {
    padding: 0.5rem;
    border-bottom: 2px solid rgb(155, 152, 152);
}

.calendar-th {
    background: rgb(225, 225, 225);
    font-weight: bold;
}


/* ==================================================
   09. BILDER
   ================================================== */

.member-photo {
    width: 100px;
}

/* ==================================================
   Galerie / Album-Ansicht
   ================================================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    text-align: center;
    padding-bottom: 10px;
}

.gallery-item a.glightbox {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
    background: #ffffff;
}

.gallery-item img {
    display: block;
    max-width: 100%;
    max-height: 210px;
    transition: transform 0.2s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.gallery-item-details {
    padding: 10px 12px;
    text-align: left;
}

.gallery-item-title {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f1f1f;
}

.gallery-item-description {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.gallery-content {
    padding: 12px;
}

.gallery-content h3 {
    margin: 0 0 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    justify-content: start;
}

.gallery-grid a {
    display: block;
    text-align: center;
}

.gallery-thumb {
    display: block;
    width: 200px;
    height: 150px;
    margin: 0 auto;
    object-fit: cover;
    background: #f5f5f5;
    border-radius: 8px;
}

.gallery-thumb:hover {
    transform: scale(1.03);
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
    justify-content: center;
    align-items: stretch;
    margin-top: 1.25rem;
}

.album-sort {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0 0 1rem;
}

.album-sort label {
    font-weight: 600;
}

.album-sort select,
.album-sort button {
    min-height: 2.5rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid #bfc5c8;
    border-radius: 6px;
    font: inherit;
}

.album-sort button {
    color: #fff;
    background: #0078d4;
    border-color: #0078d4;
    cursor: pointer;
}

.album-card {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    border: 1px solid rgba(44, 62, 80, 0.10);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.album-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.album-cover-wrapper {
    padding: 12px 12px 0;
}

.album-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.album-cover {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.album-meta {
    color: #555;
    margin-top: 5px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.album-info {
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.album-info h3 {
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 800;
    color: #1d2733;
    margin: 0;
}

.album-info strong {
    color: #111;
}

.album-description {
    color: #4d5965;
    margin-top: 4px;
    line-height: 1.45;
}

.album-card .btn,
.album-card .btn-success,
.album-card .btn-warning {
    display: block;
    width: calc(100% - 24px);
    margin: 0 12px 12px;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 10px;
    color: #fff;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.album-card .btn-success {
    background: var(--color-success);
}

.album-card .btn-warning {
    background: var(--color-warning);
}

.album-card .btn:hover,
.album-card .btn-success:hover,
.album-card .btn-warning:hover {
    opacity: 0.92;
}

.page-header {
    margin-bottom: 1.25rem;
}

.page-header h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1rem;
/*    color: #1d2733; */
    color: white;
    font-weight: 800;
}

.album-image {
    max-width: 100%;
    max-height: 210px;
    width: auto;
    height: auto;
    display: block;
}

.album-image-box {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.album-image:hover {
    transform: scale(1.03);
}

.messages {
    margin-bottom: 15px;
    padding: 10px;
    background: #dff0d8;
    border-radius: 5px;
}

.upload-form {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    background: #0078d7;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn:hover {
    background: #005ea6;
}

.btn-cover {
    display: inline-block;
    padding: 6px 10px;
    background: #f0ad4e;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 5px;
}

.cover-badge {
    display: inline-block;
    padding: 6px 10px;
    background: #28a745;
    color: #fff;
    border-radius: 5px;
}

.image-info {
    padding: 10px;
    margin-top: 0;
}

.main-navigation {
    display: flex;
    gap: 10px;
    margin: 20px 0 30px;
    flex-wrap: wrap;
}

.main-navigation .nav-link {
    display: inline-block;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 6px;
    background: #eee;
    color: #222;
}

.main-navigation .nav-link:hover {
    opacity: 0.85;
}

.glightbox-container .gprev,
.glightbox-container .gnext,
.glightbox-container .gclose {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ==================================================
   10. FORMULAR / ADMIN-KOMPONENTEN
   ================================================== */

.form-group {
    margin-bottom: 0.75rem;
}

.image-edit-page,
.image-upload-page {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0 auto;
}

.admin-form-title {
    margin: 0 0 1.2rem;
    font-size: clamp(2.2rem, 2.4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: #1f1f1f;
    text-align: left;
}

.image-edit-form,
.image-upload-form {
    width: min(100%, 420px);
    max-width: 420px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.image-edit-form .form-group,
.image-upload-form .form-group {
    margin-bottom: 1.05rem;
}

.image-edit-form .form-group label,
.image-upload-form .form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 700;
    color: #1f1f1f;
    font-size: 1.08rem;
}

.image-edit-form input[type="text"],
.image-edit-form textarea,
.image-edit-form select,
.image-upload-form input[type="text"],
.image-upload-form input[type="file"],
.image-upload-form textarea,
.image-upload-form select {
    width: 100%;
    padding: 0.8rem 0.85rem;
    border: 1px solid #b7bcbe;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.26);
    font-size: 1.05rem;
    box-sizing: border-box;
    color: #1f1f1f;
}

.image-edit-form textarea,
.image-upload-form textarea {
    min-height: 120px;
    resize: vertical;
}

.image-edit-form select,
.image-upload-form select {
    cursor: pointer;
}

.image-edit-form .action-row,
.image-upload-form .action-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.image-edit-form button,
.image-edit-form .btn,
.image-upload-form button,
.image-upload-form .btn {
    display: inline-block;
    padding: 0.9rem 1.3rem;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.image-edit-form .btn-primary,
.image-edit-form button[type="submit"],
.image-upload-form .btn-primary,
.image-upload-form button[type="submit"] {
    background: #0d8be8;
    color: #fff;
}

.image-edit-form .btn-primary:hover,
.image-edit-form button[type="submit"]:hover,
.image-upload-form .btn-primary:hover,
.image-upload-form button[type="submit"]:hover {
    background: #0a77c8;
}

.image-edit-form .btn-secondary,
.image-upload-form .btn-secondary {
    background: #9aa3a8;
    color: #fff;
}

.image-edit-form .btn-secondary:hover,
.image-upload-form .btn-secondary:hover {
    background: #81888d;
}

.empty-state {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.45);
    border-radius: 10px;
}


/* ==================================================
   Galerie / Upload-Formular
   ================================================== */

.gallery-upload-form {
    max-width: 700px;
}

.gallery-upload-form .form-group {
    margin-bottom: 1.1rem;
}

.gallery-upload-form .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 700;
    color: var(--color-primary);
}

.gallery-upload-form input[type="text"],
.gallery-upload-form input[type="file"],
.gallery-upload-form textarea,
.gallery-upload-form select {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    background: #fff;
    font-size: 1rem;
}

.gallery-upload-form textarea {
    resize: vertical;
    min-height: 100px;
}

.gallery-upload-form select {
    cursor: pointer;
}

.gallery-upload-form .form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.gallery-upload-form .btn-primary {
    background: var(--color-accent);
}

.gallery-upload-form .btn-primary:hover {
    background: var(--color-accent-hover);
}

.gallery-upload-form .btn-secondary {
    background: #6c757d;
    color: #fff;
}

.gallery-upload-form .btn-secondary:hover {
    background: #5a6268;
}

/* Admin Page Header */
.admin-page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.admin-page-header .admin-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.admin-page-header .page-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.admin-page-header .page-actions .btn {
    display: inline-block;
    padding: 0.65rem 1.1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-page-header .page-actions .btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.admin-page-header .page-actions .btn-primary:hover {
    background: var(--color-accent-hover);
}

.admin-page-header .page-actions .btn-secondary {
    background: #f0f2f5;
    color: #333;
}

.admin-page-header .page-actions .btn-secondary:hover {
    background: #e4e6eb;
}

.admin-page-header .image-count-info {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}
/* ==================================================
   09.1. Dashboard
   ================================================== */

.dashboard-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1rem;
}

.dashboard-card {
    background: var(--color-card);
    box-shadow: var(--shadow-card);
    border-radius: 15px;
    padding:1rem;
    box-shadow:
        0 2px 6px rgba(0,0,0,.08),
        0 8px 20px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
}

.dashboard-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dashboard-icon {
    width: 90px;
    height: auto;
    display: block;
    margin: 0 to 1rem auto;
}

.dashboard-card .card__title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: .5rem;
}

.dashboard-card .card-text {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;

    flex-grow: 1;
}

.dashboard-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
}

.dashboard-link:hover {
    color: var(--color-accent-hover);
}

.cashbook-year-form {
    margin-bottom: 1rem;
}

.cashbook-summary-metrics {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 1.25rem 0;
}

.cashbook-inline-delete-form {
    display: inline;
}

.crm__form-actions--start {
    margin-top: 0;
    justify-content: flex-start;
    gap: 0.5rem;
}

.member-list-stack {
    display: flex;
    gap: 0.35rem;
    flex-direction: column;
}

.admin-password-warning {
    color: #d63031;
}

.cashbook-edit-toggle {
    margin: 1rem 0;
}

.member-assignment-form {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.member-assignment-form__field {
    margin-bottom: 15px;
}

.member-assignment-form__field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.member-assignment-form__field select,
.member-assignment-form__field input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
}

.member-family-panel {
    margin: 40px 0 0;
}

.member-family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.member-family-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
}

.member-family-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.member-family-card__action {
    display: inline-block;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
}

.member-family-card__action--primary {
    background-color: #2196F3;
}

.member-family-card__action--danger {
    background-color: #f44336;
}

.member-family-card__remove {
    margin-left: 10px;
    color: #f44336;
    text-decoration: none;
    font-size: 12px;
}

.member-contribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.member-contribution-form {
    display: flex;
    align-items: end;
    gap: 8px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.member-contribution-form label {
    flex: 1;
}

.member-contribution-form input {
    display: block;
    width: 100%;
    padding: 6px;
    margin-top: 4px;
}

.member-contribution-form button {
    padding: 7px 10px;
}

.member-family-card__list {
    margin: 10px 0;
    padding-left: 20px;
}

.member-assignment-form__hint {
    color: #666;
}

.member-assignment-form__submit {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.cashbook-options__tab,
.cashbook-edit-toggle {
    cursor: pointer;
}
/* ==================================================
   10. HINWEISE
   ================================================== */

.hinweis1-txt {
    color: var(--color-warning);
    font-weight: bold;
}


/* ==================================================
   11. SECTIONEN
   ================================================== */

.versteckte-section {
    display: none;
    border: 1px solid #ccc;
    padding: 20px;
    margin-top: 10px;
    background-color: #f9f9f9;
}

.sichtbar {
    display: block;
}

.section {
    display: none;
}

.member-edit__form .section {
    display: block;
}

/* Mitglied bearbeiten */
.member-edit {
    max-width: 65rem;
}

.member-edit__header {
    margin-bottom: 1.25rem;
}

.member-edit__header h1 {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.member-edit__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.2);
}

.member-edit__tabs label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    background: var(--color-card);
    border: 1px solid rgba(44, 62, 80, 0.2);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.member-edit__tabs label:has(input:checked) {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.cashbook-options__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.2);
}

.cashbook-options__tab {
    padding: 0.45rem 0.7rem;
    background: var(--color-card);
    border: 1px solid rgba(44, 62, 80, 0.2);
    border-radius: 6px;
    color: var(--color-text);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.cashbook-options__tab[aria-selected="true"] {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.cashbook-options__panel {
    margin-bottom: 2rem;
}

.member-edit__section {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(44, 62, 80, 0.15);
    border-radius: 8px;
}

.member-edit__section h2,
.member-edit__section legend {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.member-edit__section legend {
    padding: 0;
}

.member-edit__grid,
.member-edit__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.member-edit__grid label {
    display: grid;
    gap: 0.35rem;
    color: var(--color-text);
    font-weight: 600;
}

.member-edit__grid input {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid rgba(44, 62, 80, 0.3);
    border-radius: 5px;
    background: white;
    color: var(--color-text);
}

.member-edit__grid input:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 1px;
}

.member-edit__grid input[readonly] {
    background: #e5e8e9;
    color: var(--color-text-light);
}

.member-edit__grid .member-edit__toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-edit__dsgvo-grid {
    grid-template-columns: 1fr;
}

.member-edit__dsgvo-row {
    display: grid;
    gap: 0.35rem;
}

.member-edit__dsgvo-toggle {
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(44, 62, 80, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.7);
}

.member-edit__grid .member-edit__hint {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.7rem;
    border-left: 3px solid var(--color-accent);
    background: rgba(44, 62, 80, 0.05);
    color: var(--color-text-light);
    font-weight: 600;
}

.member-edit__toggle input {
    width: auto;
}

.member-edit__summary div {
    padding: 0.8rem;
    border-left: 3px solid var(--color-accent);
    background: var(--color-card);
}

.member-edit__summary dt {
    color: var(--color-text-light);
    font-size: 0.85rem;
}

.member-edit__summary dd {
    margin-top: 0.25rem;
    font-weight: 600;
}

.member-edit__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.member-edit__actions button,
.member-edit__delete button {
    padding: 0.65rem 1rem;
    border: 1px solid var(--color-primary);
    border-radius: 6px;
    background: var(--color-primary);
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.member-edit__actions a {
    color: var(--color-primary);
    font-weight: 600;
}

.member-edit__delete {
    margin-top: 1.5rem;
}

.member-edit__delete button {
    border-color: var(--color-warning);
    background: transparent;
    color: var(--color-warning);
}

.member-edit__error {
    margin-bottom: 1rem;
    color: var(--color-warning);
    font-weight: 600;
}

.member-list__contacts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.member-list__details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.member-detail-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(44, 62, 80, 0.15);
    border-radius: 8px;
}

.member-detail-card h2,
.member-contact-card h2 {
    margin-bottom: 0.75rem;
    padding: 1rem;
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.member-detail-card__content,
.member-contact-card__content {
    padding: 0 1rem 1rem;
}

.member-detail-card__contribution-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.member-detail-card__contribution-form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
}

.member-detail-card__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.member-detail-card__grid div {
    min-width: 0;
}

.member-detail-card__grid dt {
    margin-bottom: 0.25rem;
    color: var(--color-text-light);
    font-size: 0.85rem;
    font-weight: 700;
}

.member-detail-card__grid dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.member-family-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.6rem 0.9rem;
    border: 1px solid #b6d4fe;
    border-radius: 6px;
    background: #e7f1ff;
    font-weight: 600;
    color: #0b5ed7;
}

.member-family-info--payer {
    border-color: #a3cfbb;
    background: #d1e7dd;
    color: #146c43;
}

.member-family-info__badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #e2e3e5;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 600;
}

.member-family-info__badge--payer {
    background: #d1e7dd;
    color: #198754;
}

.member-overview-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(44, 62, 80, 0.15);
    border-radius: 8px;
}

.member-overview-card h2 {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    color: var(--color-primary);
    font-weight: 700;
}

.member-overview-card__duration {
    display: inline-block;
    margin-left: 0.65rem;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    background: #d9edf9;
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.member-overview-card__content {
    padding: 0 1rem 1rem;
}

.member-card__actions {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.member-card--active .member-card__actions {
    display: flex;
}

.member-card__actions a,
.member-card__actions button:not(.member-card__close) {
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--color-accent);
    border-radius: 6px;
    background: var(--color-accent);
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
}

.member-card__actions form {
    margin: 0;
}

.member-card__actions form button {
    border-color: var(--color-warning);
    background: transparent;
    color: var(--color-warning);
}

.member-card__close {
    padding: 0.55rem 0.2rem;
    border: 0;
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.member-contact-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(44, 62, 80, 0.15);
    border-radius: 8px;
}

.member-contact-card h2 {
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.member-contact-card__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.member-contact-card dl {
    min-width: 0;
}

.member-contact-card dt {
    margin-bottom: 0.4rem;
    color: var(--color-text-light);
    font-size: 0.85rem;
    font-weight: 700;
}

.member-contact-card dd {
    margin: 0.25rem 0;
    overflow-wrap: anywhere;
}

@media (max-width: 42rem) {
    .cashbook-form__inline-fields {
        grid-template-columns: 1fr;
    }

    .cashbook-form__grid {
        grid-template-columns: 1fr;
    }

    .cashbook-form__amount {
        grid-column: auto;
    }

    .member-edit__grid,
    .member-edit__summary,
    .member-list__contacts,
    .member-contact-card__details,
    .member-detail-card__grid {
        grid-template-columns: 1fr;
    }

    .member-overview-card h2 {
        flex-direction: column;
    }

    .member-edit__section {
        padding: 1rem;
    }
}


/* ==================================================
   12. FAMILIEN
   ================================================== */

.family-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.family-top-actions__link {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 3px;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.family-top-actions__link--secondary {
    background: #6c757d;
}

.family-top-actions__link--success {
    background: #28a745;
}

.family-top-actions__link--primary {
    background: #007bff;
}

.family-form-grid,
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.family-form-group,
.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.family-form-group label,
.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.family-form-group input,
.family-form-group select,
.form-group input,
.form-group select {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.9rem;
}

.family-error-message,
.error-message {
    color: #dc3545;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 15px;
}

.family-button-group,
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding: 10px;
}

.family-button-group input[type="submit"],
.button-group input[type="submit"] {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
}

.family-button-group a,
.button-group a {
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.family-members-section,
.members-section {
    margin-top: 30px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.family-members-table,
.members-table,
.families-report-table,
.family-report-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 10px;
}

.family-members-table th,
.family-members-table td,
.members-table th,
.members-table td,
.families-report-table th,
.families-report-table td,
.family-report-table th,
.family-report-table td {
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #ddd;
    vertical-align: top;
}

.family-members-table thead,
.members-table thead,
.families-report-table thead,
.family-report-table thead {
    background: #f0f0f0;
    font-weight: bold;
}

.family-members-table tbody tr:hover,
.members-table tbody tr:hover,
.families-report-table tbody tr:hover,
.family-report-table tbody tr:hover {
    background: #f9f9f9;
}

.family-remove-btn,
.remove-btn {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9rem;
}

.family-members-list,
.members-list {
    padding: 8px;
    background: #f9f9f9;
    border-radius: 3px;
    font-size: 0.9rem;
    list-style: disc;
    margin: 0;
    padding-left: 18px;
}

.family-members-list li,
.members-list li {
    margin: 4px 0;
}

.family-action-links,
.action-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.family-action-links a,
.action-links a {
    padding: 4px 8px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 600;
}

.family-edit-link,
.edit-link {
    background: #007bff;
    color: white;
}

.family-delete-link,
.delete-link {
    background: #dc3545;
    color: white;
}

.family-add-member-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.family-add-member-select {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.family-add-member-submit {
    padding: 6px 16px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
}

.family-no-payer,
.no-payer {
    color: #dc3545;
    font-style: italic;
}

/* ==================================================
   13. MITGLIEDER
   ================================================== */

.member__tap {
    float: left;
    list-style-type: none;
    margin-left: 2rem;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #d5d9da;
    border-radius: 10px;
}

ul li {
    float: left;
    padding-left: 1rem;
    padding-bottom: 1rem;
}


/* ==================================================
   13. SPEZIAL
   ================================================== */

.td__year-item {
    text-align: center;
}

/* ==================================================
   15. Login
   ================================================== */

input[type="text"],
input[type="password"] {
    width: 100%;
    max-width: 520px;
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
    border: 1px solid #bfc5c8;
    border-radius: 8px;
    background: #ffffff;
}
input[type="submit"] {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    background: #0078d4;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background: #005ea6;
}

.login-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
}

.login-form {
    max-width: 350px;
}



/* ==================================================
   14. RESPONSIVE
   ================================================== */

@media (max-width: 36em) {
    html {
        font-size: 92%;
    }

    body {
        overflow-x: hidden;
    }

    .container,
    .footer__frontend-container,
    .footer__admin-container,
    .footer__admin-container-member,
    .header__login-container {
        width: auto;
        max-width: 100%;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .header-h1,
    .header__login-h1 {
        font-size: 1.7rem;
        line-height: 1.2;
    }

    .frontend-brand-subtitle {
        font-size: 1.9rem;
    }

    .nav-toggle {
        display: block;
        width: 2.5rem;
        height: 2.5rem;
        margin: -2.2rem 0 0 auto;
        padding: 0.45rem 0.55rem;
        background: rgba(255, 255, 255, 0.75);
        border: 1px solid rgba(44, 62, 80, 0.15);
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .nav-toggle span {
        height: 0.18rem;
        margin: 0.24rem 0;
    }

    .frontend__container {
        position: relative;
        overflow: visible;
        z-index: 1;
    }

    header.frontend__container {
        position: relative;
        z-index: 1000;
    }

    .header-nav {
        position: absolute;
        top: 3.1rem;
        left: 0.55rem;
        z-index: 2000;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.3rem;
        width: min(50vw, 9rem);
        max-height: 14rem;
        padding: 0.45rem;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(44, 62, 80, 0.15);
        border-radius: 10px;
        box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
        opacity: 0;
        pointer-events: none;
        transform: translateX(-115%);
        transition: transform 0.28s ease, opacity 0.2s ease;
        isolation: isolate;
    }

    .header-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    .header__nav-item,
    .header__login-nav-item,
    .header__admin-nav-item {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0.6rem;
        font-size: 0.78rem;
        line-height: 1.2;
    }

    .header__login-nav {
        flex-direction: column;
        align-items: center;
        padding-right: 0;
        text-align: center;
    }

    .header__nav-item,
    .header__login-nav-item,
    .header__admin-nav-item {
        width: 100%;
        text-align: center;
        padding: 0.65rem 0.75rem;
    }

    .calendar-heading {
        font-size: 1.8rem;
        letter-spacing: 0.08em;
    }

    .monthly-highlight,
    .branding-highlight-preview__figure {
        min-height: 0;
        gap: 0.9rem;
        padding: 0.9rem 0.65rem 1.25rem;
    }

    .monthly-highlight__image,
    .monthly-highlight__empty {
        max-width: min(100%, 12rem);
        max-height: 18rem;
    }

    .monthly-highlight__caption {
        padding: 0;
    }

    .monthly-highlight__caption h1 {
        font-size: 2.3rem;
    }

    .branding-highlight-preview__figure .monthly-highlight__caption h2 {
        font-size: 1.6rem;
    }

    .gallery,
    .gallery-grid,
    .albums-grid {
        grid-template-columns: 1fr;
    }

    .album-card {
        max-width: none;
    }

    .crm__table,
    .calendar-table,
    .event-table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    td,
    th {
        white-space: nowrap;
    }

    .event-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .event-filter__link {
        display: block;
        text-align: center;
    }
}

@media (max-width: 25.8em) {
    html {
        font-size: 82%;
    }

    .header-h1,
    .header__login-h1 {
        font-size: 1.5rem;
    }

    .calendar-heading {
        font-size: 1.5rem;
    }

    .container {
        padding: 0.75rem;
    }
}

@media (min-width: 100em) {
    html { font-size: 133%; }
}

@media (min-width: 133em) {
    html { font-size: 166%; }
}

@media (min-width: 166em) {
    html { font-size: 200%; }
}





