/* Approved court-blue palette. The previous published design is Site version 364. */
:root {
  --brand-blue: #386aa6;
  --brand-lightblue: #e6f3fc;
  --brand-yellow: #ffdf00;
  --brand-gray: #e9edf1;
  --brand-white: #fff;
  --brand-cream: #fffbe0;
  --brand-page-background: linear-gradient(90deg, var(--brand-lightblue), var(--brand-gray));
  --site-max-width: 1500px;
  --site-gutter: clamp(18px, 5.5vw, 82.5px);
  --ink: #263746;
  --muted: #485e7a;
  --paper: var(--brand-gray);
  --line: #bdcddd;
  --accent: var(--brand-yellow);
  --lime: var(--brand-yellow);
}

html { background: var(--brand-gray); }
body {
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  background: var(--brand-page-background);
  color: var(--ink);
}
/* One canvas and one gutter align every outer row, including the trophy cards. */
body > header:has(.monday-signup),
body > .guest-ticker,
body > .photo-search,
body > main > section:is(.hero, .hero-highlights, .stats, .section),
body > footer {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--site-gutter);
}
body > main > section:not(.knowledge-section) { background: transparent; }
/* Fine section rules align with the same left and right content edges. */
#geschichte, #grueze, #erfolge, #galerie, #prominente-gaeste, #medien {
  position: relative;
}
#geschichte::before, #grueze::before, #erfolge::before,
#galerie::before, #prominente-gaeste::before, #medien::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--site-gutter);
  right: var(--site-gutter);
  height: 1px;
  background: var(--line);
  pointer-events: none;
}
header nav .association-links, header nav .section-navigation { flex-wrap: wrap; }
.hero-highlights > div, .hero-highlights p { min-width: 0; }
.hero-highlights > div > span { flex: none; }
body > header {
  background: transparent;
  border-top: 6px solid var(--brand-yellow);
}
body > header > .site-heading {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  margin: 0 0 4px;
  padding: 12px 10px 16px;
  border-bottom: 3px solid var(--brand-yellow);
  background: transparent;
  color: var(--brand-blue);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(25px, 3.1vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-align: center;
}
.site-heading-place { display: inline-block; white-space: nowrap; }
.site-heading-country { display: inline-block; white-space: nowrap; }
body > header:has(.site-heading) > .brand-with-visits,
body > header:has(.site-heading) > .monday-panel { grid-row: 2; }
body > header:has(.site-heading) > nav { grid-row: 3; }
@media (max-width: 1000px) {
  body > header:has(.site-heading) > .monday-panel { grid-row: 3; }
  body > header:has(.site-heading) > nav { grid-row: 4; }
}
.eyebrow, .results .eyebrow, .hall .eyebrow { color: var(--brand-blue); }

/* White cards keep live registration and weather details easy to read. */
body > header:has(.monday-signup) > .monday-panel {
  background: var(--brand-white);
  border-color: var(--line);
  border-top-color: var(--brand-yellow);
}
.monday-seat, .monday-seat.is-free { background: var(--brand-gray); }
.monday-costs { background: var(--brand-lightblue); }
.monday-form input, .header-location-form input { color: var(--ink); border-color: var(--line); }
.monday-form .monday-extra-consent input[type=checkbox] { accent-color: var(--brand-blue); }
.monday-reservation-link, .monday-reservation-link:hover {
  background: var(--brand-white);
  color: var(--ink);
  border-color: var(--line);
}
.monday-reservation-link::before { opacity: .26; }
.monday-reservation-link:hover { border-color: var(--brand-blue); }

.language-switch a[aria-current="page"] {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: var(--brand-white);
}
.brand-resource-links { background: var(--brand-cream); border-color: var(--line); border-top-color: var(--brand-yellow); }
.weekly-news-card { background: var(--brand-cream); color: var(--ink); }
.weekly-news-card small { color: var(--muted); }
.weekly-news-card:hover { background: #fff4b3; }
.pickleball-knowledge-card, .pickleball-knowledge-card:hover {
  background: var(--brand-blue);
  color: var(--brand-white);
  border-color: var(--line);
}
.pickleball-watch { background: var(--brand-white); border-top-color: var(--brand-blue); }
.pickleball-watch .pickleball-watch-caption { color: var(--ink); }
.pickleball-watch-links .pickleball-watch-primary,
.pickleball-watch-links .pickleball-watch-primary:hover {
  background: var(--brand-blue);
  color: var(--brand-white);
}
.pickleball-watch-links a:hover { color: var(--brand-blue); }
.header-news-toggle { background: var(--brand-cream); }
.header-news-toggle:hover { background: #fff4b3; }
.header-news-meta { color: var(--muted); }
.latest-news { background: var(--brand-white); }
.brand-film-play { background: var(--brand-blue); color: var(--brand-white); }
.brand-film-watch { color: var(--ink); }

/* Left: report, rulebook and tournament news. Right: streams and the film. */
.brand-film-column > .header-news-toggle { margin: 0; }
.header-metrics > .brand-film { width: 100%; max-width: none; min-width: 0; }
@media (min-width: 601px) {
  .brand-film-column > .header-news-toggle { grid-row: 4; align-self: stretch; }
  .header-metrics > .brand-film {
    grid-row: 4;
    align-self: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5px 10px;
    align-items: center;
    margin: 0;
    padding: 0;
  }
}

/* The navigation and lead share the pale blue of the hall, galleries and guest ribbon. */
body > header:has(.monday-signup) > nav {
  background: transparent;
  color: var(--ink);
  border-bottom: 4px solid var(--brand-yellow);
}
header nav a, header nav a:hover,
header nav .guest-directory-button, header nav .guest-directory-button:hover {
  color: var(--ink);
}
header nav .association-links {
  border-color: var(--line);
}
.guest-ticker { background: transparent; }
.guest-ticker-pause { background: var(--brand-white); }
.photo-search { background: transparent; border-color: var(--line); }
.photo-search input { color: var(--ink); border-color: var(--line); }
.photo-search button { background: var(--brand-blue); color: var(--brand-white); }

.hero { background: transparent; color: var(--ink); }
.hero h1, .hero .hero-title { color: var(--ink); }
.hero h2.hero-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 4.5vw, 65px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -2px;
  margin: 0 0 28px;
}
@media (max-width: 700px) {
  .hero h2.hero-title { font-size: clamp(37px, 8vw, 56px); }
}
.hero .eyebrow, .hero h1 .hero-sport, .hero .hero-title .hero-sport { color: var(--brand-blue); }
.hero .intro { color: var(--muted); }
.button, .dark { background: var(--brand-blue); color: var(--brand-white); border-color: var(--brand-blue); }
.button:hover, .dark:hover { background: var(--brand-blue); color: var(--brand-white); text-decoration: underline; }
.button-secondary { background: transparent; color: var(--brand-blue); border-color: var(--brand-blue); }
.button-secondary:hover { background: var(--brand-lightblue); color: var(--brand-blue); border-color: var(--brand-blue); }
/* All seven gallery links share one compact row on desktop. */
.gallery-category-links { gap: 8px; }
.gallery-category-links .button {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 13px;
  justify-content: center;
  white-space: nowrap;
}
@media (min-width: 1200px) {
  .gallery-category-links { flex-wrap: nowrap; }
  .gallery-category-links .button {
    font-size: clamp(12px, .95vw, 14px);
    padding-inline: clamp(8px, .85vw, 14px);
  }
}
.hero .button { background: var(--brand-yellow); color: var(--ink); border-color: var(--brand-yellow); }
.hero .button:hover { background: #fff4b3; color: var(--ink); }
.hero .button-secondary { background: transparent; color: var(--brand-blue); border-color: var(--brand-blue); }
.hero .button-secondary:hover { background: var(--brand-white); color: var(--brand-blue); }
.hero .button-achievements { background: var(--brand-lightblue); color: var(--brand-blue); border-color: var(--brand-blue); }
.hero .button-achievements:hover { background: var(--brand-white); color: var(--brand-blue); }

/* Content rows share the canvas; cards retain their own readable surfaces. */
.next { background: var(--brand-gray); }
.hero-highlights > div, .hall-card, .contact-grid article,
.world-place, .travel-gallery, .line-game { background: var(--brand-white); }
.hero-highlights > div > span, .impact-grid article > span,
.timeline strong, .next > span { color: var(--brand-blue); }
.photo-search-results img, .gallery-feature img, .history-gallery img { background: var(--brand-gray); }
.line-game .lg-next, .line-game .lg-reset { background: var(--brand-blue); color: var(--brand-white); }
.line-game .lg-summary { color: var(--brand-blue); }

.knowledge-section { background: var(--brand-blue); color: var(--brand-white); }
#pickleball-wissen h2, #pickleball-wissen h2 > span,
#pickleball-wissen .eyebrow, #pickleball-wissen .guest-gallery figcaption { color: var(--brand-white); }
#pickleball-wissen .guest-intro { color: var(--brand-lightblue); }
#pickleball-wissen .knowledge-photo { background: var(--brand-white); }
/* Four equally sized rulebook posters per desktop row, in both languages. */
#pickleball-wissen .knowledge-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  #pickleball-wissen .knowledge-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  #pickleball-wissen .knowledge-gallery { grid-template-columns: minmax(0, 1fr); }
}

body > footer { background: var(--brand-blue); color: var(--brand-lightblue); border-top: 4px solid var(--brand-yellow); }
body > footer a, body > footer summary { color: var(--brand-white); }
body > footer .site-notices p { color: var(--brand-lightblue); }

a:focus-visible, button:focus-visible, summary:focus-visible,
.monday-reservation-link:focus-visible {
  outline-color: var(--brand-blue);
}
.pickleball-knowledge-card:has(.knowledge-card-toggle:focus-visible), .line-game-preview:focus-visible, #pickleball-wissen a:focus-visible,
body > footer a:focus-visible, body > footer summary:focus-visible { outline-color: var(--brand-yellow); }
