/*
Theme Name: Auto-Putzen Astra Child
Template: astra
Version: 3.0
Description: Custom child theme for Auto-Putzen affiliate website
*/

@import url("../astra/style.css");

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --ap-primary: #059669;
    --ap-primary-dark: #047857;
    --ap-primary-light: #10b981;
    --ap-white: #ffffff;
    --ap-black: #1a1a1a;
    --ap-grey-50: #f9fafb;
    --ap-grey-100: #f3f4f6;
    --ap-grey-200: #e5e7eb;
    --ap-grey-300: #d1d5db;
    --ap-grey-500: #6b7280;
    --ap-grey-700: #374151;
}

/* ============================================================
   LAYOUT - Full Width
   ============================================================ */
.site-content,
.site-primary,
.content-area,
main {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.spacer {
    height: 60px;
}

.spacer-sm {
    height: 40px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.button,
a.button,
.wp-element-button,
.wp-block-button__link {
    display: inline-block;
    padding: 14px 32px;
    background: var(--ap-primary) !important;
    color: var(--ap-white) !important;
    border: 2px solid var(--ap-primary) !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button:hover,
a.button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
    background: var(--ap-primary-dark) !important;
    border-color: var(--ap-primary-dark) !important;
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--ap-primary) 0%, var(--ap-primary-dark) 100%);
    padding: 100px 24px;
    color: var(--ap-white);
    text-align: center;
    width: 100%;
}

.hero h1 {
    color: var(--ap-white);
    font-size: 48px;
    margin: 16px 0 24px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.9;
    display: block;
    margin-bottom: 16px;
}

.hero-cta {
    display: inline-block;
    margin-top: 32px;
    padding: 14px 40px;
    background: var(--ap-white);
    color: var(--ap-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid var(--ap-white);
}

.hero-cta:hover {
    background: transparent;
    color: var(--ap-white);
}

.hero-product {
    padding: 60px 24px;
}

.hero-product h1 {
    font-size: 36px;
}

.product-hero-meta {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 16px;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.hero-404 {
    padding: 80px 24px;
}

.hero-404 .error-code {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 16px;
    letter-spacing: -4px;
}

.hero-404 h1 {
    font-size: 36px;
    margin-top: 8px;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 8px;
    max-width: 300px;
    margin: 0 auto;
}

.search-form .search-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--ap-grey-200);
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--ap-primary);
}

.search-form .search-submit {
    padding: 10px 20px;
    background: var(--ap-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.search-form .search-submit:hover {
    background: var(--ap-primary-dark);
}

@media (max-width: 768px) {
    .hero-404 .error-code {
        font-size: 80px;
    }
    
    .hero-404 h1 {
        font-size: 28px;
    }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    background: var(--ap-grey-50);
    padding: 16px 24px;
    font-size: 14px;
    color: var(--ap-grey-500);
    border-bottom: 1px solid var(--ap-grey-200);
}

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

.breadcrumb a:hover {
    color: var(--ap-primary-dark);
    text-decoration: underline;
}

/* ============================================================
   PAGE SECTIONS
   ============================================================ */
.page-section {
    padding: 0 24px;
    margin-bottom: 60px;
}

.page-section h2 {
    margin-bottom: 32px;
    color: var(--ap-black);
    font-size: 32px;
}

.description-text {
    color: var(--ap-grey-500);
    line-height: 1.8;
    font-size: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.description-text h2 {
    text-align: center;
    margin-bottom: 16px;
}

.description-text p {
    margin-bottom: 16px;
}

.description-text ul,
.description-text ol {
    margin: 16px 0;
    padding-left: 24px;
}

.description-text li {
    margin-bottom: 8px;
    color: var(--ap-grey-700);
    line-height: 1.7;
}

.description-text a {
    color: var(--ap-primary);
}

.description-text a:hover {
    color: var(--ap-primary-dark);
}

/* ============================================================
   CARDS GRID
   ============================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.card {
    background: var(--ap-white);
    border: 1px solid var(--ap-grey-200);
    border-radius: 12px;
    padding: 32px 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--ap-primary);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.1);
    transform: translateY(-4px);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 20px;
    color: var(--ap-black);
    margin: 0 0 12px;
    font-weight: 600;
}

.card p {
    color: var(--ap-grey-500);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--ap-grey-200);
    font-size: 13px;
    color: var(--ap-primary);
    font-weight: 600;
}

/* ============================================================
   PRODUCT GRID (Ebene 2 + 3)
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--ap-white);
    border: 1px solid var(--ap-grey-200);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: var(--ap-primary);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.1);
    transform: translateY(-4px);
}

.product-card-image {
    background: var(--ap-grey-100);
    border-radius: 8px;
    height: 180px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.product-card h3 {
    font-size: 18px;
    color: var(--ap-black);
    margin: 0 0 12px;
    font-weight: 600;
}

.product-card p {
    color: var(--ap-grey-500);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
    flex-grow: 1;
}

.product-card-footer {
    padding-top: 16px;
    border-top: 1px solid var(--ap-grey-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-link {
    color: var(--ap-primary);
    font-weight: 600;
    font-size: 14px;
}

/* ============================================================
   AAWP PLACEHOLDER
   ============================================================ */
.aawp-placeholder {
    background: var(--ap-grey-50);
    border: 2px dashed var(--ap-grey-300);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    color: var(--ap-grey-500);
    margin: 24px 0;
}

.aawp-placeholder h3 {
    color: var(--ap-grey-700);
    margin-bottom: 8px;
    font-size: 16px;
}

.aawp-placeholder code {
    background: var(--ap-white);
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid var(--ap-grey-200);
    color: var(--ap-primary);
    font-size: 14px;
    display: inline-block;
    margin-top: 12px;
}

/* ============================================================
   INFO SECTION
   ============================================================ */
.info-section {
    background: var(--ap-grey-100);
    padding: 60px 24px;
}

.info-section h2 {
    text-align: center;
    margin-bottom: 48px;
    color: var(--ap-black);
    font-size: 32px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.info-item {
    text-align: center;
}

.info-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.info-item h4 {
    font-size: 18px;
    color: var(--ap-black);
    margin: 0 0 12px;
    font-weight: 600;
}

.info-item p {
    color: var(--ap-grey-500);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
    border-top: 2px solid var(--ap-grey-200);
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--ap-grey-200);
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    text-align: left;
    background: none !important;
    border: none !important;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--ap-black) !important;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--ap-primary) !important;
}

.faq-question .faq-icon {
    transition: transform 0.3s ease;
    color: var(--ap-grey-500);
}

.faq-question:hover .faq-icon {
    color: var(--ap-primary);
}

.faq-item.active .faq-question {
    color: var(--ap-primary) !important;
}

.faq-item.active .faq-icon {
    color: var(--ap-primary);
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding-bottom: 24px;
    color: var(--ap-grey-500);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ============================================================
   PRODUCT DETAIL - TOC
   ============================================================ */
.toc-section {
    background: var(--ap-grey-50);
    padding: 32px 24px;
    border-bottom: 1px solid var(--ap-grey-200);
}

.toc-section h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--ap-grey-700);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.toc-link {
    color: var(--ap-primary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.toc-link:hover {
    border-left-color: var(--ap-primary);
    background: var(--ap-grey-100);
}

.product-content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
}

.product-content-section h2 {
    color: var(--ap-black);
    margin-top: 48px;
    margin-bottom: 16px;
    font-size: 28px;
}

.product-content-section h2:first-child {
    margin-top: 0;
}

.product-content-section p {
    color: var(--ap-grey-700);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 16px;
}

/* ============================================================
   FAZIT BOX (Produktdetailseite)
   ============================================================ */
.fazit-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px solid #a7f3d0;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
}

.fazit-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #a7f3d0;
}

.fazit-badge {
    display: inline-block;
    background: var(--ap-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.fazit-title {
    margin: 0 !important;
    color: var(--ap-black);
    font-size: 28px;
    font-weight: 700;
}

.fazit-content p {
    color: var(--ap-grey-700);
    line-height: 1.8;
    margin-bottom: 16px;
}

.fazit-lead {
    font-size: 18px;
    line-height: 1.7;
    color: var(--ap-black) !important;
    font-weight: 500;
    margin-bottom: 24px !important;
}

.fazit-quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #a7f3d0;
}

.fazit-quick-item {
    background: white;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #d1fae5;
    display: flex;
    flex-direction: column;
}

.fazit-quick-label {
    font-size: 11px;
    color: var(--ap-grey-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.fazit-quick-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--ap-primary-dark);
}

/* ============================================================
   RATING SYSTEM (Spec-Box + Bars + Pros/Cons)
   ============================================================ */
.rating-section {
    padding: 0 24px;
}

.rating-card {
    background: var(--ap-white);
    border: 1px solid var(--ap-grey-200);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.rating-card-title {
    color: var(--ap-black);
    margin: 0 0 24px;
    font-size: 22px;
    font-weight: 600;
}

/* Spec Grid */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.spec-item {
    background: var(--ap-grey-50);
    padding: 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.spec-item .spec-label {
    font-size: 11px;
    color: var(--ap-grey-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.spec-item .spec-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--ap-black);
}

/* Rating Bars */
.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rating-bar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating-bar-label {
    font-weight: 600;
    color: var(--ap-grey-700);
    font-size: 15px;
}

.rating-bar-value {
    font-weight: 700;
    color: var(--ap-primary);
    font-size: 15px;
}

.rating-bar-track {
    background: var(--ap-grey-200);
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.rating-bar-fill {
    background: linear-gradient(90deg, var(--ap-primary) 0%, var(--ap-primary-light) 100%);
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease;
}

/* Overall Rating */
.rating-overall {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--ap-grey-200);
    text-align: center;
}

.rating-overall-label {
    font-size: 12px;
    color: var(--ap-grey-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}

.rating-overall-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--ap-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.rating-overall-stars {
    font-size: 20px;
    letter-spacing: 4px;
}

/* Pros/Cons */
.proscons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.pros-box,
.cons-box {
    padding: 24px;
    border-radius: 8px;
}

.pros-box {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.cons-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.pros-box h4,
.cons-box h4 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
}

.pros-box h4 {
    color: #047857;
}

.cons-box h4 {
    color: #b91c1c;
}

.pros-box ul,
.cons-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-box li,
.cons-box li {
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.5;
}

.pros-box li {
    color: #064e3b;
}

.cons-box li {
    color: #7f1d1d;
}

/* ============================================================
   EDITOR PLACEHOLDER (Anwendung-Section)
   ============================================================ */
.editor-placeholder {
    background: #fffbeb;
    border-left: 4px solid #fbbf24;
    border-radius: 8px;
    padding: 24px;
    color: var(--ap-grey-700);
    font-size: 14px;
    line-height: 1.7;
}

.editor-placeholder p {
    margin-bottom: 12px;
}

.editor-placeholder p:last-child {
    margin-bottom: 0;
}

.editor-placeholder ul {
    margin: 12px 0;
    padding-left: 24px;
}

.editor-placeholder li {
    margin-bottom: 6px;
}

/* ============================================================
   COMPARISON LINKS (Direkt-Vergleich)
   ============================================================ */
.comparison-links {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--ap-grey-200);
}

.comparison-links h3 {
    color: var(--ap-black);
    margin: 0 0 12px;
    font-size: 22px;
}

.comparison-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 700px;
}

.comparison-list li {
    margin-bottom: 12px;
}

.comparison-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid var(--ap-grey-200);
    border-radius: 8px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--ap-grey-700);
    transition: all 0.2s ease;
}

.comparison-list a:hover {
    border-color: var(--ap-primary);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.08);
    color: var(--ap-primary);
}

.comparison-list strong {
    color: var(--ap-black);
}

.comparison-list a:hover strong {
    color: var(--ap-primary);
}

.comparison-arrow {
    color: var(--ap-primary);
    font-weight: 700;
    font-size: 18px;
}

/* ============================================================
   CATEGORY DETAIL CARDS (Kategorien-Übersicht)
   ============================================================ */
.category-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin: 32px 0;
}

.category-detail-card {
    background: var(--ap-white);
    border: 1px solid var(--ap-grey-200);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.category-detail-card:hover {
    border-color: var(--ap-primary);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.08);
}

.category-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.category-detail-header .card-icon {
    font-size: 40px;
    margin: 0;
}

.category-detail-header h3 {
    margin: 0;
    font-size: 22px;
}

.category-detail-header h3 a {
    color: var(--ap-black);
    text-decoration: none;
}

.category-detail-header h3 a:hover {
    color: var(--ap-primary);
}

.category-intro {
    color: var(--ap-grey-500);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.category-sublinks {
    background: var(--ap-grey-50);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.category-sublinks h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--ap-grey-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
}

.category-sublinks ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-sublinks li {
    margin-bottom: 6px;
    font-size: 14px;
}

.category-sublinks a {
    color: var(--ap-primary);
    text-decoration: none;
}

.category-sublinks a:hover {
    color: var(--ap-primary-dark);
    text-decoration: underline;
}

.category-detail-link {
    margin-top: auto;
    color: var(--ap-primary) !important;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--ap-grey-200);
}

.category-detail-link:hover {
    color: var(--ap-primary-dark) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--ap-grey-100) !important;
    color: var(--ap-grey-700) !important;
    padding: 32px 24px !important;
    width: 100% !important;
    margin: 0 !important;
    border-top: 1px solid var(--ap-grey-200) !important;
}

.site-footer .footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 24px;
}

.site-footer .footer-col p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--ap-grey-500);
    margin: 0;
}

.site-footer .footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ap-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-footer .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-col li {
    margin-bottom: 8px;
}

.site-footer .footer-col a {
    color: var(--ap-primary);
    text-decoration: none;
    font-size: 13px;
}

.site-footer .footer-col a:hover {
    color: var(--ap-primary-dark);
}

.site-footer .footer-divider {
    border-top: 1px solid var(--ap-grey-200);
    padding-top: 16px;
    text-align: center;
}

.site-footer .footer-divider p {
    font-size: 12px;
    color: var(--ap-grey-500);
    margin: 0;
}

/* ============================================================
   MAX MEGA MENU - Custom Styles
   ============================================================ */

/* Hauptnavi-Items */
#mega-menu-wrap-primary > li.mega-menu-item > a.mega-menu-link {
    color: var(--ap-grey-700) !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    padding: 10px 16px !important;
    background: transparent !important;
}

#mega-menu-wrap-primary > li.mega-menu-item > a.mega-menu-link:hover,
#mega-menu-wrap-primary > li.mega-menu-item.mega-toggle-on > a.mega-menu-link {
    color: var(--ap-primary) !important;
    background: transparent !important;
}

/* Mega Menu Panel */
#mega-menu-wrap-primary #mega-menu-primary .mega-sub-menu {
    background: white !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    border-radius: 0 0 12px 12px !important;
    padding: 32px !important;
}

/* Spalten-Headlines */
#mega-menu-wrap-primary #mega-menu-primary .mega-sub-menu li.mega-menu-item.mega-menu-heading > a.mega-menu-link {
    color: var(--ap-primary) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding-bottom: 10px !important;
    margin-bottom: 8px !important;
    border-bottom: 2px solid var(--ap-grey-200) !important;
    background: transparent !important;
}

/* Submenu-Items */
#mega-menu-wrap-primary #mega-menu-primary .mega-sub-menu li.mega-menu-item > a.mega-menu-link {
    color: var(--ap-grey-700) !important;
    font-size: 14px !important;
    padding: 6px 8px !important;
    border-radius: 4px !important;
    background: transparent !important;
    line-height: 1.5 !important;
}

#mega-menu-wrap-primary #mega-menu-primary .mega-sub-menu li.mega-menu-item > a.mega-menu-link:hover {
    color: var(--ap-primary) !important;
    background: var(--ap-grey-50) !important;
    padding-left: 12px !important;
}

/* ============================================================
   ASTRA MOBILE MENU
   Hinweis: Mobile-Menu wird von Astra gerendert.
   Anpassungen erfolgen über: WP Admin → Design → Customizer
   ============================================================ */

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.ap-cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: apCookieFadeIn 0.3s ease;
}

@keyframes apCookieFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ap-cookie-banner {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: apCookieSlideUp 0.4s ease;
}

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

.ap-cookie-content {
    padding: 32px;
}

.ap-cookie-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ap-black);
    margin: 0 0 16px;
    line-height: 1.3;
}

.ap-cookie-text {
    color: var(--ap-grey-700);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.ap-cookie-text:last-of-type {
    margin-bottom: 24px;
}

.ap-cookie-text a {
    color: var(--ap-primary);
    text-decoration: underline;
}

.ap-cookie-text a:hover {
    color: var(--ap-primary-dark);
}

.ap-cookie-buttons {
    display: flex;
    gap: 12px;
}

.ap-cookie-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid;
    font-family: inherit;
}

.ap-cookie-btn-accept {
    background: var(--ap-primary);
    color: white;
    border-color: var(--ap-primary);
}

.ap-cookie-btn-accept:hover {
    background: var(--ap-primary-dark);
    border-color: var(--ap-primary-dark);
}

.ap-cookie-btn-decline {
    background: transparent;
    color: var(--ap-grey-700);
    border-color: var(--ap-grey-300);
}

.ap-cookie-btn-decline:hover {
    background: var(--ap-grey-50);
    border-color: var(--ap-grey-500);
    color: var(--ap-black);
}

/* Footer-Link Style */
.ap-cookie-settings-link {
    cursor: pointer;
}

@media (max-width: 480px) {
    .ap-cookie-content {
        padding: 24px 20px;
    }
    
    .ap-cookie-title {
        font-size: 19px;
    }
    
    .ap-cookie-buttons {
        flex-direction: column;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .cards-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .hero {
        padding: 60px 24px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .toc-grid {
        grid-template-columns: 1fr;
    }
    
    .product-hero-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .rating-card {
        padding: 24px 16px;
    }
    
    .spec-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .proscons-grid {
        grid-template-columns: 1fr;
    }
    
    .rating-overall-value {
        font-size: 36px;
    }
    
    .fazit-box {
        padding: 24px;
    }
    
    .fazit-title {
        font-size: 22px;
    }
    
    .fazit-quick-info {
        grid-template-columns: 1fr;
    }
    
    .comparison-list a {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
