﻿/* Grundlayout */
.admin-page {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 24px;
}

  /* Seitentitel */
  .admin-page h1 {
    font-size: 26px;
    margin-bottom: 8px;
  }

  .admin-page .page-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
  }

.admin-status {
  margin: 12px 0 18px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 14px;
}

.admin-status.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

/* Karten / Sektionen */
.admin-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

  /* Sektionstitel */
  .admin-card h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }

/* Tabellen */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

  .admin-table th,
  .admin-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
  }

  .admin-table th {
    color: #374151;
    font-weight: 600;
  }

/* Aktionen */
.admin-actions {
  display: flex;
  gap: 8px;
}

.access-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #f9fafb;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.access-badge.pilot {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.access-badge.active {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #047857;
}

.access-badge.suspended,
.access-badge.closed,
.access-badge.expired {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.org-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.org-access-actions button {
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  font-size: 12px;
  cursor: pointer;
}

.org-access-actions button:hover {
  background: #f3f4f6;
}

.org-access-actions button.danger {
  border-color: #fecaca;
  color: #b91c1c;
}

/* Sicherheitsbereich */
.admin-card.security {
  border-color: #facc15;
  background: #fffbeb;
}

  .admin-card.security h2 {
    color: #92400e;
  }

.pilot-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: start;
  border-color: #bfdbfe;
  background: #f8fafc;
}

.pilot-card p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

.pilot-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pilot-steps span {
  padding: 6px 9px;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 13px;
}

.commercial-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.commercial-metric {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.commercial-metric span {
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
}

.commercial-metric strong {
  color: #111827;
  font-size: 28px;
  line-height: 1;
}

.commercial-metric small,
.commercial-hint {
  color: #6b7280;
  font-size: 12px;
}

.demo-request-detail {
  margin-top: 3px;
  color: #6b7280;
  font-size: 12px;
}

.page-inline-link {
  display: inline-block;
  margin-left: 10px;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.page-inline-link:hover {
  text-decoration: underline;
}

.audit-filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) minmax(220px, 1fr) minmax(120px, .5fr);
  gap: 12px;
  align-items: end;
}

.audit-filter-grid label {
  display: grid;
  gap: 5px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.audit-filter-grid input,
.audit-filter-grid select {
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
}

.audit-filter-actions {
  margin-top: 12px;
}

.audit-table td {
  vertical-align: top;
}

.readiness-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.readiness-state {
  display: inline-block;
  margin: 8px 0 14px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.readiness-state.ready {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.readiness-state.warning {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

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

.readiness-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.readiness-item strong,
.readiness-item span {
  display: block;
}

.readiness-item strong {
  font-size: 14px;
  margin-bottom: 4px;
}

.readiness-item span {
  font-size: 13px;
  color: #4b5563;
}

.readiness-item.ok {
  border-color: #bbf7d0;
}

.readiness-item.warn {
  border-color: #fde68a;
}

.readiness-item.bad {
  border-color: #fecaca;
}

.readiness-table {
  margin-top: 14px;
}

.readiness-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.readiness-detail-row td {
  background: #f9fafb;
  color: #374151;
  font-size: 13px;
}

.service-readiness-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.service-readiness-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.service-readiness-row strong,
.service-readiness-row span {
  display: block;
}

.service-readiness-row strong {
  font-size: 13px;
  color: #111827;
}

.service-readiness-row span {
  overflow-wrap: anywhere;
  font-size: 12px;
  color: #6b7280;
}

.service-readiness-row.ok {
  border-color: #bbf7d0;
}

.service-readiness-row.warn {
  border-color: #fde68a;
}

.service-readiness-row.bad {
  border-color: #fecaca;
}

/* Formulare */
.admin-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

  .admin-form input,
  .admin-form select,
  .admin-form button {
    padding: 6px 10px;
    font-size: 14px;
  }

.mobile-release-form label {
  display: flex;
  min-width: 180px;
  flex-direction: column;
  gap: 4px;
  color: #374151;
  font-size: 13px;
}

.mobile-release-form input,
.mobile-release-form textarea {
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.mobile-release-file {
  min-width: 320px;
}

.mobile-release-notes {
  flex-basis: 100%;
  max-width: 720px;
}

.mobile-release-notes textarea {
  padding: 8px 10px;
  font-size: 14px;
  resize: vertical;
}

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 220px;
  background: linear-gradient(180deg, #0b1d3a, #2a0a4a);
  color: white;
  padding: 16px;
}

.admin-brand {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
}

.admin-brand span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 400;
}

.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-sidebar a {
  color: white;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 4px;
}

  .admin-sidebar a:hover {
    background: rgba(255,255,255,0.1);
  }

.admin-sidebar .logout {
  margin-top: auto;
  background: transparent;
  color: #fca5a5;
  border: none;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.admin-content {
  flex: 1;
  background: #f9fafb;
}

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
}

.login-card {
  width: 360px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 28px 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

  .login-card h1 {
    font-size: 22px;
    margin-bottom: 6px;
  }

.login-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 20px;
}

.login-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}

.login-mode button {
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
}

.login-mode button.active {
  border-color: #1d4ed8;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.login-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

  .login-form input {
    flex: 1 1 160px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .login-form button {
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
  }

.login-error {
  margin-top: 12px;
  color: #b91c1c;
  font-size: 13px;
}

.login-demo-link {
  display: inline-block;
  margin-top: 16px;
  color: #1d4ed8;
  font-size: 13px;
  text-decoration: none;
}

.login-demo-link:hover {
  text-decoration: underline;
}

.mfa-setup-box {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.mfa-setup-box strong {
  display: block;
  margin: 4px 0 8px;
  letter-spacing: 1px;
}

.mfa-setup-box textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  font-size: 12px;
}

.mfa-enroll-card {
  width: min(420px, calc(100vw - 32px));
}

.mfa-enroll-meta {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #4b5563;
}

.mfa-enroll-meta strong {
  color: #111827;
}

.mfa-qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 12px auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.mfa-verify-form {
  margin-top: 12px;
}

.demo-page {
  min-height: 100vh;
  padding: 36px 20px;
  background: #f3f4f6;
}

.demo-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(300px, 1.15fr);
  gap: 28px;
  width: min(980px, 100%);
  margin: 0 auto;
  align-items: start;
}

.demo-copy {
  padding-top: 10px;
}

.demo-copy h1 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 32px;
  line-height: 1.12;
}

.demo-copy p {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
}

.demo-back-link {
  display: inline-block;
  margin-top: 16px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.demo-back-link:hover {
  text-decoration: underline;
}

.demo-form {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.demo-form label {
  display: grid;
  gap: 5px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
}

.demo-form textarea {
  min-height: 96px;
  resize: vertical;
}

.demo-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.demo-submit {
  justify-self: start;
  padding: 9px 14px;
  border: 1px solid #d8a316;
  border-radius: 6px;
  background: #f2bd35;
  color: #111827;
  font-weight: 700;
  cursor: pointer;
}

.demo-submit:disabled {
  opacity: 0.62;
  cursor: default;
}

@media (max-width: 760px) {
  .demo-panel,
  .demo-form-grid {
    grid-template-columns: 1fr;
  }
}

.pilot-page {
  min-height: 100vh;
  background: #f8fafc;
  color: #111827;
}

.pilot-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 420px);
  gap: 32px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 32px;
  align-items: center;
}

.pilot-brand {
  margin-bottom: 14px;
  color: #b78a13;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.pilot-hero h1 {
  max-width: 680px;
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 42px;
  line-height: 1.08;
}

.pilot-hero p,
.pilot-offer-band p {
  max-width: 620px;
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.55;
}

.pilot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pilot-primary,
.pilot-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.pilot-primary {
  border: 1px solid #d8a316;
  background: #f2bd35;
  color: #111827;
}

.pilot-secondary {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.pilot-phone-preview {
  width: min(100%, 360px);
  justify-self: end;
  padding: 16px;
  border: 1px solid #203247;
  border-radius: 8px;
  background: #0b1f33;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.pilot-phone-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  color: #e5edf5;
  font-size: 13px;
}

.pilot-phone-top strong {
  color: #f2bd35;
  font-size: 12px;
}

.pilot-chat-lines {
  display: grid;
  gap: 12px;
  min-height: 260px;
  align-content: end;
  padding: 14px;
  border-radius: 8px;
  background: #102941;
}

.pilot-bubble {
  max-width: 82%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #eef6ff;
  font-size: 13px;
}

.pilot-bubble.outbound {
  justify-self: end;
  background: #2d5b70;
}

.pilot-bubble.inbound {
  background: #24384e;
}

.pilot-policy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pilot-policy-row span {
  padding: 6px 8px;
  border: 1px solid rgba(242, 189, 53, 0.35);
  border-radius: 6px;
  color: #f8d36b;
  font-size: 12px;
}

.pilot-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0;
}

.pilot-section h2,
.pilot-offer-band h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 24px;
}

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

.pilot-grid div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.pilot-grid strong {
  color: #111827;
  font-size: 14px;
}

.pilot-grid span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.pilot-offer-band {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 40px));
  margin: 10px auto 56px;
  padding: 22px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}

@media (max-width: 820px) {
  .pilot-hero,
  .pilot-offer-band {
    grid-template-columns: 1fr;
  }

  .pilot-hero h1 {
    font-size: 34px;
  }

  .pilot-phone-preview {
    justify-self: start;
  }

  .pilot-offer-band {
    display: grid;
  }
}

.section-title {
  margin-top: 32px;
  margin-bottom: 12px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.policy-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}

.policy-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

  .policy-header strong {
    font-size: 15px;
    color: #111827;
  }

  .policy-header .scope {
    font-size: 12px;
    color: #6b7280;
  }

.policy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  margin: 6px 0;
  font-size: 13px;
}

  .policy-row span:first-child {
    color: #6b7280;
  }

  .policy-row span:last-child {
    color: #111827;
    font-weight: 500;
  }

.policy-footer {
  margin-top: 10px;
  font-size: 11px;
  color: #6b7280;
}

/* Policy Create */

.policy-create-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  max-width: 720px;
}

.policy-create-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  row-gap: 12px;
  column-gap: 16px;
  align-items: center;
}

  .policy-create-grid label {
    font-size: 13px;
    color: #374151;
  }

  .policy-create-grid input,
  .policy-create-grid select {
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
  }

    .policy-create-grid input[type="date"] {
      max-width: 200px;
    }

.policy-permissions {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.policy-permissions-title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.policy-permissions-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 12px;
}

  .policy-permissions-list label {
    font-size: 13px;
    color: #111827;
    display: flex;
    gap: 6px;
    align-items: center;
  }

.policy-create-actions {
  margin-top: 16px;
}

.invite-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background: #071827;
  color: #f8fafc;
}

.invite-panel {
  width: min(680px, 100%);
  border: 1px solid rgba(226, 178, 58, 0.32);
  border-radius: 8px;
  padding: 28px;
  background: #0d2538;
}

.invite-brand {
  margin-bottom: 12px;
  color: #e2b23a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.invite-panel h1 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

.invite-text {
  margin: 0 0 20px;
  color: #cbd5e1;
  line-height: 1.5;
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.invite-primary,
.invite-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.invite-primary {
  background: #e2b23a;
  color: #071827;
}

.invite-secondary {
  border: 1px solid rgba(203, 213, 225, 0.42);
  color: #f8fafc;
}

.invite-steps {
  display: grid;
  gap: 10px;
}

.invite-steps div {
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(15, 40, 60, 0.8);
}

.invite-steps strong,
.invite-steps span {
  display: block;
}

.invite-steps strong {
  margin-bottom: 4px;
  color: #ffffff;
}

.invite-steps span,
.invite-note {
  color: #cbd5e1;
  line-height: 1.45;
}

.invite-note {
  margin: 18px 0 0;
  font-size: 14px;
}
