/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; background: #f4f4f4; color: #222; min-height: 100vh; }
a { text-decoration: none; color: inherit; }

/* ===== TOPBAR ===== */
.topbar {
  background: #1e2344; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; position: fixed; top: 0; left: 0; right: 0; z-index: 100;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-logo { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.topbar-divider { color: rgba(255,255,255,.2); }
.topbar-sub { color: rgba(255,255,255,.4); font-size: 12px; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-nav { display: flex; gap: 4px; }
.topbar-nav a {
  color: rgba(255,255,255,.55); font-size: 13px; padding: 6px 12px;
  border-radius: 6px; transition: all .15s;
}
.topbar-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.topbar-nav a.active { background: rgba(254,204,0,.15); color: #fecc00; }
.topbar-logout { color: rgba(255,255,255,.35); font-size: 12px; cursor: pointer; }
.topbar-logout:hover { color: rgba(255,255,255,.7); }

/* ===== PAGE WRAPPER ===== */
.page { padding-top: 60px; min-height: 100vh; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1e2344 0%, #2a3060 100%);
  padding: 36px 32px 32px; color: #fff;
}
.hero-date { font-size: 11px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.hero-sub { color: rgba(255,255,255,.45); font-size: 13px; }
.hero-stats { display: flex; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.stat { background: rgba(255,255,255,.08); border-radius: 8px; padding: 12px 18px; }
.stat-num { font-size: 20px; font-weight: 700; color: #fecc00; }
.stat-label { font-size: 10px; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: #fff; padding: 20px 32px;
  border-bottom: 1px solid #e8e8e8;
  display: flex; align-items: center; justify-content: space-between;
}
.page-header h1 { font-size: 18px; font-weight: 700; color: #1e2344; }
.page-header-actions { display: flex; gap: 10px; align-items: center; }

/* ===== MAIN CONTENT ===== */
.main { padding: 28px 32px; }
.section-label { font-size: 11px; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }

/* ===== MODULES GRID (Dashboard) ===== */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 32px; }
.module-card {
  background: #fff; border-radius: 12px; padding: 22px 20px;
  border: 1.5px solid #ebebeb; cursor: pointer; transition: all .15s; display: block;
}
.module-card:hover { border-color: #1e2344; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(30,35,68,.1); }
.module-card.accent { border-color: #fecc00; background: #fffdf0; }
.module-icon { font-size: 24px; margin-bottom: 12px; display: block; }
.module-name { font-size: 13px; font-weight: 700; color: #1e2344; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.module-desc { font-size: 12px; color: #999; line-height: 1.4; }
.module-count { display: inline-block; margin-top: 10px; background: #f0f0f0; color: #666; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 20px; }
.module-count.yellow { background: #fecc00; color: #1e2344; }

/* ===== TWO COL ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* ===== CARD ===== */
.card { background: #fff; border-radius: 10px; padding: 20px 22px; border: 1px solid #ebebeb; }
.card-title { font-size: 12px; font-weight: 700; color: #1e2344; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }

/* ===== TABLE ===== */
.table-wrap { background: #fff; border-radius: 10px; border: 1px solid #ebebeb; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { background: #f8f8f8; padding: 11px 16px; text-align: left; font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid #ebebeb; }
td { padding: 12px 16px; border-bottom: 1px solid #f2f2f2; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafafa; }

/* ===== BADGES ===== */
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.badge-video  { background: #e8f4fd; color: #0a558c; }
.badge-info   { background: #e8f5e9; color: #1b5e20; }
.badge-slide  { background: #fff3e0; color: #e65100; }
.badge-offen  { background: #fff3cd; color: #856404; }
.badge-arbeit { background: #cfe2ff; color: #084298; }
.badge-fertig { background: #d1e7dd; color: #0a3622; }
.badge-geplant { background: #f0f0f0; color: #666; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all .15s; }
.btn-primary { background: #1e2344; color: #fff; }
.btn-primary:hover { background: #2a3060; }
.btn-yellow { background: #fecc00; color: #1e2344; }
.btn-yellow:hover { background: #f0c000; }
.btn-outline { background: #fff; color: #1e2344; border: 1.5px solid #ddd; }
.btn-outline:hover { border-color: #1e2344; }
.btn-danger { background: #fff0f0; color: #c0392b; border: 1.5px solid #fcc; }
.btn-danger:hover { background: #ffe0e0; }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-icon { padding: 6px 8px; }

/* ===== FORM ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-grid.cols-1 { grid-template-columns: 1fr; }
@media (max-width: 640px) { .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 12px; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: .4px; }
input, select, textarea {
  padding: 9px 12px; border: 1.5px solid #ddd; border-radius: 7px;
  font-size: 13.5px; font-family: inherit; background: #fff;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #1e2344; }
textarea { resize: vertical; min-height: 80px; }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 12px; padding: 28px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.modal-title { font-size: 16px; font-weight: 700; color: #1e2344; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: #999; line-height: 1; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* ===== LOGIN ===== */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #1e2344; }
.login-box { background: #fff; border-radius: 14px; padding: 40px 36px; width: 100%; max-width: 380px; }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .app-name { font-size: 20px; font-weight: 700; color: #1e2344; text-transform: uppercase; letter-spacing: 1px; }
.login-logo .app-sub { font-size: 12px; color: #aaa; margin-top: 4px; }
.login-box h2 { font-size: 15px; font-weight: 700; color: #1e2344; margin-bottom: 20px; }
.login-error { background: #fff0f0; color: #c0392b; border-radius: 7px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }

/* ===== CI HUB ===== */
.brand-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.brand-tab { padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all .15s; background: #fff; color: #666; border-color: #e0e0e0; }
.brand-tab.active { background: #1e2344; color: #fff; border-color: #1e2344; }
.brand-section { display: none; }
.brand-section.active { display: block; }
.color-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.color-chip { border-radius: 10px; overflow: hidden; border: 1px solid #e0e0e0; width: 120px; }
.color-swatch { height: 60px; }
.color-info { padding: 8px 10px; background: #fff; }
.color-name { font-size: 12px; font-weight: 600; color: #333; }
.color-hex { font-size: 11px; color: #999; font-family: monospace; }
.typo-sample { font-size: 24px; font-weight: 700; color: #1e2344; text-transform: uppercase; margin-bottom: 6px; }
.ci-section { margin-bottom: 28px; }
.ci-section h3 { font-size: 12px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; }

/* ===== PASSWORT SHOW ===== */
.pw-hidden { font-family: monospace; color: #bbb; letter-spacing: 2px; }
.pw-visible { font-family: monospace; color: #1e2344; }

/* ===== UTILS ===== */
.text-muted { color: #aaa; font-size: 12px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.empty-state { text-align: center; padding: 48px; color: #bbb; }
.empty-state-icon { font-size: 36px; margin-bottom: 12px; }
.empty-state-text { font-size: 14px; }
