/* Aktuerk Brothers – Landing Page
   Zwei Farben für zwei Brüder: Kobalt (Ali) und Mandarine (Muhammed).
   Die Spieleliste ist als dunkle Serverliste gestaltet. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url("fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --paper: #eceef3;
  --paper-deep: #e1e4eb;
  --ink: #151925;
  --ink-muted: #4a5064;
  --line: #cfd3dd;
  --cobalt: #2a49e8;
  --cobalt-deep: #1d36c0;
  --tangerine: #ff6a2b;
  --console: #141826;
  --console-raised: #1b2032;
  --console-text: #e9ecf4;
  --console-muted: #9aa3b8;
  --console-line: #272d42;
  --online: #43d58c;
  --offline: #ff6b6b;

  --font: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 62ch;
  --radius-tile: 22px;
  --radius-control: 999px;
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--cobalt);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: min(1160px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  top: 12px;
}

/* Kopfzeile */

.site-header {
  padding-block: 22px;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(16px, 2.5vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--ink);
  font-size: 17px;
  font-weight: 550;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--cobalt);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* Routing: Nur der Bereich der aktuellen Route ist sichtbar (data-route setzt das Skript im <head>).
   Ohne JavaScript bleibt alles als eine lange Seite sichtbar. */

main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

[data-page] {
  flex: 1 0 auto;
}

html[data-route] [data-page],
[data-page="404"] {
  display: none;
}

html[data-route="about"] [data-page="about"],
html[data-route="games"] [data-page="games"],
html[data-route="team"] [data-page="team"],
html[data-route="impressum"] [data-page="impressum"],
html[data-route="404"] [data-page="404"] {
  display: block;
}

/* Kurzes Einblenden nur beim Seitenwechsel, nicht beim ersten Laden */
html[data-navigated] [data-page] {
  animation: page-in 220ms ease-out;
}

@keyframes page-in {
  from {
    opacity: 0;
  }
}

h1[tabindex="-1"]:focus {
  outline: none;
}

/* Über mich */

.hero {
  padding-block: clamp(48px, 9vw, 112px) clamp(56px, 8vw, 96px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.hero h1 {
  font-size: clamp(52px, 8.4vw, 116px);
  font-weight: 800;
  font-stretch: 92%;
  line-height: 0.9;
  letter-spacing: -0.028em;
}

.lead {
  max-width: 34ch;
  margin-top: 28px;
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border: 2px solid var(--cobalt);
  border-radius: var(--radius-control);
  background: var(--cobalt);
  color: #fff;
  font-size: 17px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  background: var(--cobalt-deep);
  border-color: var(--cobalt-deep);
}

.button-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.button-quiet:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* Das große AB-Zeichen: zwei Spielsteine, die beim Laden zusammenrücken */

.duo {
  position: relative;
  justify-self: center;
  width: clamp(220px, 32vw, 380px);
  aspect-ratio: 1;
}

.duo span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 64%;
  aspect-ratio: 1;
  border-radius: clamp(26px, 4vw, 44px);
  font-size: clamp(110px, 17vw, 210px);
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1;
  letter-spacing: -0.04em;
}

.duo-a {
  left: 0;
  top: 0;
  background: var(--cobalt);
  color: var(--paper);
  transform: rotate(-6deg);
  animation: duo-a 900ms cubic-bezier(0.2, 0.9, 0.25, 1.15) 150ms both;
}

.duo-b {
  right: 0;
  bottom: 0;
  background: var(--tangerine);
  color: var(--ink);
  border: clamp(6px, 0.9vw, 10px) solid var(--paper);
  transform: rotate(5deg);
  animation: duo-b 900ms cubic-bezier(0.2, 0.9, 0.25, 1.15) 150ms both;
}

@keyframes duo-a {
  from {
    transform: translate(-18%, -6%) rotate(-16deg);
  }
}

@keyframes duo-b {
  from {
    transform: translate(18%, 6%) rotate(15deg);
  }
}

.about-more {
  border-top: 1px solid var(--line);
  padding-block: 40px clamp(64px, 9vw, 112px);
}

.about-more .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px 48px;
}

.about-more h2 {
  font-size: 26px;
}

.about-more .text {
  display: grid;
  gap: 18px;
  max-width: var(--measure);
  color: var(--ink-muted);
}

.about-more strong {
  color: var(--ink);
  font-weight: 650;
}

/* Spiele als Serverliste */

.games {
  background: var(--console);
  color: var(--console-text);
  padding-block: clamp(56px, 8vw, 104px);
}

.games-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px 48px;
  margin-bottom: 40px;
}

.games h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-stretch: 90%;
  letter-spacing: -0.035em;
}

.games-intro {
  max-width: 46ch;
  margin-top: 14px;
  color: var(--console-muted);
}

.games-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--console-line);
  border-radius: var(--radius-control);
  background: var(--console-raised);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.server-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--console-line);
}

.server-cols,
.server {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 150px 140px 132px 112px;
  align-items: center;
  gap: 24px;
}

.server-cols {
  padding: 0 0 12px;
  color: var(--console-muted);
  font-size: 14px;
  font-weight: 550;
}

.server-cols span:first-child {
  grid-column: 1 / 3;
}

.server {
  padding-block: 26px;
  border-bottom: 1px solid var(--console-line);
}

.server-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  object-fit: cover;
}

.server h2 {
  font-size: 25px;
  letter-spacing: -0.02em;
}

.server-genre {
  margin-top: 2px;
  color: var(--game-color);
  font-size: 15px;
  font-weight: 650;
}

.server-desc {
  max-width: 54ch;
  margin-top: 8px;
  color: var(--console-muted);
  font-size: 16px;
  line-height: 1.55;
}

.server-fact {
  font-size: 15px;
  line-height: 1.45;
}

.server-fact dt {
  display: none;
}

.server-fact dd {
  margin: 0;
}

.status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--console-muted);
  flex: none;
}

.status[data-state="checking"] .status-dot {
  animation: checking 1s ease-in-out infinite alternate;
}

.status[data-state="online"] .status-dot,
.games-summary[data-state="online"] .status-dot {
  background: var(--online);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--online) 22%, transparent);
}

.status[data-state="offline"] .status-dot,
.games-summary[data-state="offline"] .status-dot {
  background: var(--offline);
}

.status-ping {
  color: var(--console-muted);
}

@keyframes checking {
  to {
    opacity: 0.25;
  }
}

.button-play {
  min-height: 44px;
  padding-inline: 20px;
  border-color: var(--console-text);
  background: var(--console-text);
  color: var(--console);
}

.button-play:hover {
  border-color: var(--game-color);
  background: var(--game-color);
  color: var(--console);
}

.games :focus-visible {
  outline-color: var(--console-text);
}

/* Team */

.team {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 48px;
}

.section-head h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-stretch: 90%;
  letter-spacing: -0.035em;
}

.section-head p {
  max-width: 48ch;
  color: var(--ink-muted);
}

.team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px clamp(32px, 5vw, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.member {
  container-type: inline-size;
}

/* Der Vorname füllt die Kachel; lange Namen setzen über --name-fit eine kleinere Größe */
.member-name-tile {
  display: flex;
  align-items: end;
  height: clamp(150px, 18vw, 210px);
  padding: 0 24px 6px;
  border-radius: var(--radius-tile);
  background: var(--member-color);
  color: var(--member-text);
  font-size: min(150px, var(--name-fit, 30cqi));
  font-weight: 800;
  font-stretch: 90%;
  line-height: 0.95;
  letter-spacing: -0.025em;
  overflow: hidden;
}

.member h2 {
  margin-top: 24px;
  font-size: 26px;
}

.member-role {
  margin-top: 2px;
  font-weight: 600;
}

.member-text {
  max-width: 46ch;
  margin-top: 12px;
  color: var(--ink-muted);
}

.member-projects {
  margin: 16px 0 0;
  font-size: 16px;
}

.member-projects dt {
  font-weight: 650;
}

.member-projects dd {
  margin: 0;
  color: var(--ink-muted);
}

.member-projects dd + dt {
  margin-top: 10px;
}

/* Impressum */

.imprint {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  padding-block: clamp(56px, 8vw, 96px);
}

.imprint .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px 48px;
}

.imprint h1 {
  font-size: 34px;
}

.imprint-body {
  display: grid;
  gap: 28px;
  max-width: var(--measure);
  font-size: 16px;
}

.imprint-body h2 {
  margin-bottom: 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.imprint-body address {
  font-style: normal;
}

.imprint-body :is(p, address) + p {
  margin-top: 8px;
}

/* Platzhalter, die vor dem Veröffentlichen ersetzt werden müssen */
.todo {
  padding: 0 4px;
  border-radius: 4px;
  background: #ffe27a;
  color: var(--ink);
  outline: 1px dashed #b38a00;
}

/* Seite nicht gefunden */

.not-found {
  padding-block: clamp(64px, 10vw, 128px);
}

.not-found h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-stretch: 90%;
  letter-spacing: -0.035em;
}

.not-found p {
  margin-top: 16px;
  color: var(--ink-muted);
}

.not-found ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

/* Fußzeile */

.site-footer {
  border-top: 1px solid var(--console-line);
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  padding-block: clamp(48px, 6vw, 72px);
}

.site-footer .brand {
  color: var(--paper);
}

.footer-brand p {
  max-width: 32ch;
  margin-top: 14px;
  color: var(--console-muted);
  line-height: 1.55;
}

.footer-col h2 {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--console-muted);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: var(--paper);
  text-decoration: underline;
}

.site-footer .brand:hover {
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 22px;
  border-top: 1px solid var(--console-line);
  color: var(--console-muted);
  font-size: 14px;
}

.site-footer :focus-visible {
  outline-color: var(--paper);
}

/* Responsiv */

@media (max-width: 1060px) {
  .server-cols {
    display: none;
  }

  .server {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      "icon info"
      "icon facts"
      "icon play";
    align-items: start;
    gap: 14px 20px;
  }

  .server-icon {
    grid-area: icon;
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .server-info {
    grid-area: info;
  }

  .server-facts {
    grid-area: facts;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 28px;
  }

  .server-fact dt {
    display: block;
    color: var(--console-muted);
    font-size: 13px;
  }

  .server-play {
    grid-area: play;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
  }
}

@media (min-width: 1061px) {
  /* Fakten, Status und Knopf liegen als eigene Spalten im Raster */
  .server-facts,
  .server-play {
    display: contents;
  }
}

@media (max-width: 820px) {
  .hero .wrap,
  .about-more .wrap,
  .imprint .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero .wrap {
    gap: 40px;
  }

  .duo {
    justify-self: start;
    width: clamp(180px, 52vw, 260px);
    order: -1;
  }

  .team-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 17px;
  }

  .server {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 14px;
  }

  .server-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .server h2 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
  }
}
