/*
Theme Name: Fähndelschwenken Rheinland
Theme URI: https://faehndelschwenken.de/
Author: Fähndelschwenken Rheinland
Description: Modernes Gutenberg-Blocktheme für Meisterschaften, Austragungen, Ergebnisse und das rheinische Fähndelschwenken.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: faehndelschwenken-rheinland
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --fsch-ink: #101613;
  --fsch-forest: #163e30;
  --fsch-forest-2: #205944;
  --fsch-lime: #d8ff51;
  --fsch-paper: #f4f5ee;
  --fsch-white: #fff;
  --fsch-muted: #68716c;
  --fsch-line: #dce0da;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { text-underline-offset: .2em; }

.wp-site-blocks { overflow: hidden; }
.fsch-topline { height: 6px; background: var(--fsch-lime); }
.fsch-site-header { position: relative; z-index: 10; border-bottom: 1px solid rgba(16,22,19,.08); }
.fsch-brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--fsch-ink); color: var(--fsch-lime); font-size: .75rem; font-weight: 850; letter-spacing: .08em; }
.fsch-brand-subtitle { margin-top: 1px !important; color: var(--fsch-muted); font-size: .62rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fsch-header-nav a { padding: 9px 12px; border-radius: 999px; text-decoration: none; }
.fsch-header-nav a:hover { background: var(--fsch-white); }

.fsch-kicker { margin-bottom: 14px !important; color: var(--fsch-forest-2); font-size: .68rem !important; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.fsch-kicker.is-light { color: var(--fsch-lime); }
.fsch-hero { position: relative; overflow: hidden; min-height: 650px; }
.fsch-hero::after { content: "09"; position: absolute; z-index: 0; right: -1vw; bottom: -10vw; color: rgba(255,255,255,.035); font-size: clamp(18rem,42vw,42rem); font-weight: 900; letter-spacing: -.12em; line-height: .8; pointer-events: none; }
.fsch-hero > .wp-block-group__inner-container, .fsch-hero-grid { position: relative; z-index: 1; }
.fsch-hero h1 { max-width: 970px; margin-bottom: 28px !important; font-size: clamp(4.2rem,8.5vw,8.6rem) !important; letter-spacing: -.075em; line-height: .82; }
.fsch-hero-lead { max-width: 690px; color: #bac2be; font-size: clamp(1.05rem,1.8vw,1.27rem) !important; }
.fsch-primary-button .wp-block-button__link { display: inline-flex; align-items: center; border-radius: 999px; font-size: .72rem; font-weight: 850; }
.fsch-primary-button .wp-block-button__link::after { content: "↓"; margin-left: 24px; font-size: 1rem; }
.fsch-facts { overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 22px; background: rgba(255,255,255,.06); }
.fsch-fact { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 14px; padding: 18px 20px; }
.fsch-fact + .fsch-fact { border-top: 1px solid rgba(255,255,255,.12); }
.fsch-fact strong { color: var(--fsch-lime); font-size: 1.55rem; letter-spacing: -.05em; }
.fsch-fact span { color: #c3cbc7; font-size: .76rem; }

.fsch-section { padding-top: clamp(4.5rem,8vw,7rem) !important; padding-bottom: clamp(4.5rem,8vw,7rem) !important; }
.fsch-section-heading { display: grid !important; grid-template-columns: minmax(0,1fr) minmax(300px,480px); gap: 7vw; align-items: end !important; margin-bottom: 3rem !important; }
.fsch-section-heading > p { color: var(--fsch-muted); }

.fsch-championship-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.fsch-championship-card { display: flex; min-height: 295px; flex-direction: column; padding: 25px; border: 1px solid var(--fsch-line); border-radius: 20px; background: rgba(255,255,255,.75); color: var(--fsch-ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.fsch-championship-card:hover { border-color: #bcc5be; box-shadow: 0 18px 48px rgba(26,41,33,.08); transform: translateY(-3px); }
.fsch-championship-card.has-result { border-color: transparent; background: var(--fsch-forest); color: white; }
.fsch-card-head { display: flex; justify-content: space-between; gap: 14px; color: var(--fsch-muted); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.has-result .fsch-card-head { color: #a9beb4; }
.fsch-championship-card h3 { margin: 31px 0 13px; font-size: 1.65rem; line-height: 1.02; }
.fsch-card-prize { margin: 0 0 12px; color: var(--fsch-muted); font-size: .84rem; }
.has-result .fsch-card-prize { color: #b9ccc3; }
.fsch-card-status { margin-top: auto; padding-top: 17px; border-top: 1px solid var(--fsch-line); }
.has-result .fsch-card-status { border-color: rgba(255,255,255,.15); }
.fsch-card-status small, .fsch-card-status strong { display: block; }
.fsch-card-status small { margin-bottom: 5px; color: var(--fsch-muted); font-size: .59rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.has-result .fsch-card-status small { color: var(--fsch-lime); }
.fsch-card-status strong { color: #747c77; font-size: .78rem; font-weight: 500; }
.has-result .fsch-card-status strong { color: white; font-size: .92rem; font-weight: 750; }
.fsch-empty { grid-column: 1/-1; padding: 2rem; border: 1px dashed var(--fsch-line); border-radius: 18px; color: var(--fsch-muted); text-align: center; }

.fsch-latest-result { display: grid; grid-template-columns: minmax(280px,.62fr) minmax(0,1.38fr); gap: 8vw; align-items: center; }
.fsch-result-summary p { color: #425046; }
.fsch-awards { margin-top: 2.5rem; }
.fsch-award { padding: .8rem 0; border-top: 1px solid rgba(16,22,19,.2); }
.fsch-award small { display: block; color: #526254; font-size: .62rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.fsch-award strong { font-size: 1.15rem; }
.fsch-ranking { overflow: hidden; border-radius: 22px; background: white; color: var(--fsch-ink); box-shadow: 0 30px 70px rgba(21,42,31,.14); }
.fsch-ranking-head, .fsch-ranking-row { display: grid; grid-template-columns: 60px minmax(170px,1fr) minmax(120px,.65fr) 90px; gap: 15px; align-items: center; }
.fsch-ranking-head { padding: 14px 22px; background: var(--fsch-ink); color: #aeb6b1; font-size: .59rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.fsch-ranking-row { min-height: 69px; padding: 13px 22px; border-top: 1px solid var(--fsch-line); }
.fsch-ranking-row:first-of-type { background: #efffc2; }
.fsch-ranking-row .rank { color: var(--fsch-forest); font-weight: 850; }
.fsch-ranking-row .person { font-weight: 760; }
.fsch-ranking-row .club, .fsch-ranking-row .points { color: var(--fsch-muted); font-size: .85rem; }

.fsch-formula { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 26px; border-radius: 18px; background: #eef1eb; font-size: clamp(1rem,2vw,1.3rem); font-weight: 720; }
.fsch-formula b { color: var(--fsch-forest-2); }
.fsch-formula strong { padding: 7px 11px; border-radius: 9px; background: var(--fsch-lime); }
.fsch-rule-card { height: 100%; padding: 27px; border-radius: 18px; background: var(--fsch-paper); }
.fsch-rule-number { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--fsch-forest); color: var(--fsch-lime); font-size: .61rem; font-weight: 850; }
.fsch-figures-panel { padding: clamp(1.8rem,4vw,3rem); border-radius: 24px; }
.fsch-figure-list { columns: 2; column-gap: 2rem; padding-left: 1.2rem; }

.fsch-history-card { height: 100%; padding: 24px; border: 1px solid var(--fsch-line); border-radius: 17px; background: white; }
.fsch-history-card strong { display: inline-block; padding: 5px 8px; border-radius: 999px; background: var(--fsch-lime); font-size: .65rem; }
.fsch-document-link { display: block; padding: 26px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(255,255,255,.08); color: white; font-weight: 730; text-decoration: none; }
.fsch-document-link:hover { background: white; color: var(--fsch-forest); }

.fsch-event-shell, .fsch-championship-detail { padding-top: 4rem; padding-bottom: 6rem; }
.fsch-event-header, .fsch-championship-header { margin-bottom: 2rem; padding: clamp(2rem,5vw,4rem); border-radius: 24px; background: var(--fsch-forest); color: white; }
.fsch-event-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.fsch-event-meta span { padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .74rem; }
.fsch-event-content { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(250px,.5fr); gap: 3rem; }
.fsch-event-sidebar { padding: 1.5rem; border-radius: 18px; background: var(--fsch-paper); }
.fsch-archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }

@media (max-width: 960px) {
  .fsch-header-nav { display: none !important; }
  .fsch-hero-grid, .fsch-section-heading, .fsch-latest-result, .fsch-event-content { grid-template-columns: 1fr !important; }
  .fsch-championship-grid, .fsch-archive-grid { grid-template-columns: 1fr 1fr; }
  .fsch-history-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 620px) {
  .fsch-hero { min-height: 0; }
  .fsch-hero h1 { font-size: clamp(3.4rem,17vw,5.2rem) !important; }
  .fsch-championship-grid, .fsch-archive-grid, .fsch-history-grid { grid-template-columns: 1fr !important; }
  .fsch-ranking-head, .fsch-ranking-row { grid-template-columns: 40px 1fr 90px; padding-left: 13px; padding-right: 13px; }
  .fsch-ranking-head span:last-child, .fsch-ranking-row .points { display: none; }
  .fsch-figure-list { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
