
/*
Theme Name: Der Strompreis Vergleich
Theme URI: https://www.der-strompreis-vergleich.de/
Author: ChatGPT
Description: Modernes, responsives Theme für Strompreisvergleich mit Fokus auf Conversion.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dsv-strom
*/

:root {
    --primary: #0f766e;
    --primary-dark: #0b4f49;
    --accent: #f97316;
    --bg-light: #f4f5fb;
    --text-main: #0f172a;
    --text-muted: #6b7280;
    --border-soft: #e5e7eb;
    --danger: #dc2626;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-soft: 0 18px 45px rgba(15,23,42,0.1);
}

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: #ffffff;
    line-height: 1.6;
}

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

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

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

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15,23,42,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148,163,184,0.3);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
    gap: 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 20%, #facc15, #f97316 55%, #0f766e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(15,23,42,0.4);
}

.site-logo span {
    font-weight: 800;
    font-size: 1.2rem;
    color: #ffffff;
}

.site-title-group {
    display: flex;
    flex-direction: column;
}

.site-title a {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #f9fafb;
}

.site-description {
    font-size: 0.8rem;
    color: #cbd5f5;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e5e7eb;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-navigation a:hover {
    background: rgba(15,118,110,0.15);
    color: #f9fafb;
}

/* Dropdown */
.main-navigation ul ul {
    position: absolute;
    left: 0;
    top: 110%;
    background: #020617;
    padding: 0.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 18px 45px rgba(15,23,42,0.48);
    min-width: 190px;
    display: none;
    flex-direction: column;
    z-index: 60;
}

.main-navigation li:hover > ul {
    display: flex;
}

.main-navigation ul ul li a {
    border-radius: 0.6rem;
}

/* Header CTA Button */
.header-cta {
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f766e, #22c55e);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 14px 35px rgba(16,185,129,0.45);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.header-cta:hover {
    background: linear-gradient(135deg, #0b4f49, #16a34a);
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(16,185,129,0.55);
    color: #ffffff !important;
}

.header-cta span.icon {
    font-size: 1rem;
}

/* Mobile Nav */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(148,163,184,0.6);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    color: #e5e7eb;
    font-size: 0.8rem;
    align-items: center;
    gap: 0.3rem;
}

.menu-toggle span {
    display: inline-block;
}

.menu-toggle .burger {
    width: 16px;
    height: 2px;
    background: #e5e7eb;
    position: relative;
}

.menu-toggle .burger::before,
.menu-toggle .burger::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 2px;
    background: #e5e7eb;
    left: 0;
}

.menu-toggle .burger::before {
    top: -5px;
}

.menu-toggle .burger::after {
    top: 5px;
}

@media (max-width: 900px) {
    .site-header-inner {
        align-items: center;
    }

    .main-navigation {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: rgba(15,23,42,0.98);
        padding: 0.8rem 1.25rem 1rem;
        border-bottom-left-radius: 1rem;
        border-bottom-right-radius: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        display: none;
    }

    .main-navigation.toggled {
        display: flex;
    }

    .main-navigation ul {
        flex-direction: column;
        width: 100%;
    }

    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        padding-left: 0.75rem;
        margin-top: 0.25rem;
        background: transparent;
    }

    .menu-toggle {
        display: inline-flex;
    }
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at top left, #e0f2fe, #eef2ff 45%, #ffffff 80%);
    border-bottom: 1px solid #e5e7eb;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
    gap: 2.5rem;
    padding: 2.75rem 0 2.5rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(34,197,94,0.09);
    border: 1px solid rgba(16,185,129,0.3);
    color: #047857;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-eyebrow span.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.35);
}

.hero h1 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin: 0.7rem 0 0.6rem;
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    background: linear-gradient(120deg, #0f766e, #22c55e);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-lead {
    font-size: 0.98rem;
    color: var(--text-muted);
    max-width: 34rem;
}

.hero-bullets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 1.6rem 0 1.4rem;
}

.hero-bullet {
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 0.7rem 0.7rem;
    border: 1px solid var(--border-soft);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.hero-bullet strong {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0f172a;
}

.hero-bullet span {
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.hero-primary {
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f766e, #22c55e);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 20px 50px rgba(34,197,94,0.5);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hero-primary:hover {
    background: linear-gradient(135deg, #0b4f49, #16a34a);
    transform: translateY(-1px);
    box-shadow: 0 22px 55px rgba(22,163,74,0.55);
}

.hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-secondary span.icon {
    font-size: 1rem;
}

.hero-guarantees {
    display: flex;
    gap: 1.1rem;
    margin-top: 1.1rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.hero-guarantees span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.hero-guarantees span .dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
}

/* Hero right */
.hero-card {
    background: #020617;
    border-radius: 1.5rem;
    padding: 1.4rem 1.5rem 1.3rem;
    color: #e5e7eb;
    box-shadow: 0 24px 70px rgba(15,23,42,0.9);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 0 0, rgba(45,212,191,0.09), transparent 60%),
        radial-gradient(circle at 100% 0, rgba(56,189,248,0.12), transparent 60%),
        radial-gradient(circle at 0 100%, rgba(129,140,248,0.12), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.hero-card-inner {
    position: relative;
    z-index: 1;
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.7rem;
}

.hero-card-title {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.hero-card-title span.label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #a5b4fc;
}

.hero-card-title strong {
    font-size: 1.02rem;
}

.hero-card-pill {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(22,163,74,0.18);
    border: 1px solid rgba(34,197,94,0.65);
    font-size: 0.74rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.hero-card-pill span.dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
}

.hero-savings {
    margin: 0.7rem 0;
    padding: 0.7rem;
    border-radius: 1rem;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.5);
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.hero-savings strong {
    font-size: 1.05rem;
    color: #fbbf24;
}

.hero-savings span.sub {
    display: block;
    color: #9ca3af;
    font-size: 0.78rem;
}

.hero-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.hero-metric {
    background: rgba(15,23,42,0.9);
    border-radius: 0.9rem;
    padding: 0.55rem 0.55rem;
    border: 1px solid rgba(148,163,184,0.45);
    font-size: 0.75rem;
}

.hero-metric span.label {
    color: #9ca3af;
    font-size: 0.72rem;
}

.hero-metric strong {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.1rem;
}

.hero-card-footer {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.76rem;
    color: #9ca3af;
}

.hero-card-footer .avatars {
    display: flex;
    align-items: center;
}

.hero-card-footer .avatars span {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #facc15, #f97316 60%, #0f766e 100%);
    border: 1px solid #020617;
    display: inline-block;
    margin-left: -6px;
}

.hero-card-footer .avatars span:first-child {
    margin-left: 0;
}

.hero-card-footer strong {
    color: #e5e7eb;
}

.hero-card-footer span.subtext {
    display: block;
}

/* Section base */
.section {
    padding: 2.4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
}

.section-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
    font-weight: 700;
}

.section-title {
    font-size: 1.45rem;
    margin: 0.2rem 0;
}

.section-description {
    font-size: 0.92rem;
    color: var(--text-muted);
    max-width: 32rem;
}

/* Trust badges */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.trust-item {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 0.9rem 0.9rem;
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.85rem;
}

.trust-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.trust-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(34,197,94,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.trust-item-rating {
    font-size: 0.8rem;
    color: #f97316;
}

.trust-item strong {
    font-size: 0.9rem;
}

.trust-item span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Comparison section */
.section-compare {
    background: var(--bg-light);
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.compare-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.5rem 1.3rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148,163,184,0.5);
}

.compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.compare-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.compare-header-left h2 {
    margin: 0;
    font-size: 1.3rem;
}

.compare-header-left span.sub {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.compare-header-right {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
}

.compare-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
    font-size: 0.75rem;
}

.compare-badge {
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.compare-badge.danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.compare-widget {
    margin-top: 0.9rem;
    border-radius: 1.1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* Content/Benefits */
.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.3fr);
    gap: 2rem;
}

.pros-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pros-item {
    display: flex;
    gap: 0.75rem;
}

.pros-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(15,118,110,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.pros-text strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.pros-text span {
    font-size: 0.86rem;
    color: var(--text-muted);
}

.pros-highlight-box {
    background: #020617;
    border-radius: 1.2rem;
    padding: 1rem 1rem;
    color: #e5e7eb;
    box-shadow: 0 22px 55px rgba(15,23,42,0.7);
    border: 1px solid rgba(148,163,184,0.5);
    font-size: 0.86rem;
}

.pros-highlight-box strong {
    color: #facc15;
}

.pros-highlight-box ul {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
}

.pros-highlight-box li {
    margin-bottom: 0.2rem;
}

/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.testimonial {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1rem 1rem;
    border: 1px solid var(--border-soft);
    font-size: 0.85rem;
}

.testimonial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.testimonial-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #facc15, #f97316 60%, #0f766e 100%);
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.testimonial-rating {
    font-size: 0.82rem;
    color: #f97316;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
    gap: 1.75rem;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.faq-item {
    border-radius: 0.9rem;
    border: 1px solid var(--border-soft);
    background: #ffffff;
    padding: 0.6rem 0.8rem;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary span.label {
    flex: 1;
}

.faq-item summary span.icon {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.faq-item p {
    margin: 0.4rem 0 0.1rem;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.faq-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
}

.faq-sidebar {
    background: #0f172a;
    border-radius: 1.1rem;
    padding: 1rem 1rem;
    color: #e5e7eb;
    box-shadow: 0 22px 55px rgba(15,23,42,0.76);
    border: 1px solid rgba(148,163,184,0.5);
    font-size: 0.86rem;
}

.faq-sidebar h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.faq-sidebar ul {
    margin: 0.4rem 0 0.4rem;
    padding-left: 1.1rem;
}

.faq-sidebar li {
    margin-bottom: 0.15rem;
}

/* Layout for inner pages */
.site-main {
    padding: 2.2rem 0;
}

.content-area {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
    gap: 2rem;
}

.site-content {
    min-width: 0;
}

.sidebar {
    min-width: 0;
}

.widget-area .widget {
    margin-bottom: 1.5rem;
    padding: 1.1rem 1rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid var(--border-soft);
}

.widget-title {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 0.98rem;
}

.entry-header h1.entry-title {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.entry-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.entry-content {
    font-size: 0.95rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 1.6rem;
}

.entry-content p {
    margin-bottom: 1rem;
}

/* Blog list */
.blog-list .post {
    margin-bottom: 1.8rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--border-soft);
}

.blog-list .entry-title {
    margin: 0 0 0.3rem;
    font-size: 1.2rem;
}

.blog-list .entry-summary {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    background: #020617;
    color: #9ca3af;
    padding: 1.7rem 0 1.6rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(148,163,184,0.4);
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.footer-links a {
    color: #e5e7eb;
    font-size: 0.82rem;
}

.footer-links a:hover {
    color: #a5b4fc;
}

/* Utilities */
.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        padding: 2rem 0 2.2rem;
    }

    .hero-card {
        order: -1;
    }

    .hero-bullets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testimonials {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-grid,
    .two-col {
        grid-template-columns: minmax(0, 1fr);
    }

    .content-area {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .hero-bullets {
        grid-template-columns: minmax(0, 1fr);
    }

    .trust-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .testimonials {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-header {
        align-items: flex-start;
    }
}
