/* ═══════════════════════════════════════════════
   Marc-Oliver Widmann · Bewerbungsportal
   Weiß / Marineblau · Modern & technisch
═══════════════════════════════════════════════ */

:root {
  --navy:      #0f2044;
  --navy-mid:  #1a3460;
  --navy-soft: #2a4a80;
  --accent:    #1a6ef5;
  --accent-lt: #e8f0fe;
  --bg:        #f7f9fc;
  --white:     #ffffff;
  --border:    #dde4f0;
  --text:      #1a2340;
  --muted:     #6b7a99;
  --sans:      'DM Sans', sans-serif;
  --mono:      'DM Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── LOGIN ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-soft) 100%);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(26,110,245,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(26,110,245,0.1) 0%, transparent 50%);
}

.login-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.login-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  animation: riseIn 0.6s cubic-bezier(.22,.68,0,1.2);
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-header { text-align: center; margin-bottom: 32px; }

.login-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #4a90e2);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: white;
  box-shadow: 0 8px 24px rgba(26,110,245,0.4);
  letter-spacing: -1px;
}

.login-name  { font-size: 22px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.login-role  { font-size: 13px; color: rgba(255,255,255,0.55); font-family: var(--mono); }

.login-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 4px 16px rgba(0,0,0,0.1);
}

.login-card h2 { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.login-card p  { font-size: 13px; color: var(--muted); margin-bottom: 28px; line-height: 1.5; }

.field-label {
  font-size: 12px; font-weight: 500;
  color: var(--navy); letter-spacing: 0.04em;
  margin-bottom: 6px; display: block;
}

.code-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.22em;
  color: var(--navy);
  outline: none;
  text-transform: uppercase;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.code-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(26,110,245,0.1);
}

.btn-enter {
  width: 100%; margin-top: 16px; padding: 14px;
  background: var(--navy); color: white;
  border: none; border-radius: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  cursor: pointer; letter-spacing: 0.02em;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-enter:hover { background: var(--navy-soft); box-shadow: 0 4px 16px rgba(15,32,68,0.25); }

.login-error {
  margin-top: 14px; padding: 11px 14px;
  background: #fff5f5; border: 1px solid #fecaca;
  border-radius: 6px; font-size: 13px; color: #b91c1c;
}

.login-foot {
  text-align: center; margin-top: 20px;
  font-size: 11px; color: rgba(255,255,255,0.3);
  font-family: var(--mono);
}

/* ── DASHBOARD ── */
.topbar {
  background: var(--navy); color: white;
  padding: 0 28px; height: 56px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 2px 12px rgba(15,32,68,0.18);
  flex-shrink: 0;
}

.topbar-name  { font-size: 15px; font-weight: 600; }
.topbar-sep   { color: rgba(255,255,255,0.2); }

.topbar-badge {
  font-family: var(--mono); font-size: 11px;
  background: rgba(26,110,245,0.3); color: #90b8ff;
  padding: 3px 10px; border-radius: 20px;
  border: 1px solid rgba(26,110,245,0.4);
}

.topbar-time { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.4); }

.topbar-logout {
  margin-left: auto; font-size: 12px;
  color: rgba(255,255,255,0.45);
  padding: 6px 12px; border-radius: 4px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.topbar-logout:hover { color: white; background: rgba(255,255,255,0.08); }

.dash-layout { display: flex; flex: 1; min-height: calc(100vh - 56px - 40px); }

.sidebar {
  width: 230px; min-width: 230px;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
}

.sidebar-section {
  font-size: 10px; font-weight: 600;
  color: var(--muted); letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px 8px; margin-top: 8px;
}

.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px; border-radius: 8px;
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  color: var(--muted);
  transition: all 0.15s;
  margin-bottom: 2px;
}

.nav-item:hover { background: var(--accent-lt); color: var(--navy); }
.nav-item.active { background: var(--accent-lt); color: var(--accent); font-weight: 600; }

.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }

.dash-main { flex: 1; padding: 36px 40px; overflow-y: auto; }

.page-eyebrow {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 6px;
}

.page-title {
  font-size: 26px; font-weight: 300; color: var(--navy);
  margin-bottom: 28px; padding-bottom: 20px;
  border-bottom: 1.5px solid var(--border);
}
.page-title strong { font-weight: 700; }

/* ── HERO ── */
.hero-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: 12px; padding: 32px;
  color: white; display: flex; gap: 24px; align-items: center;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(15,32,68,0.15);
}

.hero-initials {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; flex-shrink: 0; letter-spacing: -1px;
}

.hero-info h2  { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.hero-info .hero-role { font-size: 13px; color: rgba(255,255,255,0.65); font-family: var(--mono); margin-bottom: 10px; }
.hero-info p   { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.6; max-width: 520px; }

/* ── TAGS ── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }

.tag {
  font-size: 12px; font-weight: 500;
  padding: 5px 13px; border-radius: 20px;
  border: 1.5px solid var(--border);
  color: var(--muted); background: var(--white);
}

.tag.highlight { border-color: var(--accent); color: var(--accent); background: var(--accent-lt); }

/* ── KPI ── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px; margin-bottom: 28px;
}

.kpi {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 18px 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.kpi:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(26,110,245,0.08); }
.kpi-label { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.kpi-value { font-size: 22px; font-weight: 700; color: var(--navy); }
.kpi-value.accent { color: var(--accent); }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); border-radius: 1px; }

.tl-item {
  position: relative; margin-bottom: 20px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 20px 22px;
  transition: border-color 0.2s;
}
.tl-item:hover { border-color: var(--accent); }
.tl-item::before { content: ''; position: absolute; left: -23px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--accent); }
.tl-date  { font-family: var(--mono); font-size: 11px; color: var(--accent); font-weight: 500; margin-bottom: 5px; }
.tl-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.tl-org   { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.tl-desc  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── ZERTIFIKATE ── */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

.cert-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cert-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(26,110,245,0.1); }
.cert-badge { width: 40px; height: 40px; background: var(--accent-lt); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.cert-name   { font-size: 14px; font-weight: 700; color: var(--navy); }
.cert-issuer { font-size: 12px; color: var(--muted); }
.cert-date   { font-family: var(--mono); font-size: 11px; color: var(--accent); }

.btn-dl {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; background: var(--navy);
  color: white; border-radius: 6px;
  font-size: 12px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s; width: fit-content; margin-top: 4px;
}
.btn-dl:hover { background: var(--navy-soft); }

/* ── IDEEN ── */
.idea-grid { display: flex; flex-direction: column; gap: 18px; }
.idea-card { background: var(--white); border: 1.5px solid var(--border); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; padding: 22px 24px; transition: box-shadow 0.2s; }
.idea-card:hover { box-shadow: 0 4px 20px rgba(26,110,245,0.08); }
.idea-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.idea-text  { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ── FOOTER ── */
footer {
  background: var(--white); border-top: 1px solid var(--border);
  padding: 12px 28px; font-size: 11px; color: var(--muted);
  display: flex; justify-content: space-between;
  font-family: var(--mono); flex-shrink: 0;
}
