/* ========================================================================== 
   PLAXIA Editorial Refresh
   Visuelle Ebene über dem bestehenden Design. Funktionale Komponenten,
   API-Anbindungen und Blog-Daten bleiben unverändert.
   ========================================================================== */

:root {
  --bg: #e9e5dc;
  --surface: #f9f7f2;
  --surface-2: #f0ece3;
  --surface-3: #e2ddd3;
  --surface-warm: #eee8dc;

  --text: #16181b;
  --text-soft: #353a42;
  --muted: #656a70;
  --muted-2: #8b8f92;

  --accent: #3d4ed8;
  --accent-dark: #2d3cb5;
  --accent-soft: #28358f;

  --line: rgba(22, 24, 27, 0.13);
  --line-strong: rgba(22, 24, 27, 0.25);

  --radius-xl: 14px;
  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 5px;

  --container: 1380px;
  --gutter: 16px;
  --section-gap: 18px;

  --shadow: 0 8px 20px rgba(32, 31, 27, 0.07);
  --card-bg: var(--surface);
  --card-radius: var(--radius-xl);
  --card-shadow: none;
}

html[data-theme="dark"] {
  --bg: #0f1113;
  --surface: #17191c;
  --surface-2: #202327;
  --surface-3: #2a2e33;
  --surface-warm: #1c1c1a;

  --text: #f1efe9;
  --text-soft: #c9c8c4;
  --muted: #999b9f;
  --muted-2: #70747a;

  --accent: #6574ff;
  --accent-dark: #4f60ea;
  --accent-soft: #b8c0ff;

  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

body,
html[data-theme="dark"] body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(22, 24, 27, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 24, 27, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

html[data-theme="dark"] body {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

.page {
  width: min(var(--container), calc(100% - 36px));
  margin: 18px auto 28px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title {
  font-family: var(--font-body);
}

.card {
  border-radius: var(--radius-xl);
  box-shadow: none;
}

/* Header ------------------------------------------------------------------ */
.site-header,
html[data-theme="dark"] .site-header {
  min-height: 70px;
  padding: 12px 16px 12px 20px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0 18%, transparent 18% 100%);
  pointer-events: none;
}

.brand {
  gap: 11px;
  letter-spacing: 0.04em;
  font-size: 14px;
  text-transform: none;
}

.brand__logo {
  width: 34px;
  height: 34px;
}

.site-nav {
  gap: 28px;
  font-size: 13px;
  font-weight: 650;
}

.site-nav a,
.nav-dropdown__trigger {
  position: relative;
  opacity: 1;
}

.site-nav > a::after,
.nav-dropdown__trigger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
  transition: right var(--transition);
}

.site-nav > a:hover::after,
.site-nav > a:focus-visible::after,
.nav-dropdown__trigger:hover::after,
.nav-dropdown__trigger:focus-visible::after {
  right: 0;
}

.nav-dropdown__menu,
.mobile-nav {
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(22, 24, 27, 0.08);
}

html[data-theme="dark"] .nav-dropdown__menu,
html[data-theme="dark"] .mobile-nav {
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.22);
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  min-height: 46px;
  padding: 12px 18px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent-dark);
  border-radius: 7px;
  box-shadow: 3px 3px 0 var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.btn:hover,
.btn:focus-visible {
  opacity: 1;
  background: var(--accent-dark);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--accent-dark);
}

.btn--dark,
html[data-theme="dark"] .btn--dark {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: 3px 3px 0 var(--line-strong);
}

.btn--dark:hover,
.btn--dark:focus-visible,
html[data-theme="dark"] .btn--dark:hover,
html[data-theme="dark"] .btn--dark:focus-visible {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: 1px 1px 0 var(--line-strong);
}

/* Homepage hero ----------------------------------------------------------- */
.home-hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.home-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 84px);
}

.home-hero__copy::before {
  content: "";
  position: absolute;
  top: 48px;
  left: 0;
  width: 6px;
  height: 108px;
  background: var(--accent);
}

.home-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--text-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.home-hero__eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  background: #43bd78;
  border: 2px solid color-mix(in srgb, #43bd78 30%, var(--surface));
  border-radius: 2px;
}

.home-hero h1 {
  max-width: 720px;
  font-size: clamp(52px, 6.3vw, 94px);
  line-height: 0.92;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.home-hero h1 em {
  display: inline-block;
  color: var(--accent);
  font-style: normal;
}

.home-hero__lead {
  max-width: 600px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.home-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 52px;
  border-top: 1px solid var(--line);
}

.home-hero__facts div {
  min-width: 0;
  padding: 18px 16px 0 0;
}

.home-hero__facts div + div {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.home-hero__facts dt {
  color: var(--muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-hero__facts dd {
  margin-top: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.home-hero__media {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #0d1015;
}

.home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 16, 21, 0.12), transparent 30%),
    linear-gradient(180deg, transparent 52%, rgba(7, 9, 12, 0.76) 100%);
  pointer-events: none;
}

.home-hero__image {
  width: 100%;
  height: 100%;
  min-height: 650px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.06);
  transform: scale(1.01);
}

.home-hero__coordinate {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  padding: 9px 11px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(10, 12, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.07em;
  backdrop-filter: blur(10px);
}

.home-hero__caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  color: #fff;
}

.home-hero__caption span {
  padding: 7px 9px;
  background: var(--accent);
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-hero__caption strong {
  max-width: 420px;
  justify-self: end;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-align: right;
}

.home-hero + .latest-posts {
  margin-top: 68px;
}

/* Editorial section headings --------------------------------------------- */
.latest-posts,
.join-help {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.latest-posts {
  gap: 30px;
}

.latest-posts__head,
.join-help__head {
  position: relative;
  max-width: none;
  padding: 0 0 22px 22px;
  border-bottom: 1px solid var(--line-strong);
}

.latest-posts__head::before,
.join-help__head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 22px;
  width: 5px;
  background: var(--accent);
}

.latest-posts__head {
  align-items: end;
}

.latest-posts__head > div > span,
.join-help__head span,
html[data-theme="dark"] .latest-posts__head > div > span,
html[data-theme="dark"] .join-help__head span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.latest-posts__head h2,
.join-help__head h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.latest-posts__head p,
.join-help__head p {
  max-width: 650px;
  margin-top: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.text-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 7px;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  font-size: 13px;
  font-weight: 800;
  transition: gap var(--transition), color var(--transition);
}

.text-link:hover,
.text-link:focus-visible {
  gap: 15px;
  color: var(--accent);
}

/* Blog cards: same data, less template-like presentation ------------------ */
.latest-posts__grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.latest-posts__grid .blog-card {
  grid-column: span 3;
}

.latest-posts__grid .blog-card:nth-child(1) {
  grid-column: span 4;
}

.latest-posts__grid .blog-card:nth-child(2) {
  grid-column: span 2;
}

.blog-page__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-page__grid .blog-card,
.blog-page__grid .blog-card:nth-child(n) {
  grid-column: auto;
}

.blog-card,
.blog-feature-card,
.blog-empty-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
}

.blog-card {
  min-height: 390px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.blog-card:hover {
  transform: translateY(-4px) rotate(-0.15deg);
  border-color: var(--line-strong);
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--accent) 16%, transparent);
}

.blog-card__thumb {
  aspect-ratio: 16 / 8.8;
  border-radius: 0;
  filter: saturate(0.9) contrast(1.04);
}

.latest-posts__grid .blog-card:nth-child(1) .blog-card__thumb {
  aspect-ratio: 16 / 7.4;
}

.latest-posts__grid .blog-card:nth-child(2) .blog-card__thumb {
  aspect-ratio: 4 / 3;
}

.blog-card__meta {
  margin: 18px 20px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.055em;
}

.blog-card__meta span,
html[data-theme="dark"] .blog-card__meta span {
  color: var(--accent);
}

.blog-card h3 {
  margin: 0 20px;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.latest-posts__grid .blog-card:nth-child(1) h3 {
  max-width: 760px;
  font-size: clamp(25px, 3vw, 40px);
}

.blog-card p {
  margin: 13px 20px 0;
  font-size: 13px;
  line-height: 1.58;
}

.blog-card a,
.blog-card__read {
  margin: auto 20px 0;
  padding: 20px 0 20px;
  border-bottom: 0;
  font-size: 12px;
}

.blog-card__read span {
  transition: transform var(--transition);
}

.blog-card__read:hover span,
.blog-card__read:focus-visible span {
  transform: translateX(4px);
}

.blog-filter-bar {
  padding: 8px;
  background: var(--surface);
  border-radius: 9px;
  box-shadow: none;
}

.blog-filter-bar__button {
  min-height: 40px;
  border-radius: 5px;
  font-size: 12px;
}

/* Discord ----------------------------------------------------------------- */
.discord-strip,
.discord-strip[data-discord-card],
html[data-theme="dark"] .discord-strip[data-discord-card] {
  position: relative;
  min-height: 260px;
  padding: clamp(32px, 5vw, 64px);
  background:
    linear-gradient(105deg, rgba(10, 12, 17, 0.97) 0 56%, rgba(10, 12, 17, 0.72) 100%),
    url("../img/slider-citybuild.webp") center 55% / cover no-repeat;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
}

.discord-strip::before {
  content: "#";
  position: absolute;
  right: clamp(22px, 5vw, 70px);
  top: 50%;
  color: rgba(255, 255, 255, 0.06);
  font-family: var(--font-title);
  font-size: clamp(150px, 22vw, 320px);
  font-weight: 800;
  line-height: 0.8;
  transform: translateY(-50%);
  pointer-events: none;
}

.discord-strip__content,
.discord-strip__actions {
  position: relative;
  z-index: 1;
}

.discord-strip__label {
  padding: 0;
  color: #aeb7ff;
  background: transparent;
  border-radius: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.discord-strip h2,
.discord-strip[data-discord-card] h2 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.discord-strip p,
.discord-strip[data-discord-card] p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.discord-strip__online,
.discord-strip[data-discord-card] .discord-strip__online,
html[data-theme="dark"] .discord-strip[data-discord-card] .discord-strip__online {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 5px;
}

/* Join section ------------------------------------------------------------ */
.discord-strip + .join-help {
  margin-top: 68px;
}

.join-help {
  display: grid;
  gap: 30px;
}

.join-guides {
  gap: 16px;
}

.join-card {
  position: relative;
  padding: clamp(24px, 3vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
}

.join-card:first-child {
  color: #f4f3ef;
  background: #171a1f;
  border-color: #171a1f;
}

.join-card:first-child::after {
  content: "JAVA";
  position: absolute;
  right: -14px;
  top: 34px;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(74px, 9vw, 130px);
  font-weight: 900;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.join-card__top {
  position: relative;
  z-index: 1;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.join-card:first-child .join-card__top {
  border-color: rgba(255, 255, 255, 0.13);
}

.join-card__top span,
html[data-theme="dark"] .join-card__top span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.07em;
}

.join-card:first-child .join-card__top span {
  color: #9ca7ff;
}

.join-card h2 {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  font-size: clamp(27px, 3vw, 40px);
  letter-spacing: -0.05em;
}

.join-step-card {
  position: relative;
  z-index: 1;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.join-card:first-child .join-step-card {
  border-color: rgba(255, 255, 255, 0.12);
}

.join-step-card__number {
  width: 31px;
  height: 31px;
  color: var(--surface);
  background: var(--text);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.join-card:first-child .join-step-card__number {
  color: #111318;
  background: #f2f0e9;
}

.join-card:first-child .join-step-card__content strong {
  color: #fff;
}

.join-card:first-child .join-step-card__content p {
  color: rgba(255, 255, 255, 0.58);
}

.join-card__address {
  position: relative;
  z-index: 1;
  border-radius: 6px;
}

.join-card:first-child .join-card__address {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.join-card:first-child .join-card__address strong,
.join-card:first-child .join-card__address span {
  color: #fff;
}

.join-card__copy {
  border-radius: 5px;
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
  padding: clamp(30px, 4vw, 54px);
  color: #eae9e5;
  background: #121417;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
}

.footer-brand__name,
.footer-column__title,
.footer-cta__title {
  color: #fff;
}

.footer-brand__text,
.footer-cta__text,
.footer-links,
.footer-bottom {
  color: rgba(255, 255, 255, 0.58);
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: #fff;
}

.footer-bottom {
  border-color: rgba(255, 255, 255, 0.12);
}

/* App panel and common content cards ------------------------------------- */
.app-panel,
.vote-card,
.wiki-system-card,
.feature-card,
.partner-card,
.team-card,
.rule-section-card,
.application-form,
.legal-shell,
.rules-support-card {
  border-radius: 10px;
  box-shadow: none;
}

.theme-switch {
  border-radius: 7px;
  box-shadow: 3px 3px 0 var(--line-strong);
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1180px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero__media,
  .home-hero__image {
    min-height: 520px;
  }

  .latest-posts__grid .blog-card,
  .latest-posts__grid .blog-card:nth-child(n) {
    grid-column: span 3;
  }

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

@media (max-width: 760px) {
  .page {
    width: min(100% - 20px, var(--container));
    margin: 10px auto 18px;
  }

  .site-header {
    min-height: 62px;
    padding: 9px 10px 9px 14px;
  }

  .site-header::after {
    left: 14px;
    right: 14px;
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero__copy {
    padding: 46px 24px 38px;
  }

  .home-hero__copy::before {
    top: 46px;
    width: 4px;
    height: 76px;
  }

  .home-hero h1 {
    font-size: clamp(46px, 15vw, 70px);
  }

  .home-hero__facts {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .home-hero__facts div {
    padding: 14px 0;
  }

  .home-hero__facts div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .home-hero__media,
  .home-hero__image {
    min-height: 440px;
  }

  .home-hero__caption {
    left: 18px;
    right: 18px;
    bottom: 18px;
    grid-template-columns: 1fr;
  }

  .home-hero__caption strong {
    justify-self: start;
    text-align: left;
  }

  .home-hero__coordinate {
    top: 16px;
    right: 16px;
  }

  .home-hero + .latest-posts,
  .discord-strip + .join-help {
    margin-top: 52px;
  }

  .latest-posts,
  .join-help {
    padding: 0;
  }

  .latest-posts__head,
  .join-help__head {
    padding: 0 0 18px 18px;
  }

  .latest-posts__head::before,
  .join-help__head::before {
    bottom: 18px;
    width: 4px;
  }

  .latest-posts__head .text-link {
    margin-top: 10px;
  }

  .latest-posts__grid,
  .blog-page__grid {
    grid-template-columns: 1fr;
  }

  .latest-posts__grid .blog-card,
  .latest-posts__grid .blog-card:nth-child(n),
  .blog-page__grid .blog-card,
  .blog-page__grid .blog-card:nth-child(n) {
    grid-column: auto;
  }

  .latest-posts__grid .blog-card:nth-child(n) .blog-card__thumb {
    aspect-ratio: 16 / 9;
  }

  .discord-strip,
  .discord-strip[data-discord-card] {
    min-height: 360px;
    padding: 34px 24px;
  }

  .discord-strip__actions {
    align-items: flex-start;
  }

  .join-card {
    padding: 25px 20px;
  }

  .btn {
    width: 100%;
  }

  .home-hero__actions .btn {
    width: auto;
    flex: 1 1 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card:hover {
    transform: none;
  }
}

/* Remove the old pill treatment from editorial section labels. */
.latest-posts__head > div > span,
.join-help__head span,
html[data-theme="dark"] .latest-posts__head > div > span,
html[data-theme="dark"] .join-help__head span {
  display: inline-block;
  width: auto;
  margin-bottom: 9px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

/* -------------------------------------------------------------------------
   Requested refinements — July 2026
   ------------------------------------------------------------------------- */

/* Keep both hero lines optically separate. The markup uses two block lines so
   the descender in “CityBuild” can never collide with the i-dot below it. */
.home-hero h1 > span,
.home-hero h1 > em {
  display: block;
}

.home-hero h1 > em {
  margin-top: 0.09em;
}

/* Java and Bedrock now share the same light card treatment. The edition name
   remains as a quiet oversized marker in the upper-right corner. */
.join-card:first-child,
html[data-theme="dark"] .join-card:first-child {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.join-card::after {
  position: absolute;
  right: -10px;
  top: 30px;
  z-index: 0;
  color: color-mix(in srgb, var(--text) 4%, transparent);
  font-size: clamp(68px, 8vw, 118px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.075em;
  pointer-events: none;
}

.join-card:first-child::after {
  content: "JAVA";
}

.join-card:last-child::after {
  content: "BEDROCK";
}

.join-card:first-child .join-card__top,
html[data-theme="dark"] .join-card:first-child .join-card__top {
  border-color: var(--line);
}

.join-card:first-child .join-card__top span,
html[data-theme="dark"] .join-card:first-child .join-card__top span {
  color: var(--accent);
}

.join-card:first-child .join-step-card,
html[data-theme="dark"] .join-card:first-child .join-step-card {
  border-color: var(--line);
}

.join-card:first-child .join-step-card__number,
html[data-theme="dark"] .join-card:first-child .join-step-card__number {
  color: var(--surface);
  background: var(--text);
}

.join-card:first-child .join-step-card__content strong,
html[data-theme="dark"] .join-card:first-child .join-step-card__content strong,
.join-card:first-child .join-card__address strong,
html[data-theme="dark"] .join-card:first-child .join-card__address strong {
  color: var(--text);
}

.join-card:first-child .join-step-card__content p,
html[data-theme="dark"] .join-card:first-child .join-step-card__content p {
  color: var(--muted);
}

.join-card:first-child .join-card__address,
html[data-theme="dark"] .join-card:first-child .join-card__address {
  background: var(--surface-2);
  border-color: var(--line);
}

.join-card:first-child .join-card__address span,
html[data-theme="dark"] .join-card:first-child .join-card__address span {
  color: var(--muted-2);
}

/* Blog banner: same visual language as the Wiki banner, with its own content
   and a city view as the background. */
.blog-hero {
  background:
    linear-gradient(90deg, rgba(9, 10, 11, 0.94), rgba(9, 10, 11, 0.68) 52%, rgba(9, 10, 11, 0.34)),
    linear-gradient(180deg, rgba(9, 10, 11, 0.06), rgba(9, 10, 11, 0.78)),
    url("../img/slider-citybuild.webp") center 48% / cover no-repeat;
  border-radius: 14px;
  box-shadow: none;
}

.blog-hero .features-hero__number {
  font-size: clamp(42px, 5vw, 64px);
  letter-spacing: -0.07em;
}

/* Footer follows the navbar surface, border and text system in both themes. */
.site-footer,
html[data-theme="dark"] .site-footer {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.footer-brand__name,
.footer-column__title,
.footer-cta__title,
html[data-theme="dark"] .footer-brand__name,
html[data-theme="dark"] .footer-column__title,
html[data-theme="dark"] .footer-cta__title {
  color: var(--text);
}

.footer-brand__text,
.footer-cta__text,
.footer-links,
.footer-bottom,
html[data-theme="dark"] .footer-brand__text,
html[data-theme="dark"] .footer-cta__text,
html[data-theme="dark"] .footer-links,
html[data-theme="dark"] .footer-bottom {
  color: var(--muted);
}

.footer-bottom,
html[data-theme="dark"] .footer-bottom {
  border-color: var(--line);
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-legal a:hover,
.footer-legal a:focus-visible,
html[data-theme="dark"] .footer-links a:hover,
html[data-theme="dark"] .footer-links a:focus-visible,
html[data-theme="dark"] .footer-legal a:hover,
html[data-theme="dark"] .footer-legal a:focus-visible {
  color: var(--text);
}

@media (max-width: 760px) {
  .home-hero h1 > em {
    margin-top: 0.12em;
  }

  .join-card::after {
    right: -6px;
    top: 28px;
    font-size: clamp(58px, 19vw, 86px);
  }

  .blog-hero .features-hero__number {
    font-size: 44px;
  }
}


/* ========================================================================
   Interaktive Cards, einheitliche Blog-Vorschauen und mobile Rechtstexte
   ======================================================================== */

/* Alle Blog-Cards und Thumbnails verwenden dieselben Abmessungen. */
.latest-posts__grid,
.blog-page__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.latest-posts__grid .blog-card,
.latest-posts__grid .blog-card:nth-child(n),
.blog-page__grid .blog-card,
.blog-page__grid .blog-card:nth-child(n) {
  grid-column: auto;
  width: 100%;
  min-height: 430px;
  height: 100%;
}

.blog-card,
.feature-card.is-detail-card,
.team-card.is-detail-card {
  position: relative;
  cursor: pointer;
}

.blog-card__thumb,
.latest-posts__grid .blog-card:nth-child(n) .blog-card__thumb {
  width: 100%;
  height: 190px;
  aspect-ratio: auto;
  object-fit: cover;
}

.latest-posts__grid .blog-card:nth-child(n) h3 {
  max-width: none;
  font-size: clamp(20px, 2vw, 27px);
}

.blog-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.blog-card > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.blog-card__click-target,
.card-detail-trigger {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: inherit;
  cursor: pointer;
}

.blog-card__read,
.feature-card.is-detail-card a,
.team-card.is-detail-card a {
  position: relative;
  z-index: 2;
}

.blog-card:has(.blog-card__click-target:focus-visible),
.feature-card.is-detail-card:has(.card-detail-trigger:focus-visible),
.team-card.is-detail-card:has(.card-detail-trigger:focus-visible) {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, white 28%);
  outline-offset: 4px;
  border-color: var(--accent);
}

.card-detail-hint {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  transition: color var(--transition), gap var(--transition);
}

.feature-card__wiki + .card-detail-trigger + .card-detail-hint,
.feature-card__wiki ~ .card-detail-hint {
  margin-top: 12px;
  padding-top: 0;
}

.is-detail-card:hover .card-detail-hint {
  gap: 12px;
  color: var(--accent);
}

.team-card .card-detail-hint {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 0;
  margin: 0;
  padding: 0;
}

.team-card__role {
  padding-right: 116px;
}

/* Gemeinsame Detailansicht für Wiki und Team. */
.content-reader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 10, 11, 0.82);
  backdrop-filter: blur(14px);
}

.content-reader[hidden] {
  display: none;
}

.has-open-detail-reader {
  overflow: hidden;
}

.content-reader__dialog {
  width: min(920px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  position: relative;
  overflow: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 92% 8%, rgba(72, 88, 255, 0.18), transparent 30%),
    var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  -webkit-overflow-scrolling: touch;
}

.content-reader__close {
  position: sticky;
  top: 16px;
  z-index: 4;
  float: right;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 16px 16px -58px 0;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-2) 90%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
}

.content-reader__content {
  padding: clamp(28px, 5vw, 54px);
}

.content-reader__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-right: 54px;
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.content-reader__meta span {
  padding: 7px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.content-reader h2 {
  max-width: 760px;
  margin-top: 22px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.content-reader__lead {
  max-width: 760px;
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.65;
}

.content-reader__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.content-reader__facts[hidden] {
  display: none;
}

.content-reader__facts > div {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.content-reader__facts span {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-reader__facts strong {
  font-size: 15px;
  line-height: 1.35;
}

.content-reader__body,
.content-reader__video,
.content-reader__socials {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.content-reader__body p,
.content-reader__empty-socials {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.75;
}

.content-reader__body p + p {
  margin-top: 16px;
}

.content-reader__video h3,
.content-reader__socials h3 {
  margin-bottom: 16px;
  font-size: 22px;
}

.content-reader__media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #08090b;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.content-reader__media iframe,
.content-reader__media video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: contain;
}

.content-reader__social-list,
.content-reader__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.content-reader__social-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.content-reader__empty-socials {
  padding: 16px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
}

.content-reader__actions {
  margin-top: 30px;
}

/* iOS/Safari: Rechtstexte müssen vertikal auf der Seite scrollen können. */
@media (max-width: 760px) {
  html.legal-document,
  body.legal-page {
    width: 100%;
    height: auto !important;
    min-height: 100%;
    overflow-x: clip;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  body.legal-page .page,
  body.legal-page .legal-shell,
  body.legal-page .legal-content {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  body.legal-page .legal-topics {
    max-width: 100%;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .blog-card__thumb,
  .latest-posts__grid .blog-card:nth-child(n) .blog-card__thumb {
    height: 180px;
    aspect-ratio: auto;
  }

  .latest-posts__grid .blog-card,
  .latest-posts__grid .blog-card:nth-child(n),
  .blog-page__grid .blog-card,
  .blog-page__grid .blog-card:nth-child(n) {
    min-height: 420px;
  }

  .content-reader {
    align-items: end;
    padding: 10px;
  }

  .content-reader__dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 12px;
  }

  .content-reader__content {
    padding: 28px 22px 30px;
  }

  .content-reader__facts {
    grid-template-columns: 1fr;
  }

  .content-reader__actions .btn {
    width: 100%;
  }

  .team-card .card-detail-hint {
    right: 20px;
    bottom: 20px;
  }

  .team-card__role {
    padding-right: 108px;
  }
}

@supports (height: 100dvh) {
  .content-reader__dialog {
    max-height: min(860px, calc(100dvh - 48px));
  }

  @media (max-width: 760px) {
    html.legal-document,
    body.legal-page {
      min-height: 100dvh;
    }

    .content-reader__dialog {
      max-height: calc(100dvh - 20px);
    }
  }
}
