/* PartyGuard Startseite (ausgeloggt + eingeloggt). Benötigt pg-base.css. */

body { min-height: 100vh; display: flex; flex-direction: column; }
.pg-wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ── Kopfzeile ──────────────────────────────────────── */
.pg-top {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 11, 12, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.pg-top-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}
.pg-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.pg-brand .pg-wordmark { font-size: 22px; }
.pg-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pg-nav a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.pg-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.pg-nav a[aria-current="page"] { color: var(--text); }
.pg-nav .pg-btn { color: var(--ink-text); margin-left: 6px; }
.pg-nav .pg-btn:hover { color: var(--ink-text); background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.pg-nav-team { color: #ff8a8a !important; }

.pg-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.pg-menu-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }

main.pg-page { flex: 1; padding: 20px 0 64px; }

/* ── Allgemeine Bausteine ───────────────────────────── */
.pg-section { margin-top: 72px; }
.pg-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.pg-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pg-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.pg-lead { margin: 10px 0 0; color: var(--text-muted); max-width: 560px; }

.pg-panel {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}
.pg-panel-pad { padding: 24px; }
.pg-panel-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.pg-icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.pg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Status-Pills für Muttizettel */
.pg-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pg-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pg-status-ready { color: var(--ok); background: rgba(61, 220, 132, 0.1); }
.pg-status-parents { color: #f2c94c; background: rgba(242, 201, 76, 0.1); }
.pg-status-supervisor { color: #ff9f43; background: rgba(255, 159, 67, 0.12); }
.pg-status-rejected { color: #ff6b6b; background: rgba(252, 0, 0, 0.12); }
.pg-status-missing { color: var(--text-muted); background: rgba(255, 255, 255, 0.06); }

/* ── Hero: nächste Party ────────────────────────────── */
.pg-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 16px;
}
.pg-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 580px;
  padding: 36px;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(70% 60% at 10% 110%, rgba(252, 0, 0, 0.55), transparent 62%),
    linear-gradient(160deg, #1d1d1f, #0a0a0a 72%);
  color: #fff;
  isolation: isolate;
}
.pg-hero video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.88) 100%),
    radial-gradient(70% 55% at 0% 100%, rgba(252, 0, 0, 0.45), transparent 65%);
}
.pg-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: -10px -8px auto;
  padding-bottom: 28px;
}
.pg-hero-sub {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.pg-hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.pg-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
}
.pg-hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.pg-hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pg-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pg-hero-actions .pg-btn { height: 50px; font-size: 15.5px; }
.pg-hero-actions .pg-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); background: rgba(0, 0, 0, 0.25); backdrop-filter: blur(8px); }
.pg-hero-actions .pg-btn-ghost:hover { background: rgba(0, 0, 0, 0.45); }

.pg-hero-side { display: flex; flex-direction: column; gap: 16px; }

/* Datumskachel */
.pg-date {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  overflow: hidden;
}
.pg-date-day {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 112px;
  line-height: 0.85;
  letter-spacing: -0.05em;
}
.pg-date-month {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.pg-date-week { color: var(--text-muted); font-size: 14px; }
.pg-date-count {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
}
.pg-date-count::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pg-pulse 1.6s ease-in-out infinite;
}
@keyframes pg-pulse { 50% { opacity: 0.3; } }

/* Terminliste */
.pg-list { margin: 0; padding: 0; list-style: none; }
.pg-list li + li { border-top: 1px solid var(--border); }
.pg-list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  color: inherit;
  text-decoration: none;
}
a.pg-list-row:hover .pg-list-title { text-decoration: underline; text-underline-offset: 3px; }
.pg-mini-date {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 56px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: var(--surface-2);
  line-height: 1;
}
.pg-mini-date b { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.pg-mini-date small { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.pg-list-body { min-width: 0; flex: 1; }
.pg-list-title { display: block; font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-list-meta { display: block; color: var(--text-muted); font-size: 13px; }
.pg-list-end { flex: none; color: var(--text-muted); }

.pg-note-card { display: flex; flex-direction: column; gap: 12px; }
.pg-note-card p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ── So funktioniert's ──────────────────────────────── */
.pg-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.pg-flow li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 22px 24px;
  border: 1px solid var(--border);
  border-radius: 999px 999px 22px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  text-align: center;
}
.pg-flow li:last-child {
  border-color: rgba(252, 0, 0, 0.4);
  background: linear-gradient(180deg, rgba(252, 0, 0, 0.22), rgba(252, 0, 0, 0.02));
}
.pg-flow-no { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; color: var(--text-muted); padding-top: 14px; }
.pg-flow svg { width: 40px; height: 40px; margin: 6px auto; stroke: #fff; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pg-flow h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.pg-flow p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ── Das brauchst du ────────────────────────────────── */
.pg-needs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pg-needs li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.pg-needs .pg-icon-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: #ff6b6b;
}
.pg-needs b { display: block; font-size: 15px; margin-bottom: 2px; }
.pg-needs span { color: var(--text-muted); font-size: 13.5px; }

/* ── FAQ ────────────────────────────────────────────── */
.pg-faq { display: flex; flex-direction: column; gap: 10px; }
.pg-faq details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.15s;
}
.pg-faq details[open] { border-color: var(--border-strong); }
.pg-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.2s;
}
.pg-faq details[open] summary::after { transform: rotate(45deg); }
.pg-faq-a { padding: 0 20px 18px; color: var(--text-muted); font-size: 14.5px; white-space: pre-line; }

/* ── CTA-Band ───────────────────────────────────────── */
.pg-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px;
  border-radius: 26px;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(252, 0, 0, 0.5), transparent 60%),
    linear-gradient(135deg, #1b1b1c, #0d0d0e);
  border: 1px solid var(--border);
}
.pg-cta .pg-h2 { max-width: 18ch; }

/* ── Eingeloggt ─────────────────────────────────────── */
.pg-hello {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 22px;
}
.pg-hello h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.pg-hello p { margin: 8px 0 0; color: var(--text-muted); }

.pg-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 26px 28px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: var(--surface);
}
.pg-step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 140% at 0% 50%, var(--step-glow, rgba(252, 0, 0, 0.22)), transparent 60%);
  pointer-events: none;
}
.pg-step > * { position: relative; }
.pg-step-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--step-tile, var(--accent));
  color: #fff;
}
.pg-step-icon .pg-icon { width: 26px; height: 26px; }
.pg-step-kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.pg-step h2 { margin: 4px 0 4px; font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; }
.pg-step p { margin: 0; color: var(--text-muted); font-size: 14.5px; }
.pg-step-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pg-step-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pg-step-ready { --step-glow: rgba(61, 220, 132, 0.2); --step-tile: #1f9d5a; }
.pg-step-parents { --step-glow: rgba(242, 201, 76, 0.18); --step-tile: #b8911f; }
.pg-step-supervisor { --step-glow: rgba(255, 159, 67, 0.2); --step-tile: #d9761f; }
.pg-step-none { --step-glow: rgba(255, 255, 255, 0.06); --step-tile: var(--surface-2); }

.pg-dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.pg-party {
  min-height: 360px;
  padding: 28px;
}
.pg-party h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.pg-party .pg-hero-meta { margin-top: 14px; font-size: 14px; }
.pg-party .pg-hero-actions { margin-top: 18px; }
.pg-party .pg-hero-actions .pg-btn { height: 44px; font-size: 14.5px; }
.pg-party-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, 0.75); }

.pg-mz-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; }
.pg-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.pg-empty { padding: 18px 0 4px; color: var(--text-muted); font-size: 14px; }
.pg-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.pg-panel-head a { font-size: 13.5px; color: var(--text-muted); text-decoration: none; }
.pg-panel-head a:hover { color: var(--text); }

.pg-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.pg-tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.pg-tile:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-2px); }
.pg-tile-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.pg-tile b { display: block; font-size: 15px; }
.pg-tile span { color: var(--text-muted); font-size: 13px; }
.pg-tile-team .pg-tile-icon { background: var(--accent-soft); border-color: rgba(252, 0, 0, 0.3); color: #ff6b6b; }

/* ── Fußzeile ───────────────────────────────────────── */
.pg-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  color: var(--text-muted);
  font-size: 13px;
}
.pg-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.pg-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pg-footer a { text-decoration: none; }
.pg-footer a:hover { color: var(--text); }
.pg-footer .pg-wordmark { font-size: 16px; color: var(--text); }

/* ── Einblenden beim Scrollen (ohne JS: sofort sichtbar) ─ */
.js .pg-reveal-up { opacity: 0; translate: 0 18px; transition: opacity 0.6s ease, translate 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .pg-reveal-up.is-in { opacity: 1; translate: 0 0; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1020px) {
  .pg-hero-grid, .pg-dash-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-hero-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-flow, .pg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pg-menu-btn { display: inline-grid; place-items: center; }
  .pg-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(11, 11, 12, 0.97);
  }
  .pg-nav.is-open { display: flex; }
  .pg-nav a { height: 46px; font-size: 15px; }
  .pg-nav .pg-btn { margin: 8px 0 0; width: 100%; }
  .pg-brand .pg-pill { display: none; }

  main.pg-page { padding-top: 12px; }
  .pg-section { margin-top: 52px; }
  .pg-hero { min-height: 540px; padding: 24px 20px; border-radius: 22px; }
  .pg-hero-top { margin: -6px -4px auto; }
  .pg-party { min-height: 0; }
  .pg-hero-actions .pg-btn { width: 100%; }
  .pg-hero-side { grid-template-columns: minmax(0, 1fr); }
  .pg-date { flex-direction: row; align-items: center; }
  .pg-date-day { font-size: 72px; }
  .pg-flow { grid-template-columns: minmax(0, 1fr); }
  .pg-flow li { flex-direction: row; text-align: left; align-items: center; border-radius: 18px; padding: 16px 18px; }
  .pg-flow-no { padding: 0; }
  .pg-flow svg { width: 30px; height: 30px; margin: 0; }
  .pg-flow h3 + p { margin-top: 2px; }
  .pg-needs { grid-template-columns: minmax(0, 1fr); }
  .pg-cta { flex-direction: column; align-items: stretch; padding: 26px 20px; }
  .pg-cta .pg-btn { width: 100%; }

  .pg-hello { flex-direction: column; align-items: stretch; }
  .pg-hello .pg-btn { width: 100%; }
  .pg-step { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; gap: 14px; }
  .pg-step-icon { width: 44px; height: 44px; border-radius: 13px; }
  .pg-step-icon .pg-icon { width: 22px; height: 22px; }
  .pg-step-actions { grid-column: 1 / -1; justify-content: stretch; }
  .pg-step-actions .pg-btn { flex: 1; }
  .pg-step h2 { font-size: 20px; }
  .pg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-tile { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .pg-reveal-up { opacity: 1; translate: none; transition: none; }
  .pg-date-count::before { animation: none; }
}
.pg-flashes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

a.pg-chip { text-decoration: none; }
a.pg-chip:hover { background: rgba(255, 255, 255, 0.14); }
