/* =========================================
   1. THEMEN & VARIABLEN
   ========================================= */

/* Standard: Dark Mode */
:root {
    --bg-color: #1a1a1a;
    --canvas-bg: #1a1a1a;
    --text-main: #cccccc;
    --text-headline: #ffffff;
    --text-muted: #666666;
    --gold: #edaf42;
    --gold-rgb: 237, 175, 66;
    --nav-border: #2a2a2a;
    --box-bg: rgba(255, 255, 255, 0.03);
    --box-border: rgba(237, 175, 66, 0.1);
    --input-bg: rgba(0, 0, 0, 0.3);
    --logo-text-color: #ffffff;
    /* Upload-Bereich */
    --card-bg: #1e1e1e;
    --card-bg-alt: #2a2a2a;
    --card-accent: #333333;
    --hint-color: #888888;
    --input-text: #f5f5f5;
    --input-border: #333333;
    /* Popover */
    --popover-text: #d0d0d0;

    --font-heading: "Liberation Sans", Arial, sans-serif;}

/* Light Mode Override (wird per JS aktiviert) */
[data-theme="light"] {
    --bg-color: #f0f0f0;
    --canvas-bg: #f0f0f0;
    --text-main: #444444;
    --text-headline: #1a1a1a;
    --text-muted: #888888;
    --gold: #d4962a;
    --gold-rgb: 212, 150, 42;
    --nav-border: #cccccc;
    --box-bg: rgba(0, 0, 0, 0.02);
    --box-border: rgba(0, 0, 0, 0.08);
    --input-bg: #ffffff;
    --logo-text-color: #1a1a1a;
    /* Upload-Bereich */
    --card-bg: #ffffff;
    --card-bg-alt: #f5f5f5;
    --card-accent: #dddddd;
    --hint-color: #666666;
    --input-text: #1a1a1a;
    --input-border: #cccccc;
    --popover-text: #2a2a2a;

    --font-heading: "Liberation Sans", Arial, sans-serif;}

/* =========================================
   PACKAGE DEMO LINK
   ========================================= */
/* =========================================
   PACKAGE CTA + DEMO BUTTON
   ========================================= */
.pkg-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.pkg-cta .pkg-cta-secondary {
    flex-basis: 100%;
    text-align: center;
}

.pkg-demo-link {
    display: inline-block;
    min-width: 280px;
    padding: 18px 44px;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}
.pkg-demo-link:hover {
    background: var(--gold);
    color: #1a1a1a;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--gold-rgb), 0.2);
}
/* =========================================
   2. RESET & BASIS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none !important;
}

body {
    background-color: var(--bg-color);
    font-family: "Liberation Sans", Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ermöglicht Zeilenumbrüche aus der script.js */
[data-i18n], .info-box p, .comp-card p, .footer-note p {
    white-space: pre-line;
}

#bg-visualizer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--canvas-bg);
}

/* =========================================
   3. UTILITY BAR (SOCIALS, LANG, THEME)
   ========================================= */
.utility-bar {
    position: absolute;
    top: 25px;
    right: 40px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    z-index: 100;
}

.social-icons-top {
    display: flex;
    gap: 15px;
    padding-top: 5px;
}

.social-icons-top img {
    height: 18px;
    filter: grayscale(100%) brightness(0.6);
    transition: 0.3s ease;
}

[data-theme="light"] .social-icons-top img {
    filter: grayscale(100%) invert(1) brightness(0.2);
}

/* Dark Mode: schwarze SVGs aufhellen, damit sie sichtbar sind */
[data-theme="dark"] .social-icons-top img {
    filter: grayscale(100%) invert(1) brightness(0.8);
}

.social-icons-top img:hover {
    filter: grayscale(0%) brightness(1) invert(0);
    transform: translateY(-2px);
}

/* Container für Sprache & Theme-Switch */
.controls-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    border-left: 1px solid var(--nav-border);
    padding-left: 20px;
}

/* Language Switcher (Dropdown) */
.lang-switch-dropdown {
    position: relative;
    display: inline-block;
}

/* Details-basierter Toggle (statische Seiten — kein JS nötig) */
.lang-switch-dropdown > summary.lang-current {
    list-style: none;
    cursor: pointer;
}
.lang-switch-dropdown > summary.lang-current::-webkit-details-marker {
    display: none;
}
.lang-switch-dropdown > summary.lang-current::marker {
    content: '';
}

/* Details-offen-Zustand (ohne .open-Klasse) */
.lang-switch-dropdown[open] .lang-menu {
    display: block;
}

/* Details-Toggle geschlossen halten, wenn User außerhalb klickt */
.lang-switch-dropdown > summary.lang-current:focus {
    outline: none;
}

.lang-current {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 8px;
    font-family: inherit;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.lang-current:hover {
    color: var(--gold);
}

.lang-current::after {
    content: '▾';
    font-size: 0.7rem;
    opacity: 0.7;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: var(--box-bg);
    border: 1px solid var(--box-border);
    border-radius: 6px;
    list-style: none;
    padding: 6px 0;
    margin: 6px 0 0;
    display: none;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.lang-switch-dropdown.open .lang-menu {
    display: block;
}

.lang-menu li {
    padding: 0;
}

.lang-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text-main);
    font-size: 0.85rem;
    text-align: left;
    transition: background 0.15s, color 0.15s;
}

.lang-menu a:hover {
    background: rgba(var(--gold-rgb), 0.1);
    color: var(--gold);
}

.lang-menu a.active {
    color: var(--gold);
    font-weight: bold;
}

.theme-switch {
    font-size: 0.65rem;
    color: var(--text-muted);
    cursor: pointer;
    letter-spacing: 1px;
    font-weight: bold;
    transition: 0.2s;
    user-select: none;
    text-transform: uppercase;
}

.theme-switch:hover {
    color: var(--gold);
}

/* =========================================
   4. HEADER & LOGO
   ========================================= */
.header-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 80px 20px 40px;
}

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

.logo-img {
    height: 100px;
    width: auto;
}

.logo-text {
    font-size: 4.8rem;
    font-weight: bold;
    line-height: 0.9;
    letter-spacing: -2px;
}

.logo-text .tc-white { color: var(--logo-text-color); }
.logo-text .tc-gold { color: var(--gold); }

/* Standard: Dark Theme → helles Logo sichtbar */
.logo-on-dark  { display: block; }
.logo-on-light { display: none; }

/* Light Theme → dunkles Logo sichtbar */
[data-theme="light"] .logo-on-dark  { display: none; }
[data-theme="light"] .logo-on-light { display: block; }

/* =========================================
   5. NAVIGATION
   ========================================= */
nav {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    border-top: 1px solid var(--nav-border);
    border-bottom: 1px solid var(--nav-border);
    margin-bottom: 40px;
}

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

.nav-links a {
    color: var(--text-headline);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.2s;
}

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

/* =========================================
   6. MAIN CONTENT
   ========================================= */
.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-section { padding: 60px 0; }
.hero-section h1 {
    color: var(--text-headline);
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1.1;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

/* Buttons */
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    background: var(--gold);
    color: #1a1a1a !important;
    padding: 15px 30px;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-secondary {
    border: 1px solid var(--gold);
    color: var(--gold) !important;
    padding: 15px 30px;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--gold-rgb), 0.2);
}

/* Grids & Boxen */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 60px;
    text-align: left;
}

.info-box {
    padding: 35px;
    background: var(--box-bg);
    border-radius: 4px;
    border-left: 3px solid var(--gold);
    backdrop-filter: blur(5px);
}

.info-box h2 {
    color: var(--text-headline);
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.competence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 60px 0 100px;
    text-align: left;
}

.comp-card {
    background: var(--box-bg);
    padding: 25px;
    border: 1px solid var(--box-border);
    border-radius: 4px;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.comp-card:hover {
    border-color: var(--gold);
}

.comp-card h3 {
    color: var(--text-headline);
    font-size: 0.95rem;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* =========================================
   7. FORMULAR
   ========================================= */
form { display: flex; flex-direction: column; gap: 20px; }

form input, form select, form textarea {
    width: 100%;
    padding: 12px;
    background: var(--input-bg);
    border: 1px solid var(--box-border);
    color: var(--text-headline);
    border-radius: 4px;
    font-family: inherit;
}

form input:focus, form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

form label {
    display: block;
    margin-bottom: 5px;
    color: var(--gold);
    font-weight: bold;
    font-size: 0.9rem;
}
/* =========================================
   8. FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--nav-border);
}

footer a {
    color: var(--text-muted);
    transition: 0.2s;
}

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


/* =========================================
   9. BLOG STYLES
   ========================================= */
.blog-post-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    text-align: left;
}

.blog-meta {
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: bold;
}

.btn-text {
    color: var(--gold);
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-top: auto;
    padding-top: 20px;
    transition: 0.3s;
}

.btn-text:hover {
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Optional: Damit die Karten im Grid alle gleich hoch sind */
.competence-grid {
    align-items: stretch;
}


/* =========================================
   10. RESPONSIVE DESIGN (MOBILE)
   ========================================= */
@media (max-width: 900px) {
    .utility-bar {
        position: relative;
        top: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px 0;
        border-bottom: 1px solid var(--nav-border);
    }

    .controls-container {
        border-left: none;
        padding-left: 0;
        align-items: center;
    }

    .header-banner { padding: 40px 20px; }
    
    .logo-container { flex-direction: column; gap: 10px; }
    .logo-text { font-size: 2.5rem; letter-spacing: -1px; }
    .logo-img { height: 60px; }

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

    .hero-section h1 { font-size: 1.8rem; }
    
    .info-grid { grid-template-columns: 1fr; }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}


/* =========================================
   11. BLOG & ARTIKEL STYLES
   ========================================= */
.blog-content { text-align: left; max-width: 900px; margin: 0 auto; padding-bottom: 100px; line-height: 1.8; }
.blog-content h1 { font-size: 3rem; margin-bottom: 30px; line-height: 1.1; color: var(--text-headline); text-transform: uppercase; }
.blog-content h2 { font-size: 2rem; margin-top: 60px; margin-bottom: 25px; color: var(--gold); border-bottom: 1px solid var(--box-border); padding-bottom: 10px; text-transform: uppercase; }
.blog-content h3 { font-size: 1.4rem; margin-top: 40px; margin-bottom: 15px; color: var(--text-headline); }
.blog-content p { margin-bottom: 20px; font-size: 1.15rem; }
.blog-content ul, .blog-content ol { margin-bottom: 30px; padding-left: 25px; }
.blog-content li { margin-bottom: 12px; }

.table-container { width: 100%; overflow-x: auto; margin: 30px 0; border-radius: 8px; border: 1px solid var(--box-border); }
.checklist-table { width: 100%; border-collapse: collapse; min-width: 600px; background: var(--box-bg); }
.checklist-table th, .checklist-table td { border: 1px solid var(--box-border); padding: 18px; text-align: left; vertical-align: top; }
.checklist-table th { background: rgba(var(--gold-rgb), 0.1); color: var(--gold); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }

.tip-box { background: var(--box-bg); border-left: 4px solid var(--gold); padding: 25px; margin: 40px 0; border-radius: 0 8px 8px 0; }
.tip-box strong { color: var(--gold); }
.tip-box a { color: var(--text-headline); text-decoration: underline !important; font-weight: bold; }

.legal-box { background: rgba(255, 255, 255, 0.02); border: 1px dashed var(--gold); padding: 25px; margin: 40px 0; font-style: italic; border-radius: 8px; }

/* ANTI-SPAM & UTILITY */
.cf-turnstile { display: flex; justify-content: center; width: 100%; }
.hp-field { display: none !important; visibility: hidden; position: absolute; left: -9999px; }
/* ============ Add-On Selector (auf Paketseiten) ============ */
.addon-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--box-border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.addon-option:hover {
  border-color: var(--gold);
  background: rgba(237, 175, 66, 0.05);
}
.addon-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}
.addon-option.checked {
  border-color: var(--gold);
  background: rgba(237, 175, 66, 0.08);
}
.addon-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  gap: 15px;
}
.addon-price {
  color: var(--gold);
  font-weight: bold;
  white-space: nowrap;
}
.addon-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--box-border);
  font-size: 1.1rem;
}

/* ============================================================
   Guide-Link unter Formularfeldern (z. B. Technical Rider)
   ============================================================ */
.req-guide-link,
.req-guide-link:link,
.req-guide-link:visited,
.req-guide-link:active {
  display: inline-block;
  margin-top: 10px;
  color: var(--gold);
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px dotted var(--gold);
  transition: color 0.15s, border-color 0.15s;
}

.req-guide-link:hover {
  color: var(--text-headline);
  border-bottom-color: var(--text-headline);
  border-bottom-style: solid;
}

/* =========================================
   LEGAL CONTENT (Imprint, Privacy)
   ========================================= */
.legal-content-container {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.legal-content-container h1 {
    font-size: 2.5rem;
    color: var(--text-headline);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.legal-content-container > p:first-of-type,
.legal-content-container .legal-sub {
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.legal-block h2 {
    color: var(--gold);
    margin-top: 32px;
    margin-bottom: 8px;
    font-size: 1.15rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.legal-block h3 {
    color: var(--text-headline);
    margin-top: 20px;
    margin-bottom: 6px;
    font-size: 1rem;
}

.legal-block p,
.legal-block li {
    line-height: 1.75;
}

.legal-block ul {
    padding-left: 22px;
}

.legal-block .info-box {
    line-height: 1.8;
}

/* RTL-Support (Arabisch, Hebräisch) */
[dir="rtl"] .legal-content-container,
[dir="rtl"] .blog-content {
    text-align: right;
}

[dir="rtl"] .legal-block ul {
    padding-left: 0;
    padding-right: 22px;
}

[dir="rtl"] .info-box {
    border-left: none;
    border-right: 3px solid var(--gold);
}


/* =========================================
   SERVICES PAGE HELPERS
   ========================================= */
.comp-card.is-featured {
    border-color: var(--gold);
}

.info-box.mb-80 {
    margin-bottom: 80px;
}

.info-box .philo-text {
    line-height: 1.7;
}

.info-box .philo-cta {
    margin-top: 25px;
}

/* =========================================
   LAYOUT HELPERS (aus Inline-Styles entfernt)
   ========================================= */

.mb-50  { margin-bottom: 50px; }
.mb-60  { margin-bottom: 60px; }
.mb-80  { margin-bottom: 80px; }
.mb-100 { margin-bottom: 100px; }

.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* Team-Beschreibung (about.html) */
.team-role {
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Umgekehrter Akzent-Block (about.html – Holger-Block) */
.info-box.is-reversed {
    border-left: none;
    border-right: 3px solid var(--gold);
    text-align: right;
}

/* Blog-Übersicht */
.blog-grid-flex {
    margin-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* how-it-works Buttons mit unterem Abstand */
.hero-btns.has-bottom-pad {
    padding-bottom: 80px;
}

/* thanks.html spezifisch */
.thanks-info {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

.thanks-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.thanks-sub {
    color: var(--gold);
    font-weight: bold;
}

/* Footer-Link-Zeile (überall) */
.footer-links {
    margin: 15px 0;
}


/* =========================================
   MERCH-INTRO (package-website.html)
   ========================================= */
.merch-intro {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* =========================================
   CONTACT PAGE HELPERS
   ========================================= */
.contact-main-box {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: left;
}

.newsletter-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.newsletter-checkbox {
    width: auto;
    margin-top: 5px;
}

.newsletter-label {
    font-weight: normal;
    font-size: 0.85rem;
    color: var(--text-main);
}

.cf-turnstile-mt {
    margin-top: 20px;
}

#form-status {
    margin-top: 15px;
    font-weight: bold;
    display: none;
}

.contact-submit-wrap {
    margin-top: 30px;
}

.btn-full {
    width: 100%;
}

.contact-alt-section {
    margin-bottom: 100px;
    color: var(--text-main);
    text-align: center;
}

.contact-alt-email {
    font-weight: bold;
    color: var(--gold);
    margin-top: 5px;
    font-size: 1.2rem;
}


/* ============================================================
   UPLOAD / SUBMISSION FORM
   Verschoben aus source/upload/index.html
   ============================================================ */
body { padding: 30px 20px 60px; }

    .layout-wrapper {
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 40px;
      max-width: 1200px;
      margin: 0 auto;
      align-items: start;
    }

    .form-content {
      min-width: 0;
    }

    h1 { color: var(--gold); margin-bottom: 12px; }
    p.intro { color: var(--text-muted, #888); margin-bottom: 24px; }

    /* ===================== Sidebar ===================== */
    .req-sidebar {
      position: sticky;
      top: 30px;
      max-height: calc(100vh - 60px);
      overflow-y: auto;
      padding: 20px 0;
      border-right: 1px solid var(--box-border, #333);
      padding-right: 20px;
    }
    .req-sidebar::-webkit-scrollbar { width: 6px; }
    .req-sidebar::-webkit-scrollbar-thumb {
      background: var(--box-border, #333);
      border-radius: 3px;
    }

    .sidebar-section { margin-bottom: 24px; }
    .sidebar-title {
      font-family: var(--font-heading, inherit);
      font-size: 0.72rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 1.8px;
      color: var(--gold);
      margin-bottom: 12px;
      padding-bottom: 6px;
      border-bottom: 1px solid var(--box-border, #333);
    }

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

    .sidebar-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 8px;
      border-radius: 6px;
      font-size: 0.82rem;
      color: var(--text-muted, #888);
      text-decoration: none;
      transition: all 0.15s ease;
      cursor: pointer;
      line-height: 1.35;
    }
    .sidebar-item:hover {
      background: rgba(237, 175, 66, 0.08);
      color: var(--text-main, #eee);
      text-decoration: none;
    }

    .sidebar-status {
      font-size: 0.85rem;
      width: 14px;
      text-align: center;
      flex-shrink: 0;
      line-height: 1;
    }
    .sidebar-item[data-status="empty"] .sidebar-status { color: #555; }
    .sidebar-item[data-status="pending"] .sidebar-status { color: #fbbf24; }
    .sidebar-item[data-status="ok"] .sidebar-status { color: #4ade80; }
    .sidebar-item[data-status="error"] .sidebar-status { color: #ff6b6b; }

    .sidebar-item[data-status="ok"] { color: var(--text-main, #eee); }
    .sidebar-item[data-status="error"] { color: #ff9b9b; }

	      /* ===================== Guide Link ===================== */
    .req-guide-link,
    .req-guide-link:link,
    .req-guide-link:visited,
    .req-guide-link:active,
    .req-guide-link:focus {
      display: block;
      width: 100%;
      margin-top: 10px;
      color: #edaf42 !important;
      font-size: 0.85rem;
      text-decoration: none;
      border-bottom: 1px dotted #edaf42;
    }
    .req-guide-link:hover {
      color: #ffffff !important;
      border-bottom-color: #ffffff;
      border-bottom-style: solid;
    }
    /* ===================== Requirements ===================== */
    .package-summary {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 16px 0;
    }
    .package-summary .pkg-tag {
      display: inline-flex;
      align-items: center;
      background: rgba(237, 175, 66, 0.12);
      color: var(--gold);
      border: 1px solid rgba(237, 175, 66, 0.35);
      border-radius: 20px;
      padding: 6px 14px;
      font-size: 0.85rem;
      font-weight: 600;
      letter-spacing: 0.3px;
    }

    .submission-info {
      font-size: 0.85rem;
      color: #888;
      margin: 12px 0 24px;
      padding: 10px 14px;
      background: var(--card-bg);
      border-radius: 4px;
    }

    .req-section-title {
      font-family: var(--font-heading, inherit);
      font-size: 1.1rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--gold);
      margin: 40px 0 20px;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--box-border, #333);
    }

    .req-row {
      display: grid;
      grid-template-columns: 40px 1fr;
      gap: 10px 15px;
      padding: 20px;
      margin-bottom: 15px;
      background: var(--card-bg);
      border-radius: 6px;
      border-left: 3px solid var(--card-accent);
      scroll-margin-top: 30px;
    }
    .req-row:has(.req-status[data-status="ok"]) { border-left-color: #4ade80; }
    .req-row:has(.req-status[data-status="error"]) { border-left-color: #ff6b6b; }

    .req-status {
      grid-row: 1 / 4;
      font-size: 1.5rem;
      text-align: center;
      align-self: start;
      line-height: 1;
    }
    .req-status[data-status="ok"] { color: #4ade80; }
    .req-status[data-status="error"] { color: #ff6b6b; }
    .req-status[data-status="empty"] { color: #555; }
    .req-status[data-status="pending"] { color: #fbbf24; }

    .req-label { font-weight: 700; font-size: 1.05rem; }
    .req-hint { font-size: 0.85rem; color: var(--hint-color); }
    .req-input { grid-column: 2; }
    .req-input input[type="text"], .req-input textarea {
      width: 100%;
      padding: 10px;
      background: var(--card-bg-alt);
      border: 1px solid var(--input-border);
      color: var(--input-text);
      border-radius: 4px;
      font-family: inherit;
    }

    /* select im Upload-Formular — gleicher Look wie text input */
    .req-input select {
      width: 100%;
      padding: 10px;
      background: var(--card-bg-alt);
      border: 1px solid var(--input-border);
      color: var(--input-text);
      border-radius: 4px;
      font-family: inherit;
      font-size: 1rem;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%23d4af37' d='M6 9L1 4h10z'/></svg>");
      background-repeat: no-repeat;
      background-position: right 12px center;
      padding-right: 36px;
      cursor: pointer;
    }
    .req-input select:focus {
      outline: none;
      border-color: var(--gold);
    }

    /* Optionen erben nicht vom Select — müssen explizit gestylt werden,
       sonst bleiben sie auf Windows/Chrome dunkel, auch im Light-Mode */
    .req-input select option {
      background: var(--card-bg-alt);
      color: var(--input-text);
      padding: 8px;
    }
    .req-radio-group {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      padding: 4px 0;
    }
    .req-radio-option {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      font-size: 0.95rem;
      color: var(--text-main);
      padding: 8px 14px;
      border: 1px solid var(--input-border);
      border-radius: 6px;
      background: var(--card-bg-alt);
      transition: all 0.15s;
    }
    .req-radio-option:hover {
      border-color: var(--gold);
    }
    .req-radio-option input[type="radio"] {
      width: 16px;
      height: 16px;
      accent-color: var(--gold);
      cursor: pointer;
      margin: 0;
      flex-shrink: 0;
    }
    .req-radio-option input[type="radio"]:checked + span {
      color: var(--gold);
      font-weight: 600;
    }
    .req-radio-option:has(input:checked) {
      border-color: var(--gold);
    }
    .req-drop {
      border: 2px dashed var(--input-border);
      border-radius: 6px;
      padding: 20px;
      text-align: center;
      color: #888;
      cursor: pointer;
      transition: all 0.2s;
    }
    .req-drop:hover, .req-drop.drag-over {
      border-color: var(--gold);
      color: var(--gold);
    }
    .req-filelist { list-style: none; padding: 0; margin: 10px 0 0; font-size: 0.85rem; }
    .req-filelist li { padding: 4px 0; }
    .req-filelist li.ok { color: #4ade80; }
    .req-filelist li.error { color: #ff6b6b; }
    .req-filelist li.uploading { color: #fbbf24; }

    .req-error {
      grid-column: 1 / -1;
      color: #ff6b6b;
      font-size: 0.85rem;
      margin-top: 8px;
      padding: 8px 12px;
      background: rgba(255, 107, 107, 0.08);
      border-left: 3px solid #ff6b6b;
      border-radius: 4px;
    }

    .gdpr-wrap {
      margin: 40px 0;
      padding: 20px;
      background: var(--card-bg);
      border-radius: 6px;
    }
    .gdpr-wrap label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
    #submit-btn {
      display: block;
      width: 100%;
      padding: 18px;
      font-size: 1.1rem;
      font-weight: 700;
      background: var(--gold);
      color: #000;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-family: inherit;
    }
    #submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }

    #submit-notice {
      color: #fbbf24;
      text-align: center;
      margin-bottom: 15px;
      font-size: 0.9rem;
    }

    /* ===================== Mobile ===================== */
    @media (max-width: 900px) {
      .layout-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
      }
      .req-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--box-border, #333);
        padding: 0 0 20px;
        margin-bottom: 20px;
      }
      .sidebar-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
      }
      .sidebar-item {
        padding: 4px 10px;
        background: rgba(255,255,255,0.04);
        border-radius: 20px;
      }
    }
	      /* ===================== Active Highlight ===================== */
    .sidebar-item.is-active {
      background: rgba(237, 175, 66, 0.18);
      color: var(--text-headline, #fff);
    }
    .sidebar-item.is-active .sidebar-status {
      color: var(--gold);
    }
    .sidebar-item.is-active .sidebar-label {
      font-weight: 600;
    }

    .req-row.is-active {
      border-left-color: var(--gold);
      box-shadow: 0 0 0 1px rgba(237, 175, 66, 0.25);
    }
	      .submission-info {
      display: none;
    }
  
    /* Info-Button neben Label */
    .req-info-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      margin-left: 6px;
      border-radius: 50%;
      border: 1px solid var(--gold);
      background: transparent;
      color: var(--gold);
      font-size: 0.75rem;
      font-weight: 700;
      cursor: pointer;
      vertical-align: middle;
      transition: all 0.2s;
      padding: 0;
      line-height: 1;
    }
    .req-info-btn:hover {
      background: var(--gold);
      color: #1a1a1a;
    }

    /* Info-Button unten rechts im Feld */
    .req-row { position: relative; }
    .req-info-btn {
      position: absolute;
      bottom: 10px;
      right: 10px;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      border: 1px solid var(--gold);
      background: var(--card-bg);
      color: var(--gold);
      font-size: 0.75rem;
      font-weight: 700;
      cursor: pointer;
      padding: 0;
      line-height: 1;
      z-index: 5;
      transition: all 0.15s;
      font-family: inherit;
    }
    .req-info-btn:hover {
      background: var(--gold);
      color: #1a1a1a;
    }

    /* Info-Popover (subtil, direkt am Feld) */
    .req-info-popover {
      position: absolute;
      bottom: 40px;
      right: 10px;
      width: 340px;
      max-width: calc(100vw - 60px);
      background: var(--card-bg);
      border: 1px solid var(--gold);
      border-radius: 8px;
      padding: 16px 20px 18px;
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
      z-index: 20;
      color: var(--popover-text);
      font-size: 0.85rem;
      line-height: 1.6;
      animation: popIn 0.15s ease-out;
    }
    @keyframes popIn {
      from { opacity: 0; transform: translateY(4px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .req-info-popover h4 {
      color: var(--gold);
      margin: 0 0 10px;
      font-size: 0.95rem;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      padding-right: 24px;
    }
    .req-info-popover .req-info-body p { margin-bottom: 10px; }
    .req-info-popover .req-info-body ul { margin: 10px 0 10px 20px; }
    .req-info-popover .req-info-body li { margin-bottom: 5px; }
    .req-info-popover .req-info-body strong { color: var(--input-text); }
    .req-info-popover .req-info-close {
      position: absolute;
      top: 6px;
      right: 10px;
      background: transparent;
      border: none;
      color: #888;
      font-size: 1.3rem;
      cursor: pointer;
      padding: 0 4px;
      line-height: 1;
      transition: color 0.15s;
    }
    .req-info-popover .req-info-close:hover { color: var(--gold); }

    @media (max-width: 600px) {
      .req-info-popover {
        right: -10px;
        width: calc(100vw - 40px);
      }
    }

/* ============================================================
   TURNSTILE GATE (Upload)
   ============================================================ */
body.pre-verify main > *:not(#turnstile-gate) { display: none !important; }
#turnstile-gate { max-width: 600px; margin: 60px auto; padding: 40px 30px; background: var(--card-bg); border-radius: 12px; text-align: center; border: 1px solid var(--input-border); }
#turnstile-gate h2 { color: var(--gold); margin-bottom: 12px; font-size: 1.4rem; letter-spacing: 1px; }
#turnstile-gate p { color: var(--hint-color); margin-bottom: 24px; }
#turnstile-gate .cf-turnstile { margin: 20px 0; }
#turnstile-status { color: #888; font-size: 0.9rem; margin-top: 20px; }

/* ============================================================
   LANG-SWITCH (Upload, fixed position)
   ============================================================ */
#lang-switch-wrap { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; align-items: center; gap: 18px; }
  #lang-switch-wrap .lang-current { background: var(--card-bg); border: 1px solid var(--input-border); color: var(--gold); padding: 6px 12px; border-radius: 6px; cursor: pointer; font-family: inherit; font-size: 0.85rem; letter-spacing: 0.5px; }
  #lang-switch-wrap .lang-current:hover { border-color: var(--gold); }
  #lang-switch-wrap .lang-menu { display: none; position: absolute; top: 100%; right: 0; margin: 4px 0 0; padding: 6px 0; background: var(--card-bg); border: 1px solid var(--input-border); border-radius: 6px; list-style: none; min-width: 130px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
  #lang-switch-wrap .lang-switch-dropdown.open .lang-menu { display: block; }
  #lang-switch-wrap .lang-menu a { display: block; padding: 8px 16px; color: #d0d0d0; text-decoration: none; font-size: 0.85rem; }
  #lang-switch-wrap .lang-menu a:hover { background: rgba(212,175,55,0.1); color: var(--gold); }
  #lang-switch-wrap .lang-menu a.active { color: var(--gold); font-weight: 600; }

/* ============================================================
   SIDEBAR INFO BUTTONS (Required / Additional)
   ============================================================ */
.sidebar-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  vertical-align: middle;
  font-family: inherit;
  transition: all 0.15s;
}
.sidebar-info-btn:hover {
  background: var(--gold);
  color: #1a1a1a;
}
.sidebar-info-popover {
  position: fixed;
  z-index: 10000;
  background: var(--card-bg);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 16px 20px 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  color: var(--popover-text);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 340px;
  width: 340px;
}
.sidebar-info-popover .req-info-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: transparent;
  border: none;
  color: #888;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}
.sidebar-info-popover .req-info-close:hover { color: var(--gold); }
.sidebar-info-popover p { margin-bottom: 8px; }
.sidebar-info-popover strong { color: var(--input-text); }

/* Upload-Seite: Report-a-Problem-Link */
.upload-problem-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 16px;
    background: var(--card-bg-alt);
    color: var(--gold);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid var(--input-border);
    z-index: 1000;
    transition: all 0.2s;
    font-family: inherit;
}
.upload-problem-link:hover {
    background: var(--card-bg);
    border-color: var(--gold);
    color: var(--gold);
}
.upload-problem-link span {
    color: inherit;
}

