/* ====================================================
   BGM-Inventur — Drehmoment Gesundheitskonzepte
   CI-konformes Design
   ==================================================== */

/* === CI-FARBEN === */
:root {
  --petrol:       #264653;
  --mid-blue:     #467480;
  --light-steel:  #83C5BE;
  --copper:       #D47B54;
  --neutral:      #C1C1BE;
  --bg-warm:      #F9F7F3;
  --text-dark:    #1D3640;
  --text-light:   #F9F7F3;

  --stufe-1: #1A7A4A;
  --stufe-2: #2E86AB;
  --stufe-3: #B7950B;
  --stufe-4: #CA6F1E;
  --stufe-5: #C0392B;

  --radius:    6px;
  --radius-lg: 12px;
  --shadow:    0 2px 12px rgba(38,70,83,.10);
  --shadow-lg: 0 4px 24px rgba(38,70,83,.15);
}

/* === RESET & BASIS === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  background: var(--bg-warm);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--copper); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* === TYPOGRAPHY === */
h1 { font-size: 2rem; font-weight: 600; line-height: 1.25; color: var(--petrol); }
h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; color: var(--petrol); }
h3 { font-size: 1.2rem; font-weight: 600; color: var(--petrol); }
h4 { font-size: 1rem; font-weight: 600; color: var(--mid-blue); }

.lead { font-size: 1.1rem; font-weight: 300; color: var(--mid-blue); }

/* === CONTAINER === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  line-height: 1; text-align: center;
  cursor: pointer; border: none; transition: all .2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary  { background: var(--copper); color: #fff; }
.btn-primary:hover { background: #c06845; }

.btn-secondary { background: var(--petrol); color: var(--text-light); }
.btn-secondary:hover { background: var(--mid-blue); }

.btn-outline { background: transparent; border: 2px solid var(--petrol); color: var(--petrol); }
.btn-outline:hover { background: var(--petrol); color: var(--text-light); }

.btn-ghost-header { background: rgba(255,255,255,.15); color: var(--text-light); font-weight: 400; padding: 8px 16px; }
.btn-ghost-header:hover { background: rgba(255,255,255,.25); }

.btn-full   { width: 100%; }
.btn-large  { padding: 16px 32px; font-size: 1.05rem; }

/* === HEADER === */
.site-header {
  background: var(--petrol);
  padding: 14px 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.site-header .container {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.logo-img { height: 36px; width: auto; }
.logo-text { color: var(--text-light); font-weight: 600; font-size: 1.1rem; }
.header-label { color: var(--light-steel); font-size: .9rem; margin-left: auto; }

/* === FOOTER === */
.site-footer {
  background: var(--petrol); color: var(--light-steel);
  padding: 24px 0; margin-top: 64px; font-size: .85rem;
}
.site-footer a { color: var(--light-steel); }
.site-footer a:hover { color: #fff; }

/* === ALERTS === */
.alert {
  padding: 14px 18px; border-radius: var(--radius);
  margin-bottom: 20px; font-size: .95rem;
}
.alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }

/* ====================================================
   ZUGANG / LOGIN
   ==================================================== */
.page-zugang { min-height: 100vh; display: flex; flex-direction: column; }

.zugang-wrap { flex: 1; max-width: 1000px; margin: 0 auto; width: 100%; }

.zugang-header {
  background: var(--petrol);
  padding: 32px 40px;
  display: flex; align-items: center; gap: 16px;
}

.zugang-body {
  display: flex; gap: 48px; padding: 48px 40px;
  flex-wrap: wrap;
}

.zugang-card {
  flex: 1; min-width: 280px; max-width: 440px;
}
.zugang-card h1 { margin-bottom: 8px; }
.zugang-card .lead { margin-bottom: 24px; }

.code-form { margin-top: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--petrol); }

.code-input {
  width: 100%; padding: 14px 16px;
  border: 2px solid var(--neutral); border-radius: var(--radius);
  font-size: 1rem; font-family: monospace; letter-spacing: 2px;
  background: #fff; color: var(--text-dark);
  transition: border-color .2s;
}
.code-input:focus { outline: none; border-color: var(--petrol); }

.zugang-hinweis { margin-top: 20px; font-size: .9rem; color: #666; }

.zugang-info { flex: 1; min-width: 250px; }
.zugang-info h2 { margin-bottom: 16px; }

.feature-list { list-style: none; margin-bottom: 20px; }
.feature-list li { padding: 8px 0; border-bottom: 1px solid var(--neutral); display: flex; gap: 12px; }
.feature-icon { color: var(--copper); font-weight: 600; }

.info-note {
  background: #fff; border-left: 3px solid var(--copper);
  padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9rem; color: var(--mid-blue);
}

/* ====================================================
   VORBEREITUNG
   ==================================================== */
.page-vorbereitung .main-content { padding: 48px 0; }

.page-intro { margin-bottom: 40px; }
.page-intro h1 { margin-bottom: 12px; }

.datenpunkte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.datenpunkt-card {
  background: #fff; border: 1px solid var(--neutral);
  border-radius: var(--radius-lg); padding: 20px;
  display: flex; gap: 14px;
}
.dp-icon { font-size: 1.8rem; flex-shrink: 0; }
.dp-content h3 { font-size: 1rem; margin-bottom: 6px; }
.dp-content p { font-size: .9rem; color: #555; margin-bottom: 8px; }
.dp-benchmark { font-size: .8rem; color: var(--mid-blue); background: rgba(70,116,128,.1); padding: 3px 8px; border-radius: 3px; }

.vorbereitung-hinweis {
  background: #fff; border: 1px solid var(--neutral);
  border-radius: var(--radius); padding: 20px;
  margin-bottom: 40px; font-size: .9rem; color: #555;
}

.vorbereitung-start { text-align: center; padding: 32px 0; }
.time-estimate { margin-top: 12px; font-size: .9rem; color: #888; }

/* ====================================================
   ASSESSMENT
   ==================================================== */
.page-assessment .main-content { padding: 32px 0 64px; }

.assessment-header .container { align-items: center; }
.progress-header { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 200px; }
.progress-label { font-size: .8rem; color: var(--light-steel); }
.progress-bar-wrap { width: 200px; height: 6px; background: rgba(255,255,255,.2); border-radius: 3px; }
.progress-bar { height: 6px; background: var(--copper); border-radius: 3px; transition: width .4s ease; }

/* Kategorie-Sektionen */
.category-section { animation: fadeIn .3s ease; }
.category-section.hidden { display: none; }

@keyframes fadeIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform:none; } }

.category-header {
  display: flex; align-items: flex-start; gap: 20px;
  background: var(--petrol); color: var(--text-light);
  padding: 28px 32px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-bottom: 0;
}
.cat-number {
  font-size: 3rem; font-weight: 200; opacity: .5; line-height: 1;
  flex-shrink: 0;
}
.category-header h2 { color: var(--text-light); margin-bottom: 4px; }
.cat-desc { color: var(--light-steel); font-size: .95rem; }

/* Fragen-Blöcke */
.question-block {
  background: #fff; border: 1px solid #e8e6e2;
  padding: 24px 28px; margin-bottom: 2px;
}
.question-block:last-of-type { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.question-knockdown { border-left: 4px solid var(--copper); }
.question-context   { border-left: 4px solid var(--neutral); background: #fafaf8; }
.question-conditional { background: #f8fafc; border-left: 4px solid var(--light-steel); }

.question-text {
  font-size: .95rem; font-weight: 400; margin-bottom: 14px; color: var(--text-dark);
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.q-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; background: var(--petrol); color: #fff;
  border-radius: 50%; font-size: .8rem; font-weight: 600; flex-shrink: 0;
}
.badge-knockdown {
  font-size: .72rem; font-weight: 600; background: var(--copper); color: #fff;
  padding: 2px 8px; border-radius: 3px; white-space: nowrap;
}
.badge-context {
  font-size: .72rem; font-weight: 600; background: var(--neutral); color: var(--text-dark);
  padding: 2px 8px; border-radius: 3px;
}

/* Radio / Checkbox Optionen */
.options { display: flex; flex-direction: column; gap: 8px; }
.options-multi { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.options-inline { display: flex; gap: 16px; flex-wrap: wrap; }

.option {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius);
  border: 1.5px solid #e0ddd8; background: #fafaf8;
  cursor: pointer; transition: all .15s; font-size: .9rem;
}
.option:hover { border-color: var(--mid-blue); background: #f0f8f9; }
.option input[type="radio"]:checked + span,
.option input[type="checkbox"]:checked + span { color: var(--petrol); font-weight: 600; }
.option:has(input:checked) { border-color: var(--petrol); background: rgba(38,70,83,.05); }
.option input { margin-top: 2px; flex-shrink: 0; accent-color: var(--petrol); }

/* Numerische Inputs */
.numeric-input-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.numeric-input {
  padding: 10px 14px; border: 1.5px solid var(--neutral); border-radius: var(--radius);
  font-size: .95rem; width: 140px; font-family: inherit;
  transition: border-color .2s;
}
.numeric-input:focus { outline: none; border-color: var(--petrol); }
.numeric-input:disabled { background: #f0f0ee; color: #999; }
.unknown-label { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; color: #666; }
.unknown-label input { accent-color: var(--mid-blue); }

/* Bedingte Folgefragen */
.followup-question {
  margin-top: 16px; padding: 16px; background: rgba(131,197,190,.1);
  border-radius: var(--radius); border: 1px solid var(--light-steel);
}
.followup-question.hidden { display: none; }
.followup-text { font-size: .9rem; font-weight: 600; margin-bottom: 10px; color: var(--mid-blue); }

/* Kategorie-Navigation */
.cat-nav { padding: 24px 0 0; display: flex; justify-content: flex-end; }
.cat-nav-both { justify-content: space-between; }

/* ====================================================
   AUSWERTUNG
   ==================================================== */
.page-auswertung .main-content { padding: 0 0 64px; }

/* Hero */
.auswertung-hero {
  padding: 48px 0;
  background: var(--petrol);
  color: var(--text-light);
  margin-bottom: 48px;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 40px; align-items: center; flex-wrap: wrap;
}
.hero-score { flex-shrink: 0; }
.score-circle {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 5px solid var(--level-color, var(--copper));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.05);
}
.score-number { font-size: 2.2rem; font-weight: 600; line-height: 1; color: #fff; }
.score-max { font-size: .8rem; color: rgba(255,255,255,.6); }
.hero-text { flex: 1; }
.company-name { color: var(--light-steel); font-size: .9rem; margin-bottom: 8px; }
.hero-text h1 { color: #fff; margin-bottom: 12px; font-size: 1.8rem; }
.hero-summary { font-size: .95rem; color: rgba(255,255,255,.85); max-width: 640px; }

/* Ampel */
.ampel-section { margin-bottom: 48px; }
.ampel-section h2 { margin-bottom: 20px; }
.ampel-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
}
.ampel-card {
  background: #fff; border: 1px solid var(--neutral);
  border-radius: var(--radius-lg); padding: 18px;
  text-align: center;
}
.ampel-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 6px; }
.ampel-cat { font-size: .78rem; font-weight: 600; color: var(--petrol); text-align: left; }
.ampel-badge { font-size: .72rem; font-weight: 600; color: #fff; padding: 3px 8px; border-radius: 3px; white-space: nowrap; }
.ampel-bar-wrap { height: 8px; background: #eee; border-radius: 4px; margin-bottom: 8px; overflow: hidden; }
.ampel-bar { height: 100%; border-radius: 4px; transition: width .6s ease; }
.ampel-score { font-size: .8rem; color: #888; }
.knockdown-flag { font-size: .7rem; color: var(--copper); display: block; margin-top: 6px; font-weight: 600; }

/* Großer CTA */
.cta-block-major {
  background: var(--petrol); color: var(--text-light);
  border-radius: var(--radius-lg); padding: 40px;
  margin-bottom: 48px;
}
.cta-major-inner { max-width: 700px; }
.cta-block-major h3 { color: var(--text-light); margin-bottom: 12px; font-size: 1.3rem; }
.cta-block-major p { color: rgba(255,255,255,.85); margin-bottom: 14px; }
.cta-subtext { font-size: .85rem; color: var(--light-steel); margin-top: 12px !important; }

/* Knock-downs */
.knockdown-section { margin-bottom: 48px; }
.knockdown-section h2 { margin-bottom: 16px; }
.knockdown-list { display: flex; flex-direction: column; gap: 12px; }
.knockdown-card {
  display: flex; gap: 16px;
  background: #fff5f0; border: 1px solid #f8c8b0;
  border-radius: var(--radius); padding: 18px;
}
.knockdown-icon { font-size: 1.4rem; flex-shrink: 0; }
.knockdown-text p { font-size: .9rem; }

/* Kategorie-Detailauswertungen */
.kategorien-section { margin-bottom: 48px; }
.kategorien-section h2 { margin-bottom: 8px; }
.section-intro { color: var(--mid-blue); font-size: .9rem; margin-bottom: 24px; }

.kategorie-detail {
  background: #fff; border: 1px solid var(--neutral);
  border-radius: var(--radius-lg); margin-bottom: 16px;
  overflow: hidden;
}
.kd-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid #eee;
  background: #fafaf8;
}
.kd-title-wrap { display: flex; align-items: center; gap: 12px; }
.kd-title-wrap h3 { margin: 0; }
.kd-badge { font-size: .75rem; font-weight: 600; color: #fff; padding: 4px 10px; border-radius: 3px; }
.kd-score-mini { font-size: .9rem; font-weight: 600; color: var(--mid-blue); }

.kd-body { padding: 24px; }
.kd-block { margin-bottom: 20px; }
.kd-block h4 { margin-bottom: 6px; }
.kd-block p { font-size: .9rem; }

.impulse-list { list-style: none; padding: 0; margin: 0; }
.impulse-list li {
  padding: 7px 0 7px 20px; position: relative;
  font-size: .9rem; border-bottom: 1px solid #f0eee9;
}
.impulse-list li::before { content: '→'; position: absolute; left: 0; color: var(--copper); font-weight: 600; }

.kd-cta {
  padding: 14px 24px; border-top: 1px solid #eee; background: #fffaf7;
}
.cta-link-small { font-size: .85rem; color: var(--copper); font-weight: 600; }

/* Kontext */
.kontext-section { margin-bottom: 48px; }
.kontext-section h2 { margin-bottom: 16px; }
.kontext-list { display: flex; flex-direction: column; gap: 10px; }
.kontext-card {
  background: rgba(131,197,190,.1); border: 1px solid var(--light-steel);
  border-radius: var(--radius); padding: 16px; font-size: .9rem;
}

/* Seminar-CTA */
.seminar-cta-section {
  background: var(--bg-warm); border: 1px solid var(--neutral);
  border-radius: var(--radius-lg); padding: 32px;
  margin-bottom: 32px;
}
.seminar-cta-inner { text-align: center; max-width: 600px; margin: 0 auto; }
.seminar-cta-inner h3 { margin-bottom: 10px; }
.seminar-cta-inner p { margin-bottom: 20px; color: var(--mid-blue); }

.auswertung-datum { text-align: center; font-size: .8rem; color: #aaa; margin-top: 32px; }

/* Stufen-Farb-Klassen */
.stufe-1 { --stufen-color: var(--stufe-1); }
.stufe-2 { --stufen-color: var(--stufe-2); }
.stufe-3 { --stufen-color: var(--stufe-3); }
.stufe-4 { --stufen-color: var(--stufe-4); }
.stufe-5 { --stufen-color: var(--stufe-5); }

/* ====================================================
   SEMINAR
   ==================================================== */
.page-seminar .main-content { padding: 40px 0 64px; }

.seminar-hero { text-align: center; padding: 0 0 40px; }
.seminar-hero h1 { margin-bottom: 12px; }
.seminar-hero .lead { margin-bottom: 24px; }

.seminar-progress-bar { max-width: 480px; margin: 0 auto 8px; height: 8px; background: var(--neutral); border-radius: 4px; overflow: hidden; }
.sp-inner { height: 100%; background: var(--copper); transition: width .5s; }
.sp-label { font-size: .85rem; color: var(--mid-blue); }

.abschnitt-section { margin-bottom: 48px; }
.abschnitt-header {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 2px solid var(--petrol);
}
.abschnitt-num { font-size: .8rem; font-weight: 600; color: var(--copper); text-transform: uppercase; letter-spacing: 1px; }
.abschnitt-header h2 { margin: 0; }

.lektionen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }

.lektion-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1.5px solid var(--neutral);
  border-radius: var(--radius-lg); padding: 18px;
  color: var(--text-dark); transition: all .2s;
  position: relative;
}
.lektion-card:hover { border-color: var(--mid-blue); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.lektion-card.viewed { border-color: var(--light-steel); background: rgba(131,197,190,.08); }

.lk-num {
  width: 32px; height: 32px; background: var(--petrol); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 600; flex-shrink: 0;
}
.lektion-card.viewed .lk-num { background: var(--light-steel); }

.lk-body { flex: 1; min-width: 0; }
.lk-body h3 { font-size: .95rem; margin-bottom: 4px; }
.lk-these { font-size: .8rem; color: #888; font-style: italic; }
.lk-check { position: absolute; top: 14px; right: 14px; color: var(--stufe-1); font-weight: 600; }

/* Einzelne Lektion */
.lektion-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.back-link { color: var(--mid-blue); font-size: .9rem; }
.lektion-progress { font-size: .85rem; color: #888; }

.lektion-article {
  background: #fff; border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow); margin-bottom: 32px;
}

.lektion-meta {
  display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.lektion-abschnitt, .lektion-num {
  font-size: .8rem; font-weight: 600; padding: 3px 10px;
  border-radius: 3px;
}
.lektion-abschnitt { background: rgba(38,70,83,.1); color: var(--petrol); }
.lektion-num { background: var(--copper); color: #fff; }

.lektion-article h1 { margin-bottom: 20px; }

.lektion-these {
  border-left: 4px solid var(--copper); padding: 14px 20px;
  background: #fff8f5; border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 32px;
}
.lektion-these blockquote { font-size: 1.05rem; font-style: italic; color: var(--petrol); font-weight: 300; }

.lektion-inhalt p { margin-bottom: 20px; line-height: 1.8; font-size: .95rem; }
.lektion-inhalt p:last-child { margin-bottom: 0; }

.lektion-nav-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; }

/* ====================================================
   ADMIN
   ==================================================== */
.page-admin body { background: #f0f0ee; }
.admin-header {
  background: #1a3040; color: #fff;
  padding: 12px 0;
}
.admin-header .container { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.admin-title { font-weight: 600; font-size: 1.1rem; color: #fff; margin-right: auto; }
.admin-nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.admin-nav a { color: rgba(255,255,255,.8); font-size: .9rem; }
.admin-nav a:hover { color: #fff; }
.admin-nav a.active { color: var(--light-steel); font-weight: 600; }
.admin-logout { color: rgba(255,255,255,.5) !important; font-size: .85rem !important; }
.btn-export { background: var(--copper); color: #fff !important; padding: 6px 14px; border-radius: 4px; font-size: .85rem !important; }

.admin-main { padding: 32px 24px; }

.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
  margin-bottom: 32px;
}
.stat-card { background: #fff; border-radius: var(--radius); padding: 16px; text-align: center; border: 1px solid var(--neutral); }
.stat-val { display: block; font-size: 2rem; font-weight: 600; color: var(--petrol); }
.stat-label { font-size: .8rem; color: #888; }

.admin-section { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.admin-section h2 { margin-bottom: 20px; }

.admin-toolbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.search-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-input { padding: 9px 14px; border: 1.5px solid var(--neutral); border-radius: var(--radius); font-size: .9rem; width: 260px; }

.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.admin-form .form-input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--neutral); border-radius: var(--radius); font-size: .9rem; font-family: inherit; }
.admin-form .form-input:focus { outline: none; border-color: var(--petrol); }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; }

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th { background: #f5f4f1; padding: 10px 14px; text-align: left; font-weight: 600; border-bottom: 2px solid var(--neutral); white-space: nowrap; }
.admin-table td { padding: 10px 14px; border-bottom: 1px solid #eee; vertical-align: top; }
.admin-table tr:hover td { background: #fafaf8; }
.admin-table code { font-size: .82rem; background: #f0eee8; padding: 2px 6px; border-radius: 3px; }
.expired { color: var(--stufe-5) !important; }

.badge-done { color: var(--stufe-1); font-size: .8rem; font-weight: 600; }
.badge-used { color: var(--stufe-3); font-size: .8rem; font-weight: 600; }
.badge-new  { color: var(--mid-blue); font-size: .8rem; }

.actions-cell { white-space: nowrap; }
.action-link { color: var(--mid-blue); font-size: .82rem; margin-right: 8px; }
.action-link:hover { color: var(--copper); }

.pagination { display: flex; gap: 6px; margin-top: 16px; }
.page-link { padding: 6px 12px; border: 1px solid var(--neutral); border-radius: var(--radius); font-size: .85rem; color: var(--petrol); }
.page-link.active { background: var(--petrol); color: #fff; border-color: var(--petrol); }

.result-grid { display: grid; grid-template-columns: auto repeat(5, 1fr); gap: 12px; margin: 20px 0; }
.result-total, .result-cat { background: #f5f4f1; border-radius: var(--radius); padding: 14px; text-align: center; }
.rt-label, .rc-label { display: block; font-size: .75rem; font-weight: 600; color: #888; margin-bottom: 4px; }
.rt-score { display: block; font-size: 1.8rem; font-weight: 600; }
.rt-level { display: block; font-size: .78rem; font-weight: 600; }
.rc-score { display: block; font-size: 1.2rem; font-weight: 600; color: var(--petrol); }
.rc-level { display: block; font-size: .75rem; font-weight: 600; margin-bottom: 6px; }
.rc-bar { height: 6px; background: #ddd; border-radius: 3px; overflow: hidden; }
.rc-bar div { height: 100%; border-radius: 3px; }

.admin-knockdowns { margin-top: 12px; }
.kd-tag { display: inline-block; background: var(--copper); color: #fff; padding: 2px 8px; border-radius: 3px; font-size: .78rem; font-weight: 600; margin-right: 6px; }

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }

  .zugang-body { padding: 24px 20px; flex-direction: column; }
  .zugang-header { padding: 20px 20px; }

  .datenpunkte-grid { grid-template-columns: 1fr; }

  .category-header { padding: 20px; }
  .cat-number { font-size: 2rem; }
  .question-block { padding: 18px 16px; }

  .hero-inner { flex-direction: column; gap: 20px; }
  .ampel-grid { grid-template-columns: 1fr 1fr; }

  .lektionen-grid { grid-template-columns: 1fr; }
  .lektion-article { padding: 24px 20px; }

  .admin-form .form-row { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr 1fr 1fr; }

  .progress-header { min-width: 140px; }
  .progress-bar-wrap { width: 140px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .ampel-grid { grid-template-columns: 1fr; }
  .options-multi { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr 1fr; }
}
