/*
 Theme Name: Envo Magazine Boxed
 Theme URI: https://envothemes.com/free-envo-magazine-boxed/
 Description: Responsive child theme – Stromportal design.
 Author: EnvoThemes
 Author URI: https://envothemes.com/
 Template: envo-magazine
 Version: 1.1.2
 License: GNU General Public License v3
 License URI: http://www.gnu.org/licenses/gpl.html
 Text Domain: envo-magazine-boxed
*/

/* Basisdesign, Theme, Navigation und Stromportal */
:root {
    --sw-green: #086044;
    --sw-dark: #103e32;
    --sw-gold: #ffc83d;
    --sw-ink: #20332e;
    --sw-muted: #52645e;
    --sw-line: #dce7e1;
    --sw-bg: #f3f7f5;
    --sw-font: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}

body#blog {
    background: var(--sw-bg);
    color: var(--sw-ink);
    font-family: var(--sw-font);
    font-size: 16px;
    line-height: 1.7;
}

.envo-magazine-boxed {
    max-width: 1240px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid var(--sw-line);
    border-radius: 16px;
    box-shadow: 0 8px 35px rgba(16,62,50,.07);
    position: relative;
}

.envo-magazine-boxed .container {
    max-width: 100%;
}

.envo-magazine-boxed h1,.envo-magazine-boxed h2,.envo-magazine-boxed h3,.envo-magazine-boxed h4 {
    font-family: var(--sw-font);
    color: var(--sw-dark);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.envo-magazine-boxed a {
    color: var(--sw-green);
}

.envo-magazine-boxed a:hover {
    color: var(--sw-dark);
}

.envo-magazine-boxed a:focus-visible,.envo-magazine-boxed button:focus-visible,.envo-magazine-boxed input:focus-visible,.envo-magazine-boxed select:focus-visible,.envo-magazine-boxed summary:focus-visible {
    outline: 3px solid #b47c00;
    outline-offset: 3px;
}

.site-header.em-boxed {
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 16px 0;
}

.site-header .site-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
    padding: 0 24px;
    min-height: 48px;
}

.site-branding-logo {
    float: none;
    margin: 0;
    flex: 0 0 auto;
}

.site-header .custom-logo {
    width: auto;
    height: auto;
    max-width: 48px;
    max-height: 48px;
    display: block;
    margin: 0;
}

.site-header .site-branding-text {
    margin: 0;
    padding: 0;
    min-width: 0;
}

.site-header .site-title {
    font-family: var(--sw-font);
    font-size: clamp(18px,2.4vw,27px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -.035em;
}

.site-header .site-title a {
    color: var(--sw-dark);
    text-decoration: none;
}

#site-navigation {
    min-height: 52px;
    background: #fff;
    box-shadow: none;
    border: 0;
    border-top: 1px solid var(--sw-line);
    border-bottom: 2px solid var(--sw-green);
    margin-bottom: 0;
}

#site-navigation.shrink {
    width: auto;
    border-bottom: 2px solid var(--sw-green);
}

#site-navigation .navbar-nav>li>a {
    color: var(--sw-dark);
    font-family: var(--sw-font);
    font-size: 14px;
    font-weight: 650;
    text-transform: none;
    max-height: none;
    padding: 15px;
}

#site-navigation .navbar-nav>li>a:hover,#site-navigation .navbar-nav>.active>a,#site-navigation .navbar-nav>.open>a {
    background: #eaf4ee;
    color: var(--sw-green);
}

#site-navigation .nav>li>a:before,#site-navigation .nav>li.active>a:after,.current-page-parent:after {
    background: var(--sw-green);
    bottom: 100%;
}

#site-navigation li.home-icon.front_page_on a,#site-navigation li.home-icon.front_page_on a:hover {
    background: var(--sw-green);
    color: #fff;
}

#searchsubmit,.envo-magazine-boxed .wp-block-button__link {
    background: var(--sw-green);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 650;
}

#site-content {
    padding-top: 24px;
    padding-bottom: 32px;
}

.single-sw_ort .news-thumb.col-md-12>img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 0 auto 22px;
}

.single-title {
    font-size: clamp(27px,3.4vw,42px);
    margin: 12px 0 22px;
    overflow-wrap: anywhere;
}

.single-entry-summary,.entry-content,.taxonomy-description {
    font-size: 17px;
    line-height: 1.8;
}

.single-entry-summary p,.entry-content p,.sw-portal p {
    margin: 0 0 1.15em;
}

.sw-portal h2,.sw-directory h2,.single-entry-summary h2,.entry-content h2 {
    font-size: clamp(22px,2.5vw,30px);
    margin: 36px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sw-line);
}

.sw-portal h3,.entry-content h3 {
    font-size: 21px;
    margin: 25px 0 12px;
}

.single-entry-summary a,.comment-body a,.textwidget a,.post-excerpt a,.entry-content a,.taxonomy-description a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sw-portal ol,.sw-portal ul {
    padding-left: 25px;
    margin-bottom: 22px;
}

.sw-portal li {
    margin-bottom: 7px;
}

.sw-portal .sw-widget {
    background: #fff;
    border: 1px solid #b8d4c6;
    border-top: 4px solid var(--sw-green);
    border-radius: 14px;
    padding: clamp(12px,2.5vw,25px);
    box-shadow: 0 5px 20px rgba(16,62,50,.07);
    margin: 24px 0;
    min-width: 0;
}

.sw-portal .sw-disclosure {
    font-size: 13px;
    color: var(--sw-muted);
    line-height: 1.5;
}

.sw-plz-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background: #eef6f1;
    padding: 14px;
    border-radius: 10px;
    margin: 0 0 18px;
}

.sw-plz-picker label {
    margin: 0;
    font-weight: 650;
}

.sw-plz-picker select,.sw-directory input,.sw-directory select {
    background: #fff;
    border: 1px solid #a9c2b5;
    border-radius: 8px;
    color: var(--sw-ink);
    min-height: 44px;
    padding: 9px 12px;
    max-width: 100%;
    font: inherit;
}

.sw-plz-picker button,.sw-directory button,.sw-directory input[type=submit],.sw-portal .sw-wechselbutton {
    background: var(--sw-green);
    color: #fff !important;
    border: 0;
    border-radius: 8px;
    padding: 11px 20px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    min-height: 44px;
}

.sw-plz-picker button:hover,.sw-directory button:hover,.sw-portal .sw-wechselbutton:hover {
    background: var(--sw-dark);
}

.sw-portal #stromrechner {
    scroll-margin-top: 90px;
}

.sw-portal table,.entry-content table,.taxonomy-description table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--sw-line);
    border-radius: 10px;
    overflow: hidden;
    margin: 18px 0 26px;
    font-size: 15px;
    line-height: 1.55;
}

.sw-portal caption,.entry-content caption {
    caption-side: top;
    text-align: left;
    color: var(--sw-dark);
    font-weight: 700;
    padding: 10px 0;
}

.sw-portal th,.entry-content th,.taxonomy-description th {
    background: var(--sw-dark);
    color: #fff;
    font-weight: 650;
    text-align: left;
    padding: 13px;
    border: 0;
}

.sw-portal td,.entry-content td,.taxonomy-description td {
    padding: 12px 13px;
    border: 0;
    border-bottom: 1px solid var(--sw-line);
    vertical-align: top;
    overflow-wrap: anywhere;
}

.sw-portal tbody tr:nth-child(even),.entry-content tbody tr:nth-child(even) {
    background: #f0f6f2;
}

.sw-portal tbody tr:last-child td,.entry-content tbody tr:last-child td {
    border-bottom: 0;
}

.sw-portal details {
    background: #f4f8f5;
    border: 1px solid var(--sw-line);
    border-radius: 10px;
    padding: 15px 18px;
    margin: 15px 0 22px;
}

.sw-portal summary {
    cursor: pointer;
    color: var(--sw-dark);
    font-weight: 700;
}

.sw-portal details p {
    margin: 12px 0 0;
}

.sw-portal details a[href*="strom_plz="] {
    display: inline-block;
    padding: 5px 10px;
    margin: 4px 2px;
    border: 1px solid #bdd5c7;
    background: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 650;
}

.sw-portal details a[href*="strom_plz="]:hover {
    background: var(--sw-green);
    color: #fff;
}

.sw-portal .sw-regions,.sw-directory .sw-regions {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr));
    gap: 12px;
    padding: 0;
    list-style: none;
}

.sw-regions li {
    margin: 0;
}

.sw-portal .sw-regions a,.sw-directory .sw-regions a {
    display: block;
    height: 100%;
    padding: 13px 15px;
    border: 1px solid var(--sw-line);
    border-radius: 9px;
    background: #f7faf8;
    text-decoration: none;
    font-weight: 650;
}

.sw-regions a:hover {
    border-color: var(--sw-green);
    background: #eaf4ee;
}

.sw-portal .sw-wechselaufruf {
    background: #edf6ef;
    border: 1px solid #c6ddce;
    border-left: 4px solid var(--sw-green);
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
}

.sw-portal .sw-wechselaufruf h2 {
    margin-top: 0;
}

.sw-image-credit {
    font-size: 12px;
    color: var(--sw-muted);
}

.single-sw_ort .posted-date,.single-sw_ort .comments-meta {
    display: none !important;
}

.widget {
    padding: 20px;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid var(--sw-line);
    border-radius: 12px;
    box-shadow: none;
}

.widget-title h3 {
    font-style: normal;
    left: 0;
    font-size: 18px;
    font-weight: 700;
}

.widget-title h3:before,.cat-links a:before,.comments-meta:before {
    background: var(--sw-green);
    transform: none;
}

.posted-date,.cat-links a,.cat-links span,.tags-links span {
    font-style: normal;
    padding: 6px 15px;
}

.posted-date:before,.cat-links span:before,.tags-links span:before {
    transform: none;
}

#top-navigation,.footer-credits {
    border-top: 3px solid var(--sw-green);
}

.footer-credits {
    background: var(--sw-dark);
    color: #e7f3ed;
    border-radius: 0 0 15px 15px;
    padding: 20px 0;
}

.footer-credits a {
    color: #fff;
}

nav.navigation.pagination .current:before {
    border-color: var(--sw-green);
    background: var(--sw-green);
}

nav.navigation.pagination .nav-links a:before,nav.navigation.pagination .current:before {
    transform: none;
}

.inner-wrapper.split-images {
    margin-bottom: 0;
}

.split-images-news-section {
    margin: -20px;
}

.split-slider,.split-slider .news-thumb,.split-slider .news-text-wrap {
    transform: none;
}

.section-title a {
    padding: 5px 14px;
    font-style: normal;
    left: 0;
    float: right;
    margin-top: 20px;
    font-size: 12px;
}

.section-title a:after {
    left: 0;
    right: 0;
    bottom: 4px;
    transform: none;
}

article {
    clear: none;
}

article.blog-block.col-md-6:nth-of-type(2n-1),article.blog-block.col-md-4:nth-of-type(3n-2) {
    clear: left;
}

#envo-magazine-two-column-news-2 {
    margin: 0 0 30px;
    padding: 20px 5px;
}

@media (max-width:1240px) {
    .envo-magazine-boxed {
        margin: 12px;
    }

    #site-navigation.shrink {
        width: 100%;
    }
}

@media (max-width:767px) {
    .envo-magazine-boxed {
        margin: 0;
        border: 0;
        border-radius: 0;
    }

    .site-header .site-heading {
        padding: 0 15px;
    }

    .site-header .custom-logo {
        max-width: 36px;
        max-height: 36px;
    }

    #site-content {
        padding-top: 15px;
    }

    .single-entry-summary,.entry-content,.taxonomy-description {
        font-size: 16px;
    }

    .sw-portal table,.entry-content table,.taxonomy-description table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        white-space: normal;
    }

    .sw-portal th,.sw-portal td,.entry-content th,.entry-content td {
        min-width: 105px;
        padding: 10px;
    }

    .sw-plz-picker {
        gap: 8px;
    }

    .sw-plz-picker button {
        flex: 1 1 auto;
    }

    .sw-portal .sw-wechselbutton {
        display: block;
        text-align: center;
    }

    button.open-panel,button.open-panel:hover {
        box-shadow: none;
        top: 12px;
    }

    #site-navigation.shrink {
        width: 100%;
    }
}

#site-navigation, .footer-credits {
    display: none;
}

/* Einheitliches Inhaltsdesign: Tabellen, Überschriften, Listen und Logo */
.single-content .single-entry-summary table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #dce6e1 !important;
    border-radius: 10px;
    overflow: hidden;
    margin: 30px 0 !important;
    font-size: 15px;
    line-height: 1.6;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.single-content .single-entry-summary table th {
    background: #124c3b !important;
    color: #ffffff !important;
    font-weight: 600;
    text-align: left !important;
    padding: 16px !important;
    border: 0 !important;
}

.single-content .single-entry-summary table td {
    padding: 14px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid #dce6e1 !important;
    vertical-align: middle;
    text-align: left !important;
}

.single-content .single-entry-summary table tr:nth-child(even) td {
    background: #edf5f0 !important;
}

.single-content .single-entry-summary table tr:nth-child(odd) td {
    background: #ffffff !important;
}

.single-content .single-entry-summary table td:first-child {
    font-weight: 600;
    color: #124c3b;
}

.single-content .single-entry-summary table tr:hover td {
    background: #dcece3 !important;
    transition: background 0.2s ease;
}

.single-content .single-entry-summary table tr:last-child td {
    border-bottom: 0 !important;
}

.single-content .single-entry-summary table a {
    color: #176447;
    font-weight: 600;
    text-decoration: underline;
}

.single-post .single-content h1,
.single-post h1.entry-title {
    font-size: clamp(28px, 4vw, 38px) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    color: #123e30 !important;
    letter-spacing: -0.7px;
    margin: 10px 0 28px !important;
    padding-bottom: 18px;
    border-bottom: 3px solid #dce9e1;
}

.single-content .single-entry-summary h2 {
    font-size: clamp(23px, 3vw, 29px) !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #124c3b !important;
    margin: 42px 0 20px !important;
    padding: 10px 0 10px 15px;
    border-left: 5px solid #27845e;
    letter-spacing: -0.4px;
}

.single-content .single-entry-summary h3 {
    font-size: clamp(19px, 2.5vw, 23px) !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #176447 !important;
    margin: 30px 0 14px !important;
    letter-spacing: -0.2px;
}

.single-content .single-entry-summary ul,
body.home .swh section:not(.swh-hero) > ul,
body.home .swh #ratgeber ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 22px 0 28px !important;
}

.single-content .single-entry-summary ul > li,
body.home .swh section:not(.swh-hero) > ul > li,
body.home .swh #ratgeber ul > li {
    position: relative;
    list-style: none !important;
    padding: 8px 10px 8px 32px !important;
    margin: 4px 0 !important;
    line-height: 1.7;
}

.single-content .single-entry-summary ul > li::before,
body.home .swh section:not(.swh-hero) > ul > li::before,
body.home .swh #ratgeber ul > li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 10px;
    width: 21px;
    height: 21px;
    background: #e3f2e9;
    color: #176447;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    line-height: 21px;
    text-align: center;
}

.single-content .single-entry-summary ol {
    list-style: none !important;
    counter-reset: strom-schritte;
    padding: 0 !important;
    margin: 24px 0 30px !important;
}

.single-content .single-entry-summary ol > li {
    counter-increment: strom-schritte;
    position: relative;
    list-style: none !important;
    padding: 12px 14px 12px 48px !important;
    margin: 8px 0 !important;
    background: #f2f7f4;
    border: 1px solid #e0ebe4;
    border-radius: 8px;
    line-height: 1.7;
}

.single-content .single-entry-summary ol > li::before {
    content: counter(strom-schritte);
    position: absolute;
    top: 12px;
    left: 12px;
    width: 26px;
    height: 26px;
    background: #176447;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 26px;
    font-size: 13px;
    font-weight: 700;
}

.single-content .single-entry-summary li > ul,
.single-content .single-entry-summary li > ol {
    margin: 10px 0 !important;
}

.single-content .single-entry-summary p {
    line-height: 1.85;
    margin-bottom: 18px;
}

.single-content .single-entry-summary strong {
    font-weight: 700;
    color: #124c3b;
}

.single-content .single-entry-summary blockquote {
    background: #edf5f0;
    border-left: 5px solid #27845e;
    border-radius: 0 10px 10px 0;
    padding: 22px 25px !important;
    margin: 28px 0 !important;
    color: #234b3b;
    font-size: 16px;
    line-height: 1.8;
    font-style: normal;
}

.single-content .single-entry-summary blockquote p:last-child {
    margin-bottom: 0;
}

body.home .swh section:not(.swh-hero) h1 {
    font-size: clamp(28px, 4vw, 38px) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    color: #123e30 !important;
    letter-spacing: -0.7px;
    margin: 10px 0 28px !important;
    padding-bottom: 18px;
    border-bottom: 3px solid #dce9e1;
}

body.home .swh section:not(.swh-hero) > h2 {
    font-size: clamp(23px, 3vw, 29px) !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
    color: #124c3b !important;
    margin: 36px 0 20px !important;
    padding: 10px 0 10px 15px;
    border-left: 5px solid #27845e;
    letter-spacing: -0.4px;
}

body.home .swh section:not(.swh-hero) > h3,
body.home .swh #ratgeber h3 {
    font-size: clamp(19px, 2.5vw, 23px) !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #176447 !important;
    margin: 26px 0 14px !important;
}

body.home .swh section:not(.swh-hero) > ol,
body.home .swh #ratgeber ol {
    list-style: none !important;
    counter-reset: sw-home-schritte;
    padding: 0 !important;
    margin: 24px 0 30px !important;
}

body.home .swh section:not(.swh-hero) > ol > li,
body.home .swh #ratgeber ol > li {
    counter-increment: sw-home-schritte;
    position: relative;
    list-style: none !important;
    padding: 12px 14px 12px 48px !important;
    margin: 8px 0 !important;
    background: #f2f7f4;
    border: 1px solid #e0ebe4;
    border-radius: 8px;
    line-height: 1.7;
}

body.home .swh section:not(.swh-hero) > ol > li::before,
body.home .swh #ratgeber ol > li::before {
    content: counter(sw-home-schritte);
    position: absolute;
    top: 12px;
    left: 12px;
    width: 26px;
    height: 26px;
    background: #176447;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 26px;
    font-size: 13px;
    font-weight: 700;
}

body.home .swh-header a.swh-brand:hover {
    filter: brightness(1.15);
}

body.home .swh-header a.swh-brand,
.swh-header a.swh-brand,
.site-title a,
.site-title a:visited {
    font-size: clamp(20px, 3vw, 34px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.8px;
    line-height: 1.3;
    background: linear-gradient(
        100deg,
        #087047 0%,
        #269b43 60%,
        #83b921 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    text-decoration: none !important;
}

h1.single-title,
#sw-region-main .sw-portal > h1 {
    font-size: clamp(26px, 3.5vw, 40px) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.8px !important;
    margin: 30px 0 26px !important;
    padding: 0 0 20px !important;
    position: relative;
    border: none !important;
    color: #124c3b !important;
    background: linear-gradient(
        100deg,
        #074c36 0%,
        #176447 45%,
        #32943d 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    overflow-wrap: anywhere;
}

h1.single-title::after,
#sw-region-main .sw-portal > h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 110px;
    height: 5px;
    border-radius: 5px;
    background: linear-gradient(
        90deg,
        #087047,
        #83b921,
        #ffc400
    );
}

/* Mobile Anpassungen des Inhaltsdesigns */
@media (max-width: 767px) {
    .single-content .single-entry-summary table {
        display: block !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        font-size: 13px;
    }

    .single-content .single-entry-summary table th,
        .single-content .single-entry-summary table td {
        padding: 12px !important;
        min-width: 110px;
        overflow-wrap: anywhere;
    }

    .single-content .single-entry-summary h2 {
        margin-top: 30px !important;
        padding-left: 12px;
    }

    .single-content .single-entry-summary h3 {
        margin-top: 24px !important;
    }

    .single-content .single-entry-summary blockquote {
        padding: 16px !important;
    }

    .single-content .single-entry-summary p {
        line-height: 1.75;
    }

    body.home .swh section:not(.swh-hero) > h2 {
        margin-top: 26px !important;
        padding-left: 12px;
        border-left-width: 4px;
    }

    body.home .swh-header a.swh-brand,
    .swh-header a.swh-brand,
        .site-title a {
        font-size: clamp(17px, 4.8vw, 24px) !important;
        letter-spacing: -0.5px;
    }

    h1.single-title,
    #sw-region-main .sw-portal > h1 {
        font-size: clamp(24px, 5vw, 30px) !important;
        letter-spacing: -0.5px !important;
        margin: 22px 0 !important;
        padding-bottom: 16px !important;
    }

    h1.single-title::after,
    #sw-region-main .sw-portal > h1::after {
        width: 80px;
        height: 4px;
    }
}
