/* ========================================= */
/* 1. BASICS & VARIABLEN                     */
/* ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    --austria-red: #C8102E;
    --gov-dark: #2d2d2d;
    --gov-light: #f5f5f5;
    --gold: #C5A059;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    color: var(--gov-dark);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; margin-top: 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
.container { max-width: 1100px; margin: auto; padding: 0 20px; }

/* ========================================= */
/* 2. TOP BAR                                */
/* ========================================= */
.top-bar { background-color: var(--gov-dark); color: var(--white); font-size: 0.85rem; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.emergency-alert { color: #ff9999; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }

/* ========================================= */
/* 3. HEADER & NAV (FIXED LAYOUT)            */
/* ========================================= */
header {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 4px solid var(--austria-red);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo-area { display: flex; align-items: center; gap: 15px; }
.coat-of-arms {
    width: 50px; height: 60px;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/a/a1/Coat_of_arms_of_Austria.svg/1200px-Coat_of_arms_of_Austria.svg.png');
    background-size: contain; background-repeat: no-repeat; background-position: center;
}

.logo-text h1 { font-size: 1.5rem; line-height: 1.1; margin: 0; }
.logo-text small { font-size: 0.8rem; text-transform: uppercase; color: var(--austria-red); font-weight: 700; letter-spacing: 2px; }

/* Desktop Navigation */
nav ul { display: flex; gap: 30px; }
nav a { font-weight: 600; font-size: 0.95rem; text-transform: uppercase; }
nav a:hover, nav a.active { color: var(--austria-red); }
.btn-admin { background: var(--gold); color: white; padding: 5px 15px; border-radius: 2px; }

/* Hamburger Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}
.menu-toggle span { display: block; height: 3px; width: 25px; background: var(--gov-dark); }

/* ========================================= */
/* 4. SEKTIONEN (HERO, SERVICES, NEWS)       */
/* ========================================= */
.hero {
    height: 65vh; background-position: center; background-size: cover;
    position: relative; display: flex; align-items: center; justify-content: center;
    text-align: center; color: white;
}
.hero::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; }
.hero h2 { font-size: 3.5rem; margin-bottom: 10px; }

.services-bar { background: var(--austria-red); color: white; padding: 40px 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: center; }
.service-item { padding: 20px; border: 1px solid rgba(255,255,255,0.2); }
.service-icon { font-size: 2rem; display: block; margin-bottom: 10px; }

.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2::after { content: ''; display: block; width: 60px; height: 3px; background: var(--austria-red); margin: 15px auto 0; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.news-card { background: white; border: 1px solid #eee; transition: 0.3s; height: 100%; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-img { height: 220px; width: 100%; object-fit: cover; }
.news-body { padding: 25px; flex-grow: 1; }
.news-date { color: var(--austria-red); font-size: 0.8rem; font-weight: bold; text-transform: uppercase; }

/* ========================================= */
/* 5. ABOUT & DETAIL SEITE                   */
/* ========================================= */
.profile-header { text-align: center; margin-bottom: 40px; }
.profile-img-about {
    width: 180px; height: 180px; border-radius: 50%;
    border: 4px solid var(--austria-red); object-fit: cover;
    box-shadow: var(--shadow); margin-bottom: 20px;
}
.about-text-content { max-width: 800px; margin: 0 auto; }
.about-text-content h3 { margin-top: 40px; border-bottom: 2px solid var(--gov-light); padding-bottom: 10px; }

/* ========================================= */
/* 6. ADMIN BEREICH                          */
/* ========================================= */
.admin-form { background: var(--gov-light); padding: 30px; border-radius: 4px; margin-bottom: 40px; }
.admin-table { width: 100%; border-collapse: collapse; background: white; }
.admin-table th, .admin-table td { padding: 15px; border-bottom: 1px solid #ddd; text-align: left; }
.admin-table tr:hover { background: #f9f9f9; }
.btn { background: var(--gov-dark); color: white; padding: 10px 20px; border: none; cursor: pointer; font-weight: bold; display: inline-block; }
.btn:hover { background: var(--austria-red); }

/* ========================================= */
/* 7. FOOTER                                 */
/* ========================================= */
footer { background: var(--gov-dark); color: #bbb; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-col h4 { color: white; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-bottom { text-align: center; border-top: 1px solid #444; margin-top: 40px; padding-top: 20px; font-size: 0.8rem; }

/* ========================================= */
/* 8. LOGIN & REGISTER                       */
/* ========================================= */
body.login-page {
    background-image: url('uploads/hero-bg.jpg');
    background-size: cover; background-position: center;
    min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative;
}
body.login-page::before {
    content: ''; position: absolute; inset: 0; background: rgba(45, 45, 45, 0.85); z-index: 1;
}
.login-wrapper { position: relative; z-index: 2; width: 100%; padding: 20px; display: flex; justify-content: center; }
.login-card {
    background: white; width: 100%; max-width: 400px; padding: 40px; border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2); border-top: 5px solid var(--austria-red); text-align: center;
}
.coat-of-arms-large {
    width: 70px; height: 85px;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/a/a1/Coat_of_arms_of_Austria.svg/1200px-Coat_of_arms_of_Austria.svg.png');
    background-size: contain; background-repeat: no-repeat; background-position: center; margin: 0 auto 15px auto;
}
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-size: 0.85rem; font-weight: bold; margin-bottom: 5px; }
.form-group input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; }
.btn-login { width: 100%; background: var(--austria-red); color: white; padding: 12px; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; }
.alert { padding: 10px; margin-bottom: 20px; border-radius: 4px; font-size: 0.9rem; }
.alert.error { background: #fde8e8; color: #c81e1e; }
.alert.success { background: #def7ec; color: #03543f; }
.login-footer { margin-top: 25px; font-size: 0.85rem; color: #888; }

/* ========================================= */
/* 9. MOBILE OPTIMIERUNG                     */
/* ========================================= */
@media (max-width: 768px) {
    .top-bar .container { flex-direction: column; text-align: center; gap: 5px; }
    .menu-toggle { display: flex; }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px;
    }

    nav.active { display: block; }
    nav ul { flex-direction: column; gap: 10px; text-align: center; }
    nav a { display: block; padding: 10px; border-bottom: 1px solid #f5f5f5; }

    .hero h2 { font-size: 2.2rem; }
    .logo-text h1 { font-size: 1.1rem; }
    .about-text-content { text-align: left; }
    .footer-grid { text-align: center; }
}