/* ----------------------------------------------------------------------------
   "Capsule" — editorial / clean Linktree-Design
   Nachgebaut aus dem Design-Export, aber schlank & dynamisch.
   Farben kommen als CSS-Variablen aus dem Admin-Panel (siehe app.js).
---------------------------------------------------------------------------- */
:root {
  --bg: #f5f4f0;        /* Seitenhintergrund (Creme) */
  --accent: #0a0a0a;    /* Primär-Button / dunkle Flächen */
  --text: #0a0a0a;      /* Haupttext */
  --muted: #595959;     /* Nebentext */
  --line: #1a1a1a;      /* Haarlinien */
  --sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.cap-card {
  min-height: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Portrait + Logo-Badge ---------- */
.cap-portrait {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 22px;
}
.cap-portrait-img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 0.8px solid var(--line);
}
.cap-portrait-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--muted);
  background: #e9e7e1;
}
.vt-logo {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 0.8px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.vt-logo img { width: 20px; height: 20px; object-fit: contain; }

/* ---------- Kopf-Texte ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.cap-name {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--text);
  line-height: 1.1;
}
.cap-tagline {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
  max-width: 320px;
  text-align: center;
}
.cap-location {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cap-location::before { content: "◖"; opacity: 0.5; }

/* ---------- Link-Buttons ---------- */
.cap-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 34px;
}
.cap-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  border: 0.8px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.cap-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.cap-btn:active { transform: translateY(0); }

.cap-btn--primary {
  background: var(--accent);
  color: #f5f4f0;
  border-color: var(--accent);
}
.cap-btn--primary .cap-btn-meta { color: rgba(245, 244, 240, 0.65); }
.cap-btn--primary .cap-btn-arrow { color: #f5f4f0; }

.cap-btn-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.cap-btn-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.cap-btn-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.cap-btn-arrow {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--muted);
  flex: 0 0 auto;
}
.cap-btn-clicks {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  opacity: 0.7;
  margin-right: 4px;
}

/* ---------- Social-Icons ---------- */
.cap-socials {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}
.cap-social {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0.8px solid var(--line);
  color: var(--text);
  background: #fff;
  text-decoration: none;
  transition: background 0.14s ease, transform 0.12s ease;
}
.cap-social:hover { background: #fff; transform: translateY(-2px); }
.cap-social svg { width: 19px; height: 19px; }

/* ---------- Footer / Rechtslinks ---------- */
.cap-footer {
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-align: center;
}
.cap-footer .footer-text { margin-bottom: 8px; }
.cap-legal { display: inline-flex; gap: 10px; }
.cap-legal a { color: var(--muted); text-decoration: none; }
.cap-legal a:hover { color: var(--text); text-decoration: underline; }
.cap-legal .sep { opacity: 0.5; }

.loading { color: var(--muted); padding: 60px 0; font-family: var(--mono); font-size: 13px; }

/* ---------- Rechtstexte-Seite (Impressum / Datenschutz) ---------- */
.legal-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px;
}
.legal-page .back {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
}
.legal-page .back:hover { color: var(--text); }
.legal-page h1 {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}
.legal-page pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: #2a2a2a;
}

@media (max-width: 480px) {
  .cap-card { padding: 40px 18px 32px; }
  .cap-name { font-size: 26px; }
}
