:root {
    --accent: #00ffcc;
    --bg: #f4f4f4;
    --card: #ffffff;
    --text: #1a1a1a;
    --dark-grey: #333;
    --nav-bg: white;
    --border-color: #ddd;
    --footer-bg: #eee;
}

/* --- Animations Disabled --- */
.reveal {
    opacity: 1;
    transform: none;
}

body.dark-mode {
    --bg: #0f0f0f;
    --card: #1a1a1a;
    --text: #ffffff;
    --nav-bg: #1a1a1a;
    --border-color: #333;
    --footer-bg: #111;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content,
.section {
    flex: 1;
}

/* Global Typography Colors */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text);
    transition: color 0.3s;
}

/* Navigation */
nav {
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -1px;
    text-decoration: none;
    color: inherit;
}

.logo span {
    color: var(--accent);
    background: #1a1a1a;
    padding: 0 5px;
    margin-left: 2px;
}

/* Inputs & Forms */
input,
textarea,
select {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    font-family: inherit;
}

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

/* Hero Section */
.hero {
    padding: 60px 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--nav-bg);
}

h1 {
    font-size: 4rem;
    line-height: 0.9;
    margin: 0;
    font-weight: 900;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 0.8s ease-in-out, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 5;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: 0.3s;
    z-index: 10;
}

.prev:hover,
.next:hover {
    background: var(--accent);
    color: #1a1a1a;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--accent);
    width: 25px;
    border-radius: 10px;
}

/* Layout & Cards */
.section {
    padding: 80px 10%;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.news-card {
    background: var(--card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-10px);
}

.recruitementHeader {
    color: white;
}

/* Buttons & Footer */
.footer-info {
    background: var(--footer-bg);
    padding: 60px 10%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    font-size: 0.9rem;
    color: #666;
}

.btn {
    background: var(--accent);
    color: #1a1a1a;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    display: inline-block;
    margin-top: 25px;
    transition: 0.3s;
    cursor: pointer;
}

.btn:hover {
    box-shadow: 0 0 20px var(--accent);
    transform: scale(1.05);
}

/* Theme Toggle Redesign */
#theme-toggle {
    cursor: pointer;
    background: var(--bg);
    border: 1px solid var(--border-color);
    color: var(--text);
    width: 60px;
    height: 30px;
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0;
    transition: 0.3s;
    overflow: hidden;
}

#theme-toggle .sun,
#theme-toggle .moon {
    font-size: 1.1rem;
    line-height: 1;
    z-index: 1;
    transition: 0.3s;
}

#theme-toggle::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    background: var(--accent);
    border-radius: 50%;
    left: 2px;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
}

#theme-toggle.dark::after {
    left: 32px;
}

#theme-toggle.dark .sun {
    opacity: 0.3;
}

#theme-toggle:not(.dark) .moon {
    opacity: 0.3;
}

#theme-toggle:hover {
    border-color: var(--accent);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 5px;
    border: 1px solid var(--border-color);
    padding: 2px;
    border-radius: 8px;
    background: var(--bg);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text);
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: bold;
    transition: 0.3s;
    opacity: 0.5;
}

.lang-btn:hover {
    opacity: 1;
    background: rgba(0, 255, 204, 0.1);
}

.lang-btn.active {
    background: var(--accent);
    color: #1a1a1a;
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

/* Manga Detail Stats (Cleaned Version) */
.detail-stats {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
    text-align: center;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 15px;
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.stat-item span.value {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-item span.label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    color: #888;
    letter-spacing: 1px;
}

/* Admin Switch Toggle (Apple Style) */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-right: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

/* --- ADMIN DASHBOARD REDESIGN --- */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

.admin-sidebar {
    width: 280px;
    background: var(--nav-bg);
    border-right: 1px solid var(--border-color);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 0;
    height: 100vh;
    box-sizing: border-box;
}

.admin-sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-left: 10px;
}

.sidebar-link {
    text-decoration: none;
    color: var(--text);
    padding: 12px 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--accent);
    color: #1a1a1a;
}

.admin-content {
    flex-grow: 1;
    padding: 40px;
    background: var(--bg);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
}

.stat-card .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0.6;
}

.admin-form-group {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.manga-item-card {
    background: var(--card);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.manga-item-card:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

.search-bar {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding-left: 40px;
    box-sizing: border-box;
}

.heart-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.8);
}

.heart-btn.active {
    color: #ff4444 !important;
    background: white !important;
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .admin-form-group {
        grid-template-columns: 1fr;
    }
}

/* --- FULL RESPONSIVE FIX --- */
@media (max-width: 1024px) {
    nav {
        padding: 15px 5%;
    }

    .hero,
    .section,
    .footer-info {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 768px) {

    /* Navigation: Links untereinander oder kompakter */
    nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Hero: Text oben, Bild unten */
    .hero {
        grid-template-columns: 1fr;
        padding-top: 30px;
        gap: 30px;
    }

    h1 {
        font-size: 2.8rem;
        text-align: center;
    }

    .hero .btn {
        display: block;
        margin: 20px auto;
        width: max-content;
    }

    .carousel-container {
        height: 350px;
    }

    /* Grid: 1 Spalte auf dem Handy, damit Cover groß bleiben */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Detailseite: Bild oben, Infos unten */
    section.section[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .detail-stats {
        flex-direction: column;
        gap: 40px;
    }

    /* Footer: Alles zentriert stacken */
    .footer-info {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-info div {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 20px;
    }

    .footer-info div:last-child {
        border-bottom: none;
    }
}