/* ========================================= */
/* === 1. GLOBAL STYLE & LAYOUT === */
/* ========================================= */
body { 
    background-color: #f4f4f4; 
    color: #333; 
    font-family: "Georgia", "Times New Roman", serif; 
    line-height: 1.6; 
    margin: 0; 
    padding: 0; 
    overflow-x: hidden; 
}

a { color: #8B0000; text-decoration: none; border-bottom: 1px dotted #8B0000; transition: 0.3s; }
a:hover { color: red; border-bottom: 1px solid red; }

#wrapper { 
    max-width: 960px; 
    margin: 0 auto; 
    background: #fff; 
    box-shadow: 0 0 15px rgba(0,0,0,0.1); 
    border-top: 5px solid #333; 
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
}

/* --- Header & Menü --- */
#header { padding: 40px 40px 30px 40px; border-bottom: 1px solid #ddd; background-color: #222; color: #fff; }
#header h1 { margin: 0; font-size: 2.6em; font-weight: normal; letter-spacing: -1px; }
#header p { margin: 5px 0 0 0; color: #aaa; font-style: italic; font-size: 1.1em; text-align: left; }

#menu { background: #333; padding: 10px 40px; }
#menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
#menu li { margin-right: 25px; }
#menu a { color: #fff; text-decoration: none; border: none; font-family: sans-serif; text-transform: uppercase; font-size: 0.85em; letter-spacing: 1px; padding-bottom: 2px; }
#menu a:hover { color: #ccc; border-bottom: 2px solid #8B0000; }

/* --- Layout Container --- */
#page { display: flex; flex-wrap: wrap; padding: 40px; flex: 1; }
#content { flex: 2; min-width: 300px; padding-right: 50px; }
#sidebar { flex: 1; min-width: 250px; background: #f9f9f9; padding: 25px; border-top: 3px solid #8B0000; height: fit-content; }

/* Für einspaltige Seiten */
.full-page { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 50px 80px; 
    flex: 1; 
    width: 100%; 
    box-sizing: border-box; 
}

/* --- Typografie --- */
h2 { color: #333; border-bottom: 2px solid #333; padding-bottom: 10px; margin-top: 0; margin-bottom: 25px; font-size: 1.8em; letter-spacing: -0.5px; font-family: "Georgia", serif; }
/* H3 Global: Großbuchstaben */
h3 { color: #8B0000; margin-top: 40px; margin-bottom: 15px; font-size: 1.3em; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px dotted #ccc; padding-bottom: 5px; font-family: "Georgia", serif; }
h4 { margin: 0 0 10px 0; color: #222; font-size: 1.1em; font-family: "Georgia", serif; font-weight: bold; }

p { text-align: left; margin-bottom: 20px; hyphens: auto; }
blockquote { border-left: 4px solid #8B0000; margin: 30px 0; padding-left: 20px; color: #555; font-style: italic; font-size: 1.1em; line-height: 1.6; background: #fafafa; padding: 15px 20px; }

/* --- Footer --- */
#footer { padding: 40px; background: #222; color: #999; font-size: 0.9em; text-align: center; border-top: 5px solid #8B0000; margin-top: auto; }
#footer p { text-align: center !important; margin: 0; }
#footer a { color: #ccc; border-bottom: 1px dotted #ccc; }


/* ========================================= */
/* === 2. SPEZIAL-SEITEN STYLES === */
/* ========================================= */

/* --- Startseite --- */
.teaser-grid { display: flex; flex-direction: column; gap: 40px; margin-top: 30px; }
.teaser-item { padding-bottom: 25px; border-bottom: 1px solid #eee; }
.teaser-item:last-child { border-bottom: none; }
.teaser-item h4 { margin-top: 5px; margin-bottom: 10px; font-size: 1.4em; }
.teaser-item h4 a { color: #222; border-bottom: none; } 
.teaser-meta { font-family: sans-serif; font-size: 0.75em; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; display: block; }
.read-more { font-family: sans-serif; font-size: 0.85em; text-transform: uppercase; margin-left: 10px; color: #8B0000; font-weight: normal; border-bottom: none; }

.news-log { background: #fff; border: 1px solid #ddd; padding: 20px; font-size: 0.9em; box-shadow: 0 2px 5px rgba(0,0,0,0.05); margin-top: 40px; }
.news-entry { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dotted #eee; display: flex; align-items: baseline; }
.news-entry:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.news-date { font-family: "Courier New", monospace; color: #8B0000; margin-right: 15px; min-width: 85px; font-weight: normal; }

.sidebar-box { margin-bottom: 40px; }
.fact-box { background: #fff; border: 1px solid #ddd; padding: 15px; font-size: 0.9em; border-left: 3px solid #555; margin-top: 20px; }
.live-widget { display: flex; align-items: center; padding-bottom: 15px; margin-bottom: 25px; border-bottom: 1px solid #dcdcdc; font-family: sans-serif; font-size: 0.85em; color: #666; }
.pulse-dot { display: inline-block; width: 10px; height: 10px; background-color: #8B0000; border-radius: 50%; margin-right: 12px; animation: pulse 2s infinite; }
#clock { font-weight: bold; color: #333; font-size: 1.1em; }
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } }

/* --- Fallarchiv --- */
.incident { margin-bottom: 50px; border-bottom: 1px solid #eee; padding-bottom: 30px; }
.incident:last-child { border-bottom: none; }
.incident-header { margin-bottom: 10px; }
.incident-date { font-family: sans-serif; font-weight: bold; color: #8B0000; text-transform: uppercase; font-size: 0.8em; letter-spacing: 1px; display: inline-block; margin-right: 10px; }
/* H3 im Archiv: Normal (nicht UPPERCASE) */
.incident h3 { margin-top: 5px; margin-bottom: 15px; color: #222; font-size: 1.4em; line-height: 1.3; text-transform: none; border-bottom: none; letter-spacing: 0; }
.tag-container { margin-bottom: 15px; }
.tag { display: inline-block; background: #f0f0f0; padding: 3px 8px; font-size: 0.7em; border-radius: 2px; margin-right: 5px; color: #666; font-family: sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }
.source-link { display: inline-block; margin-top: 10px; font-family: sans-serif; font-size: 0.85em; color: #8B0000; border-bottom: 1px solid #ddd; padding-bottom: 2px; font-weight: bold; text-decoration: none; }
.source-link:hover { border-bottom-color: #8B0000; color: #a00; }

/* --- Leitfaden --- */
.alert-box { background-color: #fff; border: 1px solid #000; padding: 25px; margin: 30px 0; box-shadow: 5px 5px 0px #eee; }
.resources-grid { display: flex; gap: 30px; margin-top: 20px; flex-wrap: wrap; }
.res-col { flex: 1; min-width: 300px; background: #f9f9f9; padding: 25px; border-top: 3px solid #8B0000; }
.file-link { display: block; text-decoration: none; border: none; margin-bottom: 15px; border-bottom: 1px solid #e0e0e0; padding-bottom: 10px; }
.file-link:hover .file-title { color: red; }
.badge-pdf { display: inline-block; background: #333; color: #fff; font-family: sans-serif; font-size: 10px; font-weight: bold; padding: 2px 4px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.file-title { font-family: "Georgia", serif; font-size: 1.0em; color: #222; font-weight: bold; }
.file-meta { display: block; font-size: 0.8em; color: #666; margin-top: 2px; margin-left: 32px; font-family: sans-serif; }
.contact-row { margin-bottom: 15px; font-size: 0.95em; }
.contact-row strong { display: block; color: #000; }

/* --- WWUF & 404 --- */
.support-box { background: #f9f9f9; padding: 25px; border-left: 5px solid #333; margin: 30px 0; }
.demand-list { list-style-type: none; padding: 0; margin-top: 20px; }
.demand-list li { margin-bottom: 15px; padding-left: 20px; border-left: 3px solid #8B0000; }
.demand-title { font-weight: bold; color: #222; display: block; margin-bottom: 3px; }
.btn { display: inline-block; background: #8B0000; color: #fff !important; padding: 10px 20px; text-transform: uppercase; font-family: sans-serif; font-size: 0.85em; border: none; margin-top: 15px; font-weight: bold; cursor: pointer; text-decoration: none; }
.btn:hover { background: #a00; border: none; }
.error-code { font-family: sans-serif; font-size: 5em; font-weight: bold; color: #eee; margin: 0; line-height: 1; }

/* ========================================= */
/* === 3. RECHTLICHES (Impressum/Datenschutz) === */
/* ========================================= */
.privacy-summary {
    background: #eef;
    border-left: 5px solid #446;
    padding: 20px;
    margin-bottom: 40px;
    font-size: 1.0em;
}

details {
    background: #fdfdfd;
    border: 1px solid #ddd;
    margin-bottom: 40px;
    padding: 10px 15px;
    border-left: 4px solid #8B0000;
}
summary {
    font-weight: bold;
    cursor: pointer;
    color: #333;
    outline: none;
    font-family: sans-serif;
    font-size: 0.95em;
}
summary:hover { color: #8B0000; }
details[open] summary {
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    padding-bottom: 10px;
    color: #8B0000;
}
.mission-text { font-size: 0.9em; color: #555; }

.legal-address {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 40px;
    font-family: sans-serif;
    font-size: 0.95em;
}

/* ========================================= */
/* === MOBILE OPTIMIERUNG (Final) === */
/* ========================================= */
@media (max-width: 768px) {
    #header { padding: 25px 20px; }
    #header h1 { font-size: 1.8em; }
    #menu { padding: 10px 20px; }
    #menu li { width: 100%; margin-bottom: 8px; }
    
    #page { padding: 25px 20px; width: auto; flex-direction: column; }
    #content { padding-right: 0; margin-bottom: 40px; border-bottom: 1px solid #eee; padding-bottom: 40px; }
    #sidebar { margin-top: 0; border-top: none; background: #f4f4f4; padding: 20px; }
    
    .full-page { padding: 30px 20px !important; }
    
    .resources-grid { flex-direction: column; }
}