/* Made by PapaGordon */
/* Startseite. Basis kommt aus mf-base.css. */
.textLink { margin-top: 28px; }
/* Lobby-Hero. */
.hero { width: var(--page); margin: 0 auto; padding: clamp(48px, 8vw, 110px) 0 56px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(56px, 8.4vw, 124px); line-height: .92; letter-spacing: -.05em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; animation: rise .9s var(--ease-out) both; }
.hero h1 .line + .line > span { animation-delay: .12s; color: var(--coral); }
.heroCopy { max-width: 34em; margin-top: 28px; color: var(--haze); font-size: clamp(17px, 1.4vw, 19px); animation: fadeIn .8s .35s both; }
.heroActions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; animation: fadeIn .8s .45s both; }

.lobby { position: relative; padding: 22px; border-radius: 24px; background: linear-gradient(160deg, var(--deck-high), var(--deck) 60%); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(6, 4, 20, .9); animation: fadeIn .7s .2s both; }
.lobbyHead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lobbyHead h2 { font: 600 15px/1.3 "MF Text", sans-serif; letter-spacing: 0; color: var(--haze); }
.lobbyPulse { width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(95, 211, 141, .6); animation: pulse 2.2s infinite; }
.lobby.isOffline .lobbyPulse { background: var(--haze); animation: none; }
.lobbyList { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lobbyRow { min-height: 54px; border-radius: 12px; background: rgba(238, 234, 246, .04); animation: tickIn .55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + .45s); }
.lobbyRow.isPlaceholder span { display: block; height: 54px; border-radius: 12px; background: linear-gradient(90deg, transparent, rgba(238,234,246,.05), transparent) 0 0 / 200% 100%; animation: shimmer 1.4s infinite linear; }
.lobbyRow button { width: 100%; min-height: 54px; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 14px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; transition: background .2s; }
.lobbyRow button:hover { background: rgba(238, 234, 246, .08); }
.lobbyDot { width: 10px; height: 10px; border-radius: 50%; background: #6c6787; }
.isOnline .lobbyDot { background: var(--live); box-shadow: 0 0 12px rgba(95, 211, 141, .7); }
.lobbyName { min-width: 0; display: grid; }
.lobbyName b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lobbyName small { color: var(--haze); font-size: 13px; }
.lobbyCount { font: 800 20px/1 "MF Display", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.lobbyCount small { color: var(--haze); font: 600 13px/1 "MF Text", sans-serif; letter-spacing: 0; }
.lobbyFoot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--haze); }
.lobbyFoot a { color: var(--moon); font-weight: 600; text-underline-offset: 4px; }

/* Versprechen. */
.promises { width: var(--page); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.promises li { padding: 16px 18px; border-radius: var(--radius-small); background: var(--deck); color: var(--haze); font-size: 15px; font-weight: 600; line-height: 1.4; }

/* Abschnitte. */
.servers, .moreGames, .about, .promiseList, .join { width: var(--page); margin: 0 auto; padding-top: clamp(80px, 11vw, 140px); }
.sectionHead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 60px; align-items: end; margin-bottom: 36px; }
.sectionHead h2 { font-size: clamp(40px, 5.2vw, 72px); }
.sectionHead p { max-width: 34em; color: var(--haze); }
.sectionHead a { color: var(--moon); text-underline-offset: 4px; }

/* Server-Kacheln. */
.tileGrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.tile { --accent: var(--coral); position: relative; isolation: isolate; grid-column: span 4; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px; overflow: hidden; border: 0; border-radius: var(--radius-tile); background: var(--deck); color: var(--moon); text-align: left; cursor: pointer; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--art) center / cover; transform: scale(1.02); transition: transform .6s var(--ease-out); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23,21,43,.05) 20%, rgba(23,21,43,.92) 88%), linear-gradient(90deg, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%); }
.tile:hover::before { transform: scale(1.07); }
/* Spielbilder. */
.tile[data-group="zomboid"] { --art: url("games/project-zomboid.webp"); }
.tile[data-group="dayz"] { --art: url("games/dayz.jpg"); }
.tile[data-group="gmod"] { --art: url("games/garrys-mod.webp"); }
.tile[data-group="minecraft"] { --art: url("games/minecraft.webp"); }
.tile[data-group="arma"] { --art: url("games/arma-3.webp"); }
.tile[data-group="valheim"] { --art: url("games/valheim.jpg"); }
.tile[data-group="enshrouded"] { --art: url("games/enshrouded.jpg"); }
.tile[data-group="barotrauma"] { --art: url("games/barotrauma.webp"); }
.tile[data-group="scp"] { --art: url("games/scp-secret-laboratory.webp"); }
.tileWide { grid-column: span 6; min-height: 380px; }
.tileSmall { grid-column: span 3; min-height: 260px; }
.tileName { font: 900 clamp(26px, 2.6vw, 40px)/1 "MF Display", sans-serif; letter-spacing: -.035em; text-shadow: 0 2px 24px rgba(0,0,0,.5); }
.tileSmall .tileName { font-size: clamp(22px, 2vw, 28px); }
.tileTag { max-width: 30em; color: #d9d5e6; font-size: 15px; line-height: 1.45; }
.tileLive { position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(23,21,43,.85); font-size: 13px; font-weight: 600; }
.tileLive::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px rgba(95,211,141,.8); }
.tileLive.isQuiet::before { background: var(--haze); box-shadow: none; }
.tileOpen { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); transition: transform .35s var(--ease-out); }
.tileOpen::before, .tileOpen::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--night); }
.tileOpen::after { transform: rotate(90deg); }
.tile:hover .tileOpen, .tile:focus-visible .tileOpen { transform: rotate(90deg) scale(1.08); }

/* Panel. */
.panel { width: min(880px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0; border-radius: 24px; background: var(--deck); color: var(--moon); overflow: hidden; }
.panel::backdrop { background: rgba(10, 8, 24, .82); animation: fadeIn .3s both; }
.panel[open] { display: flex; }
.panelInner { position: relative; width: 100%; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.panelArt { height: clamp(160px, 26vw, 260px); background: var(--art) center / cover; position: relative; }
.panelArt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--deck)), linear-gradient(90deg, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); }
.panelClose { position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(23,21,43,.88); font-size: 17px; cursor: pointer; transition: transform .2s; }
.panelClose:hover { transform: rotate(90deg); }
.panelBody { padding: 0 clamp(22px, 4vw, 44px) clamp(28px, 4vw, 44px); margin-top: -56px; position: relative; }
.panelBody h2 { font-size: clamp(36px, 5vw, 60px); }
.panelTagline { margin-top: 12px; color: #d9d5e6; font-size: 19px; line-height: 1.5; max-width: 36em; }
.panelTabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; padding: 4px; border-radius: 999px; background: var(--night); width: fit-content; max-width: 100%; }
.panelTabs button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--haze); font-size: 15px; font-weight: 600; cursor: pointer; }
.panelTabs button[aria-selected="true"] { background: var(--accent); color: var(--night); }
.panelContent { margin-top: 24px; }
.panelContent.isSwitching { animation: fadeIn .35s both; }
.panelTags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.panelTags li { padding: 4px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent); font-size: 13px; font-weight: 600; }
.panelContent > p { max-width: 40em; color: #d9d5e6; }
.panelContent > p + p { margin-top: 12px; }
.panelContent h3 { margin: 30px 0 12px; font-size: 22px; letter-spacing: -.02em; }
.panelJoin { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; padding: 16px; border-radius: 14px; background: var(--night); }
.panelJoin span { color: var(--haze); font-size: 14px; }
.panelJoin code { font: 600 17px/1.3 "MF Text", sans-serif; letter-spacing: .01em; }
.copyButton { margin-left: auto; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--deck-high); font-size: 14px; font-weight: 600; cursor: pointer; }
.copyButton.isDone { background: var(--live); color: var(--night); border-color: transparent; }
.panelLinks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.panelLinks .button { min-height: 46px; padding: 0 20px; font-size: 15px; }
.panelNote { margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: var(--night); color: var(--haze); font-size: 15px; }

/* Aufklappbare Boxen. */
.highlights, .accordion { display: grid; gap: 8px; }
.highlights details, .accordion details { border-radius: 14px; background: var(--night); overflow: hidden; }
.accordion details { background: var(--deck); }
.highlights summary, .accordion summary { position: relative; display: flex; align-items: center; min-height: 56px; padding: 14px 60px 14px 18px; font-weight: 600; cursor: pointer; list-style: none; }
.accordion summary { min-height: 76px; padding-left: 24px; font: 800 clamp(20px, 2vw, 26px)/1.2 "MF Display", sans-serif; letter-spacing: -.02em; }
.highlights summary::-webkit-details-marker, .accordion summary::-webkit-details-marker { display: none; }
.highlights summary::after, .accordion summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, transparent); transition: transform .3s var(--ease-out), background .3s; }
.highlights summary::before, .accordion summary::before { content: "+"; position: absolute; right: 18px; top: 50%; z-index: 1; width: 28px; margin-top: -14px; color: var(--accent); font: 600 20px/28px "MF Text", sans-serif; text-align: center; transition: transform .3s var(--ease-out); }
details[open] > summary::before { transform: rotate(45deg); }
details[open] > summary::after { background: color-mix(in srgb, var(--accent) 40%, transparent); }
.accordion details[open] { box-shadow: inset 4px 0 0 var(--accent); }
.highlights details > div, .accordionBody { padding: 0 18px 18px; color: #d9d5e6; }
.accordionBody { padding: 0 24px 24px; max-width: 46em; font-size: 18px; }
details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
details[open]::details-content { block-size: auto; }
:root { interpolate-size: allow-keywords; }

/* Laufband. */
.marquee { display: grid; gap: 12px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marqueeTrack { display: flex; gap: 12px; width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee 48s linear infinite; }
.marqueeReverse { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marqueeTrack { animation-play-state: paused; }
.marqueeTrack li { padding: 14px 22px; border-radius: 999px; background: var(--deck); font-weight: 600; white-space: nowrap; }
.marqueeTrack li:nth-child(4n+1) { background: color-mix(in srgb, var(--coral) 22%, var(--deck)); }
.marqueeTrack li:nth-child(5n+3) { background: color-mix(in srgb, #72a9d5 20%, var(--deck)); }

/* Über uns. */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.about h2 { font-size: clamp(40px, 5.2vw, 72px); }
.aboutLead { margin-top: 26px; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; }
.aboutText > p:not(.aboutLead) { margin-top: 18px; color: var(--haze); max-width: 36em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 36px 0 0; }
.facts div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 18px; border-radius: 14px; background: var(--deck); }
.facts dt { color: var(--haze); font-size: 14px; }
.facts dd { margin: 0; font: 900 clamp(32px, 3.4vw, 46px)/1 "MF Display", sans-serif; letter-spacing: -.04em; }
.founder { margin: 0; padding: clamp(26px, 3.4vw, 40px); border-radius: 24px; background: var(--coral); color: #1a0f0b; }
.founder blockquote { margin: 0; font: 800 clamp(22px, 2.2vw, 30px)/1.3 "MF Display", sans-serif; letter-spacing: -.02em; }
.founder figcaption { display: flex; align-items: center; gap: 14px; margin-top: 26px; font-size: 15px; }
.founder figcaption img { width: 48px; height: 48px; border-radius: 50%; background: var(--night); padding: 6px; }
.founder figcaption b { display: block; font-size: 17px; }

/* Server-Idee. */
.pitch { width: var(--page); margin: clamp(80px, 11vw, 140px) auto 0; padding: clamp(32px, 5vw, 64px); border-radius: 28px; background: #e3c65c; color: var(--night); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 60px; align-items: end; }
.pitch h2 { font-size: clamp(36px, 4.6vw, 64px); grid-row: span 2; }
.pitch p { font-size: 18px; }
.pitch .button { justify-self: start; }
.toolNote { width: var(--page); margin: 20px auto 0; color: var(--haze); }
.toolNote a { color: var(--moon); font-weight: 600; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Mitmachen. */
.join h2 { font-size: clamp(48px, 7vw, 104px); max-width: 10em; }
.steps { counter-reset: step; list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 26px; border-radius: 18px; background: var(--deck); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 36px; border-radius: 50%; background: var(--moon); color: var(--night); font: 900 18px/1 "MF Display", sans-serif; }
.steps h3 { font-size: 24px; letter-spacing: -.02em; }
.steps p { margin-top: 10px; color: var(--haze); }
.joinActions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 36px; }
.joinActions p { color: var(--haze); }
.mailLink { color: var(--moon); font-weight: 600; text-underline-offset: 4px; }

/* Responsive. */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .promises { grid-template-columns: repeat(2, 1fr); }
  .sectionHead, .about, .pitch { grid-template-columns: 1fr; }
  .pitch h2 { grid-row: auto; }
  .tile, .tileSmall { grid-column: span 6; }
  .tileWide { grid-column: span 12; min-height: 340px; }
  .steps { grid-template-columns: 1fr; }
  .steps li::before { margin-bottom: 18px; }
}
@media (max-width: 620px) {
  .promises { grid-template-columns: 1fr; }
  .tile, .tileSmall, .tileWide { grid-column: span 12; min-height: 240px; }
  .tileWide { min-height: 280px; }
  .facts { grid-template-columns: 1fr; }
  .facts div { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; }
  .panel { width: 100vw; max-height: 100dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .panelInner { max-height: 100dvh; }
  .copyButton { margin-left: 0; }
}

/* Weniger Bewegung. */
@media (prefers-reduced-motion: reduce) {
  .marqueeTrack { width: auto; flex-wrap: wrap; }
  .marqueeTrack li[aria-hidden="true"] { display: none; }
  .marquee { mask-image: none; }
}

@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
