/* ===== GRUNDLEGENDE EINSTELLUNGEN ===== */
:root {
    --primary-color: #0d3b66;
    --secondary-color: #003153;
    --accent-color: #af9d5a;
    --dark-color: #1c2841;
    --light-color: #f0f3f5;
    --text-color: #333;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7fa;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.5s;
    z-index: 1;
}

.btn:hover {
    background-color: #9a874d;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover::before {
    left: 100%;
}

/* ===== HEADER ===== */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

#main-nav {
    position: relative;
}

#nav-menu {
    display: flex;
    list-style: none;
}

#nav-menu li {
    margin-left: 25px;
}

#nav-menu li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: var(--transition);
}

#nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

#nav-menu li a:hover, 
#nav-menu li a.active {
    color: var(--accent-color);
}

#nav-menu li a:hover::after, 
#nav-menu li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    background-color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: absolute;
    top: 25px;
    right: 20px;
}

.mobile-menu-btn:hover {
    background-color: var(--secondary-color);
}

/* ===== HERO SECTION ===== */
#hero {
    background: linear-gradient(rgba(13, 59, 102, 0.8), rgba(0, 49, 83, 0.9)), url('/api/placeholder/1920/800') no-repeat center center/cover;
    height: 500px;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    border-bottom: 5px solid var(--accent-color);
}

#hero .container {
    max-width: 800px;
}

#hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== DEPARTMENTS SECTION ===== */
#departments {
    padding: 5rem 0;
    background-color: white;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.department-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(175, 157, 90, 0.1) 0%, rgba(13, 59, 102, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.department-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.department-card:hover::before {
    opacity: 1;
}

.department-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.department-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.department-card p {
    color: #666;
}

/* ===== SERVICES SECTION ===== */
#services {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.service-box i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-box p {
    color: #666;
}

/* ===== NEWS SECTION ===== */
#news {
    padding: 5rem 0;
    background-color: white;
}

.news-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.date {
    color: #777;
    font-size: 0.9rem;
}

.news-content h3 {
    margin: 10px 0;
    font-size: 1.3rem;
    color: var(--dark-color);
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    color: var(--secondary-color);
    font-weight: bold;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-color);
}

/* ===== GESETZE SECTION ===== */
#gesetze {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.law-categories {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.category-tabs {
    display: flex;
    background-color: var(--dark-color);
    overflow-x: auto;
    position: relative;
}

.category-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    color: white;
    background-color: var(--secondary-color);
}

.category-content {
    display: none;
    padding: 30px;
}

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

.laws-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.law-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.law-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.law-header h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
}

.arrow {
    transition: var(--transition);
}

.law-header:hover {
    background-color: #f1f2f3;
}

.law-document {
    height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.law-document.active {
    height: 600px;
    padding: 20px;
    border-top: 1px solid #ddd;
}

.law-document iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== CONTACT SECTION ===== */
#contact {
    padding: 5rem 0;
    background-color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info .info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--accent-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-right: 15px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.link-group h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.link-group h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -8px;
    left: 0;
}

.link-group ul li {
    margin-bottom: 10px;
}

.link-group ul li a {
    transition: var(--transition);
    opacity: 0.8;
}

.link-group ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    #hero {
        height: 400px;
    }
    
    #hero h2 {
        font-size: 2.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: stretch;
        position: relative;
    }
    
    .logo {
        justify-content: center;
        margin-bottom: 15px;
    }
    
    #main-nav {
        position: relative;
    }
    
    #nav-menu {
        display: none;
        flex-direction: column;
        align-items: center;
        background-color: white;
        width: 100%;
        padding: 15px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    #nav-menu.active {
        display: flex;
    }
    
    #nav-menu li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: flex;
        position: absolute;
        top: -40px;
        right: 20px;
        z-index: 100;
    }
    
    #hero h2 {
        font-size: 2.2rem;
    }
    
    #hero p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .departments-grid,
    .services-container,
    .news-container {
        grid-template-columns: 1fr;
    }
    
    #hero {
        height: 350px;
    }
    
    #hero h2 {
        font-size: 1.8rem;
    }
    
    .category-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 0 50%;
        text-align: center;
    }
}