/* Startseite: Turniere zuerst, mit den vorhandenen Marken und Medien. */
html:has(.home-layout), body:is(:has(.home-layout), :has(.team-layout), .public-layout) { overflow-x: clip; }
.home-layout { --home-gold: #f5a524; --home-muted: #b7b7bb; background: #080808; color: #fff; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) { --home-page-gutter: clamp(18px, 4vw, 96px); --home-page-width: min(1760px, calc(100% - var(--home-page-gutter) * 2)); }
.home-layout .container { width: var(--home-page-width); max-width: none; padding: 0; margin-inline: auto; }
.home-layout .btn { min-height: 48px; padding: 13px 24px; border-radius: 7px; font-size: 14px; font-weight: 700; }
.home-layout a:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.home-layout .reveal { opacity: 1; transform: none; transition: none; }
.home-match { position: relative; isolation: isolate; overflow: hidden; padding-top: 64px; background: #080808; }
/* Das Panorama hält Helm und Stadt auch im flachen Startbereich sichtbar. */
.home-match-image { position: absolute; z-index: -2; right: 0; top: 64px; width: 100%; max-width: none; height: calc(100% - 64px); object-fit: cover; object-position: center 8%; }
.home-match::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(8,8,8,.92) 5%,rgba(8,8,8,.7) 30%,rgba(8,8,8,.08) 66%),linear-gradient(0deg,#080808,transparent 22%); }
.home-match-inner { position: relative; min-height: clamp(230px, calc(100svh - 1100px), 300px); display: flex; align-items: center; }
.home-match-copy { width: min(900px, 58%); padding-block: 18px; }
.home-match h1 { font-size: clamp(36px,2.7vw,48px); line-height: 1.03; letter-spacing: -.055em; font-weight: 850; margin: 0 0 12px; text-wrap: balance; }
.home-match-sub { font-size: clamp(15px,1.1vw,16px); line-height: 1.5; color: #e0e0e2; margin-bottom: 14px; }
.home-match-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.home-match .hero-stats { display: flex; width: fit-content; max-width: 100%; justify-content: flex-start; gap: 30px; margin: 36px 0 0; padding: 0; border: 0; background: none; backdrop-filter: none; }
.home-match .hero-stat { padding: 0; flex: 0 1 auto; text-align: left; min-width: 0; border: 0; }
.home-match .hero-stat + .hero-stat { border: 0; }
.home-match .hero-stat-num { font-size: clamp(20px,2vw,25px); font-weight: 800; color: #fff; letter-spacing: -.035em; white-space: nowrap; }
.home-match .hero-stat-label { font-size: 12px; text-transform: none; letter-spacing: 0; margin-top: 5px; color: var(--home-muted); }
.home-layout .events { padding: 18px 0 32px; }
.home-layout .events-header { align-items: center; gap: 20px; margin-bottom: 20px; }
.home-layout .events-header .eyebrow { display: none; }
.home-layout .section-title, .home-community h2 { font-size: clamp(26px,2.8vw,34px); line-height: 1.12; letter-spacing: -.04em; font-weight: 800; }
.home-layout .events-header .btn { padding-inline: 0; border: 0; background: none; color: var(--home-gold); }
.home-layout .events-grid, .home-layout .events-grid--double, .home-layout .events-grid--single { display: grid; grid-template-columns: repeat(auto-fit,minmax(0,314px)); justify-content: start; gap: 22px; max-width: none; margin-inline: 0; }
.home-layout .event-card { --home-card-radius: 10px; border-color: #343025; border-radius: var(--home-card-radius); background: #111112; }
.home-layout .event-card::before { border-radius: calc(var(--home-card-radius) - 1px); }
.home-layout .event-card-img-wrap { aspect-ratio: auto; height: auto; background: #090909; border-radius: 9px 9px 0 0; }
.home-layout .event-card-img-wrap img { width: 100%; height: auto; object-fit: contain; border-radius: inherit; }
.home-layout .event-card-header { padding: 12px 18px 0; gap: 10px; flex-wrap: wrap; }
.home-layout .event-card-body { padding: 12px 18px 16px; flex: 1; display: flex; flex-direction: column; }
.home-layout .event-name { font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.home-layout .event-date { font-size: 13px; color: #d2d2d5; }
.home-layout .event-meta { gap: 14px; margin-bottom: auto; }
.home-layout .meta-value { font-size: 14px; }
.home-layout .event-cta-stack { margin-top: 12px; }
.home-layout .event-cta { min-height: 46px; }
.home-layout .event-cta-row { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; }
.home-layout .event-cta-row > .event-cta { flex: 1 1 0; min-width: 0; width: auto; padding-inline: 12px; font-size: 12px; }
.home-layout .event-status { font-size: 11px; }
.home-layout .events-empty { grid-column: 1/-1; border: 1px solid #333027; border-radius: 10px; padding: 30px; color: #d0d0d4; }
.home-partners { padding: 0 0 10px; background: #080808; }
.home-partners .partner-strip { max-width: none; width: 100%; display: grid; grid-template-columns: minmax(0,1fr); align-items: stretch; padding: 16px 0 20px; border: 0; border-bottom: 1px solid #252525; border-radius: 0; background: none; backdrop-filter: none; margin: 0; gap: 20px; }
.home-partners .partner-eyebrow { text-transform: none; letter-spacing: 0; font-size: 17px; color: #fff; margin: 0; }
.home-partners .partner-sub { display: none; }
.home-partners .partner-logos { grid-template-columns: repeat(var(--partner-count,4),minmax(0,1fr)); gap: 12px; }
.home-partners .partner-item { border: 0; border-radius: 0; background: none; min-height: 84px; padding: 6px 16px; }
.home-partners .partner-item + .partner-item { border-left: 1px solid #2d2d2d; }
.home-partners .partner-item img { max-width: min(100%,260px); max-height: 64px; filter: none; opacity: 1; }
.home-partners .partner-item[aria-label="Nyfter" i] img { max-width: min(100%,280px); max-height: 76px; }
.home-community { padding: 12px 0 18px; }
.home-community h2 { margin: 0 0 22px; }
.home-community-grid { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 32px; }
.home-lan { position: relative; display: block; overflow: hidden; border: 1px solid #353026; border-radius: 10px; background: #171512; min-height: 210px; aspect-ratio: 2.1; color: #fff; }
.home-lan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.home-lan-caption { position: absolute; bottom: 0; inset-inline: 0; display: flex; align-items: end; justify-content: space-between; padding: 60px 24px 22px; gap: 14px; background: linear-gradient(transparent,rgba(0,0,0,.95)); }
.home-lan-caption strong { font-size: 23px; }
.home-lan-caption > span { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #f4bf63; }
.home-community-copy > p { font-size: 16px; line-height: 1.6; color: #c8c8cc; margin: 0 0 18px; max-width: 48ch; }
.home-community-copy > .btn { margin-top: 6px; }
.home-modes { margin-top: 26px; }
.home-modes > span { display: block; font-size: 12px; color: var(--home-muted); margin-bottom: 12px; }
.home-modes .featured-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.home-modes .mode-chip { font-size: 11px; }
.home-features { padding: 0 0 24px; }
.home-feature-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; }
.home-feature-grid > .bcard { grid-area: auto !important; padding: 24px; min-height: 0; background: #111112 !important; border-radius: 10px; }
.home-feature-grid .format-list { width: 100% !important; }
.home-feature-grid .format-item { padding: 10px 0; background: none; border: 0; gap: 10px; }
.home-feature-grid .format-freq { font-size: 10px; white-space: normal; text-align: right; }
.home-feature-grid .format-desc { font-size: 11px; }
.home-feature-grid .format-icon { width: 26px; min-width: 26px; height: 26px; font-size: 13px; }
.home-feature-grid .activity-desc { font-size: 14px; color: #bebec4; }
.home-feature-grid .activity-title { font-size: 24px; }
.home-feature-grid .tiers-chips { margin-bottom: 14px; }
.home-layout .dev-promo { padding: 6px 0 38px; }
.home-layout .dev-promo-panel { min-height: 200px; border: 1px solid #4f3c1e; border-radius: 10px; background: linear-gradient(110deg,#16120d,#0e0e0f); padding: 24px 30px; display: grid; grid-template-columns: 1fr 230px; align-items: center; }
.home-layout .dev-promo-copy { padding: 0; }
.home-layout .dev-promo-eyebrow { color: var(--home-gold); font-size: 12px; margin-bottom: 10px; }
.home-layout .dev-promo-eyebrow span { background: var(--home-gold); }
.home-layout #dev-promo-title { font-size: clamp(25px,2.7vw,32px); margin-bottom: 14px; }
.home-layout .dev-promo-text { font-size: 14px; line-height: 1.6; max-width: 66ch; margin-bottom: 18px; }
.home-layout .dev-promo-cta { min-height: 46px; border-radius: 7px; background: var(--home-gold); color: #080808; padding: 12px 20px; }
.home-layout .dev-promo-visual { min-height: 170px; height: 170px; }
.home-layout .dev-promo-visual img { position: static; width: 100%; max-width: 240px; height: 170px; object-fit: contain; transform: none; }
.home-layout .dev-promo-orbit { display: none; }
@media (max-width: 1000px) {
  .home-layout .container { width: var(--home-page-width); }
  .home-match-copy { width: 70%; }
  .home-match-inner { min-height: 0; }
  .home-match .hero-stats { gap: 20px; }
  .home-community-grid { gap: 30px; }
  .home-feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-feature-grid .bcard-formats { grid-column: 1/-1 !important; }
}
@media (max-width: 640px) {
  .home-layout .container { width: var(--home-page-width); }
  .home-match { padding-top: 72px; }
  .home-match-inner { min-height: 0; }
  .home-match-copy { width: 100%; padding: 24px 0 20px; }
  .home-match h1 { font-size: clamp(33px,9vw,44px); }
  .home-match-image { right: 0; top: 72px; width: 100%; height: calc(100% - 72px); object-fit: cover; object-position: 82% center; opacity: .85; }
  .home-match::before { background: linear-gradient(90deg,rgba(8,8,8,.85),rgba(8,8,8,.16)),linear-gradient(0deg,#080808,transparent 65%); }
  .home-match-actions { gap: 10px; }
  .home-match-actions .btn { padding-inline: 16px; font-size: 12px; }
  .home-match .hero-stats { margin-top: 22px; gap: 12px; justify-content: space-between; flex-direction: row; }
  .home-match .hero-stat-num { font-size: 22px; }
  .home-match .hero-stat-label { font-size: 10px; white-space: normal; }
  .home-layout .events { padding-top: 28px; padding-bottom: 28px; }
  .home-layout .events-header { align-items: start; gap: 12px; }
  .home-layout .events-header .section-title { font-size: 28px; max-width: 8em; }
  .home-layout .events-header .btn { font-size: 12px; white-space: nowrap; padding-top: 4px; }
  .home-layout .events-header .btn svg { width: 14px; }
  .home-layout .events-grid, .home-layout .events-grid--double, .home-layout .events-grid--single { grid-template-columns: minmax(0,1fr); max-width: 314px; margin-inline: auto; }
  .home-partners { padding-bottom: 0; }
  .home-partners .partner-strip { grid-template-columns: minmax(0,1fr); gap: 10px; padding-block: 14px; }
  .home-partners .partner-logos { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .home-partners .partner-item { padding-inline: 12px; }
  .home-partners .partner-item + .partner-item { border: 0; }
  .home-partners .partner-item { min-height: 64px; }
  .home-partners .partner-item img { max-height: 52px; max-width: 100%; }
  .home-partners .partner-item[aria-label="Nyfter" i] img { max-height: 60px; max-width: 100%; }
  .home-community { padding-top: 20px; }
  .home-community-grid { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .home-lan { min-height: 200px; }
  .home-community-copy > p { font-size: 15px; }
  .home-feature-grid { grid-template-columns: minmax(0,1fr); }
  .home-feature-grid > .bcard { padding: 22px; }
  .home-layout .dev-promo-panel { grid-template-columns: 1fr; padding: 26px; }
  .home-layout .dev-promo-visual { display: none; }
  .home-layout .dev-promo { padding-bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-layout *, .home-layout *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Die Proportionen und Goldakzente des freigegebenen Entwurfs. */
.home-match h1 span { color: var(--home-gold); }
.home-layout .btn-ghost { border: 1px solid #a97924; background: rgba(8,8,8,.6); color: #fff; }
.home-match .hero-stat { display: grid; grid-template-columns: 27px auto; column-gap: 12px; align-items: center; }
.home-stat-icon { grid-row: 1/3; color: var(--home-gold); }
.home-match .hero-stat-num, .home-match .hero-stat-label { grid-column: 2; }
.home-match .hero-stat-label { margin-top: 2px; }
.home-layout .event-card { border-color: #4c391f; }
.home-layout .event-card-header { position: static; border-bottom: 0; }
.home-layout .event-type { background: none; border: 0; border-radius: 0; padding: 0; color: #d7d7d9; font-size: 11px; }
.home-layout .home-event-status { position: absolute; top: 12px; left: 12px; border-radius: 4px; padding: 5px 9px; background: #393124; color: #fff; z-index: 2; }
.home-layout .home-event-status--open { background: #208747; }
.home-layout .home-event-status .live-dot, .home-layout .home-event-status .soon-dot { display: none; }
.home-layout .event-name { margin-bottom: 10px; }
.home-layout .event-date { margin-bottom: 14px; }
.home-layout .event-cta-stack { margin-top: 0; gap: 8px; }
.home-layout .event-cta-row--primary > .event-cta { flex: 1 1 100%; width: 100%; }
.home-layout .event-cta-row--more > .event-cta { background: none; border-color: #37322b; color: #d7b777; }
.home-event-info { margin-top: 12px; border-top: 1px solid #282521; padding-top: 10px; }
.home-event-info summary { cursor: pointer; font-size: 12px; color: #b5b5bb; min-height: 28px; }
.home-event-info .event-meta { margin-block: 12px 0; }
.home-partners .partner-meta { display: flex; align-items: center; gap: 20px; }
.home-partners .partner-meta::after { content: ''; height: 1px; flex: 1; background: #5d4423; }
.home-partners .partner-item img { filter: none; opacity: 1; }
.home-partners .partner-item:hover img { filter: none; opacity: 1; }
.home-layout .dev-promo-panel::before, .home-layout .dev-promo-panel::after { display: none; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav { background: rgba(8,8,8,.88); border-bottom: 1px solid #27221b; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav-inner { max-width: 1040px; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav-links > li > .nav-active { color: #f5a524; text-decoration: underline; text-underline-offset: 12px; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .footer { padding: 28px 0 20px; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .footer .container { max-width: 1040px; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .footer-inner { grid-template-columns: 1.2fr 1.4fr .7fr .7fr; gap: 24px; margin-bottom: 20px; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .footer-brand > p { display: none; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .footer-logo { margin-bottom: 12px; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .footer-col h4 { margin-bottom: 10px; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .footer-col ul { gap: 6px; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .footer-col ul li a { font-size: 12px; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .footer-bottom { padding-top: 16px; }
@media (max-width: 640px) {
  .home-match .hero-stat { grid-template-columns: auto; }
  .home-stat-icon { display: none; }
  .home-match .hero-stat-num, .home-match .hero-stat-label { grid-column: 1; }
  .home-layout .dev-promo-panel { grid-template-columns: 1fr 96px; padding: 22px; gap: 14px; }
  .home-layout .dev-promo-visual { display: block; height: 120px; min-height: 120px; }
  .home-layout .dev-promo-visual img { height: 120px; }
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .footer-inner { grid-template-columns: 1fr 1fr; }
}

.home-layout .event-cta-row:has(> .btn-primary) > .btn-primary { flex-basis: 100%; width: 100%; }
@media (min-width: 1101px) {
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav { padding-inline: 0; }
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav-inner { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: clamp(20px,2vw,40px); width: var(--home-page-width); max-width: none; padding-inline: 0; margin-inline: auto; }
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .public-mobile-drawer, body:is(:has(.home-layout), :has(.team-layout), .public-layout) .public-mobile-drawer-scroll { display: contents; }
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-links { position: static; transform: none; justify-content: center; gap: clamp(18px,1.8vw,36px); }
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-links a { font-size: 14px; white-space: nowrap; }
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav-actions { gap: 22px; }
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav-quicklinks { display: none; }
}

.home-community-media { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.home-community-media .home-lan { aspect-ratio: 1.45; min-height: 190px; }
.home-community-media .home-lan:only-child { grid-column: 1/-1; aspect-ratio: 2.1; }
.home-community-media .home-lan-caption { padding: 50px 14px 14px; display: block; }
.home-community-media .home-lan-caption strong { font-size: 17px; }
.home-community-media .home-lan-caption > span { margin-top: 4px; font-size: 10px; }
.home-discord-visual img { object-fit: cover; object-position: center 30%; }
@media (max-width: 640px) {
  .home-community-media { gap: 10px; }
  .home-community-media .home-lan { min-height: 160px; }
}

.home-layout .event-card:not(:has(.event-card-img-wrap)) .home-event-status { position: static; }

.home-community-media, .home-community-grid > * { min-width: 0; }
.home-community-media .home-lan { min-width: 0; width: 100%; }
.home-community-media .home-lan-caption { overflow-wrap: anywhere; }

body:is(:has(.home-layout), :has(.team-layout), .public-layout) .home-footer .container { width: var(--home-page-width); max-width: none; padding: 0; margin-inline: auto; }
.home-footer-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.home-footer .footer-logo { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; margin: 0; }
.home-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
.home-footer-links a { font-size: 11px; color: #c1c1c6; }
.home-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 18px; }
.home-footer .footer-copy, .home-footer .footer-legal a, .home-footer .footer-legal button { font-size: 11px; }
.home-footer .footer-legal { flex-wrap: wrap; gap: 14px; }
@media (max-width: 800px) {
  .home-footer-main { grid-template-columns: 1fr auto; gap: 20px; }
  .home-footer-links { grid-column: 1/-1; grid-row: 2; justify-content: flex-start; }
  .home-footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .home-footer .container { width: calc(100% - 36px); }
  .home-footer-main { gap: 14px; }
  .home-footer .footer-logo { font-size: 13px; }
  .home-footer .social-btn { width: 28px; height: 28px; }
  .home-footer .footer-socials { gap: 6px; }
}

.home-layout .event-cta-stack { display: flex; flex-direction: column; align-items: stretch; }
.home-layout .event-cta-row { width: 100%; }

/* Blank Dev: großes Maskottchen und Hintergrund aus der freigegebenen Vorlage. */
.home-layout .dev-promo-panel { display: block; position: relative; isolation: isolate; overflow: hidden; min-height: 226px; padding: 24px 32px; background: #100e0b; border-color: #856326; border-radius: 7px; }
.home-layout .dev-promo-copy { position: relative; z-index: 2; width: 54%; }
.home-layout .dev-promo-eyebrow { letter-spacing: 0; margin-bottom: 8px; }
.home-layout .dev-promo-eyebrow > span { display: none; }
.home-layout #dev-promo-title { margin: 0 0 10px; font-size: clamp(26px,2.8vw,34px); line-height: 1.1; }
.home-layout .dev-promo-text { margin: 0 0 18px; max-width: 44ch; color: #dedee2; font-size: 15px; line-height: 1.4; }
.home-layout .dev-promo-cta { min-height: 42px; padding: 10px 22px; font-size: 13px; }
.home-layout .dev-promo-visual { position: absolute; inset: 0; display: block; height: 100%; min-height: 0; pointer-events: none; z-index: 0; }
.home-layout .dev-promo-visual img.dev-promo-art { display: block; position: absolute; inset: auto 0 0 auto; width: 78%; max-width: none; height: 100%; object-fit: cover; object-position: right center; transform: none; mix-blend-mode: normal; opacity: 1; filter: none; }
@media (max-width: 640px) {
  .home-layout .dev-promo-panel { min-height: 400px; padding: 24px; }
  .home-layout .dev-promo-copy { width: 100%; }
  .home-layout .dev-promo-text { max-width: 28ch; }
  .home-layout .dev-promo-visual { inset: auto 0 0; height: 190px; }
  .home-layout .dev-promo-visual img.dev-promo-art { width: 100%; height: 100%; object-position: right bottom; }
}

.home-layout .dev-promo-visual img.dev-promo-art { -webkit-mask-image: linear-gradient(to right,transparent,#000 18%); mask-image: linear-gradient(to right,transparent,#000 18%); }

/* Auf breiten Bildschirmen bleiben Logo, Inhalt und Account gleich ausgerichtet. */
@media (min-width: 1280px) {
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-logo-text { display: block !important; }
}
@media (min-width: 1101px) and (max-width: 1279px) {
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-links { gap: 16px; }
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav-actions { gap: 12px; }
}

/* Navigation aus der Vorlage mit bestehendem Logo und ruhigen Konturen. */
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav { background: rgba(8,8,8,.82); border-bottom: 1px solid #29261f; backdrop-filter: blur(12px); }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav-logo { gap: 10px; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav-logo-text { font-size: 18px; font-weight: 800; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-links a.nav-active { color: #f5ba42 !important; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-links a.nav-active::after { background: #f5ba42; height: 2px; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-profile-login { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; padding: 7px 17px; border: 1px solid #bd8b29; border-radius: 7px; background: rgba(255,255,255,.03); color: #fff; box-shadow: none; font-size: 13px; font-weight: 600; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-profile-login[hidden] { display: none !important; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-profile-login:hover { background: rgba(245,186,66,.12); border-color: #f5ba42; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .home-nav-language { position: relative; padding: 0; background: none; border: 0; border-radius: 0; }
.home-nav-language > summary { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 5px; color: #eee; font-size: 13px; cursor: pointer; list-style: none; }
.home-nav-language > summary::-webkit-details-marker { display: none; }
.home-nav-language .home-lang-en { display: none; }
.home-nav-language:has(.rw-lang-btn.active[data-lang="en"]) .home-lang-de { display: none; }
.home-nav-language:has(.rw-lang-btn.active[data-lang="en"]) .home-lang-en { display: inline; }
.home-language-options { position: absolute; right: 0; top: calc(100% + 8px); min-width: 100px; padding: 6px; background: #151515; border: 1px solid #514129; border-radius: 6px; box-shadow: 0 8px 24px #0008; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .home-language-options .rw-lang-btn { display: block; width: 100%; padding: 9px 16px; border-radius: 4px; background: transparent; color: #ddd; text-align: left; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .home-language-options .rw-lang-btn.active { background: #f5ba4222; color: #f5ba42; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav a:focus-visible, .home-nav-language summary:focus-visible { outline: 2px solid #f5ba42; outline-offset: 4px; }
@media (min-width: 1101px) {
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-links { gap: clamp(24px,2.5vw,48px); }
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-links a { font-size: 14px; color: #e0e0e2; font-weight: 550; }
}
@media (max-width: 1100px) {
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-logo-text { display: block !important; font-size: 15px; }
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .public-mobile-drawer .home-language-options { position: static; margin-top: 6px; }
}

/* Account-Schnellzugriff und Warzone-Menü im gemeinsamen Navigationsstil. */
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-profile-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 16px;
  border: 1px solid #bd8b29; border-radius: 7px; background: #ffffff08; color: #fff;
  box-shadow: none; font-size: 13px; font-weight: 600;
}
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-profile-toggle:hover,
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-profile-menu.open > .nav-profile-toggle { border-color: #f5ba42; background: #f5ba4214; transform: none; }
body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-profile-avatar { width: 24px; height: 24px; border: 1px solid #665026; }
@media (min-width: 1101px) {
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-dropdown {
    min-width: 228px; padding: 8px; background: #111112; border: 1px solid #514129;
    border-radius: 8px; box-shadow: 0 16px 40px #0008; backdrop-filter: none; transition: none;
  }
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-dropdown::before { display: none; }
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-dropdown a {
    min-height: 46px; padding: 10px 13px !important; gap: 12px; border-radius: 5px;
    color: #dedee2 !important; font-size: 14px !important; font-weight: 550 !important;
  }
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-dropdown a:hover,
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-dropdown a:focus-visible { color: #f5ba42 !important; background: #f5ba4214; }
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-dropdown .dropdown-icon {
    width: 24px; height: 24px; border: 0; background: none; border-radius: 0; color: #f5ba42;
  }
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-dropdown .dropdown-icon svg { width: 19px; height: 19px; }
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-dropdown a[data-auth-action="logout"] { margin-top: 6px; border-top: 1px solid #393126; border-radius: 0 0 5px 5px; }
  body:is(:has(.home-layout), :has(.team-layout), .public-layout) .nav .nav-dropdown .dropdown-icon.is-logout { color: #e7a17a; }
}

/* Gleiche Bildflächen auch bei Turnierplakaten im Hochformat. */
.home-layout .event-card-img-wrap { aspect-ratio: 1; height: auto; }
.home-layout .event-card-img-wrap img { width: 100%; height: 100%; object-fit: contain; }

/* Auf breiten Bildschirmen teilen sich Einstieg und Kennzahlen die vorhandene Höhe. */
@media (min-width: 1101px) {
  .home-match .hero-stats { position: absolute; right: 0; bottom: 28px; margin: 0; gap: clamp(18px,2vw,36px); text-shadow: 0 2px 12px #000; }
}
@media (min-width: 1101px) and (max-width: 1399px) {
  .home-match .hero-stats { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .home-match-copy { width: 76%; }
  .home-match .hero-stats { margin-top: 22px; }
  .home-partners .partner-strip { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .home-partners .partner-item { padding-inline: 10px; }
}
@media (min-width: 1101px) and (max-height: 950px) {
  .home-match-inner { min-height: 240px; }
  .home-match-copy { padding-block: 18px; }
  .home-match h1 { font-size: clamp(34px,2.7vw,46px); }
  .home-match-sub { font-size: 15px; margin-bottom: 14px; }
  .home-layout .events-grid, .home-layout .events-grid--double, .home-layout .events-grid--single { grid-template-columns: repeat(auto-fit,minmax(0,280px)); }
  .home-layout .events-header { margin-bottom: 14px; }
}
