:root {
  --bg: #0b1220;
  --bg-soft: #121b2d;
  --card: rgba(255,255,255,0.08);
  --card-border: rgba(255,255,255,0.12);
  --text: #eef4ff;
  --muted: #a9b7d0;
  --accent: #6ab4ff;
  --accent-2: #8ff3cb;
  --danger: #ff7f96;
  --shadow: 0 20px 45px rgba(0,0,0,0.24);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(106,180,255,0.16), transparent 30%),
    radial-gradient(circle at top left, rgba(143,243,203,0.10), transparent 30%),
    linear-gradient(180deg, #0a1020 0%, #0f1729 100%);
  min-height: 100vh;
}
* input, * select, * button, * textarea { font: inherit; }
.hero { padding: 56px 20px 28px; }
.hero-inner, main, .admin-layout { max-width: 1180px; margin: 0 auto; }
.auth-hero-inner { min-height: calc(100vh - 84px); display: grid; place-items: center; }
.eyebrow {
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--accent-2);
  margin: 0 0 8px;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}
.subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 12px 0 24px;
  max-width: 800px;
}
.title-row, .action-row, .panel-header, .card-actions, .auth-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-link, .back-link {
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  padding: 12px 16px;
  border-radius: 14px;
}
#search, input, select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  color: var(--text);
  outline: none;
}
select option {
  color: #111827;
  background: #ffffff;
}
#search { max-width: 620px; box-shadow: var(--shadow); }
input::placeholder { color: #c3cde0; }
main { padding: 0 20px 48px; }
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.section-card, .panel, .editor-card, .auth-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.auth-card-wide { width: min(100%, 680px); padding: 30px; }
.section-header h2 { margin-bottom: 4px; font-size: 1.25rem; }
.section-header p { color: var(--muted); min-height: 2.7em; }
.item-list, .stack { display: grid; gap: 12px; }
.item-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 14px 16px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(143,243,203,0.45);
  background: rgba(255,255,255,0.10);
}
.item-title-row, .meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.item-title { font-weight: 700; }
.external { color: var(--accent-2); font-size: 1rem; }
.item-desc {
  margin: 8px 0 10px;
  color: var(--muted);
  min-height: 2.6em;
}
.meta-row {
  font-size: .88rem;
  color: #d6e3f7;
}
.meta-row span {
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 6px 10px;
}
.hidden { display: none !important; }
.admin-body { min-height: 100vh; }
.admin-hero { padding-bottom: 18px; }
.admin-layout {
  padding: 0 20px 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.panel-header h2 { margin-bottom: 0; }
.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
label { display: grid; gap: 8px; color: var(--muted); font-size: .95rem; }
.btn {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
}
.btn.primary { background: linear-gradient(180deg, rgba(106,180,255,0.4), rgba(106,180,255,0.22)); }
.btn.ghost { background: rgba(255,255,255,0.06); }
.btn.danger {
  border-color: rgba(255,127,150,0.28);
  background: rgba(255,127,150,0.12);
}
.pill.info { background: rgba(143,243,203,0.12); }
.pill {
  background: rgba(255,255,255,0.08);
  padding: 2px 7px;
  border-radius: 8px;
}
.status-box {
  margin: 0;
  white-space: pre-wrap;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 14px;
  color: #dcecff;
}
.error-box {
  color: #ffd8e0;
  background: rgba(255,127,150,0.12);
  border: 1px solid rgba(255,127,150,0.22);
  border-radius: 14px;
  padding: 12px 14px;
}
@media (max-width: 780px) {
  .grid-two { grid-template-columns: 1fr; }
  .section-header p, .item-desc { min-height: auto; }
  .hero { padding-top: 34px; }
}


@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 780px) {
  .grid-two { grid-template-columns: 1fr; }
  .section-header p, .item-desc { min-height: auto; }
  .hero { padding-top: 34px; }
  .grid {
    grid-template-columns: 1fr;
  }
  .title-row, .action-row, .panel-header, .card-actions, .auth-footer-row {
    align-items: stretch;
  }
  .btn, .admin-link, .back-link {
    width: 100%;
    text-align: center;
  }
}


.small-note {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}


.grouped-links-list {
  gap: 18px;
}
.link-group {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  padding: 16px;
}
.link-group-header {
  margin-bottom: 12px;
}
.link-group-header h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.link-group-header p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
.link-group-items {
  gap: 12px;
}

.category-tone-1 {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(106,180,255,0.08));
}
.category-tone-2 {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(120,170,255,0.06));
}


.diagnostics-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 10px 12px;
}


.diag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.diag-row:last-child {
  border-bottom: 0;
}
.diag-badge {
  display: inline-block;
  min-width: 88px;
  text-align: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
}
.diag-badge.ok {
  background: rgba(72, 201, 176, 0.18);
  border: 1px solid rgba(72, 201, 176, 0.35);
  color: #b9ffec;
}
.diag-badge.bad {
  background: rgba(255, 127, 150, 0.16);
  border: 1px solid rgba(255, 127, 150, 0.32);
  color: #ffd4dd;
}
.diag-badge.neutral {
  background: rgba(106,180,255,0.14);
  border: 1px solid rgba(106,180,255,0.24);
  color: #d8ebff;
}

/* Stronger but still subtle alternating category tones on frontend */
.section-card.category-tone-1 {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(106,180,255,0.12));
  border-color: rgba(106,180,255,0.22);
}
.section-card.category-tone-2 {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(133,196,255,0.08));
  border-color: rgba(143,243,203,0.18);
}

/* Slightly clearer grouping in admin */
.link-group {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(106,180,255,0.14);
}
.link-group-header {
  padding: 4px 2px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.link-group-header h3 {
  color: #dcecff;
}


.history-list {
  display: grid;
  gap: 12px;
}
.history-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 14px 16px;
}
.history-main, .history-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.history-main {
  margin-bottom: 6px;
}
.history-type {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  color: var(--accent-2);
}
.history-meta, .history-message {
  color: var(--muted);
  font-size: .9rem;
}

.section-card.category-tone-1 {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(106,180,255,0.18));
  border-color: rgba(106,180,255,0.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), var(--shadow);
}
.section-card.category-tone-2 {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(72,140,255,0.14));
  border-color: rgba(72,140,255,0.30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), var(--shadow);
}

.section-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.meta-badge,
.meta-chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .85rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
}
.meta-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.helper-meta-grid {
  gap: 10px;
}
.helper-card.is-static-card,
.is-static-card {
  cursor: default;
}
.is-static-card:hover {
  transform: none;
}
.status-angefragt {
  border-color: rgba(106,180,255,0.28);
}
.status-zugesagt {
  border-color: rgba(143,243,203,0.35);
}
.status-abgesagt {
  border-color: rgba(255,127,150,0.32);
}
.status-reserve {
  border-color: rgba(255,208,119,0.35);
}
.status-pill.status-angefragt {
  background: rgba(106,180,255,0.16);
}
.status-pill.status-zugesagt {
  background: rgba(143,243,203,0.16);
}
.status-pill.status-abgesagt {
  background: rgba(255,127,150,0.16);
}
.status-pill.status-reserve {
  background: rgba(255,208,119,0.16);
}
.grid-two-wide {
  grid-template-columns: 2fr 1fr 2fr 1fr;
}
.grid-helper-admin {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.diag-stack {
  gap: 8px;
}
.diag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
}
.diag-badge {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .82rem;
  border: 1px solid rgba(255,255,255,0.08);
}
.diag-badge.ok { background: rgba(143,243,203,0.16); }
.diag-badge.bad { background: rgba(255,127,150,0.16); }
.diag-badge.neutral { background: rgba(255,255,255,0.10); }
.history-meta, .history-message {
  color: var(--muted);
  font-size: .92rem;
}
@media (max-width: 1100px) {
  .grid-two-wide,
  .grid-helper-admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 780px) {
  .grid-two-wide,
  .grid-helper-admin {
    grid-template-columns: 1fr;
  }
}


.helper-group-header-admin {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.helper-group-copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: min(100%, 360px);
}
.helper-group-copy-row select {
  min-width: 220px;
  flex: 1 1 220px;
}
.helper-group-copy-row .btn {
  white-space: nowrap;
}
@media (max-width: 780px) {
  .helper-group-copy-row {
    width: 100%;
  }
  .helper-group-copy-row .btn,
  .helper-group-copy-row select {
    width: 100%;
  }
}


.helper-launch {
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: #fff;
}

.helper-launch:hover,
.helper-launch:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  outline: 2px solid rgba(37, 99, 235, 0.18);
  outline-offset: 2px;
}

.helper-card-hint {
  display: inline-flex;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
}

.modal-open {
  overflow: hidden;
}

.overlay-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.overlay-modal.hidden {
  display: none;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
}

.overlay-panel {
  position: relative;
  width: min(100%, 560px);
  max-height: min(90vh, 920px);
  overflow: auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.22);
}

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

.overlay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #dbe4f0;
  background: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.compact {
  margin-bottom: 18px;
}

.mobile-form-stack label,
.quick-edit-grid label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: #0f172a;
}

.mobile-form-stack input,
.quick-edit-grid input,
.quick-edit-grid select,
.quick-edit-grid textarea {
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  font-size: 16px;
  background: #fff;
}

.quick-edit-grid textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-large {
  min-height: 52px;
  padding: 12px 18px;
  font-size: 16px;
}

.quick-edit-form {
  display: grid;
  gap: 18px;
}

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

.quick-edit-grid .full-width {
  grid-column: 1 / -1;
}

.quick-edit-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.status-message {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
}

.status-message.is-success {
  background: #dcfce7;
  color: #166534;
}

.status-message.is-error {
  background: #fee2e2;
  color: #b91c1c;
}

@media (max-width: 900px) {
  .overlay-panel {
    padding: 20px;
  }

  .quick-edit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .overlay-modal {
    align-items: flex-end;
    padding: 0;
  }

  .overlay-panel,
  .overlay-panel-wide {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    padding: 20px 16px 24px;
  }

  .helper-card-hint {
    font-size: 11px;
  }

  .quick-edit-actions .btn {
    width: 100%;
    justify-content: center;
  }
}


/* v1.0.13 gezielte Reparatur der Startseiten-Schnellbearbeitung */
.section-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 14px;
}
.add-helper-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
}
.add-helper-btn:hover,
.add-helper-btn:focus-visible {
  background: rgba(255,255,255,0.12);
  outline: none;
}
.helper-launch {
  background: rgba(255,255,255,0.07);
}
.helper-launch.status-zugesagt {
  border: 2px solid rgba(34, 197, 94, 0.88);
}
.helper-launch.status-abgesagt {
  border: 2px solid rgba(239, 68, 68, 0.88);
}
.helper-launch.status-angefragt,
.helper-launch.status-reserve {
  border: 2px solid rgba(245, 158, 11, 0.85);
}
.status-pill.status-zugesagt {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.55);
  color: #dcfce7;
}
.status-pill.status-abgesagt {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.55);
  color: #fee2e2;
}
.status-pill.status-angefragt,
.status-pill.status-reserve {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.55);
  color: #fef3c7;
}
.overlay-panel {
  background: linear-gradient(180deg, #17345c 0%, #102846 100%);
  color: #eef4ff;
  border: 1px solid rgba(255,255,255,0.14);
}
.overlay-close {
  background: rgba(255,255,255,0.10);
  color: #eef4ff;
  border-color: rgba(255,255,255,0.18);
}
.mobile-form-stack label,
.quick-edit-grid label {
  color: #dbeafe;
}
.mobile-form-stack input,
.quick-edit-grid input,
.quick-edit-grid select,
.quick-edit-grid textarea {
  background: rgba(11, 26, 46, 0.95);
  color: #ffffff;
  border: 1px solid rgba(191, 219, 254, 0.28);
}
.mobile-form-stack input::placeholder,
.quick-edit-grid input::placeholder,
.quick-edit-grid textarea::placeholder {
  color: #c7d7ea;
}
.quick-edit-grid input:focus,
.quick-edit-grid select:focus,
.quick-edit-grid textarea:focus,
.mobile-form-stack input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.16);
}
.quick-edit-actions {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(16,40,70,0) 0%, rgba(16,40,70,0.96) 32%);
  padding-top: 14px;
}
@media (max-width: 640px) {
  .overlay-panel,
  .overlay-panel-wide {
    max-height: 94vh;
  }
}

/* v1.0.15 gezielte Ergänzungen */
.status-pill.status-reserve {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.55);
  color: #f3e8ff;
}
.helper-launch.status-reserve,
.helper-card.status-reserve {
  border: 2px solid rgba(168, 85, 247, 0.85);
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.18), var(--shadow);
}
.section-card.all-zugesagt {
  border: 2px solid rgba(34, 197, 94, 0.88);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.18), var(--shadow);
}
.btn.danger {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.42);
  color: #fee2e2;
}
.btn.danger:hover,
.btn.danger:focus-visible {
  background: rgba(239, 68, 68, 0.24);
  outline: none;
}
.quick-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.quick-edit-actions .btn.danger {
  margin-right: auto;
}

/* v1.1.0 responsive admin-link below title on small screens */

/* v1.1.3 mobile/tablet only: admin link below title, desktop unchanged */
@media (max-width: 1024px) {
  .title-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .title-row .admin-link {
    order: 99;
    margin-top: 8px;
    align-self: flex-start;
  }
}

/* v1.1.4 admin button: desktop oben, tablet/handy unten unter Suche */
.hero-admin-mobile-row {
  display: none;
  margin-top: 14px;
}

.admin-link-desktop {
  display: inline-flex;
}

.admin-link-mobile {
  display: inline-flex;
}

@media (max-width: 1024px) {
  .admin-link-desktop {
    display: none;
  }

  .hero-admin-mobile-row {
    display: flex;
    justify-content: flex-start;
  }

  .hero-admin-mobile-row .admin-link-mobile {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (min-width: 1025px) {
  .admin-link-mobile {
    display: none;
  }
}


/* v1.1.5 admin button wirklich ganz unten (mobile only) */
.admin-footer-mobile {
  display: none;
}

@media (max-width: 1024px) {
  .admin-footer-mobile {
    display: flex;
    justify-content: center;
    margin: 30px 0;
  }

  .admin-footer-mobile .admin-link {
    width: 90%;
    justify-content: center;
  }
}

/* v1.1.6 Schnellbearbeitung ohne verschachtelte Scroll-Layer */
.overlay-modal {
  display: block;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 16px 28px;
}

.overlay-panel,
.overlay-panel-wide {
  max-height: none;
  overflow: visible;
  margin: 20px auto;
}

.quick-edit-form,
.quick-edit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.quick-edit-grid .full-width {
  grid-column: auto;
}

.quick-edit-actions {
  position: static;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  background: transparent;
  padding-top: 0;
}

.quick-edit-actions .btn,
.quick-edit-actions .btn-large {
  width: 100%;
  justify-content: center;
}

@media (max-width: 900px) {
  .overlay-panel,
  .overlay-panel-wide {
    width: min(100%, 760px);
    padding: 18px 16px 22px;
  }
}

@media (max-width: 640px) {
  .overlay-modal {
    align-items: stretch;
    padding: 12px 10px 22px;
  }

  .overlay-panel,
  .overlay-panel-wide {
    width: 100%;
    border-radius: 18px;
    margin: 10px auto;
    padding: 16px 14px 18px;
  }

  .overlay-close {
    top: 10px;
    right: 10px;
  }
}

/* v1.1.7 Loeschbutton ganz unten */
.quick-edit-actions #qe-delete-btn {
  order: 99;
}

/* v1.1.8b Sicherheitsabfrage mit JA/NEIN Buttons */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 100000;
}

.confirm-box {
  width: min(360px, 100%);
  background: linear-gradient(180deg, #17345c 0%, #102846 100%);
  color: #eef4ff;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.42);
  padding: 20px;
  text-align: center;
}

.confirm-box h3 {
  margin: 0 0 10px;
}

.confirm-box p {
  margin: 0 0 16px;
  color: #dbeafe;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.confirm-actions .btn {
  width: 100%;
  justify-content: center;
}

.confirm-no {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.48);
  color: #fee2e2;
}

.confirm-no:hover,
.confirm-no:focus-visible {
  background: rgba(239, 68, 68, 0.26);
  outline: none;
}

.confirm-yes {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.48);
  color: #dcfce7;
}

.confirm-yes:hover,
.confirm-yes:focus-visible {
  background: rgba(34, 197, 94, 0.26);
  outline: none;
}



/* v1.2.0 Add-Helper Box */
.helper-add-card {
  border: 2px dashed rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
  text-align: center;
}

.helper-add-card:hover {
  background: rgba(255,255,255,0.1);
}

/* v1.2.3 klickbare Mail- und Telefonlinks */
.contact-link {
  color: #dbeafe;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: #ffffff;
  outline: none;
}

/* v1.3.0 Passwortverwaltung und Rescue */
.muted-note {
  color: rgba(230, 238, 255, 0.78);
  margin: 0 0 4px;
}

.success-box {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.42);
  background: rgba(34, 197, 94, 0.14);
  color: #dcfce7;
  margin-bottom: 16px;
}

/* v1.3.1 Passwortverwaltung */
.muted-note {
  color: rgba(230, 238, 255, 0.78);
  margin: 0 0 4px;
}

.success-box {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.42);
  background: rgba(34, 197, 94, 0.14);
  color: #dcfce7;
  margin-bottom: 16px;
}

/* v1.3.2 Warnung fuer emergency-reset.php */
.emergency-warning-wrap {
  width: min(1120px, calc(100% - 28px));
  margin: 18px auto 0;
}

.emergency-warning-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(239, 68, 68, 0.48);
  background: rgba(127, 29, 29, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.emergency-warning-eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fecaca;
}

.emergency-warning-box h2 {
  margin: 0 0 6px;
  color: #fee2e2;
  font-size: 1.2rem;
}

.emergency-warning-box p {
  margin: 0;
  color: #fecaca;
}

.emergency-warning-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .emergency-warning-box {
    grid-template-columns: 1fr;
  }

  .emergency-warning-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
