/* Datei: /assets/css/style.css (VERSION 1.0.6 - REPARATUR) */

:root {
    --primary-color: #ff6600;
    --text-color: #222;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --black: #000000;
    --grey-accent: #e0e0e0;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { height: auto; } /* WICHTIG fürs Scrollen */

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto; /* WICHTIG: Damit das Scrollen nicht blockiert */
    overflow-x: hidden; /* Verhindert seitliches Wackeln */
}

/* =========================================
   1. HEADER & NAVIGATION
   ========================================= */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

.navbar {
    width: 98%; max-width: 1400px; margin: 0 auto; padding: 0.8rem 20px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: nowrap; /* WICHTIG: Verhindert Umbruch auf Handy */
}

.logo {
    font-size: 1.5rem; 
    font-weight: 900; color: var(--black); text-decoration: none;
    text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; 
    margin-right: 15px; flex-shrink: 0;
}
.logo span { color: var(--primary-color); }

.nav-container-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-links {
    list-style: none; display: flex; gap: 10px; 
    align-items: center; margin: 0; padding: 0;
}

.nav-links a {
    text-decoration: none; color: var(--text-color); font-weight: 600; 
    font-size: 0.9rem; 
    padding-bottom: 5px; border-bottom: 2px solid transparent; white-space: nowrap; transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }

/* Suche */
.search-form { display: flex; align-items: center; margin-left: 10px; }
.search-input { padding: 6px 10px; border: 1px solid #ccc; border-radius: 4px 0 0 4px; font-size: 0.85rem; outline: none; width: 100px; transition: width 0.3s; }
.search-input:focus { width: 150px; border-color: var(--primary-color); }
.search-btn { padding: 6px 12px; background: var(--primary-color); color: white; border: 1px solid var(--primary-color); border-radius: 0 4px 4px 0; cursor: pointer; font-size: 0.85rem; }

/* Handy Menü Button */
.menu-toggle { 
    display: none; 
    font-size: 1.8rem; 
    cursor: pointer; 
    color: var(--primary-color); 
    margin-left: 15px;
    line-height: 1; /* Verhindert Höhen-Verschiebung */
}

/* =========================================
   2. INHALT & FORMS
   ========================================= */
.container { max-width: 1200px; margin: 50px auto; padding: 0 20px; flex: 1; width: 100%; }

/* Formulare (Kontakt & Login) - FIX FÜR CHECKBOXEN */
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; margin-bottom: 5px; color: #666; font-size: 0.9rem; }

/* Nur Textfelder breit machen */
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem;
}

/* Checkboxen normal lassen (FIX für Datenschutz) */
.form-group input[type="checkbox"] {
    width: auto; display: inline-block; margin-right: 10px; transform: scale(1.2);
}

/* =========================================
   3. HERO & TEASER
   ========================================= */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/hero.jpg') no-repeat center top;
    background-size: cover; height: 45vh; min-height: 350px;  
    display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); padding: 0 20px;
}
.hero-content h1 { font-size: 3.5rem; margin-bottom: 1rem; text-shadow: 3px 3px 6px rgba(0,0,0,0.8); font-weight: 800; }
.hero-content p { font-size: 1.4rem; max-width: 800px; margin: 0 auto; font-weight: 500; text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }

.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.teaser-card {
    background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow);
    transition: transform 0.3s; border-top: 4px solid var(--primary-color); display: flex; flex-direction: column;
}
.teaser-card:hover { transform: translateY(-7px); }
.teaser-img { width: 100%; height: 220px; object-fit: cover; background-color: var(--grey-accent); }
.teaser-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; text-align: center; } 
.teaser-content h3 { margin-bottom: 15px; font-size: 1.4rem; font-weight: 700; }
.teaser-content p { font-size: 1rem; margin-bottom: 25px; color: #555; flex-grow: 1; text-align: left; }

.btn { 
    display: inline-block; padding: 12px 25px; background-color: var(--primary-color); color: var(--white); 
    text-decoration: none; border-radius: 4px; font-weight: 600; text-transform: uppercase; cursor: pointer; border: none; 
    margin: 0 auto;
}
.btn:hover { background-color: #e65c00; }

.content-box { background: var(--white); padding: 40px; border-radius: 8px; box-shadow: var(--shadow); line-height: 1.8; overflow: hidden; }
.content-box h1 { margin-bottom: 20px; color: var(--primary-color); }
.content-box ul { margin-left: 20px; margin-bottom: 20px; }
.content-box::after { content: ""; display: table; clear: both; }

/* Editor Klassen */
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px auto; }

/* =========================================
   4. FOOTER (ENDLICH WIEDER DA!)
   ========================================= */
footer { 
    background: var(--black); 
    color: #ccc; 
    padding: 50px 0 20px; 
    margin-top: auto; 
    text-align: center; 
    width: 100%;
}
.footer-links a { color: var(--primary-color); margin: 0 15px; text-decoration: none; font-weight: 600; }
.version { margin-top: 30px; font-size: 0.8rem; opacity: 0.6; border-top: 1px solid #444; padding-top: 20px; }

/* Cookie Overlay */
#cookie-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.9); z-index: 9999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.cookie-box { background: white; width: 90%; max-width: 500px; padding: 30px; border-radius: 8px; text-align: center; border-top: 5px solid var(--primary-color); }
.btn-accept { background: var(--primary-color); color: white; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }
.btn-decline { background: #ccc; color: #333; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; }

/* =========================================
   5. ADMIN BEREICH
   ========================================= */
.admin-nav {
    background: #fff; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; height: 60px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); margin-bottom: 30px;
}
.admin-nav ul { list-style: none; display: flex; gap: 20px; }
.admin-nav a { text-decoration: none; color: #555; font-weight: 500; }
.admin-nav a:hover, .admin-nav a.active { color: var(--primary-color); }
.logout-btn { color: #d9534f !important; }

.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.dash-card {
    background: white; padding: 30px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center; border-top: 4px solid var(--primary-color); display: flex; flex-direction: column; 
    justify-content: center; min-height: 200px; text-decoration: none; color: inherit; transition: transform 0.2s;
}
.dash-card .btn { margin-top: 20px; }

.login-card { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); width: 100%; max-width: 400px; text-align: center; border-top: 5px solid var(--primary-color); margin: auto; }
.btn-full { width: 100%; margin-top: 10px; }
.error-msg { background: #f8d7da; color: #721c24; padding: 10px; border-radius: 4px; margin-bottom: 20px; }
.forgot-link { display: inline-block; margin-top: 20px; color: #888; text-decoration: none; font-size: 0.9rem; }

/* Editor Container */
.editor-container { max-width: 900px; margin: 40px auto; padding: 0 20px; }
.editor-card { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

/* Status Bar */
.status-bar { max-width: 1200px; margin: 30px auto 0; padding: 20px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.1); color: white; font-family: sans-serif; }
.status-online { background: linear-gradient(135deg, #28a745 0%, #218838 100%); } 
.status-stealth { background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%); }
.status-btn { background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.5); color: white; padding: 10px 20px; border-radius: 50px; cursor: pointer; font-weight: bold; }

/* =========================================
   6. RESPONSIVE / MOBILE
   ========================================= */
@media (max-width: 992px) { .teaser-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 850px) {
    /* Logo kleiner machen, damit es neben das Menü passt */
    .logo { font-size: 1.1rem; } 

    .nav-links {
        display: none; 
        flex-direction: column; width: 100%; background: var(--white); 
        position: absolute; top: 100%; left: 0; box-shadow: var(--shadow); 
        padding: 20px 0; text-align: center;
        z-index: 9999;
    }
    .nav-links.active { display: flex; }
    
    .nav-links li { margin: 10px 0; width: 100%; }
    .nav-links a { display: block; width: 100%; padding: 10px 0; border-bottom: none; font-size: 1.1rem; }
    
    .menu-toggle { display: block; } 
    .search-form { display: none; }
    
    .teaser-grid { grid-template-columns: 1fr; }
    .hero { height: 50vh; }
}