/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

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

/* Navigation Styles */
.navbar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid #0066cc;
}

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

.nav-logo h2 {
    color: #0066cc;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 102, 204, 0.5);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    height: 36px;
    width: 36px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(0, 102, 204, 0.6);
}

.logo-svg {
    height: 50px;
    width: auto;
}

.logo-svg text {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(0, 102, 204, 0.8);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #0066cc;
    background: rgba(0, 102, 204, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #0066cc;
    background: rgba(0, 102, 204, 0.2);
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.3);
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #0066cc;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main Content */
main {
    margin-top: 70px;
}

.content-section {
    display: none;
    min-height: calc(100vh - 70px);
}

.content-section.active {
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%230066cc" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #0066cc, #00aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 102, 204, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #cccccc;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, #0066cc, #00aaff);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.btn-secondary:hover {
    background: #0066cc;
    color: white;
    transform: translateY(-3px);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.3);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #0066cc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(0, 102, 204, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
    border-color: #0066cc;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #0066cc;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #cccccc;
    line-height: 1.6;
}

/* Content Sections */
.content-section h1 {
    font-size: 2.5rem;
    color: #0066cc;
    text-align: center;
    margin: 2rem 0 3rem 0;
    text-shadow: 0 0 20px rgba(0, 102, 204, 0.3);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem 0;
}

.content-text h2 {
    color: #0066cc;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.content-text h3 {
    color: #00aaff;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.2rem;
}

.content-text p {
    color: #cccccc;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-text ul {
    color: #cccccc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Inline link styling inside content text */
.content-text a {
    color: #00aaff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(0, 170, 255, 0.6);
}

.content-text a:hover {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0 1.5rem 0;
}

.info-box {
    background: rgba(0, 102, 204, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.3);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    color: #cccccc;
    backdrop-filter: blur(10px);
    white-space: pre-line; /* preserve line breaks, collapse leading/multiple spaces */
}

.info-box h3 {
    color: #00aaff;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

/* Make Radio Codes section span full width (no empty second column) */
#polizei-spezialeinheiten-3 .content-grid {
    grid-template-columns: 1fr;
}

.content-image {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.image-placeholder {
    width: auto;
    height: auto;
    border: 2px solid #0066cc;
    border-radius: 15px;
    display: inline-block;
    overflow: hidden;
}

.image-placeholder img {
    display: block;
    max-width: 100%;
    height: auto;
}

.image-caption {
    margin-top: 10px;
    color: #cccccc;
    font-size: 0.95rem;
    text-align: center;
}

/* Ensure specific sections follow intrinsic image sizing */
#polizei-spezialeinheiten-1 .image-placeholder {
    width: auto;
    height: auto;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.95);
    border-top: 2px solid #0066cc;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

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

.footer-section h3 {
    color: #0066cc;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: #00aaff;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #0066cc;
}

.footer-section p a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section p a:hover {
    color: #0066cc;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 102, 204, 0.3);
    color: #888888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        border-top: 2px solid #0066cc;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

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

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .features {
        padding: 60px 0;
    }

    .features h2 {
        font-size: 2rem;
    }

    .content-section h1 {
        font-size: 2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .image-placeholder {
        height: 200px;
        font-size: 1rem;
    }

    /* Mobile portrait sizing for ToxicKidGER image */
    #polizei-spezialeinheiten-1 .image-placeholder {
        width: 173px; /* +15% */
        height: 230px; /* +15% */
    }
}

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

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

.content-section.active {
    animation: fadeIn 0.5s ease-in-out;
}

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

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #0066cc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00aaff;
}
