/* Torenga Standard-Theme 1.2.1 */

/* ==========================================================
   1. Theme-Variablen
   ========================================================== */

:root {
    --torenga-navy: #111d2a;
    --torenga-blue: #0f48a2;
    --torenga-green: #105a52;
    --torenga-soft: #f4f7fb;
}


/* ==========================================================
   2. Grundlayout und globale Elemente
   ========================================================== */

html,
body {
    font-family: var(
        --template-font,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif
    );
}

body {
    color: #253244;
    background: linear-gradient(180deg, #f8fafc 0, #f3f6fa 100%);
}

.site,
.members-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container,
.members-topbar__inner,
.members-footer__inner {
    width: min(
        calc(100% - 2rem),
        var(--template-container-width, 1200px)
    );
    margin-inline: auto;
}

.site-main,
.members-main {
    flex: 1;
}

.site-content {
    padding: 1.25rem 0 3rem;
}

img {
    max-width: 100%;
    height: auto;
}


/* ==========================================================
   3. Links und Fokuszustände
   ========================================================== */

a {
    color: var(--template-primary, var(--torenga-blue));
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(15, 72, 162, 0.25);
    outline-offset: 3px;
}


/* ==========================================================
   4. Website-Header
   ========================================================== */

.site-header {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #dfe6ef;
    box-shadow: 0 8px 28px rgba(17, 29, 42, 0.05);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 2rem;
}

.site-brand-link {
    display: inline-flex;
    align-items: center;
    color: var(--torenga-navy);
    text-decoration: none;
}

.site-logo {
    width: auto;
    max-height: 44px;
}

.site-title {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}


/* ==========================================================
   5. Website-Navigation
   ========================================================== */

.site-navigation-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-navigation-link {
    display: inline-flex;
    padding: 0.65rem 0.85rem;
    color: #344256;
    font-weight: 650;
    text-decoration: none;
    border-radius: 8px;
}

.site-navigation-link:hover,
.site-navigation-link.is-active {
    color: var(--template-primary, var(--torenga-blue));
    background: #eef4ff;
}


/* ==========================================================
   6. Buttons
   ========================================================== */

.button-primary,
.btn-primary,
.progress-bar,
.members-brand__mark {
    background: var(--template-primary, var(--torenga-blue));
}

.button,
.btn,
.members-button {
    font-weight: 700;
    border-radius: 9px;
    box-shadow: none;
}


/* ==========================================================
   7. Karten und Panels
   ========================================================== */

.card,
.members-card,
.members-panel,
.members-stat-card,
.members-auth-card {
    border-color: #dde5ee;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(17, 29, 42, 0.06);
}


/* ==========================================================
   8. Formulare
   ========================================================== */

input,
select,
textarea,
.form-control,
.members-input {
    min-height: 44px;
    border: 1px solid #cfd8e3;
    border-radius: 9px;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.members-input:focus {
    border-color: var(--template-primary, var(--torenga-blue));
    box-shadow: 0 0 0 3px rgba(15, 72, 162, 0.12);
}


/* ==========================================================
   9. Tabellen und Hinweise
   ========================================================== */

.table-responsive {
    border: 1px solid #dfe6ef;
    border-radius: 12px;
}

.table th {
    color: var(--torenga-navy);
    background: #f4f7fb;
}

.alert,
.members-alert {
    border-radius: 10px;
}


/* ==========================================================
   10. Website-Footer
   ========================================================== */

.site-footer {
    margin-top: auto;
    color: #d9e2ed;
    background: var(--template-secondary, var(--torenga-navy));
    border-top: 4px solid var(--template-primary, var(--torenga-blue));
}

.site-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 2.25rem 0;
    text-align: center;
}

.site-footer-logo {
    width: auto;
    max-height: 42px;
}

.site-footer-text,
.site-footer-copyright {
    max-width: 760px;
    margin: 0;
    color: inherit;
}

.site-footer-navigation-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    margin: 0.25rem 0 0;
    padding: 0;
    list-style: none;
}

.site-footer-navigation-link {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.site-footer-navigation-link:hover,
.site-footer-navigation-link:focus-visible {
    color: #b9d3ff;
    text-decoration: underline;
}

.site-footer-powered,
.members-footer__powered {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    opacity: 0.72;
}

.site-footer-powered a,
.members-footer__powered a {
    color: inherit;
    text-decoration: none;
}


/* ==========================================================
   11. Social-Links im Footer
   ========================================================== */

.site-footer-social,
.members-footer-social {
    width: 100%;
    margin: 0 0 0.25rem;
}

.site-footer-social__list,
.members-footer-social__list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-social__link,
.members-footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    transition:
        transform 0.15s ease,
        background 0.15s ease;
}

.site-footer-social__link:hover,
.members-footer-social__link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-social-icon {
    display: block;
    width: 19px;
    height: 19px;
    background: currentColor;
    -webkit-mask: var(--social-icon) center / contain no-repeat;
    mask: var(--social-icon) center / contain no-repeat;
}


/* ==========================================================
   12. Mitgliederbereich
   ========================================================== */

.members-topbar {
    border-bottom: 1px solid #dfe6ef;
    box-shadow: 0 8px 28px rgba(17, 29, 42, 0.05);
}

.members-footer {
    margin-top: auto;
    color: #d9e2ed;
    background: var(--template-secondary, var(--torenga-navy));
    border-top: 4px solid var(--template-primary, var(--torenga-blue));
}

.members-footer__inner {
    padding: 2rem 0;
    text-align: center;
}

.members-footer__list {
    justify-content: center;
    flex-wrap: wrap;
}

.members-footer__link {
    color: #fff;
}

.members-footer__text {
    max-width: 800px;
    margin: 0.25rem auto;
}


/* ==========================================================
   13. Responsive Darstellung
   ========================================================== */

@media (max-width: 820px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        gap: 0.75rem;
        padding: 1rem 0;
    }

    .site-navigation {
        width: 100%;
        overflow-x: auto;
    }

    .site-navigation-list {
        flex-wrap: nowrap;
        width: max-content;
        min-width: 100%;
    }

    .site-navigation-link {
        white-space: nowrap;
    }

    .site-content {
        padding: 1.25rem 0;
    }
}

@media (max-width: 520px) {
    .site-footer-navigation-list {
        flex-direction: column;
        gap: 0.55rem;
    }

    .site-footer-inner {
        padding: 1.75rem 0;
    }

    .button-group {
        align-items: stretch;
    }

    .button-group > .button,
    .button-group > .members-button {
        width: 100%;
    }
}

/* ==========================================================
   14. Torenga 0.9.24 – Mitgliederbereich Korrekturen 1.2.1
   ========================================================== */

/* Passwort-Anzeigen-Button auf Login-, Registrierungs- und
   Passwortseiten exakt vertikal im Eingabefeld zentrieren. */
.members-auth-card .members-password-toggle,
.members-password-toggle {
    top: 50% !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
}

.members-auth-card .members-password-toggle:hover,
.members-auth-card .members-password-toggle:focus-visible,
.members-password-toggle:hover,
.members-password-toggle:focus-visible {
    transform: translateY(-50%) !important;
}

/* Abstand zwischen Hinweistext und Login-/Registrierungslink. */
.members-auth-links a {
    margin-left: .28em;
}

/* Produktzähler auf der Produktübersicht klar und kontrastreich
   darstellen. */
.members-count {
    display: inline-flex;
    align-items: stretch;
    overflow: hidden;
    vertical-align: middle;
    border: 1px solid #d9e3ef;
    border-radius: 8px;
    box-shadow: none;
}

.members-count strong,
.members-count span {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-height: 38px;
    margin: 0 !important;
    padding: .5rem .78rem;
    border: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transform: none !important;
}

.members-count strong {
    color: #FFFFFF;
    background: var(--template-primary, var(--torenga-blue));
    font-weight: 800;
}

.members-count span {
    color: #FFFFFF;
    background: var(--template-secondary, var(--torenga-navy));
    font-size: .9rem;
    font-weight: 700;
}

/* Dekorativen Schatten/Hintergrund oben rechts auf der
   Produktübersicht entfernen. */
.members-page-products .members-hero::after,
.members-page-products .members-dashboard-hero::after,
.members-page-products::after,
.members-dashboard-hero::after,
.members-hero::after {
    background: transparent !important;
    box-shadow: none !important;
}

/* Formularbeschriftungen im Standard-Theme explizit lesbar halten. */
.members-auth-card label,
.members-form label,
.form-group label {
    color: var(--torenga-navy);
}

