/* style.css - Komplett überarbeitet für maximale Mobilanpassung */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

/* RESET - ALLES auf Null */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.header-full-width {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: #002244;
}

.header-full-width img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* NAVIGATION */
nav {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

nav ul li a {
    color: #003366;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: block;
    padding: 25px 20px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #ed1c24;
}

/* CONTAINER - Das ist der weiße Kasten */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    flex: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
    margin-top: -50px;
    border-radius: 8px 8px 0 0;
    padding: 0;
}

/* MAIN - Hier steht der ganze Text */
main {
    padding: 60px 40px;
    width: 100%;
}

/* FOOTER */
.footer-full-width {
    width: 100%;
    background: #111111;
    color: #ffffff;
    padding: 60px 0;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.footer-logo {
    max-height: 90px;
    margin-bottom: 25px;
}

.footer-intro {
    font-weight: 300;
    font-size: 1rem;
    color: #cccccc;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.footer-date {
    color: #bbbbbb;
    font-size: 0.85rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.footer-full-width a {
    color: #ffffff;
    text-decoration: none;
    margin: 8px 15px;
    font-size: 0.85rem;
    display: inline-block;
}

.footer-full-width a:hover {
    color: #ed1c24;
}

.footer-projects, .footer-legal {
    padding: 15px 0;
    border-top: 1px solid #222;
}

.admin-logout a {
    color: #800;
}

/* ===== MOBILE OPTIMIERUNG - RADIKAL ===== */
@media (max-width: 768px) {
    /* ALLES auf 100% zwingen - WICHTIG */
    body, 
    html, 
    .container, 
    main, 
    .header-full-width,
    nav, 
    nav ul, 
    .footer-full-width, 
    .footer-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Header kleiner machen */
    .header-full-width {
        height: 300px !important;
    }
    
    /* Container ohne Abstände und ohne Schatten */
    .container {
        margin-top: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    /* MAIN mit genau 15px Padding - DAS IST DIE LÖSUNG */
    main {
        padding: 30px 15px !important;
    }
    
    /* Alle Texte und Elemente im main auf volle Breite zwingen */
    main * {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Speziell für Absätze und Überschriften */
    main p, 
    main h1, 
    main h2, 
    main h3, 
    main h4,
    main div,
    main section {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Navigation als Hamburger-Menü vorbereiten */
    nav ul {
        flex-direction: column !important;
    }
    
    nav ul li {
        width: 100% !important;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    
    nav ul li a {
        padding: 15px !important;
    }
    
    /* Footer */
    .footer-full-width {
        padding: 40px 0 !important;
    }
    
    .footer-content {
        padding: 0 15px !important;
    }
    
    .footer-full-width a {
        display: block !important;
        margin: 10px 0 !important;
    }
    
    /* Hintergrund anpassen */
    body {
        background-color: #ffffff !important;
    }
    
    .container {
        background-color: #ffffff !important;
    }
}