/* ==========================================================================
   MCDepartment — Linktree
   Dark / dezentes Gold · Mobile-First · 100 % lokal (keine externen CDNs)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) Lokale Schriften
   Lege deine Font-Dateien unter /assets/fonts/ ab und aktiviere die Blöcke.
   Solange keine Dateien vorhanden sind, greift der System-Font-Stack unten.
   --------------------------------------------------------------------------
@font-face {
  font-family: "MCD Sans";
  src: url("assets/fonts/mcd-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "MCD Sans";
  src: url("assets/fonts/mcd-sans-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
-------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   2) Design-Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Farben */
  --bg:          #0A0A0B;
  --bg-2:        #121214;
  --surface:     rgba(255, 255, 255, .034);
  --surface-hi:  rgba(255, 255, 255, .062);
  --border:      rgba(255, 255, 255, .085);
  --border-hi:   rgba(198, 166, 100, .40);

  --text:        #F3F1ED;
  --muted:       #918D85;

  --gold:        #C6A664;   /* dezentes Altgold */
  --gold-soft:   #E0CB98;
  --gold-dim:    rgba(198, 166, 100, .14);

  /* Typografie */
  --font: "MCD Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Helvetica Neue", Arial, sans-serif;

  /* Maße */
  --col:      460px;
  --radius:   18px;
  --radius-s: 12px;

  /* Bewegung */
  --ease: cubic-bezier(.22, .8, .3, 1);

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   3) Reset & Basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;               /* keine horizontalen Scrollbalken */
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   4) Hintergrund: weiche Glows + feines Korn
   -------------------------------------------------------------------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #16151a 0%, var(--bg) 55%),
    var(--bg);
}

.bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.bg__glow--a {
  top: -18vh; left: 50%;
  width: 78vw; max-width: 620px; aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(198,166,100,.30) 0%, transparent 68%);
}
.bg__glow--b {
  bottom: -22vh; right: -18vw;
  width: 70vw; max-width: 520px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(120,110,150,.20) 0%, transparent 70%);
}

/* Feines Korn – als Inline-SVG, dadurch keine externe Datei nötig */
.bg__grain {
  position: absolute;
  inset: -50%;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   5) Ticker / Laufband
   -------------------------------------------------------------------------- */
.ticker {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(10,10,11,.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* weiche Kanten links/rechts */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.ticker__group {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticker__group i { color: var(--gold); font-style: normal; font-size: 8px; }

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* --------------------------------------------------------------------------
   6) Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--col);
  margin-inline: auto;
  padding: 40px 20px calc(36px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* --------------------------------------------------------------------------
   7) Profil
   -------------------------------------------------------------------------- */
.profile { text-align: center; }

/* Wortmarke als Hero-Element – freigestelltes PNG auf dunklem Grund */
.profile__logo {
  margin: 4px auto 0;
  width: clamp(210px, 70vw, 296px);
  line-height: 0;
  /* weicher Goldschimmer statt harter Kontur */
  filter: drop-shadow(0 10px 32px rgba(198, 166, 100, .16));
}
.profile__logo img { width: 100%; height: auto; }

.profile__tag {
  margin: 16px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

.profile__bio {
  margin: 14px auto 0;
  max-width: 34ch;
  font-size: 15px;
  color: var(--muted);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.badges li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
}
.badges .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #62D08A;
  box-shadow: 0 0 0 3px rgba(98, 208, 138, .16);
}

/* --------------------------------------------------------------------------
   8) Link-Karten
   -------------------------------------------------------------------------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;                 /* Touch-Fläche deutlich über 44px */
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform .35s var(--ease),
    border-color .35s var(--ease),
    background-color .35s var(--ease),
    box-shadow .35s var(--ease);
}

.card__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  color: var(--text);
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.card__icon svg { width: 20px; height: 20px; }

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

.card__title {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -.015em;
}
.card__sub {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__tag {
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: var(--gold-dim);
  color: var(--gold-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card__arrow {
  margin-left: auto;
  color: var(--muted);
  transition: transform .35s var(--ease), color .35s var(--ease);
}
.card__tag + .card__arrow { margin-left: 10px; }
.card__arrow svg { width: 18px; height: 18px; }

/* Primär-Karte (Shop) */
.card--primary {
  border-color: var(--border-hi);
  background:
    linear-gradient(135deg, rgba(198,166,100,.16), rgba(198,166,100,.05) 55%),
    var(--surface);
  min-height: 76px;
}
.card--primary .card__icon {
  background: rgba(198, 166, 100, .16);
  border-color: rgba(198, 166, 100, .32);
  color: var(--gold-soft);
}
.card--primary .card__title { font-size: 16.5px; font-weight: 700; }
.card--primary .card__arrow { color: var(--gold-soft); }

/* Lichtreflex, der einmalig über die Primär-Karte wandert */
.card__shine {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg,
    transparent 35%,
    rgba(255, 255, 255, .10) 50%,
    transparent 65%);
  transform: translateX(-100%);
  animation: shine 5.5s var(--ease) 1.4s infinite;
}
@keyframes shine {
  0%   { transform: translateX(-100%); }
  38%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* Interaktion */
@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hi);
    background-color: var(--surface-hi);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .45);
  }
  .card:hover .card__arrow { transform: translateX(4px); color: var(--gold-soft); }
  .card:hover .card__icon  { color: var(--gold-soft); border-color: var(--border-hi); }
}
.card:active { transform: translateY(0) scale(.988); }

/* --------------------------------------------------------------------------
   9) Sekundäre Aktionen (Chips)
   -------------------------------------------------------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 48px;
  min-height: 48px;                 /* Touch-Ziel */
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  transition:
    color .3s var(--ease),
    border-color .3s var(--ease),
    background-color .3s var(--ease),
    transform .3s var(--ease);
}
.chip svg { width: 19px; height: 19px; }
.chip--wide { padding: 0 18px; }

@media (hover: hover) {
  .chip:hover {
    color: var(--text);
    border-color: var(--border-hi);
    background: var(--surface-hi);
    transform: translateY(-2px);
  }
}
.chip:active { transform: scale(.96); }
.chip.is-done { color: var(--gold-soft); border-color: var(--border-hi); }

/* --------------------------------------------------------------------------
   10) Footer
   -------------------------------------------------------------------------- */
.footer { margin-top: 6px; }

.footer__legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.footer__legal a { transition: color .25s var(--ease); }
.footer__legal a:hover { color: var(--text); }

.footer__copy {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  color: #6B6862;
}

/* Entwickler-Branding: mobil zentriert, ab Tablet rechtsbündig */
.footer__brand {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
.footer__brand a { transition: opacity .25s var(--ease); }
.footer__brand a:hover { opacity: .8; }
.footer__brand span { color: #22b8e0; font-weight: 600; }

@media (min-width: 768px) {
  .footer__brand { text-align: right; }
}

/* --------------------------------------------------------------------------
   11) Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  padding: 11px 18px;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  background: rgba(18, 18, 20, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 13.5px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 50;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   12) Scroll-Reveal (Startanimation)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

/* --------------------------------------------------------------------------
   13) Größere Viewports
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .wrap { padding-top: 56px; gap: 38px; }
  .profile__logo { width: 320px; }
}

/* --------------------------------------------------------------------------
   14) Reduzierte Bewegung
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ticker__track,
  .card__shine { animation: none; }
  .card__shine { display: none; }
  .reveal { opacity: 1; transform: none; }
  .reveal.is-in { transition: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* --------------------------------------------------------------------------
   15) Rechtstext-Seiten (impressum.html / datenschutz.html)
   -------------------------------------------------------------------------- */
.legal { max-width: 720px; text-align: left; }

.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13.5px;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.legal .back:hover { color: var(--gold-soft); }
.legal .back svg { width: 16px; height: 16px; }

.legal h1 {
  margin: 8px 0 6px;
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 800;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.legal h2 {
  margin: 34px 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--gold-soft);
}
.legal p, .legal li { color: #B9B5AE; font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal a:not(.back) { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }

.legal .note {
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px dashed var(--border-hi);
  border-radius: var(--radius-s);
  background: var(--gold-dim);
  font-size: 13.5px;
  color: var(--gold-soft);
}
