/* --- VARIABLES (DARK MODE DEFAULT) --- */
:root {
    --bg: #050505;
    --text-main: #ffffff;
    --text-sec: #a1a1aa;
    --accent: #d4af37;        /* Gold */
    --card-bg: rgba(20, 20, 20, 0.8); /* Dunkler, weniger transparent für bessere Lesbarkeit */
    --card-border: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 10px 30px -10px rgba(0,0,0,0.5);
    --blob-1: #2e1065;
    --blob-2: #1e3a8a;
    --sidebar-bg: rgba(10, 10, 10, 0.6);
    --font-main: 'IBM Plex Sans Arabic', sans-serif;
}

/* --- LIGHT MODE VARIABLES (Optimiert für Sichtbarkeit) --- */
body.light-mode {
    --bg: #f2f2f7;            /* Etwas dunkleres Grau für Kontrast */
    --text-main: #111111;     /* Fast Schwarz */
    --text-sec: #555555;
    --accent: #b4941f;
    --card-bg: #ffffff;       /* Reines Weiß (kein Glas) für klaren Look */
    --card-border: #e5e5ea;   /* Sichtbarer grauer Rand */
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.05); /* Sanfter Schatten immer sichtbar */
    --blob-1: #e0d4fc;
    --blob-2: #dbeafe;
    --sidebar-bg: rgba(255, 255, 255, 0.8);
}

/* --- RESET & BASIC --- */
* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; transition: background-color 0.4s ease, border-color 0.4s ease; }

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
}

/* --- LAYOUT UTILS --- */
.container {
    max-width: 1400px; /* Breiter für moderne Screens */
    margin: 0 auto;
    padding: 0 40px;
}
.section-padding { padding: 80px 0; }
.main-content { margin-right: 100px; transition: 0.3s; } /* Platz für Sidebar */

@media (max-width: 1200px) {
    .container { padding: 0 24px; }
}

@media (max-width: 900px) {
    .sidebar {
        bottom: 20px;
        top: auto;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        padding: 15px 30px;
        width: calc(100% - 40px);
        max-height: none;
        overflow: visible;
        justify-content: space-between;
    }

    .main-content {
        margin-right: 0;
        padding-bottom: 140px;
    }
}

/* --- NAVIGATION (Groß & Deutlich) --- */
nav {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 50px 0; /* Viel mehr Platz nach oben/unten */
    margin-bottom: 40px;
}

.logo { 
    font-size: 2.2rem; /* Viel größer */
    font-weight: 700; 
    letter-spacing: -1px;
}
.dot { color: var(--accent); }

.social-links { 
    display: flex; 
    gap: 25px; 
    font-size: 1.8rem; /* Icons viel größer */
}
.social-links a { 
    color: var(--text-sec); 
    transition: 0.3s; 
    display: flex; align-items: center; 
}
.social-links a:hover { 
    color: var(--accent); 
    transform: scale(1.2); 
}

/* --- HERO SECTION --- */
header {
    min-height: 60vh; /* Nicht zu hoch, aber genug Platz */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

h1 { 
    font-size: clamp(3rem, 6vw, 5.5rem); /* Riesige Schrift */
    font-weight: 800; 
    margin-bottom: 20px; 
    line-height: 1.1; 
}

.gradient-text {
    background: linear-gradient(to left, var(--text-main), var(--text-sec));
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 1.3rem;
    color: var(--text-sec);
    max-width: 600px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.section-header h2 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-sec);
}

.media-section {
    position: relative;
    overflow: hidden;
}

.video-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    box-shadow: var(--shadow-soft);
}

.video-track {
    display: flex;
    transition: transform 0.7s ease;
}

.video-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: center;
    padding: 30px;
}

.video-frame {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), transparent 45%), #000;
    box-shadow: var(--shadow-soft);
}

@media (max-width: 700px) {
    .video-slide { gap: 18px; }
    .video-frame { min-height: 220px; }
}

.video-frame iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-meta h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.video-meta p {
    color: var(--text-sec);
    line-height: 1.7;
}

.video-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 16px 0 24px;
}

.video-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: transparent;
    transition: 0.3s;
}

.video-dots button.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

@media (max-width: 900px) {
    .video-slide { grid-template-columns: 1fr; padding: 24px; }
    nav { flex-direction: column; align-items: flex-start; gap: 12px; padding: 30px 0; }
    .social-links { font-size: 1.4rem; gap: 12px; }
}

.telegram-section {
    position: relative;
}

.telegram-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

@media (max-width: 1000px) {
    .telegram-grid { grid-template-columns: 1fr; gap: 16px; }
}

.telegram-embed {
    padding: 0;
}

.telegram-iframe-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
    min-height: 480px;
    background: var(--card-bg);
}

@media (max-width: 768px) {
    .telegram-iframe-wrapper { min-height: 360px; }
}

.telegram-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.telegram-card ul {
    margin: 20px 0;
    color: var(--text-sec);
    line-height: 1.8;
    list-style: disc;
    padding-inline-start: 20px;
}

.tg-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.tg-footer a {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
}

.tg-footer a:hover { color: var(--accent); }

.tg-post.skeleton {
    border-style: dashed;
}

.tg-line {
    height: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    margin-bottom: 10px;
}

.tg-line.short { width: 60%; }

.embed-fallback {
    padding: 16px;
    color: var(--text-sec);
    font-size: 0.95rem;
    text-align: center;
}

.badge { 
    padding: 8px 20px; 
    border-radius: 50px; 
    background: rgba(212, 175, 55, 0.1); 
    color: var(--accent); 
    font-size: 0.95rem; 
    font-weight: bold;
    border: 1px solid var(--accent); 
    display: inline-block; 
    margin-bottom: 25px; 
}

/* --- BENTO GRID & KARTEN (Der wichtigste Fix) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

@media (max-width: 700px) {
    .section-padding { padding: 60px 0; }
    .bento-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
    .card { padding: 28px; min-height: 240px; }
}

.card {
    background: var(--card-bg); 
    border: 1px solid var(--card-border); 
    /* Schatten IMMER sichtbar, nicht nur bei Hover */
    box-shadow: var(--shadow-soft); 
    border-radius: 30px; /* Runder */
    padding: 40px;
    position: relative; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    text-decoration: none; 
    color: inherit;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
    min-height: 300px; /* Damit sie nicht so flach wirken */
    justify-content: center;
}

.card.wide { grid-column: span 2; }
@media(max-width:1100px){ .card.wide { grid-column: span 1; } }

/* Interaktion */
.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); /* Stärkerer Schatten bei Hover */
}

/* Spotlight Effect */
.card::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(212, 175, 55, 0.08), transparent 40%);
    opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.card:hover::after { opacity: 1; }

.card-icon { 
    font-size: 2.5rem; 
    color: var(--accent); 
    margin-bottom: 20px; 
}
.card h3 { font-size: 1.8rem; margin-bottom: 10px; }
.card p { color: var(--text-sec); font-size: 1.1rem; }

.arrow-icon { 
    position: absolute; top: 40px; left: 40px; 
    font-size: 1.5rem; opacity: 0; transition: 0.3s; 
    transform: translateX(20px); 
    color: var(--accent);
}
.card:hover .arrow-icon { opacity: 1; transform: translateX(0); }


/* --- SIDEBAR --- */
.sidebar {
    position: fixed;
    right: 30px;
    top: 110px;
    transform: none;
    background: var(--sidebar-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    border-radius: 60px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    z-index: 100;
    box-shadow: var(--shadow-soft);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}
.sidebar a, .icon-btn {
    color: var(--text-sec); font-size: 1.6rem; padding: 12px; border-radius: 50%;
    transition: 0.3s; display: flex; align-items: center; justify-content: center;
    background: transparent; border: none;
}
.sidebar a:hover, .sidebar a.active, .icon-btn:hover {
    color: var(--accent); background: rgba(125, 125, 125, 0.1); transform: scale(1.15);
}
@media (max-width: 900px) {
    .sidebar {
        bottom: 20px;
        top: auto;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        padding: 15px 30px;
        width: calc(100% - 40px);
        max-height: none;
        overflow: visible;
        justify-content: space-between;
    }
}

/* --- FORM & FOOTER --- */
.form-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    padding: 50px; border-radius: 30px; text-align: center;
    box-shadow: var(--shadow-soft);
}

.input-field {
    width: 100%; background: rgba(125,125,125,0.08); 
    border: 1px solid var(--card-border); padding: 20px;
    border-radius: 15px; color: var(--text-main); 
    margin-bottom: 15px; outline: none; font-size: 1rem;
}
.input-field:focus { border-color: var(--accent); background: rgba(125,125,125,0.05); }

.btn {
    padding: 18px 40px; border-radius: 15px; border: none;
    font-weight: bold; font-size: 1rem; transition: 0.3s; cursor: none;
}
.btn.primary { background: var(--text-main); color: var(--bg); }
.btn.primary:hover { background: var(--accent); color: white; transform: scale(1.05); }
.btn.secondary {
    background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(212,175,55,0.05));
    color: var(--accent);
    border: 1px solid rgba(212,175,55,0.4);
    box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.5);
}
.btn.secondary:hover {
    background: linear-gradient(135deg, rgba(212,175,55,0.28), rgba(212,175,55,0.12));
    color: var(--text-main);
    transform: translateY(-2px) scale(1.02);
    border-color: var(--accent);
}
.btn.ghost { background: transparent; color: var(--text-main); border: 1px solid var(--card-border); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

footer {
    text-align: center; padding: 60px 0; border-top: 1px solid var(--card-border); 
    color: var(--text-sec); margin-top: 60px;
}

/* --- BLOBS --- */
.blob { position: fixed; filter: blur(100px); z-index: -1; opacity: 0.4; border-radius: 50%; animation: float 10s infinite alternate; }
.blob-1 { top: -10%; right: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, var(--blob-1), transparent 70%); }
.blob-2 { bottom: -10%; left: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, var(--blob-2), transparent 70%); }

/* --- CURSOR --- */
.cursor-dot { width: 8px; height: 8px; background: var(--accent); position: fixed; transform: translate(-50%,-50%); border-radius: 50%; pointer-events: none; z-index: 9999; }
.cursor-outline { width: 35px; height: 35px; border: 1px solid var(--text-sec); position: fixed; transform: translate(-50%,-50%); border-radius: 50%; pointer-events: none; z-index: 9998; transition: width 0.2s, height 0.2s, border-color 0.2s; }
body.hovering .cursor-outline { width: 60px; height: 60px; border-color: var(--accent); background: rgba(212, 175, 55, 0.05); backdrop-filter: blur(2px); }

@media (pointer: coarse) {
    * { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none; }
}

/* --- ANIMATIONS --- */
.fade-in-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s forwards ease; }
.fade-in-right { opacity: 0; transform: translateX(50px); animation: fadeInRight 0.8s forwards ease; }
.fade-on-scroll { opacity: 0; transform: translateY(40px); transition: 0.8s ease; }
.fade-on-scroll.visible { opacity: 1; transform: translateY(0); }
.delay-1 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; transition-delay: 0.2s; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { to { opacity: 1; transform: translateX(0); } }
/* --- BACK BUTTON STYLING (High-End Pill) --- */
.back-nav {
    padding: 30px 0;
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.03); /* Sehr subtil */
    border: 1px solid var(--card-border);
    border-radius: 100px; /* Pill Shape */
    color: var(--text-sec);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(10px);
}

.back-link i {
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

/* Hover Effekt: Button wird heller, Pfeil bewegt sich */
.back-link:hover {
    background: var(--card-bg);
    border-color: var(--accent);
    color: var(--text-main);
    transform: translateX(-5px); /* Leichtes gleiten */
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.back-link:hover i {
    transform: translateX(5px); /* Pfeil bewegt sich animiert */
    color: var(--accent);
}
