
:root {
    --primary: #fde047; /* Typisches RP-Yellow */
    --primary-hover: #facc15;
    --dark: #111827;
    --dark-panel: #1f2937;
    --light: #f3f4f6;
    --white: #ffffff;
    --text: #374151;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --success: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--light); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* Frontend Layout */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.logo { font-weight: 800; font-size: 1.5rem; color: var(--dark); text-transform: uppercase; letter-spacing: 1px; }

.hero { 
    background: linear-gradient(rgba(17, 24, 39, 0.75), rgba(17, 24, 39, 0.9)), url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&q=80') center/cover;
    height: 50vh; min-height: 400px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white);
}
.hero h1 { font-size: 3.5rem; margin-bottom: 15px; font-weight: 800; }
.hero p { font-size: 1.25rem; margin-bottom: 30px; font-weight: 400; color: #d1d5db; max-width: 600px; }

.btn { display: inline-block; padding: 10px 20px; font-weight: 600; border-radius: 6px; cursor: pointer; transition: all 0.2s; border: none; text-align: center; }
.btn-primary { background: var(--primary); color: var(--dark); text-transform: uppercase; font-weight: 700; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-dark { background: var(--dark-panel); color: var(--white); }
.btn-dark:hover { background: var(--dark); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: var(--danger-hover); }

/* Factions / Behörden */
.factions-section { background: var(--primary); padding: 80px 5%; text-align: center; color: var(--dark); }
.factions-section h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 10px; }
.factions-section .subtitle { max-width: 600px; margin: 0 auto 40px auto; font-size: 1.1rem; opacity: 0.9; }
.faction-boxes { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.box { 
    background: var(--white); color: var(--dark); border-radius: 8px; padding: 30px 25px; min-width: 200px;
    font-weight: 700; text-transform: uppercase; font-size: 1rem; box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease; border: 2px solid transparent;
}
.box:hover { transform: translateY(-5px); border-color: var(--dark); box-shadow: 0 10px 15px rgba(0,0,0,0.1); }

/* Scripts Grid */
.scripts-section { padding: 80px 5%; background: var(--light); text-align: center; }
.scripts-section h2 { font-size: 2.5rem; margin-bottom: 50px; font-weight: 800; color: var(--dark); }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.script-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); text-align: left; transition: transform 0.3s; display: flex; flex-direction: column; }
.script-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
.card-img { height: 200px; background-color: #ddd; background-size: cover; background-position: center; }
.card-info { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.card-info .badge { display: inline-block; background: var(--light); padding: 5px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin-bottom: 15px; width: fit-content; }
.card-info h3 { font-size: 1.3rem; margin-bottom: 10px; font-weight: 800; color: var(--dark); }
.card-info .desc { font-size: 0.95rem; color: var(--text); margin-bottom: 25px; flex-grow: 1; }
.learn-more { color: var(--dark); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; border-bottom: 2px solid var(--primary); padding-bottom: 2px; align-self: flex-start; }

/* Admin Dashboard Layout */
.admin-layout { display: flex; min-height: 100vh; background: #f3f4f6; }
.sidebar { width: 280px; background: var(--dark-panel); color: var(--white); display: flex; flex-direction: column; }
.sidebar-header { padding: 25px 20px; font-size: 1.5rem; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,0.1); text-align: center; color: var(--primary); }
.sidebar-nav { flex: 1; padding: 20px 0; }
.sidebar-nav a { display: block; padding: 15px 25px; color: #d1d5db; font-weight: 500; border-left: 4px solid transparent; transition: all 0.2s; }
.sidebar-nav a:hover { background: rgba(255,255,255,0.05); color: var(--white); border-left-color: var(--primary); }
.sidebar-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); }

.admin-main { flex: 1; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.admin-topbar { background: var(--white); padding: 20px 30px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.admin-content { flex: 1; padding: 30px; overflow-y: auto; }

.admin-card { background: var(--white); padding: 30px; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 30px; }
.admin-card h3 { margin-bottom: 25px; font-size: 1.25rem; color: var(--dark); border-bottom: 2px solid var(--light); padding-bottom: 15px; display: flex; align-items: center; gap: 10px; }

/* Forms & Tables */
.form-row { display: flex; gap: 20px; margin-bottom: 15px; flex-wrap: wrap; }
.form-group { flex: 1; min-width: 250px; margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text); font-size: 0.9rem; }
.form-control { width: 100%; padding: 12px 15px; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; transition: border-color 0.2s; background: #f9fafb; }
.form-control:focus { outline: none; border-color: var(--dark); background: var(--white); box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.05); }

.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.table th, .table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { background: var(--light); font-weight: 600; color: var(--text); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; }
.table tr:hover { background: #f9fafb; }

.status-badge { padding: 5px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; }
.status-active { background: #d1fae5; color: #065f46; }
.status-inactive { background: #fee2e2; color: #991b1b; }

.alert { padding: 15px 20px; border-radius: 6px; margin-bottom: 25px; font-weight: 500; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Login */
.auth-wrapper { display: flex; min-height: 100vh; align-items: center; justify-content: center; background: var(--dark-panel); }
.auth-card { background: var(--white); padding: 40px; width: 100%; max-width: 420px; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); text-align: center; }
.auth-card h2 { margin-bottom: 30px; font-size: 2rem; color: var(--dark); font-weight: 800; }

footer { text-align: center; padding: 30px; background: var(--white); color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid var(--border); }
