/* ============================================================
   ROOT VARIABLES (Light Mode)
============================================================ */

:root {
    --bg: #f5f7fa;
    --text: #1f1f1f;
    --card-bg: #ffffff;
    --glass-bg: rgba(255,255,255,0.55);
    --glass-border: rgba(255,255,255,0.35);
    --shadow: 0 8px 24px rgba(0,0,0,0.08);
    --radius: 16px;

    --accent: #4e73df;
    --accent-soft: #6c8bff;
}
/* ============================================================
   DARK MODE VARIABLES
============================================================ */

.dark-mode {
    --bg: #121212;
    --text: #eaeaea;
    --card-bg: #1e1e1e;
    --glass-bg: rgba(30,30,30,0.45);
    --glass-border: rgba(255,255,255,0.1);
    --shadow: 0 8px 24px rgba(0,0,0,0.45);

    --accent: #6c8bff;
    --accent-soft: #8aa0ff;
}

/* ============================================================
   GLOBAL BODY – Material Design 3
============================================================ */

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    padding-top: 90px;
    line-height: 1.7;
    transition: background .3s ease, color .3s ease;
}

/* ============================================================
   HERO SECTION – Modern Gradient + Soft Shadow
============================================================ */

.hero {
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: white;
    padding: 120px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.hero-img {
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ============================================================
   CATEGORY CARDS – Soft‑UI + Material Hover
============================================================ */

.category-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.dark-mode .category-card {
    background: var(--card-bg);
    color: var(--text);
    box-shadow: var(--shadow);
}

/* ============================================================
   FEATURE CARDS – Floating Material Cards
============================================================ */

.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.dark-mode .feature-card {
    background: var(--card-bg);
    color: var(--text);
    box-shadow: var(--shadow);
}

/* ============================================================
   PROMO BANNER – Clean Material Section
============================================================ */

.promo-banner {
    background: var(--section-bg);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
}

.dark-mode .promo-banner {
    background: var(--section-bg);
    color: var(--text);
    box-shadow: var(--shadow);
}

/* ============================================================
   NEWSLETTER – Modern Section
============================================================ */

.newsletter-box {
    background: var(--section-bg);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.dark-mode .newsletter-box {
    background: var(--section-bg);
    color: var(--text);
}

/* ============================================================
   UNIVERSAL MODULE – Floating Material + Soft‑UI
============================================================ */

.universal-module {
    margin-bottom: 22px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}

.universal-module.visible {
    opacity: 1;
    transform: translateY(0);
}

.universal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.universal-column {
    display: flex;
    flex-direction: column;
    padding: 15px;
    box-sizing: border-box;
}

/* Column widths */
.universal-col-12 { width: 100%; flex: 0 0 100%; }
.universal-col-6  { width: 50%;  flex: 0 0 50%; }
.universal-col-4  { width: 33.333%; flex: 0 0 33.333%; }
.universal-col-3  { width: 25%;  flex: 0 0 25%; }

/* Elements – Soft‑UI Cards */
.universal-element {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

.universal-element:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* Text */
.universal-element p,
.universal-element span,
.universal-element div {
    word-break: break-word;
    color: var(--text);
}

/* Images */
.universal-column img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

/* Videos / Iframes */
.universal-column video,
.universal-column iframe {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

/* Buttons */
.universal-element a.btn {
    max-width: 100%;
    white-space: normal;
}

/* Code / HTML */
.universal-element pre,
.universal-element code {
    max-width: 100%;
    overflow-x: auto;
    border-radius: var(--radius);
}

/* Responsive */
@media (max-width: 768px) {
    .universal-column {
        width: 100%;
        padding: 10px;
    }
    .universal-element {
        padding: 18px;
    }
}

/* ============================================================
   DARK MODE – Universal Module
============================================================ */

.dark-mode .universal-element {
    background: var(--card-bg);
    color: var(--text);
    box-shadow: var(--shadow);
}

.dark-mode .universal-column img {
    filter: brightness(0.9);
}

.dark-mode .universal-element pre,
.dark-mode .universal-element code {
    background: #222;
    color: var(--text);
}

/* ============================================================
   MAIN & SIDEBAR MODULE WRAPPER – Modern Layout
============================================================ */

.mp-main-module {
    margin-bottom: 40px;
}

.mp-sidebar-module {
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.4;
}

.mp-sidebar-module img {
    max-width: 220px;
    height: auto;
    display: block;
}

/* ============================================================
   SLIDER – Modern Button
============================================================*/

.mp-swiper-toggle {
    margin-top: 10px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: background .25s ease, box-shadow .25s ease;
}

.mp-swiper-toggle:hover {
    background: var(--accent-soft);
    box-shadow: var(--shadow);
}

.dark-mode .mp-swiper-toggle {
    background: var(--accent);
}

.dark-mode .mp-swiper-toggle:hover {
    background: var(--accent-soft);
}

/* ============================================================
   MODULE TYPES (text-main, text-sidebar, image-main, image-sidebar)
============================================================ */

/* Text Main */
.module-text-main .universal-element {
    font-size: 18px;
    line-height: 1.6;
}

/* Text Sidebar */
.module-text-sidebar .universal-element {
    font-size: 15px;
    line-height: 1.4;
}

/* Image Main */
.module-image-main img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* Image Sidebar */
.module-image-sidebar img {
    max-width: 220px;
    height: auto;
    border-radius: var(--radius);
}

/* ============================================================
   SIDEBAR CONTAINER – Nahtlos integriert
============================================================ */

.mp-sidebar {
    padding-left: 20px;              /* Abstand zum Main */
    padding-right: 0;                /* kein unnötiger Rand */
    margin-top: 0;                   /* bündig mit Main */
    display: block;                  /* stabil im Bootstrap-Grid */
}

/* Leichte optische Abgrenzung ohne Box */
.mp-sidebar {
    border-left: 1px solid rgba(0,0,0,0.06);
}

.dark-mode .mp-sidebar {
    border-left: 1px solid rgba(255,255,255,0.08);
}

/* Abstand zwischen Sidebar-Modulen */
.mp-sidebar-module {
    margin-bottom: 12px;
}
/* Sidebar-Text etwas kompakter */
.mp-sidebar-module .universal-element {
    padding: 14px;
    border-radius: 12px;
}

/* Sidebar-Bilder kompakt */
.mp-sidebar-module img {
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto;          /* zentriert */
    border-radius: var(--radius);
}

/* Mobile: Sidebar unter Main */
@media (max-width: 768px) {
    .mp-sidebar {
        padding-left: 0;
        border-left: none;
        margin-top: 30px;
    }
}
