/* Spielerfreunde UG – schlanke Firmenseite. Kein Framework, kein JavaScript. */

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/chakra-petch-600.woff2") format("woff2");
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/chakra-petch-700.woff2") format("woff2");
}

:root {
  /* Flächen */
  --bg: #0c0a14;
  --bg-soft: #110e1c;
  --surface: #171327;
  --border: #2b2542;
  --border-strong: #40376a;

  /* Text */
  --text: #edeaf6;
  --muted: #aaa4c0;

  /* Marke: Verlauf aus dem Logo (Altrosa → Koralle → Orange) */
  --pink: #dd638a;
  --red: #ee6e6b;
  --orange: #f5a056;
  --grad: linear-gradient(90deg, var(--pink), var(--red) 50%, var(--orange));
  --on-grad: #1b0d16;

  --font-display: "Chakra Petch", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.grad-text {
  color: var(--red);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 10, 20, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand img {
  width: 50px;
}

@media (max-width: 379px) {
  .brand {
    gap: 8px;
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
  }
  .brand img {
    width: 38px;
  }
  .site-header .btn-small {
    padding: 0 12px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.nav .btn {
  margin-left: 8px;
}

@media (min-width: 860px) {
  .nav-link {
    display: inline-flex;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: var(--grad);
  color: var(--on-grad);
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.04);
}
.btn-small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(52rem 30rem at 4% -10%, rgba(221, 99, 138, 0.20), transparent 62%),
    radial-gradient(56rem 32rem at 100% 12%, rgba(245, 160, 86, 0.14), transparent 60%);
  border-bottom: 1px solid var(--border);
}

.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-block: clamp(56px, 10vw, 120px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
}

.hero h1 {
  font-size: clamp(2.6rem, 7.4vw, 4.6rem);
  line-height: 1.02;
  text-transform: uppercase;
}
.hero h1 span {
  display: block;
}

.lead {
  max-width: 34rem;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-mark {
  justify-self: center;
  width: min(100%, 460px);
  filter: drop-shadow(0 22px 60px rgba(238, 110, 107, 0.28));
}

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
  .hero-mark {
    justify-self: end;
  }
}

/* ---------- Abschnitte ---------- */

.section {
  padding-block: clamp(56px, 9vw, 104px);
}
.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
}

/* Karten: die drei Akzente folgen dem Logo-Verlauf von links nach rechts */

.cards {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  --accent: var(--red);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card:nth-child(1) {
  --accent: var(--pink);
}
.card:nth-child(3) {
  --accent: var(--orange);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  color: var(--accent);
}
.card-icon svg {
  width: 24px;
  height: 24px;
}
.card h3 {
  font-size: 1.25rem;
}
.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
}

/* Discord-Server: Karussell (Scroll-Snap; Pfeile kommen per JavaScript dazu) */

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}
.section-head-row > div:first-child {
  max-width: 40rem;
}
@media (max-width: 599px) {
  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.carousel-nav {
  display: none;
  flex: none;
  gap: 8px;
}
.js-carousel .carousel-nav {
  display: flex;
}
.carousel-static .carousel-nav {
  display: none;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}
.icon-btn:hover:not(:disabled) {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.04);
}
.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel {
  display: flex;
  gap: 18px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 16px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.js-carousel .carousel {
  padding-bottom: 4px;
  scrollbar-width: none;
}
.js-carousel .carousel::-webkit-scrollbar {
  display: none;
}

.server-card {
  display: flex;
  flex: 0 0 82%;
  flex-direction: column;
  max-width: 340px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (min-width: 600px) {
  .server-card {
    flex-basis: calc((100% - 18px) / 2.2);
  }
}
@media (min-width: 980px) {
  .server-card {
    flex-basis: calc((100% - 36px) / 3.2);
    max-width: none;
  }
}

.server-art {
  display: grid;
  place-items: center;
  padding: 28px 24px;
  background:
    radial-gradient(18rem 10rem at 50% 120%, rgba(238, 110, 107, 0.2), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.server-art img {
  width: 116px;
  height: 116px;
}

.server-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 24px 24px;
}
.server-tag {
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.server-body h3 {
  margin-top: 6px;
  font-size: 1.25rem;
}
.server-body h3 + p {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 1rem;
}
.server-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: -8px 0 20px;
  color: var(--muted);
  font-size: 0.875rem;
}
.server-stats[hidden],
.server-stats [hidden] {
  display: none;
}
.server-online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
}
.server-online::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ecf8e;
}
.server-body .btn {
  margin-top: auto;
}

/* Über uns */

.about {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .about {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: start;
  }
}
.about-text p + p {
  margin-top: 16px;
}
.about-text p {
  color: var(--muted);
}
.about-text p:first-of-type {
  color: var(--text);
  font-size: 1.1875rem;
}

.facts {
  margin: 0;
  padding: 8px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.facts div {
  padding: 16px 0;
}
.facts div + div {
  border-top: 1px solid var(--border);
}
.facts dt {
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.facts dd {
  margin: 4px 0 0;
}

/* Kontakt */

.contact {
  display: grid;
  gap: 18px;
}
@media (min-width: 760px) {
  .contact {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.contact-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.contact-card .card-icon {
  flex: none;
  margin: 0;
  --accent: var(--red);
}
.contact-card:nth-child(2) .card-icon {
  --accent: var(--orange);
}
.contact-label {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
}
.contact-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}
.contact-arrow {
  flex: none;
  width: 20px;
  height: 20px;
  margin-left: auto;
  color: var(--muted);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 -12px;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-links a:hover {
  color: var(--text);
}

/* ---------- Rechtstexte & 404 ---------- */

.legal {
  max-width: 760px;
  padding-block: clamp(40px, 7vw, 80px);
}
.legal h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 28px;
}
.legal h2 {
  font-size: 1.3125rem;
  margin: 40px 0 12px;
}
.legal p,
.legal li,
.legal address {
  color: #cfcae0;
}
.legal p + p,
.legal address + p,
.legal p + address {
  margin-top: 14px;
}
.legal address {
  font-style: normal;
}
.legal ul {
  margin: 12px 0 0;
  padding-left: 1.25em;
}
.legal li + li {
  margin-top: 6px;
}
.legal ul + p {
  margin-top: 14px;
}
.legal a {
  color: var(--orange);
  text-underline-offset: 3px;
}
.legal .stand {
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Sichtbare Platzhalter – müssen vor dem Livegang ersetzt werden */
.todo {
  padding: 1px 6px;
  border: 1px dashed #ffcf5c;
  border-radius: 5px;
  background: rgba(255, 207, 92, 0.12);
  color: #ffdf8f;
  font-style: normal;
}

.notfound {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding-block: 64px;
  text-align: center;
}
.notfound h1 {
  font-size: clamp(3.5rem, 14vw, 7rem);
}
.notfound p {
  margin: 12px 0 28px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
