/*
Theme Name: FCVM Modern
Theme URI: https://www.fcvmuenchen.de/
Author: FC Viktoria Muenchen e.V.
Description: Modernes WordPress-Theme fuer den FC Viktoria Muenchen e.V. mit Startseite, Vereinsbereichen, News, Mitgliedschaft und Kontakt.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: fcvm-modern
*/

:root {
  --ink: #10151f;
  --muted: #626a76;
  --paper: #f5f5f3;
  --white: #ffffff;
  --black: #090b0f;
  --charcoal: #151820;
  --red: #d71920;
  --red-dark: #9f1218;
  --silver: #d9dde3;
  --line: rgba(16, 21, 31, 0.12);
  --shadow: 0 24px 60px rgba(16, 21, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body.admin-bar .site-nav {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(9, 11, 15, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: block;
  padding: 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  font-weight: 700;
}

.menu a:hover,
.menu a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span:not(.screen-reader-text) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  padding: 130px clamp(18px, 5vw, 72px) 72px;
  color: var(--white);
  background: var(--black);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 11, 15, 0.98) 0%, rgba(9, 11, 15, 0.82) 45%, rgba(159, 18, 24, 0.26) 100%),
    linear-gradient(0deg, rgba(9, 11, 15, 0.9), rgba(9, 11, 15, 0.1)),
    var(--hero-image) center / cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.notice-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px clamp(18px, 5vw, 72px);
  background: var(--red);
  color: var(--white);
}

.notice-band strong {
  text-transform: uppercase;
  font-size: 0.82rem;
}

.notice-band span {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.notice-band a,
.text-link,
.card a {
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.notice-band a {
  white-space: nowrap;
}

.section {
  padding: 88px clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.grid-3,
.news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.news-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.card.green {
  border-top: 5px solid var(--black);
}

.card.red {
  border-top: 5px solid var(--red);
}

.card.gold {
  border-top: 5px solid var(--silver);
}

.card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--red-dark);
}

.news-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) 1.45fr;
  gap: 28px;
  background: var(--black);
  color: var(--white);
}

.news-band h2,
.news-band h3 {
  color: var(--white);
}

.news-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.news-card span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card p {
  color: rgba(255, 255, 255, 0.72);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tile {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 22px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(9, 11, 15, 0.98), rgba(215, 25, 32, 0.82)),
    var(--hero-image) center / cover;
  box-shadow: var(--shadow);
  font-size: 1.35rem;
  font-weight: 900;
}

.tile span,
.tile small {
  display: block;
  width: 100%;
}

.tile small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
}

.white {
  background: var(--white);
}

.training {
  background: var(--paper);
}

.schedule-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.schedule-table [role="row"] {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.2fr 0.9fr;
  border-top: 1px solid var(--line);
}

.schedule-table [role="row"]:first-child {
  border-top: 0;
}

.schedule-table span {
  padding: 16px 18px;
  line-height: 1.45;
}

.schedule-head {
  background: var(--black);
  color: var(--white);
  font-weight: 900;
}

.boxing-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: 38px;
  align-items: center;
  background: var(--black);
  color: var(--white);
}

.boxing-feature h2 {
  color: var(--white);
}

.boxing-feature p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.76);
}

.fact-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.fact-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.fact-list strong {
  color: var(--red);
  text-transform: uppercase;
  font-size: 0.78rem;
}

.fact-list span,
.fact-list a {
  color: var(--white);
  font-weight: 800;
}

.poster-frame {
  margin: 0;
}

.poster-frame img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.partner-band {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partner-logo {
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.partner-logo img {
  max-height: 210px;
  object-fit: contain;
}

.partner-button {
  margin-top: 8px;
}

.membership {
  background: var(--black);
}

.membership-panel {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.steps {
  display: grid;
  gap: 12px;
}

.steps div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.steps strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  background: var(--white);
}

.contact .button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--paper);
}

.page-content {
  max-width: 920px;
  min-height: 70vh;
  padding-top: 140px;
}

.page-content-wide {
  max-width: 1180px;
}

.page-content .entry-content {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.wp-content-block {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.contact-grid,
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.info-card,
.info-panel,
.legal-warning,
.legal-draft,
.download-list div,
.sponsor-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.info-card h2,
.info-panel h2 {
  font-size: 1.5rem;
}

.info-card .button,
.info-panel .button {
  margin-top: 8px;
}

.info-panel {
  margin-top: 28px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 16px 0 0;
  padding-left: 20px;
}

.sponsor-grid {
  grid-template-columns: minmax(220px, 320px);
}

.sponsor-card {
  display: grid;
  gap: 16px;
  align-items: center;
}

.sponsor-card img {
  max-height: 180px;
  object-fit: contain;
}

.download-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.download-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.download-list span {
  color: var(--red-dark);
  font-weight: 800;
}

.legal-warning {
  display: grid;
  gap: 6px;
  margin: 20px 0 26px;
  border-color: rgba(215, 25, 32, 0.35);
  background: #fff4f4;
}

.legal-warning strong {
  color: var(--red-dark);
}

.legal-draft p {
  margin-bottom: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--black);
}

.site-footer span,
.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 900px) {
  body.admin-bar .site-nav {
    top: 46px;
  }

  .nav-toggle {
    display: block;
  }

  .menu {
    position: absolute;
    top: 81px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 8px;
    background: var(--black);
    box-shadow: var(--shadow);
  }

  .menu.is-open {
    display: flex;
  }

  .grid-3,
  .news-list,
  .contact-grid,
  .sponsor-grid,
  .news-band,
  .split,
  .notice-band,
  .boxing-feature,
  .partner-band,
  .membership-panel,
  .contact {
    grid-template-columns: 1fr;
  }

  .notice-band a {
    justify-self: start;
  }

  .partner-logo {
    max-width: 280px;
  }
}

@media (max-width: 560px) {
  .brand span {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-bottom: 48px;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(9, 11, 15, 0.96), rgba(159, 18, 24, 0.38)),
      var(--hero-image) center / cover;
  }

  h1 {
    font-size: 3rem;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .tile-grid {
    grid-template-columns: 1fr;
  }

  .schedule-table {
    border-radius: 0;
    margin-left: -18px;
    margin-right: -18px;
  }

  .schedule-table [role="row"] {
    grid-template-columns: 1fr;
    padding: 14px 18px;
  }

  .schedule-head {
    display: none !important;
  }

  .schedule-table span {
    padding: 4px 0;
  }

  .schedule-table span:first-child {
    color: var(--red-dark);
    font-weight: 900;
  }

  .check-list,
  .download-list div {
    grid-template-columns: 1fr;
  }

  .fact-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
