/* Launch Gabi Cloud. Farben und Glas wie auf launchgabi.com. */
:root {
  --void: #0a0512;
  --ink: #f4ecff;
  --muted: #bcaddb;
  --muted-dim: #8f80ab;
  --accent: #c74dff;
  --accent-warm: #ff5cc8;
  --accent-deep: #7c2ae8;
  --danger: #ff6b8b;
  --ok: #6ee7b7;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-hi: rgba(255, 255, 255, 0.10);
  --glass-line: rgba(255, 255, 255, 0.14);
  --glass-lit: rgba(255, 255, 255, 0.26);
  --r: 18px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--void);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--void) url("assets/end-bg.jpg") center 40% / cover no-repeat;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(115% 80% at 50% 14%, rgba(10, 5, 18, 0.25) 0%, rgba(10, 5, 18, 0.6) 54%, rgba(7, 3, 13, 0.9) 100%),
    linear-gradient(180deg, rgba(9, 4, 17, 0.6) 0%, rgba(9, 4, 17, 0.4) 30%, rgba(9, 4, 17, 0.7) 100%);
}

.nav, .wrap, .footer, .modal { position: relative; z-index: 1; }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--r);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--glass-lit), 0 10px 34px rgba(0, 0, 0, 0.42);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(23, 11, 38, 0.92); }
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand strong { font-size: 17px; letter-spacing: 0.2px; }
.brand-sub { color: var(--accent); font-weight: 600; }
.nav-right { display: flex; gap: 10px; align-items: center; }
.lang {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  color: var(--muted);
  border-radius: 10px;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.lang:hover { color: var(--ink); }

.wrap { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 16px 24px 48px; }
.center { display: grid; place-items: center; min-height: 40vh; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--glass-hi);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), opacity 0.15s;
}
.btn:hover { background: rgba(255, 255, 255, 0.16); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent) 55%, var(--accent-warm));
  box-shadow: 0 8px 26px rgba(199, 77, 255, 0.35);
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.danger { background: rgba(255, 107, 139, 0.18); border-color: rgba(255, 107, 139, 0.5); }
.btn.danger-ghost { background: transparent; border-color: rgba(255, 107, 139, 0.35); color: var(--danger); }
.btn.small { padding: 7px 12px; font-size: 14px; }
.btn.big { padding: 14px 26px; font-size: 17px; }
.btn:focus-visible, .lang:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Abgemeldet */
.hero { text-align: center; padding: 56px 0 32px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; margin: 0 0 16px; }
.lead { color: var(--muted); max-width: 640px; margin: 0 auto 28px; font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.fact { padding: 20px; }
.fact h3 { margin: 0 0 6px; font-size: 16px; }
.fact p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Angemeldet */
.account { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-warm));
}
.account-name { margin: 0; font-size: 26px; word-break: break-word; }
.muted { color: var(--muted); margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 20px; }
.card { padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card h2, .card h3 { margin: 0; overflow-wrap: anywhere; }
.card h3 { font-size: 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-line);
  color: var(--muted);
}
.card .actions { margin-top: auto; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.slot-free { border-style: dashed; color: var(--muted-dim); display: grid; place-items: center; min-height: 140px; }

.form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.field input, .field select {
  font: inherit;
  color: var(--ink);
  background: rgba(10, 5, 18, 0.55);
  border: 1px solid var(--glass-line);
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
}
.file-field input { padding: 8px; color: var(--muted); }
.file-field input::file-selector-button {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--glass-hi);
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  padding: 6px 12px;
  margin-right: 12px;
  cursor: pointer;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.progress { position: relative; height: 30px; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, 0.07); }
.progress .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); transition: width 0.2s; }
.progress .label { position: relative; display: block; text-align: center; line-height: 30px; font-size: 13px; }

.banner { padding: 12px 16px; border-radius: 12px; margin: 8px 0 16px; }
.banner.error { background: rgba(255, 107, 139, 0.15); border: 1px solid rgba(255, 107, 139, 0.45); }
.banner.ok { background: rgba(110, 231, 183, 0.12); border: 1px solid rgba(110, 231, 183, 0.4); }

.danger-zone { margin-top: 32px; display: flex; justify-content: flex-end; }

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Rueckfrage */
.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(5, 2, 10, 0.6); padding: 16px; z-index: 10; }
.modal-box { padding: 24px; max-width: 520px; width: 100%; display: grid; gap: 14px; background: rgba(23, 11, 38, 0.92); }
.modal-box h2 { margin: 0; font-size: 20px; }
.modal-box p { margin: 0; color: var(--muted); }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--glass-line); cursor: pointer; }
.choice input { margin-top: 5px; }
.choice small { display: block; color: var(--muted); }

.footer { display: flex; gap: 18px; justify-content: center; padding: 20px; font-size: 13.5px; }
.footer a { color: var(--muted-dim); text-decoration: none; }
.footer a:hover { color: var(--ink); }

@media (max-width: 560px) {
  .nav { padding: 12px 16px; }
  .wrap { padding: 8px 16px 40px; }
  .hero { padding: 32px 0 20px; }
  .danger-zone { justify-content: stretch; }
  .danger-zone .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s; }
  .btn { transition: none; }
}
