/* =====================================================================
   NTC Group — Onboarding-System
   Gemeinsames Stylesheet · Stand 09.06.2026
   Markenfarben (aus Logo extrahiert): Anthrazit #262523, Orange #EF7F1B
   ===================================================================== */

:root {
  --anthracite:   #262523;
  --anthracite-2: #1d1c1a;
  --anthracite-3: #312f2c;
  --orange:       #EF7F1B;
  --orange-soft:  #f59a4b;
  --white:        #ffffff;
  --paper:        #f4f2ef;
  --ink:          #201f1d;
  --muted:        #6c6862;
  --line:         #e3ddd5;
  --line-dark:    #3a3835;
  --good:         #3f9d5a;
  --warn:         #d98324;

  --radius:   14px;
  --radius-l: 22px;
  --shadow:   0 10px 30px rgba(20,18,16,.12);
  --shadow-l: 0 22px 50px rgba(20,18,16,.18);
  --maxw:     1180px;

  --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-body:    "Barlow", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typo ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; letter-spacing: .5px; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; text-transform: uppercase; margin-bottom: .6rem; }
h3 { font-size: 1.3rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
a  { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; }

.accent { color: var(--orange); }

/* ---------- Layout shell ---------- */
.layout { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 270px;
  flex: 0 0 270px;
  background: var(--anthracite);
  color: var(--white);
  padding: 22px 18px 30px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar .brand { display: block; margin-bottom: 8px; }
.sidebar .brand img { width: 100%; border-radius: 10px; }
.sidebar .brand-sub {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  color: var(--orange);
  text-align: center;
  margin-bottom: 18px;
}
.nav-group-title {
  font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: #8c877f; margin: 18px 0 6px 8px;
}
.sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  color: #d8d4cd; text-decoration: none;
  padding: 9px 12px; border-radius: 9px;
  font-size: .96rem; transition: background .15s, color .15s;
}
.sidebar nav a .ico { width: 20px; text-align: center; opacity: .9; }
.sidebar nav a:hover { background: var(--anthracite-3); color: var(--white); }
.sidebar nav a.active { background: var(--orange); color: var(--anthracite); font-weight: 600; }
.nav-user { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nav-user .nu-name { color: #fff; font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user a { color: var(--orange); font-size: .85rem; flex: 0 0 auto; }

/* ---------- Main ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: none;
  align-items: center; justify-content: space-between;
  background: var(--anthracite); color: var(--white);
  padding: 12px 16px; position: sticky; top: 0; z-index: 50;
}
.topbar img { height: 34px; border-radius: 6px; }
.burger { background: none; border: 0; color: var(--white); font-size: 1.6rem; cursor: pointer; }

.content { padding: 38px clamp(18px, 4vw, 54px) 70px; max-width: var(--maxw); width: 100%; }

/* ---------- Page hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--anthracite) 0%, var(--anthracite-2) 100%);
  color: var(--white);
  border-radius: var(--radius-l);
  padding: 34px clamp(22px, 4vw, 44px);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(239,127,27,.35), transparent 70%);
}
.page-hero .eyebrow {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 3px;
  color: var(--orange); font-size: .85rem; margin-bottom: 8px;
}
.page-hero p { color: #d8d4cd; max-width: 60ch; margin-bottom: 0; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumb a { color: var(--muted); }

/* ---------- Cards / sections ---------- */
.section { margin-bottom: 34px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.card h2:first-child, .card h3:first-child { margin-top: 0; }

/* Section heading with orange bar */
.sec-head { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; }
.sec-head::before { content: ""; width: 7px; height: 30px; background: var(--orange); border-radius: 4px; }

/* ---------- CEO video block ---------- */
.ceo-video {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--anthracite); color: var(--white);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 24px;
  border: 1px solid var(--line-dark);
}
.ceo-video .frame {
  position: relative; aspect-ratio: 16/9; background:
    repeating-linear-gradient(45deg, #232220 0 14px, #2b2926 14px 28px);
  display: flex; align-items: center; justify-content: center;
}
.ceo-video .frame .play {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--orange); color: var(--anthracite);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.ceo-video .frame .ph-tag {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(0,0,0,.55); color: #fff; font-size: .75rem;
  padding: 4px 10px; border-radius: 20px; letter-spacing: .5px;
}
.ceo-video .meta { padding: 14px 18px; }
.ceo-video .meta .who {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px;
  color: var(--orange); font-size: .8rem;
}
.ceo-video .meta h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; }
.ceo-video .meta p { color: #c8c4bd; font-size: .9rem; margin: 4px 0 0; }
.ceo-video video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
/* Frame mit echtem Video: kein Streifenmuster, schwarzer Hintergrund */
.ceo-video .frame.has-video { background: #000; }
@media (min-width: 760px) {
  .ceo-video.has-meta { grid-template-columns: 1.6fr 1fr; }
}

/* ---------- Placeholder marker ---------- */
.placeholder {
  border: 2px dashed var(--warn);
  background: #fff8ef;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.ph-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--warn); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .5px;
  padding: 3px 10px; border-radius: 20px; text-transform: uppercase;
  margin-bottom: 8px;
}
.placeholder p:last-child { margin-bottom: 0; }
.placeholder .hint { color: var(--muted); font-size: .9rem; font-style: italic; }

/* ---------- Values grid ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 16px; }
.value {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; position: relative; box-shadow: var(--shadow);
}
.value .num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  color: var(--orange); line-height: 1; opacity: .85;
}
.value h4 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.15rem; margin: 4px 0 6px; }
.value .sub { color: var(--muted); font-size: .9rem; }
.value .quote { font-style: italic; font-size: .88rem; color: var(--ink); margin-top: 8px; border-left: 3px solid var(--orange); padding-left: 10px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-left: 10px; padding-left: 26px; border-left: 3px solid var(--line); }
.tl-item { position: relative; margin-bottom: 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -34px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--orange);
  border: 3px solid var(--paper);
}
.tl-item .when { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; color: var(--orange); font-size: .95rem; }
.tl-item h4 { margin: 2px 0 4px; }

/* ---------- Contact / people ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; }
.person { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.person .role { color: var(--orange); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.person h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.1rem; margin: 2px 0 6px; }
.person .det { font-size: .9rem; color: var(--muted); }
.person .det a { color: var(--ink); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s, background .15s;
}
.checklist li:hover { border-color: var(--orange); }
.checklist li.done { background: #f1f8f3; border-color: var(--good); }
.checklist input { width: 20px; height: 20px; accent-color: var(--good); margin-top: 3px; flex: 0 0 auto; }
.checklist li.done .ck-label { text-decoration: line-through; color: var(--muted); }
.ck-label small { display: block; color: var(--muted); font-size: .82rem; text-decoration: none; }
.progress-wrap { background: #e7e2da; border-radius: 20px; height: 14px; overflow: hidden; margin: 6px 0 18px; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--orange-soft)); transition: width .4s; }
.progress-text { font-size: .9rem; color: var(--muted); margin-bottom: 4px; }

/* ---------- Tables ---------- */
table.tbl { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: .95rem; }
table.tbl th, table.tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.tbl th { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .5px; background: var(--anthracite); color: #fff; }
table.tbl tr:nth-child(even) td { background: #faf8f5; }

/* ---------- Tiles (dashboard) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 18px; }
.tile {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s, border-color .18s;
  position: relative; overflow: hidden;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); border-color: var(--orange); text-decoration: none; }
.tile .tnum { font-family: var(--font-display); font-size: 1rem; color: var(--orange); font-weight: 700; }
.tile .tico { font-size: 2rem; margin-bottom: 8px; display: block; }
.tile h3 { font-family: var(--font-display); text-transform: uppercase; margin: 4px 0 6px; }
.tile p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Buttons & misc ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: var(--anthracite); font-weight: 600;
  border: 0; border-radius: 10px; padding: 12px 20px; cursor: pointer;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px;
  text-decoration: none; transition: filter .15s;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn.ghost { background: transparent; border: 2px solid var(--orange); color: var(--orange); }

.note { background: #eef3f7; border-left: 4px solid #4a7fa6; border-radius: 8px; padding: 12px 16px; font-size: .92rem; margin-bottom: 16px; }
.note.warn { background: #fff8ef; border-color: var(--warn); }

.tag { display: inline-block; background: var(--anthracite-3); color: #fff; font-size: .75rem; padding: 3px 9px; border-radius: 6px; margin: 2px 4px 2px 0; }

ul.clean { list-style: none; }
ul.clean li { padding-left: 22px; position: relative; margin-bottom: 7px; }
ul.clean li::before { content: "›"; position: absolute; left: 4px; color: var(--orange); font-weight: 700; }

/* ---------- HR-Dashboard ---------- */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; margin-bottom: 24px; }
.metric { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.metric .mval { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--anthracite); line-height: 1; }
.metric .mlab { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }
.metric.accent .mval { color: var(--orange); }

.badge-status { display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px; }
.st-eingeladen { background: #fff1df; color: #b5650f; }
.st-aktiv { background: #e7f5ec; color: #2c7a45; }
.st-archiviert { background: #ececec; color: #6c6862; }

.mini-bar { background: #e7e2da; border-radius: 20px; height: 9px; overflow: hidden; min-width: 90px; }
.mini-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-soft)); }

.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-sm { font-size: .8rem; padding: 6px 12px; border-radius: 8px; background: var(--anthracite); color: #fff; border: 0; cursor: pointer; font-family: var(--font-body); font-weight: 600; text-decoration: none; }
.btn-sm.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-sm:hover { filter: brightness(1.1); text-decoration: none; }

input.inp, select.inp { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-family: var(--font-body); font-size: .95rem; }

.modal { position: fixed; inset: 0; background: rgba(20,18,16,.55); display: none; align-items: flex-start; justify-content: center; z-index: 200; overflow-y: auto; padding: 30px 16px; }
.modal.show { display: flex; }
.modal-card { background: var(--paper); border-radius: var(--radius-l); width: 100%; max-width: 720px; box-shadow: var(--shadow-l); }
.modal-head { background: var(--anthracite); color: #fff; padding: 20px 24px; border-radius: var(--radius-l) var(--radius-l) 0 0; display: flex; justify-content: space-between; align-items: flex-start; }
.modal-head h2 { margin: 0; }
.modal-head .x { background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.modal-body { padding: 22px 24px 28px; }

.dl-check { list-style: none; margin: 0; padding: 0; }
.dl-check li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.dl-check li .mark { width: 20px; flex: 0 0 auto; font-weight: 700; }
.dl-check li.is-done .mark { color: var(--good); }
.dl-check li.not-done { color: var(--muted); }
.dl-check li .at { margin-left: auto; font-size: .78rem; color: var(--muted); white-space: nowrap; }

/* ---------- Footer ---------- */
.foot { margin-top: auto; background: var(--anthracite); color: #b9b4ac; padding: 22px clamp(18px,4vw,54px); font-size: .85rem; }
.foot a { color: var(--orange); }
.foot .row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }

/* ---------- Page nav (prev/next) ---------- */
.pagenav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.pagenav a { flex: 1; min-width: 200px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); }
.pagenav a small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; }
.pagenav a span { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.pagenav a.next { text-align: right; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(135deg, var(--anthracite) 0%, var(--anthracite-2) 100%); }
.login-card { background: var(--white); border-radius: var(--radius-l); box-shadow: var(--shadow-l); width: 100%; max-width: 420px; padding: 34px 30px; }
.login-card .logo { width: 180px; display: block; margin: 0 auto 22px; border-radius: 10px; }
.login-card h1 { font-size: 1.7rem; text-align: center; margin-bottom: 4px; }
.login-card .sub { text-align: center; color: var(--muted); margin-bottom: 22px; font-size: .95rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 5px; }
.field input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; font-family: var(--font-body); }
.field input:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.login-card .btn { width: 100%; justify-content: center; margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 100; transform: translateX(-100%);
    transition: transform .25s; box-shadow: var(--shadow-l);
  }
  .sidebar.open { transform: translateX(0); }
  .topbar { display: flex; }
  .layout { display: block; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; display: none; }
  .scrim.show { display: block; }
}
