/* =========================================================
   MITGLIEDER-LOGIN – KGV WESTEND
   Datei: assets/css/member-login.css
   Gilt nur für: body.member-login-page
========================================================= */

/* =========================================================
   SEITEN-GRUNDLAYOUT
========================================================= */

body.member-login-page {
    position: relative;
    min-height: 100vh;

    font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

    color: #1f2937;

    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;

    overflow-x: hidden;
}

/* Jahreszeiten-Hintergründe direkt für Mitgliederbereich */
body.member-login-page.season-fruehjahr {
    background-image: url("../img/hintergrund/fruehjahr.jpg");
}

body.member-login-page.season-sommer {
    background-image: url("../img/hintergrund/sommer.jpg");
}

body.member-login-page.season-herbst {
    background-image: url("../img/hintergrund/herbst.jpg");
}

body.member-login-page.season-winter {
    background-image: url("../img/hintergrund/winter.jpg");
}

/* weiche Überlagerung für gute Lesbarkeit */
body.member-login-page::before {
    content: "";
    position: fixed;
    inset: 0;

    background:
            linear-gradient(
                    135deg,
                    rgba(18, 47, 28, 0.76) 0%,
                    rgba(18, 47, 28, 0.50) 28%,
                    rgba(255, 255, 255, 0.34) 62%,
                    rgba(255, 255, 255, 0.58) 100%
            );

    z-index: 0;
    pointer-events: none;
}

body.member-login-page > * {
    position: relative;
    z-index: 1;
}

/* Container sicherstellen, falls nur layout.css geladen ist */
.member-login-page .container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   TOPBAR
========================================================= */

.member-topbar {
    position: relative;
    z-index: 10;

    padding: 18px 0;

    background: rgba(29, 83, 46, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.20);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.member-topbar-inner {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.member-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: #ffffff;
    text-decoration: none;

    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.member-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    padding: 5px;

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.member-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 10px 18px;

    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.40);

    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;

    background: rgba(255, 255, 255, 0.12);

    transition: all 0.25s ease;
}

.member-back-link:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

/* =========================================================
   HERO
========================================================= */

.member-hero {
    padding: 82px 0 42px;
}

.member-hero-content {
    max-width: 860px;
}

.member-kicker {
    display: inline-flex;
    align-items: center;

    margin-bottom: 18px;
    padding: 8px 16px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);

    color: #ffffff;
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.member-hero h1 {
    font-family: "Merriweather", Georgia, serif;

    font-size: clamp(2.6rem, 5vw, 4.7rem);
    line-height: 1.08;

    color: #ffffff;

    margin-bottom: 22px;

    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
}

.member-hero p {
    max-width: 820px;

    color: rgba(255, 255, 255, 0.96);

    font-size: 1.18rem;
    line-height: 1.8;

    text-shadow: 0 5px 22px rgba(0, 0, 0, 0.34);
}

/* =========================================================
   HAUPTBEREICH
========================================================= */

.member-login-section {
    padding: 10px 0 95px;
}

.member-login-layout {
    display: grid;
    grid-template-columns: minmax(340px, 430px) 1fr;
    gap: 36px;
    align-items: start;
}

/* =========================================================
   GLASKARTEN
========================================================= */

.member-login-card,
.member-info-card {
    position: relative;

    border-radius: 30px;
    padding: 36px;

    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.42);

    box-shadow:
            0 24px 60px rgba(0, 0, 0, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.58);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.member-login-card {
    position: sticky;
    top: 24px;
}

.member-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 18px;
    padding: 8px 14px;

    border-radius: 999px;

    background: rgba(47, 107, 62, 0.10);
    color: #2f6b3e;

    font-weight: 800;
    font-size: 0.90rem;
}

.member-login-card h2,
.member-info-card h2 {
    font-family: "Merriweather", Georgia, serif;

    color: #172033;

    font-size: 2.15rem;
    line-height: 1.2;

    margin-bottom: 14px;
}

.member-login-card p,
.member-info-card p {
    color: #4b5b6f;

    font-size: 1.02rem;
    line-height: 1.75;

    margin-bottom: 26px;
}

/* =========================================================
   LOGIN-FORMULAR
========================================================= */

.member-login-form {
    margin-top: 24px;
}

.member-login-form .form-group {
    margin-bottom: 20px;
}

.member-login-form label {
    display: block;

    margin-bottom: 8px;

    color: #1f2937;

    font-weight: 800;
    font-size: 0.98rem;
}

.member-login-form input {
    width: 100%;
    height: 56px;

    border-radius: 16px;
    border: 1px solid rgba(47, 107, 62, 0.20);

    background: rgba(255, 255, 255, 0.92);

    padding: 0 16px;

    color: #111827;

    font-family: inherit;
    font-size: 1rem;

    box-shadow:
            inset 0 1px 2px rgba(0, 0, 0, 0.04),
            0 8px 20px rgba(0, 0, 0, 0.03);

    transition:
            border-color 0.25s ease,
            box-shadow 0.25s ease,
            background 0.25s ease,
            transform 0.25s ease;
}

.member-login-form input::placeholder {
    color: #9ca3af;
}

.member-login-form input:focus {
    outline: none;

    border-color: rgba(47, 107, 62, 0.68);
    background: #ffffff;

    box-shadow:
            0 0 0 4px rgba(47, 107, 62, 0.14),
            0 12px 26px rgba(0, 0, 0, 0.08);

    transform: translateY(-1px);
}

.member-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 56px;

    margin-top: 6px;
    padding: 14px 28px;

    border: none;
    border-radius: 16px;

    background: linear-gradient(135deg, #2f6b3e, #4d9a61);
    color: #ffffff;

    font-family: inherit;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.02em;

    cursor: pointer;
    text-decoration: none;

    box-shadow: 0 16px 30px rgba(47, 107, 62, 0.30);

    transition:
            transform 0.25s ease,
            box-shadow 0.25s ease,
            background 0.25s ease;
}

.member-login-button:hover {
    transform: translateY(-3px);

    background: linear-gradient(135deg, #285b35, #438852);

    box-shadow: 0 22px 38px rgba(47, 107, 62, 0.36);
}

.member-login-button:active {
    transform: translateY(-1px);
}

.member-login-note {
    margin-top: 22px;
    margin-bottom: 0 !important;

    color: #5d6b7b !important;

    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

/* =========================================================
   FEHLERMELDUNGEN
========================================================= */

.login-error {
    margin: 18px 0 22px;
    padding: 15px 16px;

    border-radius: 16px;

    background: rgba(180, 35, 24, 0.11);
    border: 1px solid rgba(180, 35, 24, 0.16);

    color: #9f1c14;

    font-weight: 800;
    line-height: 1.5;
}

/* =========================================================
   FUNKTIONSKARTEN
========================================================= */

.member-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.member-feature {
    position: relative;

    min-height: 220px;
    padding: 26px 26px 24px;

    border-radius: 24px;

    background: rgba(246, 250, 247, 0.82);
    border: 1px solid rgba(47, 107, 62, 0.13);

    box-shadow:
            0 10px 24px rgba(0, 0, 0, 0.055),
            inset 0 1px 0 rgba(255, 255, 255, 0.65);

    overflow: hidden;

    transition:
            transform 0.25s ease,
            box-shadow 0.25s ease,
            background 0.25s ease;
}

.member-feature::after {
    content: "";
    position: absolute;
    right: -38px;
    top: -38px;

    width: 96px;
    height: 96px;

    border-radius: 50%;

    background: rgba(47, 107, 62, 0.08);
}

.member-feature:hover {
    transform: translateY(-5px);

    background: rgba(255, 255, 255, 0.92);

    box-shadow:
            0 18px 34px rgba(0, 0, 0, 0.09),
            inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.member-feature-icon {
    position: relative;
    z-index: 1;

    width: 52px;
    height: 52px;

    margin-bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.74);

    font-size: 2rem;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.member-feature h3 {
    position: relative;
    z-index: 1;

    color: #1f2937;

    font-family: "Merriweather", Georgia, serif;
    font-size: 1.32rem;
    line-height: 1.3;

    margin-bottom: 10px;
}

.member-feature p {
    position: relative;
    z-index: 1;

    color: #526172;

    font-size: 0.98rem;
    line-height: 1.7;

    margin-bottom: 0;
}

/* =========================================================
   LINKS
========================================================= */

.member-login-page a {
    color: #2f6b3e;
    transition: color 0.22s ease;
}

.member-login-page a:hover {
    color: #234f2e;
}

/* =========================================================
   KLEINE DEKO-ELEMENTE
========================================================= */

.member-login-card::before,
.member-info-card::before {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    top: 0;

    height: 4px;

    border-radius: 999px;

    background: linear-gradient(
            90deg,
            rgba(47, 107, 62, 0.0),
            rgba(47, 107, 62, 0.72),
            rgba(47, 107, 62, 0.0)
    );
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1150px) {
    .member-login-layout {
        grid-template-columns: 1fr;
    }

    .member-login-card {
        position: relative;
        top: auto;

        max-width: 620px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 820px) {
    body.member-login-page {
        background-attachment: scroll;
    }

    .member-topbar-inner {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
        text-align: center;
    }

    .member-hero {
        padding: 56px 0 32px;
    }

    .member-hero h1 {
        font-size: 2.55rem;
    }

    .member-hero p {
        font-size: 1.04rem;
        line-height: 1.7;
    }

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

    .member-login-card,
    .member-info-card {
        padding: 28px 22px;
        border-radius: 24px;
    }

    .member-login-card h2,
    .member-info-card h2 {
        font-size: 1.85rem;
    }
}

@media (max-width: 520px) {
    .member-login-page .container,
    .member-topbar-inner {
        padding: 0 16px;
    }

    .member-logo-link span {
        font-size: 0.98rem;
    }

    .member-logo {
        width: 40px;
        height: 40px;
    }

    .member-hero {
        padding: 42px 0 28px;
    }

    .member-kicker {
        font-size: 0.78rem;
        padding: 7px 12px;
    }

    .member-hero h1 {
        font-size: 2.15rem;
    }

    .member-login-section {
        padding-bottom: 62px;
    }

    .member-login-card,
    .member-info-card {
        padding: 24px 18px;
    }

    .member-feature {
        min-height: auto;
        padding: 22px 20px;
    }
}

/* =========================================================
   MITGLIEDER-DASHBOARD
========================================================= */

.member-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-back-link.logout {
    background: rgba(180, 35, 24, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
}

.member-back-link.logout:hover {
    background: rgba(180, 35, 24, 0.32);
}

.dashboard-hero {
    padding-bottom: 30px;
}

.member-dashboard-section {
    padding: 10px 0 100px;
}

.dashboard-message {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 16px;
    font-weight: 800;
}

.dashboard-message.success {
    background: rgba(47, 107, 62, 0.14);
    border: 1px solid rgba(47, 107, 62, 0.22);
    color: #245632;
}

.dashboard-message.error {
    background: rgba(180, 35, 24, 0.12);
    border: 1px solid rgba(180, 35, 24, 0.18);
    color: #9f1c14;
}

.dashboard-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 34px;
}

.dashboard-overview-card {
    padding: 24px 26px;
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.40);

    box-shadow:
            0 18px 42px rgba(0, 0, 0, 0.13),
            inset 0 1px 0 rgba(255, 255, 255, 0.55);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.dashboard-overview-card span {
    display: block;
    color: #5d6b7b;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.dashboard-overview-card strong {
    display: block;
    color: #172033;
    font-size: 1.25rem;
    font-weight: 900;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 28px;
}

.dashboard-card {
    padding: 30px;
    border-radius: 28px;

    background: rgba(255, 255, 255, 0.80);
    border: 1px solid rgba(255, 255, 255, 0.42);

    box-shadow:
            0 22px 52px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.60);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.dashboard-card-wide {
    grid-column: 1 / -1;
}

.dashboard-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: rgba(47, 107, 62, 0.11);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);

    font-size: 2rem;
    flex-shrink: 0;
}

.dashboard-card h2 {
    color: #172033;
    font-family: "Merriweather", Georgia, serif;
    font-size: 1.7rem;
    line-height: 1.25;
    margin-bottom: 6px;
}

.dashboard-card p {
    color: #5d6b7b;
    line-height: 1.65;
    margin-bottom: 0;
}

.dashboard-form {
    margin-top: 20px;
}

.dashboard-form .form-group {
    margin-bottom: 18px;
}

.dashboard-form label {
    display: block;
    margin-bottom: 8px;

    color: #1f2937;
    font-weight: 800;
    font-size: 0.96rem;
}

.dashboard-form input,
.dashboard-form textarea {
    width: 100%;

    border-radius: 16px;
    border: 1px solid rgba(47, 107, 62, 0.20);

    background: rgba(255, 255, 255, 0.92);

    padding: 14px 16px;

    color: #111827;

    font-family: inherit;
    font-size: 1rem;

    box-shadow:
            inset 0 1px 2px rgba(0, 0, 0, 0.04),
            0 8px 20px rgba(0, 0, 0, 0.03);

    transition:
            border-color 0.25s ease,
            box-shadow 0.25s ease,
            background 0.25s ease;
}

.dashboard-form input {
    min-height: 52px;
}

.dashboard-form textarea {
    resize: vertical;
    min-height: 150px;
}

.dashboard-form input:focus,
.dashboard-form textarea:focus {
    outline: none;
    border-color: rgba(47, 107, 62, 0.68);
    background: #ffffff;

    box-shadow:
            0 0 0 4px rgba(47, 107, 62, 0.14),
            0 12px 26px rgba(0, 0, 0, 0.08);
}

.dashboard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 13px 26px;

    border: none;
    border-radius: 16px;

    background: linear-gradient(135deg, #2f6b3e, #4d9a61);
    color: #ffffff;

    font-family: inherit;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.02em;

    cursor: pointer;
    text-decoration: none;

    box-shadow: 0 14px 28px rgba(47, 107, 62, 0.26);

    transition:
            transform 0.25s ease,
            box-shadow 0.25s ease,
            background 0.25s ease;
}

.dashboard-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #285b35, #438852);
    box-shadow: 0 20px 36px rgba(47, 107, 62, 0.32);
}

.dashboard-note {
    margin-top: 18px;
    color: #5d6b7b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.verbrauch-box {
    margin-top: 22px;
    display: grid;
    gap: 14px;
}

.verbrauch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 15px 16px;
    border-radius: 16px;

    background: rgba(47, 107, 62, 0.08);
    border: 1px solid rgba(47, 107, 62, 0.12);
}

.verbrauch-row span {
    color: #5d6b7b;
    font-weight: 700;
}

.verbrauch-row strong {
    color: #172033;
    font-weight: 900;
}

/* =========================================================
   DASHBOARD RESPONSIVE
========================================================= */

@media (max-width: 1050px) {
    .dashboard-overview-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .member-topbar-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .dashboard-card {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .dashboard-card-header {
        flex-direction: column;
    }

    .verbrauch-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   Mitglieder-Dashboard
   ========================================================= */

body.member-dashboard-page {
    min-height: 100vh;
    margin: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2a1f;
}

.member-topbar {
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.member-topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.member-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1f4d2b;
    text-decoration: none;
    font-weight: 700;
}

.member-brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.member-topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.member-user-name {
    font-weight: 600;
    color: #23402a;
}

.member-logout-link {
    padding: 8px 14px;
    border-radius: 999px;
    background: #1f6b3a;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.member-logout-link:hover {
    background: #174f2c;
}

.member-dashboard {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 22px 60px;
}

.member-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
}

.member-dashboard-welcome,
.member-info-card,
.dashboard-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.member-dashboard-welcome h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #1f4d2b;
}

.member-dashboard-welcome p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.member-kicker {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #3f7d4a;
}

.member-info-card h2,
.dashboard-card h2 {
    margin-top: 0;
    color: #1f4d2b;
}

.member-data-list {
    margin: 0;
}

.member-data-list div {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.member-data-list div:last-child {
    border-bottom: none;
}

.member-data-list dt {
    font-size: 0.85rem;
    color: #607060;
    font-weight: 700;
}

.member-data-list dd {
    margin: 3px 0 0;
    font-weight: 600;
}

.member-alert {
    margin: 0 0 22px;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 600;
}

.member-alert-success {
    background: rgba(214, 245, 221, 0.95);
    color: #155724;
}

.member-alert-error {
    background: rgba(255, 226, 226, 0.95);
    color: #842029;
}

.member-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.member-dashboard-section {
    margin-bottom: 24px;
}

.dashboard-card p {
    line-height: 1.55;
    color: #405040;
}

.dashboard-form {
    margin-top: 18px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #243624;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    padding: 11px 13px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.96);
}

.form-group textarea {
    resize: vertical;
}

.dashboard-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 13px 18px;
    background: #1f6b3a;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.dashboard-btn:hover {
    background: #174f2c;
}

.dashboard-card-wide {
    width: 100%;
}

.consumption-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.consumption-box {
    padding: 16px;
    border-radius: 18px;
    background: rgba(31, 107, 58, 0.08);
}

.consumption-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #607060;
    font-weight: 700;
}

.consumption-box strong {
    color: #1f4d2b;
}

.member-footer {
    text-align: center;
    padding: 24px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

@media (max-width: 900px) {
    .member-dashboard-hero,
    .member-feature-grid,
    .consumption-grid {
        grid-template-columns: 1fr;
    }

    .member-topbar-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-topbar-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* =========================================================
   Zählerbereich Mitglieder-Dashboard
   ========================================================= */

.meter-card {
    position: relative;
}

.meter-readonly-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.meter-readonly-grid input:disabled {
    background: #f1f3f1;
    color: #526052;
    cursor: not-allowed;
    font-weight: 600;
}

.meter-warning {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 14px;
    line-height: 1.5;
    font-weight: 600;
}

.meter-warning-danger {
    background: #ffe2e2;
    color: #842029;
    border: 1px solid rgba(132, 32, 41, 0.22);
}

.meter-warning-notice {
    background: #fff3cd;
    color: #664d03;
    border: 1px solid rgba(102, 77, 3, 0.22);
}

.meter-warning-ok {
    background: #d6f5dd;
    color: #155724;
    border: 1px solid rgba(21, 87, 36, 0.18);
}

.meter-separator {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin: 20px 0;
}

.meter-new-button {
    width: 100%;
    margin: 8px 0 18px;
    border: 2px solid #1f6b3a;
    border-radius: 999px;
    padding: 12px 18px;
    background: transparent;
    color: #1f6b3a;
    font-weight: 800;
    cursor: pointer;
}

.meter-new-button:hover,
.meter-new-button.active {
    background: #1f6b3a;
    color: #fff;
}

.new-meter-box {
    margin: 18px 0;
    padding: 18px;
    border-radius: 18px;
    background: rgba(31, 107, 58, 0.08);
    border: 1px solid rgba(31, 107, 58, 0.2);
}

.new-meter-box h3 {
    margin-top: 0;
    color: #1f4d2b;
}

@media (max-width: 900px) {
    .meter-readonly-grid {
        grid-template-columns: 1fr;
    }
}