/* ==========================================================================
   Wood Street Giants Fürstenwalde – Site Stylesheet
   Design language: hardwood court + scoreboard, not SaaS-template.
   ========================================================================== */

@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/big-shoulders-display-600.woff2") format("woff2");
}
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/big-shoulders-display-700.woff2") format("woff2");
}
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/big-shoulders-display-800.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/work-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/work-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/work-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/work-sans-700.woff2") format("woff2");
}

:root {
  /* Brand greens, sampled from the club's own tree crest */
  --green-deep: #0b2e1a;
  --green-mid: #1c6b39;
  --green-bright: #7bc142;

  /* Hardwood / parquet — literal to "Wood Street" and the court floor */
  --wood: #b9793f;
  --wood-dark: #7c4f27;

  /* The one spot accent: worn leather basketball orange. Reserved for
     actions only — never used as decoration. */
  --ball: #bd5321;
  --ball-dark: #963f16;

  --paper: #f6f1e6;
  --panel: #fffdf8;
  --ink: #1c1810;
  --ink-soft: #5a5142;
  --line: #e2d7c1;

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --container: 1180px;
  --notch: 14px; /* corner clip on buttons/panels — a scoreboard ticket, not a pill */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  margin: 0 0 0.4em;
  color: var(--green-deep);
}
h1, h2 { text-transform: uppercase; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
h3 { font-size: 1.4rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 3px solid var(--ball); outline-offset: 2px; }

/* ---- Buttons: a clipped-corner ticket stub, not a pill ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
  padding: 0.7em 1.5em;
  border: 2px solid transparent;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  cursor: pointer;
  transition: transform 0.12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ball); color: #fff8ef; }
.btn-primary:hover { background: var(--ball-dark); }
.btn-outline { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline:hover { border-color: #fff; }
.btn-dark { background: var(--green-deep); color: #fff; }
.btn-dark:hover { background: #082212; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green-deep); color: #fff; padding: 12px 20px; z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 200; background: var(--green-deep); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 24px; max-width: var(--container); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand img { height: 38px; width: auto; filter: brightness(0) invert(1); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-display); }
.brand-text strong { font-size: 1.2rem; letter-spacing: 0.02em; text-transform: uppercase; }
.brand-text span { font-size: 0.72rem; color: var(--wood); letter-spacing: 0.06em; }

.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav a {
  display: inline-flex; align-items: center; color: #eee7d8;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.02em; font-size: 1rem; padding: 10px 12px;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li.is-active > a { color: var(--wood); }

.has-dropdown .dropdown {
  position: absolute; top: 100%; left: 0; background: var(--panel);
  min-width: 240px; padding: 6px; border-top: 3px solid var(--ball);
  box-shadow: 0 10px 24px rgba(11,46,26,0.18);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all 0.15s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { color: var(--ink); display: block; padding: 8px 12px; font-size: 0.92rem; text-transform: none; font-family: var(--font-body); font-weight: 600; }
.dropdown a:hover { color: var(--ball); }

.nav-toggle { display: none; background: none; border: none; width: 40px; height: 34px; position: relative; cursor: pointer; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 6px; right: 6px; height: 2px; background: #fff; transition: 0.2s;
}
.nav-toggle::before { top: 10px; }
.nav-toggle span { top: 17px; }
.nav-toggle::after { top: 24px; }
.nav-toggle.is-open::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open::after { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle.is-open span { opacity: 0; }

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 86vh; display: flex; align-items: flex-end;
  overflow: hidden; color: #fff; background: var(--green-deep);
}
.hero video, .hero .hero-fallback-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,46,26,0.25) 0%, rgba(11,46,26,0.55) 60%, rgba(11,46,26,0.95) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 64px 24px 0; max-width: var(--container); margin: 0 auto; width: 100%; }
.hero-content h1 { color: #fff; max-width: 14ch; }
.hero-content .lede { color: #e7e2d2; font-size: 1.2rem; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 1.4em 0 44px; }
.hero-kicker { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.05em; color: var(--wood); margin-bottom: 0.6em; }

.hero.hero-compact { min-height: 56vh; align-items: flex-end; }
.hero.hero-compact::after {
  background: linear-gradient(180deg, rgba(11,46,26,0.15) 0%, rgba(11,46,26,0.25) 40%, rgba(11,46,26,0.92) 100%);
}
.hero.hero-compact .hero-content { padding: 108px 24px 44px; }
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.85rem; color: #cdbf9c; margin-bottom: 0.9em; font-family: var(--font-body); font-weight: 600; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { opacity: 0.6; }

/* Court key + free-throw arc — the site's one recurring graphic motif */
.court-line { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; opacity: 0.5; pointer-events: none; }
.court-line svg { width: 100%; height: 90px; display: block; }

/* ---- Sections ---- */
.section { padding: 68px 0; }
.section-tight { padding: 36px 0; }
.section-head { max-width: 640px; margin-bottom: 2em; }
.section-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--green-deep); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #cfe0cb; }

/* ---- Roster rows (departments) — an editorial list, not identical cards ---- */
.roster { display: flex; flex-direction: column; }
.roster-row {
  display: grid; grid-template-columns: 180px 1fr auto; gap: 28px; align-items: center;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.roster-row:last-child { border-bottom: 1px solid var(--line); }
.roster-row .thumb { width: 180px; height: 130px; overflow: hidden; }
.roster-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.roster-row h3 { margin-bottom: 0.25em; }
.roster-row p { margin: 0; }
.roster-row .go { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1rem; color: var(--green-mid); white-space: nowrap; border-bottom: 2px solid transparent; }
.roster-row:hover .go { border-color: var(--ball); color: var(--ball); }
@media (max-width: 720px) {
  .roster-row { grid-template-columns: 1fr; }
  .roster-row .thumb { width: 100%; height: 180px; }
  .roster-row .go { justify-self: start; }
}

/* ---- Schedule board (basketball teams) — real tabular data, styled as a scoreboard ---- */
.board { width: 100%; border-collapse: collapse; font-family: var(--font-body); }
.board caption { text-align: left; margin-bottom: 14px; }
.board thead th {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  font-size: 0.85rem; text-align: left; padding: 10px 14px; background: var(--green-deep); color: var(--wood);
}
.board tbody td { padding: 16px 14px; border-bottom: 1px solid var(--line); font-size: 0.98rem; vertical-align: top; }
.board tbody tr:hover { background: rgba(185,121,63,0.08); }
.board .team-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--green-deep); text-transform: uppercase; }
.board .time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.board .go { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; color: var(--green-mid); white-space: nowrap; }
.board tbody tr:hover .go { color: var(--ball); }
.board-wrap { overflow-x: auto; }

/* ---- Scoreboard panel (training + trainer on team pages) ---- */
.scoreboard { background: var(--green-deep); color: #fff; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid rgba(255,255,255,0.15); }
.scoreboard + .scoreboard { margin-top: 2px; }
.scoreboard > div { padding: 30px 32px; border-left: 1px solid rgba(255,255,255,0.15); }
.scoreboard > div:first-child { border-left: none; }
.scoreboard h4 { color: var(--wood); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 18px; font-size: 0.95rem; }
.training-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,0.18); }
.training-row:last-child { border-bottom: none; }
.training-row .day { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.05rem; }
.training-row .place { display: block; color: #cdbf9c; font-size: 0.85rem; font-weight: 400; text-transform: none; font-family: var(--font-body); margin-top: 2px; }
.training-row .clock { font-variant-numeric: tabular-nums; font-size: 1.15rem; white-space: nowrap; }
.trainer-item { padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,0.18); }
.trainer-item:last-child { border-bottom: none; }
.trainer-meta { display: flex; align-items: center; gap: 14px; }
.trainer-photo { width: 46px; height: 46px; object-fit: cover; border: 2px solid var(--wood); flex: none; }
.trainer-item strong { display: block; font-family: var(--font-display); font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.02em; }
.trainer-item a, .trainer-item .phone { font-size: 0.9rem; color: #d8ecd0; display: block; }
.trainer-item a:hover { color: var(--wood); }

/* second scoreboard row when a team has an extra training block */
.scoreboard-extra { background: var(--green-deep); color: #fff; padding: 0 32px 32px; margin-top: -1px; }
.scoreboard-extra h4 { color: var(--wood); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; font-size: 0.9rem; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); }

/* ---- Prose (long-form text) ---- */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { margin-top: 1.5em; text-transform: none; font-size: 1.4rem; }

/* ---- Table / iframe embeds ---- */
.table-embed { border: 1px solid var(--line); background: #fff; }
.table-embed iframe { width: 100%; height: 900px; border: 0; display: block; }

/* ---- Sponsors ---- */
.sponsor-strip { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding: 8px 0; }
.sponsor-strip img { height: 46px; width: auto; object-fit: contain; }

/* Logo wall — the way sponsor boards actually hang courtside */
.sponsor-wall {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2px; background: var(--line); border: 1px solid var(--line); margin: 1.6em 0 3em;
}
.sponsor-wall .tile {
  background: var(--panel); aspect-ratio: 2/1; display: flex; align-items: center; justify-content: center;
  padding: 22px; position: relative; overflow: hidden;
}
.sponsor-wall .tile img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.2s ease; }
.sponsor-wall .tile:hover img { transform: scale(1.08); }
.sponsor-wall .placeholder-tile { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--wood); }
.sponsor-wall .cap {
  position: absolute; inset: auto 0 0 0; background: var(--green-deep); color: #fff;
  font-size: 0.72rem; font-weight: 600; text-align: center; padding: 6px; transform: translateY(100%);
  transition: transform 0.2s ease;
}
.sponsor-wall .tile:hover .cap { transform: translateY(0); }

/* Categorised directory beneath the wall */
.sponsor-category h3 { border-top: 3px solid var(--wood); padding-top: 0.5em; margin-top: 2em; }
.sponsor-category:first-of-type h3 { margin-top: 0; }
.sponsor-list { display: flex; flex-direction: column; }
.sponsor-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.sponsor-list .sponsor-row:last-child { border-bottom: 1px solid var(--line); }
.sponsor-row .logo-wrap { height: 50px; display: flex; align-items: center; }
.sponsor-row .logo-wrap img { max-height: 50px; max-width: 140px; object-fit: contain; }
.sponsor-row .logo-wrap .placeholder { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--wood); }
.sponsor-row h4 { margin-bottom: 2px; text-transform: none; font-size: 1.15rem; }
.sponsor-row .addr { font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 620px) { .sponsor-row { grid-template-columns: 1fr; } }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0 0 1.4em; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.contact-list a:hover { color: var(--green-mid); }
.hours-table { width: 100%; border-collapse: collapse; margin: 10px 0 0; }
.hours-table td { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 0.94rem; }

.form-card { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--ball); padding: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.03em; color: var(--green-mid); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); font-family: var(--font-body); font-size: 0.98rem; background: var(--paper);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--ball); border-color: var(--ball); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.84rem; color: var(--ink-soft); margin-top: 10px; }

/* ---- Tabs (Formulare) ---- */
.tabs { display: flex; gap: 0; margin-bottom: 0; border-bottom: 2px solid var(--line); }
.tab-btn {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: 1rem; padding: 12px 20px; border: none; background: none; cursor: pointer; color: var(--ink-soft);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tab-btn.is-active { color: var(--green-deep); border-color: var(--ball); }
.tab-panel { display: none; padding-top: 24px; }
.tab-panel.is-active { display: block; }

/* ---- CTA band: flat colour, one bold button — no gradient wash ---- */
.cta-band { background: var(--green-deep); color: #fff; border-top: 6px solid var(--wood); border-bottom: 6px solid var(--wood); padding: 56px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 0.15em; }
.cta-band p { color: #d8ecd0; }

/* ---- Notice ---- */
.notice { background: var(--wood); color: var(--green-deep); padding: 16px 22px; font-weight: 700; margin: 1.6em 0; }

/* ---- Photo strip (cheerleader gallery) ---- */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 1.6em 0; }
.photo-strip-item { aspect-ratio: 3/4; overflow: hidden; }
.photo-strip-item img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 620px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---- Note box (small aside, e.g. Geschäftsstelle contact) ---- */
.note-box { max-width: 480px; border-left: 4px solid var(--wood); padding: 4px 0 4px 22px; margin-top: 2.2em; }
.note-box h4 { text-transform: uppercase; margin-bottom: 0.6em; }

/* ---- Legal ---- */
.legal-index { list-style: none; margin: 0; padding: 0; }
.legal-index li { border-top: 1px solid var(--line); }
.legal-index li:last-child { border-bottom: 1px solid var(--line); }
.legal-index a { display: block; padding: 18px 4px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.2rem; }
.legal-index a:hover { color: var(--ball); }
.legal-nav { list-style: none; margin: 0; padding: 0; }
.legal-nav li { padding: 8px 0; border-top: 1px solid var(--line); }
.legal-nav a:hover { color: var(--ball); }

/* ---- Footer ---- */
.site-footer { background: var(--green-deep); color: #cdbf9c; padding-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin-bottom: 0.8em; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.03em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a:hover { color: var(--wood); }
.site-footer .brand { margin-bottom: 14px; }
.footer-since { font-family: var(--font-display); font-size: 5rem; font-weight: 800; color: rgba(255,255,255,0.08); line-height: 1; position: absolute; right: 24px; bottom: 6px; user-select: none; }
.footer-bottom { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 18px 0 26px; font-size: 0.85rem; }
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { width: 36px; height: 36px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.social-row a:hover { background: var(--ball); color: #fff; }
.social-row svg { width: 17px; height: 17px; }

.text-center { text-align: center; }
.mt-lg { margin-top: 2.2em; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.is-open {
    display: block; position: fixed; inset: 60px 0 0 0; background: var(--green-deep);
    padding: 16px 24px; overflow-y: auto;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 0; }
  .main-nav.is-open a { font-size: 1.2rem; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .has-dropdown .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none;
    background: rgba(255,255,255,0.04); display: none; margin: 0 0 4px 10px;
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .dropdown a { color: #dfe9db; }
}
