/**
 * Header Styles für 4kfilmliste
 * Version: 1.0.1 - Fixed positioning issues
 * 
 * @package     4kfilmliste
 * @version     1.0.1
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --fkfl-primary: #1d4884;
    --fkfl-accent: #FACF39;
    --fkfl-text-dark: #212529;
    --fkfl-text-muted: #6c757d;
    --fkfl-border: #e9ecef;
    --fkfl-white: #ffffff;
    --fkfl-transition: all 0.3s ease;
    --fkfl-max-width: 1200px;
}

/* ============================================
   CONTAINER - GeneratePress kompatibel
   ============================================ */
.fkfl-container {
    max-width: var(--fkfl-max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ============================================
   SITE HEADER - Kein Fixed Positioning
   ============================================ */
.fkfl-site-header {
    position: relative;
    width: 100%;
    overflow-x: hidden; /* prevent header ad from expanding page width */
    background: var(--fkfl-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

/* ============================================
   TOP BAR
   ============================================ */
.fkfl-top-bar {
    background: var(--fkfl-white);
    border-bottom: 1px solid var(--fkfl-border);
    font-size: 13px;
    padding: 8px 0;
}

.fkfl-top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Top Bar Highlights */
.fkfl-top-bar-highlights {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.fkfl-top-bar-label {
    font-weight: 600;
    color: var(--fkfl-text-dark);
    white-space: nowrap;
}

.fkfl-top-bar-links {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.fkfl-top-bar-links a {
    color: var(--fkfl-text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--fkfl-transition);
}

.fkfl-top-bar-links a:hover {
    color: var(--fkfl-primary);
}

/* Top Bar Left Side */
.fkfl-top-bar-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.fkfl-filmliste-link {
    color: var(--fkfl-text-muted);
    text-decoration: none;
    transition: var(--fkfl-transition);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fkfl-filmliste-link:hover {
    color: var(--fkfl-primary);
}

/* Top Bar Menu */
.fkfl-top-bar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.fkfl-top-bar-menu li {
    margin: 0;
}

.fkfl-top-bar-menu a {
    color: var(--fkfl-text-muted);
    text-decoration: none;
    transition: var(--fkfl-transition);
    font-weight: 400;
}

.fkfl-top-bar-menu a:hover {
    color: var(--fkfl-primary);
}

/* Top Bar Right Side */
.fkfl-top-bar-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* User Navigation */
.fkfl-user-nav a {
    color: var(--fkfl-text-muted);
    text-decoration: none;
    transition: var(--fkfl-transition);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fkfl-user-nav a:hover {
    color: var(--fkfl-primary);
}

/* Social Links */
.fkfl-social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.fkfl-social-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--fkfl-transition);
    opacity: 0.6;
}

.fkfl-social-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.fkfl-social-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--fkfl-text-muted);
}

.fkfl-social-icon:hover svg {
    fill: var(--fkfl-primary);
}

/* ============================================
   MAIN HEADER
   ============================================ */
.fkfl-main-header {
    background: var(--fkfl-white);
    padding: 25px 0;
    border-bottom: 1px solid var(--fkfl-border);
}

.fkfl-main-header-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.fkfl-site-logo {
    flex-shrink: 0;
}

.fkfl-site-logo img {
    max-height: 60px;
    width: auto;
}

.fkfl-site-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--fkfl-primary);
    text-decoration: none;
    letter-spacing: -1px;
    transition: opacity 0.2s;
}

.fkfl-site-title:hover {
    opacity: 0.8;
}

/* Header Ad 728×90 */
.fkfl-main-header-inner .fkfl-ad-slot--728x90 {
    margin-left: 40px;
    flex-shrink: 1;
    max-width: 728px;
    width: 728px;
    height: 90px;
    max-height: 90px; /* clip taller AdSense formats */
    overflow: hidden;
}

/* ============================================
   MAIN NAVIGATION
   ============================================ */
.fkfl-main-navigation {
    background: var(--fkfl-white);
    position: relative;
    padding: 0;
    z-index: 100;
}

.fkfl-nav-inner {
    display: flex;
    align-items: center;
    position: relative;
}

.fkfl-main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.fkfl-main-menu > li {
    position: relative;
}

.fkfl-main-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 20px 16px 44px;
    color: var(--fkfl-text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--fkfl-transition);
    position: relative;
}

.fkfl-main-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--fkfl-accent);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.fkfl-main-menu > li:hover > a {
    color: var(--fkfl-primary);
}

.fkfl-main-menu > li:hover > a::after,
.fkfl-main-menu > li.current-menu-item > a::after {
    transform: scaleX(1);
}

/* Menu Arrow */
.fkfl-main-menu .menu-arrow {
    width: 10px;
    height: 10px;
    fill: #adb5bd;
    transition: transform 0.2s;
}

.fkfl-main-menu > li:hover .menu-arrow {
    transform: rotate(180deg);
}

/* ============================================
   MEGA MENU
   ============================================ */
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 900px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
    z-index: 1000;
    border-top: 2px solid var(--fkfl-accent);
}

.fkfl-main-menu > li:hover .mega-menu {
    display: block;
}

.mega-menu-inner {
    width: 100%;
}

.mega-menu-content {
    width: 100%;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.mega-menu-column h3 {
    color: var(--fkfl-text-dark);
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-menu-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu-column li {
    margin-bottom: 10px;
}

.mega-menu-column a {
    color: var(--fkfl-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--fkfl-transition);
    display: inline-block;
}

.mega-menu-column a:hover {
    color: var(--fkfl-primary);
    transform: translateX(3px);
}

/* Visual Mega Menu */
.mega-menu-visual {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.mega-menu-item {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.mega-menu-item:hover {
    transform: translateY(-5px);
}

.mega-menu-item-image {
    width: 100%;
    height: 120px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #dee2e6;
    border: 1px solid var(--fkfl-border);
    transition: all 0.3s;
}

.mega-menu-item:hover .mega-menu-item-image {
    border-color: var(--fkfl-accent);
    box-shadow: 0 4px 12px rgba(250, 207, 57, 0.2);
}

.mega-menu-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--fkfl-text-dark);
    margin-bottom: 5px;
}

.mega-menu-item p {
    font-size: 13px;
    color: var(--fkfl-text-muted);
    line-height: 1.4;
}

/* Mega Menu Product Images */
.mega-menu-product {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.mega-menu-product-image {
    width: 60px;
    height: 80px;
    flex-shrink: 0;
}

.mega-menu-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.mega-menu-product-info {
    flex: 1;
}

.mega-menu-product-info h4 {
    margin: 0 0 5px;
    font-size: 14px;
}

.mega-menu-product-info h4 a {
    color: var(--fkfl-text-dark);
    text-decoration: none;
}

.mega-menu-product-info h4 a:hover {
    color: var(--fkfl-primary);
}

/* Badge Styles für Mega Menu */
.mega-menu .badge {
    display: inline-block;
    padding: 2px 6px;
    background: #e9ecef;
    border-radius: 3px;
    font-size: 10px;
    color: #495057;
    margin-right: 4px;
}

.mega-menu .badge.dolby-atmos {
    background: #0084ff;
    color: #fff;
}

.mega-menu .badge.dolby-vision {
    background: #6a4c93;
    color: #fff;
}

/* ============================================
   SEARCH TOGGLE
   ============================================ */
.fkfl-search-toggle {
    background: none;
    border: none;
    color: var(--fkfl-text-dark);
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.fkfl-search-toggle:hover {
    color: inherit;
    background: none;
    background-color: transparent;
}

.fkfl-search-toggle-text {
    display: none;
    font-size: 14px;
    font-weight: 600;
}

.fkfl-search-toggle svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* ============================================
   SEARCH MODAL - FIXED POSITIONING
   ============================================ */
.fkfl-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    padding-top: clamp(20px, 6vh, 60px);
}

.fkfl-search-modal.is-active {
    display: flex;
}

.fkfl-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(23, 35, 61, 0.45);
    backdrop-filter: blur(10px);
}

.fkfl-search-container {
    position: relative;
    width: min(1320px, 100%);
    max-height: 92vh;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(215, 227, 243, 0.9);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(17, 32, 63, 0.14);
    overflow: hidden;
    z-index: 1;
}

/* Search Box */
.fkfl-search-box {
    background: transparent;
    overflow: hidden;
}

/* Search Header */
.fkfl-search-header {
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px 0;
}

.fkfl-search-close {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid #e6edf7;
    background: #fff;
    color: #7b8798;
    font-size: 28px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: .18s ease;
    padding: 0;
}

.fkfl-search-close:hover {
    transform: translateY(-1px);
    border-color: #c8d7ec;
    color: #1d2a40;
    box-shadow: 0 8px 20px rgba(30, 57, 103, 0.08);
}

/* Search Input Wrap (new label approach) */
.fkfl-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    margin: 12px 20px 0;
    padding: 0 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fafdff 100%);
    border: 1px solid #d7e3f3;
    box-shadow: 0 8px 24px rgba(26, 43, 78, 0.06), inset 0 1px 0 rgba(255,255,255,.8);
    cursor: text;
}

.fkfl-search-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #eff5ff;
    color: #2563eb;
    flex-shrink: 0;
}

.fkfl-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #182131;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.02em;
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
}

.fkfl-search-input::placeholder {
    color: #8793a7;
    font-weight: 400;
}

.fkfl-search-input::-webkit-search-decoration,
.fkfl-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.fkfl-search-spinner {
    flex-shrink: 0;
}

/* Search Subrow */
.fkfl-search-subrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 10px 20px 4px;
    padding: 0 4px;
}
.fkfl-search-hint {
    color: #6e7b8f;
    font-size: 13px;
}
.fkfl-search-kbd-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.fkfl-search-kbd {
    min-width: 32px;
    height: 28px;
    padding: 0 9px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e6edf7;
    color: #637086;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(18, 34, 61, 0.04);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--fkfl-border);
    border-top-color: var(--fkfl-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Search Filters */
.fkfl-search-filters {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--fkfl-border);
}

.fkfl-filter-title {
    font-size: 13px;
    color: var(--fkfl-text-muted);
    margin-bottom: 10px;
}

.fkfl-filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fkfl-filter-btn {
    padding: 8px 18px;
    border: 2px solid #dee2e6;
    background: var(--fkfl-white);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--fkfl-text-dark);
    font-weight: 500;
}

.fkfl-filter-btn:hover {
    border-color: var(--fkfl-primary);
    color: var(--fkfl-primary);
    background: #f8f9fa;
}

.fkfl-filter-btn.is-active {
    background: var(--fkfl-primary);
    color: var(--fkfl-white);
    border-color: var(--fkfl-primary);
}

.fkfl-search-calendar {
    padding: 12px 20px 0;
}

.fkfl-search-calendar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    background: #2563EB;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.fkfl-search-calendar-link:hover {
    background: #1e40af;
}

/* Search Results */
.fkfl-search-results {
    max-height: calc(92vh - 200px);
    overflow-y: auto;
    padding: 14px 20px 20px;
}

.fkfl-search-best-match {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--fkfl-text-muted);
    margin-bottom: 12px;
}

.fkfl-search-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: var(--fkfl-text-muted);
}

.fkfl-search-placeholder svg {
    margin-bottom: 20px;
    opacity: 0.3;
}

.fkfl-search-placeholder p {
    margin: 10px 0;
}

.fkfl-search-placeholder small {
    font-size: 13px;
}

/* Pre-Search: Two-column layout */
.fkfl-sq-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 14px;
    align-items: start;
}
.fkfl-sq-label {
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .12em; color: #8090a6;
    margin: 0 0 10px;
}
.fkfl-sq-panel {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    border: 1px solid #e6edf7;
    border-radius: 22px;
    padding: 16px;
}

/* Chips */
.fkfl-sq-chips {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 14px;
}
.fkfl-sq-chip {
    text-decoration: none; color: #24406b;
    background: #eff5ff; border: 1px solid #dce8ff;
    padding: 9px 13px; border-radius: 999px;
    font-size: 13px; font-weight: 600;
    transition: .18s ease;
}
.fkfl-sq-chip:hover {
    transform: translateY(-1px);
    background: #e4eeff;
    border-color: #c9ddff;
    text-decoration: none;
    color: #24406b;
}

/* Link cards (2-col grid) */
.fkfl-sq-linkcards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.fkfl-sq-linkcard {
    text-decoration: none; color: #182131;
    border: 1px solid #e6edf7;
    background: #f8fbff;
    border-radius: 16px;
    padding: 12px;
    transition: .18s ease;
    display: block;
}
.fkfl-sq-linkcard:hover {
    transform: translateY(-2px);
    border-color: #cadbf1;
    box-shadow: 0 10px 20px rgba(23, 39, 70, 0.06);
    text-decoration: none;
    color: #182131;
}
.fkfl-sq-linkcard strong {
    display: block; font-size: 14px; margin-bottom: 3px;
}
.fkfl-sq-linkcard span {
    display: block; color: #6e7b8f; font-size: 12px; line-height: 1.4;
}

/* Highlight cards panel */
.fkfl-sq-panel-head { margin-bottom: 12px; }
.fkfl-sq-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.fkfl-sq-hcard {
    display: block; text-decoration: none; color: #182131;
    background: #fff; border: 1px solid #e6edf7;
    border-radius: 18px; overflow: hidden;
    transition: .18s ease;
}
.fkfl-sq-hcard:hover {
    transform: translateY(-3px);
    border-color: #cadbf1;
    box-shadow: 0 14px 26px rgba(23, 39, 70, 0.08);
    text-decoration: none;
    color: #182131;
}
.fkfl-sq-hcard-thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #dde8f9, #f5f9ff);
    overflow: hidden;
}
.fkfl-sq-hcard-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.fkfl-sq-hcard-badge {
    position: absolute; left: 8px; top: 8px;
    display: inline-flex; align-items: center;
    min-height: 24px; padding: 0 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(210, 224, 243, .9);
    color: #35527d; font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .05em;
    backdrop-filter: blur(4px);
}
.fkfl-sq-hcard-body { padding: 10px 11px 12px; }
.fkfl-sq-hcard-title {
    margin: 0; font-size: 13px; line-height: 1.3;
    letter-spacing: -.01em;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* Responsive */
@media (max-width: 900px) {
    .fkfl-sq-content { grid-template-columns: 1fr; }
    .fkfl-sq-highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .fkfl-sq-linkcards { grid-template-columns: 1fr 1fr; }
    .fkfl-sq-highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fkfl-search-input { font-size: 18px; }
    .fkfl-search-input-wrap { min-height: 58px; margin: 10px 14px 0; }
    .fkfl-search-subrow { margin: 8px 14px 2px; }
    .fkfl-search-kbd-row { display: none; }
    .fkfl-search-results { padding: 12px 14px; }
}

/* Search Suggestions */
.fkfl-search-suggestions {
    margin-top: 30px;
}

.fkfl-search-more {
    margin-top: 10px;
    text-align: center;
}

.fkfl-search-more-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--fkfl-border);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--fkfl-text-dark);
    background: #f8f9fa;
}

.fkfl-search-more-link:hover {
    color: var(--fkfl-primary);
    border-color: var(--fkfl-primary);
}

.fkfl-search-suggestions h4 {
    font-size: 14px;
    color: var(--fkfl-text-muted);
    margin-bottom: 15px;
}

.fkfl-suggestion-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.suggestion-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-tag:hover {
    background: var(--fkfl-primary);
    color: white;
    border-color: var(--fkfl-primary);
}

/* Search Results Categories */
.fkfl-results-category {
    margin-bottom: 30px;
}

.fkfl-results-category h3 {
    font-size: 18px;
    color: var(--fkfl-primary);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fkfl-accent);
}

.fkfl-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.fkfl-result-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--fkfl-border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    background: var(--fkfl-white);
}

.fkfl-result-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.fkfl-result-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.fkfl-result-content {
    padding: 12px;
}

.fkfl-result-content h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.3;
}

.fkfl-result-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.fkfl-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    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);
}

.fkfl-badge-dolby-vision { background: linear-gradient(135deg, #8a4dff, #3c1361); }
.fkfl-badge-atmos        { background: linear-gradient(135deg, #0f4cc9, #061a40); }
.fkfl-badge-dtsx         { background: linear-gradient(135deg, #ff8c42, #8a2d00); }
.fkfl-badge-real-4k      { 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); }

/* Search Result Items (List View) */
.fkfl-search-category {
    margin-bottom: 30px;
}

.fkfl-search-category h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--fkfl-text-muted);
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.fkfl-search-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--fkfl-white);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: inherit;
    transition: all 0.2s;
    align-items: flex-start;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.fkfl-search-item:hover {
    background: #f8f9fa;
    border-color: var(--fkfl-primary);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Search Item Images */
.fkfl-search-item-image {
    width: 100px;
    height: 150px;
    background: var(--fkfl-white);
    border: 1px solid #e9ecef;
    border-radius: 4px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.fkfl-search-item-image.product {
    background: var(--fkfl-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 11px;
    text-align: center;
    padding: 5px;
    border: 1px solid #dee2e6;
}

.fkfl-search-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fkfl-search-item-image.news {
    width: 200px;
    height: 105px;
    background: #f8f9fa;
}

.fkfl-search-item-image.news img {
    object-fit: cover;
}

.fkfl-search-item-content {
    flex: 1;
    min-width: 0;
}

.fkfl-search-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--fkfl-text-dark);
    margin-bottom: 6px;
    line-height: 1.2;
}

.fkfl-search-item-meta {
    font-size: 14px;
    color: var(--fkfl-text-muted);
    line-height: 1.4;
    margin-bottom: 8px;
}

.fkfl-search-item-meta div {
    margin-bottom: 4px;
}

.fkfl-search-item-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e9ecef;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #495057;
    text-decoration: none;
    transition: transform 0.15s ease;
    white-space: nowrap;
    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);
}

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

.badge.dolby-atmos   { background: linear-gradient(135deg, #0f4cc9, #061a40); color: #fff; }
.badge.dolby-vision  { background: linear-gradient(135deg, #8a4dff, #3c1361); color: #fff; }
.badge.real-4k       { 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.hdr           { background: linear-gradient(135deg, #7cc7ff, #2f80ed); color: #fff; }
.badge.hdr10plus     { background: linear-gradient(135deg, #00e5c3, #0047ff); color: #fff; }
.badge.dts-x         { background: linear-gradient(135deg, #ff8c42, #8a2d00); color: #fff; }
.badge.auro3d        { background: linear-gradient(135deg, #5fd35f, #1c8b4a); color: #fff; }
.badge.extended      { background: linear-gradient(135deg, #ff4d4d, #7a0000); color: #fff; }

.badge.new {
    background: #28a745;
    color: white;
}

.badge.genre {
    background: #6c757d;
    color: white;
}

/* Price Tag */
.price-tag {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
    margin-top: 5px;
}

.price-tag .old-price {
    text-decoration: line-through;
    color: var(--fkfl-text-muted);
    font-size: 14px;
    font-weight: 400;
    margin-right: 8px;
}

.deal-timer {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}

/* Body Lock */
body.search-modal-open {
    overflow: hidden;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.fkfl-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    pointer-events: none;
}

.fkfl-mobile-menu.is-active {
    pointer-events: all;
}

.fkfl-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.fkfl-mobile-menu.is-active .fkfl-mobile-menu-overlay {
    opacity: 1;
}

.fkfl-mobile-menu-container {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: var(--fkfl-white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.fkfl-mobile-menu.is-active .fkfl-mobile-menu-container {
    transform: translateX(0);
}

.fkfl-mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid var(--fkfl-border);
    display: flex;
    justify-content: flex-end;
}

.fkfl-mobile-menu-close {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fkfl-mobile-menu-nav {
    padding: 20px;
}

.fkfl-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fkfl-mobile-menu-list li {
    margin-bottom: 10px;
    border-bottom: 1px solid var(--fkfl-border);
}

.fkfl-mobile-menu-list a {
    display: block;
    padding: 10px 5px;
    color: var(--fkfl-text-dark);
    text-decoration: none;
    font-weight: 500;
}

/* Mobile Toggle */
.fkfl-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.fkfl-menu-toggle-icon {
    display: block;
	width: 24px;
    height: 18px;
    position: relative;
}

.fkfl-menu-toggle-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--fkfl-text-dark);
    position: absolute;
    left: 0;
    transition: var(--fkfl-transition);
}

.fkfl-menu-toggle-icon span:nth-child(1) { 
    top: 0; 
}

.fkfl-menu-toggle-icon span:nth-child(2) { 
    top: 50%; 
    transform: translateY(-50%); 
}

.fkfl-menu-toggle-icon span:nth-child(3) { 
    bottom: 0; 
}

/* Mobile Toggle Active State */
.fkfl-menu-toggle.active .fkfl-menu-toggle-icon span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.fkfl-menu-toggle.active .fkfl-menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.fkfl-menu-toggle.active .fkfl-menu-toggle-icon span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */
.fkfl-search-loading,
.fkfl-search-error,
.fkfl-search-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--fkfl-text-muted);
}

.fkfl-search-error {
    color: #dc3545;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .fkfl-container {
        padding: 0 20px;
    }
    
    .fkfl-ad-header {
        width: 468px;
        height: 60px;
    }
    
    .mega-menu {
        min-width: 700px;
    }
    
    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .mega-menu-visual {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .fkfl-main-menu > li > a {
        font-size: 14px;
        padding: 18px 12px;
    }
    
    .fkfl-header-ads {
        display: none;
    }

    .fkfl-ad-slot--728x90 {
        display: none;
    }
    
    .mega-menu {
        min-width: 600px;
    }
}

@media (max-width: 768px) {
    /* Container */
    .fkfl-container {
        padding: 0 15px;
    }
    
    /* Compact Top Bar */
    .fkfl-top-bar {
        display: block;
        font-size: 12px;
        padding: 6px 0;
    }

    .fkfl-top-bar-inner {
        gap: 10px;
    }

    .fkfl-top-bar-highlights {
        flex: 1;
        overflow: hidden;
    }

    .fkfl-top-bar-links {
        gap: 12px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .fkfl-top-bar-links::-webkit-scrollbar {
        display: none;
    }

    .fkfl-top-bar-nav {
        display: flex;
    }

    .fkfl-social-links {
        display: flex;
    }
    
    .fkfl-main-menu {
        display: none;
    }
    
    .mega-menu {
        display: none !important;
    }
    
    /* Show Mobile Toggle */
    .fkfl-menu-toggle {
        display: block;
    }
    
    /* Adjust Main Header */
    .fkfl-main-header {
        padding: 15px 0;
    }

    .fkfl-main-header-inner {
        gap: 20px;
        align-items: center;
    }

    .fkfl-site-logo {
        flex-shrink: 0;
    }

    .fkfl-site-logo img {
        max-height: 45px;
    }
    
    /* Search Toggle - nur Lupensymbol auf Mobile */
    .fkfl-header .fkfl-search-toggle {
        margin-left: auto;
        padding: 8px;
        border: none;
        border-radius: 0;
        background: none;
    }

    .fkfl-search-toggle-text {
        display: none;
    }
    
    /* Mobile Search Modal */
    .fkfl-search-modal {
        padding: 10px;
    }

    .fkfl-search-container {
        border-radius: 22px;
        max-height: 95vh;
    }

    .fkfl-search-results {
        max-height: calc(95vh - 180px);
    }
    
    /* Mobile Search Items */
    .fkfl-search-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .fkfl-search-item-image {
        width: 100%;
        height: auto;
        aspect-ratio: 2/3;
    }
    
    .fkfl-search-item-image.news {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
    
    .fkfl-results-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Filters */
    .fkfl-filter-buttons {
        justify-content: center;
    }
    
    .fkfl-filter-btn {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .fkfl-container {
        padding: 0 10px;
    }
    
    .fkfl-site-logo img {
        max-height: 40px;
    }
    
    .fkfl-main-header {
        padding: 10px 0;
    }
    
    .fkfl-search-input {
        font-size: 16px;
    }
    
    .fkfl-search-item-title {
        font-size: 14px;
    }
    
    .fkfl-search-item-meta {
        font-size: 12px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .fkfl-site-header,
    .fkfl-search-modal,
    .fkfl-mobile-menu {
        display: none !important;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Focus Styles */
.fkfl-main-menu a:focus,
.fkfl-search-toggle:focus,
.fkfl-menu-toggle:focus,
.fkfl-search-input:focus,
.fkfl-filter-btn:focus {
    outline: 2px solid var(--fkfl-primary);
    outline-offset: 2px;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */
/* Prevent layout shift */
.fkfl-site-header {
    min-height: 175px;
}

@media (max-width: 768px) {
    .fkfl-site-header {
        min-height: 110px;
    }
}

/* GPU Acceleration for smooth animations */
.fkfl-search-modal,
.fkfl-mobile-menu-container,
.mega-menu {
    will-change: transform;
}

/* Reduce animations on mobile for performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   BROWSER SPECIFIC FIXES
   ============================================ */
/* Safari iOS fix for sticky hover */
@supports (-webkit-touch-callout: none) {
    .fkfl-main-menu > li:hover > a {
        background: transparent;
    }
}

/* Edge Legacy fixes */
@supports (-ms-ime-align: auto) {
    .fkfl-search-input {
        padding-right: 60px;
    }
}

/* Firefox specific */
@-moz-document url-prefix() {
    .fkfl-search-spinner {
        right: 40px;
    }
}

/* Dark Mode: wird später sauber implementiert */

/* ============================================
   UTILITY CLASSES
   ============================================ */
.fkfl-hidden {
    display: none !important;
}

.fkfl-visible {
    display: block !important;
}

.fkfl-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   ANIMATION DEFINITIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Apply animations */
.fkfl-search-modal.is-active .fkfl-search-container {
    animation: slideInDown 0.3s ease-out;
}

.fkfl-mobile-menu.is-active .fkfl-mobile-menu-container {
    animation: slideInLeft 0.3s ease-out;
}

/* ============================================
   THEME COMPATIBILITY
   ============================================ */
/* GeneratePress overrides */
.generate-container-separator {
    display: none;
}

.inside-article,
.site-main {
    margin-top: 0;
}

/* Ensure proper spacing after header */
#page {
    padding-top: 0;
    overflow-x: clip; /* prevent anchor ads and wide content from causing horizontal scroll */
}

/* ============================================
   CRITICAL CSS PREVENTION
   ============================================ */
/* Diese Styles verhindern Layout Shifts */
.fkfl-ad-space::before {
    content: '';
    display: block;
    padding-bottom: 12.36%; /* 90/728 aspect ratio */
}

.fkfl-ad-header {
    position: relative;
}

.fkfl-ad-header > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   FILTER BUTTONS - Improved Mobile Spacing
   ============================================ */
.fkfl-filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fkfl-filter-btn {
    padding: 8px 18px;
    border: 2px solid #dee2e6;
    background: var(--fkfl-white);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--fkfl-text-dark);
    font-weight: 500;
    /* Verhindert Überlappung */
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .fkfl-filter-buttons {
        gap: 12px; /* Mehr Abstand auf Mobile */
    }
    
    .fkfl-filter-btn {
        padding: 10px 16px; /* Etwas größer für Touch */
        font-size: 13px;
        border-width: 2px; /* Dickerer Border */
        margin: 0; /* Kein Margin */
    }
}

/* ============================================
   MOBILE MENU - Enhanced Design
   ============================================ */
.fkfl-mobile-menu-container {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 320px; /* Etwas breiter von 280px */
    background: var(--fkfl-white);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.fkfl-mobile-menu-header {
    padding: 20px;
    border-bottom: 2px solid var(--fkfl-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--fkfl-primary) 0%, #2e5ba8 100%);
}

.fkfl-mobile-menu-logo {
    color: white;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.fkfl-mobile-menu-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
}

.fkfl-mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.fkfl-mobile-menu-close svg {
    stroke: white;
}

/* Mobile Menu Navigation */
.fkfl-mobile-menu-nav {
    padding: 0;
}

.fkfl-mobile-menu-section {
    border-bottom: 1px solid var(--fkfl-border);
}

.fkfl-mobile-menu-section-title {
    padding: 20px 20px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fkfl-text-muted);
}

.fkfl-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fkfl-mobile-menu-list li {
    margin: 0;
    border-bottom: 1px solid #f8f9fa;
}

.fkfl-mobile-menu-list li:last-child {
    border-bottom: none;
}

.fkfl-mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    color: var(--fkfl-text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.fkfl-mobile-menu-item:hover,
.fkfl-mobile-menu-item:active {
    background: #f8f9fa;
    color: var(--fkfl-primary);
}

.fkfl-mobile-menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    flex-shrink: 0;
}

.fkfl-mobile-menu-item:hover .fkfl-mobile-menu-icon {
    background: linear-gradient(135deg, var(--fkfl-primary) 0%, #2e5ba8 100%);
}

.fkfl-mobile-menu-item:hover .fkfl-mobile-menu-icon {
    transform: scale(1.1);
}

.fkfl-mobile-menu-text {
    flex: 1;
}

.fkfl-mobile-menu-text-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    color: inherit;
}

.fkfl-mobile-menu-text-subtitle {
    font-size: 12px;
    color: var(--fkfl-text-muted);
}

.fkfl-mobile-menu-arrow {
    width: 20px;
    height: 20px;
    opacity: 0.3;
    transition: all 0.2s;
}

.fkfl-mobile-menu-item:hover .fkfl-mobile-menu-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Mobile Menu User Section */
.fkfl-mobile-menu-user {
    padding: 20px;
    background: #f8f9fa;
}

.fkfl-mobile-menu-user-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fkfl-mobile-menu-user-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--fkfl-border);
    border-radius: 8px;
    color: var(--fkfl-text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.fkfl-mobile-menu-user-link:hover {
    background: var(--fkfl-primary);
    color: white;
    border-color: var(--fkfl-primary);
}

/* Mobile Menu Social Links */
.fkfl-mobile-menu-social {
    padding: 20px;
    text-align: center;
}

.fkfl-mobile-menu-social-title {
    font-size: 12px;
    color: var(--fkfl-text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fkfl-mobile-menu-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.fkfl-mobile-menu-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    transition: all 0.3s;
}

.fkfl-mobile-menu-social-link:hover {
    background: linear-gradient(135deg, var(--fkfl-primary) 0%, #2e5ba8 100%);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(29, 72, 132, 0.3);
}

.fkfl-mobile-menu-social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--fkfl-text-muted);
    transition: fill 0.2s;
}

.fkfl-mobile-menu-social-link:hover svg {
    fill: white;
}

/* ============================================
   MOBILE QUICK NAVIGATION (STICKY TOP BAR)
   ============================================ */
.fkfl-mobile-quicknav {
    display: none;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    background: transparent;
    border: none;
    overflow: hidden;
}

.fkfl-mobile-quicknav a {
    color: var(--fkfl-text-dark);
    text-decoration: underline;
    font-size: 13px;
    white-space: nowrap;
}

.fkfl-mobile-quicknav a:hover {
    color: var(--fkfl-primary);
}

.fkfl-quicknav-sep {
    color: var(--fkfl-text-muted);
    opacity: 0.4;
    margin: 0 6px;
    flex-shrink: 0;
}

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

/* ============================================
   SIMPLIFIED MOBILE MENU
   ============================================ */
.fkfl-mobile-menu-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--fkfl-border);
    display: flex;
    justify-content: flex-end;
    background: var(--fkfl-white);
}

.fkfl-mobile-menu-close {
    flex-shrink: 0;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    color: #1e293b;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.fkfl-mobile-menu-close:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.fkfl-mobile-menu-close svg {
    stroke: currentColor;
    overflow: visible;
    display: block;
    flex-shrink: 0;
}

.fkfl-mobile-menu-section {
    border-bottom: 1px solid #f1f5f9;
}

.fkfl-mobile-menu-section-title {
    padding: 18px 20px 8px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fkfl-text-muted);
}

.fkfl-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fkfl-mobile-menu-list li {
    margin: 0;
}

.fkfl-mobile-menu-link {
    display: block;
    padding: 13px 20px 13px 32px;
    color: var(--fkfl-text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    border-left: 3px solid transparent;
}

.fkfl-mobile-menu-link:hover,
.fkfl-mobile-menu-link:active {
    background: #f8f9fa;
    border-left-color: var(--fkfl-primary);
    color: var(--fkfl-primary);
}

.fkfl-mobile-menu-link--muted {
    color: var(--fkfl-text-muted);
    font-style: italic;
}

button.fkfl-mobile-menu-link {
    width: 100%;
    text-align: left;
    background: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
    cursor: default;
}
button.fkfl-mobile-menu-link:hover,
button.fkfl-mobile-menu-link:active {
    background: none;
    border-left-color: transparent;
    color: var(--fkfl-text-muted);
}

.fkfl-mobile-menu-coming-soon {
    opacity: 0.7;
}

.fkfl-mobile-menu-user {
    padding: 20px;
    border-top: 2px solid var(--fkfl-border);
}

.fkfl-mobile-menu-user-link {
    display: block;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: var(--fkfl-text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}

.fkfl-mobile-menu-user-link:hover {
    background: var(--fkfl-primary);
    color: white;
}

.fkfl-mobile-menu-social {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
}

.fkfl-mobile-menu-social-title {
    font-size: 11px;
    color: var(--fkfl-text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.fkfl-mobile-menu-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.fkfl-mobile-menu-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
    border: 1px solid var(--fkfl-border);
}

.fkfl-mobile-menu-social-link:hover {
    background: var(--fkfl-primary);
    border-color: var(--fkfl-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(29, 72, 132, 0.3);
}

.fkfl-mobile-menu-social-link svg {
    width: 18px;
    height: 18px;
    fill: var(--fkfl-text-muted);
    transition: fill 0.2s;
}

.fkfl-mobile-menu-social-link:hover svg {
    fill: white;
}

/* ============================================
   END OF HEADER STYLES
   ============================================ */

/* ============================================
   MOBILE MENU FIXES
   ============================================ */
.fkfl-mobile-menu-container {
    width: 300px;
}

.fkfl-mobile-menu-link {
    padding: 14px 30px; /* Mehr Abstand vom Rand */
}

.fkfl-mobile-menu-section-title {
    padding: 20px 30px 10px; /* Auch Section Titles mehr rechts */
}

/* ============================================
   SEARCH RESULT IMAGE FIXES
   ============================================ */
.fkfl-result-card img {
    width: 100%;
    height: 300px; /* Feste Höhe */
    object-fit: cover;
    display: block;
}

.fkfl-search-item-image {
    width: 120px; /* Größer */
    height: 180px; /* Größer */
}

.fkfl-search-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover statt contain für schärfere Bilder */
}

/* ============================================
   STICKY BAR (Hamburger + Links + Lupe, mobile)
   ============================================ */
.fkfl-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Admin-Bar-Versatz wenn eingeloggt */
/* WP versteckt die Adminbar bei ≤600px, daher kein Offset nötig */
@media screen and (max-width: 600px) {
    .admin-bar .fkfl-sticky-bar {
        top: 0;
    }
}
/* 601px–782px: Adminbar ist 46px hoch */
@media screen and (min-width: 601px) and (max-width: 782px) {
    .admin-bar .fkfl-sticky-bar {
        top: 46px;
    }
}
/* ≥783px: Adminbar ist 32px hoch (aber sticky-bar ist hier ohnehin static) */
@media screen and (min-width: 783px) {
    .admin-bar .fkfl-sticky-bar {
        top: 32px;
    }
}

/* Auf Desktop: kein sticky-Wrapper-Styling nötig, Header bleibt normal */
@media (min-width: 769px) {
    .fkfl-sticky-bar {
        position: static;
        box-shadow: none;
        background: transparent;
    }
}

/* Mobile: Nav-Bereich explizit kompakt halten */
@media (max-width: 768px) {
    .fkfl-sticky-bar .fkfl-nav-inner {
        min-height: 48px;
    }
}

/* ============================================
   SEARCH FILTER BUTTON SPACING MOBILE
   ============================================ */
@media (max-width: 768px) {
    .fkfl-filter-buttons {
        gap: 12px;
    }
    
    .fkfl-filter-btn {
        padding: 10px 16px;
        margin: 0;
    }
}

/* ============================================
   SEARCH RESULTS - KONZEPT 2 (BLU-RAY STYLE)
   ============================================ */

/* Result Item Container */
.fkfl-result-item {
    display: flex;
    gap: 20px;
    padding: 16px;
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid var(--fkfl-border);
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    transition: all 0.2s;
    align-items: flex-start;
}

.fkfl-result-item:hover {
    background: #ffffff;
    border-color: var(--fkfl-primary);
    box-shadow: 0 4px 12px rgba(29, 72, 132, 0.1);
    transform: translateY(-2px);
}

/* Thumbnail - PORTRAIT wie Blu-ray Cover */
.fkfl-result-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 150px;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fkfl-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #ffffff; /* Auch hier weiß */
}

/* Player Thumbnails - Landscape */
.fkfl-result-thumb-player {
    width: 140px;
    height: 90px; /* 16:9 für Player */
    background: var(--fkfl-white);
}

.fkfl-result-thumb-player img {
    object-fit: contain;
    padding: 8px;
}

/* News/Gewinnspiele Thumbnails - Landscape */
.fkfl-result-thumb-news {
    width: 180px;
    height: 100px; /* 16:9 */
}

.fkfl-result-thumb-news img {
    object-fit: cover;
}

.fkfl-result-thumb-placeholder {
    text-align: center;
    color: #dee2e6; /* Heller für weißen Hintergrund */
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    padding: 10px;
}

/* Result Info - Mehr Platz für Details */
.fkfl-result-info {
    flex: 1;
    min-width: 0;
}

.fkfl-result-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--fkfl-text-dark);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

/* Meta Info - Strukturiert */
.fkfl-result-meta {
    font-size: 14px;
    color: var(--fkfl-text-muted);
    line-height: 1.8;
    margin-bottom: 10px;
}

.fkfl-result-meta span {
    display: block;
}

.fkfl-result-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #374151;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
    border: none;
    box-shadow: none;
}

.fkfl-result-type--film  { background: #374151; }
.fkfl-result-type--serie { background: #0e7490; }

.fkfl-result-meta span strong {
    color: var(--fkfl-text-dark);
    font-weight: 600;
    margin-right: 8px;
}

.fkfl-result-meta-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.fkfl-result-meta-label {
    color: var(--fkfl-text-muted);
    font-weight: 500;
    min-width: 60px;
}

.fkfl-result-meta-value {
    color: var(--fkfl-text-dark);
}

.fkfl-result-excerpt {
    font-size: 13px;
    color: var(--fkfl-text-muted);
    line-height: 1.5;
    margin-top: 8px;
}

/* Badge Pills - Kompakt und farbig */
.fkfl-result-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.fkfl-badge-pill {
    padding: 4px 10px;
    background: #e9ecef;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    text-transform: uppercase;
    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;
}

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

.fkfl-badge-pill.fkfl-badge-dolby-vision { background: linear-gradient(135deg, #8a4dff, #3c1361); }
.fkfl-badge-pill.fkfl-badge-atmos        { background: linear-gradient(135deg, #0f4cc9, #061a40); }
.fkfl-badge-pill.fkfl-badge-dolby-atmos  { background: linear-gradient(135deg, #0f4cc9, #061a40); }
.fkfl-badge-pill.fkfl-badge-dtsx         { background: linear-gradient(135deg, #ff8c42, #8a2d00); }
.fkfl-badge-pill.fkfl-badge-real-4k      { background: linear-gradient(135deg, #ffe8a3, #c69214); color: #1b1b1b; border: none; box-shadow: none; }
.fkfl-badge-pill.fkfl-badge-extended     { background: linear-gradient(135deg, #ff4d4d, #7a0000); }
.fkfl-badge-pill.fkfl-badge-hdr10plus    { background: linear-gradient(135deg, #00e5c3, #0047ff); }
.fkfl-badge-pill.fkfl-badge-hdr10        { background: linear-gradient(135deg, #7cc7ff, #2f80ed); }
.fkfl-badge-pill.fkfl-badge-dtsx         { background: linear-gradient(135deg, #ff8c42, #8a2d00); }
.fkfl-badge-pill.fkfl-badge-dolby-vision { background: linear-gradient(135deg, #8a4dff, #3c1361); }
.fkfl-badge-pill.fkfl-badge-auro3d       { background: linear-gradient(135deg, #5fd35f, #1c8b4a); }
/* Player-Feature-Badges */
.fkfl-badge-pill.fkfl-badge-hlg          { background: linear-gradient(135deg, #0e7490 0%, #082f49 100%); color: #fff; border: none; box-shadow: none; }
.fkfl-badge-pill.fkfl-badge-3d           { background: linear-gradient(135deg, #fda44d 0%, #ea580c 100%); color: #fff; border: none; box-shadow: none; }
.fkfl-badge-pill.fkfl-badge-4k-upscaling { background: #0f766e; color: #fff; border: none; box-shadow: none; }
.fkfl-badge-pill.fkfl-badge-wlan         { background: #374151; color: #fff; border: none; box-shadow: none; }

.fkfl-badge-pill.fkfl-badge-deadline {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

/* Price - Prominent */
.fkfl-result-price {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fkfl-result-price-old {
    font-size: 14px;
    font-weight: 400;
    color: var(--fkfl-text-muted);
    text-decoration: line-through;
}

/* Text-Only Results (News/Glossar) */
.fkfl-results-text-only {
    margin-bottom: 30px;
}

.fkfl-result-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fkfl-result-list li {
    margin-bottom: 8px;
}

.fkfl-result-text-link {
    display: block;
    padding: 12px 16px;
    background: var(--fkfl-white);
    border: 1px solid var(--fkfl-border);
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
    transition: all 0.2s;
}

.fkfl-result-text-link:hover {
    background: #f8f9fa;
    border-color: var(--fkfl-primary);
    transform: translateX(4px);
}

.fkfl-result-text-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--fkfl-text-dark);
    margin-bottom: 4px;
}

.fkfl-result-text-excerpt {
    display: block;
    font-size: 13px;
    color: var(--fkfl-text-muted);
    line-height: 1.4;
}

/* Category Headers */
.fkfl-results-category h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--fkfl-text-dark);
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fkfl-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .fkfl-result-item {
        gap: 15px;
    }
    
    .fkfl-result-thumb {
        width: 80px;
        height: 120px;
    }
    
    .fkfl-result-thumb-player {
        width: 120px;
        height: 75px;
    }
    
    .fkfl-result-thumb-news {
        width: 140px;
        height: 78px;
    }
    
    .fkfl-result-title {
        font-size: 15px;
    }
    
    .fkfl-result-meta {
        font-size: 13px;
    }
    
    .fkfl-badge-pill {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .fkfl-result-price {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .fkfl-result-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .fkfl-result-thumb,
    .fkfl-result-thumb-player,
    .fkfl-result-thumb-news {
        width: 100%;
        height: auto;
    }
    
    .fkfl-result-thumb {
        max-width: 200px;
        aspect-ratio: 2/3;
        margin: 0 auto;
    }
    
    .fkfl-result-thumb-player,
    .fkfl-result-thumb-news {
        aspect-ratio: 16/9;
    }
}
/* Filter-Buttons: inaktive Buttons mit hellem Hintergrund (höhere Spezifität statt !important) */
.fkfl-search-modal .fkfl-filter-buttons .fkfl-filter-btn:not(.is-active) {
    background-color: var(--fkfl-white);
    color: var(--fkfl-text-dark);
    border-color: #dee2e6;
}

/* Result-Type-Badge inline anzeigen */
.fkfl-search-results .fkfl-result-type {
    display: inline-block;
    width: auto;
}

/* Ladestate: alte Ergebnisse dimmen statt ersetzen (verhindert Flackern) */
.fkfl-search-results.fkfl-results-loading {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.1s ease;
}

/* ===== Shop-Link Buttons (Preisvergleich) ===== */
.shop-links-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.shop-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    flex: 1;
    width: 0;
    background: white;
    transition: background 0.15s;
}

.shop-link-amazon {
    border: 2px solid #FF9900;
    color: #1e293b;
}

.shop-link-amazon:hover {
    background: #fff8ec;
    color: #1e293b;
}

.shop-link-ebay {
    border: 2px solid #0064d2;
    color: #0064d2;
}

.shop-link-ebay:hover {
    background: #f0f6ff;
    color: #0064d2;
}

.shop-link-ebay img {
    height: 28px;
    width: auto;
    display: block;
}

.shop-links-label {
    font-weight: 700;
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 8px 0;
}

@media (max-width: 767px) {
    .shop-links-container {
        flex-direction: column;
        width: 100%;
    }
    .shop-link {
        width: 100%;
        box-sizing: border-box;
        min-height: 80px;
    }
    .shop-link-ebay img {
        height: 36px;
    }
    .shop-links-label {
        text-align: center;
    }
}
