/* 1. Variables */
:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --surface-soft: #eef6fb;
  --surface-warm: #fff8e8;
  --text: #1f2937;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #dbeafe;
  --accent: #0f766e;
  --accent-soft: #ccfbf1;
  --success: #16a34a;
  --success-soft: #dcfce7;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --border: #dbe3ec;
  --border-strong: #c5d0dc;
  --radius-sm: 8px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 16px 50px rgba(37, 99, 235, 0.12);
}

/* 2. Reset / Base */
* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

main {
  min-height: 70vh;
}

/* 3. Layout */
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100% - 32px));
}

.section {
  padding: 84px 0;
}

.section-tight {
  padding: 42px 0;
}

.section-soft {
  background: var(--surface-soft);
}

.section-band {
  background: #eaf2ff;
  border-block: 1px solid var(--border);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading h2,
.intro-grid h2,
.split-grid h2,
.trust-strip h2,
.cta-inner h2,
.page-hero h1,
.auth-panel h1 {
  margin: 0;
  line-height: 1.12;
}

.section-heading p,
.intro-grid p,
.split-grid p,
.trust-strip p,
.cta-inner p,
.page-hero p,
.auth-panel p {
  color: var(--muted);
}

.split-grid,
.intro-grid,
.trust-strip,
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 42px;
  align-items: start;
}

.intro-grid {
  align-items: center;
}

.cards-grid,
.feature-matrix,
.pricing-grid,
.audience-grid {
  display: grid;
  gap: 18px;
}

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

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

.feature-matrix {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* 4. Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  box-shadow: var(--shadow-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 6px;
  padding: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.main-nav a,
.auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active,
.auth-link:hover {
  background: var(--surface);
  color: var(--text);
}

.auth-nav {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.auth-nav .btn {
  width: auto;
}

.logout-form {
  margin: 0;
}

/* 5. Hero */
.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
  background: #edf5fb;
  border-bottom: 1px solid var(--border);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 249, 252, 0.52);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 72px 0 84px;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: 5rem;
  line-height: 0.96;
}

.hero-lead {
  margin: 18px 0 0;
  max-width: 680px;
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
}

.hero-copy {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scene-panel {
  position: absolute;
  border: 1px solid rgba(197, 208, 220, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.scene-panel-main {
  right: 7%;
  top: 18%;
  width: 410px;
  padding: 22px;
}

.scene-topline {
  width: 58%;
  height: 10px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--primary-soft);
}

.scene-question span,
.scene-panel-side p {
  color: var(--muted);
  font-size: 0.9rem;
}

.scene-question strong,
.scene-panel-side strong,
.scene-panel-mini strong {
  display: block;
  margin-top: 4px;
  line-height: 1.2;
}

.scene-options {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.scene-options span {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
}

.scene-options .is-correct {
  border-color: rgba(22, 163, 74, 0.35);
  background: var(--success-soft);
  color: #166534;
}

.scene-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.scene-progress span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.scene-panel-side {
  right: 23%;
  bottom: 13%;
  width: 230px;
  padding: 18px;
}

.scene-panel-mini {
  right: 4%;
  bottom: 27%;
  width: 210px;
  padding: 16px;
}

/* 6. Cards */
.card,
.price-card,
.form-panel,
.auth-panel,
.contact-aside,
.audience-link {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 24px;
}

.card h2,
.card h3,
.price-card h2,
.contact-aside h2 {
  margin: 0 0 10px;
  line-height: 1.22;
}

.card p,
.price-card p,
.contact-aside p {
  margin: 0;
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 14px;
}

.number-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 28px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
  font-size: 0.82rem;
}

.highlight-card {
  background: var(--surface-warm);
}

.plain-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--text);
  font-weight: 750;
}

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

.steps-list div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.steps-list span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.audience-link {
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 28px;
  color: var(--text);
  text-decoration: none;
}

.audience-link span {
  color: var(--accent);
  font-weight: 900;
}

.audience-link strong {
  font-size: 1.35rem;
  line-height: 1.25;
}

/* 7. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-sm {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.92rem;
}

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

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

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

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
}

.full-width {
  width: 100%;
}

/* 8. Forms */
.form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

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

.form-label {
  font-weight: 800;
}

.form-control {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
}

.form-control:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(37, 99, 235, 0.15);
}

textarea.form-control {
  resize: vertical;
}

.form-help {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

.form-help-inline {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 750;
}

.form-help a {
  color: var(--primary);
  font-weight: 800;
}

.form-panel,
.auth-panel,
.contact-aside {
  padding: 28px;
}

.form-layout {
  align-items: stretch;
}

.contact-aside {
  display: grid;
  align-content: start;
  gap: 14px;
  background: var(--surface-soft);
}

.contact-aside a {
  color: var(--primary);
  font-weight: 850;
}

.notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: var(--radius-sm);
  background: var(--success-soft);
  color: #166534;
  font-weight: 750;
}

.notice-error {
  border-color: rgba(220, 38, 38, 0.25);
  background: var(--danger-soft);
  color: #991b1b;
}

/* 9. Badges */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.badge-success {
  background: var(--success-soft);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-soft);
  color: #92400e;
}

.badge-info {
  background: var(--primary-soft);
  color: var(--primary);
}

.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

/* 10. Progress */
.progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}

/* 11. Public UI */
.page-hero {
  padding: 92px 0 58px;
  background: #edf5fb;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: 3.2rem;
}

.page-hero p {
  font-size: 1.08rem;
}

.price-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 360px;
  padding: 30px;
}

.price {
  color: var(--text) !important;
  font-size: 2.2rem;
  font-weight: 950;
  line-height: 1;
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-weight: 720;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.46em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--accent-soft);
}

.cta-section {
  background: var(--surface);
}

.cta-inner {
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-warm);
  box-shadow: var(--shadow);
}

.legal-copy {
  color: var(--muted);
}

.legal-copy h2 {
  color: var(--text);
}

/* 12. Auth UI */
.auth-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 76px);
  padding: 56px 16px;
  background: #edf5fb;
}

.auth-panel {
  width: min(440px, 100%);
}

.auth-panel-wide {
  width: min(760px, 100%);
}

.auth-panel h1 {
  font-size: 2.3rem;
}

/* =========================================================
   13. Admin UI
   ========================================================= */

.admin-body {
  margin: 0;
  background: #f3f6fa;
  color: var(--text);
  min-height: 100vh;
}

/* Shell */

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

/* Sidebar */

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 22px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-logo {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.admin-logo .brand,
.admin-logo a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
}

.admin-logo .brand-mark,
.admin-logo .logo-mark,
.admin-logo .brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.25);
}

.admin-nav {
  display: grid;
  gap: 6px;
}

.admin-nav-secondary {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.admin-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.admin-nav a:hover,
.admin-nav a.is-active,
.admin-nav a.active,
.admin-nav .is-active a {
  background: var(--primary-soft);
  color: var(--primary);
}

.admin-nav a:hover {
  transform: translateX(2px);
}

/* Main area */

.admin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.admin-topbar strong {
  font-size: 1rem;
  font-weight: 900;
}

.admin-topbar span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-topbar-actions,
.admin-head-actions,
.admin-form-actions,
.admin-table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-content {
  width: 100%;
  max-width: 1280px;
  padding: 36px 32px 56px;
}

/* Page header */

.admin-page-head,
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.admin-page-head h1,
.page-header h1 {
  margin: 0;
  line-height: 1.05;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.admin-page-head p,
.page-header p {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Stat cards */

.admin-stat-grid,
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}

.admin-stat,
.admin-stat-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-stat:hover,
.admin-stat-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

.admin-stat span,
.admin-stat-card span {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.admin-stat strong,
.admin-stat-card strong {
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* Cards / sections */

.admin-workflow,
.admin-form,
.admin-danger-zone,
.admin-placeholder,
.detail-list,
.admin-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-card {
  padding: 24px;
}

.admin-workflow {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  margin-top: 18px;
  padding: 24px;
}

.admin-workflow h2,
.admin-placeholder h2,
.admin-danger-zone h2,
.admin-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.admin-workflow p,
.admin-placeholder p,
.admin-danger-zone p,
.admin-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Steps */

.admin-steps,
.admin-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.admin-steps li,
.admin-step-list li {
  min-height: 56px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  font-weight: 850;
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-steps li::before,
.admin-step-list li::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 900;
  flex: 0 0 auto;
}

/* Toolbar */

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 16px;
}

/* Tables */

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.admin-table tbody tr:hover td {
  background: #fbfdff;
}

/* Forms */

.admin-form {
  padding: 24px;
}

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

.admin-form-grid .form-group {
  margin: 0;
}

.admin-form-grid .is-wide {
  grid-column: 1 / -1;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-weight: 850;
}

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

.admin-form-actions {
  margin-top: 24px;
}

/* Placeholder / danger */

.admin-placeholder {
  padding: 24px;
}

.admin-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 22px;
  border-color: rgba(220, 38, 38, 0.25);
  background: var(--danger-soft);
  box-shadow: none;
}

/* Detail list */

.detail-list {
  padding: 0;
  overflow: hidden;
}

.detail-list dl {
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.detail-list div:last-child {
  border-bottom: 0;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
}

/* Fallback:
   Falls Adminseiten noch altes Roh-Markup verwenden,
   wird wenigstens der Inhalt sauber eingerahmt. */

.admin-body > header,
.admin-body > nav,
.admin-body > main {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.admin-body > header,
.admin-body > nav {
  padding-left: 24px;
  padding-right: 24px;
}

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

/* Responsive */

@media (max-width: 1100px) {
  .admin-stat-grid,
  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-workflow {
    grid-template-columns: 1fr;
  }

  .admin-steps,
  .admin-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .admin-nav {
    display: flex;
    flex-wrap: wrap;
  }

  .admin-nav a {
    min-height: 36px;
  }

  .admin-topbar {
    position: static;
    min-height: auto;
    padding: 18px;
  }

  .admin-content {
    padding: 24px 18px 44px;
  }

  .admin-page-head,
  .page-header {
    display: grid;
  }
}

@media (max-width: 680px) {
  .admin-stat-grid,
  .admin-stats-grid,
  .admin-steps,
  .admin-step-list,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    display: grid;
  }

  .admin-danger-zone {
    display: grid;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}