@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo.woff2) format('woff2-variations'), url(/fonts/archivo.woff2) format('woff2');
}
html, body { margin: 0; height: 100%; }
/* Paradiso Mitglieder-App – Farben aus paradiso-athletic.de */
.pm {
  --black: #000000;
  --card: #141414;
  --card2: #1e1e1e;
  --lime: #E5FF7B;
  --white: #FFFFFF;
  --muted: rgba(255,255,255,.55);
  --line: rgba(255,255,255,.23);
  --bad: #FF8A7A;
  --font: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --tabs-h: 68px;
  position: relative;
  height: 100%;
  min-height: 100%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pm :where(*, *::before, *::after) { box-sizing: border-box; }
.pm :where(button, input, select, textarea) { font: inherit; color: inherit; }
.pm :where(button) { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.pm :where(a) { color: inherit; }
.pm :focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
.pm .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pm .ic.lime { color: var(--lime); }

.pm-screen {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(var(--tabs-h) + 24px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}
.pm-pad { padding: 0 20px; margin-bottom: 28px; }
.pm-loading { height: 100%; display: grid; place-items: center; }

/* Wortmarke */
.pm-mark { font-weight: 800; font-stretch: 125%; letter-spacing: .14em; font-size: 15px; }
.pm-mark.dark { color: var(--black); }

/* Kopf */
.pm-head { padding: calc(18px + env(safe-area-inset-top)) 20px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.pm-head.sub { justify-content: flex-start; gap: 8px; }
.pm-status { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.pm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pm-dot.on { background: var(--lime); box-shadow: 0 0 0 4px rgba(229,255,123,.18); }
.pm-back { width: 40px; height: 40px; display: grid; place-items: center; margin-left: -10px; }
.pm-title { font-size: 28px; line-height: 1.1; font-weight: 800; font-stretch: 112%; margin: 0; letter-spacing: -.01em; }
.pm-h2 { font-size: 19px; font-weight: 700; font-stretch: 105%; margin: 0 0 12px; }

/* Start */
.pm-hero { font-size: 44px; line-height: .98; font-weight: 850; font-stretch: 118%; letter-spacing: -.02em; margin: 6px 0 14px; }
.pm-hero.small { font-size: 32px; margin-top: 0; }
.pm-hello { font-size: 38px; line-height: 1; font-weight: 850; font-stretch: 118%; letter-spacing: -.02em; margin: 6px 0 18px; }
.pm-lead { font-size: 18px; color: var(--muted); margin: 0 0 22px; max-width: 34ch; }
.pm-duo { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.pm-stat { background: var(--card); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pm-stat-k { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.pm-stat strong { font-size: 18px; font-weight: 700; line-height: 1.2; }
.pm-stat > span:last-child { color: var(--muted); font-size: 14px; }
.pm-big { font-size: 46px !important; font-weight: 850 !important; font-stretch: 120%; color: var(--lime); line-height: 1 !important; font-variant-numeric: tabular-nums; }

.pm-occ { cursor: pointer; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 18px; padding-bottom: 14px; }
.pm-occ-num { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.pm-occ-num strong { font-size: 40px; font-weight: 850; font-stretch: 120%; line-height: 1; font-variant-numeric: tabular-nums; }
.pm-occ-num span { color: var(--muted); font-size: 15px; }
.pm-bars { display: flex; align-items: flex-end; gap: 3px; height: 44px; }
.pm-bars i { flex: 1; background: rgba(255,255,255,.18); border-radius: 2px 2px 0 0; }
.pm-bars i.now { background: var(--lime); }
.pm-bars-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 6px; }

.pm-actions { display: flex; flex-direction: column; }
.pm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; width: 100%; }
.pm-row .ic { color: var(--muted); }

.pm-news { padding: 18px 0; border-bottom: 1px solid var(--line); }
.pm-news.pinned { border-left: 3px solid var(--lime); padding-left: 14px; }
.pm-news h3, .pm-msg h3 { font-size: 18px; margin: 4px 0 6px; font-weight: 700; }
.pm-news p, .pm-msg p { margin: 0; color: rgba(255,255,255,.8); max-width: 60ch; }
.pm-news-meta { display: flex; gap: 10px; color: var(--muted); font-size: 13px; align-items: center; flex-wrap: wrap; }
.pm-tag { color: var(--black); background: var(--lime); border-radius: 999px; padding: 1px 9px; font-weight: 600; }

/* Buttons */
.pm-btn { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; min-height: 52px; border-radius: 999px; background: var(--lime); color: var(--black) !important; font-weight: 700; font-size: 16px; text-decoration: none; padding: 0 20px; transition: transform .1s; }
.pm-btn:active { transform: scale(.98); }
.pm-btn:disabled { opacity: .5; }
.pm-btn.ghost { background: transparent; color: var(--white) !important; box-shadow: inset 0 0 0 1.5px var(--line); }
.pm-btn.small { min-height: 44px; font-size: 15px; }
.pm-stack { display: flex; flex-direction: column; gap: 10px; }
.pm-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pm-link { color: var(--lime); font-weight: 600; font-size: 14px; }

/* Segment- und Tagesauswahl */
.pm-seg { display: flex; background: var(--card); border-radius: 999px; padding: 3px; gap: 2px; }
.pm-seg button { padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); text-align: center; }
.pm-seg button[aria-selected="true"] { background: var(--white); color: var(--black); }
.pm-seg.wd { margin: 14px 0 16px; }
.pm-seg.wd button { flex: 1; padding: 7px 0; }
.pm-days { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px 18px; scrollbar-width: none; }
.pm-days::-webkit-scrollbar { display: none; }
.pm-days button { flex: none; width: 54px; padding: 8px 0 10px; border-radius: 16px; background: var(--card); display: flex; flex-direction: column; align-items: center; gap: 1px; }
.pm-days span { font-size: 12px; color: var(--muted); }
.pm-days strong { font-size: 22px; font-weight: 800; font-stretch: 115%; font-variant-numeric: tabular-nums; }
.pm-days button[aria-selected="true"] { background: var(--lime); color: var(--black); }
.pm-days button[aria-selected="true"] span { color: rgba(0,0,0,.6); }

/* Kursplan als Zeittafel */
.pm-slots { list-style: none; margin: 0; padding: 0 20px; }
.pm-slot { width: 100%; display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pm-slot.past { opacity: .4; }
.pm-time { font-size: 24px; font-weight: 800; font-stretch: 125%; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pm-slot-main { display: flex; flex-direction: column; min-width: 0; }
.pm-slot-main strong { font-size: 17px; font-weight: 700; line-height: 1.25; }
.pm-slot-sub { color: var(--muted); font-size: 13px; }
.pm-cap { display: block; height: 2px; background: var(--line); margin-top: 10px; border-radius: 2px; overflow: hidden; }
.pm-cap i { display: block; height: 100%; background: var(--lime); }
.pm-slot-side { padding-top: 3px; }
.pm-free { font-size: 13px; color: var(--muted); white-space: nowrap; }
.pm-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--lime); color: var(--lime); white-space: nowrap; }
.pm-pill.on { background: var(--lime); color: var(--black); }
.pm-pill.dim { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); }

/* Check-in: das eine laute Element */
.pm-qrcard {
  margin: calc(16px + env(safe-area-inset-top)) 16px 30px;
  background: var(--lime); color: var(--black);
  border-radius: 28px; padding: 22px 22px 20px;
  display: flex; flex-direction: column; align-items: center;
}
.pm-qr-top { width: 100%; display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; margin-bottom: 22px; }
.pm-qr { width: min(70vw, 260px); aspect-ratio: 1; }
.pm-qr svg { width: 100%; height: 100%; display: block; }
.pm-qr svg rect[fill="#ffffff"], .pm-qr svg rect[fill="white"] { fill: transparent; }
.pm-qr svg path, .pm-qr svg rect[fill="#000000"] { fill: var(--black); }
.pm-qr-name { font-size: 30px; font-weight: 850; font-stretch: 118%; letter-spacing: -.02em; margin-top: 22px; text-align: center; line-height: 1.05; }
.pm-qr-sub { font-size: 15px; margin-top: 4px; }
.pm-qr-timer { width: 100%; height: 4px; background: rgba(0,0,0,.15); border-radius: 4px; margin-top: 20px; overflow: hidden; }
.pm-qr-timer i { display: block; height: 100%; width: 100%; background: var(--black); }
.pm-qr-hint { font-size: 13px; margin: 12px 0 0; text-align: center; opacity: .7; max-width: 30ch; }

/* Listen */
.pm-list { list-style: none; margin: 0 0 14px; padding: 0; }
.pm-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pm-term { display: grid !important; grid-template-columns: 74px 1fr auto; }
.pm-term > span:nth-child(2) { display: flex; flex-direction: column; }
.pm-term.past { opacity: .5; }
.pm-empty { color: var(--muted); }
.pm-muted { color: var(--muted); font-size: 14px; margin: 0; font-weight: 400; }
.pm-pending { color: var(--lime); font-size: 13px; font-style: normal; font-weight: 600; margin: 6px 0 0; }

/* Club */
.pm-address { font-size: 17px; margin: 0 0 16px; }
.pm-occ-line { color: var(--muted); margin: 0; }
.pm-occ-line strong { color: var(--white); font-size: 22px; font-weight: 800; font-stretch: 115%; }
.pm-chart { display: flex; align-items: flex-end; gap: 4px; height: 140px; }
.pm-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.pm-col i { width: 100%; background: rgba(255,255,255,.2); border-radius: 3px 3px 0 0; }
.pm-col.now i { background: var(--lime); }
.pm-col span { font-size: 11px; color: var(--muted); height: 14px; font-variant-numeric: tabular-nums; }
.pm-hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pm-hours th { text-align: left; font-weight: 400; color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--line); }
.pm-hours td { text-align: right; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pm-hours tr.today th, .pm-hours tr.today td { color: var(--lime); font-weight: 700; }
.pm-facts { list-style: none; margin: 0; padding: 0; }
.pm-facts li { display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.pm-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 14px; }
.pm-links a { color: var(--muted); }

/* Profil */
.pm-me { display: flex; gap: 18px; align-items: center; padding-top: calc(24px + env(safe-area-inset-top)); }
.pm-avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--card2); flex: none; overflow: hidden; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--lime); }
.pm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pm-avatar span { font-size: 28px; font-weight: 800; font-stretch: 120%; }
.pm-msg { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pm-reply { margin-top: 12px; padding: 12px 14px; background: var(--card); border-radius: 14px; }
.pm-reply p { margin-top: 4px; }

/* Formulare */
.pm-form { display: flex; flex-direction: column; gap: 14px; }
.pm-field { display: flex; flex-direction: column; gap: 6px; }
.pm-field > span { font-size: 14px; color: var(--muted); }
.pm-field input, .pm-field select, .pm-field textarea {
  background: var(--card); border: 1.5px solid transparent; border-radius: 14px;
  padding: 13px 14px; font-size: 16px; width: 100%; outline: none; resize: vertical;
}
.pm-field input:focus, .pm-field select:focus, .pm-field textarea:focus { border-color: var(--lime); }
.pm-field input[type=file] { padding: 10px; font-size: 14px; }
.pm-two { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.pm-ro { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pm-ro span { color: var(--muted); }
.pm-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.pm-check input { width: 20px; height: 20px; accent-color: var(--lime); flex: none; margin-top: 1px; }
.pm-demo { background: var(--card); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--muted); margin: 0; }
.pm-demo strong { color: var(--white); }
.pm-note { color: var(--muted); margin: 0; }
.pm-dl { margin: 16px 0 20px; }
.pm-dl div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pm-dl dt { color: var(--muted); }
.pm-dl dd { margin: 0; font-weight: 600; }

/* Tab-Leiste */
.pm-tabs {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: rgba(0,0,0,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.pm-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); text-align: center; padding: 6px 0; }
.pm-tab[aria-current="page"] { color: var(--white); }
.pm-tab-qr .ic { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--lime); color: var(--black); margin-top: -22px; box-shadow: 0 0 0 5px var(--black); }
.pm-tab-qr[aria-current="page"] .ic { background: var(--white); }

/* Bottom-Sheet */
.pm-sheet-wrap { position: absolute; inset: 0; z-index: 20; }
.pm-sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .2s; }
.pm-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 90%;
  background: var(--card); border-radius: 26px 26px 0 0; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
  padding-bottom: env(safe-area-inset-bottom);
}
.pm-sheet-wrap.open .pm-sheet { transform: none; }
.pm-sheet-wrap.open .pm-sheet-bg { opacity: 1; }
.pm-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 20px 10px; }
.pm-sheet-head h2 { margin: 0; font-size: 24px; font-weight: 800; font-stretch: 112%; line-height: 1.1; }
.pm-x { width: 36px; height: 36px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; flex: none; }
.pm-x .ic { width: 18px; height: 18px; }
.pm-sheet-body { padding: 4px 20px 24px; overflow-y: auto; }
.pm-sheet-body .pm-field input, .pm-sheet-body .pm-field select, .pm-sheet-body .pm-field textarea { background: var(--card2); }
.pm-sheet-when { color: var(--lime); font-weight: 600; margin: 0 0 10px; }

/* Hinweis */
.pm-toast {
  position: absolute; left: 16px; right: 16px; bottom: calc(var(--tabs-h) + 14px + env(safe-area-inset-bottom)); z-index: 30;
  background: var(--white); color: var(--black); border-radius: 16px; padding: 13px 16px; font-weight: 600; font-size: 15px;
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: all .22s;
}
.pm-toast.show { transform: none; opacity: 1; }
.pm-toast.bad { background: var(--bad); }

@media (prefers-reduced-motion: reduce) {
  .pm *, .pm *::before, .pm *::after { transition: none !important; animation: none !important; }
}
@media (min-width: 700px) {
  .pm-screen > * { max-width: 640px; margin-left: auto; margin-right: auto; }
  .pm-qrcard { margin-left: auto; margin-right: auto; max-width: 420px; }
  .pm-tabs { padding-left: max(0px, calc(50% - 320px)); padding-right: max(0px, calc(50% - 320px)); }
}
