@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin.woff2') format('woff2');
}

/* =================================================================
   HSG Linden — dark editorial theme
   Design language: content sits on the canvas. Structure comes from
   typography, scale, hairline rules and whitespace — not nested boxes.
   One deep brand red, used as a sharp accent.
   ================================================================= */

:root {
  /* Every colour and family maps to a theme.json preset so the native
     Styles editor (Design → Styles) restyles the WHOLE site, custom
     modules included. The literal value is only the fallback. */

  /* Canvas */
  --ink: var(--wp--preset--color--background, #0a0a0c);
  --ink-raised: var(--wp--preset--color--surface, #101014);
  --ink-sunken: color-mix(in srgb, var(--ink) 70%, #000);

  /* Type colours */
  --paper: var(--wp--preset--color--foreground, #f4f3f1);
  --muted: var(--wp--preset--color--muted, #a4a3aa);
  --faint: var(--wp--preset--color--subtle, #7c7b84);

  /* Lines — derived from the foreground so they follow recolours */
  --line: color-mix(in srgb, var(--paper) 10%, transparent);
  --line-2: color-mix(in srgb, var(--paper) 20%, transparent);

  /* Brand */
  --red: var(--wp--preset--color--primary, #e30613);          /* deep brand — solid fills */
  --red-deep: var(--wp--preset--color--primary-dark, #b8050f);
  --accent: var(--wp--preset--color--accent, #ff2d3a);       /* bright — text accents, links, rules on dark */

  /* Type families (loaded in functions.php) */
  --font-display: var(--wp--preset--font-family--heading, 'Archivo', system-ui, sans-serif);
  --font-body: var(--wp--preset--font-family--body, 'Hanken Grotesk', system-ui, sans-serif);

  /* Geometry */
  --container: 1240px;
  --measure: 44rem;
  --site-gutter: clamp(1.5rem, 3.75vw, 3.5rem);
  --radius: 10px;
  --radius-lg: 16px;
  --section-y: clamp(3.75rem, 7vw, 7rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 97%, #fff) 44%, var(--ink-sunken) 100%);
  color: var(--paper);
  color-scheme: dark;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: -0.003em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* German compound words: hyphenate prose so nothing overflows narrow screens */
.lead,
.hero-copy__lead,
.entry-summary,
.entry-content p,
.entry-content li,
.entry-content figcaption,
.news-card__excerpt,
.news-row__title,
.news-row__excerpt,
.section-index__text {
  hyphens: auto;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

::selection {
  background: color-mix(in srgb, var(--accent) 85%, transparent);
  color: #fff;
}

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

/* -----------------------------------------------------------------
   Typography primitives
   ----------------------------------------------------------------- */

.display,
.section-heading {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--paper);
  text-wrap: balance;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-label::before {
  content: '';
  width: 1.6rem;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

.lead,
.hero-copy__lead,
.entry-summary {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 0.6rem + 0.9vw, 1.35rem);
  line-height: 1.62;
  font-weight: 400;
  max-width: var(--measure);
}

.accent {
  color: var(--accent);
}

/* -----------------------------------------------------------------
   Layout primitives
   ----------------------------------------------------------------- */

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-container {
  width: min(calc(100% - var(--site-gutter) - var(--site-gutter)), var(--container));
  margin-inline: auto;
}

.site-main {
  flex: 1;
  position: relative;
}

/* Existing homepage content is stored as native block markup in WordPress.
   Older seeded markup does not carry alignwide/alignfull classes yet, so the
   frontend promotes those top-level sections to full width while the inner
   site-container keeps the readable measure. */
.front-page-content > .hero,
.front-page-content > .home-sponsors,
.front-page-content > .content-section {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.front-page-content > .hero > .site-container,
.front-page-content > .home-sponsors > .site-container,
.front-page-content > .content-section > .site-container {
  max-width: none;
}

.measure {
  max-width: var(--measure);
}

.hairline {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: clamp(2.75rem, 5vw, 4.5rem) 0;
}

.content-section {
  padding-block: var(--section-y);
}

.content-section--tight {
  padding-top: clamp(2rem, 4vw, 3rem);
}

/* -----------------------------------------------------------------
   Header
   ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(calc(-100% - 1rem));
  transition: transform 0.18s ease;
}

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

.site-header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}

.site-brand {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.85rem;
  width: fit-content;
}

/* Brand mark recreated as a CSS badge so the brand block stays native
   (Site Title + Site Tagline) and editable in the Site Editor. */
.site-brand::before {
  content: 'H';
  grid-row: 1 / span 2;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.site-brand:hover::before {
  background: var(--accent);
  transform: rotate(-3deg);
}

.site-brand .wp-block-site-title,
.site-brand__title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--paper);
  white-space: nowrap;
}

.site-brand .wp-block-site-title a {
  color: inherit;
  text-decoration: none;
}

.site-brand .wp-block-site-tagline,
.site-brand__subtitle {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: var(--faint);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* Native Navigation block, styled to match the editorial header. */
.site-header .wp-block-navigation {
  font-family: var(--font-body);
  --wp--style--block-gap: 0.15rem;
  display: flex;
  align-items: center;
  align-self: center;
}

.site-header .wp-block-navigation__responsive-container-content,
.site-header .wp-block-navigation__container {
  display: flex;
  align-items: center;
}

.site-header .wp-block-navigation .wp-block-navigation-item {
  display: flex;
  align-items: center;
}

.site-header .wp-block-navigation .wp-block-navigation-item__content {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.55rem 0.85rem;
  border-radius: 7px;
  transition: color 0.2s ease;
}

.site-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.site-header .wp-block-navigation .wp-block-navigation-item__content:focus-visible {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45rem;
}

.site-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
  color: var(--paper);
}

/* Mobile overlay menu (hamburger) on the dark canvas. */
.site-header .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--ink-raised);
  padding: 5rem 1.75rem 2.5rem;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  gap: 0.4rem;
  align-items: flex-start;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 6vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--paper);
  padding: 0.45rem 0;
}

.site-header .wp-block-navigation__responsive-container-open,
.site-header .wp-block-navigation__responsive-container-close {
  color: var(--paper);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 0 0 auto;
  margin: 0;
}

.site-header__actions .wp-block-buttons {
  margin: 0;
}

.site-header__actions .wp-block-button__link {
  padding: 0.68rem 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.header-sponsor-rotator {
  position: relative;
  width: clamp(8.25rem, 8vw, 9.5rem);
  height: 3rem;
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #f4f3f1;
  box-shadow: 0 16px 34px -28px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

.header-sponsor-rotator::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--red);
  z-index: 2;
}

.header-sponsor-rotator__logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0.32rem 0.55rem;
  opacity: 0;
  animation: hsg-header-sponsor 21s linear infinite;
}

.header-sponsor-rotator__logo img {
  width: auto;
  max-width: 100%;
  max-height: 2.35rem;
  object-fit: contain;
}

.header-sponsor-rotator__logo:nth-child(1) { animation-delay: 0s; }
.header-sponsor-rotator__logo:nth-child(2) { animation-delay: 3s; }
.header-sponsor-rotator__logo:nth-child(3) { animation-delay: 6s; }
.header-sponsor-rotator__logo:nth-child(4) { animation-delay: 9s; }
.header-sponsor-rotator__logo:nth-child(5) { animation-delay: 12s; }
.header-sponsor-rotator__logo:nth-child(6) { animation-delay: 15s; }
.header-sponsor-rotator__logo:nth-child(7) { animation-delay: 18s; }

@keyframes hsg-header-sponsor {
  0%, 13.5% {
    opacity: 1;
  }

  16.5%, 100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-sponsor-rotator__logo {
    animation: none;
  }

  .header-sponsor-rotator__logo:first-child {
    opacity: 1;
  }
}

/* -----------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------- */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--red);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--paper);
  background: transparent;
  border-color: var(--line-2);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--paper);
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

.link-arrow::after {
  content: '→';
  transition: transform 0.25s ease;
}

.link-arrow:hover::after {
  transform: translateX(0.3rem);
}

/* -----------------------------------------------------------------
   Home hero — Vereinsbild, schnelle Orientierung, klare Wege
   ----------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(34rem, 72vh, 45rem);
  overflow: clip;
  padding-top: clamp(5rem, 8vw, 8rem);
  padding-bottom: clamp(3.2rem, 7vw, 5.6rem);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  display: block;
  background:
    url('/wp-content/themes/hsg-linden/assets/images/home/spieltag-panorama.png')
    center center / cover no-repeat;
  opacity: 0.96;
  transform: scale(1.01);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  display: block;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 86%, transparent) 0%, color-mix(in srgb, var(--ink) 58%, transparent) 42%, color-mix(in srgb, var(--ink) 16%, transparent) 78%, color-mix(in srgb, var(--ink) 30%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 12%, transparent) 0%, color-mix(in srgb, var(--ink) 2%, transparent) 34%, color-mix(in srgb, var(--ink) 80%, transparent) 100%);
}

.hero + .content-section {
  padding-top: clamp(3rem, 5vw, 4.5rem);
}

.hero + .home-sponsors + .content-section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.hero__copy {
  max-width: 48rem;
}

.hero__title {
  margin-top: 1.2rem;
  font-size: clamp(2.55rem, 1.2rem + 5.2vw, 5.8rem);
  line-height: 0.96;
  max-width: 13ch;
}

.hero__title::after {
  content: '';
  display: block;
  width: clamp(4rem, 9vw, 7rem);
  height: 3px;
  margin-top: clamp(1rem, 1.8vw, 1.35rem);
  background: var(--red);
}

.hero__lead {
  margin-top: 1.55rem;
  max-width: 42rem;
  color: color-mix(in srgb, var(--paper) 82%, transparent);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Editorial section index (a wp:columns row of "HSG Karte" cells) */
.section-index {
  counter-reset: hsg-section-index;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.2vw, 1.75rem);
  margin-top: clamp(2rem, 5vw, 4rem);
}

.section-index.wp-block-columns {
  align-items: stretch;
}

.section-index .wp-block-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.section-index .link-arrow {
  margin-top: auto;
  padding-top: 0.9rem;
}

.section-index__item {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.85rem 1.85rem 1.85rem 0;
  transition: background-color 0.25s ease;
}

.section-index__item + .section-index__item {
  padding-left: 1.85rem;
  border-left: 1px solid var(--line);
}

.section-index__num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.section-index__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--paper);
  transition: color 0.2s ease;
}

.section-index__text {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
}

.section-index__more {
  margin-top: auto;
  padding-top: 0.6rem;
}

.section-index__item:hover .section-index__title {
  color: var(--accent);
}

.section-index__item:hover .link-arrow::after {
  transform: translateX(0.3rem);
}

/* -----------------------------------------------------------------
   Home info modules — quick answers before the news stream
   ----------------------------------------------------------------- */

.content-section--quick {
  padding-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

.home-quick {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 1.8%, transparent), transparent 58%),
    var(--ink-sunken);
  border-bottom: 1px solid var(--line);
}

.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.25rem);
}

.home-quick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 14rem;
  padding: clamp(1.25rem, 2.1vw, 1.55rem);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 4.5%, transparent), color-mix(in srgb, var(--paper) 1.5%, transparent)),
    var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--paper) 4.5%, transparent),
    0 22px 46px -38px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-quick-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--red);
}

.home-quick-card h3 {
  margin: 0;
  padding-right: 1.6rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.95rem + 0.55vw, 1.38rem);
  font-weight: 800;
  line-height: 1.08;
}

.home-quick-card p:not(.link-arrow) {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.home-quick-card .link-arrow {
  margin-top: auto;
  padding-top: 1.1rem;
}

.home-quick-card:hover,
.home-quick-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--paper) 5.5%, transparent),
    0 28px 58px -40px rgba(0, 0, 0, 0.98);
}

.home-club {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--red) 5.5%, transparent), transparent 34%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}

.home-club__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

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

.home-club__title {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 1.25rem + 2.8vw, 3.6rem);
  line-height: 1;
  max-width: 11ch;
}

.home-club__copy .lead {
  margin-top: 1.3rem;
}

.home-info-list {
  display: grid;
  gap: 0;
  margin: clamp(1.6rem, 3vw, 2.1rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.home-info-list li {
  margin: 0;
}

.home-info-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.82rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-info-list a::after {
  content: '→';
  color: var(--faint);
  transition: color 0.2s ease, transform 0.2s ease;
}

.home-info-list a:hover,
.home-info-list a:focus-visible {
  color: var(--accent);
}

.home-info-list a:hover::after,
.home-info-list a:focus-visible::after {
  color: var(--accent);
  transform: translateX(0.25rem);
}

.home-club__media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  grid-template-rows: auto auto;
  gap: clamp(0.8rem, 1.6vw, 1rem);
  align-items: end;
}

.home-club__image {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink-raised);
  box-shadow: 0 24px 55px -40px rgba(0, 0, 0, 0.95);
}

.home-club__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-club__image--main {
  grid-row: 1 / span 2;
  aspect-ratio: 4 / 3;
}

.home-club__image--small {
  aspect-ratio: 16 / 11;
}

/* -----------------------------------------------------------------
   Editorial page header (page / single / archive) — no panels, no boxes
   ----------------------------------------------------------------- */

.page-head {
  padding-top: clamp(3.75rem, 7vw, 6rem);
}

.page-head__back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  transition: color 0.2s ease;
}

.page-head__back::before {
  content: '←';
}

.page-head__back:hover {
  color: var(--accent);
}

/* Wrapper paragraph around the back link (block markup needs a block element) */
.page-head__backline {
  margin: 0;
}

.page-head__title {
  margin-top: 1rem;
  font-size: clamp(2.4rem, 1rem + 5vw, 4.5rem);
  line-height: 0.96;
  max-width: 18ch;
}

.page-head__lead {
  margin-top: 1.5rem;
}

.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin: 1.4rem 0 0;
  color: var(--faint);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.page-head__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.page-head__meta span + span::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.page-head + .content-section,
.page-head + .hairline {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

/* -----------------------------------------------------------------
   Article / page prose — sits directly on the canvas
   ----------------------------------------------------------------- */

.entry-content {
  color: var(--paper);
}

/* Reading column: default blocks sit at a comfortable measure and stay
   centered on the page. Wide / full blocks (e.g. card rows, galleries)
   break out of it. */
.entry-content > * {
  max-width: var(--measure);
  margin-block: 1.4rem;
  margin-inline: 0;
}

.entry-content > *:first-child {
  margin-top: 0;
}

/* Wide blocks (card rows, galleries) break out to the full container,
   flush with the page title's left edge. */
.entry-content > .alignwide {
  max-width: none;
  width: 100%;
  margin-inline: 0;
}

.entry-content > .alignfull {
  max-width: none;
  margin-inline: 0;
}

.entry-content p,
.entry-content li {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.78;
}

.entry-content p.has-medium-font-size {
  color: var(--paper);
  font-size: clamp(1.15rem, 0.9rem + 0.9vw, 1.4rem);
  line-height: 1.6;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--paper);
  line-height: 1.1;
  margin-top: 2.75rem;
  margin-bottom: 0.9rem;
}

.entry-content h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.25rem);
}

.entry-content h3 {
  font-size: 1.4rem;
}

/* Prose links get the accent underline — but the front page renders inside
   .entry-content too (core/post-content adds the class), so the homepage
   "chrome" (cards, CTAs, news tiles) is excluded and owns its own link look. */
.entry-content:not(.front-page-content) a:not(.wp-block-button__link):not(.wp-element-button) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s ease;
}

.entry-content:not(.front-page-content) a:not(.wp-block-button__link):not(.wp-element-button):hover {
  text-decoration-color: var(--accent);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.3rem;
}

.entry-content li {
  margin-block: 0.5rem;
}

.entry-content blockquote {
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 3px solid var(--red);
  font-size: 1.2rem;
  color: var(--paper);
}

.entry-content blockquote p {
  color: var(--paper);
}

.entry-featured-image {
  max-width: min(100%, calc(var(--container) - 4rem));
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.entry-featured-image img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

/* -----------------------------------------------------------------
   Gutenberg blocks — restyled to read as editorial content, not boxes
   ----------------------------------------------------------------- */

.entry-content .wp-block-columns {
  gap: clamp(1.5rem, 3vw, 2.75rem);
  margin-block: clamp(2rem, 4vw, 3rem);
  align-items: stretch;
}

/* "HSG Karte" — a dimensional info card. Powers the multi-column info
   rows on Mannschaften, Spielbetrieb, Mitgliedschaft and Kontakt. Sits
   raised off the canvas with a hairline frame and a red top edge that
   lights up on hover. */
.site-main .wp-block-column.is-style-hsg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 3%, transparent), transparent 42%),
    var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 2.4vw, 2.15rem);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--paper) 4%, transparent),
    0 18px 40px -28px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-main .wp-block-column.is-style-hsg-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.site-main .wp-block-column.is-style-hsg-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--paper) 6%, transparent),
    0 28px 55px -30px rgba(0, 0, 0, 0.95);
}

.site-main .wp-block-column.is-style-hsg-card:hover::before {
  transform: scaleX(1);
}

.site-main .wp-block-column.is-style-hsg-card .wp-block-heading,
.site-main .wp-block-column.is-style-hsg-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  color: var(--paper);
}

.site-main .wp-block-column.is-style-hsg-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 0.9rem;
}

.site-main .wp-block-column.is-style-hsg-card p:last-child {
  margin-bottom: 0;
}

.site-main .wp-block-column.is-style-hsg-card p a {
  color: var(--accent);
  font-weight: 600;
}

/* Link lists inside a card (e.g. team rosters) read as tappable rows. */
.site-main .wp-block-column.is-style-hsg-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-main .wp-block-column.is-style-hsg-card li {
  margin: 0;
}

.site-main .wp-block-column.is-style-hsg-card li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-main .wp-block-column.is-style-hsg-card li:last-child a {
  border-bottom: 0;
}

.site-main .wp-block-column.is-style-hsg-card li a::after {
  content: '→';
  color: var(--faint);
  transition: transform 0.2s ease, color 0.2s ease;
}

.site-main .wp-block-column.is-style-hsg-card li a:hover {
  color: var(--accent);
}

.site-main .wp-block-column.is-style-hsg-card li a:hover::after {
  color: var(--accent);
  transform: translateX(0.25rem);
}

/* A trailing link / arrow sits flush at the bottom edge so cards in a
   row align their call-to-action regardless of body length. */
.site-main .wp-block-column.is-style-hsg-card .link-arrow {
  margin-top: auto;
  padding-top: 1rem;
}

/* The group "card" style (page intro): just an open block, no frame. */
.site-main .wp-block-group.is-style-hsg-card {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* Front-page section index: native columns, styled as three concise
   entry cards without changing the editable block structure. */
.section-index .wp-block-column.is-style-hsg-card {
  counter-increment: hsg-section-index;
  min-height: 15rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 4.5%, transparent), color-mix(in srgb, var(--paper) 1.5%, transparent)),
    var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--paper) 4.5%, transparent),
    0 24px 55px -42px rgba(0, 0, 0, 0.95);
  padding: clamp(1.35rem, 2.4vw, 1.8rem);
}

.section-index .wp-block-column.is-style-hsg-card::before {
  display: block;
  transform: scaleX(1);
  opacity: 0.9;
}

.section-index .wp-block-column.is-style-hsg-card::after {
  content: '0' counter(hsg-section-index);
  position: absolute;
  top: 1.25rem;
  right: 1.35rem;
  color: color-mix(in srgb, var(--paper) 18%, transparent);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.section-index .wp-block-column.is-style-hsg-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--paper) 5.5%, transparent),
    0 30px 65px -42px rgba(0, 0, 0, 0.98);
}

/* Buttons inside content */
.entry-content .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.wp-block-button__link,
.wp-element-button {
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  background: var(--red);
  color: #fff;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line-2);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: transparent;
  border-color: var(--paper);
}

/* Media inside articles: generous breathing room, soft corners,
   quiet captions. Images keep their natural ratio — only the
   featured image and list thumbnails are cropped. */
.entry-content .wp-block-image,
.entry-content .wp-block-gallery,
.entry-content .wp-block-video,
.entry-content .wp-block-embed {
  margin-block: clamp(1.9rem, 3.5vw, 2.75rem);
}

.entry-content .wp-block-image img,
.entry-content .wp-block-gallery img,
.entry-content .wp-block-video video {
  border-radius: var(--radius);
}

.entry-content .wp-block-embed iframe {
  border-radius: var(--radius);
  max-width: 100%;
}

.entry-content figcaption,
.entry-featured-image figcaption {
  color: var(--faint);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-top: 0.7rem;
  margin-bottom: 0;
  text-align: left;
}

.entry-content .wp-block-gallery {
  gap: 0.75rem;
}

.entry-content blockquote cite {
  display: block;
  margin-top: 0.75rem;
  color: var(--faint);
  font-style: normal;
  font-size: 0.88rem;
}

.entry-content pre {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.92rem;
  line-height: 1.6;
}

.entry-content .alignwide {
  width: 100%;
  max-width: none;
}

.entry-content .site-container.alignwide {
  width: min(calc(100% - var(--site-gutter) - var(--site-gutter)), var(--container));
  max-width: var(--container);
  margin-inline: auto;
}

.wp-block-separator {
  border: 0;
  height: 1px;
  background: var(--line);
  margin-block: clamp(2.5rem, 5vw, 4rem);
}

.wp-block-table {
  margin-block: clamp(1.9rem, 3.5vw, 2.75rem);
  overflow-x: auto;
}

.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
}

.wp-block-table th,
.wp-block-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0.75rem;
  text-align: left;
}

.wp-block-table th {
  color: var(--faint);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom-color: var(--line-2);
}

.wp-block-table td {
  color: var(--muted);
}

.wp-block-table tr:last-child td {
  border-bottom-color: var(--line-2);
}

.wp-block-details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

/* -----------------------------------------------------------------
   Section header (e.g. "Neue Meldungen" + link)
   ----------------------------------------------------------------- */

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.section-header__title {
  margin-top: 0.7rem;
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.85rem);
  line-height: 1.0;
}

.section-link {
  flex-shrink: 0;
}

/* -----------------------------------------------------------------
   News teaser cards — the three-up grid on the front page
   ----------------------------------------------------------------- */

.card-grid {
  display: grid;
  gap: clamp(1.1rem, 2vw, 1.6rem);
}

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

.news-card {
  position: relative;
}

.news-card__link {
  display: block;
}

.news-card__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink-raised);
  aspect-ratio: 16 / 10;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.news-card:hover .news-card__image img {
  transform: scale(1.045);
}

.news-card__body {
  padding-top: 1.15rem;
}

/* When there is no image, anchor the card with a top hairline. */
.news-card--text .news-card__body {
  border-top: 1px solid var(--line-2);
  padding-top: 1.4rem;
}

.news-card__meta {
  margin: 0;
  color: var(--faint);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.news-card__title {
  margin: 0.7rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.4rem;
  line-height: 1.12;
  color: var(--paper);
  transition: color 0.2s ease;
}

.news-card:hover .news-card__title {
  color: var(--accent);
}

.news-card__excerpt {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* News index rendered by the native Query Loop block.
   Each post in the loop becomes a borderless editorial card. */
.card-grid--news.wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
}

.card-grid--news .wp-block-post {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 14rem;
  padding: clamp(1.25rem, 2.2vw, 1.65rem);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 4.5%, transparent), color-mix(in srgb, var(--paper) 1.5%, transparent)),
    var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--paper) 4%, transparent),
    0 24px 45px -36px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-grid--news .wp-block-post::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--red);
}

.card-grid--news .wp-block-post::after {
  content: '→';
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  color: var(--faint);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  transition: color 0.2s ease, transform 0.2s ease;
}

.card-grid--news .news-card__image {
  margin: 0 0 1.15rem;
  border: 1px solid var(--line);
  box-shadow: 0 22px 42px -34px rgba(0, 0, 0, 0.95);
}

.card-grid--news .news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-grid--news .news-card__meta {
  margin: 0;
  width: fit-content;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 3.5%, transparent);
}

.card-grid--news .news-card__title {
  margin: 1rem 0 0;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem);
  line-height: 1.08;
}

.card-grid--news .news-card__excerpt {
  margin: 0.8rem 0 0;
  padding-bottom: 1.8rem;
}

.card-grid--news .news-card__excerpt p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.card-grid--news .wp-block-post-excerpt__more-link {
  display: none;
}

.card-grid--news .wp-block-post:hover .news-card__title,
.card-grid--news .wp-block-post:hover .news-card__title a {
  color: var(--accent);
}

.card-grid--news .wp-block-post:hover .news-card__image img {
  transform: scale(1.045);
}

.card-grid--news .wp-block-post:hover,
.card-grid--news .wp-block-post:focus-within {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--paper) 6%, transparent),
    0 30px 58px -38px rgba(0, 0, 0, 0.98);
}

.card-grid--news .wp-block-post:hover::after,
.card-grid--news .wp-block-post:focus-within::after {
  color: var(--accent);
  transform: translateX(0.25rem);
}

/* -----------------------------------------------------------------
   News list — the "Aktuelles" index as a classic editorial list.
   Hairline-separated rows; the thumbnail sits to the right so the
   reading edge stays consistent for posts without an image.
   ----------------------------------------------------------------- */

.news-list.wp-block-post-template {
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list > .wp-block-post {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem;
  grid-template-areas: 'body media';
  column-gap: 1.25rem;
  align-items: start;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 3.5%, transparent), color-mix(in srgb, var(--paper) 1.2%, transparent)),
    var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--paper) 3.5%, transparent),
    0 22px 44px -38px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.news-list > .wp-block-post::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--red);
  opacity: 0.9;
}

/* Posts without featured image: text spans the full row width. */
.news-list > .wp-block-post:not(:has(.news-row__media)) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'body';
}

.news-row__media {
  grid-area: media;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--ink-sunken);
  aspect-ratio: 1 / 1;
}

.news-row__media a {
  display: block;
  width: 100%;
  height: 100%;
}

.news-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.news-row__body {
  grid-area: body;
  min-width: 0;
}

.news-row__meta {
  margin: 0;
  width: fit-content;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 3.5%, transparent);
  color: var(--faint);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.news-row__title {
  margin: 0.9rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1rem + 1.4vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--paper);
  text-wrap: balance;
}

.news-row__title a {
  color: inherit;
  transition: color 0.2s ease;
}

.news-row__excerpt {
  margin: 0.8rem 0 0;
  max-width: 62ch;
}

.news-row__excerpt p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-row__excerpt .wp-block-post-excerpt__more-link {
  display: none;
}

.news-row__more {
  display: inline-flex;
  margin-top: 1.1rem;
  padding-top: 0;
}

.news-list > .wp-block-post:hover,
.news-list > .wp-block-post:focus-within {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--paper) 5%, transparent),
    0 30px 56px -38px rgba(0, 0, 0, 0.98);
}

.news-list > .wp-block-post:hover .news-row__title a,
.news-list > .wp-block-post:focus-within .news-row__title a {
  color: var(--accent);
}

.news-list > .wp-block-post:hover .news-row__media img {
  transform: scale(1.05);
}

/* From tablet upwards the thumbnail grows into a 3:2 editorial image. */
@media (min-width: 720px) {
  .news-list > .wp-block-post {
    grid-template-columns: minmax(0, 1fr) clamp(13rem, 26vw, 19rem);
    column-gap: clamp(1.75rem, 4vw, 3rem);
    align-items: center;
  }

  .news-row__media {
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-lg);
  }
}

/* Query Loop pagination */
.wp-block-query-pagination {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  gap: 0.5rem;
}

.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
  color: var(--paper);
}

.entry-empty {
  color: var(--faint);
  font-size: 1.05rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

/* -----------------------------------------------------------------
   Pagination
   ----------------------------------------------------------------- */

.navigation.pagination {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2.6rem;
  padding-inline: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-numbers.current {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.page-numbers:not(.current):hover {
  color: var(--paper);
  border-color: var(--paper);
}

/* -----------------------------------------------------------------
   Prev/next navigation at the end of an article
   ----------------------------------------------------------------- */

.post-nav {
  max-width: var(--measure);
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
}

.post-nav .wp-block-post-navigation-link {
  margin: 0;
}

.post-nav__item--prev {
  grid-column: 1;
}

.post-nav__item--next {
  grid-column: 2;
  text-align: right;
}

.post-nav .wp-block-post-navigation-link__label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--faint);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.post-nav__item--prev .wp-block-post-navigation-link__label::before {
  content: '← ';
}

.post-nav__item--next .wp-block-post-navigation-link__label::after {
  content: ' →';
}

.post-nav .wp-block-post-navigation-link a {
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.post-nav .wp-block-post-navigation-link a:hover,
.post-nav .wp-block-post-navigation-link a:focus-visible {
  color: var(--accent);
}

/* -----------------------------------------------------------------
   404 — clean editorial, no CSS-art gimmick
   ----------------------------------------------------------------- */

.notfound {
  position: relative;
  overflow: clip;
  padding-block: clamp(5rem, 12vw, 9rem);
}

.notfound__atmos {
  position: absolute;
  top: -16rem;
  left: 50%;
  transform: translateX(-50%);
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--red) 16%, transparent), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}

.notfound__inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.notfound__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--paper);
  margin: 0.75rem 0 0;
}

.notfound__code span {
  color: var(--accent);
}

.notfound__title {
  margin-top: 1.25rem;
  font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem);
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* -----------------------------------------------------------------
   Footer — editorial colophon
   ----------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
  background: var(--ink-sunken);
  overflow: hidden;
}

.home-sponsors {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 1.8%, transparent);
}

.home-sponsors__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 2vw, 1.6rem);
  padding-block: clamp(0.85rem, 1.8vw, 1.25rem);
}

.home-sponsors__label {
  margin: 0;
  color: var(--faint);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-sponsors {
  position: relative;
  border-top: 1px solid color-mix(in srgb, var(--red) 38%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 16%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--red) 12%, transparent), color-mix(in srgb, var(--paper) 2.5%, transparent) 48%, transparent),
    var(--ink-raised);
}

.site-sponsors::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--red);
}

.site-sponsors__inner {
  padding-block: clamp(2.8rem, 5vw, 4.25rem);
}

.site-sponsors__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.35rem);
}

.site-sponsors__eyebrow {
  margin: 0;
}

.site-sponsors__title {
  margin: 0.55rem 0 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.25rem + 2.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.sponsor-carousel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding-block: 0.15rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent);
}

.sponsor-carousel__track {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.8vw, 1.35rem);
  width: max-content;
  animation: hsg-sponsors-scroll 44s linear infinite;
  will-change: transform;
}

.sponsor-carousel:hover .sponsor-carousel__track {
  animation-play-state: paused;
}

.sponsor-carousel__item {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(7.2rem, 10vw, 9.5rem);
  height: clamp(2.9rem, 4vw, 3.55rem);
  margin: 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--paper) 15%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  opacity: 0.9;
}

.sponsor-carousel__item img {
  width: auto;
  max-width: 100%;
  max-height: clamp(1.75rem, 2.4vw, 2.25rem);
  object-fit: contain;
}

@keyframes hsg-sponsors-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sponsor-carousel {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .sponsor-carousel__track {
    animation: none;
  }
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 5vw, 4.5rem);
}

.site-footer__eyebrow {
  margin: 0 0 1.25rem;
}

.site-footer .site-brand {
  margin-bottom: 1.1rem;
}

.site-footer__intro {
  max-width: 26rem;
}

.site-footer__intro p {
  color: var(--muted);
  margin: 0;
}

.site-footer__cta-row {
  margin-top: 1.5rem;
}

.site-footer__label {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.site-footer__list a,
.site-footer__contact a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-footer__list a:hover,
.site-footer__contact a:hover {
  color: var(--accent);
}

/* Footer "Website" column rendered by a vertical Navigation block. */
.site-footer__nav .wp-block-navigation__container {
  gap: 0.7rem;
}

.site-footer__nav .wp-block-navigation-item__content {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-footer__nav .wp-block-navigation-item__content:hover {
  color: var(--accent);
}

.site-footer__contact p {
  margin: 0 0 0.6rem;
  color: var(--muted);
}

.site-footer__contact strong {
  color: var(--paper);
  font-weight: 600;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.site-footer__legal a {
  color: var(--faint);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.site-footer__legal a:hover {
  color: var(--paper);
}

.site-footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  color: var(--faint);
  font-size: 0.82rem;
}

.site-footer__bottom p {
  margin: 0;
}

/* -----------------------------------------------------------------
   Motion — a single, restrained page-load reveal
   ----------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: hsg-reveal 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }

  .reveal-1 { animation-delay: 0.04s; }
  .reveal-2 { animation-delay: 0.12s; }
  .reveal-3 { animation-delay: 0.2s; }
  .reveal-4 { animation-delay: 0.28s; }
  .reveal-5 { animation-delay: 0.38s; }
}

@keyframes hsg-reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

/* =================================================================
   Home — front-page bands (Spieltag, Vereinsleben, Mitmachen)
   Added with the homepage rebuild. Each band is a native group with
   `content-section` so it inherits full-bleed + vertical rhythm; the
   modifier class carries the art direction.
   ================================================================= */

/* Promote the new full-bleed bands when the homepage is rendered from
   post-content (older seeds may lack alignfull on these groups). */
.front-page-content > .home-matchday,
.front-page-content > .home-events,
.front-page-content > .home-news,
.front-page-content > .home-join {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.front-page-content > .home-matchday > .site-container,
.front-page-content > .home-events > .site-container,
.front-page-content > .home-news > .site-container,
.front-page-content > .home-join > .site-container {
  max-width: none;
}

/* Alternating canvas tones give the long page a deliberate rhythm. */
.home-matchday {
  background:
    radial-gradient(120% 140% at 82% -10%, color-mix(in srgb, var(--red) 16%, transparent), transparent 52%),
    var(--ink-sunken);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-events {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 2.2%, transparent), transparent 40%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}

.home-news {
  background: var(--ink-sunken);
  border-bottom: 1px solid var(--line);
}

/* -----------------------------------------------------------------
   Spieltag / Spielbetrieb module — live-widget mount + quick links
   ----------------------------------------------------------------- */

.matchday-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.1rem, 2.4vw, 1.85rem);
  align-items: stretch;
}

/* The mount that holds the Handball4all / nuLiga embed. A pasted
   <iframe> simply fills the panel; the placeholder shows until then. */
.matchday-widget {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(17rem, 30vw, 21rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 4%, transparent), color-mix(in srgb, var(--paper) 1.2%, transparent)),
    var(--ink-raised);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--paper) 5%, transparent),
    0 26px 56px -42px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

.matchday-widget::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--red);
  z-index: 2;
}

/* Any embed the editor pastes (iframe / script widget) sits flush. */
.matchday-widget > .wp-block-html,
.matchday-widget iframe {
  flex: 1;
  width: 100%;
  border: 0;
}

.matchday-widget iframe {
  min-height: clamp(17rem, 30vw, 21rem);
  display: block;
}

.matchday-widget__placeholder {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  background-image:
    repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), color-mix(in srgb, var(--paper) 5%, transparent) calc(20% - 1px) 20%);
}

.matchday-widget__placeholder::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(8rem, 16vw, 12rem);
  height: clamp(8rem, 16vw, 12rem);
  transform: translate(-50%, -50%);
  border: 1px solid color-mix(in srgb, var(--paper) 8%, transparent);
  border-radius: 999px;
  pointer-events: none;
}

.matchday-widget__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.matchday-widget__headline {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 22ch;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.matchday-widget__note {
  position: relative;
  z-index: 1;
  margin: 0.35rem 0 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.matchday-widget__actions {
  position: relative;
  z-index: 1;
  margin-top: 1.1rem;
}

.matchday-side {
  display: flex;
}

.matchday-links {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: clamp(0.7rem, 1.4vw, 1rem);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.matchday-links li {
  margin: 0;
  display: flex;
}

.matchday-links a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  padding: clamp(1rem, 1.8vw, 1.3rem) clamp(1.1rem, 2vw, 1.5rem);
  padding-right: 2.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 3.5%, transparent), transparent 60%),
    var(--ink-raised);
  color: var(--paper);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.matchday-links a::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: 1.2rem;
  transform: translateY(-50%);
  color: var(--faint);
  font-family: var(--font-display);
  font-weight: 800;
  transition: color 0.2s ease, transform 0.2s ease;
}

.matchday-links strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.matchday-links span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.matchday-links a:hover,
.matchday-links a:focus-visible {
  transform: translateX(3px);
  border-color: var(--line-2);
}

.matchday-links a:hover strong,
.matchday-links a:focus-visible strong {
  color: var(--accent);
}

.matchday-links a:hover::after,
.matchday-links a:focus-visible::after {
  color: var(--accent);
  transform: translateY(-50%) translateX(0.25rem);
}

/* -----------------------------------------------------------------
   Vereinsleben / Höhepunkte — feature image + event list
   ----------------------------------------------------------------- */

.home-events__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.home-events__media {
  position: relative;
  margin: 0;
}

.home-events__media::before {
  content: '';
  position: absolute;
  inset: auto auto -0.85rem -0.85rem;
  width: 45%;
  height: 55%;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  border-bottom-left-radius: var(--radius-lg);
  opacity: 0.7;
  pointer-events: none;
}

.home-events__image {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-raised);
  box-shadow: 0 30px 65px -42px rgba(0, 0, 0, 0.95);
  aspect-ratio: 4 / 3;
}

.home-events__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.home-events__title {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem);
  line-height: 1;
}

.home-events__copy .lead {
  margin-top: 1.2rem;
}

.event-list {
  display: grid;
  gap: 0;
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.event-list li {
  margin: 0;
  padding: clamp(1rem, 1.8vw, 1.25rem) 0 clamp(1rem, 1.8vw, 1.25rem) 1.4rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.event-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: clamp(1.35rem, 2.3vw, 1.7rem);
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--red);
}

.event-list strong {
  display: block;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.event-list span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.home-events__copy .link-arrow {
  margin-top: clamp(1.4rem, 2.5vw, 1.9rem);
}

/* -----------------------------------------------------------------
   Mitmachen — full-bleed CTA over an action photograph
   ----------------------------------------------------------------- */

.home-join {
  position: relative;
  overflow: clip;
  border-top: 1px solid var(--line);
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  background: var(--ink-sunken);
}

.home-join::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url('/wp-content/themes/hsg-linden/assets/images/home/spielszene.jpg')
    center 28% / cover no-repeat;
  opacity: 0.5;
  transform: scale(1.02);
}

.home-join::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 120% at 12% 50%, color-mix(in srgb, var(--red) 28%, transparent), transparent 55%),
    linear-gradient(90deg, color-mix(in srgb, var(--ink-sunken) 95%, transparent) 0%, color-mix(in srgb, var(--ink-sunken) 82%, transparent) 44%, color-mix(in srgb, var(--ink-sunken) 50%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--ink-sunken) 50%, transparent), color-mix(in srgb, var(--ink-sunken) 85%, transparent));
}

.home-join__inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.home-join__title {
  margin-top: 0.9rem;
  font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4rem);
  line-height: 0.98;
  max-width: 16ch;
}

.home-join__lead {
  margin-top: 1.4rem;
  color: color-mix(in srgb, var(--paper) 86%, transparent);
  max-width: 40rem;
}

.home-join__actions {
  margin-top: 2rem;
}

.home-join__hint {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.home-join__hint a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s ease;
}

.home-join__hint a:hover {
  text-decoration-color: var(--accent);
}

/* -----------------------------------------------------------------
   Home bands — responsive
   ----------------------------------------------------------------- */

@media (max-width: 940px) {
  .matchday-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-events__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-events__media {
    order: 2;
    max-width: 34rem;
  }
}

@media (max-width: 600px) {
  .home-join__actions .wp-block-button {
    flex: 1 1 auto;
  }
}

/* -----------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------- */

@media (max-width: 1180px) {
  .header-sponsor-rotator {
    display: none;
  }
}

@media (max-width: 1024px) {
  .site-header__actions,
  .site-header .wp-block-buttons.site-header__actions {
    display: none;
  }

  /* Collapse the native Navigation block to its overlay (hamburger) below the
     desktop breakpoint, matching the original header behaviour. */
  .site-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex;
  }

  .site-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none;
  }

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

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

  .home-club__grid {
    grid-template-columns: 1fr;
  }

  .home-club__title {
    max-width: 14ch;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__intro {
    grid-column: 1 / -1;
    max-width: 38rem;
  }
}

@media (max-width: 720px) {
  :root {
    --site-gutter: clamp(1.25rem, 5.5vw, 1.75rem);
  }

  .site-container {
    width: min(calc(100% - var(--site-gutter) - var(--site-gutter)), var(--container));
  }

  .site-header__inner {
    min-height: 64px;
  }

  .post-nav {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .post-nav__item--next {
    grid-column: 1;
    text-align: left;
  }

  .post-nav__item--next .wp-block-post-navigation-link__label::after {
    content: '';
  }

  .post-nav__item--next .wp-block-post-navigation-link__label::before {
    content: '→ ';
  }

  .entry-featured-image {
    border-radius: var(--radius);
  }

  .section-index {
    grid-template-columns: 1fr;
    border-top: 0;
    gap: 1rem;
  }

  .hero {
    min-height: auto;
    padding-top: clamp(4.5rem, 14vw, 6.5rem);
    padding-bottom: clamp(2.8rem, 10vw, 4rem);
  }

  .hero::before {
    background-position: 58% center;
    opacity: 0.8;
  }

  .hero::after {
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--ink) 72%, transparent), color-mix(in srgb, var(--ink) 50%, transparent)),
      linear-gradient(180deg, color-mix(in srgb, var(--ink) 35%, transparent), color-mix(in srgb, var(--ink) 88%, transparent));
  }

  .home-quick-grid {
    grid-template-columns: 1fr;
  }

  .home-quick-card {
    min-height: auto;
  }

  .home-club__media {
    grid-template-columns: 1fr;
  }

  .home-club__image--main {
    grid-row: auto;
  }

  .section-index__item {
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
  }

  .section-index__item + .section-index__item {
    padding-left: 0;
    border-left: 0;
  }

  .section-index .wp-block-column.is-style-hsg-card {
    min-height: auto;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .card-grid--news {
    grid-template-columns: 1fr;
  }

  .entry-content .wp-block-columns {
    flex-direction: column;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-sponsors__head {
    display: block;
  }

  .home-sponsors__inner {
    display: block;
    padding-block: 0.9rem;
  }

  .home-sponsors__label {
    margin-bottom: 0.7rem;
  }

  .sponsor-carousel {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent);
  }

  .sponsor-carousel__item {
    width: 7rem;
    height: 2.85rem;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .btn-primary,
  .btn-secondary {
    flex: 1;
  }

  .hero__actions {
    width: 100%;
  }
}

/* =================================================================
   Subpage modules — art direction for interior pages
   The page template renders patterns inside .entry-content (reading
   column at --measure; .alignwide rows break out to the container).
   These modules give each interior page its own rhythm and depth,
   reusing the dark-editorial language of the home page. All markup is
   native blocks + className hooks, so every part stays editable.
   ================================================================= */

/* In-content section header: a labelled lead-in above an h2.
   The eyebrow already carries the red tick + accent; we just tune the
   spacing so the pairing reads as one unit rather than two blocks. */
.entry-content .eyebrow {
  margin-bottom: 0;
}

.entry-content .eyebrow + .wp-block-heading {
  margin-top: 0.55rem;
}

/* A short rule under select section headings, for a more deliberate feel. */
.entry-content .section-rule {
  position: relative;
  margin-top: 2.75rem;
}

.entry-content .section-rule::before {
  content: '';
  position: absolute;
  top: -1.4rem;
  left: 0;
  width: clamp(3rem, 6vw, 4.5rem);
  height: 2px;
  background: var(--red);
}

/* -----------------------------------------------------------------
   Stat strip — instant credibility row (Verein, Spielbetrieb)
   ----------------------------------------------------------------- */
.entry-content .stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--paper) 4%, transparent),
    0 24px 50px -40px rgba(0, 0, 0, 0.95);
}

.entry-content .stat-strip li {
  position: relative;
  margin: 0;
  padding: clamp(1.15rem, 2vw, 1.6rem);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 3.5%, transparent), transparent 60%),
    var(--ink-raised);
}

.entry-content .stat-strip li::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 2rem;
  height: 2px;
  background: var(--red);
}

.entry-content .stat-strip strong {
  display: block;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.1rem + 1vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.entry-content .stat-strip span {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* -----------------------------------------------------------------
   Step sequence — reuse the numbered editorial cards from the home
   section index for "how it works" flows (Mitgliedschaft).
   The .section-index rules (counter + 0N badge) already do the work;
   here we only let it sit inside the content column.
   ----------------------------------------------------------------- */
.entry-content .section-index {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
}

/* -----------------------------------------------------------------
   Timeline — milestone history (Verein)
   ----------------------------------------------------------------- */
.entry-content .timeline {
  display: grid;
  gap: 0;
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

/* Each row: a leading <strong> (the year) sits in an accent gutter,
   the following text run flows in the second column. Keep each item to
   exactly "<strong>YEAR</strong> description" so the two-column grid
   resolves cleanly. */
.entry-content .timeline li {
  position: relative;
  display: grid;
  grid-template-columns: clamp(3.25rem, 8vw, 4.75rem) minmax(0, 1fr);
  column-gap: clamp(1rem, 2.4vw, 1.85rem);
  align-items: baseline;
  margin: 0;
  padding: clamp(1rem, 1.9vw, 1.35rem) 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}

.entry-content .timeline li::before {
  content: '';
  position: absolute;
  left: clamp(3.25rem, 8vw, 4.75rem);
  top: clamp(1.45rem, 2.5vw, 1.9rem);
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 14%, transparent);
}

.entry-content .timeline li > strong:first-child {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* -----------------------------------------------------------------
   Split — image + copy band inside a page (Verein)
   ----------------------------------------------------------------- */
.entry-content .page-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
  margin-block: clamp(2.5rem, 5vw, 4rem);
}

.entry-content .page-split .wp-block-image {
  position: relative;
  margin: 0;
}

.entry-content .page-split .wp-block-image::before {
  content: '';
  position: absolute;
  inset: auto auto -0.85rem -0.85rem;
  width: 42%;
  height: 52%;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  border-bottom-left-radius: var(--radius-lg);
  opacity: 0.7;
  pointer-events: none;
}

.entry-content .page-split .wp-block-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 65px -42px rgba(0, 0, 0, 0.95);
}

.entry-content .page-split__copy > :first-child {
  margin-top: 0;
}

.entry-content .page-split--flip .wp-block-image {
  order: 2;
}

/* Team hero — the mannschaft variant of the split shows the real group
   photo at its natural aspect (croppping a lineup loses people at the
   edges) and carries the lineup as a quiet figcaption. */
.entry-content .mannschaft-photo {
  align-items: start;
}

.entry-content .mannschaft-photo .wp-block-image img {
  aspect-ratio: auto;
}

.entry-content .mannschaft-photo .wp-block-image figcaption {
  margin: 0.85rem 0 0;
  color: var(--faint);
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: left;
}

.entry-content .mannschaft-photo .page-split__copy .stat-strip--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

/* -----------------------------------------------------------------
   Team facts — the Steckbrief key-value rows on a team page
   (Liga / Trainer / Kontakt). List markup so everything stays a
   native, editable block.
   ----------------------------------------------------------------- */
.entry-content .team-facts {
  display: grid;
  margin: clamp(1.1rem, 2vw, 1.6rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-2);
}

.entry-content .team-facts li {
  display: grid;
  grid-template-columns: clamp(6.25rem, 26%, 8.25rem) minmax(0, 1fr);
  column-gap: clamp(0.9rem, 2vw, 1.4rem);
  align-items: baseline;
  margin: 0;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
}

.entry-content .team-facts li > span:first-child {
  color: var(--faint);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.entry-content .team-facts li strong {
  color: var(--paper);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.5;
}

/* -----------------------------------------------------------------
   Training table — the wp:table with real Tag/Uhrzeit/Halle rows gets
   a card frame so it reads as a module, not a floating spreadsheet.
   ----------------------------------------------------------------- */
.entry-content .training-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 3%, transparent), transparent 55%),
    var(--ink-raised);
  padding: clamp(0.35rem, 1vw, 0.6rem) clamp(1rem, 2vw, 1.5rem);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--paper) 4%, transparent),
    0 24px 50px -40px rgba(0, 0, 0, 0.95);
}

.entry-content .training-table th,
.entry-content .training-table td {
  padding: 0.9rem 1rem 0.9rem 0;
}

.entry-content .training-table td:first-child {
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.entry-content .training-table tr:last-child td {
  border-bottom: 0;
}

/* -----------------------------------------------------------------
   Team index — the Mannschaften overview rows: team name + league +
   arrow. Navigation, not prose (see link override below).
   ----------------------------------------------------------------- */
.entry-content .team-index {
  display: grid;
  gap: 1px;
  margin: clamp(1.1rem, 2vw, 1.5rem) 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--paper) 4%, transparent),
    0 24px 50px -40px rgba(0, 0, 0, 0.95);
}

.entry-content .team-index li {
  margin: 0;
}

.entry-content .team-index a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.95rem 2.7rem 0.95rem 1.15rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 3%, transparent), transparent 60%),
    var(--ink-raised);
  transition: background-color 0.2s ease;
}

.entry-content .team-index a strong {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.entry-content .team-index a span {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: right;
}

.entry-content .team-index a::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: 1.05rem;
  transform: translateY(-50%);
  color: var(--faint);
  font-family: var(--font-display);
  transition: color 0.2s ease, transform 0.2s ease;
}

.entry-content .team-index a:hover::after,
.entry-content .team-index a:focus-visible::after {
  color: var(--accent);
  transform: translate(3px, -50%);
}

/* -----------------------------------------------------------------
   Hall cards — addresses with route links (Anfahrt). Builds on the
   .is-style-hsg-card frame; adds an address treatment + locality chip.
   ----------------------------------------------------------------- */
.site-main .wp-block-column.is-style-hsg-card .hall-card__locality {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 3.5%, transparent);
  color: var(--faint);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-main .wp-block-column.is-style-hsg-card .hall-card__address {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.site-main .wp-block-column.is-style-hsg-card .hall-card__address strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* -----------------------------------------------------------------
   Role / person cards — Vorstand & Ansprechpartner
   ----------------------------------------------------------------- */
.site-main .wp-block-column.is-style-hsg-card .role-tag {
  display: inline-flex;
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-main .wp-block-column.is-style-hsg-card .person-name {
  margin: 0 0 0.4rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* -----------------------------------------------------------------
   Download list — PDF / document rows (Formulare, Mitgliedschaft)
   ----------------------------------------------------------------- */
.entry-content .download-list {
  display: grid;
  gap: clamp(0.6rem, 1.2vw, 0.85rem);
  margin: clamp(1.4rem, 2.5vw, 1.9rem) 0 0;
  padding: 0;
  list-style: none;
}

.entry-content .download-list li {
  margin: 0;
}

.entry-content .download-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.25rem);
  padding: clamp(1rem, 1.9vw, 1.3rem) clamp(1.1rem, 2vw, 1.45rem);
  padding-right: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 3.5%, transparent), transparent 60%),
    var(--ink-raised);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.entry-content .download-list a::before {
  content: 'PDF';
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--red) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--red) 40%, transparent);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.entry-content .download-list a::after {
  content: '↓';
  position: absolute;
  top: 50%;
  right: 1.2rem;
  transform: translateY(-50%);
  color: var(--faint);
  font-family: var(--font-display);
  font-weight: 800;
  transition: color 0.2s ease, transform 0.2s ease;
}

.entry-content .download-list a:hover,
.entry-content .download-list a:focus-visible {
  transform: translateX(3px);
  border-color: var(--line-2);
}

.entry-content .download-list a:hover::after,
.entry-content .download-list a:focus-visible::after {
  color: var(--accent);
  transform: translateY(-50%) translateY(0.15rem);
}

/* -----------------------------------------------------------------
   Season grid — archive index tiles (Archiv)
   ----------------------------------------------------------------- */
.entry-content .season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: clamp(0.55rem, 1.2vw, 0.85rem);
  margin: clamp(1.4rem, 2.5vw, 1.9rem) 0 0;
  padding: 0;
  list-style: none;
}

.entry-content .season-grid li {
  position: relative;
  margin: 0;
  padding: clamp(0.95rem, 1.8vw, 1.2rem) clamp(1rem, 1.9vw, 1.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 3%, transparent), transparent 60%),
    var(--ink-raised);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.2s ease;
}

.entry-content .season-grid li::before {
  content: 'Saison';
  display: block;
  margin-bottom: 0.3rem;
  color: var(--faint);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.entry-content .season-grid li:first-child {
  border-color: color-mix(in srgb, var(--red) 45%, transparent);
}

.entry-content .season-grid li:first-child::after {
  content: 'Aktuell';
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  color: var(--accent);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.entry-content .season-grid li:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  color: var(--accent);
}

/* -----------------------------------------------------------------
   CTA panel — a self-contained closing call to action. A contained
   cousin of the home "Mitmachen" band: red-glow corner, hairline
   frame, red top edge. Reused (deliberately) as the page sign-off.
   ----------------------------------------------------------------- */
.entry-content .cta-panel {
  position: relative;
  margin-top: clamp(2.75rem, 5.5vw, 4.5rem);
  padding: clamp(2rem, 4vw, 3.4rem);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 150% at 100% 0%, color-mix(in srgb, var(--red) 20%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 3%, transparent), transparent 45%),
    var(--ink-raised);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--paper) 5%, transparent),
    0 32px 64px -46px rgba(0, 0, 0, 0.95);
}

.entry-content .cta-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--red);
}

.entry-content .cta-panel > .eyebrow {
  position: relative;
}

.entry-content .cta-panel__title {
  margin: 0.7rem 0 0;
  font-size: clamp(1.85rem, 1.2rem + 2.2vw, 2.9rem);
  line-height: 1;
  max-width: 18ch;
}

.entry-content .cta-panel .lead {
  margin-top: 1.1rem;
  color: color-mix(in srgb, var(--paper) 82%, transparent);
}

.entry-content .cta-panel .wp-block-buttons {
  margin-top: 1.7rem;
}

.entry-content .cta-panel__hint {
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Compact variant — a slim closing band for pages that repeat in series
   (each team page ends with the same Spielplan pointer; the full-size
   panel would dominate 18 near-identical pages). Text left, buttons
   right, roughly half the height. */
.entry-content .cta-panel--compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
  padding: clamp(1.4rem, 2.8vw, 2.1rem) clamp(1.5rem, 3vw, 2.4rem);
}

.entry-content .cta-panel--compact > .eyebrow,
.entry-content .cta-panel--compact > .cta-panel__title,
.entry-content .cta-panel--compact > .lead {
  grid-column: 1;
}

.entry-content .cta-panel--compact .cta-panel__title {
  margin-top: 0.5rem;
  font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.8rem);
  max-width: none;
}

.entry-content .cta-panel--compact .lead {
  margin-top: 0.55rem;
  font-size: 0.98rem;
}

.entry-content .cta-panel--compact .wp-block-buttons {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin-top: 0;
  flex-direction: column;
  align-items: stretch;
}

/* The prose link rule (accent + underline) is meant for body copy. The
   interior modules below are interactive UI — quick-link rows, download
   rows, arrow links — so opt them out of the underline. The trailing
   :not(.wp-element-button) lifts these to the same specificity as the
   prose rule, and source order then wins. */
.entry-content:not(.front-page-content) .home-info-list a:not(.wp-element-button),
.entry-content:not(.front-page-content) .matchday-links a:not(.wp-element-button),
.entry-content:not(.front-page-content) .download-list a:not(.wp-element-button),
.entry-content:not(.front-page-content) .team-index a:not(.wp-element-button),
.entry-content:not(.front-page-content) .team-facts a:not(.wp-element-button),
.entry-content:not(.front-page-content) .link-arrow a:not(.wp-element-button) {
  text-decoration: none;
}

.entry-content:not(.front-page-content) .team-facts a:not(.wp-element-button) {
  color: var(--paper);
}

.entry-content:not(.front-page-content) .team-facts a:not(.wp-element-button):hover,
.entry-content:not(.front-page-content) .team-facts a:not(.wp-element-button):focus-visible {
  color: var(--accent);
}

.entry-content:not(.front-page-content) .home-info-list a:not(.wp-element-button) {
  color: var(--paper);
}

.entry-content:not(.front-page-content) .home-info-list a:not(.wp-element-button):hover,
.entry-content:not(.front-page-content) .home-info-list a:not(.wp-element-button):focus-visible {
  color: var(--accent);
}

/* Roster rows inside cards (team links) are navigation, not prose: keep the
   paper-on-hairline row look instead of the prose accent-underline.
   The :not() lifts specificity above the prose rule. */
.site-main .wp-block-column.is-style-hsg-card li a:not(.wp-element-button) {
  text-decoration: none;
  color: var(--paper);
}

.site-main .wp-block-column.is-style-hsg-card li a:not(.wp-element-button):hover,
.site-main .wp-block-column.is-style-hsg-card li a:not(.wp-element-button):focus-visible {
  color: var(--accent);
}

/* -----------------------------------------------------------------
   Subpage modules — responsive
   ----------------------------------------------------------------- */
@media (max-width: 900px) {
  .entry-content .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-content .page-split {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 2.25rem);
  }

  .entry-content .page-split--flip .wp-block-image {
    order: 0;
  }
}

@media (max-width: 700px) {
  .entry-content .cta-panel--compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-content .cta-panel--compact .wp-block-buttons {
    grid-column: 1;
    grid-row: auto;
    margin-top: 1.2rem;
    flex-direction: row;
  }
}

@media (max-width: 560px) {
  .entry-content .stat-strip {
    grid-template-columns: 1fr;
  }

  .entry-content .season-grid {
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  }

  .entry-content .team-index a {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .entry-content .team-index a span {
    margin-left: 0;
    text-align: left;
  }

  .entry-content .team-facts li {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.15rem;
  }
}

