/* JoinOurServer — Isomorphic-inspired Dark Theme */

/* Inter font — self-hosted (DSGVO/GDPR-konform, kein Request an Google).
   v20 vom Google-Fonts-CDN ist eine Variable-Font; ein woff2 deckt alle
   Gewichte 100-900 ab. Zwei Subsets reichen für DE/EN:
     • latin       (U+0000-00FF: ASCII + deutsche Umlaute ä ö ü ß)
     • latin-ext   (zusätzliche europäische Akzente, OE/AE etc.)
   font-display: swap → Text wird sofort in der System-Fallback-Schrift
   gerendert und beim Eintreffen der Web-Font ohne Layout-Shift getauscht. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
                   U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                   U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                   U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                   U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Smooth in-page anchor navigation.
   The fixed top navbar would otherwise cover the first ~100 px of a section
   when the browser jumps to /#features etc. — scroll-margin-top pushes the
   target down so the heading stays visible below the navbar.
   scroll-behavior is gated on prefers-reduced-motion so users who disabled
   animations in their OS still get an instant jump.
   ========================================================================== */

html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
section[id],
[id^="section-"] {
    scroll-margin-top: 70px;
}

/* ==========================================================================
   Bootstrap 5.3 dark-theme overrides (new Isomorphic palette).
   ========================================================================== */

body {
    --bs-body-color: #d4d7dc;
    --bs-body-color-rgb: 212, 215, 220;
    --bs-secondary-color: #8b93a1;
    --bs-secondary-color-rgb: 139, 147, 161;
    --bs-tertiary-color: #6b7280;
    --bs-emphasis-color: var(--iso-text);
    --bs-heading-color: var(--iso-text);
    --bs-border-color: var(--iso-tint-08);
    --bs-body-bg: #0b0f1a;
    --bs-primary: #3b82f6;
    --bs-primary-rgb: 59, 130, 246;
    color-scheme: dark;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    letter-spacing: -0.01em;
}

/* Ensure form labels, help text and small text are actually readable */
.form-label,
label:not(.form-check-label):not(.btn) { color: var(--iso-text-secondary) !important; }
.form-text, small, .small { color: var(--iso-text-muted) !important; }
.text-muted, .text-muted * { color: var(--iso-text-muted) !important; }
.text-light.opacity-50 { color: var(--iso-text-muted) !important; }

/* Allow Bootstrap-style text-* utility classes to override the muted-small
   rule above. Without these the !important on .small wins and any
   text-warning / text-success / text-danger / text-info / text-primary
   inside a small element falls back to muted grey. */
small.text-warning, .small.text-warning,
.text-warning small, .text-warning .small,
.text-warning.small, .text-warning.form-text { color: var(--iso-warning) !important; }
small.text-success, .small.text-success,
.text-success small, .text-success .small,
.text-success.small, .text-success.form-text { color: var(--iso-success) !important; }
small.text-danger, .small.text-danger,
.text-danger small, .text-danger .small,
.text-danger.small, .text-danger.form-text { color: var(--iso-danger) !important; }
small.text-info, .small.text-info,
.text-info small, .text-info .small,
.text-info.small, .text-info.form-text { color: var(--iso-info) !important; }
small.text-primary, .small.text-primary,
.text-primary small, .text-primary .small,
.text-primary.small, .text-primary.form-text { color: var(--iso-primary-light, #60a5fa) !important; }

/* Placeholder text inside form controls */
.form-control::placeholder,
.form-select::placeholder,
input::placeholder,
textarea::placeholder { color: #6a6a70 !important; opacity: 1 !important; }

/* Checkbox/switch labels */
.form-check-label { color: var(--iso-text-secondary) !important; }

/* Headings stay crisp */
h1, h2, h3, h4, h5, h6 { color: var(--iso-text); }

:root {
    /* === Isomorphic Dark Palette === */
    --iso-bg:           #0b0f1a;  /* page background */
    --iso-bg-elev-1:    #0f1524;  /* sidebar / topbar */
    --iso-bg-elev-2:    #111827;  /* cards */
    --iso-bg-elev-3:    #1a2135;  /* card hover / input focus */
    --iso-border:       var(--iso-tint-06);
    --iso-border-hover: rgba(59, 130, 246, 0.25);

    /* Backwards-compat aliases so old code still works */
    --bg-dark:           var(--iso-bg);
    --bg-dark-secondary: var(--iso-bg-elev-1);
    --bg-dark-tertiary:  var(--iso-bg-elev-2);
    --bg-card:           var(--iso-bg-elev-2);

    /* Blue accent system */
    --iso-primary:       #3b82f6;  /* main blue */
    --iso-primary-light: #60a5fa;
    --iso-primary-dim:   rgba(59, 130, 246, 0.12);

    /* Semantic colors */
    --iso-success: #10b981;
    --iso-warning: #f59e0b;
    --iso-danger:  #ef4444;
    --iso-info:    #06b6d4;

    /* Text scale */
    --iso-text:           #ffffff;
    --iso-text-secondary: #d4d7dc;
    --iso-text-muted:     #8b93a1;
    --iso-text-dim:       #6b7280;

    /* Gradients (still used by legacy components) */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-danger:  linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-cta:     linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);

    --text-primary:   var(--iso-text);
    --text-secondary: var(--iso-text-secondary);
    --text-muted:     var(--iso-text-muted);

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
}

/* ==========================================================================
   Isomorphic components
   ========================================================================== */

body { background: var(--iso-bg) !important; color: var(--iso-text-secondary); }

/* === Sidebar === */
.iso-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 275px;
    background: var(--iso-bg-elev-1);
    border-right: 1px solid var(--iso-border);
    padding: 24px 0;
    z-index: 100;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.iso-sidebar::-webkit-scrollbar { width: 6px; }
.iso-sidebar::-webkit-scrollbar-thumb { background: var(--iso-tint-08); border-radius: 3px; }

.iso-brand { padding: 0 20px 16px; }
.iso-brand-logo {
    display: flex; align-items: center; gap: 10px;
    color: var(--iso-text); font-weight: 700; font-size: 17px; text-decoration: none;
}
.iso-brand-logo .logo-dot {
    width: 28px; height: 28px; border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800;
}

.iso-community-card {
    margin: 12px 20px 20px;
    padding: 12px;
    background: var(--iso-tint-03);
    border: 1px solid var(--iso-border);
    border-radius: 12px;
    display: flex; align-items: center; gap: 10px;
}
.iso-community-card img,
.iso-community-card .community-placeholder {
    width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 15px;
    object-fit: cover;
}
.iso-community-card .cc-name { color: var(--iso-text); font-weight: 600; font-size: 13px; line-height: 1.2; }
.iso-community-card .cc-slug { color: var(--iso-text-muted); font-size: 11px; }

.iso-section-label {
    padding: 8px 20px 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--iso-text-muted);
}

.iso-nav { padding: 0 12px; flex: 1; }
.iso-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    margin-bottom: 2px;
    border-radius: 10px;
    color: var(--iso-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all .15s ease;
}
.iso-nav-item i { font-size: 18px; width: 20px; text-align: center; }
.iso-nav-item:hover {
    background: var(--iso-tint-04);
    color: var(--iso-text);
}
.iso-nav-item.active {
    background: var(--iso-primary-dim);
    color: var(--iso-primary-light);
    font-weight: 600;
}
.iso-nav-item .iso-badge-new {
    margin-left: auto;
    background: var(--iso-danger);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}
.iso-nav-item .iso-badge-count {
    margin-left: auto;
    background: var(--iso-warning);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}

.iso-nav-separator { height: 1px; background: var(--iso-border); margin: 12px 20px; }

.iso-sidebar-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--iso-border);
    margin-top: 8px;
}
.iso-user-chip {
    display: flex; align-items: center; gap: 10px;
    padding: 10px;
    background: var(--iso-tint-03);
    border: 1px solid var(--iso-border);
    border-radius: 10px;
}
.iso-user-chip img { width: 32px; height: 32px; border-radius: 50%; }
.iso-user-chip .uc-name { color: var(--iso-text); font-size: 13px; font-weight: 600; line-height: 1.2; }
.iso-user-chip .uc-status { color: var(--iso-success); font-size: 11px; }

/* === Main content area ===
   Fills the area to the right of the fixed sidebar. Only kicks in a cap
   on very wide displays (>3000px) so the layout doesn't stretch
   infinitely. Mobile breakpoint at the bottom resets margin-left to 0. */
.iso-main,
.main-content {
    margin-left: 260px;
    margin-right: auto;
    max-width: 3000px;
    padding: 28px 32px;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Page-specific override: the member portal is a reading-style page (one
   stat row + plan list), so it benefits from a narrower max-width that
   stays centred in the area right of the sidebar. Only active above the
   mobile breakpoint — below that the sidebar collapses and the page
   needs full viewport width again. */
@media (min-width: 992px) {
    .iso-main.iso-main-narrow {
        max-width: 1440px;
        margin-left: max(260px, calc((100vw - 1180px) / 2));
    }
}

.iso-topbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}
.iso-topbar h1 { font-size: 22px; font-weight: 700; margin: 0; color: var(--iso-text); }
.iso-topbar .subtitle { color: var(--iso-text-muted); font-size: 14px; margin: 2px 0 0; }

/* === Stat cards with circular progress === */
.iso-stat-card {
    background: var(--iso-bg-elev-2);
    border: 1px solid var(--iso-border);
    border-radius: 16px;
    padding: 22px 24px;
    transition: all .2s ease;
    height: 100%;
}
.iso-stat-card:hover {
    border-color: var(--iso-border-hover);
}
.iso-stat-card .label { color: var(--iso-text-muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.iso-stat-card .value { color: var(--iso-text); font-size: 28px; font-weight: 700; line-height: 1.1; margin-top: 6px; }
.iso-stat-card .delta { font-size: 12px; font-weight: 500; margin-top: 8px; }
.iso-stat-card .delta.up   { color: var(--iso-success); }
.iso-stat-card .delta.down { color: var(--iso-danger);  }

.iso-ring {
    --progress: 0;
    --ring-color: var(--iso-primary);
    --ring-size: 64px;
    width: var(--ring-size); height: var(--ring-size);
    border-radius: 50%;
    flex-shrink: 0;
    background:
      conic-gradient(var(--ring-color) calc(var(--progress) * 1%), var(--iso-tint-08) 0);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.iso-ring::before {
    content: '';
    position: absolute; inset: 6px;
    border-radius: 50%;
    background: var(--iso-bg-elev-2);
}
.iso-ring .ring-label {
    position: relative;
    color: var(--iso-text);
    font-size: 13px;
    font-weight: 700;
}

/* === Generic card === */
.iso-card {
    background: var(--iso-bg-elev-2);
    border: 1px solid var(--iso-border);
    border-radius: 16px;
    padding: 22px 24px;
}
.iso-card .card-title {
    color: var(--iso-text);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.iso-card .card-subtitle {
    color: var(--iso-text-muted);
    font-size: 12px;
    margin-bottom: 16px;
}

/* === Forms inside Isomorphic cards === */
.iso-card .form-control,
.iso-card .form-select,
.iso-main .form-control,
.iso-main .form-select {
    background: var(--iso-bg);
    border: 1px solid var(--iso-border);
    color: var(--iso-text);
    border-radius: 10px;
}
.iso-card .form-control:focus,
.iso-card .form-select:focus,
.iso-main .form-control:focus,
.iso-main .form-select:focus {
    background: var(--iso-bg);
    color: var(--iso-text);
    border-color: var(--iso-primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* === Buttons === */
.btn-iso-primary {
    background: var(--iso-primary);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all .15s ease;
}
.btn-iso-primary:hover { background: #2563eb; color: #fff; }
.btn-iso-ghost {
    background: var(--iso-tint-04);
    color: var(--iso-text-secondary);
    border: 1px solid var(--iso-border);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 10px;
}
.btn-iso-ghost:hover { background: var(--iso-tint-08); color: var(--iso-text); }

/* === Table inside iso-card === */
.iso-card .table { color: var(--iso-text-secondary); margin: 0; }
.iso-card .table thead th {
    color: var(--iso-text-muted);
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--iso-border);
    padding: 12px 16px;
}
.iso-card .table tbody td {
    border-bottom: 1px solid var(--iso-border);
    padding: 14px 16px;
    vertical-align: middle;
}
.iso-card .table tbody tr:last-child td { border-bottom: none; }
.iso-card .table tbody tr:hover { background: var(--iso-tint-02); }

/* === Badges === */
.iso-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}
.iso-badge-success { background: rgba(16,185,129,0.15); color: var(--iso-success); }
.iso-badge-warning { background: rgba(245,158,11,0.15); color: var(--iso-warning); }
.iso-badge-danger  { background: rgba(239,68,68,0.15);  color: var(--iso-danger); }
.iso-badge-info    { background: rgba(6,182,212,0.15);  color: var(--iso-info); }

/* ==========================================================================
   Legacy class aliases — adopt iso-* styling so old pages look cohesive
   without a full HTML refactor.
   ========================================================================== */

/* Card-like containers */
.stat-card,
.settings-card,
.member-card,
.app-card,
.chart-container,
.plan-card,
.sub-row,
.config-item {
    background: var(--iso-bg-elev-2);
    border: 1px solid var(--iso-border);
    border-radius: 16px;
    color: var(--iso-text-secondary);
}

/* stat-card, settings-card, member-card, chart-container, app-card → full card padding */
.stat-card,
.settings-card,
.member-card,
.app-card,
.chart-container {
    padding: 22px 24px;
    transition: all .2s ease;
}
.stat-card:hover,
.member-card:hover,
.app-card:hover {
    border-color: var(--iso-border-hover);
}
.sub-row,
.config-item {
    padding: 12px 14px;
    margin-top: 8px;
    border-radius: 10px;
}
.plan-card {
    padding: 22px;
    transition: all .2s;
}
.plan-card:hover {
    border-color: var(--iso-border-hover);
}
.plan-card.hidden {
    opacity: .55;
    border-color: rgba(239, 68, 68, 0.2);
}

/* Typography inside legacy cards */
.stat-card h3,
.stat-card h2 { color: var(--iso-text); font-weight: 700; }
.stat-card h6,
.member-card h6,
.stat-card .small,
.member-card .small { color: var(--iso-text-muted); }

/* Glass card (used in plan-manage, partner-register) → iso-card look */
.glass-card {
    background: var(--iso-bg-elev-2) !important;
    border: 1px solid var(--iso-border) !important;
    border-radius: 16px !important;
    backdrop-filter: none !important;
}

/* Bootstrap primary overrides → use Isomorphic blue everywhere */
.btn-primary,
.btn.btn-primary {
    --bs-btn-bg: var(--iso-primary);
    --bs-btn-border-color: var(--iso-primary);
    --bs-btn-hover-bg: #2563eb;
    --bs-btn-hover-border-color: #2563eb;
    --bs-btn-active-bg: #1d4ed8;
    --bs-btn-active-border-color: #1d4ed8;
    --bs-btn-color: #fff;
    font-weight: 600;
}
.btn-outline-primary,
.btn.btn-outline-primary {
    --bs-btn-color: var(--iso-primary-light);
    --bs-btn-border-color: var(--iso-primary);
    --bs-btn-hover-bg: var(--iso-primary);
    --bs-btn-hover-border-color: var(--iso-primary);
    --bs-btn-hover-color: #fff;
}
.btn-gradient,
.btn.btn-gradient {
    background: var(--iso-primary);
    border: none;
    color: #fff;
    font-weight: 600;
}
.btn-gradient:hover { background: #2563eb; color: #fff; }

/* Bootstrap alert overrides — darker, more subtle */
.alert {
    border-radius: 12px;
    border: 1px solid transparent;
}
.alert-success { background: rgba(16,185,129,0.10); color: #10b981; border-color: rgba(16,185,129,0.25); }
.alert-danger  { background: rgba(239,68,68,0.10); color: #ef4444; border-color: rgba(239,68,68,0.25); }
.alert-warning { background: rgba(245,158,11,0.10); color: #f59e0b; border-color: rgba(245,158,11,0.25); }
.alert-info    { background: rgba(59,130,246,0.10); color: #60a5fa; border-color: rgba(59,130,246,0.25); }
.alert-dark    { background: var(--iso-bg-elev-2); color: var(--iso-text-secondary); border-color: var(--iso-border); }

/* Bootstrap table overrides */
.table-dark,
.table.table-dark {
    --bs-table-bg: var(--iso-bg-elev-2);
    --bs-table-border-color: var(--iso-border);
    --bs-table-color: var(--iso-text-secondary);
}
.table thead th {
    color: var(--iso-text-muted) !important;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--iso-border) !important;
    padding: 12px 16px !important;
    background: transparent !important;
}
.table tbody td {
    border-bottom: 1px solid var(--iso-border) !important;
    padding: 8px 16px !important;
    vertical-align: middle;
    background: transparent !important;
}
.table tbody tr:hover td { background: var(--iso-tint-02) !important; }

/* Legacy badge colors — adopt iso palette */
.badge.bg-success { background: rgba(16,185,129,0.15) !important; color: #10b981 !important; font-weight: 600; }
.badge.bg-warning { background: rgba(245,158,11,0.15) !important; color: #f59e0b !important; font-weight: 600; }
.badge.bg-danger  { background: rgba(239,68,68,0.15)  !important; color: #ef4444 !important; font-weight: 600; }
.badge.bg-info    { background: rgba(6,182,212,0.15)  !important; color: #06b6d4 !important; font-weight: 600; }
.badge.bg-primary { background: rgba(59,130,246,0.15) !important; color: #60a5fa !important; font-weight: 600; }

/* Nav tabs (used in settings.php) */
.nav-tabs {
    border-bottom: 1px solid var(--iso-border);
}
.nav-tabs .nav-link {
    color: var(--iso-text-muted) !important;
    border: none !important;
    background: transparent !important;
    padding: 10px 16px;
    font-weight: 500;
}
.nav-tabs .nav-link:hover { color: var(--iso-text) !important; }
.nav-tabs .nav-link.active {
    color: var(--iso-text) !important;
    background: transparent !important;
    border-bottom: 2px solid var(--iso-primary) !important;
}

/* Pagination — blue active state */
.pagination .page-link {
    background: var(--iso-bg-elev-2) !important;
    border: 1px solid var(--iso-border) !important;
    color: var(--iso-text-secondary) !important;
}
.pagination .page-item.active .page-link {
    background: var(--iso-primary) !important;
    border-color: var(--iso-primary) !important;
    color: var(--iso-text) !important;
}
.pagination .page-item.disabled .page-link { opacity: .4; }

/* === Language switcher (flags) === */
.lang-switcher {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 3px;
    background: var(--lang-switcher-bg, rgba(30,30,33,0.6));
    border: 1px solid var(--iso-tint-08);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.lang-switcher--floating {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 190;
}
.lang-switcher .lang-flag {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    text-decoration: none;
    transition: background .15s, transform .15s;
    opacity: 0.55;
    font-size: 18px;
    line-height: 1;
}
.lang-switcher .lang-flag:hover { opacity: 0.85; transform: scale(1.05); background: var(--iso-tint-05); }
.lang-switcher .lang-flag.active {
    opacity: 1;
    background: rgba(59,130,246,0.18);
    box-shadow: 0 0 0 1.5px rgba(59,130,246,0.55);
}
.lang-switcher .flag-emoji {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    line-height: 1;
}
.lang-switcher .flag-svg {
    width: 22px;
    height: 16px;
    border-radius: 2px;
    display: block;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}

/* On mobile keep the floating switcher away from the sidebar hamburger */
@media (max-width: 991.98px) {
    .lang-switcher--floating { top: 18px; right: 10px; }
}

/* === Public nav off-canvas drawer (mobile slide-in from left) === */
.mobile-nav-drawer {
    background-color: #1a1a1d;
    background-image: linear-gradient(180deg, #1a1a1d 0%, #141416 100%);
    color: #e8eaed;
    width: 300px;
    /* Explicit full viewport height — Bootstrap's height:100% can collapse on
       mobile when address bar is visible. dvh = dynamic viewport height,
       falls back to vh on older browsers. */
    height: 100vh;
    height: 100dvh;
    border-right: 1px solid var(--iso-tint-08);
}
.mobile-nav-drawer .offcanvas-header {
    border-bottom: 1px solid var(--iso-tint-08);
    padding: 18px 20px;
    flex-shrink: 0;
}
.mobile-nav-drawer .offcanvas-body {
    padding: 18px 20px;
    flex: 1 1 auto;
    overflow-y: auto;
}
.mobile-nav-drawer .navbar-nav { display: flex; flex-direction: column; }
.mobile-nav-drawer .nav-link {
    color: rgba(255,255,255,0.85);
    padding: 12px 14px;
    border-radius: 10px;
    transition: background .15s;
    display: block;
}
.mobile-nav-drawer .nav-link:hover,
.mobile-nav-drawer .nav-link:focus { background: var(--iso-tint-06); color: var(--iso-text); }

/* === Mobile sidebar trigger + backdrop (always present in DOM, only visible on mobile) === */
.iso-mobile-toggle {
    position: fixed;
    top: 14px; right: 14px;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(30,30,33,0.95);
    border: 1px solid var(--iso-tint-12);
    color: var(--iso-text);
    font-size: 22px;
    line-height: 1;
    align-items: center; justify-content: center;
    z-index: 200;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* Visibility is solely controlled by Bootstrap's d-lg-none on the element
       (display:flex on mobile, display:none on lg+). No base display rule here
       so we don't fight the Bootstrap !important. */
}
.iso-mobile-toggle:hover { background: rgba(40,40,45,0.98); }

.iso-sidebar-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
    z-index: 215;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.iso-sidebar-backdrop.show { opacity: 1; pointer-events: auto; }

.iso-no-scroll { overflow: hidden; }

/* === Responsive === */
@media (max-width: 991.98px) {
    button.iso-mobile-toggle,
    .iso-mobile-toggle { display: flex !important; }
    .iso-sidebar {
        transform: translateX(-100%);
        transition: transform .28s cubic-bezier(0.32, 0.72, 0, 1);
        z-index: 216;
        box-shadow: 4px 0 24px rgba(0,0,0,0.4);
    }
    .iso-sidebar.open { transform: translateX(0); }
    .iso-main,
    .main-content { margin-left: 0; padding: 20px 20px 20px 20px; padding-top: 70px; }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background: rgba(10, 10, 11, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--iso-tint-10);
    transition: all 0.3s ease;
    padding: 0.70rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 10, 11, 0.95) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    padding-top: 80px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
}


.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 0.5 = 50% Abdunklung */
    z-index: 1;
}


/* Gradient Text */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-gradient {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.60rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--iso-tint-20), transparent);
    transition: left 0.5s ease;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--iso-tint-10);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Glass Card Effect */
.glass-card {
    background: var(--iso-tint-05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--iso-tint-10);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.2),
        inset 0 1px 0 0 var(--iso-tint-10);
}

/* Avatar */
.avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating Badge */
.floating-badge {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Dark Sections */
.bg-dark-secondary {
    background-color: var(--bg-dark-secondary);
}

/* Benefit Cards */
.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--iso-tint-05);
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
}

.benefit-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Icon Boxes */
.icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: var(--gradient-primary);
    color: white;
}

.icon-box-small {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    flex-shrink: 0;
}

.bg-purple {
    background: var(--gradient-purple);
}

/* Feature Items */
.feature-item {
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: var(--iso-tint-02);
}

.feature-item .icon-box {
    transition: all 0.3s ease;
}

.feature-item:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* Table Styling */
.table-dark {
    --bs-table-bg: var(--bg-card);
    border-color: var(--iso-tint-10);
}

.table-dark td,
.table-dark th {
    border-color: var(--iso-tint-05);
    padding: 1rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.1) !important;
}

/* Alerts */
.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.bg-success {
    background: linear-gradient(135deg, #00d4ff 0%, #00a67e 100%) !important;
}

/* CTA Section */
.bg-gradient-cta {
    background: var(--gradient-cta);
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Footer */
footer {
    background: var(--bg-dark-secondary);
}

.hover-white {
    transition: all 0.3s ease;
}

.hover-white:hover {
    color: #fff !important;
    opacity: 1 !important;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}



.partner-card {
    background: rgba(30, 30, 33, 0.9);
    border: 1px solid var(--iso-tint-10);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.py-5 {padding-top: 4.2rem !important;}

.partner-item a:hover .partner-card {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}
.partner-item a {
    color: inherit;
}
.partner-header-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.badge-gradient {
    background: linear-gradient(135deg, #00d4ff 0%, #00a67e 100%);
    color: white;
}
.modal-content {
    background: #1e1e21;
    border: 1px solid var(--iso-tint-10);
}
.plan-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--iso-tint-10);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.hero-section {
    position: relative;
    padding: 15px 0 60px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.plan-card {
    background: rgba(30, 30, 33, 0.9);
    border: 1px solid var(--iso-tint-10);
    border-radius: 15px;
    transition: transform 0.3s;
    height: 100%;
}
.plan-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}
.plan-card.featured {
    border: 2px solid #667eea;
    transform: scale(1.05);
}

.community .hero-section{padding:80px 0px;}
.free-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.marketplace .py-5 {padding-top:120px !important;}


.modal-content {
    background: #1e1e21;
    border: 1px solid var(--iso-tint-10);
}
.navbar {
    background: rgba(10, 10, 11, 0.95) !important;
    backdrop-filter: blur(10px);
}
.text-gradient {
    background: linear-gradient(135deg, #f6cc00 0%, #faba20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}
.btn-gradient:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
    color: white;
}



@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 60px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .benefit-card {
        margin-bottom: 1rem;
    }
    
    .floating-badge {
        display: none;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}





/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}

/* Utility Classes */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.min-vh-100 { min-height: 100vh; }
.border-secondary { border-color: var(--iso-tint-10) !important; }

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

/* Icon Animations */
.bi {
    transition: all 0.3s ease;
}

.btn:hover .bi {
    transform: scale(1.2);
}

/* Pulse Animation for CTA */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(102, 126, 234, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

/* ================================================================
   LANDING PAGE HERO (index.php)
   Large side-by-side hero — headline + check-list + feature cards
   on the left, hero image with rotating badge on the right.
   ================================================================ */

.hero2 {
    position: relative;
    padding: 131px 0 110px;
    background:
        radial-gradient(ellipse at 15% -10%, rgba(139,92,246,0.18), transparent 55%),
        radial-gradient(ellipse at 110% 110%, rgba(251,191,36,0.08), transparent 55%),
        #0a0a0b;
    overflow: hidden;
}

.hero2-label {
    display: flex; align-items: center; gap: 10px;
    max-width: 100%;
    color: #fbbf24;
    font-size: 12px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
    line-height: 1.4;
}
.hero2-label .dot { flex-shrink: 0; }
.hero2-label-text {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
}
.hero2-label .dot {
    width: 8px; height: 8px; border-radius: 50%; background: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251,191,36,0.18);
}

.hero2-headline {
    font-size: clamp(40px, 5.4vw, 65px);
    font-weight: 800;
    line-height: 1.02;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 36px;
}
.hero2-headline .grad {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero2-checks {
    display: flex; flex-wrap: wrap;
    gap: 10px 15px;
    margin-bottom: 44px;
}
.hero2-check {
    display: inline-flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.85);
    font-size: 14px; font-weight: 500;
}
.hero2-check i { color: #10b981; font-size: 18px; }

.hero2-features {
    background: var(--iso-tint-03);
    border: 1px solid var(--iso-tint-08);
    border-radius: 22px;
    padding: 8px;
    max-width: 540px;
}
.f-card {
    display: flex; gap: 16px; align-items: center;
    padding: 18px;
    border-radius: 16px;
}
.f-card + .f-card {
    border-top: 1px solid var(--iso-tint-08);
}
.f-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #0a0a0b;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(251,191,36,0.25);
}
.f-text strong { color: #fff; font-size: 15px; display: block; line-height: 1.3; }
.f-text p { color: rgba(255,255,255,0.6); font-size: 13px; margin: 4px 0 0; line-height: 1.5; }

.hero2-ctas { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: none; color: #0a0a0b;
    font-weight: 700; padding: 14px 28px;
    border-radius: 999px;
    transition: transform .15s, box-shadow .15s;
}
.btn-hero-primary:hover { color: #0a0a0b; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(251,191,36,0.35); }
.btn-hero-ghost {
    background: transparent;
    color: #fff; border: 1.5px solid var(--iso-tint-25);
    font-weight: 600; padding: 14px 28px;
    border-radius: 999px;
}
.btn-hero-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

.hero2-img-wrap {
    position: relative;
    margin-left: auto;
}
.hero2-img {
    width: 100%;
    height: min(620px, 78vh);
    object-fit: cover;
    object-position: left center;
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.6);
}

.hero2-badge {
    position: absolute;
    top: -28px; right: -28px;
    width: 148px; height: 148px;
    border-radius: 50%;
    background: #fbbf24;
    color: #0a0a0b;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 40px rgba(251,191,36,0.35);
}
.hero2-badge-text {
    position: absolute; inset: 0;
    animation: hero2-spin 16s linear infinite;
}
.hero2-badge-center {
    position: absolute; inset: 34px;
    background: #0a0a0b;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fbbf24;
    font-size: 28px;
}
@keyframes hero2-spin { to { transform: rotate(360deg); } }

@media (max-width: 991.98px) {
    .hero2-headline { font-size: clamp(32px, 7vw, 48px); margin-bottom: 28px; }
    .hero2-label { margin-bottom: 20px; }
    .hero2-checks { gap: 8px 14px; margin-bottom: 32px; }
    .hero2-check { font-size: 13px; }
    .hero2-check i { font-size: 16px; }

    .hero2-features { max-width: 100%; padding: 4px; }
    .f-card { padding: 14px; gap: 12px; }
    .f-icon { width: 44px; height: 44px; font-size: 18px; }
    .f-text strong { font-size: 14px; }
    .f-text p { font-size: 12px; }

    .hero2-img-wrap { margin-top: 48px; }
    .hero2-img { height: min(380px, 56vh); border-radius: 22px; }
    .hero2-badge { width: 108px; height: 108px; top: -14px; right: -10px; }
    .hero2-badge-center { inset: 26px; font-size: 20px; }
    .hero2-badge svg text { font-size: 14px !important; }
}

@media (max-width: 576px) {
    .hero2 {padding: 116px 0 32px;}
    .hero2-label { font-size: 10px; letter-spacing: 0.8px; margin-bottom: 16px; gap: 6px; }
    .hero2-headline { font-size: clamp(28px, 8vw, 40px); line-height: 1.08; margin-bottom: 22px; }
    .hero2-checks { gap: 6px 12px; margin-bottom: 24px; }

    .hero2-ctas { flex-direction: column; gap: 10px; }
    .hero2-ctas .btn { width: 100%; text-align: center; padding: 12px 20px; font-size: 14px; }

    .hero2-img { height: 260px; border-radius: 18px; }
    .hero2-badge { width: 88px; height: 88px; top: -10px; right: -6px; }
    .hero2-badge-center { inset: 20px; font-size: 16px; }
    .hero2-badge svg text { font-size: 13px !important; letter-spacing: 1px !important; }
}

/* ================================================================
   HERO — entry animations + image shine on hover
   ================================================================ */

/* Fade + rise on initial render, staggered per element */
@keyframes hero2-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero2-fade-in {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.hero2 .hero2-label,
.hero2 .hero2-headline,
.hero2 .hero2-checks,
.hero2 .hero2-features,
.hero2 .hero2-ctas,
.hero2 .hero2-img-wrap {
    opacity: 0;
    animation: hero2-fade-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity, transform;
}
.hero2 .hero2-label    { animation-delay: 0.05s; }
.hero2 .hero2-headline { animation-delay: 0.18s; }
.hero2 .hero2-checks   { animation-delay: 0.32s; }
.hero2 .hero2-features { animation-delay: 0.45s; }
.hero2 .hero2-ctas     { animation-delay: 0.58s; }
.hero2 .hero2-img-wrap { animation-delay: 0.35s; animation-duration: 0.9s; }
.hero2 .hero2-badge {
    opacity: 0;
    animation: hero2-fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.95s;
}

/* Image frame — clips the shine strip to the image's rounded edges
   while keeping the rotating badge (sibling) free to overflow. */
.hero2-img-frame {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
}
.hero2-img-frame::after {
    content: '';
    position: absolute;
    top: -10%; left: -75%;
    width: 60%; height: 120%;
    background: linear-gradient( 105deg, transparent 0%, rgba(255,255,255,0.0) 30%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0.0) 65%, transparent 100% );
    transform: skewX(-20deg);
    pointer-events: none;
    transition: left 1.1s cubic-bezier(0.25, 0.8, 0.25, 1), top 1.1s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2;
    mix-blend-mode: screen;
    /* Page-load sweep: stripe comes in from the bottom-right and
       travels diagonally to the top-left, landing at its default
       rest-position (off-screen left) from where the normal
       hover-sweep can later push it out to the right.
       `backwards` = hold 0%-state during the 0.9s delay so the stripe
       is parked bottom-right BEFORE it starts moving. No `forwards`
       /`both` — fill-mode would lock the end state and suppress the
       hover transition; letting the animation "end" restores the
       static CSS baseline so hover behaves normally. */
    animation: hero2-intro-shine 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.9s 1 backwards;
}

@keyframes hero2-intro-shine {
    0%   { left: 115%;  top:  45%; }
    100% { left: -75%;  top: -10%; }
}

.hero2-img-frame:hover::after { left: 135%; top: -10%; }
/* Subtle image lift on hover */
.hero2-img-frame .hero2-img {
    transition: transform 0.6s ease;
}
.hero2-img-frame:hover .hero2-img { transform: scale(1.02); }

@media (max-width: 991.98px) {
    .hero2-img-frame { border-radius: 22px; }
}
@media (max-width: 576px) {
    .hero2-img-frame { border-radius: 18px; }
}

/* Note: we intentionally do NOT gate these behind prefers-reduced-motion —
   the entry-fades are subtle (under 1s, no bouncing) and the hover shine
   is user-triggered, so even OS-level "reduce motion" users still see them
   rather than running into a broken-looking instant render. */

/* ================================================================
   Floating contact FAB (bottom-right) — expands into Discord + WA
   ================================================================ */
.fab-contact {
    position: fixed;
    bottom: 70px; right: 24px;
    width: 60px; height: 60px;
    z-index: 1050;
}
.fab-main {
    position: relative;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
    cursor: pointer;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1),
                box-shadow .25s ease,
                background .3s ease;
    z-index: 2;
}
.fab-main:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.6);
}
.fab-main .fab-icon-closed,
.fab-main .fab-icon-open {
    position: absolute;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .25s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
}
.fab-main .fab-icon-open { opacity: 0; transform: rotate(-90deg) scale(.6); }
.fab-contact.open .fab-main {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5);
    transform: rotate(180deg);
}
.fab-contact.open .fab-main:hover { transform: rotate(180deg) scale(1.08); }
.fab-contact.open .fab-main .fab-icon-closed { opacity: 0; transform: rotate(90deg) scale(.6); }
.fab-contact.open .fab-main .fab-icon-open   { opacity: 1; transform: rotate(0) scale(1); }

/* Pulsing ring (closed state only) */
.fab-main::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #6366f1;
    opacity: 0.55;
    animation: fab-pulse 2.2s ease-out infinite;
    z-index: -1;
    pointer-events: none;
    transition: opacity .25s ease;
}
.fab-contact.open .fab-main::before { animation: none; opacity: 0; }
@keyframes fab-pulse {
    0%   { transform: scale(1);    opacity: 0.55; }
    100% { transform: scale(1.75); opacity: 0;    }
}

/* Child buttons — fly out from under main on .open */
.fab-child {
    position: absolute;
    bottom: 0; right: 0;
    width: 52px; height: 52px;
    margin: 4px;
    border-radius: 50%;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 23px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0) scale(.3);
    transition: transform .45s cubic-bezier(.34,1.56,.64,1),
                opacity .25s ease,
                visibility .35s,
                box-shadow .2s ease;
    z-index: 1;
}
.fab-child:hover { color: #fff; box-shadow: 0 10px 26px rgba(0,0,0,0.45); }
.fab-discord  { background: #5865F2; }
.fab-whatsapp { background: #25D366; }

.fab-contact.open .fab-child {
    opacity: 1;
    visibility: visible;
}
.fab-contact.open .fab-discord {
    transform: translateY(-72px) scale(1);
    transition-delay: 0s, 0s, 0s, 0s;
}
.fab-contact.open .fab-whatsapp {
    transform: translateY(-138px) scale(1);
    transition-delay: .08s, .08s, 0s, 0s;
}
.fab-contact.open .fab-discord:hover  { transform: translateY(-72px)  scale(1.12); }
.fab-contact.open .fab-whatsapp:hover { transform: translateY(-138px) scale(1.12); }

/* Tooltip next to each child icon */
.fab-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15,15,20,0.92);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.fab-child:hover .fab-tooltip { opacity: 1; }

@media (max-width: 576px) {
    .fab-contact { bottom: 18px; right: 18px; }
    .fab-main { width: 54px; height: 54px; font-size: 24px; }
    .fab-child { width: 46px; height: 46px; font-size: 20px; }
    .fab-contact.open .fab-discord  { transform: translateY(-62px) scale(1); }
    .fab-contact.open .fab-whatsapp { transform: translateY(-118px) scale(1); }
    .fab-contact.open .fab-discord:hover  { transform: translateY(-62px) scale(1.10); }
    .fab-contact.open .fab-whatsapp:hover { transform: translateY(-118px) scale(1.10); }
}
@media (prefers-reduced-motion: reduce) {
    .fab-main, .fab-child, .fab-main .fab-icon-closed, .fab-main .fab-icon-open { transition: none !important; }
    .fab-main::before { animation: none !important; }
}

/* === Bootstrap form-switch dark-mode override ===
 * Bootstrap's default switch uses a near-black SVG circle as the thumb,
 * which is effectively invisible on our dark UI. Repaint thumb + track:
 *   - off  → grey track + light-grey thumb
 *   - on   → blue track + white thumb
 */
.form-switch .form-check-input {
    background-color: var(--iso-tint-10);
    border-color: var(--iso-tint-18);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255,255,255,0.85%29'/%3e%3c/svg%3e");
}
.form-switch .form-check-input:focus {
    border-color: rgba(59,130,246,0.55);
    box-shadow: 0 0 0 0.18rem rgba(59,130,246,0.20);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255,255,255,0.85%29'/%3e%3c/svg%3e");
}
.form-switch .form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e");
}

/* ==========================================================================
   THEME-SYSTEM — Tint-Leiter + Light Mode.

   Die Tint-Tokens ersetzen die früheren rgba(255,255,255,X)-Literale:
   im Dark-Theme weiße Überlagerungen (Werte identisch zu vorher, das
   Dark-Design ist pixelgleich), im Light-Theme dunkle Überlagerungen.

   Aktiviert wird Light per <html data-theme="light"> — gesetzt vom
   Theme-Boot-Script (includes/theme-boot.php) VOR dem ersten Paint.
   Marketing-Seiten (Landing, Marketplace, Community-Pages) binden das
   Script bewusst nicht ein und bleiben immer im Dark-Branding.
   ========================================================================== */
:root {
    --iso-border-strong: rgba(255, 255, 255, 0.14); /* war nie definiert (Altbug) */
    --iso-tint-02: rgba(255, 255, 255, 0.02);
    --iso-tint-03: rgba(255, 255, 255, 0.03);
    --iso-tint-04: rgba(255, 255, 255, 0.04);
    --iso-tint-05: rgba(255, 255, 255, 0.05);
    --iso-tint-06: rgba(255, 255, 255, 0.06);
    --iso-tint-08: rgba(255, 255, 255, 0.08);
    --iso-tint-10: rgba(255, 255, 255, 0.10);
    --iso-tint-12: rgba(255, 255, 255, 0.12);
    --iso-tint-15: rgba(255, 255, 255, 0.15);
    --iso-tint-18: rgba(255, 255, 255, 0.18);
    --iso-tint-20: rgba(255, 255, 255, 0.20);
    --iso-tint-25: rgba(255, 255, 255, 0.25);
}

html[data-theme="light"] {
    --iso-bg:           #eef1f6;
    --iso-bg-elev-1:    #ffffff;
    --iso-bg-elev-2:    #ffffff;
    --iso-bg-elev-3:    #f1f4f9;
    --iso-border:        rgba(15, 23, 42, 0.10);
    --iso-border-strong: rgba(15, 23, 42, 0.18);
    --iso-border-hover:  rgba(37, 99, 235, 0.35);

    --iso-primary-light: #2563eb;  /* Text-Links: dunkleres Blau für Kontrast auf hell */
    --iso-primary-dim:   rgba(59, 130, 246, 0.10);

    --iso-text:           #0f172a;
    --iso-text-secondary: #334155;
    --iso-text-muted:     #64748b;
    --iso-text-dim:       #94a3b8;

    --iso-tint-02: rgba(15, 23, 42, 0.025);
    --iso-tint-03: rgba(15, 23, 42, 0.035);
    --iso-tint-04: rgba(15, 23, 42, 0.045);
    --iso-tint-05: rgba(15, 23, 42, 0.055);
    --iso-tint-06: rgba(15, 23, 42, 0.07);
    --iso-tint-08: rgba(15, 23, 42, 0.09);
    --iso-tint-10: rgba(15, 23, 42, 0.11);
    --iso-tint-12: rgba(15, 23, 42, 0.13);
    --iso-tint-15: rgba(15, 23, 42, 0.16);
    --iso-tint-18: rgba(15, 23, 42, 0.19);
    --iso-tint-20: rgba(15, 23, 42, 0.21);
    --iso-tint-25: rgba(15, 23, 42, 0.26);
}

html[data-theme="light"] {
    --lang-switcher-bg: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] body {
    --bs-body-color: #334155;
    --bs-body-color-rgb: 51, 65, 85;
    --bs-secondary-color: #64748b;
    --bs-secondary-color-rgb: 100, 116, 139;
    --bs-tertiary-color: #94a3b8;
    --bs-border-color: rgba(15, 23, 42, 0.10);
    --bs-body-bg: #eef1f6;
    color-scheme: light;
}

/* Theme-Toggle-Button im Sprachumschalter (Sonne/Mond, inline-SVG) */
.theme-toggle { cursor: pointer; background: none; border: 0; color: var(--iso-text-muted); }
.theme-toggle:hover { color: var(--iso-text); }
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: inline; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: inline; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* --- Light Mode: Bootstrap-Utility-Klassen umdeuten -------------------
   Die App-Seiten nutzen text-white/bg-dark/btn-outline-light aus der
   Dark-Ära. Statt 110 Templates anzufassen, deuten wir sie im Light
   Mode zentral um (alle Verwendungen sitzen auf Flächen, nicht auf
   Akzentfarben — geprüft). */
html[data-theme="light"] .text-white { color: var(--iso-text) !important; }
html[data-theme="light"] .text-light { color: var(--iso-text-secondary) !important; }
html[data-theme="light"] .bg-dark    { background-color: var(--iso-bg-elev-3) !important; }
/* Bootstrap-Badges haben --bs-badge-color:#fff als Default */
html[data-theme="light"] .badge.bg-dark { color: var(--iso-text) !important; }
html[data-theme="light"] .border-secondary { border-color: var(--iso-border) !important; }
html[data-theme="light"] .btn-outline-light {
    --bs-btn-color: #334155;
    --bs-btn-border-color: rgba(15, 23, 42, 0.25);
    --bs-btn-hover-color: #0f172a;
    --bs-btn-hover-bg: rgba(15, 23, 42, 0.06);
    --bs-btn-hover-border-color: rgba(15, 23, 42, 0.4);
    --bs-btn-active-color: #0f172a;
    --bs-btn-active-bg: rgba(15, 23, 42, 0.08);
    --bs-btn-active-border-color: rgba(15, 23, 42, 0.4);
    /* Die site-eigene .btn-outline-light-Regel (oben) setzt Literale,
       keine Bootstrap-Variablen — daher hier ebenfalls literal: */
    color: #334155;
    border-color: rgba(15, 23, 42, 0.3);
}
html[data-theme="light"] .btn-outline-light:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.45);
}
html[data-theme="light"] .table-dark {
    --bs-table-bg: var(--iso-bg-elev-3);
    --bs-table-color: var(--iso-text);
    --bs-table-border-color: var(--iso-border);
}

/* --- Logo-Varianten: helles Logo im Dark-, schwarzes (_b) im Light Mode --- */
.logo-light-variant { display: none; }
html[data-theme="light"] .logo-dark-variant  { display: none; }
html[data-theme="light"] .logo-light-variant { display: inline; }
