/* ══════════════════════════════════════════════════════════════════════════
   PN-PAGES — uebrige oeffentliche Seiten im PlayedNow-Design
   ──────────────────────────────────────────────────────────────────────────
   Anleitung (/anleitung), Rechtstexte (Impressum, Datenschutz, AGB,
   Nutzungsregeln), Loeschantrag, Stellungnahme sowie Registrierung,
   Passwort- und E-Mail-Seiten. Baut auf den Bausteinen aus pn-ui.css auf
   (.pn-page, .pn-kicker, .pn-heading, .pn-surface, .pn-input, .pn-btn) und
   greift nur bei body.pn-ui. Die Login-Seite laedt diese Datei nicht.

   Regeln: genau EIN Rahmen pro Flaeche (Unterteilungen nur per Flaeche,
   Abstand oder feiner Trennlinie), Touch-Ziele >= 44px, Text >= 12px,
   kein Ueberlauf ab 320px, kein !important, Live-Farben aus theme.v2.css.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Seitenkopf ─────────────────────────────────────────────────────────── */
body.pn-ui .pn-page-head { margin: 0 0 1.25rem; min-width: 0; }
body.pn-ui .pn-page-head .pn-lead { margin-bottom: 0; }
body.pn-ui .pn-page-head .pn-lead a { color: var(--bsn); font-weight: 600; }

/* ── Hinweis-Flaechen (ohne Rahmen) ─────────────────────────────────────── */
body.pn-ui .pn-notice {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border: 0;
  border-radius: var(--pn-radius-sm);
  font-size: 0.9rem; line-height: 1.6;
  color: var(--pn-ink);
  overflow-wrap: break-word;
}
body.pn-ui .pn-notice--ok { background: #E8F7EF; color: #065F46; }
body.pn-ui .pn-notice--error { background: #FDECEC; color: #991B1B; }
body.pn-ui .pn-notice--warn { background: #FFF4E5; color: #713F12; }
body.pn-ui .pn-notice a { color: inherit; font-weight: 600; }

/* ── Formulare (Loeschantrag, Stellungnahme, Konto) ─────────────────────── */
body.pn-ui .pn-field { margin: 0 0 1.25rem; min-width: 0; }
body.pn-ui .pn-fieldset { padding: 0; border: 0; }
body.pn-ui .pn-fieldset > legend { padding: 0; }
body.pn-ui .pn-field__label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.9rem; font-weight: 600; line-height: 1.35;
  color: var(--pn-ink);
}
body.pn-ui .pn-field__req { color: #B91C1C; font-weight: 500; }
body.pn-ui .pn-field__hint {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem; line-height: 1.45;
  color: var(--muted);
}
body.pn-ui .pn-field .pn-input,
body.pn-ui .pn-field .pn-select { display: block; width: 100%; }
body.pn-ui textarea.pn-input { min-height: 7.5rem; line-height: 1.5; resize: vertical; }

/* Auswahlkaertchen: Flaeche statt Rahmen, 44px Trefferflaeche */
body.pn-ui .pn-choices { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.4rem 0 0; }
body.pn-ui .pn-choice {
  display: flex; align-items: flex-start; gap: 0.75rem;
  min-height: 44px;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  border-radius: var(--pn-radius-sm);
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
body.pn-ui .pn-choice:hover { background: #EEF0F3; }
body.pn-ui .pn-choice:has(input:checked) { background: #FFF1E6; }
body.pn-ui .pn-choice strong { display: block; font-size: 0.9rem; color: var(--pn-ink); }
body.pn-ui .pn-choice small {
  display: block; margin-top: 0.15rem;
  font-size: 0.8125rem; line-height: 1.45; color: var(--pn-text);
}
body.pn-ui .pn-check {
  display: flex; align-items: flex-start; gap: 0.7rem;
  min-height: 44px;
  font-size: 0.9rem; font-weight: 500; line-height: 1.5;
  color: var(--pn-ink);
  cursor: pointer;
}
body.pn-ui .pn-choice input[type="checkbox"],
body.pn-ui .pn-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin: 0.1rem 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
body.pn-ui .pn-check a {
  color: var(--bsn); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 2px;
}

/* Datei-Upload: ruhige Flaeche, Knopf im pn-btn-Stil */
body.pn-ui .pn-file {
  padding: 0.85rem 1rem;
  background: var(--bg);
  border-radius: var(--pn-radius-sm);
}
body.pn-ui .pn-file input[type="file"] {
  display: block; width: 100%; max-width: 100%;
  min-height: 44px;
  font-family: inherit; font-size: 0.875rem; color: var(--pn-text);
}
body.pn-ui .pn-file input[type="file"]::file-selector-button {
  min-height: 44px; margin-right: 0.75rem; padding: 0 1rem;
  background: var(--card); color: var(--bsn);
  border: 1.5px solid var(--border); border-radius: var(--pn-radius-sm);
  font: inherit; font-weight: 600; cursor: pointer;
}
body.pn-ui .pn-file .pn-field__hint { margin-top: 0.5rem; }

body.pn-ui .pn-form__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
body.pn-ui .pn-form__submit { min-height: 48px; padding: 0 1.5rem; font-size: 0.95rem; }

/* ── Rechtstexte ────────────────────────────────────────────────────────── */
body.pn-ui .pn-legal {
  font-size: 1rem; line-height: 1.75;
  color: #374151;
  overflow-wrap: break-word;
}
/* Lesbare Zeilenlaenge (~70 Zeichen) fuer Fliesstext und Hinweise */
body.pn-ui .pn-legal > div > *,
body.pn-ui .pn-legal > .legal-note { max-width: 70ch; }
body.pn-ui .pn-legal h1,
body.pn-ui .pn-legal .legal-title {
  margin: 0 0 1.25rem;
  font-family: var(--pn-serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bsn);
  hyphens: auto;
}
body.pn-ui .pn-legal h2 {
  margin: 2.25rem 0 0.6rem;
  font-family: var(--pn-serif);
  font-weight: 400;
  font-size: 1.45rem; line-height: 1.25;
  color: var(--pn-ink);
}
body.pn-ui .pn-legal h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1.05rem; font-weight: 700; line-height: 1.35;
  color: var(--pn-ink);
}
body.pn-ui .pn-legal h4 { margin: 1.25rem 0 0.35rem; font-size: 0.95rem; font-weight: 700; }
body.pn-ui .pn-legal p { margin: 0 0 1rem; font-size: 1rem; }
body.pn-ui .pn-legal ul,
body.pn-ui .pn-legal ol { margin: 0 0 1rem; padding-left: 1.4rem; }
body.pn-ui .pn-legal li { margin: 0 0 0.4rem; font-size: 1rem; }
body.pn-ui .pn-legal strong { color: var(--pn-ink); }
body.pn-ui .pn-legal a {
  color: var(--bsn);
  text-decoration: underline; text-decoration-color: var(--accent);
  text-underline-offset: 2px;
}
body.pn-ui .pn-legal a:hover { text-decoration-thickness: 2px; }
body.pn-ui .pn-legal code {
  padding: 0.05rem 0.3rem;
  background: var(--bg); border-radius: 4px;
  font-size: max(12px, 0.875em);
  overflow-wrap: anywhere;
}
/* Hinweis-Kasten der Rechtstexte: Flaeche statt Seitenlinie */
body.pn-ui .pn-legal .legal-note {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--bg);
  border: 0;
  border-radius: var(--pn-radius-sm);
  font-size: 0.95rem; line-height: 1.65;
}
body.pn-ui .pn-legal .legal-note.warning { background: #FFF4E5; }
/* Tabellen (Cookie-Liste) scrollen in sich statt die Seite zu verbreitern */
body.pn-ui .pn-legal table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 1.25rem;
  font-size: 0.875rem; line-height: 1.5;
}
body.pn-ui .pn-legal th { background: var(--bg); color: var(--pn-ink); }

/* ── Anleitung (/anleitung) ─────────────────────────────────────────────── */
body.pn-ui .onb-toc { margin: 0 0 1.75rem; }
body.pn-ui .onb-toc h2 {
  margin: 0 0 0.5rem;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
body.pn-ui .onb-toc ol {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
  margin: 0; padding: 0;
  list-style: none;
  counter-reset: toc;
}
body.pn-ui .onb-toc li { counter-increment: toc; min-width: 0; }
body.pn-ui .onb-toc a {
  display: flex; align-items: center; gap: 0.6rem;
  min-height: 44px;
  padding: 0.25rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: 8px;
  color: var(--bsn); font-size: 0.95rem; line-height: 1.3;
  text-decoration: none;
}
body.pn-ui .onb-toc a::before {
  content: counter(toc);
  flex: 0 0 auto; min-width: 1.4rem;
  font-family: var(--pn-serif); font-size: 1.05rem; color: var(--accent-strong, #C24E00);
}
body.pn-ui .onb-toc a:hover { background: var(--bg); text-decoration: underline; text-underline-offset: 2px; }
body.pn-ui .onb-toc a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Teil-Ueberschrift zwischen den Karten: Kicker-Strich statt Unterstreichung */
body.pn-ui .onb-part { margin: 2.75rem 0 1.1rem; }
body.pn-ui .onb-part h2 {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 0;
  font-family: var(--pn-serif); font-weight: 400;
  font-size: 1.7rem; line-height: 1.2;
  color: var(--bsn);
}
body.pn-ui .onb-part h2::before {
  content: ""; flex: 0 0 auto; width: 1.75rem; height: 2px;
  background: var(--accent); border-radius: 2px;
}
body.pn-ui .onb-part p { margin: 0.4rem 0 0; color: var(--pn-text); font-size: 0.95rem; line-height: 1.6; }

body.pn-ui .onb-card {
  margin: 0 0 1.25rem;
  color: #374151; font-size: 1rem; line-height: 1.7;
  overflow-wrap: break-word;
  scroll-margin-top: 90px;
}
body.pn-ui .onb-card > h2 {
  display: flex; align-items: flex-start; gap: 0.7rem;
  margin: 0 0 0.4rem;
  font-family: var(--pn-serif); font-weight: 400;
  font-size: 1.5rem; line-height: 1.2;
  color: var(--pn-ink);
}
body.pn-ui .onb-num {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-top: 0.05rem;
  background: #FFF1E6; color: var(--bsn);
  border-radius: 50%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem; font-weight: 700;
}
body.pn-ui .onb-card h3 {
  margin: 1.6rem 0 0.4rem;
  font-size: 1.05rem; font-weight: 700; line-height: 1.35;
  color: var(--pn-ink);
}
body.pn-ui .onb-card p { margin: 0.6rem 0; max-width: 70ch; }
body.pn-ui .onb-card .onb-lead { margin: 0 0 1rem; color: var(--pn-text); font-size: 1.02rem; }
body.pn-ui .onb-card a {
  color: var(--bsn);
  text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 2px;
}
/* Screenshots liegen auf einer grauen Flaeche statt in einem zweiten Rahmen */
body.pn-ui .onb-card figure {
  margin: 1.1rem 0;
  padding: 0.6rem;
  background: var(--bg);
  border-radius: 12px;
}
body.pn-ui .onb-card figure img {
  display: block; width: 100%; height: auto;
  border: 0; border-radius: 8px;
}
body.pn-ui .onb-card .onb-phone img { max-width: 290px; margin: 0 auto; }
/* Einzelne Karte (Spielkarte) etwas breiter als ein Handy-Bild */
body.pn-ui .onb-card .onb-narrow img { max-width: 380px; margin: 0 auto; }
body.pn-ui .onb-card figcaption {
  margin: 0.55rem 0.2rem 0.1rem;
  font-size: 0.875rem; line-height: 1.5;
  color: var(--pn-text);
}
/* Tabellen: nur feine Zeilentrenner, keine Zellrahmen */
body.pn-ui .onb-table {
  width: 100%; margin: 1rem 0;
  border-collapse: collapse;
  font-size: 0.9rem; line-height: 1.5;
}
body.pn-ui .onb-table th,
body.pn-ui .onb-table td {
  padding: 0.6rem 0.7rem;
  border: 0; border-bottom: 1px solid #F3F4F6;
  text-align: left; vertical-align: top;
  overflow-wrap: anywhere;
}
body.pn-ui .onb-table th { background: var(--bg); color: var(--pn-ink); font-weight: 700; }
body.pn-ui .onb-table tr:last-child td { border-bottom: 0; }
body.pn-ui .onb-steps { counter-reset: s; list-style: none; margin: 1rem 0; padding: 0; }
body.pn-ui .onb-steps li {
  counter-increment: s; position: relative;
  padding: 0.45rem 0 0.45rem 2.4rem;
}
body.pn-ui .onb-steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: #FFF1E6; color: var(--bsn);
  border-radius: 50%;
  font-size: 0.8rem; font-weight: 700;
}
body.pn-ui .onb-list { margin: 0.6rem 0; padding-left: 1.3rem; }
body.pn-ui .onb-list li { margin: 0.3rem 0; }
/* Hinweise: Tonflaeche statt Seitenlinie */
body.pn-ui .onb-note,
body.pn-ui .onb-tip,
body.pn-ui .onb-warn {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 0; border-radius: var(--pn-radius-sm);
  font-size: 0.95rem; line-height: 1.6;
  background: var(--bg);
}
body.pn-ui .onb-tip { background: #EAF6EE; }
body.pn-ui .onb-warn { background: #FFF4E5; }
body.pn-ui .onb-note b,
body.pn-ui .onb-tip b,
body.pn-ui .onb-warn b { display: block; margin-bottom: 0.15rem; color: var(--pn-ink); }
body.pn-ui .onb-cta {
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  padding: 1.5rem 0 0.5rem;
  text-align: center;
}
body.pn-ui .onb-cta p { margin: 0; color: var(--pn-text); font-size: 1rem; line-height: 1.6; }
body.pn-ui .onb-cta .pn-btn { min-height: 48px; padding: 0 1.75rem; font-size: 0.95rem; }

@media (max-width: 640px) {
  body.pn-ui .onb-toc ol { grid-template-columns: minmax(0, 1fr); }
  body.pn-ui .onb-card > h2 { font-size: 1.3rem; }
  body.pn-ui .onb-part h2 { font-size: 1.45rem; }
  body.pn-ui .onb-card figure { padding: 0.4rem; }
}

/* ── Konto-Seiten (Registrierung, Passwort, E-Mail-Bestaetigung) ────────
   Gleiche Buehne wie die Login-Seite (zentrierte 420px-Karte mit Logo),
   dazu Rahmen, Georgia-Titel und pn-Formularelemente. */
body.pn-ui .pn-auth {
  display: flex; align-items: flex-start; justify-content: center;
  padding: 2.5rem var(--pn-gutter) 3rem;
  box-sizing: border-box;
}
body.pn-ui .pn-auth__card { width: 100%; max-width: 420px; }
body.pn-ui .pn-auth__head { margin: 0 0 1.5rem; text-align: center; }
body.pn-ui .pn-auth__logo {
  display: block; width: auto; height: 56px; max-width: 100%;
  margin: 0 auto 1.1rem;
}
body.pn-ui .pn-auth__head .pn-kicker { justify-content: center; }
body.pn-ui .pn-auth__head .pn-heading {
  margin-bottom: 0.5rem;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2rem);
}
body.pn-ui .pn-auth__sub { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--pn-text); }
body.pn-ui .pn-auth__sub + .pn-auth__sub { margin-top: 0.5rem; }
body.pn-ui .pn-auth .pn-form__submit { width: 100%; margin-top: 0.25rem; }
body.pn-ui .pn-input--code {
  font-size: 1.4rem; letter-spacing: 0.45em; text-align: center;
  font-variant-numeric: tabular-nums;
}
body.pn-ui .pn-auth__links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0 0.35rem;
  margin: 1.25rem 0 0;
  font-size: 0.875rem; line-height: 1.4;
  color: var(--pn-text);
  text-align: center;
}
body.pn-ui .pn-auth__links form { display: contents; }
body.pn-ui .pn-auth__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px;
  padding: 0 0.4rem;
  background: none; border: 0; border-radius: 8px;
  color: var(--bsn); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
body.pn-ui .pn-auth__link--quiet { font-weight: 400; }
body.pn-ui .pn-auth__link:hover { text-decoration: underline; text-underline-offset: 2px; }
body.pn-ui .pn-auth__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
body.pn-ui .pn-auth__link:disabled { opacity: 0.5; cursor: default; text-decoration: none; }
body.pn-ui .pn-auth__break { flex-basis: 100%; height: 0; }
@media (max-width: 480px) {
  body.pn-ui .pn-auth { padding-top: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  body.pn-ui .pn-choice,
  body.pn-ui .pn-input { transition: none; }
}
