﻿:root {
  color-scheme: dark;
  --ink: #f2fff6;
  --muted: #b8c8bd;
  --subtle: #7f9487;
  --night: #020704;
  --panel: #08140d;
  --panel-strong: #0d1f14;
  --line: rgba(0, 146, 63, 0.28);
  --club-green: #00923f;
  --club-green-soft: #00b954;
  --club-green-dark: #063d20;
  --brass: #00b954;
  --signal: #00e06a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 146, 63, 0.24), transparent 28rem),
    linear-gradient(135deg, #020704, #07140b 52%, #020704);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 7, 4, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a,
.account-trigger {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.account-trigger:hover,
.account-trigger:focus-visible {
  color: var(--ink);
  background: rgba(242, 255, 246, 0.08);
}

.site-nav .login-link {
  color: #021008;
  background: var(--club-green-soft);
  font-weight: 900;
}

.site-nav .login-link:hover,
.site-nav .login-link:focus-visible {
  color: #021008;
  background: var(--signal);
}

.account-menu {
  position: relative;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 185, 84, 0.34);
  background: rgba(0, 185, 84, 0.09);
  cursor: pointer;
}

.account-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  color: #021008;
  background: var(--club-green-soft);
  font-size: 0.86rem;
  font-weight: 950;
}

.account-label {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

.account-label strong,
.account-label small {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-label strong {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.1;
}

.account-label small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 35;
  display: grid;
  width: min(260px, 86vw);
  padding: 8px;
  border: 1px solid rgba(0, 185, 84, 0.34);
  border-radius: 8px;
  background: rgba(2, 7, 4, 0.98);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(18px);
}

.account-panel[hidden] {
  display: none;
}

.account-panel a {
  display: flex;
  min-height: 42px;
  align-items: center;
  border-radius: 6px;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
  align-items: end;
  min-height: calc(100vh - 76px);
  padding: clamp(72px, 12vh, 118px) 5vw 48px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 7, 4, 0.95) 0%, rgba(2, 7, 4, 0.76) 48%, rgba(2, 7, 4, 0.66) 100%),
    var(--hero-background, url("bilder/20260509_150343.jpg?v=20260601"))
      center center / cover;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(2, 7, 4, 0.95) 0%, rgba(2, 7, 4, 0.76) 48%, rgba(2, 7, 4, 0.66) 100%);
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.signal {
  position: absolute;
  z-index: 1;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(0, 185, 84, 0.25);
  transform: rotate(18deg);
}

.signal-one {
  right: 7vw;
  top: 20vh;
}

.signal-two {
  right: -8vw;
  bottom: 7vh;
  border-color: rgba(0, 224, 106, 0.18);
}

.hero-content {
  max-width: 850px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(3.5rem, 10vw, 9.2rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  color: #021008;
  background: var(--brass);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(242, 255, 246, 0.06);
}

.button.danger {
  color: #fff;
  border-color: rgba(255, 92, 92, 0.44);
  background: rgba(255, 92, 92, 0.16);
}

.status-panel {
  display: grid;
  gap: 1px;
  align-self: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(2, 7, 4, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.status-panel div {
  padding: 20px;
  background: rgba(242, 255, 246, 0.055);
}

.status-panel span,
.event-card time,
.requirements span {
  display: block;
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 2rem;
  line-height: 1;
}

.intro-band,
.gallery-section,
.support-section,
.content-section,
.contact-section {
  padding: clamp(62px, 9vw, 110px) 5vw;
}

.intro-band {
  background: #06120a;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.intro-copy {
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.text-link {
  color: var(--brass);
  font-weight: 800;
  white-space: nowrap;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.event-card,
.requirements article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.event-card.featured {
  border-color: rgba(0, 185, 84, 0.58);
  background:
    linear-gradient(135deg, rgba(0, 185, 84, 0.16), transparent),
    var(--panel);
}

.event-card h3 {
  margin-top: 34px;
}

.event-card p,
.requirements p,
.support-copy p,
.contact-section p {
  color: var(--muted);
}

.calendar-section {
  background: #030b06;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 14px;
  align-items: start;
}

.calendar-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.calendar-card,
.calendar-agenda article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 20, 13, 0.92);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.calendar-card {
  padding: 18px;
}

.calendar-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.calendar-card header span {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
}

.calendar-card header strong {
  color: var(--club-green-soft);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-grid span,
.calendar-grid time {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid rgba(0, 146, 63, 0.12);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(242, 255, 246, 0.035);
  font-size: 0.9rem;
  font-weight: 800;
}

.calendar-grid .day-label {
  min-height: 28px;
  border-color: transparent;
  color: var(--club-green-soft);
  background: transparent;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.calendar-grid .outside {
  color: rgba(184, 200, 189, 0.34);
}

.calendar-grid .has-event {
  color: #021008;
  border-color: rgba(0, 224, 106, 0.72);
  background: var(--club-green-soft);
  box-shadow: 0 0 0 3px rgba(0, 185, 84, 0.18);
}

.calendar-grid .has-event.featured {
  background: #f2fff6;
}

.calendar-agenda {
  display: grid;
  gap: 10px;
}

.calendar-agenda article {
  padding: 18px;
}

.calendar-agenda time {
  display: block;
  margin-bottom: 20px;
  color: var(--club-green-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.calendar-agenda h3 {
  margin-bottom: 6px;
}

.calendar-agenda p {
  margin: 0;
  color: var(--muted);
}

.gallery-section {
  background:
    linear-gradient(180deg, rgba(0, 146, 63, 0.08), transparent 22rem),
    #06120a;
}

.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(242, 255, 246, 0.05);
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  color: var(--ink);
  border-color: rgba(0, 185, 84, 0.6);
  background: rgba(0, 185, 84, 0.16);
}

.gallery-grid {
  column-count: 3;
  column-gap: 14px;
}

.gallery-empty {
  max-width: 680px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(242, 255, 246, 0.05);
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  isolation: isolate;
  break-inside: avoid;
  transition:
    box-shadow 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  object-fit: initial;
  opacity: 1;
  transition: opacity 180ms ease;
}

.gallery-item::after {
  display: none;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  opacity: 0.96;
  transform: translateY(-2px);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  opacity: 0.94;
}

.gallery-load {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 146, 63, 0.18);
}

.gallery-load [hidden] {
  display: none;
}

.support-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: start;
}

.sponsor-section {
  background: #021008;
}

.social-section {
  background: #06120a;
  border-top: 1px solid var(--line);
}

.support-copy {
  max-width: 620px;
}

.channel-categories {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.channel-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(242, 255, 246, 0.045);
}

.channel-card > p {
  margin-bottom: 12px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.channel-card h3 {
  margin-bottom: 6px;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.channel-card > span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
}

.social-panel {
  padding: 18px;
}

.sponsor-banners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sponsor-banner {
  position: relative;
  display: grid;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 185, 84, 0.12), transparent 58%),
    rgba(242, 255, 246, 0.045);
}

.sponsor-banner img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: contain;
  padding: 20px;
  transition: transform 180ms ease;
}

.sponsor-banner span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(2, 7, 4, 0.82);
  font-size: 0.82rem;
  font-weight: 900;
}

.sponsor-banner:hover img,
.sponsor-banner:focus-visible img {
  transform: scale(1.035);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.social-grid.single {
  grid-template-columns: 1fr;
}

.social-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.social-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 108px;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 185, 84, 0.08), transparent 62%),
    rgba(242, 255, 246, 0.045);
  font-weight: 800;
  text-align: center;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.social-grid a:hover,
.social-grid a:focus-visible {
  border-color: rgba(0, 185, 84, 0.58);
  background:
    linear-gradient(135deg, rgba(0, 185, 84, 0.15), transparent 62%),
    rgba(242, 255, 246, 0.06);
  transform: translateY(-1px);
}

.social-icon {
  width: 34px;
  height: 34px;
  padding: 5px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
}

.social-grid span {
  color: var(--ink);
  font-size: 0.92rem;
}

.join-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 70px);
}

.join-copy {
  max-width: 540px;
}

.requirements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.requirements article {
  min-height: 230px;
  background: var(--panel-strong);
}

.requirements span {
  color: var(--brass);
}

.requirements h3 {
  margin-top: 58px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 240px);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  padding: clamp(62px, 9vw, 110px) 5vw;
  background:
    linear-gradient(135deg, rgba(0, 146, 63, 0.22), transparent 48%),
    #021008;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 7.2rem);
}

.page-hero p:not(.section-kicker) {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.page-hero img {
  width: min(42vw, 220px);
  justify-self: center;
  filter: drop-shadow(0 20px 42px rgba(0, 0, 0, 0.38));
}

.team-roster {
  padding: clamp(62px, 9vw, 110px) 5vw;
  background: #06120a;
}

.team-roster.alt {
  background: #021008;
  border-top: 1px solid var(--line);
}

.legal-section {
  background: #06120a;
}

.legal-content {
  max-width: 940px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 185, 84, 0.08), transparent 56%),
    rgba(242, 255, 246, 0.045);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.legal-content h2 {
  margin-top: 34px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin-top: 24px;
  color: var(--brass);
}

.legal-content p {
  color: var(--muted);
}

.legal-content a {
  color: var(--ink);
  font-weight: 800;
}

.member-grid,
.squad-summary {
  display: grid;
  gap: 12px;
}

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

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

.member-grid.leaders {
  max-width: 980px;
}

.member-card,
.squad-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(242, 255, 246, 0.045);
}

.member-card {
  min-height: 170px;
  padding: 24px;
}

.member-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: rgba(2, 7, 4, 0.72);
}

.member-card span,
.squad-summary span {
  display: block;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.member-card h3 {
  margin-top: 18px;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
}

.member-card:not(:has(img)) h3 {
  margin-top: 42px;
}

.member-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.empty-slot {
  background:
    repeating-linear-gradient(135deg, rgba(242, 255, 246, 0.06) 0 1px, transparent 1px 18px),
    rgba(242, 255, 246, 0.035);
}

.squad-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.squad-summary article {
  padding: 22px;
}

.squad-summary strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(280px, 540px);
  gap: clamp(30px, 6vw, 70px);
  background: #030b06;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 185, 84, 0.08), transparent 55%),
    rgba(242, 255, 246, 0.045);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(2, 7, 4, 0.72);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(0, 185, 84, 0.8);
}

.auth-form {
  max-width: 620px;
}

.settings-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.settings-layout .flash-message {
  grid-column: 1 / -1;
  margin: 0;
}

.settings-layout h2,
.contact-form h2 {
  margin-bottom: 4px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 7, 4, 0.42);
}

.admin-tabs a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 900;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.admin-tabs a:hover,
.admin-tabs a:focus-visible,
.admin-tabs a.is-active {
  color: var(--ink);
  border-color: rgba(0, 185, 84, 0.5);
  background: rgba(0, 185, 84, 0.14);
}

.flash-message {
  margin: 16px 5vw;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(242, 255, 246, 0.06);
}

.flash-message.success {
  border-color: rgba(0, 224, 106, 0.52);
  background: rgba(0, 185, 84, 0.14);
}

.flash-message.error {
  border-color: rgba(255, 92, 92, 0.52);
  background: rgba(255, 92, 92, 0.12);
}

.dashboard-grid,
.management-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-card,
.management-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 185, 84, 0.08), transparent 58%),
    rgba(242, 255, 246, 0.045);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.dashboard-card {
  display: block;
  min-height: 210px;
  padding: 22px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.dashboard-card:hover,
.dashboard-card:focus-visible {
  border-color: rgba(0, 224, 106, 0.55);
  background:
    linear-gradient(135deg, rgba(0, 185, 84, 0.16), transparent 58%),
    rgba(242, 255, 246, 0.055);
  transform: translateY(-2px);
}

.dashboard-card span,
.management-card strong,
.participant-list strong {
  display: block;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-card h3 {
  margin-top: 56px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.dashboard-card p,
.participant-list p,
.message-list span {
  color: var(--muted);
}

.event-admin-grid {
  align-items: start;
}

.participant-list {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.event-edit-form {
  margin: 16px 0 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.participant-list ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.management-grid {
  margin-top: 24px;
}

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

.management-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.management-card img,
.profile-preview {
  display: block;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(2, 7, 4, 0.72);
}

.management-card img {
  aspect-ratio: 4 / 3;
}

.profile-preview {
  aspect-ratio: 1;
}

.compact-form,
.role-form {
  display: grid;
  gap: 10px;
}

.compact-form label,
.role-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.compact-form input,
.role-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--ink);
  background: rgba(2, 7, 4, 0.72);
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.chat-users {
  display: grid;
  gap: 8px;
}

.chat-users a,
.chat-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(242, 255, 246, 0.045);
}

.chat-users a {
  display: block;
  padding: 14px;
}

.chat-users a.is-active {
  border-color: rgba(0, 224, 106, 0.55);
  background: rgba(0, 185, 84, 0.13);
}

.chat-users span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.chat-panel {
  padding: 18px;
}

.message-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.message-list article {
  max-width: 76%;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(242, 255, 246, 0.07);
}

.message-list article.is-own {
  justify-self: end;
  background: rgba(0, 185, 84, 0.18);
}

.message-list p {
  margin: 6px 0 0;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(242, 255, 246, 0.045);
}

.admin-table th,
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-table th {
  color: var(--brass);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.role-form {
  grid-template-columns: minmax(130px, 0.8fr) minmax(190px, 1fr) auto;
  align-items: center;
}

.delete-account-form {
  margin-top: 8px;
}

.self-account-note {
  display: inline-flex;
  margin-top: 8px;
  color: var(--subtle);
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-linked-member {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 185, 84, 0.08);
}

.profile-linked-member span {
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-linked-member strong {
  font-size: 1.18rem;
}

.profile-linked-member p,
.form-hint {
  margin: 0;
  color: var(--muted);
}

.profile-linked-member img {
  display: block;
  width: min(220px, 100%);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--brass);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 5vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: var(--ink);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(6, 8, 5, 0.88);
  backdrop-filter: blur(14px);
}

.lightbox.is-open {
  display: grid;
}

.lightbox figure {
  width: min(1100px, 86vw);
  margin: 0;
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080a07;
  box-shadow: var(--shadow);
}

.lightbox figcaption {
  margin-top: 14px;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(26, 31, 23, 0.9);
  cursor: pointer;
}

.lightbox-close {
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 64px;
  font-size: 3rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

@media (max-width: 980px) {
  .hero,
  .intro-layout,
  .support-section,
  .join-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 42px;
    padding-top: 74px;
  }

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

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

  .calendar-layout,
  .calendar-months {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    column-count: 2;
    column-gap: 12px;
  }

  .requirements {
    grid-template-columns: 1fr;
  }

  .page-hero {
    grid-template-columns: 1fr;
  }

  .page-hero img {
    justify-self: start;
    width: 150px;
  }

  .member-grid,
  .squad-summary,
  .dashboard-grid,
  .management-grid,
  .management-grid.wide,
  .chat-layout,
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .requirements article {
    min-height: 170px;
  }

  .requirements h3 {
    margin-top: 32px;
  }

  .dashboard-card {
    min-height: 160px;
  }

  .dashboard-card h3 {
    margin-top: 28px;
  }
}

@media (max-width: 780px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 5vw;
    left: 5vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(2, 7, 4, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .account-menu,
  .account-trigger {
    width: 100%;
  }

  .account-trigger {
    justify-content: flex-start;
    min-height: 52px;
  }

  .account-label strong,
  .account-label small {
    max-width: none;
  }

  .account-panel {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    max-width: 52vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5.8rem);
  }

  .hero-media {
    background-position: 48% center;
  }

  .status-panel,
  .event-list,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .calendar-card {
    padding: 14px;
  }

  .calendar-grid {
    gap: 4px;
  }

  .calendar-grid span,
  .calendar-grid time {
    min-height: 34px;
    font-size: 0.82rem;
  }

  .sponsor-banners {
    grid-template-columns: 1fr;
  }

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

  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-controls {
    justify-content: flex-start;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox figure {
    width: 100%;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    width: 46px;
    height: 46px;
    font-size: 2.4rem;
    transform: none;
  }
}

@media (max-width: 460px) {
  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .contact-form {
    padding: 18px;
  }

  .gallery-grid {
    column-count: 1;
  }

  .gallery-item,
  .gallery-item.feature {
    margin-bottom: 12px;
    aspect-ratio: auto;
  }

  .social-grid.compact {
    grid-template-columns: 1fr;
  }

  .role-form {
    grid-template-columns: 1fr;
  }

  .message-list article {
    max-width: 100%;
  }
}
