/* ── links.xnd-media.de – Linkseite (gerendert von lib/links.js) ── */
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/poppins-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/poppins-latin-500-normal.woff2') format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/poppins-latin-600-normal.woff2') format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:800;font-display:swap;src:url('/fonts/poppins-latin-800-normal.woff2') format('woff2')}

:root {
  --bg: #f5f3ef;
  --card: #fff;
  --fg: #141210;
  --muted: #7a7671;
  --border: #dedad3;
  --red: #c0281e;
  --red-fg: #fff;
  --hover: #ebe7e0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --card: #1c1a18;
    --fg: #e8e4de;
    --muted: #8a8680;
    --border: #2a2825;
    --red: #d4332a;
    --hover: #24221f;
  }
}

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

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.lk-wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Kopf */
.lk-head { text-align: center; margin-bottom: 32px; }
.lk-mark {
  width: 76px; height: 76px; margin: 0 auto 18px;
  border-radius: 20px; background: #141210;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
@media (prefers-color-scheme: dark) { .lk-mark { background: #e8e4de; box-shadow: none; } }
.lk-mark span { width: 26px; height: 26px; border-radius: 50%; background: var(--red); }
.lk-logo { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.lk-logo span { color: var(--red); }
.lk-tag { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Icons */
.ic { width: 22px; height: 22px; flex-shrink: 0; }

/* Haupt-Buttons */
.lk-list { display: flex; flex-direction: column; gap: 10px; }
.lk-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform .12s ease, background .15s, border-color .15s;
}
.lk-btn:hover { background: var(--hover); }
.lk-btn:active { transform: scale(.985); }
.lk-btn .ic:first-child { color: var(--red); }
.lk-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lk-t { font-weight: 600; font-size: 15px; }
.lk-s { font-size: 12.5px; color: var(--muted); }
.lk-soc .lk-s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-go { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.lk-btn:hover .lk-go { transform: translate(2px, -2px); color: var(--fg); }

.lk-feat { background: var(--red); border-color: var(--red); color: var(--red-fg); }
.lk-feat:hover { background: var(--red); filter: brightness(1.08); }
.lk-feat .ic:first-child, .lk-feat .lk-s, .lk-feat .lk-go, .lk-feat:hover .lk-go { color: inherit; }
.lk-feat .lk-s { opacity: .85; }

/* Social */
.lk-label {
  margin: 32px 0 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-align: center;
}
.lk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lk-soc {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background .15s, transform .12s ease;
}
.lk-soc:hover { background: var(--hover); }
.lk-soc:active { transform: scale(.98); }
.lk-soc .ic { width: 20px; height: 20px; }
.lk-soc .lk-t { font-size: 14px; }
.lk-soc .lk-s { font-size: 11.5px; }
/* ungerade Anzahl: letzter Eintrag über beide Spalten */
.lk-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Fuß */
.lk-foot {
  margin-top: auto; padding-top: 40px;
  display: flex; justify-content: center; gap: 10px;
  font-size: 12px; color: var(--muted);
}
.lk-foot a:hover { color: var(--fg); text-decoration: underline; }

/* Tastatur-Fokus */
a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media (max-width: 360px) {
  .lk-grid { grid-template-columns: 1fr; }
  .lk-grid li:last-child:nth-child(odd) { grid-column: auto; }
}
