/* ==========================================================================
   1. DESIGN SYSTEM & VARIABLEN
   ========================================================================== */
:root {
    color-scheme: light only;
    --bs-body-color: #26262b;
    --bs-body-bg: #ffffff;
    --bs-body-font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    /* Farbpalette */
    --text: #26262b;
    --text-strong: #242329;
    --muted: #4f5a45;
    --muted-readable: #555f4d;
    --green: #5f7f22;
    --green-deep: #3f5f10;
    --green-bright: #7ea51f;
    --green-soft: #e0edc6;
    --leaf: #6f9720;
    --mint: #a8c575;
    --sun: #f4a000;
    /* Oberflächen & Effekte */
    --surface: rgba(255, 255, 255, 0.94);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --line: rgba(95, 127, 34, 0.24);
    --card-border: rgba(101, 124, 58, 0.16);
    --focus-ring: rgba(111, 130, 71, 0.34);
    --shadow: 0 24px 70px rgba(63, 95, 16, 0.2);
    /* Layout Abstände */
    --page-gutter: clamp(1rem, 4vw, 2rem);
    --content-width: 1120px;
    --section-space: clamp(1.1rem, 2.6vw, 2.1rem);
    /* Typografie Fluid (Skalierend) */
    --text-xs: clamp(0.72rem, 0.7rem + 0.12vw, 0.8rem);
    --text-sm: clamp(0.86rem, 0.84rem + 0.12vw, 0.94rem);
    --text-md: 1rem;
    --text-lg: clamp(1.06rem, 1.02rem + 0.28vw, 1.2rem);
    --heading-sm: clamp(1.12rem, 1.05rem + 0.32vw, 1.28rem);
    --heading-md: clamp(1.45rem, 1.25rem + 0.85vw, 2rem);
    --heading-lg: clamp(1.8rem, 1.45rem + 1.45vw, 2.65rem);
    --display-xl: clamp(2.3rem, 1.7rem + 2.7vw, 3.8rem);
    --display-mobile: clamp(2rem, 9vw, 2.75rem);
    --metric-lg: clamp(1.6rem, 1.25rem + 1.55vw, 2.45rem);
    --metric-xl: clamp(1.85rem, 1.35rem + 2.05vw, 2.8rem);
    /* Icons */
    --icon-xs: 0.7rem;
    --icon-sm: 0.85rem;
    --icon-md: 1.35rem;
    /* Schriftstärken */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    /* Font-Shorthands */
    --font-size-xs: var(--text-xs);
    --font-size-sm: var(--text-sm);
    --font-size-base: var(--text-md);
    --font-size-lead: var(--text-lg);
    --font-size-h3: var(--heading-sm);
    --font-size-h2: var(--heading-lg);
    --font-size-h1: var(--display-xl);
}

/* ==========================================================================
   2. BASICS & GLOBALS
   ========================================================================== */
html {
    color-scheme: light only;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, svg {
    max-width: 100%;
    height: auto;
}

body {
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

p, h1, h2, h3, h4, h5, h6, a, strong {
    overflow-wrap: anywhere;
}

html, body {
    min-height: 100%;
    color: var(--text);
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' preserveAspectRatio='none'%3E%3Cpath d='M-150 170 C 130 80 340 260 620 165 S 1040 80 1570 190' fill='none' stroke='%2394a964' stroke-width='7' stroke-linecap='round' opacity='.26'/%3E%3Cpath d='M-180 285 C 120 170 360 380 660 265 S 1090 165 1600 305' fill='none' stroke='%2394a964' stroke-width='3.5' stroke-linecap='round' opacity='.22'/%3E%3Cpath d='M-130 440 C 160 330 390 520 705 410 S 1130 320 1580 455' fill='none' stroke='%2394a964' stroke-width='5' stroke-linecap='round' opacity='.18'/%3E%3Cpath d='M-170 610 C 110 505 385 705 700 585 S 1125 500 1585 625' fill='none' stroke='%2394a964' stroke-width='3' stroke-linecap='round' opacity='.2'/%3E%3Cpath d='M-120 760 C 190 640 430 835 760 720 S 1160 645 1580 780' fill='none' stroke='%2394a964' stroke-width='6' stroke-linecap='round' opacity='.16'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: var(--bs-body-font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.12;
    color: var(--text-strong);
    text-wrap: balance;
}

    h1:focus {
        outline: none;
    }

a, .btn-link {
    color: var(--green);
    text-underline-offset: 0.18em;
}

h1, h2, h3, p {
    margin-top: 0;
}


h1, h2, h3 {
    font-family: var(--bs-body-font-family);
    font-weight: var(--font-weight-regular);
    letter-spacing: -0.01em; /* Zieht die Buchstaben modern zusammen */
    line-height: 1.05;
}

/* Fließtext dagegen braucht Luft zum Atmen */
p {
    font-family: var(--bs-body-font-family);
    font-weight: var(--font-weight-regular);
    letter-spacing: -0.01em;
    line-height: 1.65;
}


::selection {
    color: var(--text-strong);
    background: rgba(255, 178, 13, 0.36);
}

/* Transitions für Interaktivität */
.btn, .nav-link, .metric-card, .metric-grid > div, .benefit-card, .step-card,
.pricing-card, .info-panel, .cta-section, .launch-status-card, .countdown-panel,
.cookie-consent, .cookie-preferences {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

/* ==========================================================================
   3. BUTTONS & FORMS
   ========================================================================== */
.btn {
    border-radius: 999px;
    font-weight: var(--font-weight-semibold);
    padding: 0.9rem 1.35rem;
}

    .btn:hover, .btn:focus-visible {
        transform: translateY(-2px);
    }

.btn-primary-modern {
    color: #fff;
    background: linear-gradient(135deg, var(--green-deep), var(--green-bright));
    border: 0;
    box-shadow: 0 18px 35px rgba(63, 95, 16, 0.3);
}

    .btn-primary-modern:hover {
        color: #fff;
        box-shadow: 0 22px 42px rgba(63, 95, 16, 0.36);
    }

.btn-secondary-modern {
    color: var(--green-deep);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
}

    .btn-secondary-modern:hover {
        background: #fff;
    }

.btn:focus-visible, a:focus-visible, .cookie-preferences__close:focus-visible, .cookie-settings-trigger:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(101, 211, 126, 0.65);
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Validierung */
.valid.modified:not([type=checkbox]) {
    border-color: #94a964;
    box-shadow: 0 0 0 0.25rem rgba(148, 169, 100, 0.2);
}

.invalid {
    border-color: #e50000;
    box-shadow: 0 0 0 0.25rem rgba(229, 0, 0, 0.2);
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    color: white;
    padding: 1rem;
}

    .blazor-error-boundary::after {
        content: 'Ein Fehler ist aufgetreten.';
    }

/* ==========================================================================
   4. LAYOUT STRUCTURE & HERO SECTIONS
   ========================================================================== */
.hero-section, .section, .page-hero {
    width: min(var(--content-width), calc(100% - (var(--page-gutter) * 2)));
    margin-inline: auto;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
    gap: clamp(1.35rem, 4vw, 3.25rem);
    align-items: center;
    min-height: min(760px, calc(100vh - 94px));
    padding-block: clamp(0.75rem, 2.2vw, 1.65rem) clamp(1.5rem, 3.8vw, 2.75rem);
}

.page-hero {
    padding: clamp(0.85rem, 3vw, 3.75rem) 0 clamp(0.85rem, 1vw, 2rem);
}

    .page-hero.compact {
        min-height: auto;
    }

.hero-content {
    align-self: start;
    max-width: 720px;
}

.eyebrow {
    color: var(--green-bright);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-content h1, .page-hero h1, .page-hero h2 {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.01em;
    line-height: 1.02;
    margin-bottom: 1.35rem;
}

.hero-text, .page-hero p {
    max-width: 650px;
    color: var(--muted-readable);
    font-size: var(--font-size-lead);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.registration-service-summary {
    display: grid;
    gap: 1rem;
    max-width: 760px;
    border: 1px solid rgba(95, 127, 34, 0.16);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 48px rgba(148, 169, 100, 0.12);
    padding: clamp(1rem, 2.4vw, 1.6rem);
}

    .registration-service-summary h2 {
        color: var(--green-deep);
        font-size: var(--font-size-h3);
        line-height: 1.18;
        margin: 0;
    }

    .registration-service-summary p {
        max-width: none;
        font-size: var(--font-size-base);
        margin: 0;
    }

    .registration-service-summary .check-list {
        margin: 0;
    }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.partner-logo-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 19rem);
    padding: 1.15rem 1.45rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 44px rgba(148, 169, 100, 0.12);
}

    .partner-logo-card:hover, .partner-logo-card:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 20px 48px rgba(148, 169, 100, 0.2);
    }

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

    .trust-row span {
        border: 1px solid var(--line);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.86);
        color: var(--green-deep);
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-semibold);
        padding: 0.65rem 0.95rem;
    }

/* Hero Cards & Orb */
.hero-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 1rem;
    border: 1px solid var(--card-border);
    border-radius: 2.2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(224, 237, 198, 0.9)), radial-gradient(circle at 16% 12%, rgba(244, 160, 0, 0.38), transparent 16rem), radial-gradient(circle at 92% 8%, rgba(95, 127, 34, 0.36), transparent 14rem);
    box-shadow: 0 30px 80px rgba(63, 95, 16, 0.24);
    padding: clamp(1.15rem, 3vw, 1.55rem);
}

    .hero-card::before {
        position: absolute;
        content: '';
        border-radius: 999px;
        pointer-events: none;
        inset: auto -4rem -5rem auto;
        width: 14rem;
        height: 14rem;
        background: rgba(148, 169, 100, 0.28);
        filter: blur(8px);
    }

.logo-showcase,
.tariff-showcase {
    isolation: isolate;
    justify-self: end;
    width: 100%;
    max-width: 36rem;
}

    .logo-showcase > *,
    .tariff-showcase > * {
        position: relative;
        z-index: 1;
    }

.showcase-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--muted);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-regular);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(148, 169, 100, 0.18);
    border-radius: 999px;
    color: var(--green);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 28px rgba(148, 169, 100, 0.08);
}

    .status-pill span {
        width: 0.58rem;
        height: 0.58rem;
        border-radius: 50%;
        background: var(--green-bright);
        box-shadow: 0 0 0 0.35rem rgba(148, 169, 100, 0.16);
    }

.logo-orb {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 340px;
    overflow: hidden;
    border-radius: 1.45rem;
    background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.96), rgba(240, 244, 232, 0.74));
}

    .logo-orb img {
        position: relative;
        width: min(110%, 450px);
        mix-blend-mode: multiply;
        filter: drop-shadow(0 20px 35px rgba(148, 169, 100, 0.2));
    }

/* Metrics */
.metric-card, .metric-grid > div {
    position: relative;
    border: 1px solid var(--card-border);
    border-radius: 1.35rem;
    background: var(--surface-strong);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 42px rgba(148, 169, 100, 0.1);
    padding: 1rem;
}

.main-metric {
    display: grid;
    gap: 0.1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 248, 223, 0.82)), radial-gradient(circle at 92% 0%, rgba(255, 178, 13, 0.24), transparent 8rem);
}

.metric-card span, .metric-grid span {
    display: block;
    color: var(--muted);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-regular);
    margin-bottom: 0.2rem;
}

.metric-card strong, .metric-grid strong {
    color: var(--green-deep);
    font-weight: var(--font-weight-regular);
    letter-spacing: -0.01em;
}

.metric-card strong {
    font-size: var(--metric-lg);
}

.metric-grid strong {
    font-size: var(--heading-sm);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

    .metric-grid > div:hover {
        transform: translateY(-3px);
        box-shadow: 0 22px 48px rgba(148, 169, 100, 0.13);
    }

.promotion-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(244, 160, 0, 0.34);
    border-radius: 1.45rem;
    background: radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.74), transparent 9rem), linear-gradient(135deg, #fff5cf, #f4a000);
    box-shadow: 0 20px 52px rgba(244, 160, 0, 0.18);
    color: var(--text-strong);
    padding: 1.15rem;
}

    .promotion-card::after {
        position: absolute;
        content: '';
        inset: auto -2.8rem -3.2rem auto;
        width: 9rem;
        height: 9rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.28);
    }

    .promotion-card > * {
        position: relative;
        z-index: 1;
    }

.promotion-label {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(63, 95, 16, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--green-deep);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    padding: 0.42rem 0.7rem;
    text-transform: uppercase;
}

.promotion-card strong {
    display: block;
    color: var(--green-deep);
    font-size: clamp(1.35rem, 1.08rem + 1.1vw, 2rem);
    line-height: 1.02;
    margin-bottom: 0.45rem;
}

.promotion-card p {
    color: rgba(38, 38, 43, 0.82);
    font-weight: var(--font-weight-semibold);
    line-height: 1.45;
    margin: 0;
}

/* ==========================================================================
   5. SECTIONS & CARDS (BENEFITS, STEPS, CTA)
   ========================================================================== */
.section {
    padding-block: var(--section-space);
}

.section-heading {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: clamp(0.9rem, 2.5vw, 1.5rem);
    align-items: end;
    margin-bottom: clamp(1rem, 2.5vw, 1.25rem);
}

    .section-heading h2, .cta-section h2, .info-panel h2 {
        font-size: var(--font-size-h2);
        font-weight: var(--font-weight-semibold);
        letter-spacing: -0.01em;
        line-height: 1.08;
    }

.benefits-heading {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    align-items: start;
}

.benefit-grid, .steps-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.benefit-card, .step-card, .info-panel, .cta-section {
    border: 1px solid var(--card-border);
    border-radius: 1.6rem;
    background: var(--surface-strong);
    box-shadow: 0 16px 44px rgba(148, 169, 100, 0.08);
}

.benefit-card, .step-card {
    padding: clamp(1rem, 2.4vw, 1.2rem);
}

    .benefit-card:hover, .step-card:hover, .pricing-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 22px 54px rgba(93, 112, 53, 0.13);
    }

.icon-pill {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--green-soft), rgba(255, 178, 13, 0.14));
    font-size: var(--font-size-h3);
    margin-bottom: 0.85rem;
}

.benefit-card h3, .step-card h2 {
    color: var(--green-deep);
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.65rem;
}

.benefit-card p, .step-card p, .info-panel p {
    color: var(--muted-readable);
    line-height: 1.65;
    margin-bottom: 0;
}

    .step-card p + p {
        margin-top: 0.85rem;
    }

.step-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    color: var(--green);
    background: linear-gradient(135deg, var(--sun), #ffe58a);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
}

.cta-section, .info-panel {
    display: grid;
    grid-template-columns: auto;
    gap: clamp(1rem, 2.6vw, 1.5rem);
    align-items: center;
    margin-bottom: 0;
    padding: clamp(1.15rem, 3vw, 1.75rem);
}

.association-panel {
    margin-block: var(--section-space);
}


.faq-tariff-panel {
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
}

.faq-tariff-alert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(4rem, 12vw, 6.5rem);
    min-height: clamp(4rem, 12vw, 6.5rem);
    border-radius: 999px;
    color: var(--green-deep);
    background: linear-gradient(135deg, var(--sun), #ffe58a);
    box-shadow: 0 18px 38px rgba(244, 160, 0, 0.26);
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.faq-tariff-panel h3 {
    color: var(--green-deep);
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.65rem;
}

.how-it-works-prep {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.check-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .check-list li {
        position: relative;
        padding-left: 2rem;
        color: var(--muted-readable);
        font-weight: var(--font-weight-semibold);
        line-height: 1.55;
    }

        .check-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            top: 0.05rem;
            display: inline-grid;
            place-items: center;
            width: 1.35rem;
            height: 1.35rem;
            border-radius: 999px;
            background: linear-gradient(135deg, var(--sun), #ffe58a);
            color: var(--green-deep);
            font-size: var(--icon-sm);
            font-weight: var(--font-weight-bold);
        }


.video-card {
    overflow: hidden;
    border: 1px solid var(--card-border);
    border-radius: 1.6rem;
    background: var(--surface-strong);
    box-shadow: 0 16px 44px rgba(148, 169, 100, 0.08);
}

.responsive-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(63, 95, 16, 0.14), rgba(244, 160, 0, 0.12));
}

.responsive-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.energy-community-panel {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

/* ==========================================================================
   6. LAUNCH STATUS & COUNTDOWN
   ========================================================================== */
.launch-status-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: clamp(1.25rem, 4vw, 2.5rem);
    align-items: center;
    border: 1px solid var(--card-border);
    border-radius: 2rem;
    background: radial-gradient(circle at 8% 12%, rgba(255, 178, 13, 0.25), transparent 16rem), radial-gradient(circle at 92% 18%, rgba(148, 169, 100, 0.22), transparent 18rem), linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(237, 248, 223, 0.84));
    box-shadow: var(--shadow);
    padding: clamp(1.4rem, 4vw, 2.35rem);
}

    .launch-status-card::before {
        position: absolute;
        inset: 1rem;
        content: '';
        border: 1px dashed rgba(148, 169, 100, 0.13);
        border-radius: 1.45rem;
        pointer-events: none;
    }

.launch-status-copy, .countdown-panel {
    position: relative;
    z-index: 1;
}

    .launch-status-copy h2 {
        color: var(--green-deep);
        font-size: var(--font-size-h2);
        font-weight: var(--font-weight-semibold);
        line-height: 1.05;
        margin-bottom: 1rem;
    }

    .launch-status-copy p {
        color: var(--muted-readable);
        line-height: 1.7;
    }

.countdown-panel {
    display: grid;
    gap: 1rem;
    border: 1px solid var(--card-border);
    border-radius: 1.65rem;
    background: var(--surface-strong);
    box-shadow: 0 18px 42px rgba(148, 169, 100, 0.11);
    padding: clamp(1rem, 3vw, 1.35rem);
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.countdown-item {
    display: grid;
    place-items: center;
    min-height: 6.1rem;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(237, 248, 223, 0.8)), radial-gradient(circle at 50% 0%, rgba(255, 178, 13, 0.22), transparent 5rem);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

    .countdown-item strong {
        color: var(--text-strong);
        font-size: var(--metric-xl);
        font-weight: var(--font-weight-semibold);
        line-height: 1;
    }

    .countdown-item span {
        color: var(--muted-readable);
        font-size: var(--font-size-xs);
        font-weight: var(--font-weight-bold);
        letter-spacing: 0.01em;
        text-transform: uppercase;
    }

/* ==========================================================================
   7. CONNECTION DIAGRAM
   ========================================================================== */
.connection-diagram-section {
    padding-top: clamp(1rem, 3vw, 2rem);
}

.connection-diagram {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 2rem;
    background: radial-gradient(circle at 50% 0%, rgba(255, 178, 13, 0.2), transparent 18rem), radial-gradient(circle at 12% 38%, rgba(148, 169, 100, 0.16), transparent 18rem), linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(237, 248, 223, 0.86));
    box-shadow: var(--shadow);
    padding: clamp(1.25rem, 4vw, 2.75rem);
}

    .connection-diagram::before {
        position: absolute;
        inset: 1rem;
        content: '';
        border: 1px dashed rgba(148, 169, 100, 0.12);
        border-radius: 1.45rem;
        pointer-events: none;
    }

.diagram-node {
    position: relative;
    z-index: 1;
    border: 1px solid var(--line);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 42px rgba(148, 169, 100, 0.1);
    padding: clamp(1.2rem, 3vw, 1.65rem);
}

.meter-node, .result-node {
    width: min(100%, 760px);
    margin-inline: auto;
    text-align: center;
}

.meter-node {
    background: linear-gradient(135deg, rgba(148, 169, 100, 0.95), rgba(148, 169, 100, 0.9)), radial-gradient(circle at 20% 12%, rgba(255, 178, 13, 0.35), transparent 9rem);
    color: #fff;
}

.diagram-kicker {
    display: block;
    color: inherit;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.meter-node h2, .result-node p {
    margin: 0.2rem 0 0;
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    text-transform: uppercase;
}

.diagram-line {
    position: relative;
    z-index: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(82%, 720px);
    height: clamp(3.5rem, 7vw, 5.4rem);
    margin-inline: auto;
}

    .diagram-line::before, .diagram-line::after, .diagram-line span::before, .diagram-line span::after {
        position: absolute;
        content: '';
        background: rgba(148, 169, 100, 0.32);
    }

.split-line::before, .merge-line::before {
    left: 50%;
    width: 2px;
    height: 42%;
    transform: translateX(-50%);
}

.split-line::before {
    top: 0;
}

.merge-line::before {
    bottom: 0;
}

.split-line span::before, .merge-line span::before {
    top: 42%;
    width: calc(50% + 2px);
    height: 2px;
}

.split-line span:first-child::before, .merge-line span:first-child::before {
    right: 50%;
    transform: rotate(-18deg);
    transform-origin: right center;
}

.split-line span:last-child::before, .merge-line span:last-child::before {
    left: 50%;
    transform: rotate(18deg);
    transform-origin: left center;
}

.merge-line span:first-child::before {
    transform: rotate(18deg);
}

.merge-line span:last-child::before {
    transform: rotate(-18deg);
}

.diagram-line::after {
    left: 50%;
    bottom: 0.55rem;
    width: 0.72rem;
    height: 0.72rem;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    transform: translateX(-50%);
}

.split-line::after {
    display: none;
}

.diagram-branches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 3vw, 1.6rem);
}

.diagram-number {
    display: inline-grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 999px;
    color: var(--green);
    background: linear-gradient(135deg, var(--sun), #ffe58a);
    font-size: var(--font-size-lead);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
}

.diagram-node h3 {
    color: var(--green-deep);
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.diagram-subtitle {
    color: var(--muted);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

.diagram-node ul {
    display: grid;
    gap: 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.diagram-node li {
    position: relative;
    color: var(--text);
    font-weight: var(--font-weight-semibold);
    padding-left: 1.75rem;
}

    .diagram-node li::before {
        position: absolute;
        left: 0;
        top: 0.1rem;
        display: grid;
        place-items: center;
        width: 1.15rem;
        height: 1.15rem;
        content: '✓';
        border-radius: 999px;
        color: #fff;
        background: var(--green-bright);
        font-size: var(--icon-xs);
        font-weight: var(--font-weight-bold);
    }

.community-node {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(237, 248, 223, 0.92)), radial-gradient(circle at 90% 12%, rgba(255, 178, 13, 0.22), transparent 8rem);
}

.result-node {
    color: var(--green-deep);
    background: linear-gradient(135deg, #fff8df, rgba(237, 248, 223, 0.96));
}

    .result-node .diagram-kicker {
        color: var(--green-bright);
    }

/* ==========================================================================
   8. PRICING & COMPARISON TABLES
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pricing-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    border: 1px solid var(--card-border);
    border-radius: 1.6rem;
    background: radial-gradient(circle at 90% 0%, rgba(255, 178, 13, 0.18), transparent 10rem), var(--surface-strong);
    box-shadow: 0 16px 44px rgba(148, 169, 100, 0.08);
    padding: clamp(1.35rem, 3vw, 1.8rem);
}

    .pricing-card::after {
        position: absolute;
        content: '';
        border-radius: 999px;
        inset: auto -2rem -3rem auto;
        width: 8rem;
        height: 8rem;
        background: rgba(148, 169, 100, 0.12);
    }

    .pricing-card.featured {
        color: #fff;
        background: radial-gradient(circle at 92% 8%, rgba(255, 178, 13, 0.32), transparent 9rem), linear-gradient(135deg, var(--green-deep), var(--green-bright));
    }

    .pricing-card.savings-card {
        background: radial-gradient(circle at 92% 8%, rgba(148, 169, 100, 0.24), transparent 10rem), linear-gradient(145deg, #ffffff, var(--green-soft));
    }

    .pricing-card.flexibility-card {
        background: radial-gradient(circle at 92% 8%, rgba(255, 178, 13, 0.22), transparent 10rem), linear-gradient(145deg, #fffdf6, #ffffff);
    }

    .pricing-card.promotion-pricing-card {
        color: var(--text-strong);
        background: radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.38), transparent 10rem), linear-gradient(135deg, #fff2bd, var(--sun));
    }

.pricing-label {
    display: inline-flex;
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    padding: 0.45rem 0.7rem;
    text-transform: uppercase;
}

.pricing-card strong {
    display: block;
    font-size: var(--metric-xl);
    font-weight: var(--font-weight-bold);
    line-height: 0.9;
    margin-bottom: 1rem;
}

.pricing-card p {
    color: var(--muted-readable);
    margin: 0;
}

.pricing-card.featured p {
    color: rgba(255, 255, 255, 0.86);
}

.pricing-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
}

.pricing-list li {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    line-height: 1.35;
    padding-top: 0.75rem;
}

.pricing-list strong {
    display: inline;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}

.hero-flexibility-note {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--green-deep);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin: 0.35rem 0 0;
}

    .hero-flexibility-note::before {
        display: inline-grid;
        width: 1.35rem;
        height: 1.35rem;
        place-items: center;
        content: '✓';
        border-radius: 999px;
        color: #fff;
        background: var(--green-bright);
        font-size: var(--icon-sm);
        font-weight: var(--font-weight-bold);
    }

/* Originales Desktop-Design für Tabellen-Komponenten */
.comparison-wrapper {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

.comparison-header {
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

    .comparison-table thead th {
        background: #0f766e;
        color: white;
        padding: 1rem;
        text-align: left;
    }

    .comparison-table td {
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .comparison-table tbody tr:hover {
        background: #f8fafc;
    }

    .comparison-table tfoot td {
        font-weight: var(--font-weight-semibold);
        background: #f0fdf4;
    }

.positive {
    color: #16a34a;
    font-weight: var(--font-weight-semibold);
}

.negative {
    color: #dc2626;
}

.neutral {
    color: #2563eb;
}

/* Rechner */
.savings-calculator {
    display: grid;
    gap: 1rem;
    max-width: 980px;
    margin-inline: auto;
    padding: clamp(1rem, 2.2vw, 1.5rem);
    border: 1px solid rgba(95, 127, 34, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 36px rgba(63, 95, 16, 0.12);
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

    .calculator-grid label {
        display: grid;
        gap: 0.35rem;
        color: var(--muted);
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-bold);
    }

    .calculator-grid input {
        width: 100%;
        min-height: 2.75rem;
        padding: 0.65rem 0.8rem;
        border: 1px solid rgba(15, 118, 110, 0.18);
        border-radius: 0.8rem;
        font-weight: var(--font-weight-semibold);
    }

        .calculator-grid input:focus {
            border-color: var(--green-bright);
            outline: none;
            box-shadow: 0 0 0 0.2rem rgba(126, 165, 31, 0.18);
        }

.calculator-results {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.calculator-fixed-value {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 0.9rem;
    background: rgba(240, 253, 244, 0.72);
    color: var(--green-deep);
}

    .calculator-fixed-value span {
        color: var(--muted);
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-semibold);
    }

.saving-banner {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    padding: 1.25rem;
    border-radius: 16px;
    text-align: center;
}

    .saving-banner strong {
        display: block;
        font-size: var(--font-size-h2);
        margin: .3rem 0;
    }

.calculator-results .saving-banner {
    display: grid;
    align-content: center;
    min-height: 7rem;
    padding: 0.85rem;
    border-radius: 14px;
}

    .calculator-results .saving-banner.secondary {
        background: linear-gradient(135deg, rgba(240, 253, 244, 0.95), rgba(224, 237, 198, 0.95));
        color: var(--green-deep);
        border: 1px solid rgba(95, 127, 34, 0.16);
    }

.calculator-details {
    border: 1px solid rgba(95, 127, 34, 0.16);
    border-radius: 14px;
    background: rgba(240, 253, 244, 0.45);
    overflow: hidden;
}

    .calculator-details summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 1rem;
        color: var(--green-deep);
        cursor: pointer;
        font-weight: var(--font-weight-bold);
    }

        .calculator-details summary::after {
            content: '+';
            display: grid;
            place-items: center;
            width: 1.45rem;
            height: 1.45rem;
            border-radius: 999px;
            background: var(--green);
            color: #fff;
        }

    .calculator-details[open] summary::after {
        content: '−';
    }

.calculator-detail-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: var(--font-size-sm);
}

    .calculator-detail-table th {
        background: rgba(15, 118, 110, 0.92);
        color: #fff;
        text-align: left;
        padding: 0.8rem;
    }

    .calculator-detail-table td {
        padding: 0.8rem;
        border-bottom: 1px solid rgba(95, 127, 34, 0.14);
    }

/* ==========================================================================
   9. COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-consent-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(2, 22, 13, 0.2);
    backdrop-filter: blur(2px);
}

.cookie-consent, .cookie-preferences {
    position: fixed;
    z-index: 1310;
    border: 1px solid rgba(255, 255, 255, 0.78);
    background: radial-gradient(circle at 94% 0%, rgba(255, 178, 13, 0.2), transparent 12rem), linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(237, 248, 223, 0.95));
    box-shadow: 0 28px 90px rgba(2, 31, 18, 0.28);
    color: var(--text);
}

.cookie-consent {
    top: 50%;
    left: 50%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(1rem, 3vw, 1.8rem);
    align-items: end;
    width: min(920px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border-radius: 1.6rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    transform: translate(-50%, -50%);
}

    .cookie-consent p, .cookie-preferences p, .cookie-option p {
        color: var(--muted-readable);
    }

.cookie-consent__link, .cookie-consent__settings {
    color: var(--green);
    font-weight: var(--font-weight-bold);
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.cookie-preferences {
    top: 50%;
    left: 50%;
    width: min(680px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border-radius: 1.8rem;
    padding: clamp(1.15rem, 3vw, 1.8rem);
    transform: translate(-50%, -50%);
}

.cookie-preferences__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-preferences__close {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--green);
    font-size: var(--heading-md);
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.72);
    margin-top: 0.85rem;
    padding: 1rem;
}

    .cookie-option input {
        width: 1.35rem;
        height: 1.35rem;
        accent-color: var(--green-bright);
    }

.cookie-option__state {
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    padding: 0.45rem 0.7rem;
}

.cookie-settings-trigger {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 50;
    border: 1px solid rgba(148, 169, 100, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 34px rgba(148, 169, 100, 0.14);
    color: var(--green);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    padding: 0.6rem 0.85rem;
    backdrop-filter: blur(14px);
}

/* Datenschutz Übersicht */
.privacy-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
}

.privacy-content h3 {
    color: var(--green-deep);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    margin: 0.5rem 0 0;
}

/* ==========================================================================
   10. ADDONS (SLIDER & WHATSAPP)
   ========================================================================== */
.banner-slider {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    height: clamp(22rem, 48vw, 34rem);
    margin: 0 calc(50% - 50vw);
    border-block: 1px solid rgba(255, 255, 255, 0.72);
    border-inline: 0;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(63, 95, 16, 0.2);
    background: var(--green-deep);
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.banner-slider:active {
    cursor: grabbing;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 420ms ease-in-out;
}

.banner-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    margin: 0;
}

    .banner-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

.banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: clamp(1.25rem, 4vw, 3rem);
    background:
        linear-gradient(180deg, rgba(18, 30, 10, 0.18), rgba(18, 30, 10, 0.62)),
        radial-gradient(circle at 50% 36%, rgba(255, 178, 13, 0.26), transparent 18rem);
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
}

.banner-overlay h2 {
    max-width: 780px;
    margin-bottom: 1rem;
    color: #fff;
    font-size: clamp(2rem, 7vw, 4.6rem);
    font-weight: var(--font-weight-semibold);
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.34);
}

.banner-overlay p {
    max-width: 620px;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--font-size-lead);
}

.slider-dots {
    position: absolute;
    left: 50%;
    bottom: clamp(1rem, 3vw, 1.75rem);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    transform: translateX(-50%);
}

.slider-dot {
    width: 0.78rem;
    height: 0.78rem;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.slider-dot:hover,
.slider-dot:focus-visible,
.slider-dot--active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

.slider-dot:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.55);
    outline-offset: 4px;
}

@keyframes slider {
    0%, 28% {
        transform: translateX(0);
    }

    34%, 62% {
        transform: translateX(-100%);
    }

    68%, 96% {
        transform: translateX(-200%);
    }

    100% {
        transform: translateX(0);
    }
}

.banner-slide--energyfamily {
    isolation: isolate;
    background:
        radial-gradient(circle at 22% 22%, rgba(244, 160, 0, 0.34), transparent 18rem),
        radial-gradient(circle at 82% 18%, rgba(168, 197, 117, 0.38), transparent 20rem),
        linear-gradient(135deg, #18330e 0%, #5f7f22 52%, #f8f5ea 100%);
}

.banner-slide--energyfamily::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(18, 30, 10, 0.74), rgba(18, 30, 10, 0.22) 52%, rgba(255, 255, 255, 0.08)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 5rem);
    z-index: 1;
}

.banner-slide--energyfamily .banner-overlay {
    align-items: flex-start;
    text-align: left;
    padding-left: clamp(1.25rem, 8vw, 7rem);
    padding-right: min(48vw, 34rem);
    background: linear-gradient(90deg, rgba(18, 30, 10, 0.66), rgba(18, 30, 10, 0.18));
}

.banner-slide--energyfamily .banner-overlay h2,
.banner-slide--energyfamily .banner-overlay p {
    max-width: 680px;
}

.energyfamily-slide-visual {
    position: absolute;
    inset: 0 clamp(1rem, 5vw, 5rem) 0 min(43vw, 38rem);
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.6rem, 1.6vw, 1.4rem);
    padding: clamp(1rem, 3vw, 2.5rem) 0;
    pointer-events: none;
}

.energyfamily-device {
    width: calc((100% - clamp(1.2rem, 3.2vw, 2.8rem)) / 3);
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.26));
}

.energyfamily-laptop,
.energyfamily-phone {
    position: absolute;
    right: clamp(1rem, 6vw, 6rem);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.energyfamily-laptop {
    top: 13%;
    width: min(48vw, 34rem);
    min-height: 17rem;
    border-radius: 1.15rem;
    overflow: hidden;
    transform: perspective(900px) rotateY(-9deg) rotateX(4deg);
}

.energyfamily-browser-bar {
    display: flex;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    background: #f8f8f4;
    border-bottom: 1px solid rgba(95, 127, 34, 0.14);
}

.energyfamily-browser-bar span {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--green-soft);
}

.energyfamily-app-layout {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    min-height: 14.5rem;
    color: var(--text);
}

.energyfamily-app-layout aside {
    padding: 1.2rem;
    color: var(--green-deep);
    background: linear-gradient(180deg, #eef7df, #ffffff);
}

.energyfamily-app-layout aside small,
.energyfamily-chart-card span,
.energyfamily-metrics small {
    display: block;
    color: var(--muted-readable);
}

.energyfamily-app-layout main {
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
}

.energyfamily-chart-card,
.energyfamily-metrics span {
    border: 1px solid rgba(95, 127, 34, 0.15);
    border-radius: 0.9rem;
    background: #fff;
}

.energyfamily-chart-card {
    padding: 1rem;
}

.energyfamily-chart {
    display: flex;
    align-items: end;
    gap: 0.45rem;
    height: 5.8rem;
    margin-top: 0.9rem;
}

.energyfamily-chart i {
    flex: 1;
    height: var(--h);
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, var(--sun), var(--green));
}

.energyfamily-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.energyfamily-metrics span {
    padding: 0.75rem;
    font-size: var(--font-size-xs);
}

.energyfamily-metrics strong {
    display: block;
    color: var(--green-deep);
    font-size: var(--font-size-base);
}

.energyfamily-phone {
    right: clamp(1rem, 4vw, 4rem);
    bottom: 9%;
    width: min(22vw, 12rem);
    min-width: 9rem;
    padding: 2.3rem 0.9rem 1rem;
    border-radius: 1.7rem;
    transform: rotate(-7deg);
    color: var(--text);
}

.energyfamily-phone-notch {
    position: absolute;
    top: 0.65rem;
    left: 50%;
    width: 3.8rem;
    height: 0.75rem;
    border-radius: 999px;
    background: #111;
    transform: translateX(-50%);
}

.energyfamily-phone-title {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--green-deep);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
}

.energyfamily-phone strong {
    display: block;
    color: #111;
    font-size: clamp(1rem, 2vw, 1.35rem);
    line-height: 1.2;
}

.energyfamily-phone small {
    display: block;
    margin-bottom: 0.85rem;
    color: var(--muted-readable);
    font-size: 0.68rem;
}

@media (max-width: 820px) {
    .banner-slide--energyfamily .banner-overlay {
        align-items: center;
        text-align: center;
        padding-right: clamp(1.25rem, 4vw, 3rem);
        background: linear-gradient(180deg, rgba(18, 30, 10, 0.28), rgba(18, 30, 10, 0.68));
    }

    .energyfamily-slide-visual {
        inset: 0.75rem 0.75rem 0.75rem 0.75rem;
        gap: 0.5rem;
        opacity: 0.34;
        padding: 0.75rem 0;
    }

    .energyfamily-device {
        width: calc((100% - 1rem) / 3);
    }

    .energyfamily-laptop {
        top: 8%;
        right: 50%;
        width: min(86vw, 28rem);
        opacity: 0.44;
        transform: translateX(50%) perspective(900px) rotateY(-7deg) rotateX(4deg);
    }

    .energyfamily-phone {
        display: none;
    }
}


@media (max-width: 640px) {
    .banner-slider {
        height: auto;
        min-height: clamp(34rem, 142vw, 42rem);
    }

    .banner-slide {
        min-height: clamp(34rem, 142vw, 42rem);
    }

    .banner-overlay {
        justify-content: flex-start;
        padding: clamp(2.5rem, 14vw, 4.75rem) clamp(1rem, 5vw, 1.5rem) clamp(4.25rem, 14vw, 5.5rem);
        background:
            linear-gradient(180deg, rgba(18, 30, 10, 0.72) 0%, rgba(18, 30, 10, 0.56) 38%, rgba(18, 30, 10, 0.24) 68%, rgba(18, 30, 10, 0.7) 100%),
            radial-gradient(circle at 50% 18%, rgba(255, 178, 13, 0.2), transparent 14rem);
    }

    .banner-badge {
        margin-bottom: 0.75rem;
        padding: 0.45rem 0.75rem;
        font-size: clamp(0.66rem, 2.5vw, 0.78rem);
        letter-spacing: 0.06em;
    }

    .banner-overlay h2 {
        max-width: 100%;
        margin-bottom: 0.75rem;
        font-size: clamp(1.85rem, 9.5vw, 2.85rem);
        line-height: 1.08;
    }

    .banner-overlay p {
        max-width: 100%;
        margin-bottom: 1.1rem;
        font-size: clamp(0.95rem, 4.2vw, 1.08rem);
        line-height: 1.45;
    }

    .banner-overlay .btn {
        width: min(100%, 20rem);
    }

    .slider-dots {
        bottom: 1.25rem;
    }
}

@media (max-width: 380px) {
    .banner-slider,
    .banner-slide {
        min-height: 38rem;
    }

    .banner-overlay {
        padding-inline: 0.85rem;
        padding-bottom: 4.75rem;
    }

    .banner-overlay h2 {
        font-size: clamp(1.65rem, 9vw, 2.15rem);
    }

    .banner-overlay p {
        font-size: 0.94rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .slides {
        transition: none;
    }
}

.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 64px;
    height: 64px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,.25);
    z-index: 900;
}

    .whatsapp-float:hover {
        transform: scale(1.1);
        color: white;
    }

@media (max-width: 576px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }

        .whatsapp-float svg {
            width: 24px;
            height: 24px;
        }
}

/* ==========================================================================
   11. MEMBER AREA (MITGLIEDERBEREICH)
   ========================================================================== */
.member-hero h1 {
    max-width: 900px;
}

.member-section {
    padding-block: clamp(1.5rem, 4vw, 2.75rem);
}

.member-login-grid, .member-module-grid {
    display: grid;
    gap: 1rem;
}

.member-login-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-module-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-card, .member-dashboard {
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 1.6rem;
    background: radial-gradient(circle at 92% 8%, rgba(244, 160, 0, 0.14), transparent 10rem), rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 44px rgba(148, 169, 100, 0.1);
    padding: clamp(1.25rem, 3vw, 1.75rem);
}

.login-card, .module-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

    .login-card h2, .module-card h3, .member-dashboard h2 {
        color: var(--green-deep);
        font-weight: var(--font-weight-bold);
    }

    .login-card form {
        display: grid;
        gap: 0.7rem;
        margin-top: auto;
    }

    .login-card .btn {
        justify-self: start;
        margin-top: 0.35rem;
    }

.admin-card {
    background: radial-gradient(circle at 8% 10%, rgba(95, 127, 34, 0.18), transparent 10rem), rgba(255, 255, 255, 0.9);
}

.member-alert {
    border: 1px solid var(--line);
    border-radius: 1rem;
    color: var(--green-deep);
    background: rgba(224, 237, 198, 0.72);
    font-weight: var(--font-weight-bold);
    padding: 0.85rem 1rem;
}

.member-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(1rem, 4vw, 2rem);
    align-items: start;
}

.dashboard-list {
    display: grid;
    gap: 0.75rem;
}

.dashboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.78);
    padding: 0.9rem 1rem;
}

    .dashboard-item strong {
        color: var(--green-deep);
    }

/* ==========================================================================
   12. MEDIA QUERIES (RESPONSIVE STYLING)
   ========================================================================== */
.rotate-device-hint {
    display: none;
}

/* --- Bis max. 900px Breite --- */
@media (max-width: 900px) {
    .hero-section, .section-heading, .benefit-grid, .steps-section, .cta-section,
    .info-panel, .launch-status-card, .pricing-grid, .tariff-overview, .price-detail-strip, .privacy-panel {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
        gap: 1.5rem;
        padding-top: 1rem;
    }

    .section-heading {
        gap: 0.7rem;
    }

    .cta-section {
        align-items: start;
    }

    /* Diagramm mobil */
    .diagram-branches {
        grid-template-columns: 1fr;
    }

    .diagram-line {
        display: block;
        width: 2px;
        height: 3rem;
        background: rgba(148, 169, 100, 0.32);
    }

        .diagram-line::before, .diagram-line span::before {
            display: none;
        }

    .split-line::after, .merge-line::after {
        display: block;
        bottom: -0.05rem;
    }

    /* Rechner Mobil */
    .calculator-grid, .calculator-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calculator-fixed-value {
        grid-column: 1 / -1;
    }
}

/* --- MOBILGERÄTE IM HOCHFORMAT (Portrait) --- */
@media (max-width: 768px) and (orientation: portrait) {
    .table-responsive, .comparison-table, .comparison-wrapper > .saving-banners-container {
        display: none !important;
    }

    .rotate-device-hint {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 3rem 1rem;
    }

    .rotate-card {
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid var(--line);
        border-radius: 20px;
        padding: 2.25rem 1.5rem;
        text-align: center;
        max-width: 340px;
        box-shadow: var(--shadow);
    }

        .rotate-card h3 {
            color: var(--green-deep);
            font-weight: var(--font-weight-bold);
            margin: 1rem 0 0.5rem;
        }

        .rotate-card p {
            color: var(--muted);
            font-size: var(--text-sm);
            line-height: 1.5;
        }

    .phone-icon-wrapper {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 4.5rem;
        height: 4.5rem;
        background: var(--green-soft);
        color: var(--green-deep);
        border-radius: 50%;
    }

    .phone-svg {
        width: 2.5rem;
        height: 2.5rem;
        animation: rotatePhone 2.2s ease-in-out infinite;
    }

    @keyframes rotatePhone {
        0%, 15% {
            transform: rotate(0deg);
        }

        40%, 65% {
            transform: rotate(-90deg);
        }

        90%, 100% {
            transform: rotate(0deg);
        }
    }

    /* Cookie Banner Anpassung Portrait */
    .cookie-consent {
        grid-template-columns: 1fr;
        padding: 1.25rem;
        gap: 1.2rem;
    }

    .cookie-consent__actions {
        flex-direction: column;
        width: 100%;
        gap: 0.6rem;
    }

        .cookie-consent__actions > * {
            width: 100%;
            text-align: center;
            padding: 0.8rem 1.2rem;
        }

    .cookie-preferences {
        top: auto;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-height: 85vh;
        border-radius: 1.8rem 1.8rem 0 0;
        border-bottom: none;
        border-left: none;
        border-right: none;
        padding: 1.25rem;
        box-shadow: 0 -10px 40px rgba(2, 31, 18, 0.2);
    }

    .cookie-option {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
    }

    .cookie-preferences__actions {
        margin-top: 1.5rem;
        flex-direction: column;
    }
}

/* --- MOBILGERÄTE IM QUERFORMAT (Landscape) --- */
@media (orientation: landscape) and (max-width: 1024px) {
    .rotate-device-hint {
        display: none !important;
    }

    .table-responsive, .comparison-table {
        display: table !important;
        width: 100% !important;
    }

        .comparison-table th, .comparison-table td {
            white-space: nowrap !important;
            padding: 0.75rem 0.85rem !important;
            font-size: var(--text-sm);
        }

    .saving-banners-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .saving-banner {
        padding: 0.85rem;
    }

        .saving-banner strong {
            font-size: var(--font-size-h3);
        }
}

/* --- Bis max. 560px Breite (Smartphones) --- */
@media (max-width: 560px) {
    .hero-section, .section, .page-hero {
        width: min(100% - 1.25rem, var(--content-width));
    }

        .hero-content h1, .page-hero h1, .page-hero h2 {
            font-size: var(--display-mobile);
            line-height: 1.05;
        }

    .btn {
        justify-content: center;
        min-height: 3.15rem;
        width: 100%;
    }

    .hero-actions, .cta-section .btn {
        width: 100%;
    }

    .logo-orb {
        min-height: 280px;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    /* Countdown */
    .countdown-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.4rem;
    }

    .countdown-item {
        min-height: 4.8rem;
        border-radius: 0.85rem;
        padding: 0.4rem 0.2rem;
    }

        .countdown-item strong {
            font-size: var(--metric-lg);
        }

        .countdown-item span {
            font-size: var(--text-xs);
            letter-spacing: 0.01em;
        }

    .countdown-panel {
        padding: 0.85rem;
    }

    /* Rechner */
    .calculator-grid, .calculator-results {
        grid-template-columns: 1fr;
    }

        .calculator-results .saving-banner {
            min-height: auto;
        }
}

/* --- Allgemeine Tablet & Smartphone Fixes --- */
@media (max-width: 768px) {
    html, body {
        background-attachment: scroll;
    }

    .page-hero {
        padding-top: clamp(0.9rem, 4vw, 1.5rem);
    }

    .hero-section, .section {
        padding-block: clamp(0.9rem, 4vw, 1.5rem);
    }

    .hero-card, .launch-status-card, .info-panel, .cta-section, .pricing-card,
    .tariff-card, .benefit-card, .step-card, .member-card, .member-dashboard, .savings-calculator {
        border-radius: 1.25rem;
    }

    .cookie-settings-trigger {
        max-width: calc(100% - 2rem);
        white-space: normal;
    }
}

@media (max-width: 1100px) {
    .member-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .member-login-grid, .member-module-grid, .member-dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    :root {
        --page-gutter: 0.75rem;
        --display-mobile: clamp(1.85rem, 11vw, 2.35rem);
    }

    .countdown-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .cookie-preferences__header, .cookie-option {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ANIMATED ENERGY TRIANGLE (PV -> LOGO -> HAUS -> PV)
   ========================================================================== */
.energy-flow-triangle {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: clamp(3.5rem, 8vw, 6rem) max(1rem, 3vw);
    min-height: 440px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    align-items: center;
    justify-items: center;
    isolation: isolate;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96), rgba(240, 244, 232, 0.74));
    border-radius: 1.45rem;
}

/* Positionierung im Dreieck */
.energy-source {
    grid-column: 1 / -1; /* Zentriert in der ersten Zeile */
    grid-row: 1;
    z-index: 3;
}

.triangle-logo-wrapper {
    grid-column: 1;
    grid-row: 2;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .triangle-logo-wrapper img {
        width: min(100%, 180px);
        mix-blend-mode: multiply;
        filter: drop-shadow(0 15px 30px rgba(148, 169, 100, 0.2));
    }

.energy-house {
    grid-column: 2;
    grid-row: 2;
    z-index: 3;
}

/* Basis-Leitungen */
.energy-flow {
    position: absolute;
    z-index: 1;
    height: 0.35rem;
    background: rgba(95, 127, 34, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

/* 1. Linie: PV (oben) -> Logo (unten links) */
.flow-pv-to-logo {
    top: 32%;
    left: 18%;
    width: 42%;
    transform: rotate(56deg);
    transform-origin: right center;
}

/* 2. Linie: Logo (unten links) -> Haus (unten rechts) */
.flow-logo-to-house {
    bottom: 22%;
    left: 28%;
    width: 44%;
}

/* 3. Linie: Haus (unten rechts) -> PV (oben) */
.flow-house-to-pv {
    top: 32%;
    right: 18%;
    width: 42%;
    transform: rotate(-56deg);
    transform-origin: left center;
}

/* Animierte Pulse-Punkte (Lichtbälle) */
.energy-flow::before,
.energy-flow::after,
.energy-flow span {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45px;
    background: linear-gradient(90deg, transparent, var(--sun), #ffffff, var(--green-bright), transparent);
    filter: drop-shadow(0 0 6px var(--sun));
    animation: energy-triangle-pulse 2.4s linear infinite;
    content: '';
    opacity: 0;
}

/* Zeitliche Staffelung für einen fließenden Kreislauf */
.energy-flow::after {
    animation-delay: 0.8s;
}

.energy-flow span {
    animation-delay: 1.6s;
}

/* Animation für den Vorwärtsfluss */
@keyframes energy-triangle-pulse {
    0% {
        left: -30%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        left: 110%;
        opacity: 0;
    }
}

/* Optionale Anpassung: Wenn der Strom vom Haus zur PV zurückfließen soll, 
   kann die Richtung über ein separates Keyframe umgedreht werden */
.flow-house-to-pv::before,
.flow-house-to-pv::after,
.flow-house-to-pv span {
    animation-name: energy-triangle-pulse-reverse;
}

@keyframes energy-triangle-pulse-reverse {
    0% {
        right: -30%;
        left: auto;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        right: 110%;
        left: auto;
        opacity: 0;
    }
}

/* ==========================================================================
   MOBILE OPTIMIERUNG (Untereinander statt Dreieck bei schmalen Screens)
   ========================================================================== */
@media (max-width: 560px) {
    .energy-flow-triangle {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 4rem 0;
        min-height: auto;
    }

    .energy-source {
        grid-column: 1;
        grid-row: 1;
    }

    .triangle-logo-wrapper {
        grid-column: 1;
        grid-row: 2;
    }

    .energy-house {
        grid-column: 1;
        grid-row: 3;
    }

    /* Verstecke die Dreiecks-Flüsse auf Mobile und nutze einfache vertikale Verbinder */
    .flow-pv-to-logo, .flow-house-to-pv {
        display: none;
    }

    /* Wir zweckentfremden die verbleibende Linie als simplen vertikalen Verbinder */
    .flow-logo-to-house {
        left: 50%;
        top: 25%;
        width: 0.35rem;
        height: 50%;
        transform: translateX(-50%);
    }

        .flow-logo-to-house::before,
        .flow-logo-to-house::after,
        .flow-logo-to-house span {
            width: 100%;
            height: 45px;
            left: 0;
            background: linear-gradient(180deg, transparent, var(--sun), #ffffff, var(--green-bright), transparent);
            animation-name: energy-triangle-pulse-vertical;
        }
}

@keyframes energy-triangle-pulse-vertical {
    0% {
        top: -30%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}
/* ==========================================================================
   HOMEPAGE ENERGY FLOW GRAPHIC
   ========================================================================== */
.energy-flow-section {
    display: grid;
    gap: clamp(0.9rem, 2.4vw, 1.5rem);
    padding-top: clamp(1rem, 3vw, 2.25rem);
}

.energy-flow-heading {
    align-items: end;
}

.energy-flow-heading h2 {
    max-width: 760px;
}

.energy-flow-intro {
    max-width: 820px;
    color: var(--muted-readable);
    font-size: var(--font-size-lead);
    line-height: 1.6;
}

.energy-flow-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--card-border);
    border-radius: 2.2rem;
    background:
        radial-gradient(circle at 12% 10%, rgba(244, 160, 0, 0.22), transparent 15rem),
        radial-gradient(circle at 92% 4%, rgba(95, 127, 34, 0.22), transparent 16rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(224, 237, 198, 0.76));
    box-shadow: 0 28px 72px rgba(63, 95, 16, 0.18);
    padding: clamp(0.75rem, 1.8vw, 1rem);
}

.home-energy-graphic {
    position: relative;
    overflow: hidden;
    border-radius: 1.45rem;
    background:
        radial-gradient(circle at 50% 0%, rgba(126, 165, 31, 0.16), transparent 17rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.9));
    padding: clamp(1rem, 2.5vw, 1.45rem);
}

.simple-energy-flow {
    display: grid;
    gap: clamp(0.9rem, 2.4vw, 1.45rem);
}

.simple-flow-logo {
    display: flex;
    justify-content: center;
}

.home-energy-logo {
    width: min(68%, 310px);
    filter: drop-shadow(0 14px 22px rgba(0, 64, 123, 0.12));
}

.simple-flow-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(3.5rem, 0.34fr) minmax(0, 1fr) minmax(3.5rem, 0.34fr) minmax(0, 1.25fr);
    align-items: center;
    gap: clamp(0.55rem, 1.6vw, 1rem);
}

.simple-flow-node {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    min-height: 9.5rem;
    padding: 1.1rem 0.85rem;
    border: 1px solid rgba(36, 110, 178, 0.12);
    border-radius: 1.25rem;
    color: #05386f;
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(5, 56, 111, 0.12);
}

.simple-flow-node-pv,
.simple-flow-node-community,
.simple-flow-node-business,
.simple-flow-node-public {
    color: #064732;
}

.simple-flow-icon {
    display: grid;
    place-items: center;
    width: 3.15rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(126, 165, 31, 0.13);
    font-size: 1.85rem;
}

.simple-flow-node-house .simple-flow-icon,
.simple-flow-node-provider .simple-flow-icon {
    background: rgba(36, 110, 178, 0.12);
}

.simple-flow-consumers {
    position: relative;
    display: grid;
    gap: 0.7rem;
}

.simple-flow-consumers::before {
    position: absolute;
    top: 50%;
    left: -0.75rem;
    content: '';
    width: 0.75rem;
    height: calc(100% - 2.1rem);
    border-top: 2px solid rgba(11, 103, 178, 0.28);
    border-bottom: 2px solid rgba(11, 103, 178, 0.28);
    border-left: 2px solid rgba(11, 103, 178, 0.28);
    border-radius: 0.9rem 0 0 0.9rem;
    transform: translateY(-50%);
}

.simple-flow-consumers .simple-flow-node {
    min-height: auto;
    grid-template-columns: auto 1fr;
    justify-items: start;
    column-gap: 0.75rem;
    padding: 0.8rem;
    text-align: left;
}

.simple-flow-consumers .simple-flow-icon {
    grid-row: 1 / 3;
    width: 2.55rem;
    font-size: 1.45rem;
}

.simple-flow-consumers strong {
    font-size: var(--font-size-base);
}

.simple-flow-consumers small {
    align-self: start;
}

.simple-flow-node strong {
    color: inherit;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: var(--font-weight-bold);
}

.simple-flow-node small {
    color: var(--muted-readable);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.simple-flow-node-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.1rem;
}

.simple-flow-node-tags span {
    border: 1px solid rgba(22, 131, 92, 0.18);
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    color: #064732;
    background: rgba(126, 165, 31, 0.11);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
}

.simple-flow-connector {
    position: relative;
    height: 0.35rem;
    border-radius: 999px;
    background: color-mix(in srgb, currentColor 24%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 20%, transparent);
}

.simple-flow-connector::before,
.simple-flow-connector::after {
    position: absolute;
    top: 50%;
    left: 0;
    content: '';
    width: 0.72rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0.32rem color-mix(in srgb, currentColor 16%, transparent), 0 0 1rem currentColor;
    transform: translate(-50%, -50%);
    animation: simple-flow-dot 2.4s linear infinite;
}

.simple-flow-connector::after {
    animation-delay: -1.2s;
}

@keyframes simple-flow-dot {
    0% {
        left: 0;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.72);
    }

    12%, 88% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        left: 100%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.72);
    }
}

.simple-flow-connector span {
    position: absolute;
    top: -2.05rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
    padding: 0.22rem 0.62rem;
    color: #05386f;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(5, 56, 111, 0.12);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
}

.simple-flow-connector-in {
    color: #16835c;
}

.simple-flow-connector-out {
    color: #0b67b2;
}

.simple-flow-backup {
    display: grid;
    grid-template-columns: minmax(2rem, 1fr) minmax(0, 340px) auto minmax(2rem, 1fr);
    align-items: center;
    gap: 0.8rem;
}

.simple-flow-backup-line {
    grid-column: 1 / 2;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(11, 103, 178, 0.38));
}

.simple-flow-node-provider {
    grid-column: 2 / 3;
    min-height: auto;
    padding: 0.95rem;
}

.simple-flow-backup-badge {
    grid-column: 3 / 4;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    color: #05386f;
    background: rgba(36, 110, 178, 0.1);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
}

@media (max-width: 760px) {
    .energy-flow-card {
        border-radius: 1.35rem;
        padding: 0.55rem;
    }

    .home-energy-graphic {
        overflow: hidden;
        border-radius: 1rem;
        padding: clamp(0.65rem, 3vw, 0.95rem);
    }

    .simple-energy-flow {
        gap: 0.95rem;
    }

    .home-energy-logo {
        width: min(72%, 230px);
    }

    .simple-flow-grid {
        grid-template-columns: minmax(3.8rem, 0.9fr) minmax(1.1rem, 0.22fr) minmax(4.2rem, 1fr) minmax(1.1rem, 0.22fr) minmax(4.8rem, 1.12fr);
        gap: clamp(0.22rem, 1.1vw, 0.45rem);
    }

    .simple-flow-backup {
        grid-template-columns: minmax(0.75rem, 1fr) minmax(0, 12rem) auto minmax(0.75rem, 1fr);
        gap: 0.35rem;
    }

    .simple-flow-node {
        min-height: 6.2rem;
        padding: 0.58rem 0.38rem;
        border-radius: 0.9rem;
        box-shadow: 0 10px 22px rgba(5, 56, 111, 0.1);
    }

    .simple-flow-icon {
        width: 2.15rem;
        font-size: 1.2rem;
    }

    .simple-flow-node strong,
    .simple-flow-consumers strong {
        font-size: clamp(0.78rem, 2.7vw, 0.98rem);
        line-height: 1.15;
    }

    .simple-flow-node small {
        font-size: clamp(0.62rem, 2.35vw, 0.75rem);
        line-height: 1.25;
    }

    .simple-flow-node-tags {
        gap: 0.2rem;
    }

    .simple-flow-node-tags span {
        padding: 0.12rem 0.32rem;
        font-size: clamp(0.54rem, 2vw, 0.66rem);
    }

    .simple-flow-connector {
        height: 0.22rem;
    }

    .simple-flow-connector span {
        display: none;
    }

    .simple-flow-connector::before,
    .simple-flow-connector::after {
        width: 0.48rem;
        box-shadow: 0 0 0 0.2rem color-mix(in srgb, currentColor 16%, transparent), 0 0 0.7rem currentColor;
    }

    .simple-flow-consumers {
        gap: 0.4rem;
    }

    .simple-flow-consumers::before {
        left: -0.35rem;
        width: 0.35rem;
        height: calc(100% - 1.6rem);
    }

    .simple-flow-consumers .simple-flow-node {
        column-gap: 0.45rem;
        padding: 0.48rem;
    }

    .simple-flow-consumers .simple-flow-icon {
        width: 1.85rem;
        font-size: 1rem;
    }

    .simple-flow-node-provider {
        padding: 0.65rem;
    }

    .simple-flow-backup-badge {
        padding: 0.28rem 0.48rem;
        font-size: clamp(0.58rem, 2.2vw, 0.7rem);
    }
}

@media (max-width: 420px) {
    .home-energy-graphic {
        padding: 0.5rem;
    }

    .simple-flow-grid {
        grid-template-columns: minmax(3.35rem, 0.9fr) minmax(0.8rem, 0.16fr) minmax(3.65rem, 1fr) minmax(0.8rem, 0.16fr) minmax(4.15rem, 1.1fr);
        gap: 0.18rem;
    }

    .simple-flow-node {
        min-height: 5.7rem;
        padding: 0.45rem 0.28rem;
    }

    .simple-flow-icon {
        width: 1.9rem;
        font-size: 1.05rem;
    }

    .simple-flow-consumers .simple-flow-node {
        padding: 0.4rem 0.34rem;
    }

    .simple-flow-consumers small {
        display: none;
    }

    .simple-flow-node-tags {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .simple-flow-connector::before,
    .simple-flow-connector::after {
        animation: none;
        left: 50%;
        opacity: 1;
    }
}

/* Vereins- und Impressumsdaten */
.legal-grid, .representative-grid {
    display: grid;
    gap: 1rem;
}

.legal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.association-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.representative-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-card {
    border: 1px solid var(--card-border);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.74);
    padding: 1.2rem;
}

.legal-card-highlight {
    background: linear-gradient(135deg, rgba(224, 237, 198, 0.78), rgba(255, 255, 255, 0.88));
}

.legal-card h3 {
    color: var(--green-deep);
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.85rem;
}

.legal-card p + p {
    margin-top: 0.85rem;
}

.legal-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.legal-list div {
    display: grid;
    gap: 0.15rem;
}

.legal-list dt {
    color: var(--muted-readable);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-list dd {
    color: var(--text-strong);
    font-weight: var(--font-weight-semibold);
    margin: 0;
}

.legal-meta, .legal-note {
    color: var(--muted-readable);
    font-size: var(--font-size-sm);
}

.legal-note {
    max-width: 74ch;
}

@media (max-width: 900px) {
    .legal-grid, .association-grid, .representative-grid {
        grid-template-columns: 1fr;
    }
}

/* Versorgungsgebiet page */
.supply-area-hero strong {
    color: var(--green-deep);
    font-weight: var(--font-weight-bold);
}

.supply-area-card {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(1.25rem, 4vw, 2.5rem);
    align-items: center;
    border: 1px solid var(--card-border);
    border-radius: 2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(224, 237, 198, 0.72));
    box-shadow: 0 24px 70px rgba(63, 95, 16, 0.14);
    padding: clamp(1rem, 3vw, 1.7rem);
}

.supply-area-copy h2 {
    color: var(--green-deep);
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

.supply-area-copy p {
    color: var(--muted-readable);
}

.supply-area-list {
    margin-top: 1.1rem;
}

.supply-area-map {
    margin: 0;
}

.supply-area-map img {
    display: block;
    width: 100%;
    border: 1px solid rgba(11, 86, 232, 0.14);
    border-radius: 1.4rem;
    background: #fff;
    box-shadow: 0 18px 45px rgba(63, 95, 16, 0.12);
}

.supply-area-map figcaption {
    color: var(--muted-readable);
    font-size: var(--font-size-xs);
    margin-top: 0.8rem;
    text-align: center;
}

.supply-area-search {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr) auto;
}

.supply-area-search .btn {
    justify-self: end;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .supply-area-card,
    .supply-area-search {
        grid-template-columns: 1fr;
    }

    .supply-area-search .btn {
        justify-self: start;
    }
}

/* Startup logo loader */
.startup-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    pointer-events: none;
    background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.96), rgba(232, 242, 212, 0.94) 42%, rgba(255, 249, 232, 0.96));
    animation: startup-loader-fade 2s ease-in-out forwards;
}

    .startup-loader img {
        width: min(78vw, 520px);
        filter: drop-shadow(0 26px 45px rgba(63, 95, 16, 0.24));
        animation: startup-logo-pulse 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

@keyframes startup-loader-fade {
    0%, 68% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes startup-logo-pulse {
    0% {
        opacity: 0;
        transform: scale(0.82);
    }

    24% {
        opacity: 1;
        transform: scale(1);
    }

    68% {
        opacity: 1;
        transform: scale(1.04);
    }

    100% {
        opacity: 0;
        transform: scale(1.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .startup-loader, .startup-loader img {
        animation-duration: 0.01ms;
    }
}

/* Price page tariff cards */
.price-highlight-section,
.tariff-card {
    --tariff-main: #94a964;
    --tariff-dark: #173f20;
    --tariff-mid: #2f7a3a;
    --tariff-light: #eef4df;
}

.tariff-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: clamp(1rem, 2.4vw, 1.8rem);
    align-items: stretch;
}

.tariff-tab-input,
.tariff-tab-control {
    display: none;
}

.tariff-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: clamp(1rem, 2vw, 1.35rem);
    overflow: hidden;
    min-height: 100%;
    border: 1px solid rgba(148, 169, 100, 0.22);
    border-radius: 2rem;
    color: #17251a;
    background:
        radial-gradient(circle at 82% 11%, rgba(255, 255, 255, 0.95) 0 3.8rem, transparent 3.9rem),
        radial-gradient(circle at 92% 9%, rgba(148, 169, 100, 0.18), transparent 9rem),
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,250,240,0.94));
    box-shadow: 0 26px 70px rgba(35, 58, 29, 0.14);
    padding: clamp(1rem, 2.5vw, 1.45rem);
}

.tariff-card::before {
    position: absolute;
    inset: 1.4rem 1.15rem auto auto;
    z-index: -1;
    width: min(34%, 13.5rem);
    height: 8.75rem;
    content: '';
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 180'%3E%3Cg fill='none' stroke='%2394a964' stroke-width='5' stroke-linecap='round' stroke-linejoin='round' opacity='.82'%3E%3Cpath d='M78 118V66l42-43 42 43v52'/%3E%3Cpath d='M62 74l58-59 58 59'/%3E%3Cpath d='M105 118V91h20v27M143 92h15v16h-15z'/%3E%3Cpath d='M40 142c55-35 101-35 151 0 42-25 77-30 117-17' opacity='.55'/%3E%3Cpath d='M20 162c70-42 135-43 202 0 33-19 61-25 94-18' opacity='.4'/%3E%3Cpath d='M205 120V75M205 75c-20 4-23 33 0 40 23-7 20-36 0-40zM232 120V64M232 64c-17 3-20 28 0 34 20-6 17-31 0-34z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.62;
}

.tariff-card-business::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 185'%3E%3Cg fill='none' stroke='%2394a964' stroke-width='5' stroke-linecap='round' stroke-linejoin='round' opacity='.84'%3E%3Cpath d='M115 128V62l55-48 56 48v66'/%3E%3Cpath d='M95 72l75-66 77 66'/%3E%3Cpath d='M145 128V91h50v37M157 75h12v12h-12zM177 75h12v12h-12z'/%3E%3Cpath d='M255 128V38l17-18 18 18v90M255 42h35M255 58h35'/%3E%3Cpath d='M20 154c72-42 154-42 224 0 36-18 62-23 88-16' opacity='.5'/%3E%3Cpath d='M38 124h32l10 16H52zM28 140h60M42 140a10 10 0 1020 0M76 140a10 10 0 1020 0'/%3E%3C/g%3E%3C/svg%3E");
}

.tariff-card-business { padding-bottom: 0; }

.tariff-card-private { padding-bottom: 0; }

.tariff-card__header {
    display: grid;
    align-content: start;
    min-height: clamp(10.5rem, 16vw, 12.5rem);
    padding-right: min(26%, 9rem);
}

.tariff-card__header h2 {
    color: #173f20;
    font-size: clamp(1.85rem, 2.65vw, 2.45rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.035em;
    margin-bottom: 0.6rem;
}

.tariff-card__header p { color: #1f261f; margin: 0; }

.tariff-card .pricing-label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    justify-self: start;
    color: #2d6c20;
    border: 2px solid rgba(70, 126, 38, 0.9);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 28px rgba(148, 169, 100, 0.16);
    margin-bottom: 1rem;
}

.tariff-card-private .pricing-label {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #78a529, #5f8e25);
}

.pricing-label__icon { font-size: 1.1em; line-height: 1; }

.tariff-card__rates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.tariff-rate {
    position: relative;
    display: grid;
    gap: 0.5rem;
    grid-template-rows: auto auto auto 1fr;
    align-content: stretch;
    min-height: 17.75rem;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(145deg, #1e6a32, #143d1f);
    box-shadow: 0 18px 38px rgba(23, 63, 32, 0.22), inset 0 1px 0 rgba(255,255,255,.3);
    padding: 2.75rem 1.2rem 1.2rem;
}

.tariff-rate--feedin { background: linear-gradient(145deg, #8cad28, #9fbd35); }

.tariff-rate__icon {
    position: absolute;
    top: -1.05rem;
    right: 1rem;
    left: auto;
    display: grid;
    width: 3.7rem;
    height: 3.7rem;
    place-items: center;
    border: 0.45rem solid #fff;
    border-radius: 999px;
    color: var(--tariff-dark);
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(23,63,32,.2), inset 0 0 0 2px rgba(148, 169, 100, 0.3);
}

.tariff-rate__icon svg {
    display: block;
    width: 2rem;
    height: 2rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.1px;
}

.tariff-rate--bezug .tariff-rate__icon svg {
    fill: currentColor;
    stroke: none;
}

.tariff-rate__label,
.tariff-benefit span,
.price-detail-card span {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tariff-rate__label { padding-right: 3.75rem; }

.tariff-rate strong {
    display: block;
    color: #fff;
    font-size: clamp(2.45rem, 4.65vw, 3.65rem);
    line-height: 0.95;
    text-shadow: 0 3px 10px rgba(18, 47, 19, 0.28);
}

.tariff-rate span:last-child { color: rgba(255,255,255,.94); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
.tariff-rate--bezug small,
.tariff-rate__note { border-top: 1px dashed rgba(255,255,255,.65); color: rgba(255,255,255,.9); margin-top: .35rem; padding-top: .7rem; line-height: 1.4; }
.tariff-rate__note { display: block; font-size: var(--font-size-xs); }

.tariff-benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 8.8rem;
    border: 1px solid rgba(148, 169, 100, 0.18);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 44px rgba(148, 169, 100, 0.08);
    padding: 1.1rem 1.35rem;
}

.tariff-benefit__icon {
    display: grid;
    flex: 0 0 5rem;
    width: 5rem;
    height: 5rem;
    place-items: center;
    border-radius: 999px;
    color: #2b7a3a;
    background: linear-gradient(135deg, #eef4df, #f8fbf1);
    font-size: 2.1rem;
}

.tariff-benefit strong { display: block; color: #173f20; font-size: clamp(1.8rem, 3vw, 2.45rem); font-weight: var(--font-weight-bold); line-height: 1.05; }
.tariff-benefit p { color: #1f261f; font-size: var(--font-size-sm); line-height: 1.4; margin: 0.35rem 0 0; }

.tariff-advantages {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 1.25rem;
    background: rgba(255,255,255,.88);
}

.tariff-card-private .tariff-advantages { margin-bottom: 3.35rem; }

.tariff-advantages li { position: relative; color: #1f261f; line-height: 1.35; padding: .85rem .75rem .85rem 3rem; border-top: 1px solid rgba(148,169,100,.28); }
.tariff-advantages li:first-child { border-top: 0; }
.tariff-advantages li::before { position: absolute; left: .8rem; top: .75rem; display: grid; width: 1.5rem; height: 1.5rem; place-items: center; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #94a964, #4b8c2c); content: '✓'; font-size: .9rem; font-weight: var(--font-weight-bold); }

.tariff-card__footer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 calc(clamp(1.25rem, 3vw, 2rem) * -1); padding: 1rem clamp(1.25rem, 3vw, 2rem); color: #fff; background: linear-gradient(135deg, #143d1f, #237339); text-align: center; text-transform: uppercase; font-weight: var(--font-weight-bold); font-size: var(--font-size-xs); letter-spacing: .04em; }
.tariff-card__footer span + span { border-left: 1px solid rgba(255,255,255,.28); }

.price-detail-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.price-detail-card { border: 1px solid var(--card-border); border-radius: 1.35rem; background: rgba(255, 255, 255, 0.9); box-shadow: 0 16px 44px rgba(148, 169, 100, 0.08); padding: 1.1rem; }
.price-detail-card span { color: var(--green); }
.price-detail-card strong { display: block; color: var(--text-strong); font-size: var(--heading-sm); line-height: 1.1; margin: 0.35rem 0 0.45rem; }
.price-detail-card p { color: var(--muted-readable); margin: 0; }
.price-detail-card--advantage { border-color: rgba(126, 165, 31, 0.34); background: linear-gradient(135deg, rgba(224, 237, 198, 0.95), rgba(255, 255, 255, 0.94)); }

@media (max-width: 900px) { .tariff-overview, .price-detail-strip { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .tariff-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 0.75rem;
        align-items: start;
    }

    .tariff-tab-control {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 3.15rem;
        margin-bottom: -0.75rem;
        border: 1px solid rgba(95, 127, 34, 0.24);
        border-bottom-color: rgba(95, 127, 34, 0.34);
        border-radius: 1rem 1rem 0 0;
        color: rgba(23, 63, 32, 0.72);
        background: linear-gradient(180deg, rgba(246, 250, 239, 0.92), rgba(230, 239, 209, 0.9));
        box-shadow: inset 0 -1px 0 rgba(95, 127, 34, 0.1);
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-bold);
        letter-spacing: 0.02em;
        text-align: center;
        cursor: pointer;
        transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    }

    .tariff-tab-control:first-of-type {
        border-top-right-radius: 0.45rem;
    }

    .tariff-tab-control:last-of-type {
        border-top-left-radius: 0.45rem;
    }

    .tariff-tab-input {
        position: absolute;
        display: block;
        opacity: 0;
        pointer-events: none;
    }

    .tariff-tab-input:focus-visible + .tariff-tab-control {
        outline: 3px solid var(--focus-ring);
        outline-offset: 3px;
    }

    #tariff-tab-private:checked + .tariff-tab-control,
    #tariff-tab-business:checked + .tariff-tab-control {
        z-index: 2;
        color: var(--green-deep);
        border-color: rgba(148, 169, 100, 0.22);
        border-bottom-color: rgba(255, 255, 255, 0.96);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 240, 0.96));
        box-shadow: 0 -10px 24px rgba(63, 95, 16, 0.08);
    }

    #tariff-tab-private:checked + .tariff-tab-control::after,
    #tariff-tab-business:checked + .tariff-tab-control::after {
        position: absolute;
        right: 0.85rem;
        bottom: 0.5rem;
        left: 0.85rem;
        height: 0.2rem;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--green-deep), var(--green-bright));
        content: '';
    }

    .tariff-card {
        display: none;
        grid-column: 1 / -1;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-radius: 0 0 1.25rem 1.25rem;
        padding: 1rem;
    }

    #tariff-tab-private:checked ~ .tariff-card-private,
    #tariff-tab-business:checked ~ .tariff-card-business {
        display: grid;
    }

    .tariff-card__header { min-height: 0; padding-right: 0; padding-top: 7rem; }
    .tariff-card::before { left: 50%; right: auto; transform: translateX(-50%); width: 15rem; height: 9rem; }
    .tariff-card__rates { grid-template-columns: 1fr; }
    .tariff-rate { min-height: 15rem; }
    .tariff-card-private .tariff-advantages { margin-bottom: 0; }
    .tariff-card__footer { margin-inline: -1rem; }
}

/* ==========================================================================
   HOMEPAGE COMMUNITY UTILIZATION
   ========================================================================== */
.utilization-section {
    display: grid;
    gap: clamp(0.9rem, 2.4vw, 1.45rem);
}

.utilization-heading {
    align-items: end;
}

.utilization-heading > p {
    max-width: 560px;
    color: var(--muted-readable);
    line-height: 1.7;
}

.utilization-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 0.8fr));
    gap: 1rem;
}

.utilization-card {
    display: grid;
    align-content: start;
    gap: 0.65rem;
    border: 1px solid var(--card-border);
    border-radius: 1.45rem;
    padding: clamp(1rem, 2vw, 1.35rem);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 45px rgba(5, 56, 111, 0.1);
}

.utilization-card-primary {
    background:
        radial-gradient(circle at 15% 15%, rgba(244, 160, 0, 0.18), transparent 12rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(235, 246, 216, 0.88));
}

.utilization-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.utilization-card h3,
.utilization-card strong {
    margin: 0;
    color: #05386f;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.05;
}

.utilization-card span:not(.icon-pill) {
    color: var(--muted-readable);
    font-weight: var(--font-weight-bold);
}

.utilization-card p,
.utilization-card small {
    margin: 0;
    color: var(--muted-readable);
    line-height: 1.6;
}

.utilization-meter {
    overflow: hidden;
    height: 1.05rem;
    border-radius: 999px;
    background: rgba(5, 56, 111, 0.1);
    box-shadow: inset 0 0 0 1px rgba(5, 56, 111, 0.08);
}

.utilization-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7ea51f, #f4a000);
    box-shadow: 0 0 1.1rem rgba(126, 165, 31, 0.4);
}

.utilization-balance {
    display: grid;
    gap: 0.9rem;
    border: 1px solid var(--card-border);
    border-radius: 1.45rem;
    padding: clamp(1rem, 2vw, 1.35rem);
    background: rgba(255, 255, 255, 0.88);
}

.utilization-balance-row {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr) 5.5rem;
    align-items: center;
    gap: 0.9rem;
}

.utilization-balance-row > span,
.utilization-balance-row > strong {
    color: #05386f;
    font-weight: var(--font-weight-bold);
}

.utilization-balance-bar {
    position: relative;
    overflow: hidden;
    height: 1.55rem;
    border-radius: 999px;
    background: rgba(5, 56, 111, 0.08);
}

.utilization-balance-bar span {
    position: absolute;
    left: 0;
    height: 50%;
    border-radius: 999px;
}

.utilization-balance-bar .generation {
    top: 0;
    background: linear-gradient(90deg, #f4a000, #ffd166);
}

.utilization-balance-bar .consumption {
    bottom: 0;
    background: linear-gradient(90deg, #0b67b2, #4fb3ff);
}

.utilization-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    color: var(--muted-readable);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
}

.utilization-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.utilization-legend i {
    width: 0.85rem;
    aspect-ratio: 1;
    border-radius: 50%;
}

.utilization-legend .generation {
    background: #f4a000;
}

.utilization-legend .consumption {
    background: #0b67b2;
}

@media (max-width: 860px) {
    .utilization-grid {
        grid-template-columns: 1fr;
    }

    .utilization-balance-row {
        grid-template-columns: 4.5rem minmax(0, 1fr);
    }

    .utilization-balance-row > strong {
        grid-column: 2;
    }
}

/* Homepage price showcase aligned with the Price page tariff-card design */
.home-price-showcase {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.home-price-showcase::before {
    content: none;
}

.home-tariff-card {
    width: 100%;
    padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.home-tariff-card .tariff-card__header {
    min-height: clamp(9rem, 14vw, 11rem);
}

.home-tariff-card .tariff-rate {
    min-height: 15.75rem;
}

.home-tariff-card .tariff-rate__icon {
    top: 0.85rem;
    right: 0.85rem;
    width: 3.35rem;
    height: 3.35rem;
    border-width: 0.25rem;
}

.home-tariff-card .tariff-rate__icon svg {
    width: 1.85rem;
    height: 1.85rem;
    stroke-width: 2.4px;
}

.home-tariff-card .tariff-benefit {
    min-height: auto;
}

.home-tariff-card .tariff-advantages {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .home-tariff-card .tariff-card__header {
        min-height: 0;
    }
}

/* Supplier notice confirmation shown before tariff/registration details */
.supplier-notice-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1320;
    background: rgba(2, 22, 13, 0.24);
    backdrop-filter: blur(2px);
}

.supplier-notice-consent {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1330;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(1rem, 3vw, 1.8rem);
    align-items: end;
    width: min(920px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 1.6rem;
    background: radial-gradient(circle at 94% 0%, rgba(255, 178, 13, 0.25), transparent 12rem), linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(237, 248, 223, 0.96));
    box-shadow: 0 28px 90px rgba(2, 31, 18, 0.3);
    color: var(--text);
    padding: clamp(1rem, 3vw, 1.5rem);
    transform: translate(-50%, -50%);
}

.supplier-notice-consent p {
    color: var(--muted-readable);
}

.supplier-notice-consent__actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .supplier-notice-consent {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .supplier-notice-consent__actions,
    .supplier-notice-consent__actions .btn {
        width: 100%;
    }
}

/* Registration authorization form */
.registration-section {
    padding-block: clamp(1.5rem, 4vw, 3rem);
}

.registration-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: clamp(1rem, 3vw, 1.5rem);
    align-items: start;
}

.registration-card {
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 1.6rem;
    background: radial-gradient(circle at 92% 8%, rgba(244, 160, 0, 0.14), transparent 10rem), rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 44px rgba(148, 169, 100, 0.12);
    padding: clamp(1rem, 2.5vw, 1.45rem);
}

.registration-form-card {
    position: relative;
    overflow: hidden;
}

.registration-success-modal {
    position: fixed;
    inset: 0;
    z-index: 1360;
    display: grid;
    place-items: center;
    padding: var(--page-gutter);
}

.registration-success-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(31, 42, 36, 0.62);
    backdrop-filter: blur(3px);
}

.registration-success-card {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.9rem;
    align-content: start;
    width: min(100%, 34rem);
    box-shadow: 0 28px 80px rgba(31, 42, 36, 0.28);
}

.registration-success-card .btn {
    justify-self: start;
}

.registration-card h2,
.registration-card h3 {
    color: var(--green-deep);
    font-weight: var(--font-weight-bold);
}

.authorization-form,
.form-grid {
    display: grid;
    gap: 1rem;
}

.form-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.span-two {
    grid-column: 1 / -1;
}


.registration-form-card .form-label {
    color: var(--text-strong);
    font-weight: var(--font-weight-bold);
}

.registration-form-card .form-check-input[type="radio"] + .form-check-label {
    color: var(--text-strong);
    font-family: var(--bs-body-font-family);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.01em;
}

.required-field-label {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.required-field-label__pen {
    color: #b42318;
    font-size: 1.05em;
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.required-field-label__check {
    display: inline-grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-size: 0.78rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.required-field-label--inline {
    display: inline-flex;
    vertical-align: middle;
}

.registration-form-card .form-control {
    border: 2px solid rgba(63, 95, 16, 0.32);
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 20px rgba(31, 42, 36, 0.06);
    color: var(--text-strong);
    font-weight: var(--font-weight-medium);
}

.registration-form-card .form-control::placeholder {
    color: rgba(74, 84, 70, 0.78);
}

.registration-form-card .form-control:hover {
    border-color: rgba(63, 95, 16, 0.48);
}

.registration-form-card .form-control:focus {
    border-color: var(--green-deep);
    background-color: #fff;
}

.registration-form-card .form-control:disabled {
    background-color: rgba(244, 247, 239, 0.94);
    opacity: 1;
}



.principal-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.principal-type-options .form-check {
    align-items: center;
    border: 2px solid rgba(63, 95, 16, 0.28);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(31, 42, 36, 0.06);
    display: flex;
    gap: 0.55rem;
    margin: 0;
    min-width: min(100%, 14rem);
    padding: 0.85rem 1rem;
}

.principal-type-options .form-check-input {
    margin: 0;
}

.principal-type-options .form-check-label {
    color: var(--text-strong);
    font-weight: var(--font-weight-bold);
}

@media (max-width: 560px) {
    .principal-type-options {
        flex-direction: column;
    }
}

.registration-upload-section {
    display: grid;
    gap: 0.75rem;
}

.registration-upload-section__label {
    margin-bottom: 0;
}

.document-delivery-options {
    margin-bottom: 0.25rem;
}

.document-delivery-note {
    margin-top: 0;
}

.registration-upload-section__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.registration-upload-section__fields .invoice-upload-field {
    max-width: none;
}

.invoice-upload-field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    max-width: 35rem;
}

.invoice-upload-field__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.invoice-upload-field__button {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    position: relative;
    isolation: isolate;
    min-height: 5.25rem;
    width: 100%;
    max-width: 100%;
    flex: 1;
    padding: 1rem 1.25rem 1rem 1rem;
    border: 2px dashed rgba(63, 95, 16, 0.45);
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, rgba(246, 250, 237, 0.98) 48%, rgba(224, 237, 198, 0.92) 100%);
    box-shadow: 0 16px 38px rgba(63, 95, 16, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.75);
    color: var(--green-deep);
    cursor: pointer;
    font: inherit;
    font-weight: var(--font-weight-bold);
    text-align: left;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.invoice-upload-field__button::after {
    position: absolute;
    top: 0.8rem;
    right: 0.9rem;
    z-index: -1;
    width: 3.7rem;
    height: 3.7rem;
    border-radius: 50%;
    background: rgba(126, 165, 31, 0.13);

}

.invoice-upload-field__button:hover,
.invoice-upload-field__button:focus-visible {
    border-color: var(--green-deep);
    background: linear-gradient(135deg, #fff 0%, rgba(236, 246, 217, 0.98) 100%);
    box-shadow: 0 20px 46px rgba(63, 95, 16, 0.24);
    color: var(--green-deep);
    transform: translateY(-1px);
}

.invoice-upload-field__button:focus-visible {
    outline: 0.2rem solid rgba(63, 95, 16, 0.24);
    outline-offset: 0.2rem;
}

.invoice-upload-field__input:focus-visible + .invoice-upload-field__button {
    outline: 0.2rem solid rgba(63, 95, 16, 0.24);
    outline-offset: 0.2rem;
}

.invoice-upload-field__button:disabled {
    cursor: wait;
}

.invoice-upload-field__button[aria-disabled="true"] {
    cursor: wait;
}

.invoice-upload-field__button--disabled {
    opacity: 0.72;
    pointer-events: none;
}

.invoice-upload-field__icon {
    display: inline-grid;
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    box-shadow: 0 10px 22px rgba(63, 95, 16, 0.22);
    color: #fff;
    font-size: 1.9rem;
    line-height: 1;
}

.invoice-upload-field__text {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.invoice-upload-field__eyebrow,
.invoice-upload-field__title,
.invoice-upload-field__subtitle {
    overflow-wrap: anywhere;
}

.invoice-upload-field__eyebrow {
    color: var(--green);
    font-size: 0.76rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.invoice-upload-field__title {
    color: var(--green-deep);
    font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.18rem);
    line-height: 1.25;
}

.invoice-upload-field__subtitle {
    color: rgba(74, 84, 70, 0.78);
    font-size: 0.88rem;
    font-weight: var(--font-weight-medium);
}

.invoice-upload-field__wait {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(95, 127, 34, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--green-deep);
    font-weight: var(--font-weight-bold);
    text-align: center;
}


.connection-name-input-group .btn {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .connection-name-input-group {
        display: grid;
        gap: 0.5rem;
    }

    .connection-name-input-group > .form-control,
    .connection-name-input-group > .btn {
        width: 100%;
        border-radius: var(--bs-border-radius) !important;
    }

    .connection-name-input-group .btn {
        justify-content: center;
        white-space: normal;
    }
}

.form-hint {
    color: var(--muted-readable);
    font-size: var(--font-size-sm);
    margin-top: 0.35rem;
}

.form-hint-with-counter {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.character-counter {
    color: var(--text);
    flex-shrink: 0;
    font-weight: var(--font-weight-semibold);
}

.authorization-box {
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: rgba(224, 237, 198, 0.45);
    padding: clamp(1rem, 3vw, 1.25rem);
}

.authorization-info {
    border: 1px solid rgba(95, 127, 34, 0.18);
    border-radius: 1rem;
    background: rgba(224, 237, 198, 0.32);
    color: var(--green-deep);
    padding: 0.95rem 1rem;
}

.authorization-info p {
    color: var(--muted-readable);
    margin: 0.35rem 0 0;
}

.authorization-check {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 0;
    font-weight: var(--font-weight-semibold);
}

.authorization-check .form-check-input {
    flex: 0 0 1.45rem;
    width: 1.45rem;
    height: 1.45rem;
    margin-top: 0.1rem;
}

.signature-field {
    display: grid;
    gap: 0.45rem;
}

.signature-field__header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.signature-field__preview {
    display: grid;
    gap: 0.85rem;
    border: 1px solid rgba(95, 127, 34, 0.2);
    border-radius: 1rem;
    background: rgba(224, 237, 198, 0.28);
    padding: 0.85rem;
}

.signature-field__preview-image {
    display: block;
    width: 100%;
    max-height: 9rem;
    object-fit: contain;
    border: 1px solid rgba(95, 127, 34, 0.2);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.82);
    padding: 0.6rem;
}

.signature-field__preview-content,
.signature-field__preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    justify-content: space-between;
}

.signature-field--signed:not(.signature-field--popup-open) .signature-popup {
    display: none;
}

.signature-clear {
    padding: 0.55rem 0.95rem;
}

.signature-pad {
    width: 100%;
    height: clamp(13rem, 28vw, 16rem);
    border: 2px dashed rgba(95, 127, 34, 0.32);
    border-radius: 1.15rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78));
    touch-action: none;
}

.submit-requirements {
    color: #e50000;
}

.submit-requirements ul {
    margin-bottom: 0;
}

.submit-requirements li {
    color: #e50000;
}

.submit-requirements__complete {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    color: #1f8f3a;
    font-weight: var(--font-weight-bold);
}

.submission-status {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    border: 1px solid rgba(95, 127, 34, 0.24);
    border-radius: 1rem;
    background: rgba(224, 237, 198, 0.45);
    color: var(--green-deep);
    font-weight: var(--font-weight-bold);
    padding: 0.8rem 1rem;
}

.registration-wait-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
    padding: 1.25rem;
}

.registration-wait-overlay__panel {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    width: min(100%, 28rem);
    border: 1px solid rgba(95, 127, 34, 0.24);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(31, 42, 36, 0.12);
    color: var(--green-deep);
    font-weight: var(--font-weight-bold);
    padding: 0.9rem 1.15rem;
    text-align: center;
}

.submission-status__spinner {
    width: 1.2rem;
    height: 1.2rem;
    border: 0.18rem solid rgba(95, 127, 34, 0.22);
    border-top-color: var(--green-deep);
    border-radius: 50%;
    animation: submission-status-spin 0.75s linear infinite;
    flex: 0 0 auto;
}

@keyframes submission-status-spin {
    to {
        transform: rotate(360deg);
    }
}

.registration-alert {
    margin-top: 1rem;
}

.requirements-card {
    position: sticky;
    top: 6rem;
}

@media (max-width: 860px) {
    .registration-grid,
    .form-grid.two-columns {
        grid-template-columns: 1fr;
    }

    .span-two {
        grid-column: auto;
    }

    .registration-upload-section__fields {
        grid-template-columns: 1fr;
    }

    .requirements-card {
        position: static;
    }
}

.registration-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
    align-items: stretch;
}

.registration-choice-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.registration-choice-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.featured-choice {
    border-color: rgba(95, 127, 34, 0.34);
    background: radial-gradient(circle at 92% 8%, rgba(126, 165, 31, 0.18), transparent 10rem), rgba(255, 255, 255, 0.94);
}

@media (max-width: 860px) {
    .registration-choice-grid {
        grid-template-columns: 1fr;
    }
}

.registration-decision-box {
    border: 1px solid rgba(95, 127, 34, 0.22);
    border-radius: 1.6rem;
    background: linear-gradient(135deg, rgba(224, 237, 198, 0.58), rgba(255, 255, 255, 0.95));
    box-shadow: 0 18px 44px rgba(31, 42, 36, 0.08);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    padding: clamp(1rem, 2.5vw, 1.45rem);
}

.registration-decision-box h2 {
    color: var(--green-deep);
    font-weight: var(--font-weight-bold);
}

.optional-label {
    color: var(--muted-readable);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.form-label-with-help {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.form-label-with-help .form-label {
    margin-bottom: 0;
}

.metering-help-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border: 2px solid rgba(63, 95, 16, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--green-deep);
    font-size: 0.85rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    padding: 0;
    vertical-align: middle;
}

.metering-help-trigger:hover,
.metering-help-trigger:focus-visible {
    border-color: var(--green-deep);
    background: rgba(224, 237, 198, 0.72);
    color: var(--green-deep);
}

.metering-help-trigger:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

.metering-help-card {
    border-top: 1px solid rgba(95, 127, 34, 0.18);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.metering-help-card img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(95, 127, 34, 0.18);
    border-radius: 0.9rem;
    background: #fff;
    margin-top: 0.85rem;
}

/* Registration choice modal */
body.registration-choice-modal-open {
    overflow: hidden;
}

.registration-choice-modal[hidden] {
    display: none;
}

.registration-choice-modal {
    position: fixed;
    inset: 0;
    z-index: 1340;
    display: grid;
    place-items: center;
    padding: var(--page-gutter);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.registration-choice-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(36, 35, 41, 0.58);
    backdrop-filter: blur(6px);
}

.registration-choice-modal__panel {
    position: relative;
    width: min(100%, 560px);
    max-height: calc(100vh - (2 * var(--page-gutter)));
    max-height: calc(100dvh - (2 * var(--page-gutter)));
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.registration-choice-modal__panel h2 {
    margin-bottom: 1rem;
    font-size: var(--heading-md);
}

.registration-choice-modal__panel p:not(.eyebrow) {
    color: var(--muted-readable);
}

.registration-choice-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.registration-choice-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-strong);
    background: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    line-height: 1;
}

.registration-choice-modal__close:hover,
.registration-choice-modal__close:focus-visible {
    background: #fff;
}

@media (max-width: 560px) {
    .registration-choice-modal__actions,
    .registration-choice-modal__actions .btn {
        width: 100%;
    }
}

.invoice-upload-note {
    border: 1px solid rgba(95, 127, 34, 0.22);
    border-radius: 1rem;
    background: rgba(224, 237, 198, 0.34);
    color: var(--green-deep);
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
}

.invoice-upload-note p {
    color: var(--muted-readable);
    margin: 0.25rem 0 0;
}

.metering-help-card__image-button {
    display: grid;
    gap: 0.65rem;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--green-deep);
    font: inherit;
    font-weight: var(--font-weight-semibold);
    margin-top: 0.85rem;
    padding: 0;
    text-align: left;
}

.metering-help-card__image-button img {
    margin-top: 0;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.metering-help-card__image-button:hover img,
.metering-help-card__image-button:focus-visible img {
    box-shadow: 0 16px 34px rgba(63, 95, 16, 0.16);
    transform: translateY(-2px);
}

.metering-help-card__image-button:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 4px;
    border-radius: 1rem;
}

.metering-help-modal {
    position: fixed;
    inset: 0;
    z-index: 1340;
    display: grid;
    place-items: center;
    padding: var(--page-gutter);
}

.metering-help-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(31, 42, 36, 0.62);
    backdrop-filter: blur(3px);
}

.metering-help-modal__panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    width: min(100%, 72rem);
    max-height: min(88vh, 56rem);
    overflow: auto;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 28px 80px rgba(31, 42, 36, 0.28);
    padding: clamp(1rem, 3vw, 1.5rem);
}

.metering-help-modal__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.metering-help-modal__header h2 {
    color: var(--green-deep);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0;
}

.metering-help-modal__close {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--green-deep);
    font-size: 1.6rem;
    line-height: 1;
}

.metering-help-modal__images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.metering-help-modal__images figure {
    display: grid;
    gap: 0.6rem;
    margin: 0;
}

.metering-help-modal__images img {
    width: 100%;
    height: auto;
    border: 1px solid rgba(95, 127, 34, 0.18);
    border-radius: 1rem;
    background: #fff;
}

.metering-help-modal__images figcaption {
    color: var(--muted-readable);
    font-size: 0.95rem;
    line-height: 1.35;
}

@media (max-width: 760px) {
    .metering-help-modal__images {
        grid-template-columns: 1fr;
    }
}

.selected-files-list {
    border: 1px solid rgba(95, 127, 34, 0.2);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.78);
    margin-top: 0.75rem;
    overflow: hidden;
}

.selected-files-list__header {
    background: rgba(224, 237, 198, 0.48);
    color: var(--green-deep);
    font-weight: var(--font-weight-bold);
    padding: 0.65rem 0.85rem;
}

.selected-files-list ul {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.selected-files-list li {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(95, 127, 34, 0.14);
    padding: 0.65rem 0.85rem;
}

.selected-files-list li span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.selected-files-list__remove {
    display: inline-grid;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid rgba(229, 0, 0, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #b00000;
    font-size: 1.25rem;
    line-height: 1;
}

.selected-files-list__remove:hover,
.selected-files-list__remove:focus-visible {
    background: #fff2f2;
}

.signature-field__actions,
.signature-popup__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.signature-open,
.signature-field__mobile-summary {
    display: none;
}

.signature-mobile-handoff {
    display: inline-flex;
}

.signature-popup__backdrop,
.signature-popup__header {
    display: none;
}

.signature-popup__panel {
    display: grid;
    gap: 0.75rem;
}

@media (max-width: 640px), (max-width: 900px) and (orientation: landscape) {
    .signature-open,
    .signature-field__mobile-summary {
        display: flex;
    }

    .signature-field__mobile-summary {
        gap: 0.75rem;
        align-items: stretch;
        flex-direction: column;
        border: 1px solid rgba(95, 127, 34, 0.2);
        border-radius: 1rem;
        background: rgba(224, 237, 198, 0.28);
        padding: 0.85rem;
    }

    .signature-field__mobile-preview {
        display: block;
        width: 100%;
        max-height: 7rem;
        object-fit: contain;
        border: 1px solid rgba(95, 127, 34, 0.2);
        border-radius: 0.8rem;
        background: rgba(255, 255, 255, 0.82);
        padding: 0.6rem;
    }

    .signature-field__mobile-summary .btn {
        width: 100%;
    }

    .signature-field:not(.signature-field--popup-open) .signature-popup {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .signature-field--popup-open .signature-popup {
        position: fixed;
        inset: 0;
        z-index: 1340;
        display: grid;
        place-items: center;
        padding: 0.75rem;
    }

    .signature-field--popup-open .signature-popup__backdrop {
        position: absolute;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(31, 42, 36, 0.66);
        backdrop-filter: blur(3px);
    }

    .signature-field--popup-open .signature-popup__panel {
        position: relative;
        z-index: 1;
        width: min(100%, 36rem);
        max-height: calc(100dvh - 1.5rem);
        border-radius: 1.35rem;
        background: #fff;
        box-shadow: 0 28px 80px rgba(31, 42, 36, 0.28);
        padding: 1rem;
    }

    .signature-field--popup-open .signature-popup__header {
        display: flex;
        gap: 1rem;
        align-items: flex-start;
        justify-content: space-between;
    }

    .signature-popup__header h3 {
        color: var(--green-deep);
        margin: 0;
    }

    .signature-popup__close {
        display: inline-grid;
        width: 2.5rem;
        height: 2.5rem;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        color: var(--green-deep);
        font-size: 1.6rem;
        line-height: 1;
    }

    .signature-mobile-handoff {
        display: none;
    }

    .signature-popup__actions .btn {
        flex: 1 1 10rem;
    }

    .signature-pad {
        height: min(48dvh, 22rem);
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .signature-field--popup-open .signature-popup__panel {
        width: min(100%, 48rem);
        max-height: calc(100dvh - 1rem);
        padding: 0.75rem;
    }

    .signature-field--popup-open .signature-popup__header {
        align-items: center;
    }

    .signature-field--popup-open .signature-popup__header .eyebrow {
        margin-bottom: 0.1rem;
    }

    .signature-popup__header h3 {
        font-size: 1.15rem;
    }

    .signature-pad {
        height: min(46dvh, 15rem);
    }
}

.authorization-submit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.authorization-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1340;
    display: grid;
    place-items: center;
    padding: var(--page-gutter);
}

.authorization-preview-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(31, 42, 36, 0.62);
    backdrop-filter: blur(3px);
}

.authorization-preview-modal__panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    width: min(100%, 54rem);
    max-height: min(90vh, 56rem);
    overflow: auto;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 28px 80px rgba(31, 42, 36, 0.28);
    padding: clamp(1rem, 3vw, 1.5rem);
}

.authorization-preview-modal__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.authorization-preview-modal__header h2 {
    color: var(--green-deep);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0;
}

.authorization-preview-modal__close {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--green-deep);
    font-size: 1.6rem;
    line-height: 1;
}


.authorization-preview-status {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    border: 1px solid rgba(95, 127, 34, 0.2);
    border-radius: 0.95rem;
    background: rgba(224, 237, 198, 0.38);
    color: var(--green-deep);
    font-weight: var(--font-weight-semibold);
    padding: 0.75rem 0.9rem;
}

.authorization-preview-document {
    display: grid;
    gap: 1rem;
    border: 1px solid rgba(95, 127, 34, 0.18);
    border-radius: 1.15rem;
    background: linear-gradient(180deg, #fff, rgba(250, 252, 250, 0.96));
    color: var(--text-strong);
    padding: clamp(1rem, 3vw, 1.4rem);
}

.authorization-preview-document__pdf {
    display: block;
    width: 100%;
    height: min(68vh, 48rem);
    border: 0;
    border-radius: 0.75rem;
    background: #fff;
}

.authorization-preview-document h3,
.authorization-preview-document h4 {
    color: var(--green-deep);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.4rem;
}

.authorization-preview-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    overflow: hidden;
}

.authorization-preview-details div {
    display: grid;
    grid-template-columns: minmax(8rem, 0.45fr) minmax(0, 1fr);
    border-bottom: 1px solid var(--line);
}

.authorization-preview-details div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.authorization-preview-details dt,
.authorization-preview-details dd {
    margin: 0;
    padding: 0.65rem 0.75rem;
}

.authorization-preview-details dt {
    background: rgba(224, 237, 198, 0.48);
    color: var(--green-deep);
    font-weight: var(--font-weight-bold);
}

.authorization-preview-details dd {
    overflow-wrap: anywhere;
}

.authorization-preview-note {
    border-radius: 0.9rem;
    background: rgba(224, 237, 198, 0.48);
    padding: 0.8rem;
}

.authorization-preview-signature {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.authorization-preview-signature > div {
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.5rem;
}

.authorization-preview-signature span {
    display: block;
    color: var(--muted-readable);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.authorization-preview-signature__image,
.authorization-preview-signature p {
    grid-column: 1 / -1;
}

.authorization-preview-signature__image {
    display: grid;
    gap: 0.4rem;
    min-height: 7rem;
}

.authorization-preview-signature__image img {
    max-height: 6rem;
    width: 100%;
    object-fit: contain;
    border: 1px dashed rgba(95, 127, 34, 0.32);
    border-radius: 0.9rem;
    background: #fff;
    padding: 0.5rem;
}

.authorization-preview-signature p {
    color: var(--muted-readable);
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}


.authorization-preview-modal__footer {
    display: grid;
    gap: 0.85rem;
    border-top: 1px solid var(--line);
    padding-top: 0.95rem;
}

.authorization-preview-modal__requirements {
    border-radius: 0.95rem;
    background: rgba(224, 237, 198, 0.34);
    color: var(--text-strong);
    padding: 0.8rem 0.9rem;
}

.authorization-preview-modal__requirements ul {
    margin: 0.4rem 0 0;
    padding-left: 1.2rem;
}

.authorization-preview-modal__requirements li + li {
    margin-top: 0.2rem;
}

.authorization-preview-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-end;
}

@media (max-width: 720px) {
    .authorization-preview-details,
    .authorization-preview-signature {
        grid-template-columns: 1fr;
    }

    .authorization-preview-details div:nth-last-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .authorization-preview-details div:last-child {
        border-bottom: 0;
    }

    .authorization-preview-details div {
        grid-template-columns: 1fr;
    }

    .authorization-submit-actions .btn,
    .authorization-preview-modal__actions .btn {
        width: 100%;
    }
}

/* Authorization mobile handoff */
.mobile-handoff-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(95, 127, 34, 0.22);
    border-radius: 1.2rem;
    background: rgba(224, 237, 198, 0.36);
    padding: 1rem;
    margin-bottom: 1rem;
}

.mobile-handoff-card p {
    margin: 0.25rem 0 0;
    color: var(--muted-readable);
    font-size: var(--font-size-sm);
}

.authorization-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 1020;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.authorization-qr-modal__backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(31, 42, 36, 0.55);
    backdrop-filter: blur(4px);
}

.authorization-qr-modal__panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    width: min(100%, 28rem);
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 24px 70px rgba(31, 42, 36, 0.24);
    padding: clamp(1rem, 3vw, 1.5rem);
    text-align: center;
}

.authorization-qr-modal__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
}

.authorization-qr-modal__close {
    width: 2.3rem;
    height: 2.3rem;
    border: 0;
    border-radius: 999px;
    background: rgba(224, 237, 198, 0.7);
    color: var(--green-deep);
    font-size: 1.6rem;
    line-height: 1;
}

.authorization-qr-modal__code {
    justify-self: center;
    width: min(100%, 16.25rem);
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #fff;
    padding: 0.6rem;
}

.authorization-qr-modal__link {
    color: var(--green-deep);
    font-size: var(--font-size-sm);
    overflow-wrap: anywhere;
}

.authorization-mobile-page {
    display: grid;
    gap: 1.5rem;
    min-height: 100vh;
    padding: clamp(1rem, 4vw, 2rem);
}

.authorization-mobile-header,
.authorization-mobile-footer {
    display: flex;
    justify-content: center;
}

.authorization-mobile-header img {
    width: min(72vw, 14rem);
}

.authorization-mobile-body {
    width: min(100%, 48rem);
    justify-self: center;
}

.authorization-session-expired {
    display: grid;
    gap: 0.9rem;
    text-align: center;
}

.authorization-session-expired .btn {
    justify-self: center;
}

@media (max-width: 860px) {
    .mobile-handoff-card {
        display: none;
    }
}

/* EnergyFamily Wiki */
.energyfamily-wiki-hero {
    width: min(780px, calc(100% - (var(--page-gutter) * 2)));
    margin-inline: max(var(--page-gutter), calc((100% - var(--content-width)) / 2)) auto;
}

.energyfamily-wiki {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1rem, 3vw, 1.75rem);
}

.energyfamily-wiki-menu {
    position: sticky;
    top: 6.5rem;
    border: 1px solid var(--card-border);
    border-radius: 1.35rem;
    background: var(--surface-strong);
    box-shadow: 0 16px 44px rgba(148, 169, 100, 0.08);
    padding: clamp(1rem, 2.4vw, 1.25rem);
}

.energyfamily-wiki-menu .eyebrow {
    margin-bottom: 0.85rem;
}

.energyfamily-wiki-menu nav {
    display: grid;
    gap: 0.35rem;
}

.energyfamily-wiki-menu a {
    display: block;
    border-radius: 0.9rem;
    color: var(--green-deep);
    font-weight: var(--font-weight-bold);
    line-height: 1.35;
    padding: 0.75rem 0.85rem;
    text-align: left;
    text-decoration: none;
}

.energyfamily-wiki-menu a:hover,
.energyfamily-wiki-menu a:focus-visible {
    background: linear-gradient(135deg, var(--green-soft), rgba(255, 178, 13, 0.16));
    color: var(--text-strong);
    outline: none;
}

.energyfamily-wiki-content {
    display: grid;
    gap: 1rem;
}

.energyfamily-wiki-entry {
    scroll-margin-top: 6.5rem;
    border: 1px solid var(--card-border);
    border-radius: 1.6rem;
    background: var(--surface-strong);
    box-shadow: 0 16px 44px rgba(148, 169, 100, 0.08);
    padding: clamp(1.15rem, 3vw, 1.75rem);
}

.energyfamily-wiki-entry h2 {
    color: var(--green-deep);
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.65rem;
}

.energyfamily-wiki-entry p:not(.eyebrow) {
    color: var(--muted-readable);
    line-height: 1.65;
    margin-bottom: 0;
}

.energyfamily-wiki-entry p + p {
    margin-top: 0.85rem;
}

.energyfamily-wiki-entry-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 42%);
    align-items: start;
    gap: clamp(1rem, 3vw, 1.5rem);
}

.energyfamily-wiki-list {
    color: var(--muted-readable);
    line-height: 1.6;
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}

.energyfamily-wiki-list li + li {
    margin-top: 0.4rem;
}

.energyfamily-wiki-figure {
    border: 1px solid var(--card-border);
    border-radius: 1.2rem;
    background: linear-gradient(135deg, rgba(148, 169, 100, 0.08), rgba(255, 178, 13, 0.1));
    margin: 0;
    overflow: hidden;
}

.energyfamily-wiki-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.energyfamily-wiki-figure figcaption {
    color: var(--muted-readable);
    font-size: 0.92rem;
    line-height: 1.45;
    padding: 0.85rem 1rem 1rem;
}

.energyfamily-wiki-note {
    border-left: 4px solid var(--sun);
    padding-left: 1rem;
}

@media (max-width: 860px) {
    .energyfamily-wiki {
        grid-template-columns: 1fr;
    }

    .energyfamily-wiki-menu {
        position: static;
    }

    .energyfamily-wiki-entry-layout {
        grid-template-columns: 1fr;
    }
}

.energyfamily-wiki-image-button {
    appearance: none;
    background: transparent;
    border: 0;
    cursor: zoom-in;
    display: block;
    padding: 0;
    width: 100%;
}

.energyfamily-wiki-image-button:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: -3px;
}

.energyfamily-wiki-image-button img {
    transition: transform 0.2s ease, filter 0.2s ease;
}

.energyfamily-wiki-image-button:hover img,
.energyfamily-wiki-image-button:focus-visible img {
    filter: brightness(0.96);
    transform: scale(1.015);
}

.energyfamily-image-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    position: fixed;
    z-index: 1200;
}

.energyfamily-image-modal__backdrop {
    background: rgba(20, 33, 24, 0.74);
    border: 0;
    cursor: zoom-out;
    inset: 0;
    padding: 0;
    position: absolute;
}

.energyfamily-image-modal__panel {
    background: var(--surface-strong);
    border-radius: 1.35rem;
    box-shadow: 0 24px 80px rgba(20, 33, 24, 0.28);
    max-height: min(92vh, 980px);
    max-width: min(96vw, 1280px);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.energyfamily-image-modal__header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem clamp(1rem, 3vw, 1.4rem);
}

.energyfamily-image-modal__header h2 {
    color: var(--green-deep);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: var(--font-weight-bold);
    margin: 0;
}

.energyfamily-image-modal__close {
    align-items: center;
    background: var(--green-soft);
    border: 0;
    border-radius: 999px;
    color: var(--green-deep);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.6rem;
    height: 2.4rem;
    justify-content: center;
    line-height: 1;
    width: 2.4rem;
}

.energyfamily-image-modal__close:hover,
.energyfamily-image-modal__close:focus-visible {
    background: var(--sun);
    outline: none;
}

.energyfamily-image-modal__panel img {
    display: block;
    max-height: calc(92vh - 4.5rem);
    object-fit: contain;
    width: 100%;
}

.supply-area-directory,
.supply-area-faq,
.supply-area-cta {
    display: grid;
    gap: clamp(1rem, 2.6vw, 1.6rem);
}

.supply-area-notice {
    border: 1px solid rgba(244, 160, 0, 0.34);
    border-radius: 1.2rem;
    background: rgba(255, 249, 232, 0.94);
    color: var(--text-strong);
    box-shadow: 0 14px 34px rgba(63, 95, 16, 0.08);
    padding: 1rem 1.15rem;
}

.supply-area-filter {
    display: grid;
    gap: 0.75rem;
    border: 1px solid var(--card-border);
    border-radius: 1.4rem;
    background: var(--surface);
    box-shadow: 0 18px 45px rgba(63, 95, 16, 0.1);
    padding: clamp(1rem, 2vw, 1.35rem);
}

.supply-area-filter label {
    color: var(--green-deep);
    font-weight: var(--font-weight-semibold);
}

.supply-area-filter__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
}

.supply-area-filter__input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.96);
    padding: 0.9rem 1.15rem;
}

.supply-area-filter__input:focus-visible,
.supply-area-municipality summary:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

.supply-area-results {
    color: var(--muted-readable);
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

.supply-area-municipality-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.supply-area-municipality {
    overflow: hidden;
    border: 1px solid var(--card-border);
    border-radius: 1.35rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(224, 237, 198, 0.55));
    box-shadow: 0 18px 45px rgba(63, 95, 16, 0.1);
}

.supply-area-municipality summary {
    cursor: pointer;
    list-style-position: outside;
    padding: 1rem 1.1rem;
}

.supply-area-municipality summary::marker {
    color: var(--green-deep);
}

.supply-area-municipality h3 {
    display: inline;
    color: var(--green-deep);
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-semibold);
    margin: 0;
}

.supply-area-municipality__postal-codes {
    display: block;
    color: var(--muted-readable);
    font-weight: var(--font-weight-semibold);
    margin-top: 0.4rem;
}

.supply-area-localities {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0 1.1rem 1.1rem 2rem;
}

.supply-area-localities li::marker {
    color: var(--green);
}

.supply-area-faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.supply-area-faq .section-heading {
    grid-column: 1 / -1;
}

.supply-area-faq h3 {
    color: var(--green-deep);
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.65rem;
}

.supply-area-cta .hero-actions {
    justify-content: center;
}

@media (max-width: 1100px) {
    .supply-area-municipality-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .supply-area-filter__row,
    .supply-area-municipality-grid,
    .supply-area-faq {
        grid-template-columns: 1fr;
    }

    .supply-area-filter__row .btn {
        width: 100%;
    }
}
