/* llpmedia.de – Startseite
   Farben aus dem Logo: Petrol hell/dunkel, Mint, Schwarz */

:root {
  --teal: #028575;
  --teal-dark: #005747;
  --mint: #02bb99;
  --mint-light: #3fd6b8;
  --ink: #000;
  --white: #fff;
  --radius: 18px;
  --lift: 6px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.4;
  color: var(--white);
  background: var(--teal-dark);
  -webkit-font-smoothing: antialiased;
}

/* Diagonal geteilter Hintergrund wie im Logo (fixiert, auch auf iOS) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 12%, rgba(63, 214, 184, 0.28), transparent 42%),
    linear-gradient(120deg, var(--teal) 0 50%, var(--teal-dark) 50% 100%);
}

.hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: max(44px, env(safe-area-inset-top)) 20px max(44px, env(safe-area-inset-bottom));
}

@supports (min-height: 100svh) {
  body,
  .hub {
    min-height: 100svh;
  }
}

/* ---------- Kopf ---------- */

.hub__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hub__logo {
  display: block;
  width: 152px;
  height: 152px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: var(--lift) var(--lift) 0 var(--ink);
}

.hub__name {
  margin: 26px 0 0;
  font-size: clamp(32px, 9vw, 42px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 3px 3px 0 var(--ink);
}

.hub__tagline {
  margin: 16px 0 30px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Link-Schaltflächen ---------- */

.hub__links {
  display: grid;
  /* minmax(0, …): lange Untertitel kürzen bzw. umbrechen, statt die Spalte über den Bildschirm hinaus aufzuweiten */
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 10px 18px 10px 10px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--lift) var(--lift) 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

a.link:hover {
  background: var(--mint-light);
  transform: translate(-2px, -2px);
  box-shadow: calc(var(--lift) + 2px) calc(var(--lift) + 2px) 0 var(--ink);
}

a.link:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--ink);
}

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

.link__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--mint);
  transition: background 0.15s ease, color 0.15s ease;
}

.link__icon svg {
  width: 24px;
  height: 24px;
}

.link__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.link__label {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.link__handle {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.72;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.link__go {
  flex: none;
  width: 22px;
  height: 22px;
  transition: transform 0.15s ease;
}

a.link:hover .link__go {
  transform: translate(2px, -2px);
}

/* Markenfarbe beim Darüberfahren */
a.link:hover .link__icon {
  background: var(--brand, var(--ink));
  color: var(--brand-ink, var(--white));
}

.p-instagram { --brand: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.p-tiktok { --brand: #000; }
.p-youtube { --brand: #f00; }
.p-twitch { --brand: #9146ff; }
.p-discord { --brand: #5865f2; }
.p-spotify { --brand: #1db954; --brand-ink: #000; }
.p-kick { --brand: #53fc18; --brand-ink: #000; }
.p-x { --brand: #000; }
.p-facebook { --brand: #0866ff; }
.p-whatsapp { --brand: #25d366; --brand-ink: #000; }
.p-telegram { --brand: #26a5e4; }
.p-gofundme { --brand: #00b964; --brand-ink: #000; }
.p-clipper { --brand: var(--teal-dark); --brand-ink: var(--mint-light); }

a.p-tiktok:hover .link__icon svg {
  filter: drop-shadow(-1.5px -1.5px 0 #25f4ee) drop-shadow(1.5px 1.5px 0 #fe2c55);
}

/* „Coming soon“ */
.link.is-soon {
  border-style: dashed;
  border-color: rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  cursor: default;
}

.is-soon .link__icon {
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.7);
}

/* „Coming soon“ steht neben der Bezeichnung, der Untertitel behält die volle Breite */
.link__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 10px;
}

.link__badge {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--mint);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Statusseiten (404 …) ---------- */

.hub--status {
  text-align: center;
}

.hub--status .hub__logo {
  width: 120px;
  height: 120px;
}

.status__code {
  margin: 26px 0 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--mint);
  text-shadow: 2px 2px 0 var(--ink);
}

.status__title,
.legal__title {
  margin: 6px 0 0;
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 var(--ink);
}

.status__text {
  max-width: 340px;
  margin: 14px 0 30px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
}

.link--home {
  width: 100%;
  max-width: 320px;
}

/* ---------- Fußzeile der Startseite ---------- */

.hub__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-top: 30px;
  font-size: 13px;
  font-weight: 700;
}

.hub__footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.hub__footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.hub__footer a:focus-visible,
.legal__home:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

/* ---------- Impressum ---------- */

.hub--legal {
  max-width: 640px;
  justify-content: flex-start;
  text-align: center;
}

.legal__home {
  border-radius: 50%;
}

.hub--legal .hub__logo {
  width: 96px;
  height: 96px;
}

.legal__title {
  margin-top: 22px;
}

.legal {
  width: 100%;
  margin: 26px 0 30px;
  padding: 24px 26px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--lift) var(--lift) 0 var(--ink);
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: break-word;
}

.legal h2 {
  margin: 22px 0 4px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal ul {
  margin: 0;
}

.legal p + p,
.legal p + ul,
.legal ul + p {
  margin-top: 10px;
}

.legal ul {
  padding-left: 20px;
}

.legal li + li {
  margin-top: 4px;
}

.legal__lead {
  font-weight: 600;
}

.legal .legal__updated {
  margin-top: 22px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 13px;
}

.legal a {
  color: var(--teal-dark);
  font-weight: 700;
  text-underline-offset: 2px;
}

.legal a:hover {
  color: var(--teal);
}

/* ---------- Bewegung ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hub__header,
  .hub__links li,
  .hub__footer,
  .hub--status > *,
  .hub--legal > * {
    animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }

  .hub__footer { animation-delay: 0.6s; }

  .hub__links li:nth-child(1) { animation-delay: 0.1s; }
  .hub__links li:nth-child(2) { animation-delay: 0.16s; }
  .hub__links li:nth-child(3) { animation-delay: 0.22s; }
  .hub__links li:nth-child(4) { animation-delay: 0.28s; }
  .hub__links li:nth-child(5) { animation-delay: 0.34s; }
  .hub__links li:nth-child(6) { animation-delay: 0.4s; }
  .hub__links li:nth-child(7) { animation-delay: 0.46s; }
  .hub__links li:nth-child(8) { animation-delay: 0.52s; }
  .hub__links li:nth-child(n + 9) { animation-delay: 0.58s; }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* Handys: kompakter, damit alle Kanäle ohne Scrollen sichtbar sind */
@media (max-width: 480px) {
  .hub {
    padding-top: max(32px, env(safe-area-inset-top));
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  .hub__logo {
    width: 128px;
    height: 128px;
  }

  .hub__name {
    margin-top: 20px;
  }

  .hub__tagline {
    margin: 14px 0 24px;
  }

  .hub__links {
    gap: 14px;
  }

  .link {
    min-height: 64px;
    padding: 8px 16px 8px 8px;
  }

  .link__icon {
    width: 44px;
    height: 44px;
  }

  .link__line {
    column-gap: 8px;
  }

  .link__badge {
    padding: 4px 8px;
    letter-spacing: 0.06em;
  }

  .hub__footer {
    margin-top: 24px;
  }

  .legal {
    padding: 20px 18px;
  }
}

@media (max-width: 350px) {
  .link {
    gap: 10px;
    padding-right: 12px;
  }

  .link__label {
    font-size: 16px;
  }
}
