/* ============================================
   Energiegemeinschaft Stadlgasse – Styles
   Inspired by netzburgenland.at design language
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
    --primary: #E8651A;
    --primary-dark: #C7520F;
    --primary-light: #F4943E;
    --secondary: #1A1F36;
    --secondary-light: #2D3352;
    --text: #1A1F36;
    --text-light: #5A6178;
    --text-muted: #8B90A0;
    --bg: #FFFFFF;
    --bg-light: #F7F8FA;
    --bg-dark: #0F1225;
    --bg-accent: #FFF8F3;
    --border: #E4E6ED;
    --border-light: #F0F1F5;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.03);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.08), 0 8px 16px rgba(0,0,0,0.04);
    --shadow-xl: 0 25px 50px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1280px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

strong {
    font-weight: 600;
    color: var(--text);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 101, 26, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

.header.scrolled .logo-text,
.header.scrolled .nav-desktop a {
    color: var(--text);
}

.header.scrolled .logo-icon {
    background: var(--primary);
    color: var(--white);
}

.header.scrolled .nav-desktop a:hover,
.header.scrolled .nav-desktop a.active {
    color: var(--primary);
}

.header.scrolled .nav-toggle span {
    background: var(--text);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    z-index: 1001;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    font-size: 1.25rem;
    transition: all var(--transition);
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: -0.01em;
    transition: color var(--transition);
}

.logo-text strong {
    font-weight: 700;
    color: inherit;
}

.nav-desktop {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-desktop a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
    position: relative;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
    border-radius: 1px;
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
    width: 100%;
}

.nav-desktop a:hover {
    color: var(--white);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 18, 37, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.nav-mobile.open {
    opacity: 1;
    pointer-events: all;
}

.nav-mobile a {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
}

.nav-mobile a:hover {
    color: var(--primary);
}

@media (max-width: 900px) {
    .nav-desktop { display: none; }
    .nav-toggle { display: flex; }
    .nav-mobile { display: flex; }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 2rem 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, #0F1225 0%, #1A1F36 40%, #2D3352 70%, #1A1F36 100%);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(232, 101, 26, 0.12) 0%, transparent 70%);
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(244, 148, 62, 0.06) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(232, 101, 26, 0.12);
    border: 1px solid rgba(232, 101, 26, 0.25);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    max-width: 700px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.65);
    max-width: 580px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    max-width: var(--max-width);
    margin: 60px auto 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.1);
}

@media (max-width: 600px) {
    .hero { padding: 100px 1.5rem 40px; }
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
        padding: 1.5rem 2rem;
    }
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        text-align: center;
    }
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-dark);
}

.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark strong {
    color: var(--white);
}

.section-dark p,
.section-dark li {
    color: rgba(255,255,255,0.65);
}

.section-accent {
    background: var(--bg-accent);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(232, 101, 26, 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-dark .section-label {
    background: rgba(232, 101, 26, 0.15);
}

.section-header h2 {
    margin-bottom: 0;
}

/* --- Grid Layouts --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

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

@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
    .grid-3 { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (min-width: 601px) and (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* --- Content Block --- */
.content-block {
    padding: 2.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.content-block h3 {
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
}

.content-block p:last-child {
    margin-bottom: 0;
}

/* --- Steps --- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    transition: all var(--transition);
}

.step:hover {
    border-color: rgba(232, 101, 26, 0.2);
    background: rgba(232, 101, 26, 0.04);
    transform: translateY(-4px);
}

.step-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1.25rem;
}

.step h3 {
    margin-bottom: 1rem;
}

.step p {
    margin-bottom: 0;
}

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

/* --- Cards --- */
.card {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1;
}

.card h3 {
    margin-bottom: 0.75rem;
}

.card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* --- Tarife --- */
.tarif-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.tarif-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.tarif-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tarif-highlight {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
    transform: scale(1.03);
}

.tarif-highlight:hover {
    transform: scale(1.03) translateY(-4px);
}

.tarif-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.35rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tarif-header {
    margin-bottom: 1.5rem;
}

.tarif-header h3 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.tarif-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.tarif-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-top: auto;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.tarif-amount {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.03em;
}

.tarif-unit {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.tarif-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tarif-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.tarif-features li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: rgba(232, 101, 26, 0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
}

.tarif-note {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tarif-grid.tarif-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin: 0 auto;
}

.membership-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    margin-top: 2.5rem;
    border: 1px solid var(--border);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.membership-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.membership-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.membership-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 900px) {
    .tarif-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .tarif-grid.tarif-grid-2 { max-width: 420px; }
    .membership-info { flex-direction: column; text-align: center; }
}

/* --- Member Cards --- */
.member-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.member-avatar span {
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}

.member-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.15rem;
}

.member-role {
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem !important;
}

.member-desc {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

/* --- Statuten --- */
.statuten-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.statut-nav {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.25rem;
    border-right: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}

.statut-tab {
    background: none;
    border: none;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    color: rgba(255,255,255,0.5);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.statut-tab:hover {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.8);
}

.statut-tab.active {
    background: rgba(232, 101, 26, 0.12);
    color: var(--primary-light);
    font-weight: 600;
}

.statut-content {
    padding: 2.5rem;
}

.statut-panel {
    display: none;
}

.statut-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.statut-panel h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.statut-panel h4 {
    color: var(--primary-light);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.statut-panel ol,
.statut-panel ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.statut-panel li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.statut-panel strong {
    color: var(--white);
}

@media (max-width: 768px) {
    .statuten-container {
        grid-template-columns: 1fr;
    }
    .statut-nav {
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        padding: 1rem;
        gap: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    .statut-tab {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    .statut-content {
        padding: 1.5rem;
    }
}

/* --- CTA / Mitgliedschaft --- */
.cta-box {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.cta-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.cta-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.cta-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cta-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
}

.cta-step p {
    margin-bottom: 0;
    padding-top: 0.4rem;
}

.contact-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border);
}

.contact-card h4 {
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
}

.contact-card p {
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .cta-box {
        grid-template-columns: 1fr;
    }
}

/* --- Footer --- */
.footer {
    background: var(--bg-dark);
    padding: 5rem 0 0;
    color: rgba(255,255,255,0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.25rem;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    color: rgba(255,255,255,0.45);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-links a {
    color: rgba(255,255,255,0.45);
    font-size: 0.9rem;
    transition: color var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }
    .section-header {
        margin-bottom: 2.5rem;
    }
    .container {
        padding: 0 1.25rem;
    }
    .content-block {
        padding: 1.5rem;
    }
}

/* --- Scroll Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tariff Breakdown / Cost Comparison */
.tarif-breakdown {
    margin-top: 2.5rem;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.tarif-breakdown h3 {
    font-size: 1.2rem;
    margin: 0 0 0.75rem 0;
    color: var(--text);
}

.tarif-breakdown-intro {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.tarif-compare-table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.tarif-compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}

.tarif-compare-header {
    background: #f5f5f5;
}

.tarif-compare-header .tarif-compare-value {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #888;
}

.tarif-compare-header .tarif-compare-leeg {
    color: var(--primary);
}

.tarif-compare-label,
.tarif-compare-value {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #555;
    border-bottom: 1px solid #eee;
}

.tarif-compare-label {
    font-weight: 600;
    color: var(--text);
}

.tarif-compare-leeg {
    background: rgba(232,101,26,0.06);
}

.tarif-compare-total {
    background: #fafafa;
}

.tarif-compare-total .tarif-compare-label,
.tarif-compare-total .tarif-compare-value {
    font-weight: 800;
    font-size: 1rem;
    border-bottom: none;
    padding: 1rem;
}

.tarif-compare-total .tarif-compare-leeg {
    color: var(--primary);
    background: rgba(232,101,26,0.1);
}

.tarif-badge {
    display: inline-block;
    background: rgba(22,163,74,0.12);
    color: #16a34a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.35rem;
    vertical-align: middle;
}

.tarif-breakdown-result {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(22,163,74,0.08);
    border: 1px solid rgba(22,163,74,0.2);
    color: #15803d;
    font-size: 0.95rem;
    text-align: center;
}

.tarif-breakdown-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .tarif-compare-row {
        grid-template-columns: 1fr;
    }
    .tarif-compare-header {
        display: none;
    }
    .tarif-compare-label {
        background: #f8f8f8;
        font-size: 0.8rem;
        padding-bottom: 0.25rem;
    }
    .tarif-compare-value {
        padding-top: 0.25rem;
    }
    .tarif-compare-value:last-child {
        padding-bottom: 1rem;
    }
    .tarif-compare-value::before {
        font-size: 0.7rem;
        color: #999;
        display: block;
    }
    .tarif-compare-row:not(.tarif-compare-header) .tarif-compare-value:nth-child(2)::before {
        content: "Normaler Netzbezug:";
    }
    .tarif-compare-row:not(.tarif-compare-header) .tarif-compare-value:nth-child(3)::before {
        content: "In der LEEG:";
    }
}
