@font-face {
    font-family: "Bahnschrift";
    src: url("/fonts/bahnschrift.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

html, body, button, input, textarea, select {
    font-family: "Bahnschrift", Arial, sans-serif;
}

/* Originaldesign aus index.html: */
:root {
      color-scheme: dark;
      --bg: #090b12;
      --card: rgba(18, 22, 35, .88);
      --text: #f8fafc;
      --muted: #aab4c5;
      --focus: #8bd5ff;
    }

    * { box-sizing: border-box; }

    html { min-height: 100%; }

    body {
      min-height: 100vh;
      margin: 0;
      display: grid;
      place-items: center;
      padding: 1.25rem;
      color: var(--text);
      background:
        radial-gradient(circle at 15% 10%, rgba(77, 120, 255, .2), transparent 34rem),
        radial-gradient(circle at 90% 85%, rgba(255, 92, 166, .14), transparent 30rem),
        var(--bg);
      font-family: "Bahnschrift", "Arial", sans-serif;
    }

    .card {
      width: min(100%, 34rem);
      padding: clamp(1.5rem, 5vw, 2.5rem);
      border: 1px solid rgba(255, 255, 255, .1);
      border-radius: 1.5rem;
      background: var(--card);
      box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, .35);
      backdrop-filter: blur(16px);
    }

    header { text-align: center; }

    .avatar {
      width: 5rem;
      height: 5rem;
      margin: 0 auto 1rem;
      display: block;
      object-fit: contain;
      background: transparent;
    }

    h1 { margin: 0; font-size: clamp(1.75rem, 6vw, 2.35rem); }

    header p {
      margin: .45rem 0 1.75rem;
      color: var(--muted);
    }

    .links {
      display: grid;
      gap: .75rem;
    }

    .social-link {
      min-height: 3.75rem;
      display: grid;
      grid-template-columns: 2rem 1fr auto;
      align-items: center;
      gap: .85rem;
      padding: .75rem 1rem;
      border: 1px solid rgba(255, 255, 255, .08);
      border-radius: 1rem;
      color: #fff;
      background: var(--brand, #252a3b);
      text-decoration: none;
      transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
    }

    .social-link:hover {
      filter: brightness(1.12);
      transform: translateY(-2px);
      box-shadow: 0 .65rem 1.5rem rgba(0, 0, 0, .22);
    }

    .social-link:focus-visible {
      outline: 3px solid var(--focus);
      outline-offset: 3px;
    }

    .icon {
      width: 1.65rem;
      height: 1.65rem;
      display: grid;
      place-items: center;
    }

    .icon img,
    .icon svg {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .platform { font-weight: 750; }

    .handle {
      overflow: hidden;
      color: #000000;
      font-size: .84rem;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    footer {
      margin-top: 1.5rem;
      color: var(--muted);
      font-size: .78rem;
      text-align: center;
    }

    @media (prefers-reduced-motion: reduce) {
      .social-link { transition: none; }
    }

/* Markenfarben ohne inline style (kompatibel mit strenger CSP) */
.social-link--barq { --brand: #ff6200; }
.social-link--bluesky { --brand: #1185fe; }
.social-link--discord { --brand: #5865f2; }
.social-link--steam { --brand: #171a21; }
.social-link--telegram { --brand: #229ed9; }
.social-link--tiktok { --brand: #111111; }
.social-link--twitch { --brand: #9146ff; }
.social-link--twitter { --brand: #1da1f2; }
.social-link--youtube { --brand: #ff0000; }

/* Benutzernamen auf hellen Buttons schwarz, auf dunklen weiß. */
.social-link--steam .handle,
.social-link--tiktok .handle {
  color: #ffffff;
}

/* Plattformfarben fest zuweisen (ohne CSS-Variablen). */
.social-link.social-link--barq { background: #ff6200; }
.social-link.social-link--bluesky { background: #1185fe; }
.social-link.social-link--discord { background: #5865f2; }
.social-link.social-link--steam { background: #171a21; }
.social-link.social-link--telegram { background: #229ed9; }
.social-link.social-link--tiktok { background: #111111; }
.social-link.social-link--twitch { background: #9146ff; }
.social-link.social-link--twitter { background: #1da1f2; }
.social-link.social-link--youtube { background: #ff0000; }

/* Minecraft-Whitelist-Anfrage oberhalb des Profils */
.whitelist-panel {
  margin-bottom: 1.75rem;
  padding: 1.1rem;
  border: 1px solid rgba(139, 213, 255, .32);
  border-radius: 1.15rem;
  background: linear-gradient(145deg, rgba(34, 71, 100, .48), rgba(26, 32, 55, .64));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.whitelist-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.whitelist-mark {
  display: grid;
  place-items: center;
  flex: 0 0 2.45rem;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: .75rem;
  background: rgba(139, 213, 255, .15);
  color: #a9e1ff;
  font-size: 1.35rem;
}
.whitelist-eyebrow {
  margin: 0 0 .18rem;
  color: #a4d9fb;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .11em;
}
.whitelist-panel h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.23rem;
  line-height: 1.25;
}
.whitelist-intro {
  margin: .9rem 0 1.15rem;
  color: #d4deec;
  font-size: .9rem;
  line-height: 1.5;
}
.whitelist-form label {
  display: block;
  margin-bottom: .45rem;
  color: #f3f6fa;
  font-size: .84rem;
  font-weight: 700;
}
.whitelist-fields {
  display: flex;
  gap: .55rem;
  align-items: stretch;
}
.whitelist-fields input {
  min-width: 0;
  flex: 1;
  padding: .72rem .82rem;
  border: 1px solid rgba(202, 224, 244, .28);
  border-radius: .7rem;
  background: rgba(8, 12, 24, .7);
  color: #ffffff;
  font-size: .91rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.whitelist-fields input::placeholder { color: #8c9cb2; }
.whitelist-fields input:focus-visible,
.whitelist-submit:focus-visible {
  outline: 2px solid #8bd5ff;
  outline-offset: 2px;
}
.whitelist-submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .72rem .9rem;
  border: 1px solid #9fd8ff;
  border-radius: .7rem;
  background: linear-gradient(135deg, #b1e3ff, #7fc7fb);
  color: #06263f;
  font-size: .84rem;
  font-weight: 850;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.whitelist-submit:hover { filter: brightness(1.06); transform: translateY(-1px); }
.whitelist-submit:disabled { cursor: progress; opacity: .7; transform: none; }
.whitelist-hint {
  margin: .6rem 0 0;
  color: #b7c6d8;
  font-size: .73rem;
  line-height: 1.4;
}
.whitelist-status {
  margin: 0;
  font-size: .82rem;
  line-height: 1.45;
}
.whitelist-status:not(:empty) { margin-top: .75rem; }
.whitelist-status[data-state="success"] { color: #9cf5c4; }
.whitelist-status[data-state="error"] { color: #ffc2c2; }
.whitelist-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 420px) {
  .whitelist-fields { flex-direction: column; }
  .whitelist-submit { width: 100%; min-height: 2.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .whitelist-fields input, .whitelist-submit { transition: none; }
}

/* HuskyGaming: Link zur BlueMap als eigener Button */
.social-link.social-link--map {
  background: linear-gradient(125deg, #105775, #167f91);
  border-color: rgba(153, 231, 255, .28);
}
.social-link--map .handle { color: #e6f9ff; }
