/*
   GaySystem - Final Master Stylesheet
   Version: 3.0
   Design: Modern, Responsive, Compact & Professional
   Farben: Blau (#48B1CF), Orange (#FF6600)
*/

:root {
    --primary: #48B1CF;
    --primary-dark: #358ca5;
    --secondary: #FF6600;
    --secondary-dark: #e65c00;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --white: #ffffff;
    --bg: #f4f7f9;
    --border: #e1e4e8;
    --text: #333;
    --text-muted: #777;
    --error: #c0392b;
    --success: #27ae60;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- 1. BASIS & RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }

/* --- 2. LAYOUT STRUKTUR --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 75px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-wrapper {
    max-width: 1200px;
    margin: 25px auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 25px;
    padding: 0 20px;
}

aside.desktop-sidebar {
    background: var(--white);
    padding: 15px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: fit-content;
}

main { min-height: 700px; }

/* --- 3. LOGO & HEADER ELEMENTE --- */
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-text {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1.5px;
    text-transform: uppercase;
}
.logo-dot { color: var(--secondary); }

.header-socials { display: flex; gap: 15px; align-items: center; margin-left: auto; margin-right: 20px; }
.header-socials a { color: var(--dark); font-size: 1.3rem; transition: 0.3s; }
.header-socials a:hover { color: var(--primary); transform: translateY(-3px); }

.hamburger { display: none; cursor: pointer; font-size: 32px; color: var(--primary); }

/* --- 4. NAVIGATION (SIDE-NAV) --- */
.side-nav { list-style: none; display: flex; flex-direction: column; gap: 1px; }

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--dark);
}
.nav-link:hover { background: #f0faff; color: var(--primary); }
.nav-link i { color: var(--primary); margin-right: 10px; font-size: 20px; }

.nav-divider {
    margin: 12px 0 4px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #ccc;
    text-transform: uppercase;
    padding-left: 12px;
    letter-spacing: 1px;
    border-bottom: 1px solid #f0f0f0;
}
.nav-divider.admin { color: var(--secondary); border-bottom: 1px solid #ffe0d0; }

.nav-badge-count {
    background: var(--secondary);
    color: white;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

.nav-link.logout { color: var(--error); }
.nav-link.logout i { color: var(--error); }

/* --- 5. MOBILES MENÜ & OVERLAY --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: 0.4s ease-in-out;
    padding: 20px 15px 100px 15px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
.mobile-menu.active { right: 0; }
.menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    backdrop-filter: blur(2px);
}
.menu-overlay.active { display: block; }

.mobile-socials {
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- 6. HOME: HERO & SUCHE --- */
.hero-blue-box {
    background: var(--primary);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    color: white;
    text-align: center;
    margin-bottom: 20px;
}
.hero-search-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.search-group {
    background: white !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    flex: 1;
    min-width: 200px;
}
.search-group i { color: var(--primary); margin-right: 8px; }
.search-group input, .search-group select {
    background: white !important;
    border: none;
    padding: 12px 5px;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
}

/* --- 7. BANNER ROTATION --- */
.banner-container-home { width: 100%; margin: 10px 0 25px 0; display: flex; justify-content: center; }
.banner-rotator {
    width: 100%;
    max-width: 1100px;
    height: 150px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.banner-rotator img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease;
    background: #fdfdfd;
}

/* --- 8. ANZEIGEN GRID & CARDS (V2) --- */
.section-title { margin: 30px 0 15px; padding-left: 12px; border-left: 5px solid var(--secondary); font-size: 1.4rem; color: var(--dark); }
.ad-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.ad-card-v2 {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}
.ad-card-v2:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: var(--primary); }

.ad-card-image { height: 140px; background-size: cover; background-position: center; position: relative; background-color: #eee; }
.ad-time-badge { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,0.9); padding: 2px 6px; border-radius: 4px; font-size: 0.6rem; font-weight: bold; }

.ad-card-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.ad-meta-tags { display: flex; gap: 6px; margin-bottom: 8px; }
.tag-rubrik { font-size: 0.6rem; font-weight: bold; text-transform: uppercase; color: var(--primary); background: #f0faff; padding: 2px 5px; border-radius: 3px; }
.tag-region { font-size: 0.6rem; color: #888; display: flex; align-items: center; }

.ad-main-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 2px; height: 1.2em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-subtitle { font-size: 0.8rem; color: #777; margin-bottom: 12px; height: 1.2em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn-details-text {
    margin-top: auto;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-weight: bold; font-size: 0.8rem;
    background: #f8f9fa; padding: 6px; border-radius: 6px;
}
.ad-card-v2:hover .btn-details-text { background: var(--primary); color: white; }

/* --- 9. ADMIN & USER TABELLEN --- */
.white-card { background: #ffffff; padding: 25px; border-radius: 15px; box-shadow: var(--shadow); width: 100%; margin-bottom: 20px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 12px; background: #f8f9fa; border-bottom: 2px solid #eee; font-size: 0.8rem; color: #888; text-transform: uppercase; }
.admin-table td { padding: 12px; border-bottom: 1px solid #eee; font-size: 0.92rem; vertical-align: middle; }
.text-right { text-align: right !important; }
.button-group-right { display: flex; justify-content: flex-end; gap: 8px; }

/* --- 10. FORMULARE --- */
.modern-form .form-group { margin-bottom: 15px; }
.modern-form label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.9rem; color: var(--dark); }
.modern-form input, .modern-form select, .modern-form textarea {
    width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 1rem; background-color: #fff; outline: none; transition: 0.3s;
}
.modern-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(72,177,207,0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* --- 11. BUTTONS & BADGES --- */
.btn { display: inline-block; padding: 10px 20px; border-radius: 8px; font-weight: bold; border: none; cursor: pointer; text-align: center; transition: 0.3s; }
.btn-primary { background: var(--primary); color: white; }
.btn-secondary { background: var(--secondary); color: white; }
.btn-small { padding: 5px 10px !important; font-size: 0.8rem !important; display: inline-flex; align-items: center; gap: 4px; }
.btn-block { width: 100%; display: block; }

.badge { padding: 3px 8px; border-radius: 12px; font-size: 0.7rem; font-weight: bold; color: white; text-transform: uppercase; }
.badge-active { background: var(--success); }
.badge-new { background: var(--secondary); }

/* --- 12. PAY AD: PAKET CARDS --- */
.paket-grid-uniform { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.paket-card-uniform { background: #fff; border: 1px solid var(--border); border-radius: 15px; display: flex; flex-direction: column; overflow: hidden; transition: 0.3s; }
.paket-card-uniform.is-featured { border: 2px solid var(--secondary); }
.paket-header { padding: 20px; color: white; text-align: center; }
.paket-header i { font-size: 40px; }
.paket-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; text-align: center; }
.price-box { margin-bottom: 15px; }
.price-box .amount { font-size: 2.5rem; font-weight: 800; }
.features-list { list-style: none; text-align: left; margin-bottom: 20px; flex-grow: 1; font-size: 0.85rem; }
.features-list li { margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }

/* --- 13. DASHBOARD & STATS --- */
.dashboard-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 35px; }
.stat-card-new { background: #fff; border-radius: 15px; padding: 25px; box-shadow: var(--shadow); border-left: 5px solid #eee; }
.stat-card-inner { display: flex; align-items: center; gap: 15px; }
.stat-content p { font-size: 1.5rem; font-weight: 800; }

/* --- 14. FOOTER (Original Style) --- */
.main-footer { background: #fff; padding: 30px 0; margin-top: 50px; border-top: 1px solid #e1e4e8; text-align: center; color: #666; }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-copy { font-weight: bold; margin-bottom: 10px; }
.footer-links { font-size: 0.9rem; }
.footer-links a { color: var(--primary); text-decoration: none; padding: 0 5px; }
.footer-links .sep { color: #ccc; }

/* --- 15. MESSAGES & ALERTS --- */
.success-box { background: #d4edda; color: #155724; padding: 15px; border-radius: 8px; margin-bottom: 20px; border-left: 5px solid var(--success); }
.error-box { background: #f8d7da; color: #721c24; padding: 15px; border-radius: 8px; margin-bottom: 20px; border-left: 5px solid var(--error); }

/* --- 16. MODAL / LIGHTBOX --- */
.modal { display: none; position: fixed; z-index: 10001; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); align-items: center; justify-content: center; cursor: pointer; }
.modal-content { max-width: 90%; max-height: 90%; border-radius: 10px; box-shadow: 0 0 20px rgba(255,255,255,0.1); }
.close-btn { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 40px; font-weight: bold; }

/* --- 17. RESPONSIVITÄT --- */
@media (max-width: 900px) {
    .main-wrapper { grid-template-columns: 1fr; margin-top: 10px; }
    .desktop-sidebar, .header-socials { display: none; }
    .hamburger { display: block; }
    .hero-search-form, .form-row, .paket-grid-uniform, .dashboard-grid-4 { grid-template-columns: 1fr; }
    .search-group { width: 100%; }
    .logo-text { font-size: 1.7rem; }
    .banner-rotator { height: 90px; }
}