@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/bebas-neue-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --page: #01050d;
  --panel: #040b18;
  --panel-strong: #071329;
  --blue: #286be8;
  --blue-bright: #65a2ff;
  --silver: #cbd4e3;
  --white: #f7f9fc;
  --muted: #aab6c9;
  --line: rgba(154, 177, 213, 0.24);
  --frame: 76rem;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    linear-gradient(rgba(7, 18, 38, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 18, 38, 0.4) 1px, transparent 1px),
    #01050d;
  background-size: 5rem 5rem;
  font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  letter-spacing: 0;
}

button,
input,
select,
textarea,
optgroup {
  font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 15%, rgba(39, 105, 232, 0.12), transparent 34rem),
    linear-gradient(180deg, rgba(1, 5, 13, 0.3), #01050d 70%);
  content: "";
  pointer-events: none;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  color: #00112d;
  background: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-frame {
  width: min(calc(100% - 2rem), var(--frame));
  margin: 1.5rem auto 7rem;
  overflow: clip;
  border: 1px solid rgba(187, 203, 228, 0.35);
  border-radius: 0.45rem;
  background: rgba(2, 7, 17, 0.96);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.42);
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 8, 19, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 5rem;
  padding: 0.7rem 2.25rem;
  gap: 1.5rem;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  min-width: 11rem;
  gap: 0.65rem;
  color: var(--white);
  font-size: 1.08rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.home-brand img {
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid rgba(101, 162, 255, 0.4);
  border-radius: 0.25rem;
  object-fit: contain;
  background: #020814;
}

.home-brand span {
  display: grid;
}

.home-brand strong {
  font-size: 1.25rem;
}

.home-brand span::after {
  color: var(--blue-bright);
  font-size: 0.9rem;
  content: "ESV Freimann";
}

.site-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 1.25rem;
}

.site-navigation a {
  position: relative;
  padding: 0.75rem 0;
  color: var(--silver);
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-navigation a::after {
  position: absolute;
  right: 0;
  bottom: 0.45rem;
  left: 0;
  height: 1px;
  background: var(--blue-bright);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-navigation a:hover,
.site-navigation a:focus-visible {
  color: var(--white);
}

.site-navigation a:hover::after,
.site-navigation a:focus-visible::after {
  transform: scaleX(1);
}

.site-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  color: var(--white);
  background: #07132a;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  gap: 0.55rem;
  cursor: pointer;
}

.nav-toggle-icon {
  display: grid;
  width: 1.15rem;
  gap: 0.22rem;
}

.nav-toggle-icon i {
  height: 1px;
  background: currentColor;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid rgba(124, 172, 255, 0.7);
  border-radius: 0.25rem;
  color: #fff;
  background: linear-gradient(135deg, #0e2d69, #245fd5);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.15), 0 0.8rem 2rem rgba(5, 45, 120, 0.25);
  font-size: 1.125rem;
  font-weight: 800;
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.button:hover {
  border-color: #fff;
  background: linear-gradient(135deg, #17428f, #3478f1);
  transform: translateY(-2px);
}

.button-small {
  min-height: 2.65rem;
  padding: 0.65rem 1.05rem;
}

.button-outline {
  border-color: rgba(101, 162, 255, 0.7);
  background: rgba(5, 18, 43, 0.72);
  box-shadow: none;
}

.header-cta {
  min-width: 7.5rem;
}

.home-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 35rem;
  overflow: hidden;
  background-color: #020814;
  background-image:
    linear-gradient(90deg, #020814 0%, #020814 42%, rgba(2, 8, 20, 0.82) 58%, rgba(2, 8, 20, 0.08) 82%),
    url("/zodiac-allstars-gesamt.svg");
  background-position: center, 86% center;
  background-repeat: no-repeat;
  background-size: cover, auto 92%;
  isolation: isolate;
}

.home-hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(101, 162, 255, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 72%, rgba(203, 212, 227, 0.45) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 24%, rgba(101, 162, 255, 0.35) 0 1px, transparent 2px);
  background-size: 11rem 11rem, 15rem 15rem, 19rem 19rem;
  content: "";
}

.home-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 10rem;
  background: linear-gradient(transparent, rgba(1, 6, 15, 0.94) 78%, #020814);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(35rem, 54%);
  padding: 5.5rem 3.5rem 6.5rem;
}

.section-kicker {
  margin: 0 0 0.7rem;
  color: var(--blue-bright);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 32rem;
  margin: 0;
  color: var(--white);
  font-size: 3.75rem;
  line-height: 1.08;
  text-transform: uppercase;
}

h1 span,
h2 span {
  color: var(--blue-bright);
}

.hero-subtitle {
  margin: 1.5rem 0 2rem;
  color: var(--silver);
  font-size: 1.15rem;
  font-weight: 600;
}

.values-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5, 16, 35, 0.96), rgba(2, 8, 19, 0.98));
}

.value-item {
  display: grid;
  grid-template-columns: 2.9rem 1fr;
  min-width: 0;
  padding: 1.65rem 1.5rem;
  gap: 0.9rem;
}

.value-item + .value-item {
  border-left: 1px solid var(--line);
}

.value-item svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: none;
  stroke: var(--blue-bright);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.value-item h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.value-item p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.teams-section {
  display: grid;
  grid-template-columns: minmax(14rem, 0.75fr) minmax(0, 2fr);
  align-items: center;
  padding: 5rem 3.5rem;
  gap: 3rem;
  background:
    linear-gradient(90deg, rgba(13, 39, 83, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(13, 39, 83, 0.16) 1px, transparent 1px),
    #020815;
  background-size: 3rem 3rem;
}

.teams-intro h2,
.about-copy h2 {
  margin: 0 0 1.15rem;
  color: var(--white);
  font-size: 2.45rem;
  line-height: 1.08;
  text-transform: uppercase;
}

.teams-intro > p:not(.section-kicker),
.about-copy > p:not(.section-kicker) {
  max-width: 28rem;
  margin: 0 0 1.7rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  min-height: 15rem;
  overflow: hidden;
  padding: 1.15rem;
  border: 1px solid rgba(126, 157, 204, 0.33);
  border-radius: 0.35rem;
  background-color: #07152d;
  background-image:
    linear-gradient(180deg, rgba(3, 13, 31, 0.04), rgba(1, 6, 15, 0.94) 82%),
    radial-gradient(circle at 72% 24%, rgba(101, 162, 255, 0.42), transparent 34%),
    linear-gradient(145deg, #0b2350, #030a18 72%);
  transition: border-color 180ms ease, transform 180ms ease;
}

.team-card:hover,
.team-card:focus-visible {
  border-color: var(--blue-bright);
  transform: translateY(-4px);
}

.team-card-1 { background-color: #071a35; }
.team-card-2 { background-color: #0b1733; }
.team-card-3 { background-color: #07172d; }
.team-card-4 { background-color: #0a1530; }
.team-card-5 { background-color: #061832; }
.team-card-6 { background-color: #0b1730; }

.team-symbol {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--blue-bright);
  font-size: 1.8rem;
}

.team-card strong {
  overflow-wrap: anywhere;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.team-card small {
  margin-top: 0.25rem;
  color: var(--silver);
  font-size: 0.95rem;
}

.team-arrow {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  color: var(--blue-bright);
  font-size: 1.2rem;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.8fr) minmax(15rem, 0.9fr);
  align-items: center;
  padding: 4.5rem 3.5rem;
  border-top: 1px solid var(--line);
  gap: 2.5rem;
  background: #030a18;
}

.about-mark {
  display: grid;
  place-items: center;
}

.about-mark img {
  width: auto;
  max-width: 100%;
  height: 19rem;
  aspect-ratio: auto;
  border-radius: 0.35rem;
  object-fit: contain;
  box-shadow: 0 0 3rem rgba(37, 103, 226, 0.2);
}

.tryout-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 17rem;
  padding: 1.6rem;
  border: 1px solid rgba(101, 162, 255, 0.55);
  border-radius: 0.35rem;
  background: linear-gradient(145deg, rgba(20, 57, 124, 0.6), rgba(3, 11, 27, 0.95));
}

.tryout-panel > p {
  margin: 0 0 0.65rem;
  padding: 0.35rem 0.65rem;
  color: #fff;
  background: #2459bf;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tryout-panel h2 {
  margin: 0;
  color: var(--white);
  font-size: 1.8rem;
  text-transform: uppercase;
}

.tryout-panel strong {
  margin: 0.3rem 0 0.85rem;
  color: var(--blue-bright);
  font-size: 2.15rem;
  line-height: 1;
}

.tryout-panel > span {
  margin-bottom: 1.25rem;
  color: var(--silver);
  font-size: 1.05rem;
  line-height: 1.55;
}

.tryout-panel .button {
  margin-top: auto;
}

.home-footer {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  padding: 3.2rem 3.5rem 2rem;
  border-top: 1px solid var(--line);
  gap: 2rem;
  background: #010611;
}

.home-footer h2,
.footer-brand strong {
  display: block;
  margin: 0 0 0.8rem;
  color: var(--silver);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.footer-brand strong {
  color: var(--white);
  font-size: 1.2rem;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.home-footer > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-footer a {
  padding: 0.25rem 0;
  color: var(--muted);
  font-size: 1rem;
}

.home-footer a:hover,
.home-footer a:focus-visible {
  color: var(--blue-bright);
}

.footer-bottom {
  grid-column: 1 / -1;
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: #8491a6;
  font-size: 0.9rem;
  text-align: center;
}

.esv-corner-logo {
  position: fixed;
  bottom: 0.8rem;
  left: 0.8rem;
  z-index: 100;
  display: block;
  width: 4.25rem;
  filter: drop-shadow(0 0.45rem 0.8rem rgba(0, 0, 0, 0.55));
}

.esv-corner-logo img {
  width: 100%;
  height: auto;
}

.zodiac-social-icons {
  position: fixed;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 100;
  display: flex;
  gap: 0.45rem;
}

.zodiac-social-icon {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid rgba(235, 241, 250, 0.75);
  border-radius: 50%;
  color: #f5f7fb;
  background: linear-gradient(145deg, rgba(23, 73, 166, 0.95), rgba(205, 214, 229, 0.76));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0.5rem 1.2rem rgba(0, 0, 0, 0.45);
}

.zodiac-social-icon:hover {
  background: linear-gradient(145deg, #2d74e4, #eef2f8);
  transform: translateY(-2px);
}

.zodiac-social-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.social-tiktok svg,
.social-facebook svg {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 70rem) {
  .header-inner {
    padding-inline: 1.5rem;
    gap: 1rem;
  }

  .site-navigation {
    gap: 0.85rem;
  }

  .site-navigation a {
    font-size: 1.05rem;
  }

  .hero-copy {
    padding-inline: 2.5rem;
  }

  .hero-copy h1 {
    font-size: 3.2rem;
  }

  .value-item {
    grid-template-columns: 2.3rem 1fr;
    padding-inline: 1rem;
  }

  .value-item svg {
    width: 2rem;
    height: 2rem;
  }

  .teams-section,
  .about-section,
  .home-footer {
    padding-inline: 2.5rem;
  }
}

@media (max-width: 61.25rem) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 1.5rem;
    display: none;
    width: min(22rem, calc(100vw - 3rem));
    padding: 0.65rem;
    border: 1px solid rgba(154, 177, 213, 0.5);
    border-radius: 0.35rem;
    background: rgba(2, 8, 20, 0.99);
    box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.55);
  }

  .site-navigation.is-open {
    display: grid;
  }

  .site-navigation a {
    padding: 0.85rem 0.8rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.2rem;
  }

  .site-navigation a:last-child {
    border-bottom: 0;
  }

  .site-navigation a::after {
    display: none;
  }

  .values-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-item:nth-child(3) {
    border-left: 0;
  }

  .value-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .teams-section {
    grid-template-columns: 1fr;
  }

  .about-section {
    grid-template-columns: 1fr 0.75fr;
  }

  .tryout-panel {
    grid-column: 1 / -1;
    min-height: 0;
  }
}

@media (max-width: 46rem) {
  .site-frame {
    width: 100%;
    margin-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .header-inner {
    min-height: 4.35rem;
    padding-inline: 1rem;
  }

  .home-brand {
    min-width: 0;
  }

  .home-brand span {
    display: none;
  }

  .home-brand img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .site-nav-toggle {
    grid-column: 2;
  }

  .header-cta {
    min-width: auto;
    padding-inline: 0.8rem;
    font-size: 1.125rem;
  }

  .site-navigation {
    right: 1rem;
    width: min(22rem, calc(100vw - 2rem));
  }

  .home-hero {
    min-height: 33rem;
    background-position: center, 100% center;
    background-size: cover, auto 58%;
  }

  .home-hero::before {
    background:
      linear-gradient(90deg, #020814 0%, rgba(2, 8, 20, 0.96) 62%, rgba(2, 8, 20, 0.38)),
      radial-gradient(circle at 18% 22%, rgba(101, 162, 255, 0.5) 0 1px, transparent 2px);
    background-size: cover, 10rem 10rem;
  }

  .hero-copy {
    width: 100%;
    padding: 4.5rem 1.5rem 6rem;
  }

  .hero-copy h1 {
    max-width: 21rem;
    font-size: 2.55rem;
  }

  .hero-subtitle {
    max-width: 19rem;
  }

  .values-section {
    grid-template-columns: 1fr;
  }

  .value-item,
  .value-item:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .value-item:first-child {
    border-top: 0;
  }

  .teams-section,
  .about-section,
  .home-footer {
    padding-inline: 1.25rem;
  }

  .teams-section {
    padding-block: 3.75rem;
    gap: 2rem;
  }

  .teams-intro h2,
  .about-copy h2 {
    font-size: 2rem;
  }

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

  .team-card {
    min-height: 12rem;
    padding: 0.9rem;
  }

  .team-card strong {
    padding-right: 1.25rem;
    font-size: 0.95rem;
  }

  .team-arrow {
    right: 0.8rem;
    bottom: 0.8rem;
  }

  .about-section {
    grid-template-columns: 1fr;
    padding-block: 3.75rem;
  }

  .about-mark {
    order: -1;
  }

  .about-mark img {
    width: auto;
    height: 14rem;
  }

  .home-footer {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 2.75rem;
  }

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

  .footer-bottom {
    font-size: 0.9rem;
  }

  .esv-corner-logo {
    width: 3rem;
  }

  .zodiac-social-icon {
    width: 2.35rem;
    height: 2.35rem;
  }

  .zodiac-social-icon svg {
    width: 1.15rem;
    height: 1.15rem;
  }
}

@media (max-width: 24rem) {
  .header-cta {
    display: none;
  }

  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .team-grid,
  .home-footer {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-bottom {
    grid-column: auto;
  }
}

/* Bebas Neue is narrow by design, so these larger sizes preserve legibility. */
body {
  font-size: 1.3125rem;
  line-height: 1.65;
}

button,
input,
select,
textarea,
optgroup {
  font-size: 1.25rem;
}

.home-brand {
  font-size: 1.2rem;
}

.home-brand strong {
  font-size: 1.4rem;
}

.home-brand span::after {
  font-size: 1.05rem;
}

.site-navigation a {
  font-size: 1.3rem;
}

.site-nav-toggle,
.button {
  font-size: 1.25rem;
}

.section-kicker {
  font-size: 1.15rem;
}

.hero-copy h1 {
  font-size: 4rem;
}

.hero-subtitle {
  font-size: 1.35rem;
  line-height: 1.55;
}

.value-item h2 {
  font-size: 1.4rem;
}

.value-item p {
  font-size: 1.25rem;
  line-height: 1.6;
}

.teams-intro h2,
.about-copy h2 {
  font-size: 2.7rem;
}

.teams-intro > p:not(.section-kicker),
.about-copy > p:not(.section-kicker) {
  font-size: 1.3rem;
  line-height: 1.7;
}

.team-card strong {
  font-size: 1.35rem;
}

.team-card small {
  font-size: 1.15rem;
}

.tryout-panel > p {
  font-size: 1.15rem;
}

.tryout-panel h2 {
  font-size: 2rem;
}

.tryout-panel > span {
  font-size: 1.25rem;
  line-height: 1.6;
}

.home-footer h2,
.footer-brand strong {
  font-size: 1.25rem;
}

.footer-brand strong {
  font-size: 1.4rem;
}

.footer-brand p,
.home-footer a {
  font-size: 1.18rem;
  line-height: 1.6;
}

.footer-bottom {
  font-size: 1.05rem;
}

@media (max-width: 70rem) {
  .site-navigation a {
    font-size: 1.15rem;
  }
}

@media (max-width: 61.25rem) {
  .site-navigation a {
    font-size: 1.3rem;
  }
}

@media (max-width: 46rem) {
  body {
    font-size: 1.25rem;
  }

  .hero-copy h1 {
    font-size: 2.9rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .teams-intro h2,
  .about-copy h2 {
    font-size: 2.35rem;
  }

  .team-card strong {
    font-size: 1.25rem;
  }

  .team-card small {
    font-size: 1.1rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
