/* css/main.css */

/* --- Imports for Themes (add these at the end of main.css) --- */
/* @import 'themes/_dark.css'; */
/* @import 'themes/_softdark.css'; */
/* @import 'themes/_deepspace.css'; */
/* @import 'themes/_verdant.css'; */
/* Important: Do NOT activate all imports at once. You will dynamically load one theme via JavaScript. */

@import '_modular.css';

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* --- Global Base Styles (Universal, not theme-specific) --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Space for fixed header */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth theme transition */

    /* Default light theme fallback - these will be overridden by any imported theme */
    background-color: #F9FAFB;
    color: #333;
}

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

/* --- Header Section (Always Light / Corporate Design) --- */
.site-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E0E0E0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 80px;
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.header-content {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

ul.langswitcher {
    display: inline-block;
    margin-left: 0 !important;
}

ul.langswitcher {
    padding: 0;
    margin: 0;
    transform: none !important;
}

ul.langswitcher li {
    margin: 5px 0;
}

.logo-link { display: flex; align-items: center; }
.logo-image { max-width: 180px; height: auto; width: 100%; }

/* Desktop Navigation (Part of Header) */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.main-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}
.main-nav li { margin: 0 12px; }
.main-nav a {
    font-size: 1.1rem;
    font-weight: 500;
    color: #007BFF; /* Link color always blue in header */
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.main-nav a:hover {
    text-decoration: underline;
    text-shadow: 0 0 5px rgba(0,123,255,0.5);
}
.product-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFFFF; /* Buttons always white text */
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 5px;
    margin-left: 10px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}
.btn-recorder { background-color: #5d5d5d; border-bottom: 3px solid #111; }
.btn-recorder:hover { background-color: #444; }
.btn-genesis { background-color: #b89e73; border-bottom: 3px solid #7d6b50; }
.btn-genesis:hover { background-color: #b0a595; }
.btn-scapeshift { background-color: #1a7e2b; border-bottom: 3px solid #0d3d13; }
.btn-scapeshift:hover { background-color: #289333; }

/* Mobile Menu Button (Header) */
.vm-menu-button {
    display: none;
    width: 40px;
    height: 40px;
    padding: 5px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1100;
}
.vm-menu-icon {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.vm-menu-line {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #000; /* Always black lines in hamburger */
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    position: absolute;
}
.vm-menu-line-1 { transform: translateY(-8px); }
.vm-menu-line-3 { transform: translateY(8px); }

/* Mobile Menu Button Animation (to X) */
.vm-menu-button.is-active .vm-menu-line-1 { transform: translateY(0) rotate(45deg); }
.vm-menu-button.is-active .vm-menu-line-2 { opacity: 0; }
.vm-menu-button.is-active .vm-menu-line-3 { transform: translateY(0) rotate(-45deg); }

/* Mobile Menu Panel (Default Light Theme, will be overridden by Theme CSS for dark modes) */
.vm-mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #FFFFFF; /* Default light */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Default light */
    z-index: 1050;
    overflow-y: auto;
}
.vm-mobile-menu.is-open { display: block; }
.vm-mobile-menu a {
    display: block;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: #333; /* Default light */
    border-bottom: 1px solid #F0F0F0; /* Default light */
}
.vm-mobile-menu a:hover { background-color: #F9FAFB; }
.vm-mobile-menu .mobile-btn-genesis {
    color: #FFFFFF;
    background-color: #333;
}
.vm-mobile-menu .mobile-btn-recorder {
    color: #FFFFFF;
    background-color: #1A237E;
}
.vm-mobile-menu .mobile-btn-scapeshift {
    color: #FFFFFF;
    background-color: #1a5800;
}

.vm-mobile-menu ul.langswitcher {
    display: flex;
    justify-content: space-around;
}


/* --- Main Content Area --- */
.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* --- Hero Section Styling (for 'home.html.twig') --- */
.page-hero {
    padding-top: 20px;
}
.page-hero h1 {
    font-size: 3rem;
    font-weight: 300;
    color: #000; /* Default light */
    margin-top: 0;
    letter-spacing: 1px;
    word-break: break-word;
    overflow-wrap: break-word;
}
.page-hero h1 strong { color: #007BFF; font-weight: 600; }
.page-hero .tron-divider {
    height: 3px;
    width: 150px;
    background-color: #007BFF;
    box-shadow: 0 0 12px rgba(0,123,255,0.7);
    margin: 40px 0;
}
.page-home-content p { font-size: 1.1rem; line-height: 1.7; }


/* --- Page Layouts (General & Modular) --- */
.page-text-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #000; /* Default light */
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #E0E0E0; /* Default light */
    max-width: none;
}
.page-text-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    margin-top: 20px;
    width: 100%;
}
.page-text-content {
    flex: 3;
    min-width: 0;
}
.page-text-content p, .page-text-content ul, .page-text-content ol {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333; /* Default light */
}
.page-text-sidebar {
    flex: 1;
    min-width: 250px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    height: fit-content;
}
.sidebar-box { /* Default light */
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 20px;
}
.sidebar-box h4 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #000; /* Default light */
    border-bottom: 1px solid #E0E0E0; /* Default light */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* --- Sidebar Navigation Styling (TOC / Modular Nav) --- */
.sidebar-box ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    position: relative;
}
.sidebar-box > ul > li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}
.sidebar-box > ul > li > a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    color: #007BFF; /* Default light */
    transition: color 0.2s ease;
}
.sidebar-box > ul > li > a:hover { text-decoration: underline; }
.sidebar-box > ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    height: 2px;
    width: 15px;
    background-color: #007BFF;
    box-shadow: 0 0 4px rgba(0,123,255,0.7);
}
.sidebar-box ul ul {
    margin-top: 15px;
    position: relative;
    border-left: 2px solid #E9E9E9; /* Default light */
    margin-left: 7px;
    padding-left: 20px;
}
.sidebar-box ul ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 0;
}
.sidebar-box ul ul a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    color: #333; /* Default light */
    display: block;
}
.sidebar-box ul ul a:hover { text-decoration: underline; }
.sidebar-box ul ul li::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 8px;
    height: 2px;
    width: 10px;
    background-color: #B0B0B0; /* Default light */
}


/* --- Global Content Styling (applied to .page-home-content, .page-text-content) --- */
.page-home-content,
.page-text-content {
    /* Links */
    a {
        color: #007BFF; /* Default light */
        text-decoration: none;
        font-weight: 500;
        transition: all 0.2s ease;
    }
    a:hover {
        color: #0056b3; /* Default light */
        text-decoration: underline;
    }

    /* Lists */
    ul, ol {
        padding-left: 30px;
        margin-bottom: 1.5em;
    }
    li {
        margin-bottom: 0.5em;
    }

    /* Blockquotes */
    blockquote {
        margin: 1.5em 0;
        padding: 10px 20px;
        background-color: #FFFFFF; /* Default light */
        border-left: 5px solid #007BFF;
        font-style: italic;
        color: #555; /* Default light */
        border-radius: 0 5px 5px 0;
    }
    blockquote p { margin: 0; }

    /* Code Blocks */
    pre {
        overflow-x: auto;
        white-space: pre;
        max-width: 100%;
        background-color: #f0f0f0; /* Default light */
        padding: 1em;
        border-radius: 5px;
    }

    /* Content Headlines */
    h2, h3, h4 {
        color: #000; /* Default light */
        font-weight: 600;
        margin-top: 1rem;
        margin-bottom: 1em;
        border: none;
    }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }

    > h2:first-child,
    > h3:first-child,
    > h4:first-child { margin-top: 0; }

    /* Content Images from Markdown */
    img.content-image {
        max-width: 40%;
        height: auto;
        margin: 0 0 1.5em 0;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        display: block;
        object-fit: cover;
    }
    img.content-image.left-float { float: left; margin-right: 2em; }
    img.content-image.right-float { float: right; margin-left: 2em; }

    /* Horizontal Rule */
    hr {
        clear: both;
        margin-top: 2em;
        margin-bottom: 2em;
        border: 0;
        height: 1px;
        background-color: #E0E0E0; /* Default light */
    }

    /* Spacing between modular sections */
    .modular-section { margin-bottom: 3em; }
    .modular-section:last-child { margin-bottom: 0; }
}


/* --- Site Footer Styles --- */
.site-footer {
    padding: 40px 20px;
    background-color: #FFFFFF; /* Default light */
    border-top: 1px solid #E0E0E0; /* Default light */
    color: #777; /* Default light */
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
}
.footer-legal a {
    color: #007BFF; /* Default light */
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.2s ease;
    font-weight: 500;
}
.footer-legal a:hover {
    color: #0056b3; /* Default light */
    text-decoration: underline;
}
.footer-copyright {}


.notices p {
    margin: 0 !important;
}

.notices {
    padding: 1rem !important;
    padding-left: 30px !important;
}

/* --- Responsive Design (General) --- */
@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .vm-menu-button { display: flex; }
    .header-content { padding: 0 15px; }
    .site-header { padding: 0; }
    .content-area { padding: 30px 15px; }
    .page-text-wrapper { flex-direction: column; gap: 30px; }
    .page-text-sidebar {
        position: static;
        top: auto;
        width: 100%;
    }
    .page-text-content img.content-image {
        max-width: 100%;
        float: none;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-legal a { margin: 0 10px 10px 10px; }
    .page-hero h1 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .page-hero h1 { font-size: 1.8rem; }
    .page-text-header h1 { font-size: 2rem; }
}

@media (max-width: 576px) {
    .page-hero h1 { font-size: 1.5rem; }
    .page-text-header h1 { font-size: 1.6rem; }
    .page-text-content p, .page-text-content ul, .page-text-content ol { font-size: 1rem; }
}

/* Macht die Pfeile immer sichtbar und dunkelgrau */
.featherlight-next span, 
.featherlight-previous span {
    color: #333 !important; /* Dunkle Farbe statt Weiß */
    font-size: 30px;
    font-weight: bold;
    text-shadow: none; /* Schatten entfernen falls störend */
}

.featherlight .featherlight-close-icon {
    font-weight: 900;
    width: 2rem !important;
    height: 2rem !important;
    font-size: 2rem;
    top: .2rem !important;
    right: .2rem !important;
}

.container img {
    max-width: 100%;
}

.page-text-content video {
    border-radius: 8px;
}

.featherlight .featherlight-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
}