/* ===== SUBPAGE STYLES ===== */
/* Gemeinsame Styles für Impressum, AGB, Widerruf */

/* Overflow Fix für alle Unterseiten */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

.subpage-hero {
    padding: 160px 0 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 240, 255, 0.06), rgba(176, 38, 255, 0.03), transparent 70%);
    pointer-events: none;
}

.subpage-hero .section-tag {
    margin-bottom: 16px;
}

.subpage-hero h1 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.subpage-hero p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.breadcrumb a {
    color: var(--cyan);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb .sep {
    color: var(--text-muted);
    font-size: 10px;
}

.breadcrumb .current {
    color: var(--text-muted);
}

/* Legal Content Area */
.legal-content {
    padding: 0 0 100px;
    position: relative;
    z-index: 2;
}

.legal-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.legal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple), var(--cyan));
    opacity: 0.6;
}

.legal-card h2 {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.legal-card h2:first-of-type {
    margin-top: 0;
}

.legal-card h2::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.legal-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--cyan);
    margin: 28px 0 12px;
    letter-spacing: 0.5px;
}

.legal-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 14px;
}

.legal-card ul,
.legal-card ol {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin: 12px 0 20px 24px;
}

.legal-card li {
    margin-bottom: 6px;
}

.legal-card a {
    color: var(--cyan);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.legal-card a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.legal-card strong {
    color: var(--text);
    font-weight: 600;
}

/* Placeholder Hinweis */
.legal-placeholder {
    background: rgba(0, 240, 255, 0.05);
    border: 1px dashed rgba(0, 240, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 20px 0;
    font-size: 14px;
    color: var(--cyan);
    line-height: 1.6;
}

.legal-placeholder strong {
    color: var(--cyan);
    display: block;
    margin-bottom: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Info Box */
.info-box {
    background: rgba(176, 38, 255, 0.05);
    border-left: 3px solid var(--purple);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 20px;
    margin: 20px 0;
}

.info-box p {
    color: var(--text);
    margin-bottom: 0;
}

/* Kontaktdaten Block */
.contact-block {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin: 20px 0;
}

.contact-block p {
    margin-bottom: 4px;
}

/* Back to Home Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding: 12px 24px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cyan);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.back-link:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--cyan);
    transform: translateX(-4px);
}

.back-link svg {
    transition: var(--transition);
}

.back-link:hover svg {
    transform: translateX(-4px);
}

/* Table of Contents */
.toc {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin-bottom: 32px;
}

.toc h3 {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.toc ol {
    margin: 0;
    padding-left: 20px;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    border-bottom: none;
}

.toc a:hover {
    color: var(--cyan);
    border-bottom: none;
}

/* Last Updated */
.last-updated {
    text-align: center;
    margin-top: 32px;
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== FAQ ITEMS ===== */
.faq-item {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(0, 240, 255, 0.15);
    background: rgba(12, 12, 29, 0.8);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px 0;
}

.faq-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(176, 38, 255, 0.1));
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--cyan);
}

.faq-question h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    letter-spacing: 0.3px;
}

.faq-answer {
    padding: 10px 20px 18px 70px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 8px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 8px 0 0 20px;
}

/* Shipping Table styling */
.shipping-table .faq-item {
    border-left: 3px solid var(--cyan);
}

.shipping-table .faq-item:nth-child(2) {
    border-left-color: var(--purple);
}

.shipping-table .faq-item:nth-child(3) {
    border-left-color: var(--green);
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-answer {
        padding: 10px 16px 16px 16px;
    }

    .faq-question {
        padding: 14px 16px 0;
    }

    .faq-question h3 {
        font-size: 15px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .legal-card {
        padding: 28px 20px;
        margin: 0 16px;
    }

    .subpage-hero {
        padding: 130px 0 40px;
    }

    .legal-card h2 {
        font-size: 17px;
    }
}

/* ===== LIGHT THEME - SUBPAGES ===== */
[data-theme="light"] .subpage-hero h1 {
    color: #1a1a2e;
}

[data-theme="light"] .subpage-hero p {
    color: #4a4a6a;
}

[data-theme="light"] .subpage-hero::before {
    background: radial-gradient(ellipse, rgba(0, 136, 204, 0.08), rgba(136, 85, 204, 0.05), transparent 70%);
}

[data-theme="light"] .breadcrumb a {
    color: var(--cyan-dark);
}

[data-theme="light"] .breadcrumb a:hover {
    color: #1a1a2e;
}

[data-theme="light"] .breadcrumb .current,
[data-theme="light"] .breadcrumb .sep {
    color: #5a5a7a;
}

[data-theme="light"] .legal-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .legal-card h2 {
    color: #1a1a2e;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .legal-card h3 {
    color: var(--cyan-dark);
}

[data-theme="light"] .legal-card p {
    color: #3a3a5a;
}

[data-theme="light"] .legal-card ul,
[data-theme="light"] .legal-card ol {
    color: #3a3a5a;
}

[data-theme="light"] .legal-card a {
    color: var(--cyan-dark);
    border-bottom-color: rgba(0, 136, 204, 0.3);
}

[data-theme="light"] .legal-card a:hover {
    color: #1a1a2e;
    border-bottom-color: #1a1a2e;
}

[data-theme="light"] .legal-card strong {
    color: #1a1a2e;
}

[data-theme="light"] .legal-placeholder {
    background: rgba(0, 136, 204, 0.08);
    border-color: rgba(0, 136, 204, 0.25);
    color: var(--cyan-dark);
}

[data-theme="light"] .legal-placeholder strong {
    color: var(--cyan-dark);
}

[data-theme="light"] .info-box {
    background: rgba(136, 85, 204, 0.08);
}

[data-theme="light"] .info-box p {
    color: #2a2040;
}

[data-theme="light"] .contact-block {
    background: #f5f7fa;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .contact-block p {
    color: #3a3a5a;
}

[data-theme="light"] .back-link {
    color: var(--cyan-dark);
    border-color: rgba(0, 136, 204, 0.3);
}

[data-theme="light"] .back-link:hover {
    background: rgba(0, 136, 204, 0.1);
    border-color: var(--cyan-dark);
}

[data-theme="light"] .toc {
    background: #f5f7fa;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .toc h3 {
    color: #1a1a2e;
}

[data-theme="light"] .toc a {
    color: #4a4a6a;
}

[data-theme="light"] .toc a:hover {
    color: var(--cyan-dark);
}

[data-theme="light"] .last-updated {
    color: #5a5a7a;
}

/* FAQ Light Theme */
[data-theme="light"] .faq-item {
    background: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .faq-item:hover {
    background: #ffffff;
    border-color: rgba(0, 136, 204, 0.2);
}

[data-theme="light"] .faq-icon {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.12), rgba(136, 85, 204, 0.12));
    border-color: rgba(0, 136, 204, 0.2);
    color: var(--cyan-dark);
}

[data-theme="light"] .faq-question h3 {
    color: #1a1a2e;
}

[data-theme="light"] .faq-answer p,
[data-theme="light"] .faq-answer ul,
[data-theme="light"] .faq-answer ol {
    color: #3a3a5a;
}

/* Touch-Geraete (Handy/Tablet): Unterseiten werden per viewport-Meta wie
   am Desktop (1130px) berechnet und herunterskaliert - Text und
   Bedienelemente deshalb groesser, damit sie lesbar/antippbar bleiben.
   Layout bleibt wie am PC. */
@media (hover: none) and (pointer: coarse) {
    .subpage-hero p,
    .legal-content p,
    .legal-content li,
    .legal-card p,
    .legal-card li,
    .info-box p,
    .contact-block p,
    .faq-answer {
        font-size: 18px;
        line-height: 1.7;
    }

    .legal-content h2,
    .legal-card h2 {
        font-size: 26px;
    }

    .legal-content h3,
    .legal-card h3 {
        font-size: 21px;
    }

    .faq-question {
        font-size: 19px;
        padding: 18px 20px;
        gap: 16px;
    }

    .faq-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .faq-item {
        padding: 20px 22px;
    }

    .toc a,
    .toc li {
        font-size: 17px;
        padding: 8px 0;
    }

    .breadcrumb,
    .breadcrumb a {
        font-size: 14px;
    }

    .back-link {
        font-size: 17px;
        padding: 14px 24px;
    }

    .last-updated {
        font-size: 15px;
    }
}

/* "Ueber uns" als eigene Seite: der Abschnitt aus der Startseite sitzt
   direkt unter dem Subpage-Hero, der Zurueck-Link darunter in einem
   schlanken Wrapper ohne Karte. */
.about--page {
    padding-top: 0;
}

.legal-content--slim {
    /* Zurueck-Button mittig im dunklen Band zwischen "Ueber uns" und
       Footer: oben/unten gleicher Abstand, horizontal zentriert */
    padding-top: clamp(50px, 6vw, 90px);
    padding-bottom: clamp(50px, 6vw, 90px);
}

.legal-content--slim .container {
    text-align: center;
}

.legal-content--slim .back-link {
    margin-top: 0;
}

/* Ueber-uns-Seite ohne Logo-/Bildfenster: Text ueber die volle Breite. */
.about--page .about-grid {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin-inline: auto;
}

/* "Kontakt aufnehmen" auf der Ueber-uns-Seite: groesser und mittig. */
.about--page .about-text > .btn {
    display: inline-flex;
    margin: 12px auto 0;
    padding: 22px 56px;
    font-size: 18px;
}

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

.about--page .about-text > p,
.about--page .about-text h3,
.about--page .about-values {
    text-align: left;
}

/* Ueber-uns-Seite: Unterueberschrift "Von Gamern - Fuer Gamer" groesser. */
.about--page .about-text h3.about-subtitle {
    font-size: 34px;
    margin-bottom: 28px;
}

@media (hover: none) and (pointer: coarse) {
    .about--page .about-text h3.about-subtitle {
        font-size: 38px;
    }
}
