/* =====================================================
   Energiesparen Blog — theme.css
   ===================================================== */

/* --- CSS-Variablen --- */
:root {
    --esb-bg:         #f5f2ec;
    --esb-surface:    #ffffff;
    --esb-green:      #1a3d2b;
    --esb-green-mid:  #2d6a4f;
    --esb-green-light:#52b788;
    --esb-amber:      #e07a20;
    --esb-amber-light:#f4a942;
    --esb-text:       #1c1c1c;
    --esb-muted:      #6b7280;
    --esb-border:     #d4cfc5;
    --esb-tag-bg:     #e8f5ee;
    --esb-danger:     #dc2626;

    --esb-font:       'Plus Jakarta Sans', system-ui, sans-serif;
    --esb-mono:       'DM Mono', 'Courier New', monospace;

    --esb-radius:     10px;
    --esb-shadow-sm:  0 1px 4px rgba(0,0,0,.06);
    --esb-shadow-md:  0 4px 16px rgba(0,0,0,.1);
    --esb-shadow-lg:  0 8px 32px rgba(0,0,0,.14);

    --esb-container:  1100px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--esb-font);
    background: var(--esb-bg);
    color: var(--esb-text);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--esb-green-mid); text-decoration: none; }
a:hover { color: var(--esb-green); }
a:focus-visible { outline: 2px solid var(--esb-amber); outline-offset: 3px; border-radius: 3px; }

img, video { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.4em; }

/* =====================================================
   SITE HEADER
   ===================================================== */
.site-header {
    background: var(--esb-green);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 16px rgba(0,0,0,.3);
}

.header-inner {
    max-width: var(--esb-container);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

.site-logo {
    font-family: var(--esb-font);
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: .5rem;
    letter-spacing: -.02em;
    text-decoration: none;
    white-space: nowrap;
}

.site-logo__icon {
    background: var(--esb-amber);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}

.site-logo--footer { font-size: 1.05rem; margin-bottom: .75rem; }

/* ===== NAV ===== */
.site-nav { display: flex; align-items: center; }

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    height: 64px;
}

/* Top-Level Items */
.site-nav__list > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.site-nav__list > li > a {
    color: rgba(255,255,255,.8);
    font-size: .78rem;
    font-weight: 600;
    padding: 0 .8rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: color .15s, background .15s;
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    text-decoration: none;
}

/* Pfeil für Items mit Untermenü */
.site-nav__list > li.menu-item-has-children > a::after {
    content: '▾';
    font-size: .7rem;
    margin-left: .35rem;
    opacity: .7;
    transition: transform .2s;
}

.site-nav__list > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.site-nav__list > li > a:hover,
.site-nav__list > li.current-menu-item > a,
.site-nav__list > li.current-menu-ancestor > a,
.site-nav__list > li.current-cat > a {
    color: #fff;
    background: rgba(255,255,255,.12);
}

/* ===== DROPDOWN ===== */
.site-nav__list > li > ul.sub-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 64px;
    left: 0;
    min-width: 210px;
    background: #0f2d1e;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    list-style: none;
    padding: .4rem 0;
    margin: 0;
    z-index: 9999;
    border-top: 2px solid var(--esb-amber);
    transition: opacity .18s, visibility .18s;
}

.site-nav__list li:hover > ul.sub-menu,
.site-nav__list li:focus-within > ul.sub-menu,
.site-nav__list li.dropdown-open > ul.sub-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.sub-menu li { position: relative; list-style: none; }

.sub-menu a {
    display: block;
    color: rgba(255,255,255,.75);
    font-size: .82rem;
    font-weight: 500;
    padding: .55rem 1.1rem;
    white-space: nowrap;
    transition: background .15s, color .15s;
    text-decoration: none;
}

.sub-menu a:hover,
.sub-menu li.current-menu-item > a {
    background: rgba(255,255,255,.1);
    color: var(--esb-amber-light);
}

/* Pfeil für Sub-Sub-Items */
.sub-menu li.menu-item-has-children > a::after {
    content: '›';
    float: right;
    opacity: .6;
    font-size: 1rem;
    line-height: 1;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   TICKER
   ===================================================== */
.ticker-bar {
    background: var(--esb-amber);
    padding: .55rem 1.5rem;
}
.ticker-inner {
    max-width: var(--esb-container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}
.ticker-label {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--esb-green);
    background: rgba(0,0,0,.1);
    padding: .2rem .6rem;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ticker-items {
    display: flex;
    gap: 2rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--esb-green);
    white-space: nowrap;
    overflow: hidden;
}

/* =====================================================
   HERO
   ===================================================== */
.site-hero {
    background: var(--esb-green);
    padding: 3rem 1.5rem 0;
    overflow: hidden;
    position: relative;
}
.site-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 56px;
    background: var(--esb-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-inner {
    max-width: var(--esb-container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: end;
    padding-bottom: 56px;
}
.hero-label {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.1);
    color: var(--esb-amber-light);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .3rem .75rem;
    border-radius: 20px;
    border: 1px solid rgba(244,169,66,.35);
    margin-bottom: 1rem;
    text-decoration: none;
    transition: background .15s;
}
.hero-label:hover { background: rgba(255,255,255,.18); color: var(--esb-amber-light); }

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    letter-spacing: -.03em;
    margin: 0 0 1rem;
}
.hero-title a { color: #fff; text-decoration: none; }
.hero-title a:hover { color: rgba(255,255,255,.85); }

.hero-excerpt {
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 520px;
}
.hero-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .82rem;
    color: rgba(255,255,255,.5);
    flex-wrap: wrap;
}
.hero-meta__cat { color: var(--esb-amber-light); font-weight: 600; }
.hero-image {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    height: 260px;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image__placeholder {
    height: 100%;
    background: linear-gradient(135deg, #2d6a4f, #1a4a33);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

/* =====================================================
   MAIN LAYOUT
   ===================================================== */
.main-wrap {
    max-width: var(--esb-container);
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}
.main-wrap--page,
.main-wrap--narrow { grid-template-columns: 1fr; max-width: 780px; }

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.section-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--esb-green);
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
}
.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--esb-amber);
    border-radius: 2px;
    flex-shrink: 0;
}
.see-all {
    font-size: .8rem;
    color: var(--esb-green-mid);
    font-weight: 600;
    letter-spacing: .04em;
}

/* =====================================================
   CARD GRID
   ===================================================== */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}
.card {
    background: var(--esb-surface);
    border-radius: var(--esb-radius);
    overflow: hidden;
    border: 1px solid var(--esb-border);
    transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--esb-shadow-md); }
.card-link { display: block; }
.card-thumb {
    height: 150px;
    overflow: hidden;
    background: var(--esb-green);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-thumb img { transform: scale(1.03); }
.card-thumb__placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #2d6a4f, #1a3d2b);
}
.card-body { padding: 1rem; }
.card-tag {
    display: inline-block;
    background: var(--esb-tag-bg);
    color: var(--esb-green-mid);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .2rem .55rem;
    border-radius: 4px;
    margin-bottom: .5rem;
    text-decoration: none;
    transition: background .15s;
}
.card-tag:hover { background: #d1ede0; color: var(--esb-green); }
.card-title {
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.01em;
    margin: 0 0 .4rem;
}
.card-title a { color: var(--esb-text); text-decoration: none; }
.card-title a:hover { color: var(--esb-green-mid); }
.card-meta { font-size: .75rem; color: var(--esb-muted); display: flex; gap: .5rem; }

/* =====================================================
   ARTICLE LIST (compact rows)
   ===================================================== */
.article-list { display: flex; flex-direction: column; }
.article-row {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--esb-border);
    text-decoration: none;
    color: inherit;
    align-items: center;
}
.article-row:last-child { border-bottom: none; }
.article-row:hover .article-row-title { color: var(--esb-green-mid); }

.art-thumb {
    width: 84px;
    height: 62px;
    border-radius: 7px;
    overflow: hidden;
    background: var(--esb-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.art-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-row-title { font-weight: 700; font-size: .95rem; line-height: 1.35; margin-bottom: .25rem; transition: color .15s; }
.article-row-meta { font-size: .75rem; color: var(--esb-muted); }

/* =====================================================
   ARCHIV-HEADER / BREADCRUMB
   ===================================================== */
.archive-header { margin-bottom: 1.5rem; }
.archive-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; color: var(--esb-green); margin: .5rem 0; }
.archive-desc { color: var(--esb-muted); font-size: .95rem; }

.breadcrumb { margin-bottom: .75rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; gap: .4rem; flex-wrap: wrap; font-size: .78rem; color: var(--esb-muted); }
.breadcrumb li + li::before { content: '›'; margin-right: .4rem; }
.breadcrumb a { color: var(--esb-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--esb-green-mid); }
.breadcrumb-current { color: var(--esb-text); }

/* =====================================================
   SINGLE ARTICLE
   ===================================================== */
.article-header { margin-bottom: 1.5rem; }
.article-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.03em;
    color: var(--esb-green);
    margin: .5rem 0 .75rem;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .82rem;
    color: var(--esb-muted);
    flex-wrap: wrap;
}
.article-meta a { color: var(--esb-green-mid); }

.article-thumbnail {
    border-radius: var(--esb-radius);
    overflow: hidden;
    margin-bottom: 2rem;
}
.article-thumbnail img { width: 100%; max-height: 480px; object-fit: cover; }
.article-thumbnail__caption { font-size: .8rem; color: var(--esb-muted); padding: .4rem .5rem; }

/* Fließtext-Styles */
.article-content { font-size: 1rem; line-height: 1.75; }
.article-content h2 { font-size: 1.5rem; font-weight: 800; color: var(--esb-green); margin: 2rem 0 .75rem; letter-spacing: -.02em; }
.article-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--esb-green); margin: 1.5rem 0 .5rem; }
.article-content h4 { font-size: 1.05rem; font-weight: 700; margin: 1.25rem 0 .4rem; }
.article-content p  { margin: 0 0 1.25rem; }
.article-content ul,
.article-content ol { margin: 0 0 1.25rem; }
.article-content li { margin-bottom: .35rem; }
.article-content blockquote {
    border-left: 4px solid var(--esb-amber);
    margin: 1.5rem 0;
    padding: .75rem 1.25rem;
    background: var(--esb-tag-bg);
    border-radius: 0 var(--esb-radius) var(--esb-radius) 0;
    font-style: italic;
}
.article-content strong { font-weight: 700; }
.article-content a { color: var(--esb-green-mid); text-decoration: underline; text-underline-offset: 3px; }
.article-content code {
    font-family: var(--esb-mono);
    font-size: .875em;
    background: #e8f5ee;
    padding: .1em .35em;
    border-radius: 4px;
    color: var(--esb-green);
}
.article-content pre { background: var(--esb-green); color: #d4f1e0; padding: 1.25rem; border-radius: var(--esb-radius); overflow-x: auto; }
.article-content img { border-radius: var(--esb-radius); margin: 1rem 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .9rem; }
.article-content th { background: var(--esb-green); color: #fff; padding: .6rem .8rem; text-align: left; font-weight: 600; }
.article-content td { padding: .55rem .8rem; border-bottom: 1px solid var(--esb-border); }
.article-content tr:hover td { background: var(--esb-tag-bg); }

/* Tags */
.article-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin: 2rem 0 1.5rem; }
.article-tag {
    color: var(--esb-green-mid);
    background: var(--esb-tag-bg);
    font-size: .78rem;
    font-weight: 600;
    padding: .25rem .65rem;
    border-radius: 20px;
    text-decoration: none;
    transition: background .15s;
}
.article-tag:hover { background: #d1ede0; }

/* Article Nav */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2.5rem 0;
    padding-top: 1.5rem;
    border-top: 2px solid var(--esb-border);
}
.article-nav__label { font-size: .75rem; color: var(--esb-muted); display: block; margin-bottom: .25rem; }
.article-nav__title { font-weight: 700; font-size: .9rem; color: var(--esb-text); text-decoration: none; }
.article-nav__title:hover { color: var(--esb-green-mid); }
.article-nav__next { text-align: right; }

/* =====================================================
   CALC TEASER
   ===================================================== */
.calc-teaser {
    background: linear-gradient(135deg, #1a3d2b, #0d2319);
    border-radius: var(--esb-radius);
    padding: 1.75rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid rgba(82,183,136,.2);
}
.calc-icon { font-size: 2.5rem; flex-shrink: 0; }
.calc-text h3 { color: #fff; font-size: 1.15rem; font-weight: 800; margin: 0 0 .3rem; }
.calc-text p  { color: rgba(255,255,255,.65); font-size: .875rem; margin: 0 0 .75rem; }
.calc-btn {
    display: inline-block;
    background: var(--esb-amber);
    color: var(--esb-green);
    padding: .5rem 1.25rem;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .02em;
    transition: background .15s;
}
.calc-btn:hover { background: var(--esb-amber-light); color: var(--esb-green); }

/* =====================================================
   SIDEBAR
   ===================================================== */
.site-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 80px;
}

.widget {
    background: var(--esb-surface);
    border-radius: var(--esb-radius);
    padding: 1.25rem;
    border: 1px solid var(--esb-border);
}

.widget-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--esb-green);
    margin: 0 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--esb-amber);
    display: inline-block;
    letter-spacing: -.01em;
}

/* Preise */
.widget-preise { background: linear-gradient(135deg, var(--esb-green), #2d6a4f); border: none; }
.widget-preise .widget-title { color: var(--esb-amber-light); border-color: var(--esb-amber-light); }

.preise-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .45rem 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: .875rem;
}
.preise-row:last-of-type { border: none; }
.preise-row span { color: rgba(255,255,255,.7); }
.preise-row strong { font-family: var(--esb-mono); font-weight: 400; color: var(--esb-amber-light); }
.preise-cta {
    display: block;
    margin-top: .75rem;
    text-align: center;
    background: var(--esb-amber);
    color: var(--esb-green);
    padding: .55rem;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .02em;
    transition: background .15s;
}
.preise-cta:hover { background: var(--esb-amber-light); color: var(--esb-green); }

/* Kategorien */
.cat-list { display: flex; flex-direction: column; gap: .2rem; }
.cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .45rem .6rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: .875rem;
    color: var(--esb-text);
    transition: background .15s;
}
.cat-item:hover { background: var(--esb-tag-bg); color: var(--esb-green-mid); }
.cat-item-left { display: flex; align-items: center; gap: .5rem; }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cat-count { font-family: var(--esb-mono); font-size: .72rem; color: var(--esb-muted); background: var(--esb-bg); padding: .1rem .4rem; border-radius: 10px; }

/* Newsletter */
.widget-newsletter p { font-size: .85rem; color: var(--esb-muted); margin: 0 0 .75rem; line-height: 1.5; }
.nl-form { display: flex; flex-direction: column; gap: .5rem; }
.nl-input {
    width: 100%;
    padding: .55rem .75rem;
    border: 1.5px solid var(--esb-border);
    border-radius: 6px;
    font-size: .85rem;
    font-family: var(--esb-font);
    background: var(--esb-bg);
    color: var(--esb-text);
    outline: none;
    transition: border-color .15s;
}
.nl-input:focus { border-color: var(--esb-green-light); }
.nl-btn {
    padding: .6rem;
    background: var(--esb-green);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 700;
    font-family: var(--esb-font);
    cursor: pointer;
    letter-spacing: .04em;
    transition: background .15s;
}
.nl-btn:hover { background: var(--esb-green-mid); }

/* =====================================================
   TOOLS (Rechner-Shortcodes)
   ===================================================== */
.esb-tool {
    background: var(--esb-surface);
    border: 1px solid var(--esb-border);
    border-radius: var(--esb-radius);
    margin: 2rem 0;
    overflow: hidden;
}
.esb-tool__header {
    background: var(--esb-green);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.esb-tool__icon { font-size: 2rem; flex-shrink: 0; }
.esb-tool__title { font-size: 1.15rem; font-weight: 800; color: #fff; margin: 0 0 .2rem; }
.esb-tool__desc { font-size: .85rem; color: rgba(255,255,255,.7); margin: 0; }
.esb-tool__body { padding: 1.5rem; }
.esb-tool__intro { font-size: .9rem; color: var(--esb-muted); margin-bottom: 1rem; }
.esb-tool__footnote { font-size: .75rem; color: var(--esb-muted); margin-top: 1rem; }

.esb-tool__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.esb-tool__field { display: flex; flex-direction: column; gap: .35rem; }
.esb-tool__field label { font-size: .82rem; font-weight: 600; color: var(--esb-text); }
.esb-tool__field input,
.esb-tool__field select {
    padding: .55rem .75rem;
    border: 1.5px solid var(--esb-border);
    border-radius: 6px;
    font-size: .9rem;
    font-family: var(--esb-font);
    background: var(--esb-bg);
    color: var(--esb-text);
    outline: none;
    transition: border-color .15s;
}
.esb-tool__field input:focus,
.esb-tool__field select:focus { border-color: var(--esb-green-light); }
.esb-tool__hint { font-size: .72rem; color: var(--esb-muted); }

/* Ergebnis-Karten */
.esb-tool__results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}
.esb-result-card {
    background: var(--esb-bg);
    border-radius: 8px;
    padding: .875rem;
    text-align: center;
    border: 1px solid var(--esb-border);
}
.esb-result-card--primary { background: var(--esb-green); border-color: var(--esb-green); }
.esb-result-card--primary .esb-result-label { color: rgba(255,255,255,.7); }
.esb-result-card--primary .esb-result-value { color: #fff; }
.esb-result-label { display: block; font-size: .72rem; color: var(--esb-muted); margin-bottom: .3rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.esb-result-value { display: block; font-family: var(--esb-mono); font-size: 1.25rem; font-weight: 400; color: var(--esb-green); }

/* Balken */
.esb-tool__bar-wrap { margin-top: .5rem; }
.esb-tool__bar-label { font-size: .75rem; color: var(--esb-muted); margin-bottom: .4rem; }
.esb-tool__bar-track {
    height: 10px;
    background: var(--esb-bg);
    border-radius: 10px;
    border: 1px solid var(--esb-border);
    position: relative;
    overflow: visible;
}
.esb-tool__bar-fill {
    height: 100%;
    border-radius: 10px;
    background: var(--esb-green-light);
    transition: width .4s, background .3s;
    min-width: 4px;
}
.esb-tool__bar-avg {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 2px;
    height: 18px;
    background: var(--esb-amber);
    border-radius: 2px;
}

/* CO2 Maßnahmen */
.esb-co2-list { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.esb-co2-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .75rem;
    border-radius: 7px;
    cursor: pointer;
    font-size: .875rem;
    border: 1px solid var(--esb-border);
    background: var(--esb-bg);
    transition: background .15s;
}
.esb-co2-row:hover { background: var(--esb-tag-bg); }
.esb-co2-row input { accent-color: var(--esb-green-mid); width: 16px; height: 16px; flex-shrink: 0; }
.esb-co2-row span:nth-child(2) { flex: 1; }
.esb-co2-kg { font-family: var(--esb-mono); font-size: .75rem; color: var(--esb-muted); }

/* =====================================================
   FAQ SHORTCODE
   ===================================================== */
.esb-faq { border: 1px solid var(--esb-border); border-radius: var(--esb-radius); overflow: hidden; margin: 2rem 0; }
.esb-faq__item { border-bottom: 1px solid var(--esb-border); }
.esb-faq__item:last-child { border-bottom: none; }
.esb-faq__question {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem 1.25rem;
    text-align: left;
    font-family: var(--esb-font);
    font-size: .95rem;
    font-weight: 700;
    color: var(--esb-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background .15s;
}
.esb-faq__question:hover { background: var(--esb-tag-bg); color: var(--esb-green); }
.esb-faq__arrow { font-size: 1.2rem; color: var(--esb-amber); transition: transform .25s; flex-shrink: 0; }
.esb-faq__answer { padding: 0 1.25rem 1rem; font-size: .9rem; line-height: 1.7; color: var(--esb-text); }

/* =====================================================
   ENERGIETIPP & SPARBOX
   ===================================================== */
.esb-tipp { border-radius: var(--esb-radius); margin: 1.5rem 0; overflow: hidden; }
.esb-tipp__header { padding: .6rem 1rem; font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.esb-tipp__body { padding: .75rem 1rem; font-size: .9rem; line-height: 1.65; }
.esb-tipp--tipp { background: #e8f5ee; border: 1px solid #b8dfca; }
.esb-tipp--tipp .esb-tipp__header { background: var(--esb-green); color: #fff; }
.esb-tipp--info { background: #e8f0ff; border: 1px solid #b8caed; }
.esb-tipp--info .esb-tipp__header { background: #1d4fa8; color: #fff; }
.esb-tipp--warnung { background: #fff8e1; border: 1px solid #fdd85d; }
.esb-tipp--warnung .esb-tipp__header { background: #b86a00; color: #fff; }

.esb-sparbox {
    background: linear-gradient(135deg, var(--esb-green), #2d6a4f);
    border-radius: var(--esb-radius);
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
    color: #fff;
}
.esb-sparbox__wert { font-family: var(--esb-mono); font-size: 2.5rem; font-weight: 700; color: var(--esb-amber-light); line-height: 1; }
.esb-sparbox__einheit { font-size: .8rem; color: rgba(255,255,255,.6); margin: .25rem 0 .5rem; letter-spacing: .06em; text-transform: uppercase; }
.esb-sparbox__titel { font-size: 1rem; font-weight: 700; }
.esb-sparbox__text { font-size: .85rem; color: rgba(255,255,255,.7); margin-top: .5rem; }

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination { margin: 2rem 0; display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 .6rem;
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--esb-text);
    background: var(--esb-surface);
    border: 1px solid var(--esb-border);
    text-decoration: none;
    transition: all .15s;
}
.pagination .page-numbers:hover { background: var(--esb-tag-bg); color: var(--esb-green); border-color: var(--esb-green-light); }
.pagination .page-numbers.current { background: var(--esb-green); color: #fff; border-color: var(--esb-green); }
.pagination .page-numbers.dots { background: none; border: none; }

/* =====================================================
   404 / ERROR
   ===================================================== */
.error-404 { text-align: center; padding: 4rem 1rem; }
.error-404__icon { font-size: 4rem; margin-bottom: 1rem; }
.error-404__title { font-size: 2rem; font-weight: 800; color: var(--esb-green); margin-bottom: .75rem; }
.error-404__desc { color: var(--esb-muted); max-width: 460px; margin: 0 auto 2rem; }
.error-404__cats { margin-top: 2.5rem; }
.error-404__cats h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 1rem; color: var(--esb-green); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--esb-green);
    color: rgba(255,255,255,.7);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 2rem;
}
.footer-inner { max-width: var(--esb-container); margin: 0 auto; }
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p { font-size: .82rem; line-height: 1.65; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .75rem; }
.footer-col a { display: block; color: rgba(255,255,255,.6); font-size: .82rem; padding: .2rem 0; transition: color .15s; text-decoration: none; }
.footer-col a:hover { color: var(--esb-amber-light); }
.footer-nav { display: flex; flex-direction: column; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: rgba(255,255,255,.4); flex-wrap: wrap; gap: .75rem; }
.footer-network { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-network a { color: rgba(255,255,255,.45); text-decoration: none; font-size: .75rem; transition: color .15s; }
.footer-network a:hover { color: var(--esb-amber-light); }

/* =====================================================
   SEARCH FORM
   ===================================================== */
.search-form { display: flex; gap: .5rem; }
.search-field {
    flex: 1;
    padding: .55rem .75rem;
    border: 1.5px solid var(--esb-border);
    border-radius: 6px;
    font-size: .9rem;
    font-family: var(--esb-font);
    background: var(--esb-bg);
    color: var(--esb-text);
    outline: none;
}
.search-field:focus { border-color: var(--esb-green-light); }
.search-submit {
    padding: .55rem 1rem;
    background: var(--esb-green);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--esb-font);
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.search-submit:hover { background: var(--esb-green-mid); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .site-nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 0; right: 0;
        background: #0f2d1e;
        padding: .5rem 0;
        z-index: 299;
        box-shadow: 0 8px 24px rgba(0,0,0,.4);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }
    .site-nav.is-open { display: block; }
    .site-nav__list { flex-direction: column; gap: 0; height: auto; }
    .site-nav__list > li { height: auto; flex-direction: column; align-items: stretch; border-bottom: 1px solid rgba(255,255,255,.07); }
    .site-nav__list > li > a { height: auto; padding: .8rem 1.25rem; font-size: .88rem; justify-content: space-between; }
    /* Mobile Dropdown */
    .site-nav__list > li > ul.sub-menu { display: none; position: static; box-shadow: none; border-radius: 0; border-top: none; border-left: 3px solid var(--esb-amber); background: rgba(0,0,0,.2); padding: .25rem 0; margin-left: 1.25rem; visibility: visible; opacity: 1; pointer-events: auto; transition: none; }
    .site-nav__list > li.dropdown-open > ul.sub-menu { display: block; }
    .sub-menu a { padding: .6rem 1rem; font-size: .84rem; }

    .hero-inner { grid-template-columns: 1fr; padding-bottom: 40px; }
    .hero-image { display: none; }
    .hero-title { font-size: 1.85rem; }

    .main-wrap { grid-template-columns: 1fr; gap: 2rem; }
    .site-sidebar { position: static; }

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

    .esb-tool__results { grid-template-columns: 1fr 1fr; }
    .esb-tool__results .esb-result-card:last-child { grid-column: 1/-1; }

    .calc-teaser { flex-direction: column; gap: 1rem; }

    .article-title { font-size: 1.65rem; }
    .article-nav { grid-template-columns: 1fr; }

    .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .ticker-items { gap: 1.25rem; font-size: .78rem; }
}

@media (max-width: 480px) {
    .card-grid { grid-template-columns: 1fr; }
    .esb-tool__grid { grid-template-columns: 1fr; }
    .esb-tool__results { grid-template-columns: 1fr; }
}

/* =====================================================
   COMMENTS
   ===================================================== */
.article-comments { margin-top: 2.5rem; padding-top: 2rem; border-top: 2px solid var(--esb-border); }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--esb-surface); border-radius: var(--esb-radius); padding: 1rem; margin-bottom: 1rem; border: 1px solid var(--esb-border); }
.comment-meta { font-size: .8rem; color: var(--esb-muted); margin-bottom: .5rem; }
.comment-author { font-weight: 700; }

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: .75rem 1.25rem;
    background: var(--esb-green);
    color: #fff;
    font-weight: 700;
    z-index: 9999;
    outline: none;
}

/* =====================================================
   PRINT
   ===================================================== */
@media print {
    .site-header, .ticker-bar, .site-sidebar, .site-footer, .article-nav, .calc-teaser { display: none; }
    .main-wrap { grid-template-columns: 1fr; }
    .article-content a::after { content: ' (' attr(href) ')'; font-size: .8em; color: var(--esb-muted); }
}
