:root {
  --navy: #132238;
  --navy-soft: #1a2f4d;
  --gold: #bf945a;
  --gold-dark: #a87d4a;
  --mist: #e9eff6;
  --ink: #132238;
  --muted: rgba(19, 34, 56, 0.62);
  --white: #ffffff;
  --shadow: 0 22px 50px rgba(19, 34, 56, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--white);
}

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

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

button {
  font: inherit;
}

.container {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  background: rgba(19, 34, 56, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100% - 48px, 1280px);
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: auto;
  height: 48px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav a,
.desktop-nav button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav button:hover {
  color: var(--gold);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 260px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(19, 34, 56, 0.98);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.desktop-nav .nav-cta,
.mobile-nav .nav-cta {
  margin-left: 16px;
  color: var(--white);
  background: var(--gold);
  border-radius: 8px;
  padding: 11px 24px;
}

.desktop-nav .nav-cta:hover,
.mobile-nav .nav-cta:hover {
  color: var(--white);
  background: var(--gold-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: none;
  width: min(100% - 48px, 1280px);
  margin: 0 auto 18px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(19, 34, 56, 0.98);
}

.mobile-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
}

.tools-hero {
  padding: 150px 0 60px;
  background: linear-gradient(180deg, #132238 0%, #1a2f4d 100%);
  color: #fff;
}

.part-a-generator-page .site-header {
  position: static;
}

.part-a-generator-page .tools-hero {
  padding-top: 70px;
}

.tools-hero h1 {
  margin-bottom: 16px;
}

.tools-hero p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 20px;
  line-height: 1.5;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 36px 0 22px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(19, 34, 56, 0.08);
}

.tool-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.tool-card p {
  flex: 1;
  color: var(--muted);
}

.tool-card .button {
  width: 100%;
  margin-top: 18px;
}

.tool-shell {
  padding: 42px 0 70px;
  background: #eef2f7;
}

.tool-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.tool-form,
.tool-result {
  background: #fff;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 10px;
  padding: 24px;
}

.tool-form h2,
.tool-result h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.tool-field {
  margin-bottom: 14px;
}

.tool-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.tool-field input,
.tool-field select,
.tool-field textarea {
  width: 100%;
  border: 1px solid rgba(19, 34, 56, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
}

.tool-checklist {
  display: grid;
  gap: 10px;
  margin: 8px 0 18px;
}

.tool-checklist label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(19, 34, 56, 0.15);
  border-radius: 8px;
}

.tool-result-output {
  min-height: 120px;
  color: var(--ink);
}

.tool-result-output .button {
  margin-top: 14px;
}

.tool-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tool-action-row .button {
  margin-top: 0;
}

.tool-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.tool-result-grid article {
  padding: 14px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 8px;
  background: #f7f9fc;
}

.tool-result-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tool-result-grid strong {
  color: var(--ink);
  font-size: 20px;
}

.tool-note {
  color: var(--muted);
  font-size: 14px;
}

.tool-status-card,
.tool-upload-list,
.tool-access-box {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 8px;
  background: #f7f9fc;
}

.tool-preview-block {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 8px;
  background: #fff;
}

.tool-preview-block h3,
.tool-preview-block h4 {
  margin: 0 0 10px;
  color: var(--ink);
}

.tool-preview-block h4 {
  margin-top: 18px;
  font-size: 16px;
}

.tool-preview-block p,
.tool-preview-block li {
  color: var(--ink);
  line-height: 1.65;
}

.tool-preview-block ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.tool-status-card strong,
.tool-access-box strong {
  color: var(--ink);
}

.tool-upload-list ul,
.tool-access-box ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.tool-upload-list li,
.tool-access-box li {
  margin-bottom: 6px;
}

.tool-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(201, 153, 90, 0.16);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.generator-checkout {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.generator-checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.generator-checkout-steps span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(19, 34, 56, 0.14);
  border-radius: 8px;
  background: #f7f9fc;
  color: var(--muted);
  font-weight: 800;
}

.generator-checkout-steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(19, 34, 56, 0.1);
  color: var(--ink);
}

.generator-checkout-steps span.is-active,
.generator-checkout-steps span.is-complete {
  border-color: rgba(201, 153, 90, 0.45);
  background: rgba(201, 153, 90, 0.12);
  color: var(--ink);
}

.generator-checkout-steps span.is-complete b {
  background: var(--gold);
  color: #fff;
}

.generator-checkout-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.generator-checkout-card {
  padding: 18px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 8px;
  background: #fff;
}

.generator-checkout-card.is-payment {
  border-color: rgba(201, 153, 90, 0.42);
  box-shadow: 0 18px 40px rgba(19, 34, 56, 0.08);
}

.generator-checkout-card.is-success {
  border-color: rgba(26, 127, 78, 0.24);
  background: rgba(26, 127, 78, 0.06);
}

.generator-checkout-card.is-warning {
  border-color: rgba(201, 153, 90, 0.38);
  background: rgba(201, 153, 90, 0.08);
}

.generator-checkout-card small {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.generator-checkout-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 22px;
}

.generator-checkout-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.generator-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.generator-summary-list div {
  padding: 12px;
  border-radius: 8px;
  background: #f7f9fc;
}

.generator-summary-list dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.generator-summary-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.generator-preview-details {
  margin-top: 14px;
}

.generator-preview-details summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.generator-layout {
  align-items: start;
}

.generator-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.generator-progress button {
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 8px;
  background: #f7f9fc;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.generator-progress button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(19, 34, 56, 0.08);
  font-weight: 800;
}

.generator-progress button strong {
  display: block;
  font-size: 14px;
}

.generator-progress button.is-active,
.generator-progress button.is-complete {
  border-color: rgba(201, 153, 90, 0.4);
  background: rgba(201, 153, 90, 0.12);
}

.generator-progress button.is-active span,
.generator-progress button.is-complete span {
  background: var(--gold);
  color: #fff;
}

.generator-step {
  margin-bottom: 10px;
}

.generator-step[hidden] {
  display: none;
}

.generator-option-grid,
.generator-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 12px;
}

.generator-option-card,
.generator-role-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(19, 34, 56, 0.14);
  border-radius: 10px;
  background: #f7f9fc;
}

.generator-checkbox,
.generator-option-card {
  font-weight: 700;
}

.generator-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.generator-checkbox input,
.generator-option-card input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.generator-option-card span {
  display: block;
}

.generator-inline-panel {
  display: grid;
  gap: 10px;
}

.generator-inline-panel[hidden] {
  display: none;
}

.generator-inline-panel input {
  width: 100%;
}

.generator-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.generator-nav .button {
  min-width: 140px;
}

.generator-admin-row {
  gap: 14px;
}

@media (max-width: 1000px) {
  .tools-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tool-layout {
    grid-template-columns: 1fr;
  }
  .generator-progress {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .generator-checkout-steps,
  .generator-summary-list {
    grid-template-columns: 1fr;
  }
  .generator-option-grid,
  .generator-role-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin visual consolidation: ruhige Operations-Oberfläche */
.admin-page[data-admin-source="session"] {
  background: #e9eef5;
}

.admin-page[data-admin-source="session"] .admin-shell {
  min-height: 100vh;
  grid-template-columns: 268px minmax(0, 1fr);
  background: #e9eef5;
}

.admin-page[data-admin-source="session"] .admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #132238 0%, #0c1727 100%);
  box-shadow: 12px 0 30px rgba(15, 23, 42, 0.12);
}

.admin-page[data-admin-source="session"] .admin-brand {
  min-height: 66px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-page[data-admin-source="session"] .admin-brand img {
  width: 122px;
  height: auto;
}

.admin-page[data-admin-source="session"] .admin-brand span {
  color: #fff;
  font-size: 13px;
}

.admin-page[data-admin-source="session"] .admin-sidebar nav {
  gap: 4px;
  padding-right: 2px;
}

.admin-page[data-admin-source="session"] .admin-nav-group {
  margin: 15px 8px 6px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.admin-sidebar button[data-admin-icon]::before,
.admin-page[data-admin-source="session"] .admin-sidebar button[data-admin-icon]::before {
  display: none;
}

.admin-page[data-admin-source="session"] .admin-sidebar button,
.admin-page[data-admin-source="session"] .admin-back {
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  font-size: 13px;
  line-height: 1.25;
}

.admin-page[data-admin-source="session"] .admin-sidebar button:hover,
.admin-page[data-admin-source="session"] .admin-sidebar button.active,
.admin-page[data-admin-source="session"] .admin-back:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.095);
  box-shadow: inset 3px 0 0 var(--gold);
}

.admin-page[data-admin-source="session"] .admin-nav-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.07);
}

.admin-page[data-admin-source="session"] .admin-nav-icon .admin-icon {
  width: 16px;
  height: 16px;
}

.admin-page[data-admin-source="session"] .admin-sidebar button.active .admin-nav-icon,
.admin-page[data-admin-source="session"] .admin-sidebar button:hover .admin-nav-icon {
  color: #fff;
  background: rgba(194, 148, 85, 0.22);
}

.admin-page[data-admin-source="session"] .admin-main {
  padding: 22px 26px 40px;
  background: transparent;
}

.admin-page[data-admin-source="session"] .admin-topbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(260px, 420px) minmax(300px, auto);
  gap: 18px;
  align-items: center;
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.admin-page[data-admin-source="session"] .admin-topbar h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
}

.admin-page[data-admin-source="session"] .admin-global-search {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-page[data-admin-source="session"] .admin-global-search span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-page[data-admin-source="session"] .admin-global-search input {
  min-height: 42px;
  margin: 0;
  border-radius: 12px;
  background: #f8fafc;
}

.admin-page[data-admin-source="session"] .admin-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-page[data-admin-source="session"] .button,
.admin-page[data-admin-source="session"] .small-button {
  min-height: 40px;
  border-radius: 11px;
  font-weight: 900;
}

.admin-page[data-admin-source="session"] .button-soft,
.admin-page[data-admin-source="session"] .small-button:not(.danger) {
  border: 1px solid rgba(19, 34, 56, 0.12);
  color: var(--ink);
  background: #f8fafc;
}

.admin-page[data-admin-source="session"] .button-primary,
.admin-page[data-admin-source="session"] .button.button-primary {
  border-color: rgba(132, 89, 35, 0.3);
  color: #fff;
  background: linear-gradient(180deg, #c99b5b 0%, #b9833e 100%);
}

.admin-page[data-admin-source="session"] .admin-card,
.admin-page[data-admin-source="session"] .operations-hero,
.admin-page[data-admin-source="session"] .workflow-pipeline,
.admin-page[data-admin-source="session"] .admin-kpi,
.admin-page[data-admin-source="session"] .status-metric,
.admin-page[data-admin-source="session"] .work-item,
.admin-page[data-admin-source="session"] .schedule-row,
.admin-page[data-admin-source="session"] .notification-row,
.admin-page[data-admin-source="session"] .activity-row {
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.065);
}

.admin-page[data-admin-source="session"] .admin-card {
  padding: 20px;
  overflow: hidden;
}

.admin-page[data-admin-source="session"] .admin-section-head {
  margin: -20px -20px 18px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(19, 34, 56, 0.08);
  background: linear-gradient(180deg, #fbfdff 0%, #f1f5f9 100%);
}

.admin-page[data-admin-source="session"] .admin-section-head h2,
.admin-page[data-admin-source="session"] .admin-section-head h3 {
  font-size: 21px;
}

.admin-page[data-admin-source="session"] .admin-master-detail {
  grid-template-columns: minmax(310px, 0.78fr) minmax(0, 1.6fr);
  gap: 18px;
  padding: 0;
}

.admin-page[data-admin-source="session"] .admin-master-list {
  position: sticky;
  top: 18px;
  padding: 14px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 16px;
  background: #f6f9fc;
}

.admin-page[data-admin-source="session"] .admin-master-list-head h3 {
  font-size: 16px;
}

.admin-page[data-admin-source="session"] .admin-master-row {
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 12px;
  border-color: transparent;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.admin-page[data-admin-source="session"] .admin-master-row:hover,
.admin-page[data-admin-source="session"] .admin-master-row.active {
  border-color: rgba(194, 148, 85, 0.42);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.admin-page[data-admin-source="session"] .admin-master-icon {
  width: 38px;
  height: 38px;
}

.admin-page[data-admin-source="session"] .admin-detail-pane {
  min-width: 0;
}

.admin-page[data-admin-source="session"] .admin-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.admin-page[data-admin-source="session"] .admin-card form:not(.calendar-filter-bar):not(.deadline-filter-bar):not(.document-filter-bar):not(.portal-filter-bar):not(.portal-action-form) > label,
.admin-page[data-admin-source="session"] .admin-row label {
  display: grid;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #536177;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.admin-page[data-admin-source="session"] input:not([type]),
.admin-page[data-admin-source="session"] input[type="text"],
.admin-page[data-admin-source="session"] input[type="email"],
.admin-page[data-admin-source="session"] input[type="tel"],
.admin-page[data-admin-source="session"] input[type="number"],
.admin-page[data-admin-source="session"] input[type="date"],
.admin-page[data-admin-source="session"] input[type="time"],
.admin-page[data-admin-source="session"] input[type="search"],
.admin-page[data-admin-source="session"] input[type="password"],
.admin-page[data-admin-source="session"] select,
.admin-page[data-admin-source="session"] textarea {
  min-height: 42px;
  border: 1px solid rgba(19, 34, 56, 0.13);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

.admin-page[data-admin-source="session"] textarea {
  min-height: 118px;
}

.admin-page[data-admin-source="session"] .portal-access-card,
.admin-page[data-admin-source="session"] .structured-editor-block,
.admin-page[data-admin-source="session"] .course-participant-editor,
.admin-page[data-admin-source="session"] .course-certificate-panel,
.admin-page[data-admin-source="session"] .course-invoice-panel {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 15px;
  background: #f8fafc;
}

.admin-page[data-admin-source="session"] .rich-text-editor {
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.admin-page[data-admin-source="session"] .rich-text-toolbar {
  background: #f4f7fb;
}

.admin-page[data-admin-source="session"] .admin-actions,
.admin-page[data-admin-source="session"] .course-workbook-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(19, 34, 56, 0.08);
}

.admin-page[data-admin-source="session"] .course-workbook-head,
.admin-page[data-admin-source="session"] .course-workbook-metrics,
.admin-page[data-admin-source="session"] .course-workbook-tabs,
.admin-page[data-admin-source="session"] .course-tab-panel,
.admin-page[data-admin-source="session"] .course-workbook-actions {
  grid-column: 1 / -1;
}

.admin-page[data-admin-source="session"] .course-workbook-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(19, 34, 56, 0.08);
}

.admin-page[data-admin-source="session"] .course-workbook-tabs button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 999px;
  color: var(--ink);
  background: #f8fafc;
  font-weight: 900;
}

.admin-page[data-admin-source="session"] .course-workbook-tabs button.active {
  border-color: rgba(194, 148, 85, 0.45);
  color: #7a4d18;
  background: rgba(194, 148, 85, 0.14);
}

@media (max-width: 1180px) {
  .admin-page[data-admin-source="session"] .admin-topbar {
    grid-template-columns: 1fr;
  }

  .admin-page[data-admin-source="session"] .admin-topbar-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .admin-page[data-admin-source="session"] .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-page[data-admin-source="session"] .admin-sidebar,
  .admin-page[data-admin-source="session"] .admin-master-list {
    position: static;
    height: auto;
  }

  .admin-page[data-admin-source="session"] .admin-master-detail,
  .admin-page[data-admin-source="session"] .admin-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .tools-hero p {
    font-size: 18px;
  }
  .tool-result-grid {
    grid-template-columns: 1fr;
  }
  .generator-progress {
    grid-template-columns: 1fr 1fr;
  }
  .generator-nav {
    flex-direction: column;
  }
  .generator-nav .button {
    width: 100%;
  }
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  opacity: 0.25;
}

.hero-overlay {
  background: linear-gradient(90deg, var(--navy) 0%, rgba(19, 34, 56, 0.88) 48%, rgba(19, 34, 56, 0.22) 100%);
}

.hero-content {
  position: relative;
  padding: 150px 0 94px;
}

.hero-content > * {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
}

h1 span {
  color: var(--gold);
}

.hero-lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.56);
  font-size: 16px;
  line-height: 1.72;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--gold);
}

.button-primary:hover {
  background: var(--gold-dark);
}

.button-outline {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.button-outline:hover {
  border-color: var(--gold);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 32px;
  margin-top: 48px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 14px;
}

.trust-row span::first-letter {
  color: var(--gold);
}

.credibility-strip {
  color: var(--white);
  background: #0d1724;
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.credibility-grid article {
  min-height: 136px;
  padding: 28px;
  background: #0d1724;
}

.credibility-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.credibility-grid span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.65;
}

.section {
  padding: 96px 0;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: end;
  padding: 128px 0 76px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
}

.sub-hero-content {
  position: relative;
}

.sub-hero h1 {
  max-width: 840px;
  margin-bottom: 16px;
  font-size: clamp(38px, 5vw, 56px);
}

.sub-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.7;
}

.section-light {
  background: var(--mist);
}

.about-hero {
  position: relative;
  overflow: hidden;
  padding: 128px 0 80px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(19, 34, 56, 0.98), rgba(26, 47, 77, 0.96));
}

.about-hero .container {
  position: relative;
  max-width: 1000px;
}

.about-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.08;
}

.about-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1.7;
}

.about-section {
  padding: 80px 0;
  background: var(--white);
}

.about-container {
  max-width: 1000px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 64px;
  align-items: start;
}

.about-copy h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
}

.about-copy p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.about-stat-list {
  display: grid;
  gap: 24px;
}

.about-stat-card {
  padding: 24px;
  border-radius: 16px;
  background: var(--mist);
}

.about-stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: clamp(28px, 4vw, 32px);
  line-height: 1;
}

.about-stat-card h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
}

.about-stat-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.about-mission-card {
  margin-top: 80px;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  color: var(--white);
  background: var(--navy);
}

.about-mission-card h2 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
}

.about-mission-card p {
  max-width: 680px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
}

.narrow {
  max-width: 920px;
}

.section-heading {
  max-width: 650px;
}

.section-heading.center {
  margin: 0 auto 58px;
  text-align: center;
}

.section-heading h2 {
  color: var(--ink);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.12;
  margin-bottom: 16px;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  border-color: rgba(191, 148, 90, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card img {
  width: 100%;
  height: 192px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card div {
  padding: 24px;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.service-card p {
  min-height: 68px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.service-card span {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.why-section {
  color: var(--white);
  background: var(--navy);
}

.why-section h2,
.why-section h3 {
  color: var(--white);
}

.why-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.62);
}

.two-column {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.feature-list article {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.feature-list span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--white);
  background: var(--gold);
  font-weight: 800;
}

.feature-list h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.feature-list p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.65;
}

.feature-list.light article {
  border-color: rgba(19, 34, 56, 0.08);
  background: var(--mist);
}

.feature-list.light h3 {
  color: var(--ink);
}

.feature-list.light p {
  color: var(--muted);
}

.trust-band {
  background: var(--white);
}

.trust-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trust-metrics article {
  min-height: 150px;
  padding: 26px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 8px;
  background: var(--mist);
}

.trust-metrics strong {
  display: block;
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
}

.trust-metrics span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.course-list {
  display: grid;
  gap: 16px;
}

.course-list article {
  display: grid;
  grid-template-columns: 110px 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(19, 34, 56, 0.05);
}

.date {
  display: grid;
  place-items: center;
  min-height: 74px;
  border-radius: 12px;
  color: var(--white);
  background: var(--navy);
}

.date strong {
  color: var(--gold);
  font-size: 14px;
}

.date span {
  font-weight: 800;
}

.course-list small {
  color: var(--gold);
  font-weight: 800;
}

.course-list h3 {
  margin: 5px 0;
  font-size: 18px;
}

.course-list p,
.course-list .places {
  margin: 0;
  color: var(--muted);
}

.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 42px;
  border-radius: 8px;
  color: var(--white);
  background: var(--gold);
  font-weight: 800;
}

.custom-date {
  margin-top: 28px;
  padding: 34px;
  border-radius: 16px;
  text-align: center;
  background: var(--white);
}

.custom-date p {
  color: var(--muted);
}

.testimonials {
  color: var(--white);
  background: var(--navy);
}

.testimonials h2 {
  color: var(--white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

blockquote {
  margin: 0;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.stars {
  color: var(--gold);
  margin-bottom: 18px;
  letter-spacing: 0.1em;
}

blockquote p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

cite {
  display: block;
  color: var(--white);
  font-style: normal;
  font-weight: 800;
}

cite span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  font-weight: 500;
}

.faq-wrap {
  max-width: 960px;
}

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.faq-tabs button {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.faq-tabs button.active {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border-radius: 12px;
  background: var(--white);
}

details[hidden] {
  display: none;
}

summary {
  position: relative;
  list-style: none;
  padding: 22px 56px 22px 24px;
  cursor: pointer;
  font-weight: 800;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  color: var(--gold);
  font-size: 24px;
  transform: translateY(-50%);
}

details[open] summary::after {
  content: "-";
}

details p {
  padding: 0 24px 22px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-cta {
  margin-top: 30px;
  text-align: center;
}

.site-footer {
  color: rgba(255, 255, 255, 0.7);
  background: var(--navy);
}

.footer-cta {
  padding: 48px 24px;
  text-align: center;
  color: var(--white);
  background: var(--gold);
}

.footer-cta h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 38px);
}

.footer-cta p {
  max-width: 650px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-button {
  color: var(--white);
  background: var(--navy);
}

.footer-button:hover {
  background: var(--navy-soft);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 42px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer-main h3 {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-logo {
  width: auto;
  height: 56px;
  margin-bottom: 18px;
}

.footer-main a,
.footer-main address p {
  display: block;
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
}

.footer-main a:hover {
  color: var(--gold);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 800;
}

.socials svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.socials a:nth-child(2) svg,
.socials a:nth-child(3) svg {
  fill: currentColor;
  stroke: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom nav {
  display: flex;
  gap: 14px;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.72);
}

.booking-summary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 16px;
}

.booking-summary div {
  min-width: 0;
}

.booking-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.booking-summary dd {
  margin: 4px 0 0;
  color: var(--ink);
  line-height: 1.5;
}

.privacy-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.form-status.is-info {
  color: var(--navy);
}

.not-found {
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 150px 0 96px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
}

.not-found-inner {
  max-width: 760px;
}

.not-found h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.05;
}

.not-found p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.7;
}

.booking-panel {
  max-width: 760px;
}

.form-card {
  display: grid;
  gap: 20px;
  padding: 34px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-card h2 {
  margin-bottom: 4px;
}

.form-card label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.form-card .privacy-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--ink);
  line-height: 1.55;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(19, 34, 56, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-card .privacy-check input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 3px 0 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-card textarea {
  resize: vertical;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 148, 90, 0.16);
}

.form-card .button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.form-status {
  min-height: 22px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.form-status.is-error {
  color: #b42318;
}

.form-status.is-success {
  color: #197347;
}

.detail-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
  align-items: start;
}

.content-block {
  margin-bottom: 34px;
}

.content-block p,
.legal-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.check-list li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 900;
  margin-right: 10px;
}

.sticky-card,
.contact-info,
.dark-note,
.price-box,
.mini-grid article {
  border-radius: 16px;
}

.sticky-card {
  position: sticky;
  top: 112px;
  padding: 28px;
  background: var(--mist);
}

.sticky-card .button {
  width: 100%;
}

.sticky-card .button + .button {
  margin-top: 12px;
}

.button-soft {
  width: 100%;
  margin-top: 12px;
  color: var(--ink);
  background: var(--white);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.mini-grid article,
.price-box {
  padding: 22px;
  background: var(--mist);
}

.plan-example-grid article {
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(18, 52, 90, 0.1);
  box-shadow: 0 18px 42px rgba(18, 52, 90, 0.08);
}

.plan-example-grid h3,
.plan-example-grid p {
  padding-inline: 22px;
}

.plan-example-grid h3 {
  margin-top: 18px;
}

.plan-example-grid p {
  padding-bottom: 22px;
}

.plan-inline-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10.5;
  background: #f7fafc;
  border-bottom: 1px solid rgba(18, 52, 90, 0.08);
}

.plan-preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(18, 52, 90, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(18, 52, 90, 0.05) 1px, transparent 1px),
    #f8fbfd;
  background-size: 34px 34px;
  border-bottom: 1px solid rgba(18, 52, 90, 0.08);
}

.plan-preview span {
  position: absolute;
}

.plan-label {
  top: 14px;
  left: 16px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.room,
.building,
.zone {
  background: rgba(18, 52, 90, 0.08);
  border: 2px solid rgba(18, 52, 90, 0.34);
}

.room-a {
  top: 58px;
  left: 28px;
  width: 34%;
  height: 34%;
}

.room-b {
  top: 58px;
  right: 32px;
  width: 36%;
  height: 34%;
}

.room-c {
  left: 28px;
  bottom: 30px;
  width: 72%;
  height: 25%;
}

.route-main,
.route-side,
.fire-route,
.run-route {
  border-radius: 999px;
}

.route-main {
  left: 54px;
  bottom: 66px;
  width: 66%;
  height: 10px;
  background: #17864a;
}

.route-side {
  left: 44%;
  top: 118px;
  width: 10px;
  height: 94px;
  background: #17864a;
}

.exit-marker,
.safety-dot,
.fire-marker,
.hydrant,
.bmz,
.detector {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}

.exit-marker {
  right: 24px;
  bottom: 54px;
  width: 58px;
  height: 28px;
  border-radius: 999px;
  background: #17864a;
  font-size: 12px;
}

.safety-dot {
  left: 32px;
  top: 86px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #17864a;
  font-size: 20px;
}

.building-a {
  left: 34px;
  top: 62px;
  width: 34%;
  height: 42%;
}

.building-b {
  right: 48px;
  top: 62px;
  width: 32%;
  height: 42%;
}

.access-road {
  left: 26px;
  right: 26px;
  bottom: 58px;
  height: 26px;
  border-radius: 999px;
  background: rgba(18, 52, 90, 0.16);
}

.fire-route {
  left: 48px;
  bottom: 70px;
  width: 63%;
  height: 9px;
  background: #d23b32;
  transform: rotate(-9deg);
  transform-origin: left center;
}

.fire-marker {
  right: 34px;
  bottom: 44px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
}

.hydrant {
  right: 54px;
  top: 82px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #d23b32;
}

.zone-a {
  left: 34px;
  top: 62px;
  width: 38%;
  height: 58%;
}

.zone-b {
  right: 42px;
  top: 62px;
  width: 34%;
  height: 58%;
}

.run-route {
  left: 72px;
  top: 126px;
  width: 60%;
  height: 10px;
  background: #d23b32;
  box-shadow: 78px 58px 0 #d23b32;
}

.bmz {
  left: 42px;
  top: 108px;
  width: 44px;
  height: 34px;
  border-radius: 999px;
  background: var(--navy);
  font-size: 11px;
}

.detector {
  right: 44px;
  bottom: 76px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #d23b32;
  font-size: 17px;
}

.card-strip {
  left: 22px;
  right: 22px;
  bottom: 20px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.price-box strong {
  display: block;
  font-size: 34px;
}

.contact-info {
  display: grid;
  gap: 20px;
}

.contact-info article {
  padding: 22px;
  border-radius: 12px;
  background: var(--white);
}

.contact-info strong,
.contact-info a {
  display: block;
}

.contact-info a,
.contact-info p {
  color: var(--muted);
}

.dark-note {
  padding: 24px;
  color: var(--white);
  background: var(--navy);
}

.dark-note p {
  color: rgba(255, 255, 255, 0.64);
}

.booking-hero {
  position: relative;
  padding: 128px 0 48px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
}

.booking-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 48px);
}

.booking-hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.7;
}

.booking-progress-section {
  padding: 0 0 56px;
  background: var(--navy);
}

.booking-progress {
  display: flex;
  align-items: flex-start;
  max-width: 820px;
  margin: 0 auto;
}

.progress-item {
  display: grid;
  justify-items: center;
  gap: 9px;
  width: 120px;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.progress-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.progress-item.is-active {
  color: var(--gold);
}

.progress-item.is-active .progress-number {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
}

.progress-item.is-done {
  color: #55d88c;
}

.progress-item.is-done .progress-number,
.progress-line.is-done {
  color: var(--white);
  background: #22a45d;
  border-color: #22a45d;
}

.progress-line {
  flex: 1;
  height: 2px;
  margin: 20px 14px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.booking-wizard {
  background: var(--white);
}

.booking-step {
  width: min(100% - 48px, 920px);
  margin: 0 auto;
  padding: 64px 0 80px;
}

.booking-form-step {
  max-width: 720px;
}

.booking-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.booking-service-card {
  position: relative;
  min-height: 168px;
  padding: 24px;
  border: 2px solid rgba(19, 34, 56, 0.1);
  border-radius: 14px;
  color: var(--ink);
  text-align: left;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.booking-service-card:hover,
.booking-service-card.is-selected {
  border-color: var(--gold);
  background: rgba(191, 148, 90, 0.05);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: var(--gold);
  background: var(--mist);
  font-size: 22px;
  font-weight: 900;
}

.booking-service-card strong,
.booking-service-card small {
  display: block;
}

.booking-service-card small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45;
}

.selected-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--white);
  background: var(--gold);
  font-weight: 900;
}

.booking-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.center-actions {
  justify-content: center;
  flex-direction: column;
}

.booking-actions .button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.booking-hint {
  margin: 0;
  color: rgba(19, 34, 56, 0.42);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.booking-fields {
  display: grid;
  gap: 20px;
}

.booking-company-block {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.booking-fields label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.booking-fields input,
.booking-fields select,
.booking-fields textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(19, 34, 56, 0.15);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.booking-fields input:focus,
.booking-fields select:focus,
.booking-fields textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 148, 90, 0.16);
}

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented-control button {
  min-height: 40px;
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  color: rgba(19, 34, 56, 0.64);
  background: var(--mist);
  cursor: pointer;
  font-weight: 800;
}

.segmented-control button.active {
  color: var(--white);
  background: var(--navy);
}

.available-dates {
  display: grid;
  gap: 10px;
}

.date-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px;
  border: 2px solid rgba(19, 34, 56, 0.1);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
  text-align: left;
}

.date-option.is-selected {
  border-color: var(--gold);
  background: rgba(191, 148, 90, 0.05);
}

.date-tile {
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  height: 64px;
  border-radius: 10px;
  color: var(--white);
  background: var(--navy);
}

.date-tile small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  text-transform: uppercase;
}

.date-tile strong {
  font-size: 22px;
  line-height: 1;
}

.date-tile em {
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.date-copy strong,
.date-copy small {
  display: block;
}

.date-copy small {
  margin-top: 5px;
  color: var(--muted);
}

.booking-confirm-note,
.booking-summary {
  padding: 16px;
  border-radius: 10px;
  color: var(--muted);
  background: var(--mist);
}

.booking-summary {
  display: grid;
  gap: 4px;
  margin-bottom: 24px;
}

.booking-summary strong {
  color: var(--ink);
}

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

.booking-success {
  max-width: 620px;
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  color: #15803d;
  background: #dcfce7;
  font-size: 32px;
  font-weight: 900;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  background: #f5f7fa;
}

.admin-page .site-header,
.admin-page .site-footer {
  display: none;
}

.admin-page {
  background: #eef2f7;
}

.admin-page[data-admin-source="static"] main,
.admin-page[data-admin-source="static"] footer,
.admin-page[data-admin-source="static"] .cookie-consent {
  display: none !important;
}

.admin-page[data-admin-source="static"] {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #0f1f33;
}

.admin-page[data-admin-source="static"]::before {
  content: "Adminbereich nur über den geschützten Login erreichbar.";
  display: block;
  max-width: 520px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  font-weight: 800;
  text-align: center;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 16px;
  color: var(--white);
  background: linear-gradient(180deg, #12243a 0%, #0c1726 100%);
  box-shadow: 16px 0 34px rgba(15, 23, 42, 0.12);
}

.admin-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 900;
}

.admin-brand img {
  width: auto;
  height: 46px;
}

.admin-brand span {
  letter-spacing: 0;
}

.admin-sidebar nav {
  display: grid;
  gap: 4px;
  overflow: auto;
  padding-right: 4px;
}

.admin-nav-group {
  display: block;
  margin: 12px 8px 4px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-sidebar button,
.admin-back {
  width: 100%;
  min-height: 38px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
}

.admin-sidebar button[data-admin-icon] {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.admin-sidebar button[data-admin-icon]::before {
  content: attr(data-admin-icon);
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 900;
}

.admin-sidebar button:hover,
.admin-sidebar button.active,
.admin-back:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 3px 0 0 var(--gold);
}

.admin-sidebar button.active::before,
.admin-sidebar button:hover::before {
  border-color: rgba(197, 151, 85, 0.7);
  color: #fff;
  background: rgba(197, 151, 85, 0.22);
}

.admin-back {
  margin-top: auto;
}

.admin-main {
  min-width: 0;
  padding: 28px 34px 42px;
}

.admin-topbar {
  position: static;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin: -28px -34px 26px;
  padding: 22px 34px 18px;
  border-bottom: 1px solid rgba(19, 34, 56, 0.08);
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(14px);
}

.admin-topbar h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 42px);
}

.admin-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-topbar-actions .button {
  width: auto;
  margin: 0;
}

.admin-status {
  display: none;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #17663a;
  background: #dcfce7;
  font-weight: 800;
}

.admin-status.is-visible {
  display: block;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.admin-card {
  padding: 24px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.admin-card small {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.admin-card strong {
  display: block;
  margin: 10px 0;
  font-size: inherit;
}

.admin-grid > .admin-card > strong {
  font-size: 42px;
}

.admin-workspace {
  display: grid;
  gap: 22px;
}

.admin-monitor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.monitor-card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.monitor-card .small-button {
  width: fit-content;
  margin-top: 16px;
}

.monitor-card strong {
  margin: 12px 0 8px;
  font-size: 24px;
}

.admin-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.admin-checklist span {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.admin-checklist span::before {
  content: "✓";
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #7ca35f;
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(180deg, #77c15e 0%, #2b8f32 100%);
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.55);
}

.academy-grid,
.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.academy-grid article,
.reference-grid article {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.academy-grid small,
.reference-grid small {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.academy-grid h3,
.reference-grid h3 {
  margin: 14px 0 10px;
}

.academy-grid p,
.reference-grid p {
  color: var(--muted);
}

.academy-grid a,
.reference-grid a {
  margin-top: auto;
  color: var(--navy);
  font-weight: 900;
}

.academy-hero-pro {
  background:
    linear-gradient(90deg, rgba(13, 29, 49, 0.96) 0%, rgba(13, 29, 49, 0.86) 58%, rgba(13, 29, 49, 0.74) 100%),
    url("assets/hero-schulung.jpg") center/cover no-repeat;
}

.academy-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.academy-blog-grid article {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.academy-blog-grid .academy-featured {
  grid-column: span 2;
  color: #fff;
  background: linear-gradient(135deg, #10243b 0%, #1d3d61 100%);
}

.academy-blog-grid small,
.academy-norm-grid span {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.academy-blog-grid h3 {
  margin: 14px 0 12px;
}

.academy-blog-grid p {
  color: var(--muted);
}

.academy-blog-grid .academy-featured p {
  color: rgba(255, 255, 255, 0.78);
}

.academy-blog-grid a {
  margin-top: auto;
  color: var(--navy);
  font-weight: 900;
}

.academy-blog-grid .academy-featured a {
  color: #fff;
}

.academy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 18px;
}

.academy-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 800;
}

.academy-article-stack {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.academy-longread {
  padding: 30px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.academy-longread h3 {
  margin: 4px 0 16px;
  font-size: clamp(24px, 3vw, 34px);
}

.academy-longread p {
  max-width: 980px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.academy-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 8px;
  background: var(--mist);
}

.academy-next-step span {
  color: var(--muted);
  font-weight: 800;
}

.academy-next-step a {
  color: var(--navy);
  font-weight: 900;
}

.academy-cluster {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.academy-cluster.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr);
}

.academy-cluster.reverse > div:first-child {
  order: 2;
}

.academy-topic-list {
  display: grid;
  gap: 12px;
}

.academy-topic-list article {
  padding: 20px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 8px;
  background: #fff;
}

.academy-topic-list strong,
.academy-topic-list span {
  display: block;
}

.academy-topic-list span {
  margin-top: 8px;
  color: var(--muted);
}

.academy-norm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.academy-norm-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.knowledge-hero,
.reference-hero {
  position: relative;
  padding: 120px 0 90px;
  color: var(--white);
  background: radial-gradient(circle at 80% 10%, rgba(197, 151, 85, 0.22), transparent 34%), linear-gradient(135deg, #0d1d31 0%, #162d49 58%, #0b1117 100%);
  overflow: hidden;
}

.knowledge-hero::after,
.reference-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -34% 46%;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px 0 0 0;
  transform: rotate(-8deg);
}

.knowledge-hero-grid,
.reference-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
  gap: 52px;
  align-items: center;
}

.knowledge-hero h1,
.reference-hero h1 {
  max-width: 820px;
  color: var(--white);
  font-size: clamp(42px, 6vw, 76px);
}

.knowledge-hero p,
.reference-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.knowledge-index,
.reference-proof-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.knowledge-index a,
.reference-proof-panel span {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.knowledge-index span {
  color: var(--gold);
  font-size: 14px;
}

.academy-grid.premium article,
.reference-grid.premium article {
  position: relative;
  min-height: 300px;
  border-radius: 10px;
  overflow: hidden;
}

.academy-grid.premium article::before,
.reference-grid.premium article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.knowledge-cta,
.reference-review-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 40px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.reference-process {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.reference-process ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: reference-step;
}

.reference-process li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 12px;
  background: #fff;
}

.reference-process li::before {
  counter-increment: reference-step;
  content: counter(reference-step, decimal-leading-zero);
  color: var(--gold);
  font-weight: 900;
}

.reference-process span {
  grid-column: 2;
  color: var(--muted);
}

.reference-hero-pro {
  padding: 118px 0 92px;
  background:
    linear-gradient(90deg, rgba(13, 29, 49, 0.94) 0%, rgba(13, 29, 49, 0.86) 52%, rgba(13, 29, 49, 0.7) 100%),
    url("assets/hero-command.jpg") center/cover no-repeat;
}

.reference-metric-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.reference-metric-panel article {
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.reference-metric-panel strong {
  display: block;
  color: var(--gold);
  font-size: 34px;
  line-height: 1;
}

.reference-metric-panel span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.reference-sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.reference-sector-grid article {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.reference-sector-grid small,
.reference-sector-grid > article > span {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reference-sector-grid h3 {
  margin: 18px 0 12px;
}

.reference-sector-grid p {
  color: var(--muted);
}

.reference-project-board {
  display: grid;
  gap: 14px;
}

.reference-project-row,
.reference-project-board > article {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr) minmax(220px, 0.55fr);
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.reference-project-row small,
.reference-project-board > article small {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reference-project-row strong,
.reference-project-board > article > strong {
  color: var(--ink);
  font-size: 20px;
}

.reference-project-row p,
.reference-project-board > article > p {
  margin: 0;
  color: var(--muted);
}

.reference-project-row .project-result,
.reference-project-board > article > strong {
  justify-self: end;
  padding: 12px 14px;
  border-radius: 6px;
  color: var(--navy);
  background: #eef4fb;
  font-weight: 900;
  text-align: right;
}

/* Windows-XP-inspirierte Adminoberfläche */
.admin-page[data-admin-source="session"] {
  --xp-blue: #245edb;
  --xp-blue-dark: #083a8f;
  --xp-green: #3da33d;
  --xp-silver: #ece9d8;
  background: #3a6ea5;
}

.admin-page[data-admin-source="session"] .admin-shell {
  grid-template-columns: 292px minmax(0, 1fr);
  background: var(--xp-silver);
}

.admin-page[data-admin-source="session"] .admin-sidebar {
  padding: 16px 12px;
  border-right: 2px solid #003c8f;
  background: linear-gradient(180deg, #2d7df0 0%, #0b48b4 48%, #083a8f 100%);
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.25), 8px 0 24px rgba(0, 0, 0, 0.18);
}

.admin-page[data-admin-source="session"] .admin-brand {
  min-height: 74px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.28);
}

.admin-page[data-admin-source="session"] .admin-nav-group {
  margin-top: 14px;
  color: #dce9ff;
  text-shadow: 0 1px rgba(0, 0, 0, 0.25);
}

.admin-page[data-admin-source="session"] .admin-sidebar button,
.admin-page[data-admin-source="session"] .admin-back {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  color: #fff;
  background: rgba(0, 35, 100, 0.14);
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.15);
}

.admin-page[data-admin-source="session"] .admin-sidebar button:hover,
.admin-page[data-admin-source="session"] .admin-sidebar button.active,
.admin-page[data-admin-source="session"] .admin-back:hover {
  background: linear-gradient(180deg, #6fbd55 0%, #2f8c2f 100%);
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.38), inset -1px -1px rgba(0, 0, 0, 0.18);
}

.admin-page[data-admin-source="session"] .admin-sidebar button[data-admin-icon]::before {
  border-radius: 3px;
  color: #06326c;
  background: linear-gradient(180deg, #fff 0%, #c9dcff 100%);
}

.admin-page[data-admin-source="session"] .admin-main {
  background: var(--xp-silver);
}

.admin-page[data-admin-source="session"] .admin-topbar {
  color: #fff;
  border-bottom: 2px solid #f4c65b;
  background: linear-gradient(180deg, #1e7cf2 0%, #0944a4 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.32), 0 2px 10px rgba(0, 0, 0, 0.18);
}

.admin-page[data-admin-source="session"] .admin-topbar h1,
.admin-page[data-admin-source="session"] .admin-topbar .eyebrow {
  color: #fff;
}

.admin-page[data-admin-source="session"] .admin-card,
.admin-page[data-admin-source="session"] .admin-kpi,
.admin-page[data-admin-source="session"] .status-metric,
.admin-page[data-admin-source="session"] .work-item,
.admin-page[data-admin-source="session"] .schedule-row {
  border: 1px solid #9db7d7;
  border-radius: 5px;
  background: #fff;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #d0d0d0, 0 8px 18px rgba(30, 60, 90, 0.06);
}

.admin-page[data-admin-source="session"] .button,
.admin-page[data-admin-source="session"] .small-button {
  border-radius: 4px;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.55), inset -1px -1px rgba(0, 0, 0, 0.16);
}

.admin-page[data-admin-source="session"] .button-soft {
  color: #0c2d57;
  background: linear-gradient(180deg, #ffffff 0%, #dbe8fb 100%);
}

.sub-hero + .section .mini-grid article,
.city-link-grid a,
.seo-group-grid article {
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.city-link-grid a {
  border-left: 4px solid rgba(197, 151, 85, 0.55);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.region-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: -6px 0 28px;
}

.region-value-grid article {
  min-height: 126px;
  padding: 22px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.region-value-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.region-value-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.admin-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-wide {
  margin-top: 18px;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  margin-bottom: 22px;
}

.admin-section-head h2,
.admin-card h2 {
  margin-bottom: 8px;
}

.admin-section-head p {
  margin: 0;
  color: var(--muted);
}

.admin-table {
  display: grid;
  gap: 14px;
}

.pricing-admin-card {
  margin-bottom: 18px;
}

.pricing-admin-grid {
  display: grid;
  gap: 12px;
}

.pricing-admin-row,
.pricing-admin-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(140px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 8px;
  background: #f8fafc;
}

.pricing-admin-row strong {
  align-self: center;
}

.tool-visibility-card {
  margin-bottom: 18px;
}

.tool-visibility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tool-visibility-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 8px;
  background: #f8fafc;
}

.tool-visibility-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.tool-visibility-row span,
.tool-visibility-row small {
  display: block;
}

.tool-visibility-row small {
  margin-top: 4px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .pricing-admin-row,
  .pricing-admin-form {
    grid-template-columns: 1fr;
  }

  .tool-visibility-grid {
    grid-template-columns: 1fr;
  }
}

.admin-search {
  width: 100%;
  min-height: 46px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: #f8fafc;
}

.compact-admin-list {
  gap: 8px;
}

.compact-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.compact-admin-row strong,
.compact-admin-row span {
  display: block;
}

.compact-admin-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.compact-editor {
  grid-column: 1 / -1;
  padding-top: 12px;
}

.company-access-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.course-workbench {
  display: grid;
  gap: 20px;
}

.course-workbench h3 {
  margin-bottom: 10px;
}

.admin-master-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.55fr);
  gap: 18px;
  align-items: start;
}

.admin-master-list {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.admin-master-list-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.admin-master-list-head h3 {
  margin: 0;
}

.admin-master-list-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-master-sublist {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(19, 34, 56, 0.1);
}

.admin-master-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.admin-master-row:hover,
.admin-master-row.active {
  border-color: rgba(194, 148, 85, 0.55);
  background: #fff;
  box-shadow: 0 14px 34px rgba(19, 34, 56, 0.08);
}

.admin-master-row:hover {
  transform: translateY(-1px);
}

.admin-master-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e8eef6;
  color: var(--navy);
}

.admin-master-row.active .admin-master-icon {
  background: rgba(194, 148, 85, 0.18);
  color: #9c6c2d;
}

.admin-master-copy {
  min-width: 0;
}

.admin-master-copy strong,
.admin-master-copy span {
  display: block;
}

.admin-master-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-master-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-detail-pane {
  min-width: 0;
}

.admin-detail-empty {
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 34px;
  border: 1px dashed rgba(19, 34, 56, 0.18);
  border-radius: 14px;
  background: #f8fafc;
  text-align: center;
}

.admin-detail-empty .admin-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .admin-master-detail {
    grid-template-columns: 1fr;
  }

  .admin-master-list {
    position: static;
  }
}

.compact-admin-row.course-list-row,
.compact-admin-row.request-list-row {
  grid-template-columns: minmax(0, 1fr) 108px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 6px 0 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.status-pill.ok {
  background: #e8f5ee;
  color: #197347;
}

.status-pill.success {
  background: #e8f5ee;
  color: #197347;
}

.status-pill.info {
  background: #eaf2ff;
  color: #1d4ed8;
}

.status-pill.warning {
  background: #fff6e6;
  color: #9a641b;
}

.status-pill.danger {
  background: #fdecec;
  color: #b42318;
}

.status-pill.neutral {
  background: #eef2f6;
  color: #51606f;
}

.admin-status-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.status-action {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid #c7d3e1;
  border-radius: 5px;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, #eef4fb 100%);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.status-action span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.status-action.danger span {
  background: #d92d20;
}

.status-action.warning span {
  background: #f5b342;
}

.status-action.ok span {
  background: #1b9b59;
}

.status-action.is-active {
  border-color: var(--navy);
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(36, 94, 219, 0.22);
}

.admin-nav-badge,
.portal-tab-badge {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: #d92d20;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.role-card {
  padding: 18px;
}

.role-card p {
  min-height: 54px;
}

.role-permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.role-permissions span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f4f7fb;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-list article {
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #f8fafc;
}

.task-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.workflow-dashboard {
  display: grid;
  gap: 18px;
}

.workflow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: var(--white);
}

.workflow-head small,
.work-item small {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-head h2 {
  margin: 4px 0 6px;
}

.workflow-head p {
  margin: 0;
  color: var(--muted);
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.admin-kpi {
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 18px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(19, 34, 56, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-kpi:hover,
.admin-kpi:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(191, 146, 91, 0.42);
  box-shadow: 0 16px 36px rgba(19, 34, 56, 0.08);
}

.admin-kpi span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-kpi strong {
  font-size: 34px;
  line-height: 1;
}

.admin-kpi small {
  align-self: end;
  color: var(--muted);
  font-weight: 700;
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.workflow-grid.secondary {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.workflow-card h3 {
  margin-bottom: 14px;
}

.workflow-steps,
.work-list,
.schedule-list,
.status-metrics {
  display: grid;
  gap: 10px;
}

.workflow-step,
.status-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.workflow-step strong,
.status-metric strong {
  display: inline-grid;
  min-width: 34px;
  height: 30px;
  place-items: center;
  margin: 0;
  border-radius: 999px;
  background: var(--white);
  font-size: 15px;
}

.workflow-step.warning strong,
.work-item.warning {
  border-color: rgba(191, 133, 58, 0.35);
}

.workflow-step.danger strong,
.work-item.danger {
  border-color: rgba(180, 35, 24, 0.3);
}

.workflow-step.ok strong {
  color: #197347;
}

.work-item,
.schedule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

button.schedule-row {
  width: 100%;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

button.schedule-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(19, 34, 56, 0.08);
}

.planning-gap-row {
  border-left: 4px solid #93c5fd;
}

.planning-gap-row.warning {
  border-left-color: var(--gold);
}

.planning-gap-row.danger {
  border-left-color: #dc2626;
}

.planning-gap-row small {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.work-item strong,
.work-item span,
.schedule-row strong,
.schedule-row span {
  display: block;
}

.work-item span,
.schedule-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.diagnostics-output {
  margin-top: 14px;
}

.diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.diagnostics-grid article {
  padding: 14px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.diagnostics-grid small,
.diagnostics-grid span {
  display: block;
}

.diagnostics-grid small {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.diagnostics-grid strong {
  display: block;
  margin: 6px 0;
}

.diagnostics-wide {
  grid-column: 1 / -1;
}

.diagnostics-wide div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 14px;
}

.diagnostics-table-wrap {
  overflow-x: auto;
}

.diagnostics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.diagnostics-table th,
.diagnostics-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(19, 34, 56, 0.08);
  vertical-align: top;
}

.diagnostics-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.portal-thread-history {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.portal-thread-history.compact {
  margin-top: 10px;
}

.portal-thread-entry {
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  background: #f8fafc;
}

.portal-thread-entry.admin {
  background: rgba(199, 154, 91, 0.1);
}

.portal-thread-entry strong,
.portal-thread-entry span,
.portal-thread-entry p {
  display: block;
}

.portal-thread-entry span {
  color: var(--muted);
  margin-top: 2px;
  font-size: 0.88rem;
}

.portal-thread-entry p {
  margin: 8px 0 0;
  white-space: pre-wrap;
}

.portal-inline-reply {
  margin-top: -6px;
  padding: 0 2px 14px;
}

.portal-inline-reply textarea {
  width: 100%;
  min-height: 90px;
  margin-top: 8px;
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(199, 154, 91, 0.18);
  color: var(--navy);
  font-weight: 700;
}

.portal-error-card .admin-actions {
  margin-top: 16px;
}

.page-management-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.page-management-tools {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.page-management-tools label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
}

.page-management-hints,
.page-editor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-management-hints span,
.page-editor-meta span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 4px;
  color: var(--navy);
  background: #eef4fb;
  font-size: 12px;
  font-weight: 900;
}

.page-list {
  position: static;
  display: grid;
  gap: 8px;
}

.page-list-group {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.72);
}

.page-list-group-title {
  margin: 2px 4px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-list button {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcfd;
  text-align: left;
  cursor: pointer;
}

.page-list button.active {
  border-color: var(--gold);
  background: rgba(191, 148, 90, 0.08);
}

.page-list span {
  color: var(--muted);
  font-size: 12px;
}

.page-editor-host {
  min-width: 0;
}

.managed-page-editor {
  display: grid;
  gap: 14px;
}

.page-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.page-editor-toolbar .small-button {
  width: auto;
  min-height: 38px;
}

.managed-page-editor .structured-editor-block {
  scroll-margin-top: 24px;
}

.suggestion-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
}

.suggestion-card p {
  color: var(--muted);
}

.suggestion-card .small-button {
  width: fit-content;
  margin-top: auto;
}

.managed-page-editor > label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
}

.managed-page-editor input,
.managed-page-editor textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid rgba(19, 34, 56, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.admin-row {
  display: grid;
  grid-template-columns: 150px minmax(180px, 1fr) 150px 110px 110px 90px 110px 100px;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: #fbfcfd;
}

.admin-row label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
}

.admin-row input,
.admin-row select,
.admin-row textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid rgba(19, 34, 56, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.admin-row textarea {
  resize: vertical;
}

.admin-row .inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.admin-row .inline-check input {
  width: auto;
  min-height: auto;
}

.small-button.danger {
  border: 0;
  background: #b42318;
  cursor: pointer;
}

.registration-row {
  grid-template-columns: minmax(220px, 1fr) 150px minmax(220px, 0.9fr) 130px;
}

.registration-row div,
.registration-row span {
  display: grid;
  gap: 4px;
}

.registration-row strong {
  font-size: 18px;
}

.registration-row small,
.registration-row span {
  color: var(--muted);
}

.page-row {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.portal-course-row,
.portal-company-row,
.portal-participant-row,
.portal-registration-row,
.portal-service-row,
.existing-page-row {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.portal-company-row,
.portal-service-row {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.portal-course-row label:last-of-type,
.portal-company-row label:nth-last-of-type(-n + 2),
.portal-participant-row label:last-of-type,
.portal-registration-row label:last-of-type,
.portal-service-row label:last-of-type,
.existing-page-row label:nth-last-of-type(-n + 3) {
  grid-column: 1 / -1;
}

.portal-company-row > .portal-access-card,
.portal-service-row > .portal-access-card {
  grid-column: 1 / -1;
}

.course-workbook {
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(19, 34, 56, 0.08);
}

.course-workbook-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 20px 0;
}

.course-workbook-head small {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.course-workbook-head h3 {
  margin: 4px 0 6px;
  color: var(--ink);
}

.course-workbook-head p {
  margin: 0;
  color: var(--muted);
}

.course-workbook-status,
.course-workbook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.course-workbook-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 20px;
}

.course-workbook-metrics span {
  min-height: 74px;
  padding: 14px;
  border-radius: 14px;
  background: #f4f7fb;
  color: var(--muted);
  font-weight: 800;
}

.course-workbook-metrics strong {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.1;
}

.course-workbook-tabs {
  display: flex;
  gap: 8px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(19, 34, 56, 0.08);
  overflow-x: auto;
}

.course-workbook-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 13px 12px 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.course-workbook-tabs button.active,
.course-workbook-tabs button:hover {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.course-tab-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  padding: 20px;
}

.course-tab-panel:not(.active),
.course-tab-panel[hidden] {
  display: none;
}

.course-tab-panel > section,
.course-notes-field {
  grid-column: 1 / -1;
}

.course-notes-field textarea {
  min-height: 150px;
}

.course-workbook-actions {
  padding: 0 20px 20px;
}

.portal-invoice-row {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 12px;
  background: #fbfcfd;
}

.invoice-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(19, 34, 56, 0.1);
}

.invoice-editor-head small {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invoice-editor-head h3 {
  margin: 4px 0;
  color: var(--navy);
}

.invoice-editor-head p {
  margin: 0;
  color: var(--muted);
  white-space: pre-line;
}

.invoice-editor-total {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 12px;
  min-width: 170px;
  align-content: start;
  text-align: right;
}

.invoice-editor-total span {
  color: var(--muted);
  font-size: 12px;
}

.invoice-editor-total strong {
  color: var(--navy);
}

.invoice-editor-section {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 10px;
  background: #fff;
}

.invoice-editor-section legend {
  padding: 0 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.invoice-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
}

.portal-invoice-row label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.portal-invoice-row label span {
  display: none;
}

.invoice-wide-field {
  grid-column: 1 / -1;
}

.invoice-items {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.invoice-item-head,
.invoice-item-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 86px 110px 120px 86px 100px 96px;
  gap: 10px;
  align-items: end;
}

.invoice-item-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.invoice-item-row {
  padding: 12px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: var(--mist);
}

.invoice-item-row strong {
  min-height: 42px;
  display: grid;
  align-items: center;
  justify-content: end;
  color: var(--navy);
}

.existing-page-title {
  display: grid;
  gap: 5px;
  align-self: center;
}

.existing-page-title span {
  color: var(--muted);
  font-size: 12px;
}

.structured-editor-block {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: #f6f8fb;
}

.structured-editor-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(220px, 1fr) minmax(180px, 0.7fr);
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 8px;
  background: var(--white);
}

.structured-editor-row legend {
  padding: 0 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.faq-editor-row {
  grid-template-columns: minmax(220px, 0.75fr) minmax(260px, 1fr);
}

.certificate-list {
  gap: 12px;
}

.certificate-admin-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: #fbfcfd;
}

.certificate-admin-row div {
  display: grid;
  gap: 5px;
}

.certificate-admin-row span {
  color: var(--muted);
}

.page-row label:nth-child(5),
.admin-actions {
  grid-column: 1 / -1;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-admin,
.empty-state {
  color: var(--muted);
}

.custom-page-copy {
  max-width: 900px;
}

.suggestions-grid .admin-card h2 {
  font-size: 21px;
}

.portal-landing-hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.portal-landing-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 56px;
  align-items: center;
  padding: 150px 0 96px;
}

.portal-landing-content h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(44px, 6vw, 74px);
}

.portal-landing-content p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.7;
}

.portal-login-panel {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--white);
  background: rgba(19, 34, 56, 0.86);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.portal-login-panel img {
  width: auto;
  height: 58px;
}

.portal-login-panel h2,
.portal-login-panel p {
  margin: 0;
}

.portal-login-panel p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.5;
}

.portal-login-panel label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.portal-login-panel input {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.portal-login-panel .button {
  width: 100%;
  justify-content: center;
}

.portal-feature-section {
  margin-top: 0;
}

.portal-impressions {
  position: relative;
}

.portal-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 22px;
  align-items: stretch;
}

.portal-showcase-main {
  min-height: 100%;
}

.portal-side-shots {
  display: grid;
  gap: 14px;
}

.portal-side-shots article {
  padding: 22px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(19, 34, 56, 0.06);
}

.portal-side-shots span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-side-shots strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.portal-side-shots p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.portal-choice-section {
  color: var(--white);
  background: var(--navy);
}

.portal-choice-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.portal-choice-layout h2 {
  color: var(--white);
  font-size: clamp(31px, 4vw, 44px);
  line-height: 1.12;
}

.portal-choice-layout p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.72;
}

.portal-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.portal-feature-grid article {
  min-height: 210px;
  padding: 26px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: var(--white);
}

.portal-feature-grid span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: var(--white);
  background: var(--gold);
  font-weight: 900;
}

.portal-feature-grid h3 {
  margin-bottom: 10px;
}

.portal-feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.portal-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 96px 18px;
  background: linear-gradient(135deg, rgba(19, 34, 56, 0.96), rgba(33, 49, 74, 0.96));
}

.portal-page.auth-page {
  display: block;
  padding: 0;
  background: linear-gradient(135deg, rgba(19, 34, 56, 0.96), rgba(33, 49, 74, 0.96));
}

.auth-main {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: 140px 18px 72px;
}

.auth-layout {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 34px;
  align-items: center;
}

.auth-intro {
  padding: 34px 0;
  color: var(--white);
}

.auth-intro h2 {
  max-width: 620px;
  margin: 10px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.auth-intro p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.75;
}

.auth-footer .footer-main {
  padding-top: 48px;
}

.auth-footer .footer-bottom {
  padding-bottom: 28px;
}

.login-card {
  width: min(100%, 440px);
  display: grid;
  gap: 18px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.login-card img {
  width: auto;
  height: 62px;
}

.login-card h1,
.login-card p {
  margin: 0;
}

.login-card p:not(.form-status):not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.login-card form {
  display: grid;
  gap: 14px;
}

.login-card label,
.checkbox-line {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.login-card input {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.login-card .button {
  width: 100%;
  justify-content: center;
}

.portal-reset-box {
  padding: 14px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
}

.portal-reset-box summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
}

.portal-reset-form {
  margin-top: 14px;
}

.portal-reset-box label {
  color: var(--navy);
}

.portal-reset-box input {
  color: var(--ink);
  border-color: rgba(19, 34, 56, 0.18);
  background: #fff;
}

.portal-reset-box .button-soft {
  color: #071426 !important;
  border: 1px solid rgba(19, 34, 56, 0.14);
  background: #eef4fb;
}

.portal-reset-box .button-soft:hover,
.portal-reset-box .button-soft:focus-visible {
  color: #071426 !important;
  background: #dfeafa;
}

.portal-help,
.portal-help a {
  color: rgba(255, 255, 255, 0.8);
}

.checkbox-line {
  grid-template-columns: auto 1fr;
  align-items: center;
  align-self: end;
  min-height: 46px;
  padding: 12px 0;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
}

.portal-access-card {
  display: grid;
  gap: 6px;
  grid-column: 1 / -1;
  padding: 14px 16px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 10px;
  background: #f6f8fb;
}

.portal-access-card strong {
  color: var(--navy);
}

.portal-access-card span {
  color: var(--muted);
  font-size: 13px;
}

.portal-dashboard {
  min-height: 100vh;
  padding: 42px;
  background: #f5f7fa;
}

.portal-dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto 26px;
}

.portal-dashboard-head h1 {
  margin: 0 0 8px;
  color: var(--ink);
}

.portal-dashboard-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.portal-dashboard-head .button {
  width: auto;
  margin: 0;
}

.portal-dashboard-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.portal-dashboard-grid .admin-wide {
  grid-column: 1 / -1;
  margin-top: 0;
}

.portal-dashboard-grid > *,
.portal-hero-card > *,
.portal-panel > *,
.portal-section-split > *,
.portal-profile-grid > *,
.portal-worklist > *,
.portal-data-list > *,
.portal-data-row > *,
.portal-course-head > *,
.portal-row-actions > * {
  min-width: 0;
}

.portal-hero-card,
.portal-panel,
.portal-metric-card {
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(19, 34, 56, 0.04);
}

.portal-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 22px;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafd 100%);
}

.portal-hero-copy,
.portal-hero-side,
.portal-panel-head > div {
  min-width: 0;
}

.portal-hero-copy small,
.portal-panel-head small {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portal-hero-copy h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.portal-panel-head h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.portal-hero-copy p,
.portal-panel-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.portal-chip-row {
  margin-top: 18px;
}

.portal-hero-side {
  display: grid;
  gap: 14px;
}

.portal-focus-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: #fbfcfd;
}

.portal-focus-card span,
.portal-metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portal-focus-card strong,
.portal-metric-card strong {
  color: var(--ink);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.portal-focus-card small,
.portal-metric-card small,
.portal-muted {
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.portal-metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 14px;
}

.portal-location-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.portal-location-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-location-button {
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  text-align: left;
}

.portal-location-button strong {
  font-size: 14px;
  font-weight: 800;
}

.portal-location-button span {
  max-width: 260px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.portal-location-button.is-active {
  border-color: rgba(191, 148, 90, 0.6);
  color: var(--navy);
  background: rgba(191, 148, 90, 0.12);
}

.portal-metric-card {
  display: grid;
  gap: 10px;
  min-height: 124px;
  padding: 18px;
}

.portal-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0 2px;
}

.portal-tab-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.portal-tab-button .portal-tab-badge {
  margin-left: 2px;
  background: #d92d20;
}

.portal-tab-button:hover {
  border-color: rgba(191, 148, 90, 0.5);
  color: var(--navy);
}

.portal-tab-button.is-active {
  border-color: var(--gold);
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 10px 24px rgba(19, 34, 56, 0.14);
}

.portal-tab-panel-stack {
  display: grid;
  gap: 18px;
}

.portal-tab-panel {
  display: grid;
  gap: 18px;
}

.portal-tab-panel[hidden] {
  display: none;
}

.portal-section-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portal-panel {
  padding: 24px;
  overflow: hidden;
}

.portal-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.portal-toast {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 8px;
  color: #17663a;
  background: #dcfce7;
  font-weight: 800;
}

.portal-overview-card {
  align-self: stretch;
}

.portal-worklist,
.portal-data-list {
  display: grid;
  gap: 12px;
}

.portal-worklist-compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.portal-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.portal-profile-block {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: #fbfcfd;
}

.portal-profile-block strong {
  color: var(--ink);
}

.portal-profile-block span {
  color: var(--muted);
  line-height: 1.45;
}

.portal-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.portal-worklist {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 4px;
}

.portal-worklist div,
.portal-data-row {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: #fbfcfd;
}

.portal-worklist strong,
.portal-data-row strong,
.portal-profile-block strong,
.portal-course-card h3,
.portal-course-card p,
.portal-participant-list span,
.portal-tag {
  overflow-wrap: anywhere;
}

.portal-worklist span,
.portal-data-row span {
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.portal-data-row {
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  align-items: start;
  gap: 12px 16px;
}

.portal-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
  gap: 8px;
}

.portal-action-form,
.portal-course-list,
.portal-course-card,
.portal-participant-list,
.portal-request-admin-list {
  display: grid;
  gap: 14px;
}

.portal-action-form {
  margin-top: 8px;
  padding: 18px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.portal-action-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.portal-action-form input,
.portal-action-form select,
.portal-action-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(19, 34, 56, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

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

.portal-tools-context,
.portal-tools-note {
  min-height: 100%;
}

.portal-tool-card {
  display: grid;
  align-content: start;
}

.portal-tool-checks {
  display: grid;
  gap: 10px;
}

.portal-tool-checks.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-tool-checks label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 8px;
  background: var(--white);
  line-height: 1.35;
}

.portal-tool-checks input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
}

.portal-tool-output {
  margin-top: 14px;
}

.portal-tool-result {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(191, 148, 90, 0.3);
  border-radius: 8px;
  background: #fff8ed;
}

.portal-tool-result span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-tool-result strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.portal-tool-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-command-center {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.85fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.portal-command-copy,
.portal-today-card,
.portal-safety-card,
.portal-quick-actions,
.portal-premium-tools {
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(19, 34, 56, 0.08);
}

.portal-command-copy {
  display: grid;
  align-content: center;
  min-height: 300px;
  padding: 34px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(19, 34, 56, 0.98), rgba(24, 52, 84, 0.94)),
    radial-gradient(circle at 78% 10%, rgba(191, 148, 90, 0.28), transparent 34%);
}

.portal-command-copy small,
.portal-section-title small {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-command-copy h2 {
  margin: 10px 0 12px;
  color: var(--white);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
}

.portal-command-copy p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.65;
}

.portal-command-copy .portal-tag {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.portal-today-card,
.portal-safety-card {
  padding: 24px;
}

.portal-today-list,
.portal-status-list,
.portal-activity-list,
.portal-deadline-list {
  display: grid;
  gap: 10px;
}

.portal-today-item,
.portal-status-item,
.portal-activity-item,
.portal-deadline-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 12px;
  background: #f8fafc;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.portal-today-item:hover,
.portal-activity-item:hover,
.portal-deadline-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(19, 34, 56, 0.08);
}

.portal-today-item > span,
.portal-status-item > span {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 999px;
  background: #2563eb;
}

.portal-today-item.green > span,
.portal-status-item.green > span,
.portal-activity-item.green > span,
.portal-deadline-item.green > span {
  background: #16a34a;
}

.portal-today-item.orange > span,
.portal-status-item.orange > span,
.portal-activity-item.orange > span,
.portal-deadline-item.orange > span {
  background: #f59e0b;
}

.portal-today-item.red > span,
.portal-status-item.red > span,
.portal-activity-item.red > span,
.portal-deadline-item.red > span {
  background: #dc2626;
}

.portal-today-item.blue > span,
.portal-status-item.blue > span,
.portal-activity-item.blue > span,
.portal-today-item.info > span,
.portal-status-item.info > span,
.portal-activity-item.info > span,
.portal-deadline-item.blue > span {
  background: #2563eb;
}

.portal-today-item strong,
.portal-status-item strong,
.portal-activity-item strong,
.portal-deadline-item strong {
  display: block;
  color: var(--ink);
  line-height: 1.25;
}

.portal-today-item small,
.portal-status-item small,
.portal-activity-item small,
.portal-deadline-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.portal-deadline-item > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--navy);
  background: rgba(19, 34, 56, 0.08);
}

.portal-deadline-item.red {
  border-color: rgba(185, 28, 28, 0.22);
  background: #fff1f2;
}

.portal-deadline-item.orange {
  border-color: rgba(194, 149, 88, 0.38);
  background: #fff8ed;
}

.deadline-dashboard-list {
  display: grid;
  gap: 10px;
}

.deadline-filter-bar {
  display: grid;
  gap: 10px;
  margin: 16px 0 10px;
}

.deadline-filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.deadline-filter-bar input,
.deadline-filter-bar select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 10px;
  padding: 8px 11px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.deadline-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.portal-safety-score {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 128px;
  margin-bottom: 16px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.portal-safety-score.green {
  background: linear-gradient(135deg, #15803d, #16a34a);
}

.portal-safety-score.orange {
  background: linear-gradient(135deg, #b45309, #f59e0b);
}

.portal-safety-score.red {
  background: linear-gradient(135deg, #991b1b, #dc2626);
}

.portal-safety-score strong {
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1;
}

.portal-safety-score span {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
}

.portal-section-title {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.portal-section-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.5vw, 34px);
}

.portal-section-title p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.portal-quick-actions,
.portal-premium-tools {
  padding: 24px;
}

.portal-quick-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.portal-quick-action,
.portal-premium-tool {
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 12px;
  color: var(--ink);
  background: #f8fafc;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.portal-quick-action {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-height: 118px;
  padding: 16px;
  text-align: left;
}

.portal-quick-action span,
.portal-premium-tool span,
.portal-metric-card i,
.portal-tool-hint span,
.portal-activity-item > span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--white);
  background: var(--navy);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.portal-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-panel-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--navy);
  background: #eef2f6;
}

.portal-quick-action strong,
.portal-premium-tool strong {
  line-height: 1.25;
}

.portal-quick-action:hover,
.portal-premium-tool:hover {
  transform: translateY(-3px);
  border-color: rgba(191, 148, 90, 0.5);
  background: var(--white);
  box-shadow: 0 16px 34px rgba(19, 34, 56, 0.11);
}

.portal-premium-tool-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.portal-premium-tool {
  display: grid;
  gap: 10px;
  min-height: 172px;
  padding: 18px;
  text-align: left;
}

.portal-premium-tool small {
  color: var(--muted);
  line-height: 1.45;
}

.portal-tool-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr) auto;
  gap: 20px;
  align-items: center;
}

.portal-tool-hints {
  display: grid;
  gap: 10px;
}

.portal-tool-hint {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 12px;
  background: #f8fafc;
}

.portal-tool-hint span {
  color: var(--navy);
  background: #eef2f6;
}

.portal-tool-hint strong,
.portal-tool-hint small {
  display: block;
}

.portal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 28, 46, 0.62);
  backdrop-filter: blur(5px);
}

.portal-modal {
  display: grid;
  gap: 18px;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 18px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
}

.portal-modal-head {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.portal-modal-head small {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.portal-modal-head h2 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.portal-modal-head p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.6;
}

.portal-modal-close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 999px;
  color: var(--navy);
  background: #f8fafc;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.portal-modal-close:hover {
  border-color: rgba(194, 149, 88, 0.55);
  background: #fff8ed;
}

.portal-request-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-request-choice-grid article {
  padding: 16px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}

.portal-request-choice-grid strong,
.portal-request-choice-grid span {
  display: block;
}

.portal-request-choice-grid span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.portal-modal .portal-action-form {
  margin-top: 0;
}

.portal-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.portal-tool-hint small {
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.35;
}

.portal-premium-tool-cta {
  min-width: 230px;
  gap: 10px;
  white-space: nowrap;
}

.portal-metric-row-compact .portal-metric-card {
  min-height: 142px;
  box-shadow: 0 12px 28px rgba(19, 34, 56, 0.06);
}

.portal-metric-card i {
  margin-bottom: 2px;
  background: rgba(19, 34, 56, 0.92);
}

.portal-activity-item > span {
  width: 34px;
  height: 34px;
}

.portal-task-meta,
.portal-document-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.portal-task-meta > span,
.portal-document-filterbar > span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: #eef2f6;
  font-size: 12px;
  font-weight: 800;
}

.portal-document-filterbar {
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 12px;
  background: #f8fafc;
}

.document-upload-box,
.portal-upload-box,
.document-filter-bar,
.portal-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}

.document-upload-box > div,
.portal-upload-box > div {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
}

.document-upload-box strong,
.portal-upload-box strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.document-upload-box small,
.portal-upload-box small {
  color: var(--muted);
}

.document-upload-box label,
.portal-upload-box label,
.document-filter-bar label,
.portal-filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.document-upload-box input,
.document-upload-box select,
.document-upload-box textarea,
.portal-upload-box input,
.portal-upload-box select,
.portal-upload-box textarea,
.document-filter-bar input,
.document-filter-bar select,
.portal-filter-bar input,
.portal-filter-bar select {
  min-height: 42px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  text-transform: none;
}

.portal-form-wide,
.document-upload-box .invoice-wide-field,
.portal-upload-box .portal-form-wide {
  grid-column: 1 / -1;
}

.document-table .portal-document-row {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.deadline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.deadline-rule-list {
  display: grid;
  gap: 14px;
}

.deadline-rule-card,
.deadline-due-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.deadline-rule-card .form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.deadline-rule-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.deadline-rule-card input,
.deadline-rule-card select,
.deadline-rule-card textarea {
  min-height: 42px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  text-transform: none;
}

.deadline-due-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(19, 34, 56, 0.08);
}

.deadline-due-row > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(19, 34, 56, 0.08);
}

.deadline-due-row.warning {
  border-color: rgba(194, 149, 88, 0.4);
  background: #fff8ed;
}

.deadline-due-row.danger {
  border-color: rgba(185, 28, 28, 0.26);
  background: #fff1f2;
}

.portal-form-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.location-editor-list {
  display: grid;
  gap: 10px;
}

.location-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr) auto;
  gap: 10px;
  align-items: end;
}

.company-location-block {
  grid-column: 1 / -1;
}

.portal-course-card {
  padding: 18px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.portal-course-card h3,
.portal-course-card p {
  margin: 0;
}

.portal-course-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.portal-course-head > span {
  flex: 0 0 auto;
  max-width: 180px;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(191, 148, 90, 0.18);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  overflow-wrap: anywhere;
}

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

.portal-participant-list span {
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
}

.portal-request-admin-list {
  margin-bottom: 18px;
}

.portal-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 32px;
}

.portal-head h1 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 54px);
}

.portal-head p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

.portal-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portal-list {
  display: grid;
  gap: 12px;
}

.portal-list article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 8px;
  background: #fbfcfd;
}

.portal-list span {
  color: var(--muted);
  line-height: 1.5;
}

.career-hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 82px;
  color: var(--white);
  background: var(--navy);
}

.career-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 34, 56, 1), rgba(19, 34, 56, 0.92) 55%, rgba(19, 34, 56, 0.72));
}

.career-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.career-hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1.03;
}

.career-hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 19px;
  line-height: 1.72;
}

.career-hero .hero-actions {
  margin-top: 34px;
}

.career-visual {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.28);
}

.career-visual img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  opacity: 0.86;
}

.career-visual div {
  padding: 22px;
}

.career-visual strong,
.career-visual span {
  display: block;
}

.career-visual strong {
  color: var(--white);
  font-size: 21px;
}

.career-visual span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.64);
}

.career-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
  gap: 54px;
  align-items: start;
}

.career-intro h2 {
  color: var(--ink);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.12;
}

.career-intro p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.75;
}

.career-stats,
.career-benefit-grid,
.career-job-list {
  display: grid;
  gap: 16px;
}

.career-stats article,
.career-benefit-grid article,
.career-job-list article {
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 10px;
  background: var(--white);
}

.career-stats article {
  padding: 22px;
}

.career-stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 26px;
}

.career-stats span {
  color: var(--muted);
  line-height: 1.55;
}

.career-benefit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.career-benefit-grid article {
  min-height: 198px;
  padding: 24px;
}

.career-benefit-grid span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: rgba(191, 148, 90, 0.14);
  font-size: 25px;
  font-weight: 900;
}

.career-benefit-grid h3,
.career-job-list h3 {
  color: var(--ink);
}

.career-benefit-grid p,
.career-job-list p {
  color: var(--muted);
  line-height: 1.62;
}

.career-job-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 24px;
  align-items: center;
  padding: 24px;
}

.career-job-list small {
  color: var(--gold);
  font-weight: 900;
}

.career-job-list span {
  color: var(--muted);
  font-weight: 800;
}

.career-job-list .button {
  width: 100%;
}

.career-cta {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 34px;
  border-radius: 12px;
  color: var(--white);
  background: var(--navy);
}

.career-cta h2 {
  color: var(--white);
}

.career-cta p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.concept-hero {
  position: relative;
  overflow: hidden;
  padding: 126px 0 54px;
  color: var(--white);
  background: var(--navy);
}

.concept-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 34, 56, 1), rgba(19, 34, 56, 0.94) 54%, rgba(19, 34, 56, 0.7)), url("assets/hero-erste-hilfe.jpg") center / cover;
}

.concept-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  gap: 52px;
  align-items: center;
}

.concept-copy h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.05;
}

.concept-copy > p:not(.eyebrow) {
  max-width: 690px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.72;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-pills span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 800;
}

.command-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(13, 23, 36, 0.88);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.command-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.command-head h2 {
  margin: 0;
  color: var(--white);
  font-size: 20px;
}

.command-head span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.route-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.route-card:nth-child(2n) {
  border-right: 0;
}

.route-card.recommended {
  background: rgba(191, 148, 90, 0.13);
}

.route-card small {
  margin-bottom: 14px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.route-card h3 {
  margin-bottom: 10px;
  color: var(--white);
  font-size: 21px;
}

.route-card p {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.58;
  font-size: 14px;
}

.route-card a {
  margin-top: auto;
  color: var(--white);
  font-weight: 900;
}

.route-card.recommended a {
  color: var(--gold);
}

.decision-assistant {
  padding: 20px 22px 22px;
  background: rgba(255, 255, 255, 0.04);
}

.decision-assistant h3 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 18px;
}

.assistant-flow {
  display: grid;
  gap: 10px;
}

.assistant-flow div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.assistant-flow strong {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--navy);
  background: var(--gold);
  font-size: 13px;
}

.assistant-flow span {
  display: block;
  margin-bottom: 3px;
  color: var(--white);
  font-weight: 900;
}

.assistant-flow p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  line-height: 1.5;
}

.section-tight {
  padding: 64px 0;
}

.service-system {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 36px;
  align-items: start;
}

.system-intro {
  position: sticky;
  top: 110px;
}

.system-intro h2,
.final-decision h2 {
  color: var(--ink);
  font-size: clamp(31px, 4vw, 44px);
  line-height: 1.12;
}

.system-intro p,
.final-decision p {
  color: var(--muted);
  line-height: 1.72;
}

.seo-preview-hero .concept-hero-inner {
  align-items: stretch;
}

.seo-preview-panel {
  align-self: center;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: var(--white);
  background: rgba(8, 20, 36, 0.74);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.24);
}

.seo-preview-panel h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 28px;
}

.seo-preview-panel p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.seo-preview-flow {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.seo-preview-flow span {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.seo-impressions {
  display: grid;
  gap: 28px;
}

.seo-impression-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.seo-browser-card,
.seo-search-card,
.seo-route-card,
.seo-mini-pages article {
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 20px 50px rgba(19, 34, 56, 0.08);
}

.seo-browser-card {
  overflow: hidden;
  min-height: 360px;
}

.seo-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--navy);
}

.seo-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
}

.seo-browser-bar strong {
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.seo-browser-hero {
  min-height: 220px;
  padding: 34px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(19, 34, 56, 0.96), rgba(19, 34, 56, 0.76)),
    url("assets/hero-erste-hilfe.jpg") center/cover;
}

.seo-browser-hero p {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.seo-browser-hero h3 {
  max-width: 420px;
  margin: 18px 0 16px;
  color: var(--white);
  font-size: 36px;
  line-height: 1.08;
}

.seo-browser-hero span {
  display: block;
  max-width: 430px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.62;
}

.seo-browser-lines {
  display: grid;
  gap: 10px;
  padding: 22px 28px;
}

.seo-browser-lines i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: var(--mist);
}

.seo-browser-lines i:nth-child(2) {
  width: 82%;
}

.seo-browser-lines i:nth-child(3) {
  width: 56%;
}

.seo-search-card,
.seo-route-card {
  padding: 28px;
}

.seo-search-card small {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.seo-search-card h3 {
  color: #1a0dab;
  font-size: 22px;
  line-height: 1.25;
}

.seo-search-card p {
  margin: 14px 0;
  color: #4d5156;
  line-height: 1.55;
}

.seo-search-card span {
  color: #188038;
  line-height: 1.5;
}

.seo-route-card h3 {
  color: var(--ink);
  font-size: 28px;
  line-height: 1.18;
}

.seo-route-card div {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.seo-route-card span {
  padding: 13px 14px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--mist);
  font-weight: 900;
}

.seo-mini-pages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.seo-mini-pages article {
  padding: 24px;
}

.seo-mini-pages span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(191, 148, 90, 0.14);
  font-size: 12px;
  font-weight: 900;
}

.seo-mini-pages h3 {
  color: var(--ink);
  font-size: 22px;
}

.seo-mini-pages p {
  color: var(--muted);
  line-height: 1.58;
}

.seo-mini-pages a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--gold);
  font-weight: 900;
}

.seo-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.seo-group-grid article {
  padding: 26px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 10px;
  background: var(--white);
}

.seo-group-grid h3 {
  margin-bottom: 18px;
  color: var(--ink);
}

.seo-group-grid a {
  display: block;
  padding: 15px 0;
  border-top: 1px solid rgba(19, 34, 56, 0.08);
}

.seo-group-grid strong,
.seo-group-grid span {
  display: block;
}

.seo-group-grid strong {
  color: var(--ink);
}

.seo-group-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.seo-sample-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.seo-sample-page,
.seo-preview-sidebar {
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 10px;
  background: var(--white);
}

.seo-sample-page {
  padding: 38px;
}

.seo-sample-page h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.seo-sample-page .lead {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.seo-sample-page h3 {
  margin-top: 30px;
  color: var(--ink);
}

.seo-sample-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.seo-sample-facts span {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--mist);
  font-weight: 900;
}

.seo-preview-sidebar {
  position: sticky;
  top: 110px;
  padding: 26px;
}

.seo-preview-sidebar h3 {
  margin-bottom: 16px;
  color: var(--ink);
}

.seo-preview-sidebar li {
  margin: 12px 0;
  color: var(--muted);
}

.seo-landing-hero {
  position: relative;
  padding: 130px 0 92px;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(19, 34, 56, 0.96), rgba(19, 34, 56, 0.82)),
    url("assets/hero-erste-hilfe.jpg") center/cover;
}

.seo-landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: end;
}

.seo-landing-hero h1 {
  max-width: 850px;
  margin-bottom: 20px;
  color: var(--white);
  font-size: clamp(42px, 6.5vw, 76px);
  line-height: 1.03;
}

.seo-landing-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 21px;
  line-height: 1.68;
}

.seo-landing-hero aside {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(8, 20, 36, 0.62);
}

.seo-landing-hero aside strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.seo-landing-hero aside p {
  margin: 0;
  font-size: 17px;
}

.seo-landing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.process-cards.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-cards.compact article {
  min-height: auto;
}

.city-link-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.city-link-grid a {
  display: block;
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(19, 34, 56, 0.06);
}

.city-link-grid strong,
.city-link-grid span {
  display: block;
}

.city-link-grid strong {
  color: var(--ink);
  font-size: 20px;
}

.city-link-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.city-link-grid a:hover {
  border-color: rgba(191, 148, 90, 0.5);
  transform: translateY(-2px);
}

.city-landing-hero {
  background:
    linear-gradient(115deg, rgba(19, 34, 56, 0.96), rgba(19, 34, 56, 0.82)),
    url("assets/brandschutzhelfer.jpg") center/cover;
}

.cookie-consent {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  width: min(720px, calc(100% - 44px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: var(--white);
  background: rgba(19, 34, 56, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 20px;
}

.cookie-consent p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.cookie-consent a {
  color: var(--gold);
  font-weight: 900;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-actions .button {
  min-width: 132px;
  padding: 13px 18px;
}

.service-stack {
  display: grid;
  gap: 12px;
}

.service-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) minmax(190px, 0.35fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 10px;
  background: var(--white);
}

.service-row .service-icon,
.service-icon-pair span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 0;
  border-radius: 50%;
  color: var(--gold);
  background: var(--mist);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.service-icon-pair {
  display: flex;
  gap: 7px;
  align-items: center;
}

.service-icon-pair span {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.service-icon-pair span:first-child {
  transform: translateY(-8px);
}

.service-icon-pair span:last-child {
  transform: translateY(8px);
}

.service-row h3 {
  margin-bottom: 5px;
  color: var(--ink);
}

.service-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.service-actions span,
.service-actions a {
  display: block;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--mist);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.service-actions a:hover,
.service-actions a:focus-visible {
  color: var(--white);
  background: var(--gold);
}

.portal-band {
  color: var(--white);
  background: var(--navy);
}

.portal-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.portal-preview {
  padding: 18px;
  background: #eef3f8;
}

.portal-band .portal-preview {
  margin-top: 28px;
  padding: 0;
  background: transparent;
}

.portal-band h2 {
  color: var(--white);
  font-size: clamp(31px, 4vw, 44px);
  line-height: 1.12;
}

.portal-band p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.72;
}

.portal-window {
  overflow: hidden;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.portal-window-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(19, 34, 56, 0.08);
}

.portal-window-top strong {
  color: var(--ink);
}

.portal-window-top span,
.status-ready {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: #17663a;
  background: #dcfce7;
  font-size: 12px;
  font-weight: 900;
}

.portal-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.portal-metrics article {
  padding: 14px;
  border-radius: 8px;
  background: #f4f7fb;
}

.portal-metrics strong {
  display: block;
  color: var(--ink);
  font-size: 23px;
}

.portal-metrics span {
  color: rgba(19, 34, 56, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.portal-table {
  display: grid;
  padding: 0 16px 16px;
  gap: 8px;
}

.portal-table-row {
  display: grid;
  grid-template-columns: 1fr 0.85fr 0.75fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(19, 34, 56, 0.07);
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
  font-size: 13px;
}

.portal-table-row strong {
  color: var(--ink);
}

.status-ready {
  padding: 5px 8px;
  font-size: 11px;
}

.choice-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice-compare article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.choice-compare article.recommended {
  border-color: rgba(191, 148, 90, 0.56);
  background: rgba(191, 148, 90, 0.12);
}

.choice-compare h3 {
  color: var(--white);
}

.choice-compare ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.choice-compare li {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.choice-compare li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-1px);
}

.process-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(19, 34, 56, 0.08);
}

.process-cards article {
  min-height: 200px;
  padding: 26px;
  background: var(--white);
}

.process-cards span {
  display: block;
  margin-bottom: 28px;
  color: var(--gold);
  font-size: 26px;
  font-weight: 900;
}

.process-cards h3 {
  color: var(--ink);
}

.process-cards p {
  color: var(--muted);
  line-height: 1.6;
}

.final-decision {
  padding: 34px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 10px;
  background: var(--white);
}

.decision-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.decision-matrix article {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 8px;
  background: #f4f7fb;
}

.decision-matrix h3 {
  color: var(--ink);
}

.decision-matrix p {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.58;
}

.decision-matrix .button {
  width: 100%;
  margin-top: auto;
}

@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-header.is-open .mobile-nav {
    display: block;
  }

  .site-header.is-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .service-grid,
  .testimonial-grid,
  .trust-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

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

  .detail-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .sticky-card {
    position: static;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

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

  .admin-back {
    margin-top: 0;
  }

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

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

  .admin-monitor-grid,
  .admin-checklist,
  .academy-grid,
  .academy-blog-grid,
  .academy-cluster,
  .academy-cluster.reverse,
  .academy-norm-grid,
  .reference-grid,
  .reference-sector-grid,
  .reference-project-row,
  .reference-project-board > article,
  .page-management-tools {
    grid-template-columns: 1fr;
  }

  .reference-project-row .project-result,
  .reference-project-board > article > strong {
    justify-self: stretch;
    text-align: left;
  }

  .academy-blog-grid .academy-featured {
    grid-column: auto;
  }

  .academy-next-step {
    align-items: flex-start;
    flex-direction: column;
  }

  .academy-cluster.reverse > div:first-child {
    order: 0;
  }

  .knowledge-hero-grid,
  .reference-hero-grid,
  .auth-layout,
  .knowledge-cta,
  .reference-process,
  .reference-review-band,
  .region-value-grid {
    grid-template-columns: 1fr;
  }

  .concept-hero-inner,
  .service-system,
  .portal-band-grid,
  .portal-showcase,
  .portal-choice-layout,
  .career-hero-grid,
  .career-intro-grid,
  .seo-landing-hero-grid,
  .seo-landing-layout {
    grid-template-columns: 1fr;
  }

  .system-intro {
    position: static;
  }

  .page-management-layout {
    grid-template-columns: 1fr;
  }

  .page-list {
    position: static;
  }

  .admin-row,
  .registration-row,
  .page-row,
  .portal-course-row,
  .portal-company-row,
  .portal-participant-row,
  .portal-registration-row,
  .portal-service-row,
  .existing-page-row {
    grid-template-columns: 1fr;
  }

  .invoice-editor-head,
  .invoice-field-grid,
  .invoice-item-head,
  .invoice-item-row {
    grid-template-columns: 1fr;
  }

  .invoice-editor-head {
    display: grid;
  }

  .invoice-item-head {
    display: none;
  }

  .portal-invoice-row label span {
    display: block;
  }

  .portal-layout {
    grid-template-columns: 1fr;
  }

  .portal-landing-content,
  .portal-feature-grid {
    grid-template-columns: 1fr;
  }

  .portal-landing-content {
    gap: 32px;
  }

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

  .portal-command-center,
  .portal-tool-overview,
  .portal-premium-tool-grid,
  .portal-request-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-command-copy,
  .portal-tool-overview .portal-section-title {
    grid-column: 1 / -1;
  }

  .portal-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portal-tools-layout,
  .portal-tool-checks.compact {
    grid-template-columns: 1fr;
  }

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

  .route-grid,
  .choice-compare,
  .process-cards,
  .decision-matrix,
  .career-benefit-grid,
  .process-cards.compact {
    grid-template-columns: 1fr;
  }

  .city-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .route-card {
    min-height: auto;
    border-right: 0;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .career-job-list article {
    grid-template-columns: 1fr;
  }

  .career-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .page-row label:nth-child(5),
  .portal-course-row label:last-of-type,
  .portal-company-row label:nth-last-of-type(-n + 2),
  .portal-participant-row label:last-of-type,
  .portal-registration-row label:last-of-type,
  .portal-service-row label:last-of-type,
  .portal-invoice-row label:last-of-type,
  .existing-page-row label:nth-last-of-type(-n + 3),
  .structured-editor-block,
  .admin-actions {
    grid-column: auto;
  }

  .structured-editor-row,
  .faq-editor-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container,
  .header-inner,
  .mobile-nav {
    width: min(100% - 32px, 1280px);
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 128px 0 74px;
  }

  .concept-hero {
    padding: 118px 0 42px;
  }

  .portal-metrics,
  .portal-table-row {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .trust-row {
    display: grid;
    gap: 14px;
  }

  .section {
    padding: 72px 0;
  }

  .about-hero {
    padding: 120px 0 64px;
  }

  .about-section {
    padding: 64px 0;
  }

  .about-mission-card {
    margin-top: 56px;
    padding: 30px 24px;
  }

  .service-grid,
  .credibility-grid,
  .feature-list,
  .trust-metrics,
  .testimonial-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .credibility-grid article,
  .trust-metrics article {
    min-height: auto;
  }

  .not-found {
    min-height: auto;
    padding: 132px 0 82px;
  }

  .course-list article {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .date {
    width: 112px;
  }

  .small-button {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .city-link-grid,
  .seo-impression-grid,
  .seo-mini-pages,
  .seo-group-grid {
    grid-template-columns: 1fr;
  }

  .cookie-consent {
    right: 16px;
    bottom: 16px;
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
  }

  .cookie-actions {
    flex-direction: column-reverse;
  }

  .cookie-actions .button {
    width: 100%;
  }

  .form-card {
    padding: 24px;
  }

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

  .booking-step {
    width: min(100% - 32px, 920px);
    padding: 50px 0 64px;
  }

  .booking-progress {
    gap: 8px;
  }

  .progress-line {
    display: none;
  }

  .progress-item {
    flex: 1;
    width: auto;
  }

  .booking-service-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .booking-actions {
    flex-direction: column-reverse;
  }

  .booking-actions .button {
    width: 100%;
  }

  .booking-summary dl {
    grid-template-columns: 1fr;
  }

  .portal-landing-hero {
    min-height: auto;
  }

  .portal-landing-content {
    padding: 128px 0 72px;
  }

  .portal-login-panel {
    padding: 24px;
  }

  .admin-main {
    padding: 28px 16px;
  }

  .admin-topbar {
    margin: -28px -16px 22px;
    padding: 22px 16px 16px;
  }

  .admin-topbar,
  .admin-section-head,
  .portal-head,
  .portal-dashboard-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-sidebar nav {
    grid-template-columns: 1fr;
  }

  .portal-dashboard {
    padding: 28px 16px;
  }

  .portal-dashboard-grid,
  .portal-dashboard-grid .admin-wide {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .portal-hero-card,
  .portal-metric-row,
  .portal-section-split,
  .portal-command-center,
  .portal-tool-overview,
  .portal-quick-grid,
  .portal-premium-tool-grid,
  .portal-request-choice-grid {
    grid-template-columns: 1fr;
  }

  .portal-command-copy {
    min-height: auto;
    padding: 26px;
  }

  .portal-today-card,
  .portal-safety-card,
  .portal-quick-actions,
  .portal-premium-tools,
  .portal-panel,
  .portal-modal {
    padding: 18px;
  }

  .portal-modal-head,
  .portal-modal-foot {
    display: grid;
    justify-content: stretch;
  }

  .portal-premium-tool-cta {
    width: 100%;
  }

  .portal-worklist,
  .portal-data-row,
  .portal-course-head,
  .portal-profile-grid,
  .portal-worklist-compact {
    grid-template-columns: 1fr;
  }

  .portal-worklist,
  .portal-participant-list {
    grid-template-columns: 1fr;
  }

  .portal-course-head {
    display: grid;
  }

  .portal-row-actions {
    justify-content: stretch;
  }

  .portal-location-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .location-editor-row {
    grid-template-columns: 1fr;
  }

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

.admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.service-tool-panel {
  background: #eaf0f6;
}

.service-tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 26px;
  align-items: stretch;
}

.service-tool-layout > div,
.knowledge-link-strip {
  border: 1px solid rgba(15, 32, 51, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 32, 51, 0.06);
}

.service-tool-layout > div {
  padding: 34px;
}

.service-tool-layout h2 {
  margin: 0 0 14px;
  color: #071a33;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
}

.service-tool-layout p {
  color: #5f6f86;
  font-size: 18px;
  line-height: 1.7;
}

.service-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.knowledge-link-strip {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.knowledge-link-strip a {
  display: grid;
  gap: 7px;
  min-height: 96px;
  padding: 20px 22px;
  color: #071a33;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 32, 51, 0.08);
  transition: background 180ms ease, color 180ms ease;
}

.knowledge-link-strip a:last-child {
  border-bottom: 0;
}

.knowledge-link-strip a:hover {
  background: #13243a;
  color: #fff;
}

.knowledge-link-strip span {
  color: #c79a5a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.conversion-path {
  background: #fff;
}

.process-cards.compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.process-cards.compact article {
  min-height: 190px;
  padding: 26px;
  border: 1px solid rgba(15, 32, 51, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 32, 51, 0.05);
}

.process-cards.compact span {
  display: block;
  margin-bottom: 24px;
  color: #c79a5a;
  font-size: 24px;
  font-weight: 900;
}

.process-cards.compact h3 {
  margin: 0 0 10px;
  color: #071a33;
}

.process-cards.compact p {
  margin: 0;
  color: #5f6f86;
}

.regional-depth-block {
  border-left: 4px solid #c79a5a;
}

.regional-depth-grid .check-list {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .service-tool-layout,
  .process-cards.compact {
    grid-template-columns: 1fr;
  }

  .service-tool-layout > div {
    padding: 26px;
  }

  .service-tool-actions .button {
    width: 100%;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: 40px;
  }

  .brand img {
    height: 40px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .custom-date,
  blockquote,
  .feature-list article,
  .about-stat-card {
    padding: 24px;
  }
}

/* Portal desktop polish: ruhiger Windows-/Operations-Center-Look */
.admin-page[data-admin-source="session"] {
  background: #e7ecf3;
}

.admin-page[data-admin-source="session"] .admin-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(231, 236, 243, 0.94)),
    #e7ecf3;
}

.admin-page[data-admin-source="session"] .admin-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, #10243b 0%, #172d49 48%, #0e2035 100%);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.18), 8px 0 24px rgba(15, 32, 51, 0.08);
}

.admin-page[data-admin-source="session"] .admin-sidebar nav {
  gap: 6px;
}

.admin-page[data-admin-source="session"] .admin-sidebar button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
}

.admin-page[data-admin-source="session"] .admin-sidebar button:hover,
.admin-page[data-admin-source="session"] .admin-sidebar button.active {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 20px rgba(0, 0, 0, 0.12);
}

.admin-page[data-admin-source="session"] .admin-main {
  padding: 24px;
  background: #e7ecf3;
}

.admin-page[data-admin-source="session"] .admin-topbar {
  position: static;
  z-index: 20;
  border: 1px solid rgba(15, 32, 51, 0.1);
  border-radius: 14px;
  padding: 14px;
  background: rgba(248, 250, 252, 0.94);
  box-shadow: 0 14px 32px rgba(15, 32, 51, 0.1);
  backdrop-filter: blur(12px);
}

.admin-page[data-admin-source="session"] .admin-card,
.admin-page[data-admin-source="session"] .operations-hero,
.admin-page[data-admin-source="session"] .workflow-pipeline,
.portal-dashboard .admin-card,
.portal-command-copy,
.portal-today-card,
.portal-safety-card,
.portal-quick-actions,
.portal-premium-tools {
  border: 1px solid rgba(15, 32, 51, 0.12);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 32, 51, 0.08);
}

.admin-page[data-admin-source="session"] .admin-card {
  overflow: hidden;
}

.admin-page[data-admin-source="session"] .admin-section-head,
.portal-dashboard .admin-section-head {
  margin: -1px -1px 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 32, 51, 0.1);
  background: linear-gradient(180deg, #f8fbff 0%, #edf2f8 100%);
}

.admin-page[data-admin-source="session"] .admin-section-head h2,
.admin-page[data-admin-source="session"] .admin-section-head h3,
.portal-dashboard .admin-section-head h2,
.portal-dashboard .admin-section-head h3 {
  font-size: 20px;
}

.admin-page[data-admin-source="session"] .compact-admin-list,
.admin-page[data-admin-source="session"] .course-workbench,
.portal-worklist,
.portal-participant-list,
.portal-document-grid {
  gap: 10px;
}

.admin-page[data-admin-source="session"] .compact-admin-row,
.admin-page[data-admin-source="session"] .calendar-agenda-row,
.admin-page[data-admin-source="session"] .course-participant-list article,
.portal-data-row,
.portal-worklist article,
.portal-participant-card,
.portal-document-card {
  border: 1px solid rgba(15, 32, 51, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.admin-page[data-admin-source="session"] .calendar-layout {
  align-items: stretch;
}

.admin-page[data-admin-source="session"] .course-calendar {
  border: 1px solid rgba(15, 32, 51, 0.12);
  border-radius: 10px;
  background: #dfe7f1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.admin-page[data-admin-source="session"] .calendar-day {
  border-radius: 7px;
  background: #ffffff;
}

.admin-page[data-admin-source="session"] .calendar-course,
.admin-page[data-admin-source="session"] .portal-course-row,
.admin-page[data-admin-source="session"] .portal-company-row {
  border-left-width: 5px;
}

.admin-page[data-admin-source="session"] .button,
.admin-page[data-admin-source="session"] .small-button,
.portal-dashboard .button,
.portal-dashboard .small-button {
  border-radius: 7px;
}

.portal-dashboard {
  background: #e7ecf3;
}

.portal-dashboard-head {
  border: 1px solid rgba(15, 32, 51, 0.1);
  border-radius: 14px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 32, 51, 0.08);
}

.portal-command-center {
  align-items: stretch;
}

.portal-command-copy {
  border-color: rgba(15, 32, 51, 0.16);
  background:
    linear-gradient(135deg, rgba(16, 36, 59, 0.98), rgba(24, 52, 84, 0.94)),
    radial-gradient(circle at 82% 8%, rgba(194, 149, 88, 0.24), transparent 34%);
}

.portal-quick-action,
.portal-premium-tool,
.portal-today-item,
.portal-status-item,
.portal-activity-item,
.portal-deadline-item {
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
}

@media (max-width: 900px) {
  .admin-page[data-admin-source="session"] .admin-main {
    padding: 14px;
  }

  .admin-page[data-admin-source="session"] .admin-topbar {
    position: static;
  }
}

/* Admin operations dashboard */
.admin-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-nav-icon,
.admin-kpi-icon,
.workflow-step-icon,
.notification-row > span,
.activity-row > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.admin-sidebar button[data-admin-icon]::before,
.admin-page[data-admin-source="session"] .admin-sidebar button[data-admin-icon]::before {
  content: none;
  display: none;
}

.admin-sidebar button.active .admin-nav-icon,
.admin-sidebar button:hover .admin-nav-icon {
  color: var(--navy);
  background: var(--gold);
}

.admin-global-search {
  position: relative;
  display: grid;
  min-width: min(420px, 34vw);
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-global-search input {
  height: 46px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  text-transform: none;
}

.admin-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 20px 44px rgba(19, 34, 56, 0.16);
}

.admin-search-results button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: #f8fafc;
  text-align: left;
  cursor: pointer;
}

.admin-search-results button span {
  grid-row: span 2;
  color: var(--navy);
}

.operations-dashboard {
  gap: 20px;
}

.operations-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 20px;
  align-items: stretch;
  padding: 28px;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, #12243a 0%, #203956 100%);
  box-shadow: 0 22px 50px rgba(19, 34, 56, 0.16);
}

.operations-hero small,
.operations-hero-action small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.operations-hero h2 {
  margin: 8px 0;
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
}

.operations-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.operations-hero-action {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #164e32;
  background: #dcfce7;
  font-size: 12px;
  font-weight: 900;
}

.status-badge.warning {
  color: #7c4a03;
  background: #fef3c7;
}

.status-badge.danger {
  color: #991b1b;
  background: #fee2e2;
}

.status-badge.info {
  color: #1e3a8a;
  background: #dbeafe;
}

.operations-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.operations-status-strip span {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(19, 34, 56, 0.05);
}

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

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

.admin-kpi-primary,
.admin-kpi-secondary {
  border-radius: 14px;
}

.admin-kpi-primary {
  position: relative;
  overflow: hidden;
}

.admin-kpi-primary::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: #93c5fd;
}

.admin-kpi-primary.ok::after {
  background: #22c55e;
}

.admin-kpi-primary.warning::after {
  background: var(--gold);
}

.admin-kpi-primary.danger::after {
  background: #dc2626;
}

.admin-kpi-primary .admin-kpi-icon,
.admin-kpi-secondary .admin-kpi-icon {
  color: var(--navy);
  background: #eef2f6;
}

.workflow-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.workflow-pipeline .workflow-step {
  display: grid;
  align-content: start;
  min-height: 124px;
  border-radius: 14px;
}

.workflow-step.ok {
  border-color: rgba(34, 197, 94, 0.24);
}

.workflow-step.info {
  border-color: rgba(59, 130, 246, 0.24);
}

.workflow-step.warning {
  border-color: rgba(197, 151, 85, 0.38);
}

.workflow-step.danger {
  border-color: rgba(220, 38, 38, 0.28);
}

.workflow-step-icon {
  color: var(--navy);
  background: #eef2f6;
}

.dashboard-calendar-card {
  display: grid;
  gap: 16px;
}

.calendar-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dashboard-calendar-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-week-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-week-day {
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 12px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 16px;
  background: #f8fafc;
}

.dashboard-week-day.has-course {
  border-color: rgba(31, 111, 235, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
}

.dashboard-week-day header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-week-day header strong {
  color: var(--navy);
  font-size: 13px;
}

.dashboard-week-day header button {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: var(--navy);
  background: #e8eef5;
  cursor: pointer;
}

.dashboard-week-day header button:hover {
  color: var(--white);
  background: var(--navy);
}

.dashboard-week-day > div {
  display: grid;
  align-content: start;
  gap: 6px;
}

.dashboard-week-day p,
.dashboard-week-day small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-week-day .calendar-course {
  padding: 8px;
  border-radius: 10px;
  font-size: 12px;
}

.dashboard-week-day .calendar-course span,
.dashboard-week-day .calendar-course small {
  font-size: 11px;
}

.dashboard-calendar-agenda {
  display: grid;
  gap: 8px;
}

.dashboard-agenda-item {
  display: grid;
  grid-template-columns: auto minmax(160px, 0.7fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-left: 4px solid #93c5fd;
  border-radius: 14px;
  color: var(--ink);
  background: var(--white);
  text-align: left;
  cursor: pointer;
}

.dashboard-agenda-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(19, 34, 56, 0.08);
}

.dashboard-agenda-item.warning {
  border-left-color: var(--gold);
}

.dashboard-agenda-item.danger {
  border-left-color: #dc2626;
}

.dashboard-agenda-item.ok {
  border-left-color: #22c55e;
}

.dashboard-agenda-item > span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--navy);
  background: #eef2f6;
}

.dashboard-agenda-item strong,
.dashboard-agenda-item small,
.dashboard-agenda-item em {
  min-width: 0;
}

.dashboard-agenda-item small {
  color: var(--muted);
  font-weight: 800;
}

.dashboard-agenda-item em {
  justify-self: end;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--navy);
  background: #eef2f6;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.work-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.work-item-meta span {
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  color: #526176;
  background: #eef2f6;
  font-size: 12px;
  font-weight: 800;
}

.operation-notifications,
.activity-feed {
  display: grid;
  gap: 10px;
}

.notification-row,
.activity-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 14px;
  color: var(--ink);
  background: #f8fafc;
  text-align: left;
}

.notification-row {
  cursor: pointer;
}

.notification-row > span,
.activity-row > span {
  color: var(--navy);
  background: #eef2f6;
}

.notification-row.danger {
  border-color: rgba(220, 38, 38, 0.24);
}

.notification-row.warning {
  border-color: rgba(197, 151, 85, 0.34);
}

.notification-row em,
.activity-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.activity-row div {
  display: grid;
  gap: 2px;
}

.participant-filter-panel,
.portal-filter-panel {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 16px;
  background: #f8fafc;
}

.filter-grid,
.portal-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.filter-grid label,
.portal-filter-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-grid input,
.filter-grid select,
.portal-filter-grid input,
.portal-filter-grid select {
  min-height: 42px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  text-transform: none;
}

.filter-chip-row,
.portal-filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.filter-chip-row span,
.portal-filter-chip-row span,
.muted-chip {
  padding: 6px 10px;
  border-radius: 999px;
  color: #526176;
  background: #eef2f6;
  font-size: 12px;
  font-weight: 800;
}

.bulk-action-bar,
.portal-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.participant-management-list {
  display: grid;
  gap: 10px;
}

.participant-row-modern,
.portal-participant-row-modern {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: 14px;
}

.participant-select {
  margin: 0;
}

.participant-status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.portal-participant-management {
  display: grid;
  gap: 12px;
}

@media (max-width: 1120px) {
  .admin-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-global-search {
    width: 100%;
    min-width: 0;
  }

  .operations-hero,
  .workflow-grid,
  .workflow-grid.secondary,
  .dashboard-week-calendar {
    grid-template-columns: 1fr;
  }

  .admin-kpi-grid.primary,
  .admin-kpi-grid.secondary,
  .workflow-pipeline,
  .filter-grid,
  .portal-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-main {
    padding-inline: 18px;
  }

  .admin-topbar {
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .admin-kpi-grid.primary,
  .admin-kpi-grid.secondary,
  .workflow-pipeline,
  .filter-grid,
  .portal-filter-grid,
  .participant-row-modern,
  .portal-participant-row-modern {
    grid-template-columns: 1fr;
  }

  .admin-topbar-actions .button,
  .bulk-action-bar .small-button,
  .portal-filter-actions .small-button {
    width: 100%;
  }

  .dashboard-agenda-item {
    grid-template-columns: 1fr;
  }

  .calendar-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .calendar-card-actions .small-button {
    width: 100%;
  }

  .dashboard-agenda-item em {
    justify-self: start;
  }
}

.admin-page[data-admin-source="session"] {
  background: #eef2f6;
}

.admin-page[data-admin-source="session"] .admin-shell {
  grid-template-columns: 280px minmax(0, 1fr);
  background: #eef2f6;
}

.admin-page[data-admin-source="session"] .admin-sidebar {
  border-right: 0;
  background: linear-gradient(180deg, #12243a 0%, #0c1726 100%);
  box-shadow: 14px 0 32px rgba(15, 23, 42, 0.13);
}

.admin-page[data-admin-source="session"] .admin-brand {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.admin-page[data-admin-source="session"] .admin-sidebar button,
.admin-page[data-admin-source="session"] .admin-back {
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

.admin-page[data-admin-source="session"] .admin-sidebar button:hover,
.admin-page[data-admin-source="session"] .admin-sidebar button.active,
.admin-page[data-admin-source="session"] .admin-back:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 3px 0 0 var(--gold);
}

.admin-page[data-admin-source="session"] .admin-main {
  background: #eef2f6;
}

.admin-page[data-admin-source="session"] .admin-topbar {
  color: var(--ink);
  border-bottom: 1px solid rgba(19, 34, 56, 0.08);
  background: rgba(248, 250, 252, 0.94);
  box-shadow: 0 8px 28px rgba(19, 34, 56, 0.08);
}

.admin-page[data-admin-source="session"] .admin-topbar h1 {
  color: var(--ink);
}

.admin-page[data-admin-source="session"] .admin-topbar .eyebrow {
  color: var(--gold);
}

.admin-page[data-admin-source="session"] .admin-card,
.admin-page[data-admin-source="session"] .admin-kpi,
.admin-page[data-admin-source="session"] .status-metric,
.admin-page[data-admin-source="session"] .work-item,
.admin-page[data-admin-source="session"] .schedule-row,
.admin-page[data-admin-source="session"] .notification-row,
.admin-page[data-admin-source="session"] .activity-row {
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.admin-page[data-admin-source="session"] .button,
.admin-page[data-admin-source="session"] .small-button {
  border-radius: 10px;
  box-shadow: none;
}

@media (max-width: 980px) {
  .admin-page[data-admin-source="session"] .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-page[data-admin-source="session"] .admin-sidebar {
    position: static;
    height: auto;
  }
}

/* Admin operations extensions */
.admin-calendar-shell,
.customer-file-layout {
  display: grid;
  gap: 22px;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.course-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  justify-content: flex-end;
}

.calendar-view-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 12px;
  background: #f8fafc;
}

.calendar-view-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.calendar-view-switch button.active,
.calendar-view-switch button:hover {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.calendar-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(130px, 0.8fr)) auto;
  gap: 10px;
  align-items: end;
  margin: 16px 0;
}

.calendar-filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calendar-filter-bar input,
.calendar-filter-bar select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 10px;
  padding: 8px 11px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.calendar-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.calendar-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.calendar-people-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.calendar-people-bar button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.calendar-people-bar button span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--person-color, var(--gold));
}

.calendar-people-bar button.active {
  color: var(--navy);
  border-color: rgba(194, 149, 88, 0.45);
  background: #fff8ed;
}

.calendar-summary-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}

.calendar-summary-card > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--navy);
  background: rgba(19, 34, 56, 0.08);
}

.calendar-summary-card strong,
.calendar-summary-card small {
  display: block;
}

.calendar-summary-card strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.calendar-summary-card small {
  color: var(--muted);
}

.calendar-weekday {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.calendar-day {
  min-height: 132px;
  padding: 10px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}

.calendar-day-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.calendar-add-day {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 9px;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
  opacity: 0.72;
}

.calendar-add-day:hover {
  opacity: 1;
  border-color: rgba(194, 149, 88, 0.5);
  background: #fff8ed;
}

.calendar-day.is-empty {
  background: transparent;
  border-style: dashed;
}

.calendar-day.has-course {
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.calendar-course {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border: 0;
  border-left: 4px solid var(--course-color, var(--gold));
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: #e9eef5;
}

.calendar-course:hover,
.calendar-agenda-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.calendar-week-shell {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.calendar-week-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}

.course-calendar.week-view {
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  overflow-x: auto;
  padding-bottom: 4px;
}

.calendar-empty-day {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.calendar-agenda-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.calendar-agenda-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-left: 4px solid var(--course-color, var(--gold));
  border-radius: 14px;
  padding: 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.calendar-agenda-row span,
.calendar-agenda-row small {
  display: block;
}

.calendar-agenda-row small {
  color: var(--muted);
}

.calendar-agenda-row em {
  justify-self: end;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--navy);
  background: #eef3f8;
  font-style: normal;
  font-weight: 900;
}

.calendar-agenda-row.danger em {
  color: #8a1f1f;
  background: #ffe8e8;
}

.calendar-agenda-row.warning em {
  color: #8a5a00;
  background: #fff3d9;
}

.calendar-agenda-row.ok em {
  color: #166534;
  background: #e9f7ef;
}

.calendar-agenda-date {
  font-weight: 900;
}

.calendar-course span,
.calendar-course small {
  display: block;
}

.calendar-course.ok {
  background: #e9f7ef;
}

.calendar-course.warning {
  background: #fff3d9;
}

.calendar-course.danger {
  background: #ffe8e8;
}

.calendar-course.info {
  background: #e8f0ff;
}

.calendar-sidebar {
  display: grid;
  gap: 10px;
}

.calendar-sidebar article,
.course-participant-list article,
.customer-file-sections article,
.internal-comments article {
  padding: 14px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}

.calendar-sidebar article strong,
.calendar-sidebar article span,
.course-participant-list article strong,
.course-participant-list article span,
.course-participant-list article small,
.customer-file-sections article strong,
.customer-file-sections article span {
  display: block;
}

.course-participant-editor {
  grid-column: 1 / -1;
  padding: 16px;
  border-radius: 16px;
  background: #f4f7fb;
}

.course-participant-search {
  margin-bottom: 12px;
}

.course-participant-add {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.4fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 14px;
  background: var(--white);
}

.course-participant-add label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.course-participant-add select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  text-transform: none;
}

.course-participant-add small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 800;
}

.course-participant-list {
  display: grid;
  gap: 10px;
}

.course-participant-list article {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: #fff;
}

.course-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.course-certificate-panel,
.course-invoice-panel {
  grid-column: 1 / -1;
  padding: 16px;
  border-radius: 16px;
  background: #f4f7fb;
}

.course-certificate-list {
  display: grid;
  gap: 10px;
}

.course-certificate-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 14px;
  background: #fff;
}

.course-certificate-list article.warning {
  border-color: rgba(197, 151, 91, 0.35);
  background: #fff8ed;
}

.course-certificate-list article.ok {
  border-color: rgba(22, 101, 52, 0.16);
  background: #f1fbf5;
}

.course-certificate-list strong,
.course-certificate-list span {
  display: block;
}

.course-certificate-list span {
  color: var(--muted);
}

.course-invoice-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.course-invoice-summary span {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.course-invoice-summary strong {
  display: block;
  color: var(--ink);
  font-size: 1.2rem;
}

.course-participant-main {
  min-width: 0;
}

.course-participant-controls {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(120px, 0.7fr) minmax(180px, 1fr);
  gap: 10px;
  align-items: end;
}

.course-participant-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.course-participant-controls select,
.course-participant-controls textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.customer-file-layout {
  grid-template-columns: 340px minmax(0, 1fr);
}

.customer-file-list {
  align-self: start;
  position: sticky;
  top: 24px;
}

.customer-file-button {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.customer-file-button:hover,
.customer-file-button.active {
  background: #102238;
  color: #fff;
}

.customer-file-button strong,
.customer-file-button span {
  display: block;
}

.customer-file-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(19, 34, 56, 0.08);
}

.customer-file-header small,
.offer-card-head small {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.customer-file-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.customer-file-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.customer-file-sections section,
.internal-comments,
.template-editor-card,
.offer-card {
  padding: 18px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.internal-comments {
  margin-top: 18px;
  background: #f8fafc;
}

.comment-list,
.template-editor-grid,
.template-workbench,
.offer-board {
  display: grid;
  gap: 14px;
}

.comment-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

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

.template-workbench {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  align-items: start;
}

.template-list {
  display: grid;
  gap: 10px;
}

.template-list-item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 12px;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #f8fafc);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.template-list-item:hover,
.template-list-item.active {
  border-color: rgba(191, 148, 90, 0.55);
  background: linear-gradient(180deg, rgba(191, 148, 90, 0.12), #fff);
}

.template-list-item span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-list-item strong {
  font-size: 16px;
}

.template-list-item small {
  color: var(--muted);
  line-height: 1.45;
}

.template-editor-host {
  min-width: 0;
}

.template-editor-card,
.offer-card {
  display: grid;
  gap: 12px;
}

.template-editor-card {
  padding: 0;
  overflow: hidden;
}

.template-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-bottom: 1px solid rgba(19, 34, 56, 0.1);
  background: linear-gradient(180deg, #f8fbff, #eef4fb);
}

.template-editor-head small {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-editor-head h3 {
  margin: 4px 0;
  font-size: 24px;
}

.template-editor-head p {
  margin: 0;
  color: var(--muted);
}

.template-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.template-meta-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) minmax(180px, 0.6fr) minmax(260px, 1fr);
  gap: 14px;
  padding: 18px 18px 0;
}

.template-meta-grid label,
.template-editor-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.template-editor-field {
  padding: 0 18px;
}

.template-editor-field:last-child {
  padding-bottom: 18px;
}

.template-meta-grid input,
.template-meta-grid select,
.template-editor-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid rgba(19, 34, 56, 0.14);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.template-editor-field textarea {
  line-height: 1.55;
  resize: vertical;
}

.admin-page[data-admin-source="session"] label {
  color: var(--muted);
  font-weight: 850;
}

.admin-page[data-admin-source="session"] input:not([type]),
.admin-page[data-admin-source="session"] input[type="text"],
.admin-page[data-admin-source="session"] input[type="email"],
.admin-page[data-admin-source="session"] input[type="tel"],
.admin-page[data-admin-source="session"] input[type="number"],
.admin-page[data-admin-source="session"] input[type="date"],
.admin-page[data-admin-source="session"] input[type="time"],
.admin-page[data-admin-source="session"] input[type="search"],
.admin-page[data-admin-source="session"] input[type="password"],
.admin-page[data-admin-source="session"] select,
.admin-page[data-admin-source="session"] textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 13px;
  border: 1px solid rgba(19, 34, 56, 0.14);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  line-height: 1.45;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-page[data-admin-source="session"] textarea {
  min-height: 126px;
  line-height: 1.58;
  resize: vertical;
}

.admin-page[data-admin-source="session"] input:not([type]):focus,
.admin-page[data-admin-source="session"] input[type="text"]:focus,
.admin-page[data-admin-source="session"] input[type="email"]:focus,
.admin-page[data-admin-source="session"] input[type="tel"]:focus,
.admin-page[data-admin-source="session"] input[type="number"]:focus,
.admin-page[data-admin-source="session"] input[type="date"]:focus,
.admin-page[data-admin-source="session"] input[type="time"]:focus,
.admin-page[data-admin-source="session"] input[type="search"]:focus,
.admin-page[data-admin-source="session"] input[type="password"]:focus,
.admin-page[data-admin-source="session"] select:focus,
.admin-page[data-admin-source="session"] textarea:focus {
  outline: none;
  border-color: rgba(191, 148, 90, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(191, 148, 90, 0.12), inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.rich-text-editor {
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(19, 34, 56, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.rich-text-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 9px;
  border-bottom: 1px solid rgba(19, 34, 56, 0.1);
  background: linear-gradient(180deg, #f8fbff, #eef4fb);
}

.rich-text-tool-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.rich-text-toolbar button,
.admin-page[data-admin-source="session"] .rich-text-placeholder {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(19, 34, 56, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
}

.admin-page[data-admin-source="session"] .rich-text-placeholder {
  width: auto;
  min-width: 134px;
  min-height: 32px;
  padding: 6px 30px 6px 10px;
  background-color: #fff;
  font-size: 12px;
}

.rich-text-toolbar button:hover,
.rich-text-toolbar button.active {
  border-color: rgba(191, 148, 90, 0.55);
  color: #0f2238;
  background: rgba(191, 148, 90, 0.12);
}

.rich-text-helper {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-page[data-admin-source="session"] .rich-text-editor textarea {
  min-height: 150px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-page[data-admin-source="session"] .rich-text-editor textarea:focus {
  box-shadow: inset 0 0 0 2px rgba(191, 148, 90, 0.14);
}

.rich-text-preview {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(19, 34, 56, 0.1);
  color: var(--ink);
  background: #fbfdff;
  font-size: 15px;
  line-height: 1.58;
}

.rich-text-preview h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rich-text-preview p {
  margin: 0 0 10px;
}

.rich-text-preview ul {
  margin: 0 0 10px 20px;
  padding: 0;
}

.rich-text-preview a {
  color: #0f4a7a;
  font-weight: 850;
}

.progress-board {
  display: grid;
  gap: 14px;
}

.progress-checklist {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.progress-check-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 110px;
  padding: 14px;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.progress-check-item > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #0b7a4b;
  background: rgba(11, 122, 75, 0.11);
}

.progress-check-item.is-active > span {
  color: #a66a18;
  background: rgba(191, 148, 90, 0.16);
}

.progress-check-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
}

.progress-check-item small {
  color: var(--muted);
  line-height: 1.45;
}

.admin-page[data-admin-source="session"] .admin-card form:not(.calendar-filter-bar):not(.deadline-filter-bar):not(.document-filter-bar):not(.portal-filter-bar):not(.portal-action-form) {
  gap: 14px;
}

.admin-page[data-admin-source="session"] .admin-card form:not(.calendar-filter-bar):not(.deadline-filter-bar):not(.document-filter-bar):not(.portal-filter-bar):not(.portal-action-form) > label {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.admin-page[data-admin-source="session"] .admin-card form:not(.calendar-filter-bar):not(.deadline-filter-bar):not(.document-filter-bar):not(.portal-filter-bar):not(.portal-action-form) > button[type="submit"],
.admin-page[data-admin-source="session"] .admin-card form:not(.calendar-filter-bar):not(.deadline-filter-bar):not(.document-filter-bar):not(.portal-filter-bar):not(.portal-action-form) > .button[type="submit"] {
  min-height: 46px;
  margin-top: 4px;
}

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

.offer-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.compact-label {
  display: grid;
  gap: 6px;
  min-width: 180px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .calendar-layout,
  .calendar-filter-bar,
  .customer-file-layout,
  .deadline-layout,
  .template-editor-grid,
  .template-workbench,
  .template-meta-grid,
  .offer-board,
  .document-upload-box,
  .portal-upload-box,
  .document-filter-bar,
  .portal-filter-bar {
    grid-template-columns: 1fr;
  }

  .progress-checklist {
    grid-template-columns: 1fr;
  }

  .customer-file-list {
    position: static;
  }

  .calendar-agenda-row {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .calendar-agenda-row em {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .customer-file-metrics,
  .customer-file-sections,
  .calendar-summary-row,
  .course-workbook-metrics,
  .course-invoice-summary,
  .deadline-rule-card .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .course-calendar {
    grid-template-columns: 1fr;
  }

  .course-calendar.week-view {
    grid-template-columns: 1fr;
  }

  .calendar-view-switch,
  .calendar-people-bar {
    width: 100%;
  }

  .calendar-view-switch button,
  .calendar-people-bar button {
    flex: 1 1 auto;
  }

  .calendar-weekday,
  .calendar-day.is-empty {
    display: none;
  }

  .customer-file-header,
  .calendar-head-actions,
  .course-workbook-head,
  .course-participant-list article,
  .course-certificate-list article,
  .offer-card-head {
    display: grid;
  }

  .course-participant-list article,
  .course-participant-controls,
  .course-participant-add {
    grid-template-columns: 1fr;
  }

  .calendar-agenda-row {
    grid-template-columns: 1fr;
  }

  .customer-file-metrics,
  .customer-file-sections,
  .calendar-summary-row,
  .course-workbook-metrics,
  .course-invoice-summary,
  .deadline-rule-card .form-grid {
    grid-template-columns: 1fr;
  }

  .course-workbook-head,
  .course-workbook-metrics,
  .course-workbook-tabs,
  .course-tab-panel,
  .course-workbook-actions {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Admin Pfiff Layer: Desktop-Charakter und Operations-Center-Anmutung */
.admin-page[data-admin-source="session"] .admin-main {
  background:
    radial-gradient(circle at 18% 8%, rgba(194, 148, 85, 0.12), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(19, 34, 56, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0 25%, transparent 25% 100%),
    #e9eef5;
  background-size: auto, auto, 28px 28px, auto;
}

.admin-page[data-admin-source="session"] .admin-topbar {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 252, 0.88)),
    #fff;
}

.admin-page[data-admin-source="session"] .admin-topbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--gold), #8e642d);
}

.admin-page[data-admin-source="session"] .admin-topbar::after {
  content: "Live-Arbeitsplatz";
  position: absolute;
  top: 12px;
  right: 16px;
  color: rgba(83, 97, 119, 0.45);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-page[data-admin-source="session"] .operations-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
  gap: 22px;
  align-items: stretch;
  padding: 28px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(120deg, rgba(19, 34, 56, 0.98), rgba(15, 42, 69, 0.96)),
    #132238;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.admin-page[data-admin-source="session"] .operations-hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(194, 148, 85, 0.28), transparent 62%);
  pointer-events: none;
}

.admin-page[data-admin-source="session"] .operations-hero small,
.admin-page[data-admin-source="session"] .operations-hero .eyebrow {
  color: #d5ad73;
}

.admin-page[data-admin-source="session"] .operations-hero h2,
.admin-page[data-admin-source="session"] .operations-hero p {
  color: #fff;
}

.admin-page[data-admin-source="session"] .operations-hero h2 {
  font-size: clamp(34px, 5vw, 58px);
}

.admin-page[data-admin-source="session"] .operations-hero-action {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.admin-page[data-admin-source="session"] .operations-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: -10px 10px 0;
  position: relative;
  z-index: 2;
}

.admin-page[data-admin-source="session"] .operations-status-strip span {
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.admin-launch-dock {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-launch-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 17px;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #f8fafc);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-launch-button:hover {
  transform: translateY(-2px);
  border-color: rgba(194, 148, 85, 0.45);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.11);
}

.admin-launch-button > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #8e642d;
  background: rgba(194, 148, 85, 0.15);
}

.admin-launch-button .admin-icon {
  width: 20px;
  height: 20px;
}

.admin-launch-button strong {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.admin-launch-button small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-page[data-admin-source="session"] .admin-card,
.admin-page[data-admin-source="session"] .admin-detail-pane > .admin-row,
.admin-page[data-admin-source="session"] .course-workbook,
.admin-page[data-admin-source="session"] .portal-company-row {
  position: relative;
}

.admin-page[data-admin-source="session"] .admin-card::before,
.admin-page[data-admin-source="session"] .course-workbook::before,
.admin-page[data-admin-source="session"] .portal-company-row::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 14px;
  width: 38px;
  height: 8px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 4px 4px, rgba(194, 148, 85, 0.8) 0 3px, transparent 3.5px),
    radial-gradient(circle at 19px 4px, rgba(19, 34, 56, 0.22) 0 3px, transparent 3.5px),
    radial-gradient(circle at 34px 4px, rgba(19, 34, 56, 0.16) 0 3px, transparent 3.5px);
  pointer-events: none;
}

.admin-page[data-admin-source="session"] .admin-section-head {
  border-radius: 17px 17px 0 0;
}

.admin-page[data-admin-source="session"] .admin-kpi-grid.primary .admin-kpi,
.admin-page[data-admin-source="session"] .workflow-pipeline .workflow-step,
.admin-page[data-admin-source="session"] .work-item,
.admin-page[data-admin-source="session"] .notification-row,
.admin-page[data-admin-source="session"] .activity-row {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-page[data-admin-source="session"] .admin-kpi-grid.primary .admin-kpi:hover,
.admin-page[data-admin-source="session"] .workflow-pipeline .workflow-step:hover,
.admin-page[data-admin-source="session"] .work-item:hover,
.admin-page[data-admin-source="session"] .notification-row:hover,
.admin-page[data-admin-source="session"] .activity-row:hover {
  transform: translateY(-1px);
  border-color: rgba(194, 148, 85, 0.35);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.09);
}

.admin-page[data-admin-source="session"] .admin-master-row.active {
  background:
    linear-gradient(90deg, rgba(194, 148, 85, 0.16), rgba(255, 255, 255, 0.98) 42%),
    #fff;
}

.admin-page[data-admin-source="session"] .status-pill,
.admin-page[data-admin-source="session"] .status-badge {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

@media (max-width: 1180px) {
  .admin-page[data-admin-source="session"] .operations-hero,
  .admin-page[data-admin-source="session"] .operations-status-strip,
  .admin-launch-dock {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-launch-button {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 74px;
  }
}
