/* ========================================================================
   EPTS FAQ PAGE - COMPLETE STYLESHEET V21
   FINALE VERSION - READY TO USE
   ======================================================================== */

:root {
    --primary-gold: #FFD700;
    --secondary-gold: #FFA500;
    --accent-gold: #FFEB3B;
    --dark-bg: #0F0F0F;
    --card-bg: #1A1A1A;
    --text-light: #FFFFFF;
    --text-grey: #B0B0B0;
    --green-start: #00FF88;
    --green-end: #00CC66;
    --purple-start: #8B5CF6;
    --purple-end: #EC4899;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
}

/* ========================================================================
   AURORA BACKGROUND
   ======================================================================== */

.aurora-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: #0a0a0a;
    overflow: hidden;
}

.aurora-layer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse 600px 300px at center, rgba(0, 255, 136, 0.12) 0%, rgba(0, 204, 102, 0.08) 30%, rgba(0, 153, 76, 0.05) 50%, transparent 70%);
    animation: aurora-move 40s ease-in-out infinite;
    filter: blur(60px);
    opacity: 0.6;
}

.aurora-layer:nth-child(2) {
    background: radial-gradient(ellipse 500px 250px at center, rgba(139, 92, 246, 0.15) 0%, rgba(236, 72, 153, 0.1) 30%, rgba(168, 85, 247, 0.06) 50%, transparent 70%);
    animation: aurora-move-reverse 50s ease-in-out infinite;
    animation-delay: -10s;
    filter: blur(80px);
    opacity: 0.5;
}

@keyframes aurora-move {
    0%, 100% { transform: translate(-20%, -20%) rotate(0deg) scale(1); }
    50% { transform: translate(20%, 20%) rotate(180deg) scale(1.1); }
}

@keyframes aurora-move-reverse {
    0%, 100% { transform: translate(20%, 20%) rotate(0deg) scale(1.1); }
    50% { transform: translate(-30%, -30%) rotate(-180deg) scale(0.9); }
}

/* ========================================================================
   HEADER - MIT AUTO-HIDE BEIM SCROLLEN
   ======================================================================== */

.header {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.header.hidden {
    transform: translateY(-100%);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo img {
    height: 100px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-gold);
}

/* ========================================================================
   MAIN CONTAINER
   ======================================================================== */

.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px;
    padding-top: 160px;
}

/* ========================================================================
   HERO SECTION
   ======================================================================== */

.hero {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 20px;
}

.hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.hero p {
    color: var(--text-grey);
    font-size: 1.2rem;
}

/* ========================================================================
   SEARCH BAR
   ======================================================================== */

.search-container {
    margin-bottom: 50px;
    text-align: center;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 18px 60px 18px 25px;
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    color: var(--text-light);
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
}

.search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--primary-gold);
}

/* ========================================================================
   CATEGORY NAVIGATION
   ======================================================================== */

.category-nav-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 50px;
}

.category-nav-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-nav-container::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex-shrink: 0;
    padding: 14px 32px;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.6s ease;
}

.category-tab:hover::before {
    left: 100%;
}

.category-tab:hover {
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: #000;
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
    font-weight: 700;
}

.category-tab.active::before {
    display: none;
}

/* ========================================================================
   FAQ CONTENT
   ======================================================================== */

.faq-content {
    background: rgba(26, 26, 26, 0.9);
    border-radius: 25px;
    padding: 60px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.faq-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;

    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold), var(--accent-gold));
}

.faq-category {
    margin-bottom: 50px;
}

.category-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-icon {
    font-size: 32px;
}

/* ========================================================================
   FAQ ITEMS
   ======================================================================== */

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

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

.toggle-icon {
    font-size: 24px;
    color: var(--primary-gold);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: none;
    padding: 0 30px 25px 30px;
    overflow: auto;
}

.faq-answer p {
    color: var(--text-grey);
    margin-bottom: 15px;
}

.faq-answer ul, .faq-answer ol {
    margin: 15px 0 15px 30px;
    color: var(--text-grey);
}

.faq-answer li {
    margin-bottom: 10px;
}

/* ========================================================================
   TABLES - DESKTOP
   ======================================================================== */

.ranking-table,
.faq-answer table,
table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.ranking-table th,
.faq-answer table th,
table th {
    background: linear-gradient(135deg, var(--purple-start), var(--purple-end));
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.ranking-table td,
.faq-answer table td,
table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-grey);
    font-size: 0.9rem;
}

.ranking-table tr:last-child td,
.faq-answer table tr:last-child td,
table tr:last-child td {
    border-bottom: none;
}

.ranking-table img,
.faq-answer table img,
table img {
    max-width: 200px;
    height: auto;
    display: block;
}

/* Mobile: Header verstecken bereits hier vorbereiten */
@media (max-width: 768px) {
    .ranking-table thead,
    .faq-answer table thead,
    table thead,
    .ranking-table thead tr,
    .faq-answer table thead tr,
    table thead tr,
    .ranking-table th,
    .faq-answer table th,
    table th {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }
}

/* ========================================================================
   INFO BOXES
   ======================================================================== */

.info-box {
    background: rgba(139, 92, 246, 0.1);
    border-left: 4px solid var(--purple-start);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.tip-box {
    background: rgba(0, 255, 136, 0.1);
    border-left: 4px solid var(--green-start);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.warning-box {
    background: rgba(255, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.example-box {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--primary-gold);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.example-box strong {
    color: var(--primary-gold);
}

/* ========================================================================
   BACK BUTTON
   ======================================================================== */

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

/* ========================================================================
   FOOTER
   ======================================================================== */

.footer {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95), rgba(26, 26, 26, 0.95));
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    margin-top: 100px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-grey);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    color: var(--text-grey);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================================================
   RESPONSIVE DESIGN - TABLET & LARGE PHONES (inkl. iPhone 16 Pro Max)
   ======================================================================== */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .logo img {
        height: 70px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 14px;
    }

    .main-container {
        padding: 60px 20px;
        padding-top: 160px;
    }

    .hero {
        padding-top: 30px;
        margin-bottom: 50px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        gap: 10px;
    }

    .hero h1 img {
        height: 35px !important;
        margin-right: 0 !important;
        vertical-align: middle;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .faq-content {
        padding: 40px 25px;
    }

    .category-nav-wrapper {
        padding: 0 20px;
    }

    .category-tab {
        padding: 12px 26px;
        font-size: 13px;
    }

    .faq-question {
        font-size: 1rem;
        padding: 20px;
        flex-wrap: nowrap;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
    }

    .category-title {
        font-size: 1.5rem;
    }

    /* MOBILE TABLE FÜR TABLET/LARGE PHONES */
    .ranking-table,
    .faq-answer table,
    table {
        display: block !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 0;
        background: transparent !important;
        margin: 20px 0;
    }

    /* THEAD KOMPLETT VERSTECKEN */
    .ranking-table thead,
    .faq-answer table thead,
    table thead,
    .ranking-table thead tr,
    .faq-answer table thead tr,
    table thead tr,
    .ranking-table thead th,
    .faq-answer table thead th,
    table thead th {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        line-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        position: absolute !important;
        left: -9999px !important;
    }

    .ranking-table tbody,
    .faq-answer table tbody,
    table tbody {
        display: block !important;
    }

    .ranking-table tr,
    .faq-answer table tr,
    table tr {
        display: block !important;
        margin-bottom: 25px;
        background: rgba(26, 26, 26, 0.95) !important;
        border-radius: 15px;
        padding: 20px 15px;
        border: 2px solid rgba(255, 215, 0, 0.3);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .ranking-table tbody tr,
    .faq-answer table tbody tr,
    table tbody tr {
        display: block !important;
    }

    .ranking-table tr:hover,
    .faq-answer table tr:hover,
    table tr:hover {
        border-color: var(--primary-gold);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.2);
    }

    .ranking-table td,
    .faq-answer table td,
    table td {
        display: block !important;
        text-align: left;
        padding: 10px 0 !important;
        border: none !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        background: transparent !important;
    }

    /* KEINE LABELS - ENTFERNT! */
    .ranking-table td::before,
    .faq-answer table td::before,
    table td::before {
        display: none !important;
        content: none !important;
    }

    /* Rang - Erste Spalte */
    .ranking-table td:first-child,
    .faq-answer table td:first-child,
    table td:first-child {
        font-size: 2rem !important;
        font-weight: 800;
        color: var(--primary-gold) !important;
        padding: 15px 0 !important;
        margin-bottom: 15px;
        border-bottom: 3px solid rgba(255, 215, 0, 0.6) !important;
        text-align: center !important;
        text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    }

    /* Hand Name */
    .ranking-table td:nth-child(2),
    .faq-answer table td:nth-child(2),
    table td:nth-child(2) {
        font-size: 1.3rem !important;
        font-weight: 700;
        color: var(--text-light) !important;
        margin-bottom: 12px;
        text-align: center !important;
        line-height: 1.3;
    }

    /* Beschreibung */
    .ranking-table td:nth-child(3),
    .faq-answer table td:nth-child(3),
    table td:nth-child(3) {
        color: var(--text-grey) !important;
        font-size: 0.95rem !important;
        line-height: 1.6;
        padding-bottom: 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin-bottom: 15px;
        text-align: center !important;
    }

    /* Beispiel */
    .ranking-table td:nth-child(4),
    .faq-answer table td:nth-child(4),
    table td:nth-child(4) {
        padding: 15px !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border-radius: 10px;
        margin: 15px 0;
        text-align: center !important;
    }

    .ranking-table img,
    .faq-answer table img,
    table img {
        max-width: 100% !important;
        height: auto;
        margin: 0 auto;
        display: block !important;
        border-radius: 8px;
    }

    /* Wahrscheinlichkeit */
    .ranking-table td:nth-child(5),
    .faq-answer table td:nth-child(5),
    table td:nth-child(5) {
        font-size: 1.2rem !important;
        font-weight: 700;
        color: var(--green-start) !important;
        text-align: center !important;
        padding: 12px !important;
        background: rgba(0, 255, 136, 0.15) !important;
        border-radius: 10px;
        margin-top: 10px;
        border: 1px solid rgba(0, 255, 136, 0.3) !important;
    }
}

/* ========================================================================
   RESPONSIVE DESIGN - MOBILE (SMALL PHONES)
   ======================================================================== */

@media (max-width: 480px) {
    .logo img {
        height: 60px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 12px;
        padding: 5px;
    }

    .main-container {
        padding-top: 140px;
    }

    .hero {
        padding-top: 20px;
        margin-bottom: 40px;
    }

    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.3;
        gap: 8px;
    }

    .hero h1 img {
        height: 30px !important;
        margin-right: 0 !important;
        vertical-align: middle;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .faq-content {
        padding: 25px 15px;
        border-radius: 15px;
    }

    .category-nav-wrapper {
        padding: 0 10px;
        margin-bottom: 40px;
    }

    .category-tab {
        padding: 10px 20px;
        font-size: 11px;
    }

    .category-title {
        font-size: 1.3rem;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .category-icon {
        font-size: 24px;
        flex-shrink: 0;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 15px;
        gap: 10px;
    }

    .toggle-icon {
        font-size: 20px;
        margin-left: 10px;
    }

    .faq-answer {
        padding: 0 15px;
        font-size: 0.9rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 15px 15px 15px;
    }

    /* Info Boxen */
    .info-box,
    .tip-box,
    .warning-box,
    .example-box {
        padding: 15px;
        margin: 15px 0;
        font-size: 0.9rem;
    }

    /* Search Bar */
    .search-input {
        padding: 15px 50px 15px 20px;
        font-size: 14px;
    }

    .search-icon {
        right: 20px;
        font-size: 18px;
    }

    /* Kleinere Anpassungen für sehr kleine Phones */
    .ranking-table td:first-child,
    .faq-answer table td:first-child,
    table td:first-child {
        font-size: 1.8rem !important;
    }

    .ranking-table td:nth-child(2),
    .faq-answer table td:nth-child(2),
    table td:nth-child(2) {
        font-size: 1.2rem !important;
    }

    .ranking-table td:nth-child(5),
    .faq-answer table td:nth-child(5),
    table td:nth-child(5) {
        font-size: 1.1rem !important;
    }
}