/* --- LOKALE SCHRIFTEN & BASIS --- */
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-v25-latin-700.woff2') format('woff2');
    font-weight: 700; font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('fonts/open-sans-v34-latin-regular.woff2') format('woff2');
    font-weight: 400; font-display: swap;
}

:root {
    --police-blue: #002d5a;
    --police-light: #004a8f;
    --gold: #c5a059;
    --gold-hover: #a6864a;
    --white: #ffffff;
    --light-bg: #f4f7f9;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    background-color: var(--white);
    color: #333;
}

h1, h2, h3, .logo, nav a {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

/* --- HEADER --- */
header {
    background: var(--police-blue);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo { color: var(--white); text-decoration: none; font-size: 1.5rem; font-weight: 700; }
.logo span { color: var(--gold); }

nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- VIDEO HERO --- */
.video-header {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.video-header video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.4);
}

.header-inner { position: relative; z-index: 2; color: white; text-align: center; }
.header-inner h1 { font-size: 3.5rem; margin: 0; }

/* --- UNIVERSELLES KARTEN-DESIGN --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.custom-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
    border-bottom: 4px solid transparent;
    margin: 15px;
}

.custom-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--gold);
}

.card-image-area {
    height: 230px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.card-content-area {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-category { font-size: 0.75rem; font-weight: 700; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.card-title { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; color: var(--police-blue); margin: 0 0 15px 0; line-height: 1.4; text-transform: uppercase; }

/* --- SEKTIONEN --- */
.news-section { padding: 80px 0; background: var(--light-bg); }
.gallery-preview-section { padding: 80px 0; background: var(--white); }
.gallery-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }

.btn-main {
    background: var(--gold); color: white; padding: 12px 25px; text-decoration: none;
    border-radius: 5px; font-weight: bold; display: inline-block; transition: var(--transition);
}

/* Slick Arrows */
.slick-prev:before, .slick-next:before { color: var(--police-blue) !important; font-size: 35px; }

/* --- MAGAZIN / DOWNLOAD STYLES --- */
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.magazine-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid #eee;
}

.magazine-card:hover {
    transform: translateY(-10px) rotate(1deg); /* Leichter Kipp-Effekt wie ein echtes Heft */
    border-bottom: 4px solid var(--gold);
}

.magazine-cover {
    height: 300px;
    background-size: cover;
    background-position: top center;
    background-color: #333;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.magazine-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,45,90,0.4);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: 0.3s;
}

.magazine-card:hover .magazine-overlay { opacity: 1; }

.magazine-info { padding: 15px; }
.magazine-info h3 { font-size: 0.9rem; color: var(--police-blue); margin-bottom: 10px; }

/* --- GLOBALER FOOTER --- */
.main-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: auto; /* Schiebt Footer nach unten in Flex-Layouts */
    font-family: 'Open Sans', sans-serif;
    border-top: 3px solid var(--gold);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
    text-transform: uppercase;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-links .sep {
    color: var(--gold);
    margin: 0 15px;
}

.footer-copy p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 15px;
}

.footer-signature {
    margin-top: 25px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.footer-signature p {
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

.footer-signature a {
    color: var(--gold);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.footer-signature a:hover {
    text-shadow: 0 0 8px rgba(197, 160, 89, 0.5);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.gallery-img-container {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
}

.gallery-hover {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 45, 90, 0.6);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: 0.3s;
}

.gallery-hover i { color: #fff; font-size: 2rem; }
.gallery-card:hover .gallery-hover { opacity: 1; }

.gallery-info { padding: 10px; text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--police-blue); }

/* --- FOOTER STYLES --- */
.main-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 3px solid var(--gold);
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; text-align: center; }
.footer-links { margin-bottom: 20px; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; }
.footer-links .sep { color: var(--gold); margin: 0 15px; }
.footer-signature { margin-top: 25px; border-top: 1px solid #333; padding-top: 20px; font-size: 0.75rem; }
.footer-signature a { color: var(--gold); text-decoration: none; font-weight: bold; }

/* --- GRID FÜR ÜBERSICHTEN --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Video & Galerie Detail Styles --- */

.gallery-detail-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; 
    margin-bottom: 30px;
}

@media (max-width: 900px) { 
    .gallery-detail-grid { grid-template-columns: repeat(2, 1fr); } 
}

.image-card { 
    position: relative; 
    border-radius: 8px; 
    overflow: hidden; 
    background: #000; 
    aspect-ratio: 16/9; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

.image-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.image-card:hover img { opacity: 0.6; transform: scale(1.05); }

.play-overlay { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    color: #fff; 
    font-size: 3.5rem; 
    opacity: 0.8; 
    transition: 0.3s; 
    pointer-events: none; 
}

.image-card:hover .play-overlay { color: #c5a059; opacity: 1; transform: translate(-50%, -50%) scale(1.1); }

/* Video Modal - Volle Stabilität */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* Der Höhen-Fix (Padding-Bottom Trick für 16:9) */
.video-aspect-ratio {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Verhältnis */
}

.video-aspect-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.close-video {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

.close-video:hover { color: #c5a059; }

/* Container für Bild/Video + Titel */
.gallery-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

/* Stil für den Titel unter dem Bild */
.image-title {
    font-size: 0.85rem;
    color: #002d5a;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    font-family: 'Montserrat', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    margin-top: 5px;
    /* min-height entfernt, damit Bilder bündig abschließen */
}

/* Dropdown Basiseinstellungen */
.nav-item.dropdown {
    position: relative;
    display: inline-block;
}

/* Das versteckte Menü */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #002d5a; /* Dein Polizeiblau */
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-top: 3px solid #c5a059; /* Dein Gold-Ton */
    border-radius: 0 0 5px 5px;
}

/* Links im Dropdown */
.dropdown-content li a {
    color: white !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    text-align: left;
    transition: 0.3s;
}

/* Hover-Effekt im Dropdown */
.dropdown-content li a:hover {
    background-color: rgba(197, 160, 89, 0.2);
    color: #c5a059 !important;
    padding-left: 25px;
}

/* Anzeigen bei Hover */
.nav-item.dropdown:hover .dropdown-content {
    display: block;
}

/* Für mobile Geräte (einfaches Einblenden) */
@media (max-width: 992px) {
    .dropdown-content {
        position: static;
        display: block; /* Auf Handy meist permanent untereinander oder per Klick */
        background-color: transparent;
        box-shadow: none;
        border: none;
        padding-left: 20px;
    }
}