/* style.css - Koinon Symmachie Final */

:root {
    --glass-bg: rgba(15, 15, 18, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --blur-content: 10px;
    --bg-image: url('hintergrund.jpg');
    --bg-blur: 8px;
    --accent: #c0392b;
    --accent-hover: #e74c3c;
    --accent-glow: 0 0 15px rgba(192, 57, 43, 0.6);
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
}

body {
    background-color: #050505;
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    margin: 0; padding-bottom: 50px; min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    z-index: -1;
    background-image:
    radial-gradient(circle at top center, rgba(60, 20, 20, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%),
    var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(var(--bg-blur));
}

h1, h2, h3, .nav-links a, .btn, .dropbtn, .accordion, .logo {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* NAV */
nav {
    background: rgba(5, 5, 5, 0.9);
    border-bottom: 2px solid var(--accent);
    position: sticky; top: 0; z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.8);
    height: 70px;
}
nav .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }

.logo {
    font-size: 1.8rem; color: var(--accent); text-decoration: none;
    text-shadow: var(--accent-glow); display: flex; align-items: center;
    height: 100%; font-weight: 700; transition: 0.3s; padding: 5px 0;
}
.logo:hover { color: #fff; text-shadow: 0 0 20px var(--accent); }

.nav-links { display: flex; height: 100%; }
.nav-links a, .dropbtn { color: #bbb; text-decoration: none; margin-left: 20px; font-size: 0.9em; height: 100%; display: flex; align-items: center; background: none; border: none; cursor: pointer; transition: 0.3s; }
.nav-links a:hover, .dropdown:hover .dropbtn { color: var(--accent); text-shadow: var(--accent-glow); }

.dropdown { position: relative; display: flex; align-items: center; height: 100%; margin-left: 20px; }
.dropdown-content { display: none; position: absolute; background-color: rgba(10,10,10,0.95); min-width: 220px; box-shadow: 0 10px 20px rgba(0,0,0,0.9); top: 70px; left: 0; border: 1px solid #333; border-top: 2px solid var(--accent); z-index: 1001; }
.dropdown-content a { padding: 12px 16px; display: block; margin: 0; color: #ccc; border-bottom: 1px solid #222; font-size: 0.85em; }
.dropdown-content a:hover { background: #222; color: var(--accent); padding-left: 20px; }
.dropdown:hover .dropdown-content { display: block; }

/* LAYOUT GRID */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.portal-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
.content-area { min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
@media (max-width: 900px) { .portal-layout { grid-template-columns: 1fr; } }

/* UI ELEMENTE */
.card { background: var(--glass-bg); border: var(--glass-border); border-top: 2px solid rgba(255,255,255,0.1); border-radius: 3px; padding: 25px; margin-bottom: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); backdrop-filter: blur(var(--blur-content)); }
.btn { background: var(--accent); color: #fff; padding: 10px 20px; text-decoration: none; font-weight: bold; border: none; cursor: pointer; font-size: 0.85em; transition: 0.2s; display:inline-block; border-radius: 2px; }
.btn:hover { background: var(--accent-hover); box-shadow: 0 0 15px var(--accent); }
.btn-danger { background: #7f1d1d; color: white; } .btn-danger:hover { background: var(--danger); }
.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); } .btn-outline:hover { background: var(--accent); color: #fff; }

input, select, textarea { width: 100%; padding: 12px; background: rgba(0,0,0,0.3); border: 1px solid #444; color: white; margin-bottom: 15px; box-sizing: border-box; font-family: 'Roboto', sans-serif; border-radius: 3px; }
input:focus { border-color: var(--accent); outline: none; background: rgba(0,0,0,0.5); }
label { display: block; color: var(--text-muted); margin-bottom: 6px; font-size: 0.85em; margin-top: 15px; font-weight: bold; text-transform: uppercase; }
label:first-child { margin-top: 0; }

.news-hero { position: relative; width: 100%; overflow: hidden; border: 1px solid #333; margin-bottom: 15px; border-radius: 2px; }
.news-hero img { width: 100%; height: auto; max-height: 400px; object-fit: cover; display: block; }
.news-hero-title { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px 20px 20px 20px; box-sizing: border-box; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%); color: #fff; margin: 0; font-size: 1.8em; text-shadow: 2px 2px 4px #000, 0 0 15px #000; z-index: 2; }

.badge { padding: 3px 6px; font-size: 0.7em; background: #222; border: 1px solid #444; color: #aaa; text-transform: uppercase; }
.badge-admin { background: var(--accent); color: white; border: none; }
.meta { color: var(--text-muted); font-size: 0.85em; margin-bottom: 15px; border-left: 2px solid var(--accent); padding-left: 10px; font-family: 'Roboto', sans-serif; }
.editor-container { height: 350px; background: #ddd; color: #000; margin-bottom: 20px; border-radius: 2px; }

table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.9em; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.1); }
th { color: var(--accent); text-transform: uppercase; border-bottom: 2px solid var(--accent); font-size: 0.8em; letter-spacing: 1px; }
tr:hover { background: rgba(255,255,255,0.05); }

.accordion { background-color: transparent; color: var(--text-main); cursor: pointer; padding: 15px; width: 100%; border: none; text-align: left; outline: none; font-size: 1em; transition: 0.4s; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; }
.accordion:hover, .accordion.active { color: var(--accent); background: rgba(255, 255, 255, 0.05); }
.accordion:after { content: '\002B'; color: var(--accent); font-weight: bold; float: right; margin-left: 5px; }
.accordion.active:after { content: "\2212"; }
.panel { padding: 0; background-color: rgba(0,0,0,0.3); max-height: 0; overflow: hidden; transition: max-height 0.2s ease-out; border-bottom: 1px solid rgba(255,255,255,0.1); }
.panel a { display: block; padding: 10px 15px 10px 30px; text-decoration: none; color: #aaa; font-size: 0.9em; border-bottom: 1px solid rgba(255,255,255,0.05); transition: 0.2s; }
.panel a:hover { color: white; padding-left: 35px; background: rgba(192, 57, 43, 0.1); border-left: 3px solid var(--accent); }
.panel a:last-child { border-bottom: none; }

.filter-bar { display: flex; gap: 10px; align-items: center; padding: 15px; flex-wrap: wrap; border-left: 3px solid var(--accent); }
.filter-bar input, .filter-bar select { margin-bottom: 0; flex: 1; min-width: 150px; background: rgba(0,0,0,0.3); }
.filter-bar button { margin-bottom: 0; }

/* NEWS EXPANDER & ADMIN LINKS */
.news-content {
    display: block;
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}
.news-content.collapsed {
    max-height: 250px !important;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.read-more-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent) !important;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
}
.read-more-link:hover { color: #fff !important; text-decoration: underline; }

/* Unauffällige Admin Links */
.admin-link {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 5px;
    transition: 0.2s;
}
.admin-link:hover {
    color: #fff;
    text-decoration: underline;
}
