/*
Theme Name: 4kfilmliste Child
Theme URI: https://4kfilmliste.de/
Description: Child Theme für GeneratePress
Author: ProLeads
Template: generatepress
Version: 1.0.0
Text Domain: 4kfilmliste-child
*/

/* =============================================
   Base page background – overrides GP var(--base-2) gray
   ============================================= */
body {
    background-color: #ffffff;
}

/* AdSense anchor ad — hart begrenzt auf 60 px, alle Google-injizierten Wrapper erfasst */
ins.adsbygoogle[data-ad-format="anchor"],
ins.adsbygoogle[data-ad-format="anchor"] > *,
ins.adsbygoogle[data-ad-format="anchor"] iframe,
div[id^="google_ads_anchor"],
div[id^="google_ads_anchor"] > *,
#google_ads_anchor,
#google_ads_anchor > * {
    max-height: 60px !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

/* =============================================
   Navigation – breathing room before border-bottom
   padding-bottom on the nav element itself moves the border down
   ============================================= */
.fkfl-sticky-bar .fkfl-main-navigation {
    padding-bottom: 20px;
}

/* =============================================
   Inter Font (self-hosted, DSGVO-konform)
   ============================================= */

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body,
button,
input,
select,
textarea {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
}

@media (max-width: 767px) {
    body,
    button,
    input,
    select,
    textarea {
        font-size: 14px;
    }
}

/* Disclaimer-Texte im Preisvergleich */
.fkf-disclaimer-top,
.fkf-disclaimer-small-top,
.fkf-bottom-disclaimer {
    font-size: 10px;
}

@media (max-width: 767px) {
    .fkf-disclaimer-top,
    .fkf-disclaimer-small-top,
    .fkf-bottom-disclaimer {
        font-size: 9px;
    }
}

/* Mobile Menü (Slide-in) */
@media (max-width: 767px) {
    .fkfl-mobile-menu-list a,
    .fkfl-mobile-menu-list li {
        font-size: 14px;
    }
}

/* Breadcrumbs (GP + Yoast + WooCommerce + custom) */
.breadcrumb,
.breadcrumbs,
.woocommerce-breadcrumb,
#breadcrumbs,
.yoast-breadcrumb,
.fkfl-breadcrumb {
    font-size: 13px;
}

@media (max-width: 767px) {
    .breadcrumb,
    .breadcrumbs,
    .woocommerce-breadcrumb,
    #breadcrumbs,
    .yoast-breadcrumb,
    .fkfl-breadcrumb {
        font-size: 12px;
    }
}

/* =============================================
   Responsive YouTube / Video Embeds (global)
   ============================================= */

/* Gutenberg wp-block-embed figure */
figure.wp-block-embed,
.wp-block-embed {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Responsive 16:9-Wrapper — Gutenberg + Classic Editor embed-youtube span */
.wp-block-embed__wrapper,
.embed-youtube,
.embed-vimeo {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

/* iframe füllt Wrapper */
.wp-block-embed__wrapper iframe,
.embed-youtube iframe,
.embed-youtube .youtube-player,
.embed-vimeo iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Bare iframes im Contentbereich */
.entry-content > iframe,
.entry-content p > iframe,
.inside-article > iframe,
.inside-article p > iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: none;
}

/* =============================================
   Globale Badge-Klassen
   ============================================= */

.badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    white-space: nowrap;
    letter-spacing: 0.3px;
    border: none;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
    transition: transform 0.15s ease;
}

.badge:hover {
    transform: translateY(-1px);
}

.badge-real4k,
.fkfl-feature-badges .badge-real4k {
    background: linear-gradient(135deg, #ffe8a3, #c69214);
    color: #1b1b1b;
    border: none;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.badge-dolby-vision  { background: linear-gradient(135deg, #8a4dff, #3c1361); }
.badge-hdr10         { background: linear-gradient(135deg, #7cc7ff, #2f80ed); }
.badge-hdr10plus     { background: linear-gradient(135deg, #00e5c3, #0047ff); }
.badge-atmos         { background: linear-gradient(135deg, #0f4cc9, #061a40); }
.badge-dtsx          { background: linear-gradient(135deg, #ff8c42, #8a2d00); }
.badge-auro3d        { background: linear-gradient(135deg, #5fd35f, #1c8b4a); }
.badge-extended      { background: linear-gradient(135deg, #ff4d4d, #7a0000); }
.badge-3d            { background: linear-gradient(135deg, #fda44d 0%, #ea580c 100%); color: #ffffff; border: none; box-shadow: none; }
.badge-uhd-premium   { background: linear-gradient(135deg, #667eea, #764ba2); }
.badge-hlg           { background: linear-gradient(135deg, #0e7490 0%, #082f49 100%); color: #ffffff; border: none; box-shadow: none; }
.badge-upscaling     { background: linear-gradient(135deg, #667eea, #764ba2); }
.badge-wlan          { background: linear-gradient(135deg, #38bdf8, #0369a1); }

/* ── Filter-Dot-Farben (wiederverwendbar für alle Sondereditionen) ────────── */
:root {
    --dot-all:     #22c55e;
    --dot-dv:      #3b82f6;
    --dot-hdr10p:  #00e5c3;
    --dot-hdr10:   #f59e0b;
    --dot-atmos:   #8b5cf6;
    --dot-dtsx:    #06b6d4;
    --dot-auro3d:  #94a3b8;
    --dot-hlg:     #0e7490;
}
.dot-all    { background: var(--dot-all); }
.dot-dv     { background: var(--dot-dv); }
.dot-hdr10p { background: var(--dot-hdr10p); }
.dot-hdr10  { background: var(--dot-hdr10); }
.dot-atmos  { background: var(--dot-atmos); }
.dot-dtsx   { background: var(--dot-dtsx); }
.dot-auro3d { background: var(--dot-auro3d); }
.dot-hlg    { background: var(--dot-hlg); }

/* Anchor Nav — Unterstriche unterdrücken (überschreibt Plugin-CSS) */
#page .fkfl-anchor-nav .fkfl-anchor-link,
#page .fkfl-anchor-nav .fkfl-anchor-link:link,
#page .fkfl-anchor-nav .fkfl-anchor-link:visited,
#page .fkfl-anchor-nav .fkfl-anchor-link:hover,
#page .fkfl-anchor-nav .fkfl-anchor-link:active,
#page .fkfl-anchor-nav .fkfl-anchor-link:focus { text-decoration: none; }

/* =============================================
   Sticky Mobile Buy-Bar
   ============================================= */

.fkfl-sticky-buy-bar {
    display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
    .fkfl-sticky-buy-bar {
        display: flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        padding: 10px 16px;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(100%);
        transition: transform 0.25s ease;
    }

    .fkfl-sticky-buy-bar.fkfl-sticky-buy-bar--visible {
        transform: translateY(0);
    }

    .fkfl-sticky-buy-bar__title {
        flex: 1;
        font-size: 13px;
        font-weight: 600;
        color: #1e293b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    .fkfl-sticky-buy-bar__price {
        font-size: 14px;
        font-weight: 700;
        color: #1e293b;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .fkfl-sticky-buy-bar__btn {
        flex-shrink: 0;
        height: 36px;
        padding: 0 18px;
        border-radius: 6px;
        background: #2563eb;
        color: #ffffff;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        transition: background 0.15s ease;
        white-space: nowrap;
    }

    .fkfl-sticky-buy-bar__btn:hover {
        background: #1d4ed8;
        color: #ffffff;
        text-decoration: none;
    }
}

/* =============================================
   Footer
   ============================================= */

.fkfl-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
}

.fkfl-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.fkfl-footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 48px 0 40px;
}

.fkfl-footer-col h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px;
}

.fkfl-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fkfl-footer-col ul li a {
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    transition: color 0.15s ease;
}

.fkfl-footer-col ul li a:hover {
    color: #2563eb;
    text-decoration: none;
}

/* Newsletter Strip */
.fkfl-footer-newsletter {
    padding: 28px 0;
    margin: 0;
    background: linear-gradient(135deg, #4a78c4 0%, #2254a6 100%);
    border-top: 2px solid #e2e8f0;
}

.fkfl-footer-newsletter .fkfl-footer-newsletter-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.fkfl-footer-newsletter .fkfl-footer-newsletter-text {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fkfl-footer-newsletter .fkfl-footer-newsletter-text strong {
    font-size: 14px;
    color: #ffffff;
}

.fkfl-footer-newsletter .fkfl-footer-newsletter-text span {
    font-size: 12px;
    color: rgba(255,255,255,0.82);
}

.fkfl-footer-newsletter .fkfl-footer-newsletter-form {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.fkfl-footer-newsletter .fkfl-footer-newsletter-input {
    width: 220px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.18);
    color: #ffffff;
    font-size: 14px;
}

.fkfl-footer-newsletter .fkfl-footer-newsletter-input::placeholder {
    color: rgba(255,255,255,0.65);
}

.fkfl-footer-newsletter .fkfl-footer-newsletter-input:focus {
    outline: 2px solid rgba(255,255,255,0.8);
    outline-offset: 1px;
    background: rgba(255,255,255,0.25);
}

.fkfl-footer-newsletter .fkfl-footer-newsletter-btn {
    height: 36px;
    padding: 0 18px;
    border-radius: 6px;
    border: none;
    background: #ffffff;
    color: #2254a6;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.fkfl-footer-newsletter .fkfl-footer-newsletter-btn:hover {
    background: #e8f0fe;
}

.fkfl-footer-newsletter .fkfl-footer-newsletter-hint {
    width: 100%;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin: 6px 0 0;
}

.fkfl-footer-newsletter .fkfl-footer-newsletter-hint a {
    color: rgba(255,255,255,0.85);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .fkfl-footer-newsletter-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .fkfl-footer-newsletter-form {
        width: 100%;
    }
    .fkfl-footer-newsletter-input {
        flex: 1;
        width: auto;
    }
}

.fkfl-footer-copyright {
    margin: 0 0 24px;
    font-size: 13px;
    color: #64748b;
}

@media (max-width: 768px) {
    .fkfl-footer-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        padding: 36px 0 28px;
    }
}

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

/* =============================================
   Breadcrumb bar – global styles
   ============================================= */
.fkfl-breadcrumb-wrapper {
    background: #fff;
}
.fkfl-breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 1rem;
}
.fkfl-breadcrumb {
    font-size: 13px;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.fkfl-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}
.fkfl-breadcrumb a:hover {
    color: #1e40af;
}
.fkfl-breadcrumb .breadcrumb_last {
    color: #1e293b;
    font-weight: 600;
}
.fkfl-breadcrumb-sep {
    color: #94a3b8;
    padding: 0 4px;
}

/* =============================================
   Content Egg – List Template Layout Fix
   Bootstrap-Grid fehlt im Theme → Flexbox-Override
   ============================================= */
.cegg-list { display: flex; flex-direction: column; gap: 0; margin: 0 0 24px; }
.cegg-list .cegg-list-card { margin-bottom: 8px; }
.cegg-list .cegg-list-card .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 0;
}
.cegg-list .cegg-list-card-img-col {
    flex: 0 0 90px !important;
    max-width: 90px !important;
    width: 90px !important;
    padding: 0 12px 0 0;
}
.cegg-list .cegg-list-card-img-col img {
    max-width: 90px;
    height: auto;
    display: block;
}
.cegg-list .col-9.col-md-7 {
    flex: 1 1 auto !important;
    max-width: none !important;
    width: auto !important;
    padding: 0 12px;
}
.cegg-list .col-9.col-md-3 {
    flex: 0 0 160px !important;
    max-width: 160px !important;
    width: 160px !important;
    padding: 0;
    text-align: right;
    margin-left: 0 !important;
    offset: 0;
}
/* Offset-3 Bootstrap-Klasse deaktivieren */
.cegg-list .offset-3 { margin-left: 0 !important; }
.cegg-list .offset-md-0 { margin-left: 0 !important; }
/* Preise */
.cegg-list .cegg-price { font-size: 20px; font-weight: 700; }
.cegg-list .cegg-old-price { font-size: 13px; color: #94a3b8; }
/* Kaufen-Button */
.cegg-list .cegg-card-button .btn,
.cegg-list .cegg-card-button a {
    display: inline-block;
    padding: 7px 16px;
    border: 1.5px solid #2563eb !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb !important;
    text-decoration: none !important;
    background: transparent !important;
    transition: background .12s, color .12s;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.cegg-list .cegg-card-button .btn:hover,
.cegg-list .cegg-card-button a:hover {
    background: #2563eb !important;
    color: #fff !important;
}
/* Card border + hover */
.cegg-list .cegg-list-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px;
    background: #fff;
    transition: border-color .15s;
    overflow: hidden;
    position: relative;
}
.cegg-list .cegg-list-card:hover { border-color: #2563eb !important; }
/* Bootstrap .ratio override — gleiche Bildhöhe ohne Bootstrap */
.cegg-list .cegg-list-card-img-col .ratio {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}
.cegg-list .cegg-list-card-img-col img {
    max-width: 80px !important;
    max-height: 80px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}
/* Bootstrap .hstack ohne Bootstrap (Preis-Zeile: alter Preis vor neuem) */
.cegg-list .hstack {
    display: flex !important;
    align-items: center;
    gap: 8px;
}
/* Disclaimer-Zeile: spacing + Bootstrap-Row ohne Bootstrap */
.cegg-list > .row,
.fkfl-ce-list ~ .row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 12px;
    gap: 4px;
}
.cegg-price-disclaimer,
.cegg-block-disclaimer {
    font-size: 11px !important;
    color: #94a3b8 !important;
    font-style: italic;
}
/* Kleineres Info-Icon im Preis-Hinweis + Abstand davor */
.cegg-price-disclaimer svg {
    width: 11px !important;
    height: 11px !important;
    vertical-align: middle;
    opacity: 0.75;
}
.cegg-price-disclaimer a {
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}
@media (max-width: 600px) {
    .cegg-list .cegg-list-card .row { flex-wrap: wrap !important; }
    .cegg-list .col-9.col-md-3 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; text-align: left; }
}

/* ============================================
   ERWÄHNT IN — Mentions Section
   Zeigt News/Deals/Specials/Gewinnspiele, die
   den Produkttitel im Titel erwähnen.
   ============================================ */
body .fkfl-mentions-section {
    width: 100%;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 2rem 0;
}

.fkfl-mentions-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem;
}

.fkfl-mentions-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fkfl-mentions-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.fkfl-mentions-item:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
    color: #1e293b;
    text-decoration: none;
}

.fkfl-mentions-badge {
    flex-shrink: 0;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fkfl-mentions-badge--news       { background: #dbeafe; color: #1d4ed8; }
.fkfl-mentions-badge--deal       { background: #dcfce7; color: #15803d; }
.fkfl-mentions-badge--special    { background: #ede9fe; color: #6d28d9; }
.fkfl-mentions-badge--gewinnspiel { background: #fef3c7; color: #b45309; }

.fkfl-mentions-item-title {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fkfl-mentions-date {
    flex-shrink: 0;
    font-size: 12px;
    color: #64748b;
}

@media (max-width: 600px) {
    .fkfl-mentions-date { display: none; }
    .fkfl-mentions-item { padding: 9px 11px; }
}
