:root {
  --bg-base: #070b14;
  --bg-surface: #0f172a;
  --bg-elevated: #162036;
  --bg-hover: #1e293b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-soft: rgba(245, 158, 11, 0.14);

  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.16);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.16);
  --blue-soft: rgba(59, 130, 246, 0.16);
  --slate-soft: rgba(148, 163, 184, 0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.1), transparent 36%),
    radial-gradient(circle at 88% 8%, rgba(56, 189, 248, 0.07), transparent 36%),
    linear-gradient(180deg, #070b14 0%, #090e1a 100%);
  color: var(--text-primary);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.container {
  width: min(1320px, 100% - 2rem);
  margin: 0 auto;
}

.text-gold {
  color: var(--gold-light);
}

.text-green {
  color: var(--green);
}

.text-red {
  color: #f87171;
}

/* TOPBAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-light), #d97706);
  color: #111827;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.28);
  flex-shrink: 0;
}

.brand-badge svg {
  width: 23px;
  height: 23px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: "Outfit", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.exam-mode-pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  color: var(--gold-light);
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: var(--gold-soft);
}

.staff-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.28rem 0.75rem 0.28rem 0.32rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.staff-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.staff-avatar-lg {
  width: 42px;
  height: 42px;
  font-size: 0.95rem;
}

.staff-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.staff-meta strong {
  font-size: 0.82rem;
}

.staff-meta small {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.58rem 1rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  padding: 0.82rem 1.35rem;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 0.38rem 0.72rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), #d97706);
  color: #111827;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fde68a, var(--gold));
}

.btn-secondary {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline-danger {
  background: transparent;
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.btn-outline-danger:hover {
  background: var(--red-soft);
  color: #fecaca;
}

.btn-mini {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  cursor: pointer;
}

.btn-mini:hover {
  background: rgba(255, 255, 255, 0.15);
}

.file-btn {
  position: relative;
  overflow: hidden;
}

/* HERO / PUBLIC LANDING */
.hero {
  padding: 3.75rem 0 3.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: var(--gold-soft);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-copy h1 {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: clamp(2.05rem, 3.8vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

.hero-lead {
  color: var(--text-secondary);
  font-size: 1.04rem;
  max-width: 58ch;
  margin: 0 0 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.25rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
}

.hero-stat strong {
  display: block;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.12rem;
}

.hero-stat span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* LOGIN CARD */
.login-card {
  background: linear-gradient(180deg, rgba(22, 32, 54, 0.96), rgba(15, 23, 42, 0.98));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow);
}

.login-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.login-card-header h2 {
  margin: 0 0 0.35rem;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.38rem;
}

.login-card-header p {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* FORMS */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

input[type="text"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: #080d18;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 0.86rem;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--gold);
}

.alert {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
}

.alert-error {
  background: var(--red-soft);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

.alert-success {
  background: var(--green-soft);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
}

/* CLASSES SECTION */
.section-classes {
  padding: 2.5rem 0 3.75rem;
}

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 2.25rem;
}

.section-head h2 {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.95rem;
  margin: 0 0 0.5rem;
}

.section-head p {
  color: var(--text-secondary);
  margin: 0;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.class-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.class-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.42);
}

.class-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.class-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.class-price-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-light);
  background: var(--gold-soft);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
}

.class-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.class-card h3 {
  margin: 0 0 0.5rem;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.2rem;
}

.class-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.class-checklist {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* PRICE LIST SECTION */
.section-prices {
  padding: 3.5rem 0 4.5rem;
  border-top: 1px solid var(--border);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.price-card:hover {
  border-color: rgba(245, 158, 11, 0.38);
  transform: translateY(-2px);
}

.price-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.price-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.price-card-head h3 {
  margin: 0 0 0.15rem;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.18rem;
}

.price-card-head small {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.9rem;
}

.price-table tr:last-child td {
  border-bottom: 0;
}

.price-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.price-table th:last-child,
.price-table td:last-child {
  text-align: right;
}

.class-pill {
  display: inline-block;
  font-weight: 700;
  color: var(--text-primary);
}

.class-sub {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-left: 0.25rem;
}

.price-val {
  font-family: "Outfit", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-light);
}

.price-calc-card {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, rgba(22, 32, 54, 0.96), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.price-calc-info h3 {
  margin: 0 0 0.25rem;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.15rem;
}

.price-calc-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.price-calc-controls {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  flex: 1 1 480px;
  justify-content: flex-end;
}

.price-calc-controls .field {
  min-width: 155px;
}

.price-calc-result {
  background: #080d18;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.55rem 1rem;
  text-align: right;
  min-width: 245px;
}

.price-calc-result span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.price-calc-result strong {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.35rem;
  color: var(--gold-light);
}

/* PORTAL / ADMIN WORKSPACE LAYOUT */
.portal-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0 4rem;
  align-items: start;
}

.portal-sidebar {
  position: sticky;
  top: 88px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-profile strong {
  display: block;
  font-size: 0.94rem;
}

.role-badge {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-light);
  background: var(--gold-soft);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
}

.sidebar-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding: 0 0.35rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  padding: 0.68rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: var(--gold-soft);
  border-color: rgba(245, 158, 11, 0.32);
  color: var(--gold-light);
}

.s-icon {
  font-size: 1.05rem;
}

.s-count {
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.sidebar-tip {
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.sidebar-tip strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.sidebar-tip p {
  margin: 0;
  line-height: 1.4;
}

.portal-content {
  min-width: 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.panel-header h1 {
  margin: 0 0 0.22rem;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.75rem;
}

.panel-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.view-toggle {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.2rem;
}

.view-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.38rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
}

.view-btn.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* KPI GRID */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
}

.kpi-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.kpi-value {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.7rem;
}

/* TOOLBAR */
.toolbar {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.search-box {
  position: relative;
  flex: 1 1 280px;
}

.search-box svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  padding-left: 2.5rem;
}

.filter-group {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.filter-group select {
  width: auto;
  min-width: 205px;
}

/* AKTEN CARDS */
.akten-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.akten-table-mode {
  display: block;
}

.akte-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  transition: border-color 0.15s ease;
}

.akte-card:hover {
  border-color: var(--border-strong);
}

.akte-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.akte-nr {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-light);
  background: var(--gold-soft);
  padding: 0.14rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.3rem;
}

.akte-name {
  margin: 0;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.15rem;
}

.akte-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.79rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.akte-exams {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.exam-pill-group {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.exam-pill-title {
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.exam-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.status-badge {
  border: 0;
  font-family: inherit;
  font-size: 0.69rem;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  cursor: pointer;
  transition: filter 0.12s ease;
  white-space: nowrap;
}

.status-badge:hover {
  filter: brightness(1.15);
}

.status-offen,
.status-pending {
  background: var(--slate-soft);
  color: #cbd5e1;
}

.status-started {
  background: var(--blue-soft);
  color: #93c5fd;
}

.status-bestanden,
.status-completed-pass {
  background: var(--green-soft);
  color: #6ee7b7;
}

.status-nicht_bestanden,
.status-completed-fail,
.status-expired {
  background: var(--red-soft);
  color: #fca5a5;
}

.akte-notes-preview {
  font-size: 0.81rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.22);
  border-left: 3px solid var(--gold);
  padding: 0.45rem 0.7rem;
  border-radius: 0 6px 6px 0;
  margin: 0;
}

.akte-theory-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  font-size: 0.78rem;
}

.akte-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.akte-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* TABLE CARD */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.3rem;
}

.table-card {
  overflow-x: auto;
}

.card h2 {
  margin: 0 0 1rem;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.18rem;
}

.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.staff-table th,
.staff-table td {
  text-align: left;
  padding: 0.72rem 0.6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.staff-table th {
  color: var(--text-secondary);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.staff-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 3.25rem 1.5rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

.empty-state h3 {
  margin: 0 0 0.4rem;
}

.empty-state p {
  margin: 0 0 1.2rem;
  color: var(--text-secondary);
}

/* STAFF MANAGEMENT */
.staff-mgmt-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.25rem;
  align-items: start;
}

/* GENERATED LINK BOX */
.generated-link-box {
  margin-top: 1.15rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.generated-link-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #6ee7b7;
  margin-bottom: 0.5rem;
}

.generated-link-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.generated-link-row input {
  font-size: 0.82rem;
}

.generated-link-hint {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* STUDENT ONLINE EXAM PORTAL */
.exam-portal-wrap {
  padding: 2.5rem 0 4rem;
  max-width: 820px;
}

.exam-stage-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.exam-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--border);
}

.timer-box {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--gold-light);
}

.timer-box.is-warning {
  color: #fde047;
  border-color: rgba(250, 204, 21, 0.5);
  background: rgba(250, 204, 21, 0.12);
}

.timer-box.is-critical {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.6);
  background: var(--red-soft);
}

.exam-progress-track {
  width: 100%;
  height: 8px;
  background: #080d18;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.35rem;
}

.exam-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.2s ease;
}

.question-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.question-card {
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.question-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--gold-light);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.question-text {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.option-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.62rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
  font-size: 0.88rem;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.option-label:hover {
  border-color: rgba(245, 158, 11, 0.45);
}

.option-label.is-selected {
  border-color: var(--gold);
  background: rgba(245, 158, 11, 0.12);
}

.option-label input[type="radio"] {
  margin-top: 0.22rem;
  accent-color: var(--gold);
}

/* REVIEW MODAL ITEMS */
.review-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  background: #0b1220;
  margin-bottom: 0.75rem;
}

.review-item.is-right {
  border-left: 4px solid var(--green);
}

.review-item.is-wrong {
  border-left: 4px solid var(--red);
}

.review-answers {
  margin-top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.83rem;
}

/* MODALS */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.modal-lg {
  max-width: 880px;
}

.modal-md {
  max-width: 680px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.modal-header h2 {
  margin: 0;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.22rem;
}

.modal-sub {
  font-size: 0.78rem;
  color: var(--gold-light);
}

.icon-close {
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.4rem;
}

.icon-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 1.4rem;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding-top: 1.15rem;
  margin-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.form-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  margin: 1.15rem 0 0.75rem;
}

.form-section-title:first-of-type {
  margin-top: 0;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.exam-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.exam-box {
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.exam-box-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.exam-emoji {
  font-size: 1.4rem;
}

.exam-box-head strong {
  display: block;
  font-size: 0.92rem;
}

.exam-box-head small {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.exam-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.exam-row label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.status-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
  background: var(--bg-surface);
  padding: 0.22rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.seg-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.38rem 0.2rem;
  border-radius: 6px;
  cursor: pointer;
}

.seg-btn.active-offen {
  background: var(--slate-soft);
  color: var(--text-primary);
}

.seg-btn.active-bestanden {
  background: var(--green-soft);
  color: #6ee7b7;
}

.seg-btn.active-nicht_bestanden {
  background: var(--red-soft);
  color: #fca5a5;
}

/* DETAIL / CERTIFICATE */
.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.cert-item {
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
}

.cert-item small {
  display: block;
  color: var(--text-secondary);
  font-size: 0.74rem;
}

.cert-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.cert-table th,
.cert-table td {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  font-size: 0.88rem;
}

.cert-table th {
  background: #0b1220;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

/* TOAST */
.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  background: var(--bg-elevated);
  border: 1px solid var(--gold);
  color: var(--text-primary);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 600;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.15rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 1080px) {
  .portal-layout {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-link {
    width: auto;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .classes-grid,
  .price-grid,
  .akten-grid,
  .exam-editor-grid,
  .staff-mgmt-grid {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-calc-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .akten-exams,
  .form-grid-2,
  .cert-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* PRINT STYLES */
@media print {
  body {
    background: #fff !important;
    color: #111 !important;
  }

  .topbar,
  main,
  .no-print {
    display: none !important;
  }

  .modal-backdrop {
    position: static;
    background: none;
    padding: 0;
  }

  .modal {
    border: 0;
    box-shadow: none;
    max-height: none;
    background: #fff;
    color: #111;
  }

  .cert-item,
  .cert-table th,
  .cert-table td {
    background: #fff !important;
    color: #111 !important;
    border-color: #cbd5e1 !important;
  }

  .status-bestanden {
    color: #065f46 !important;
    background: #d1fae5 !important;
  }

  .status-nicht_bestanden {
    color: #991b1b !important;
    background: #fee2e2 !important;
  }
}
