/* axkl.de/LL — öffentliche Seite. Farben kommen als CSS-Variablen aus den Einstellungen. */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.theme-light { --shadow: rgba(15, 17, 21, .10); --border: rgba(15, 17, 21, .12); --muted: rgba(15, 17, 21, .60); }
body.theme-dark  { --shadow: rgba(0, 0, 0, .40);   --border: rgba(255, 255, 255, .12); --muted: rgba(242, 244, 248, .62); }

.page {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 20px calc(40px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ---------- Profil ---------- */

.profile { text-align: center; margin-bottom: 32px; }

.avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  display: block;
  margin: 0 auto 16px;
}

.avatar-fallback {
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--accent);
  font-size: 40px; font-weight: 700;
}

.profile-name { margin: 0 0 8px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.profile-bio  { margin: 0 auto; max-width: 44ch; color: var(--muted); font-size: 15px; }

/* ---------- Linkliste ---------- */

.links { display: flex; flex-direction: column; gap: 12px; flex: 1; }

.link-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

@media (hover: hover) {
  .link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow);
    border-color: var(--accent);
  }
}

.link-card:active { transform: scale(.985); }

.link-card.is-highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset, 0 4px 14px var(--shadow);
}

.link-icon  { font-size: 22px; line-height: 1; flex-shrink: 0; }
.link-text  { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.link-title { font-weight: 600; font-size: 16px; }
.link-subtitle { font-size: 13px; color: var(--muted); }

.link-arrow { color: var(--muted); font-size: 18px; flex-shrink: 0; }

.link-badge {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700; font-size: 15px;
}

.section-header { margin: 20px 0 2px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.divider { border: 0; border-top: 1px solid var(--border); margin: 10px 0; }

.social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 4px 0; }

.social {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: inherit; text-decoration: none;
  font-size: 20px;
  transition: transform .15s ease, border-color .15s ease;
}

@media (hover: hover) { .social:hover { transform: translateY(-2px); border-color: var(--accent); } }

.empty { text-align: center; color: var(--muted); }

/* ---------- Karten (Formular, Danke, Meldungen) ---------- */

.back { display: inline-block; margin-bottom: 20px; color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--text); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px var(--shadow);
}

.card-center { text-align: center; }
.card-title { margin: 0 0 12px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.card-lead  { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.card-lead strong { color: var(--text); }

.big-icon {
  width: 56px; height: 56px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent); color: var(--bg);
  font-size: 28px; font-weight: 700;
}
.big-icon.is-error { background: #f87171; color: #fff; }

.hint { font-size: 13px; color: var(--muted); margin: 0 0 20px; }

.notice {
  text-align: left;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  margin: 0 0 20px;
}

.alert {
  background: rgba(248, 113, 113, .12);
  border: 1px solid #f87171;
  color: #fca5a5;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 0 0 18px;
  text-align: left;
}
body.theme-light .alert { color: #b91c1c; }

/* ---------- Formular ---------- */

.form { display: flex; flex-direction: column; gap: 16px; text-align: left; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 14px; font-weight: 600; }

.field input {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px; /* verhindert Auto-Zoom auf iOS */
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.check a { color: var(--accent); }
.check em { font-style: normal; opacity: .75; }

/* Honeypot: aus dem Blickfeld, aber nicht display:none — manche Bots erkennen das. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-block;
  padding: 15px 24px;
  font-size: 16px; font-weight: 600; font-family: inherit;
  color: var(--bg); background: var(--accent);
  border: 0; border-radius: 10px;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: filter .15s ease, transform .1s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 12px 20px;
  font-weight: 500;
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); filter: none; }

/* ---------- Fußzeile ---------- */

.footer { margin-top: 40px; text-align: center; font-size: 12.5px; color: var(--muted); }
.footer-note  { margin: 0 0 6px; }
.footer-links { margin: 0; display: flex; gap: 8px; justify-content: center; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Rechtstexte (Datenschutz) ---------- */
.legal{text-align:left;max-width:none}
.legal .card-title{margin-bottom:.25rem}
.legal-meta{margin:0 0 1.75rem;font-size:.85rem;opacity:.6}
.legal h2{margin:1.75rem 0 .5rem;font-size:1.02rem;line-height:1.35;font-weight:600}
.legal h2:first-of-type{margin-top:1.25rem}
.legal p{margin:0 0 .85rem;font-size:.94rem;line-height:1.65;opacity:.88}
.legal ul{margin:0 0 .85rem;padding-left:1.15rem}
.legal li{margin-bottom:.4rem;font-size:.94rem;line-height:1.6;opacity:.88}
.legal a{color:var(--accent)}
.legal-back{margin-top:2rem}
