/* ==========================================================================
   LEGAL PAGES STYLESHEET - EPTS
   Impressum, Datenschutzerklärung & AGB
   ========================================================================== */

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

: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;
}

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
   ========================================================================== */

.header {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.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);
    text-shadow: 0 0 10px var(--primary-gold);
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

.main-container {
    max-width: 1000px;
    margin: 0 auto;

    padding: 80px 40px;
}

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

.legal-hero {
    text-align: center;
    margin-bottom: 60px;
}

.legal-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;
    gap: 20px;
}

.legal-hero h1 .hero-icon {
    width: 80px;
    height: 80px;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.4));
}

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

/* ==========================================================================
   LEGAL CONTENT BOX
   ========================================================================== */

.legal-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;
}

.legal-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));
}

/* ==========================================================================
   LEGAL SECTIONS
   ========================================================================== */

.legal-section {
    margin-bottom: 40px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-section h2 .section-icon {
    width: 32px;
    height: 32px;
    display: inline-block;
    vertical-align: middle;
    filter: brightness(1.2) drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3));
}

.legal-section h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 15px;
    margin-top: 30px;
}

.legal-section p {
    color: var(--text-grey);
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
}

.legal-section ul li {
    color: var(--text-grey);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.legal-section ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: bold;
}

.legal-section ol {
    list-style: none;
    counter-reset: item;
    padding-left: 0;
}

.legal-section ol li {
    color: var(--text-grey);
    margin-bottom: 10px;
    padding-left: 35px;
    position: relative;
    counter-increment: item;
}

.legal-section ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 1.1rem;
}

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

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

.contact-box strong {
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.contact-box p {
    margin: 8px 0;
}

.contact-box a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-box a:hover {
    color: var(--secondary-gold);
    text-decoration: underline;
}

.info-box {
    background: rgba(139, 92, 246, 0.1);
    border-left: 4px solid var(--purple-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;
}

.warning-box strong {
    color: #ef4444;
}

.warning-box ul li::before {
    color: #ef4444;
}

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

.highlight-box {
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid var(--primary-gold);
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
}

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

.highlight-box h4 {
    color: var(--primary-gold);
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* ==========================================================================
   AGB SPECIFIC STYLES
   ========================================================================== */

.agb-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.agb-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.agb-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.agb-header p {
    color: #B0B0B0;
    font-size: 1rem;
}

.agb-section {
    margin-bottom: 40px;
}

.agb-section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: #FFD700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.agb-section h3 {
    font-size: 1.3rem;
    color: #FFA500;
    margin: 25px 0 15px 0;
}

.agb-section p {
    margin-bottom: 15px;
    text-align: justify;
}

.agb-section ul,
.agb-section ol {
    margin: 15px 0 15px 30px;
}

.agb-section li {
    margin-bottom: 10px;
}

.footer-note {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    text-align: center;
    color: #B0B0B0;
    font-size: 0.9rem;
}

.footer-note a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-note a:hover {
    color: var(--secondary-gold);
}

/* ==========================================================================
   DATA TABLES
   ========================================================================== */

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

.data-table th,
.table-responsive table th {
    background: linear-gradient(135deg, var(--purple-start), var(--purple-end));
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.data-table td,
.table-responsive table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-grey);
}

.data-table tr:last-child td,
.table-responsive table tr:last-child td {
    border-bottom: none;
}

.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.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;
    margin-top: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}

/* ==========================================================================
   LINKS
   ========================================================================== */

.legal-section a,
.agb-section a {
    color: var(--green-start);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.legal-section a:hover,
.agb-section a:hover {
    color: var(--primary-gold);
    border-bottom: 1px solid var(--primary-gold);
}

/* ==========================================================================
   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;
    backdrop-filter: blur(10px);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.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: all 0.3s ease;
    font-size: 0.95rem;
}

.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
   ========================================================================== */

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

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

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

    .legal-content {
        padding: 40px 30px;
    }

    .legal-hero h1 {
        font-size: 2.5rem;
        flex-direction: column;
    }

    .legal-hero h1 .hero-icon {
        width: 60px;
        height: 60px;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h2 .section-icon {
        width: 28px;
        height: 28px;
    }

    .data-table,
    .table-responsive table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td,
    .table-responsive table th,
    .table-responsive table td {
        padding: 10px;
    }

    .back-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .agb-container {
        padding: 30px 20px;
    }

    .agb-header h1 {
        font-size: 2rem;
    }

    .agb-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .legal-hero h1 {
        font-size: 2rem;
    }

    .legal-hero h1 .hero-icon {
        width: 50px;
        height: 50px;
    }

    .legal-content {
        padding: 30px 20px;
    }

    .contact-box,
    .highlight-box {
        padding: 20px;
    }

    .data-table,
    .table-responsive table {
        font-size: 0.8rem;
    }

    .data-table th,
    .data-table td,
    .table-responsive table th,
    .table-responsive table td {
        padding: 8px;
    }
}