/* ==========================================
   Textseiten (Community-Regeln, Datenschutz, Impressum)
   Gleiche Formensprache wie die App: mattschwarzer Grund, Systemschrift,
   ruhige Karten mit weichen Radien, Wasser-Cyan als Akzent. Bewusst ohne
   Leaflet/Supabase - lädt sofort.
   ========================================== */
:root {
  color-scheme: dark;
  /* Farben wie in der App (style.css :root) */
  --bg: #09090b;
  --brand: #06b6d4;
  --brand-rgb: 6, 182, 212;
  --brand-bright: #22d3ee;
  --brand-deep: #0891b2;
  --brand-text: #67e8f9;
  --brand-ink: #03191d;
  --text: #fafafa;
  --text-soft: #e4e4e7;
  --text-muted: #d4d4d8;
  --text-subtle: #a1a1aa;
  --surface: #111114;
  --fill: rgba(255, 255, 255, 0.04);
  --fill-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-float: 0 12px 28px rgba(0, 0, 0, 0.45);
  /* Bewegung wie in der App: federnd drücken, weich hereingleiten */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-sheet-in: cubic-bezier(0.22, 1.12, 0.36, 1);
  --dur-fast: 150ms;
  --dur-open: 440ms;
  --press-scale: 0.96;
}

* { box-sizing: border-box; }

/* Bedienelemente reagieren sofort (kein Doppeltipp-Zoom-Warten); Lesetext
   bleibt per Doppeltipp zoombar */
a, button { touch-action: manipulation; }

/* Eigenes Druck-Feedback statt grauem Tap-Flash (iOS zeigt :active nur mit
   touchstart-Listener - daher ontouchstart="" am <body>) */
.back, .cta, .pill { -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-muted);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--brand); text-underline-offset: 2px; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 20px calc(48px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -20px 24px;
  padding: 12px 20px;
  background: rgba(9, 9, 11, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-spring);
}

.back:hover { background: rgba(255, 255, 255, 0.1); }

.back:active {
  transform: scale(var(--press-scale));
  transition-duration: 80ms;
}

h1 {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: var(--text);
}

.stand {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--text-subtle);
}

h2 {
  margin: 36px 0 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  scroll-margin-top: 80px;
}

h3 {
  margin: 20px 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-soft);
}

p, ul, ol { margin: 0 0 12px; }

ul, ol { padding-left: 20px; }

li { margin-bottom: 6px; }

strong { color: var(--text-soft); }

/* Kurzfassung / Hervorhebung */
.card {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--fill);
  border: 1px solid var(--line);
}

.card.is-brand {
  background: rgba(var(--brand-rgb), 0.06);
  border-color: rgba(var(--brand-rgb), 0.25);
}

.card > :last-child { margin-bottom: 0; }

/* "Was? Warum? Wie lange?" je Dienst */
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 14px;
  margin: 8px 0 16px;
  font-size: 14px;
}

.facts dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding-top: 3px;
}

.facts dd { margin: 0; }

@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dt { padding-top: 8px; }
}

/* Inhaltsverzeichnis */
.toc {
  margin: 0 0 8px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--fill);
  border: 1px solid var(--line);
}

.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 24px; }

.toc li { margin-bottom: 4px; break-inside: avoid; font-size: 14px; }

.toc a { color: var(--text-muted); text-decoration: none; }

.toc a:hover { color: var(--brand); }

@media (max-width: 520px) { .toc ol { columns: 1; } }

/* Regeln als Liste mit Nummern-Kreisen */
.rules { list-style: none; padding: 0; counter-reset: rule; }

.rules li {
  position: relative;
  counter-increment: rule;
  margin: 0 0 12px;
  padding: 14px 16px 14px 56px;
  border-radius: var(--radius);
  background: var(--fill);
  border: 1px solid var(--line);
}

.rules li::before {
  content: counter(rule);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(var(--brand-rgb), 0.14);
  color: var(--brand-text);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rules strong { display: block; margin-bottom: 2px; color: var(--text); }

.footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-subtle);
}

.footer a { color: var(--text-muted); }

/* ==========================================
   Über das Projekt: gleiche Bausteine wie die App - Profil-Karte, Kacheln
   wie im Spot-Detail, Pillen-Buttons mit Druck-Feedback. Schriften wie in
   der App, selbst gehostet.
   ========================================== */
@font-face {
  font-family: 'Sedgwick Ave';
  src: url('/fonts/sedgwick-ave-v13-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lilita One';
  src: url('/fonts/lilita-one-v17-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.about-hero { margin-bottom: 20px; }

.about-hero h1 { font-size: 28px; }

.claim {
  margin: 0;
  font-family: 'Lilita One', sans-serif;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0.3px;
  color: var(--brand-bright);
}

/* Profil-Karte: Foto oben, Begrüßung darunter (breit: nebeneinander) */
.about-profile {
  margin: 0 0 8px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.about-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #fff;
}

.about-profile-text { padding: 18px 20px 20px; }

.about-profile-text > :last-child { margin-bottom: 0; }

h2.hello {
  margin: 0 0 10px;
  font-family: 'Sedgwick Ave', cursive;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  background: linear-gradient(135deg, #ff007f, var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2.hello span { -webkit-text-fill-color: initial; }

/* Ab Tablet-Breite (und Handy quer) Foto und Text nebeneinander - sonst
   würde das Foto mehrere Bildschirmhöhen groß */
@media (min-width: 560px) {
  .about-profile {
    display: grid;
    grid-template-columns: 40% 1fr;
    align-items: center;
  }

  .about-photo { height: 100%; }

  .about-profile-text { padding: 24px 28px; }
}

/* Mitmachen: Schritte mit Symbol-Kachel, darunter der große Button */
.about-steps {
  list-style: none;
  padding: 0;
  margin: 14px 0 18px;
  display: grid;
  gap: 12px;
}

.about-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
}

.about-step-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(var(--brand-rgb), 0.14);
  border: 1px solid rgba(var(--brand-rgb), 0.28);
  color: var(--brand-text);
}

.about-steps li > span:last-child { padding-top: 6px; }

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  box-shadow: 0 10px 24px rgba(var(--brand-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: var(--brand-ink);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast) ease, filter var(--dur-fast) ease;
}

.cta:hover { filter: brightness(1.06); }

.cta:active {
  transform: scale(var(--press-scale));
  transition-duration: 80ms;
  box-shadow: 0 4px 12px rgba(var(--brand-rgb), 0.25);
}

/* Steckbrief als Kacheln wie im Spot-Detail */
.about-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}

.about-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--fill);
  border: 1px solid var(--line);
}

.about-tile dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.about-tile dd {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

/* Lange Angaben am Handy über die ganze Breite statt dreizeilig */
@media (max-width: 559px) {
  .about-tile.is-wide { grid-column: 1 / -1; }
}

/* Pillen-Buttons wie "Webseite" / "Teilen" im Spot-Detail */
.about-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--fill);
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-spring);
}

.pill svg { flex-shrink: 0; color: var(--brand-text); }

.pill:hover {
  background: var(--fill-2);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--text);
}

.pill:active {
  transform: scale(var(--press-scale));
  transition-duration: 80ms;
}

/* Beim Öffnen: Kopf und Profil-Karte gleiten weich herein (wie ein Sheet) */
@media (prefers-reduced-motion: no-preference) {
  .about-hero,
  .about-profile {
    animation: about-in var(--dur-open) var(--ease-sheet-in) both;
  }

  .about-profile { animation-delay: 70ms; }
}

@keyframes about-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Datenschutz: alle Dienste auf einen Blick */
.services { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }

.services li {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--fill);
  border: 1px solid var(--line);
  font-size: 14px;
}

.svc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 4px; }

.svc-head strong { color: var(--text); font-size: 15px; }

.svc-head a { font-size: 13px; }

.svc-where { font-size: 12px; color: var(--text-subtle); }

.services p { margin: 0; }

.services .svc-label { color: var(--text-subtle); font-weight: 700; }
