/*
Theme Name: TV Gut-Heil Krefeld
Description: Vereinswebsite des TV Gut-Heil 1895 Krefeld e.V. mit Sportangeboten, Filter und Probetraining.
Version: 1.3.1
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: tv-gut-heil-theme
*/
:root {
  color-scheme: light;
  --canvas: #fcfaf4;
  --ink: #21221d;
  --muted: #585950;
  --line: #dedbd0;
  --yellow: #ffda47;
  --gold-dark: #76601b;
  --white: #fffefa;
  --gutter: clamp(1.25rem, 4.8vw, 4.25rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select { font: inherit; }
button, summary, select { cursor: pointer; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.055em; }
:focus-visible { outline: 3px solid #715300; outline-offset: 4px; }
[id] { scroll-margin-top: 1rem; }

.shell {
  max-width: 89rem;
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: .7rem;
  left: .7rem;
  z-index: 5;
  padding: .65rem 1rem;
  background: var(--yellow);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header { border-bottom: 1px solid var(--line); }
.header-layout {
  min-height: 4.95rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  justify-self: start;
  text-decoration: none;
  white-space: nowrap;
}
.brand-text { display: grid; line-height: 1.12; }
.brand-text strong { font-size: 1rem; letter-spacing: -.04em; }
.brand-text > span { margin-top: .16rem; font-size: .75rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: clamp(.85rem, 2.4vw, 2.3rem); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #383a32;
  font-weight: 650;
  font-size: .9rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .footer-layout a:hover { text-decoration: underline; text-underline-offset: .23em; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: .76rem 1.16rem;
  min-height: 3rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  font-size: .93rem;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: #41443a; }
.button-yellow { background: var(--yellow); color: var(--ink); }
.button-yellow:hover { background: #f2c934; }
.header-cta { justify-self: end; min-height: 2.75rem; }

.hero {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: center;
  gap: clamp(2.2rem, 5vw, 4.8rem);
  padding-block: clamp(2.7rem, 5vw, 4.5rem);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .58rem;
  margin-bottom: 1rem;
  font-weight: 780;
  font-size: .875rem;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.small-line { display: inline-block; flex: 0 0 1.27rem; height: 3px; background: var(--gold-dark); }
.hero h1 { font-size: clamp(2.9rem, 5.55vw, 5.25rem); font-weight: 850; line-height: .99; letter-spacing: -.072em; }
.highlight {
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 91%, transparent 91%);
  padding-inline: .04em .1em;
  margin-inline-start: -.04em;
  white-space: nowrap;
}
.hero-description { margin-block: 1.45rem 1.65rem; max-width: 28rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.18rem); }
.hero-figure { position: relative; margin: 0; }
.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.48;
  border-radius: 1.15rem;
  background: #ded6bd;
  object-fit: cover;
  object-position: 51% 49%;
}
.hero-caption {
  position: absolute;
  bottom: .7rem;
  right: .7rem;
  border-radius: .28rem;
  background: rgb(33 34 29 / 89%);
  color: var(--white);
  font-size: .75rem;
  padding: .18rem .45rem;
}

.program-section {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.3rem, 4vw, 3.8rem) clamp(2.8rem, 5vw, 4.8rem);
  background: #f4f1e7;
}
.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  column-gap: 2rem;
  row-gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-intro h2, .contact-copy h2 { font-size: clamp(2.25rem, 4vw, 3.45rem); font-weight: 820; }
.section-intro p { margin-top: .55rem; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button {
  min-height: 2.75rem;
  border-radius: 99px;
  border: 1px solid #ccc9bd;
  color: var(--ink);
  background: var(--canvas);
  padding: .45rem .8rem;
  font-size: .875rem;
  font-weight: 700;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.program-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--white);
}
.card-photo { width: 100%; height: auto; aspect-ratio: 1.85; object-fit: cover; background: #ded6bd; }
.card-body { padding: clamp(.9rem, 1.45vw, 1.25rem); }
.card .card-category {
  display: flex;
  align-items: center;
  gap: .42rem;
  color: #595435;
  font-size: .875rem;
  font-weight: 720;
  line-height: 1.4;
  margin-bottom: .42rem;
}
.category-mark { display: inline-block; height: .44rem; width: .44rem; border-radius: 50%; background: #b38317; }
.card h3 { font-size: clamp(1.23rem, 1.85vw, 1.66rem); font-weight: 810; overflow-wrap: anywhere; }
.card h3 + p { min-height: 4.8em; margin-top: .48rem; color: var(--muted); line-height: 1.46; }
.card details { margin-top: .55rem; border-top: 1px solid var(--line); }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.card summary, .faq summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 2.75rem;
  color: var(--ink);
  font-weight: 750;
}
.card summary:hover, .faq summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.card summary::after, .faq summary::after {
  content: "";
  flex: 0 0 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: linear-gradient(var(--ink),var(--ink)) center / .59rem 1.5px no-repeat,
              linear-gradient(var(--ink),var(--ink)) center / 1.5px .59rem no-repeat, #f3edda;
}
.card details[open] summary::after, .faq[open] summary::after {
  background: linear-gradient(var(--ink),var(--ink)) center / .59rem 1.5px no-repeat, #f3edda;
}
.card-details { margin-top: .25rem; }
.card-details p, .card-details dd { color: var(--muted); }
.card-details dl { margin-block: .85rem; }
.card-details dt { font-weight: 750; font-size: .88rem; }
.card-details dd + dt { margin-top: .35rem; }
.trial-link, .text-link { font-weight: 760; text-underline-offset: .22em; }
.trial-link { display: inline-flex; align-items: center; min-height: 2.75rem; }
.schedule-note { color: var(--muted); font-size: .9rem; margin-top: 1.25rem; }

.club-section {
  background: #292b23;
  color: var(--white);
}
.club-section :focus-visible { outline-color: var(--yellow); }
.club-layout {
  padding-block: clamp(2.5rem, 5vw, 4.7rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.1rem, 4vw, 4.8rem);
  align-items: end;
}
.club-section .eyebrow { color: #f7e296; }
.club-section .small-line { background: var(--yellow); }
.club-section h2 { font-size: clamp(2.6rem, 5.7vw, 5rem); font-weight: 830; line-height: 1.03; }
.club-copy { max-width: 31rem; color: #efede2; font-size: 1.075rem; }
.club-copy .text-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .7rem; color: #ffe17c; }

.contact-section {
  display: grid;
  align-items: start;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.65rem, 6vw, 6.25rem);
  padding-block: clamp(2.8rem, 6.5vw, 5.8rem);
}
.contact-copy > p { max-width: 29rem; margin-top: .9rem; color: var(--muted); }
.faq { border-top: 1px solid var(--line); margin-top: 1.2rem; max-width: 29rem; }
.faq p { color: var(--muted); padding-block: .3rem .6rem; }
.contact-panel { padding: clamp(1.25rem, 3.4vw, 2.35rem); border-radius: 1rem; background: #ffe58a; }
.contact-panel h3 { margin-bottom: 1.05rem; font-size: clamp(1.4rem, 2.5vw, 2rem); }
.contact-panel label { display: block; margin-bottom: .36rem; font-size: .92rem; font-weight: 700; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  width: .43rem;
  height: .43rem;
  right: 1rem;
  top: calc(50% - .28rem);
  position: absolute;
  border: solid var(--ink);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
select {
  appearance: none;
  width: 100%;
  min-height: 3rem;
  padding: .55rem 2rem .55rem .8rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid #998542;
  border-radius: .5rem;
  text-overflow: ellipsis;
}
.mail-button { margin-top: .9rem; }
.contact-address { margin-top: .75rem; font-size: .9rem; }
.contact-address a { overflow-wrap: anywhere; text-underline-offset: .2em; }

.site-footer { border-top: 1px solid var(--line); font-size: .875rem; }
.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .4rem 1rem;
  flex-wrap: wrap;
  padding-block: 1rem;
}
.footer-layout p { font-weight: 730; }
.footer-links { display: flex; align-items: center; gap: .45rem 1.1rem; flex-wrap: wrap; color: var(--muted); }
.footer-layout a { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: .18em; }

@media (max-width: 66rem) {
  .hero { gap: 2rem; }
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card h3 + p { min-height: 2.95em; }
  .card h3 { font-size: clamp(1.35rem, 2.8vw, 1.75rem); }
}
@media (max-width: 48rem) {
  .header-layout { grid-template-columns: 1fr auto; gap: 0 .65rem; padding-top: .75rem; }
  .site-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    gap: clamp(.78rem, 5vw, 1.65rem);
    margin-top: .42rem;
  }
  .site-nav a { font-size: .875rem; }
  .hero { grid-template-columns: 1fr; gap: 1.65rem; padding-block: 2.25rem 1.7rem; }
  .hero h1 { font-size: clamp(3rem, 10.5vw, 5rem); }
  .hero-description { margin-block: .95rem 1.15rem; }
  .hero-figure img { aspect-ratio: 1.55; border-radius: .85rem; }
  .club-layout, .contact-section { grid-template-columns: 1fr; }
  .club-section h2 { font-size: clamp(2.65rem, 9.5vw, 4rem); }
}
@media (max-width: 35rem) {
  .program-grid { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .card-photo { aspect-ratio: 2.15; }
  .card h3 + p { min-height: 0; }
  .section-intro { margin-bottom: 1.15rem; }
  .filters button { padding-inline: .68rem; }
  .mail-button { width: 100%; }
}
@media (max-width: 24rem) {
  .header-layout { padding-inline: .85rem; gap: 0 .45rem; }
  .brand { gap: .48rem; }
  .header-cta { padding-inline: .64rem; font-size: .85rem; }
  .site-nav { gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

.brand-logo { object-fit: contain; width: 3.15rem; height: 3.15rem; border-radius: 50%; }
.inner-content { padding-block: clamp(2.5rem, 6vw, 5rem); }
.page-content { max-width: 52rem; overflow-wrap: anywhere; }
.page-content > * + * { margin-top: 1.15rem; }
.page-content h1 { font-size: clamp(2.5rem, 6vw, 4.65rem); }
.page-content h2 { font-size: clamp(1.7rem, 3.9vw, 2.7rem); }
.page-content h3 { font-size: clamp(1.3rem, 2.5vw, 1.85rem); }
.page-content img { height: auto; }
.page-content iframe { max-width: 100%; }
.page-content a { text-underline-offset: .2em; }
.page-content :where(input, textarea, select, table) { max-width: 100%; }
.page-content table { border-collapse: collapse; }
.page-content :where(td, th) { padding: .45rem .65rem; border: 1px solid var(--line); }
.page-content .wp-block-table { overflow-x: auto; }
.page-navigation { margin-top: 1.75rem; }
body.admin-bar [id] { scroll-margin-top: 3.1rem; }

@media (max-width: 24rem) {
  .brand-logo { width: 2.4rem; height: 2.4rem; }
}

.club-links { display: flex; flex-wrap: wrap; column-gap: 1.15rem; }
.card-details dd a { text-underline-offset: .18em; }
.venues-section { padding-block: clamp(2.5rem, 4.5vw, 4.5rem); }
.venues-grid, .board-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.venue-card, .board-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: .85rem;
  padding: clamp(1.05rem, 2vw, 1.55rem);
}
.venue-card { display: flex; flex-direction: column; align-items: flex-start; }
.venue-card h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); overflow-wrap: anywhere; }
.venue-use { margin-top: .5rem; font-size: .9rem; font-weight: 720; color: var(--gold-dark); }
.venue-card address { margin-top: .75rem; font-style: normal; color: var(--muted); }
.venue-arrival { margin-top: .35rem; font-size: .9rem; color: var(--muted); }
.venue-card .text-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: auto; padding-top: .45rem; }
.venue-card:target { border-color: var(--gold-dark); outline: 2px solid var(--gold-dark); outline-offset: 3px; }

.subpage-hero { background: #f4f1e7; border-bottom: 1px solid var(--line); }
.subpage-heading, .history-hero { padding-block: clamp(2.5rem, 5vw, 5.2rem); }
.subpage-hero h1 { font-size: clamp(2.45rem, 6vw, 5rem); font-weight: 830; overflow-wrap: anywhere; hyphens: auto; }
.history-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, .38fr); align-items: center; gap: clamp(1.25rem, 4.5vw, 4.5rem); }
.history-hero h1 { max-width: 13ch; }
.history-hero h1 + p { max-width: 36rem; margin-top: .8rem; color: var(--muted); font-size: 1.1rem; }
.history-year { padding: clamp(1.2rem, 3vw, 2.2rem); background: var(--yellow); border-radius: .95rem; }
.history-year strong { display: block; font-size: clamp(3rem, 8vw, 6rem); font-weight: 850; line-height: .96; letter-spacing: -.075em; }
.history-year span { display: block; margin-top: .45rem; font-weight: 700; }
.history-body, .board-body { padding-block: clamp(2.25rem, 4.75vw, 4.5rem); }
.history-content { max-width: 57rem; margin-inline: auto; }
.history-content > :where(p, ul, ol) { max-width: 67ch; }
.history-content > p:first-child { font-size: 1.12rem; }
.history-content hr { border: 0; border-top: 1px solid var(--line); margin-block: 1.8rem; }
.history-content :where(figure, div, p) { max-width: 100%; }
.history-content table {
  width: 100% !important;
  height: auto !important;
  border: 0 !important;
  border-collapse: separate;
  border-spacing: 0 .45rem;
  background: transparent !important;
}
.history-content col { width: auto !important; }
.history-content :is(td, th) {
  width: auto !important;
  height: auto !important;
  padding: .85rem 1rem !important;
  border: 0 !important;
  background: var(--white) !important;
  vertical-align: top;
}
.history-content :is(td, th):first-child:not([colspan]) {
  width: 5.6rem !important;
  background: #f7ebba !important;
  font-weight: 800;
}
/* The original chronology uses inline font sizes and spanning cells for its introduction. */
.history-content :is(td, th) span { font-family: inherit !important; font-size: inherit !important; }
.history-content :is(td, th) { font-size: 1rem; line-height: 1.58; }
.history-content tr > [colspan]:only-child {
  text-align: left;
  background: transparent !important;
  padding-inline: 0 !important;
}
.history-content tr > [colspan]:only-child hr { margin-block: .2rem; }
.history-content tr:first-child > [colspan]:only-child,
.history-content tr:has(+ tr > :nth-child(2)) > [colspan]:only-child {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -.035em;
}
.history-content tr > :first-child { border-radius: .55rem 0 0 .55rem; }
.history-content tr > :last-child { border-radius: 0 .55rem .55rem 0; }
.history-content tr > :only-child { border-radius: .55rem; }
.history-content :is(td, th) > :where(p, ul) + :where(p, ul) { margin-top: .45rem; }
.board-grid { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.board-card strong, .board-card span { display: block; overflow-wrap: anywhere; }
.board-card strong { font-size: 1.2rem; }
.board-card span, .board-note { color: var(--muted); }
.board-note { margin-bottom: 1.15rem; }

@media (max-width: 63rem) {
  .venues-grid, .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  .site-nav { flex-wrap: wrap; gap: 0 clamp(.65rem, 3.2vw, 1.3rem); }
}
@media (max-width: 40rem) {
  .history-hero { grid-template-columns: 1fr; }
  .history-year { display: flex; width: fit-content; align-items: baseline; gap: .75rem; }
  .history-year span { margin-top: 0; }
}
@media (max-width: 35rem) {
  .venues-grid, .board-grid { grid-template-columns: 1fr; gap: .8rem; }
  .history-content :is(td, th) { padding: .68rem .65rem !important; }
  .history-content :is(td, th):first-child:not([colspan]) { width: 3.9rem !important; }
  .history-content table:has(td[colspan]),
  .history-content table:has(td[colspan]) :is(tbody, tr, td) { display: block; }
  .history-content tr:has(> td:nth-child(2)) {
    margin-bottom: .65rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: .65rem;
  }
  .history-content tr:has(> td:nth-child(2)) > td:first-child {
    width: fit-content !important;
    padding: .26rem .65rem !important;
    border-radius: .55rem 0 .45rem 0;
  }
  .history-content tr:has(> td:nth-child(2)) > td:last-child {
    padding: .65rem .82rem .8rem !important;
    background: none !important;
  }
}
@media (max-width: 23rem) {
  .site-nav { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; }
  .site-nav a { min-height: 2.5rem; }
}

.info-card {
  display: grid;
  gap: .55rem;
  padding: clamp(1.05rem, 3vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--white);
}
.info-card h2 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.025em; }
.info-card .eyebrow { margin-bottom: 0; }
.info-card address { font-style: normal; }
.info-card a { justify-self: start; color: var(--ink); font-weight: 720; overflow-wrap: anywhere; }
.imprint-legal { color: var(--muted); line-height: 1.65; }
.imprint-legal h2 { color: var(--ink); font-size: clamp(1.38rem, 4vw, 2.1rem); letter-spacing: -.02em; line-height: 1.2; margin-block: 1.35rem .7rem; }
.imprint-legal :where(span, strong) { font-family: inherit !important; font-size: inherit !important; }
.imprint-legal p + p { margin-top: .75rem; }
.imprint-legal p:empty, .imprint-legal p:has(> br:only-child) { display: none; }

.history-content > .history-additions { margin-top: .05rem; }
.history-additions { display: grid; gap: .45rem; line-height: 1.58; }
.history-entry { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); background: var(--white); border-radius: .55rem; }
.history-entry :is(dt, dd) { padding: .85rem 1rem; }
.history-entry dt { background: #f7ebba; font-weight: 800; border-radius: .55rem 0 0 .55rem; }

@media (max-width: 35rem) {
  .history-additions { gap: .65rem; }
  .history-entry { grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: .65rem; }
  .history-entry dt { justify-self: start; padding: .26rem .65rem; border-radius: .55rem 0 .45rem 0; }
  .history-entry dd { padding: .65rem .82rem .8rem; }
}

.club-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .8rem;
}
.club-social > span { margin-right: .25rem; font-size: .9rem; font-weight: 720; }
.club-social .social-button {
  min-height: 2.75rem;
  padding: .45rem .8rem;
  border-color: #8d887a;
  color: #fffaf0;
  background: transparent;
}
.club-social .social-button:hover { border-color: var(--yellow); color: var(--yellow); }
.office-link { display: inline-flex; align-items: center; gap: .65rem; min-width: 0; max-width: 100%; }
.office-icon {
  display: grid;
  place-items: center;
  flex: 0 0 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: #f7ebba;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
