/* Hosang Security - Professionelles Security-Styling */
:root {
    --primary: #1a1f2e;
    --secondary: #0f1419;
    --accent: #c41e3a;
    --accent-light: #e63950;
    --text: #f0f0f0;
    --text-muted: #a0a0a0;
    --border: #2a3548;
    --success: #27ae60;
    --warning: #f39c12;
    --bg-card: #1a1f2e;
    --shadow: rgba(0,0,0,0.3);
    /* Overlay Bilder - Standard: Hell fuer Dunkles Theme */
    --overlay-dashboard: url('/bilder/hell/dashboard');
    --overlay-pentest: url('/bilder/hell/autopentest');
    --overlay-osint: url('/bilder/hell/livetools');
    --overlay-compliance: url('/bilder/hell/compliance');
}

/* Light Mode Variables */
[data-theme="light"] {
    --primary: #ffffff;
    --secondary: #f5f5f5;
    --accent: #c41e3a;
    --accent-light: #e63950;
    --text: #1a1f2e;
    --text-muted: #5a6270;
    --border: #d0d5dd;
    --success: #27ae60;
    --warning: #f39c12;
    --bg-card: #ffffff;
    --shadow: rgba(0,0,0,0.1);
    /* Overlay Bilder - Dunkel fuer Helles Theme */
    --overlay-dashboard: url('/bilder/dunkel/dashboard');
    --overlay-pentest: url('/bilder/dunkel/autopentest');
    --overlay-osint: url('/bilder/dunkel/livetools');
    --overlay-compliance: url('/bilder/dunkel/compliance');
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--secondary);
    color: var(--text);
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}
/* HADES Screenshot Overlays - mit CSS Variablen - 2 Links, 2 Rechts */
body::before {
    content: '';
    position: fixed;
    top: 8%;
    left: -12%;
    width: 600px;
    height: 400px;
    background-image: var(--overlay-dashboard);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    opacity: 0.60;
    transform: rotate(-8deg);
    pointer-events: none;
    z-index: 0;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

body::after {
    content: '';
    position: fixed;
    top: 8%;
    right: -12%;
    width: 600px;
    height: 400px;
    background-image: var(--overlay-pentest);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    opacity: 0.60;
    transform: rotate(8deg);
    pointer-events: none;
    z-index: 0;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

/* Drittes Overlay - Unten Links */
.hades-overlay-third {
    position: fixed;
    bottom: 5%;
    left: -8%;
    width: 500px;
    height: 320px;
    background-image: var(--overlay-osint);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    opacity: 0.55;
    transform: rotate(6deg);
    pointer-events: none;
    z-index: 0;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

/* Viertes Overlay - Unten Rechts */
.hades-overlay-fourth {
    position: fixed;
    bottom: 5%;
    right: -8%;
    width: 500px;
    height: 320px;
    background-image: var(--overlay-compliance);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    opacity: 0.55;
    transform: rotate(-6deg);
    pointer-events: none;
    z-index: 0;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: var(--primary);
    border-bottom: 2px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 140px;
}

nav {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent); /* Hosang = ROT */
}

.logo-link {
    text-decoration: none;
    margin-right: 3rem;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo span {
    color: var(--text); /* Security = WEISS */
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    flex-wrap: nowrap;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.3rem;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-light);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--primary);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 100;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links a {
        font-size: 1.4rem;
        padding: 0.5rem 1rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 8px 0 10px 0;
    min-height: 280px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero h1 span {
    color: var(--accent);
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    margin-left: 1rem;
    color: var(--text);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

/* Content Sections */
section {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.service-card h3 {
    color: var(--accent-light);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Literature Section */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.book-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
}

.book-card h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.book-card .author {
    color: var(--accent-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.book-card .year {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.book-card .status {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
}

.status.soldout {
    background: #5c3a3a;
    color: #ff9999;
}

.status.available {
    background: #2d5a3d;
    color: #90ee90;
}

/* Articles */
.article-list {
    margin-top: 3rem;
}

.article-item {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.article-item h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.article-item .meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-item p {
    color: var(--text-muted);
}

/* Content Pages */
.content {
    background: var(--secondary);
}

.content h2 {
    color: var(--text);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.content h3 {
    color: var(--accent-light);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.3rem;
}

.content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.content ul {
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--primary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.8;
}

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

.footer-email {
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
}

.footer-email:hover {
    color: var(--accent-light);
}

.contact-email {
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
}

.contact-email:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 6px 0 8px 0;
        min-height: 200px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn-outline {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .book-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.highlight {
    color: var(--accent-light);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Overlays auf mobilen Geräten ausblenden */
@media (max-width: 768px) {
    body::before,
    body::after,
    .hades-overlay-third,
    .hades-overlay-fourth {
        display: none !important;
    }
}
