/*
Theme Name: SK Münsingen
Theme URI: https://example.local/
Author: SK Münsingen
Description: A basic customizable WordPress theme scaffold.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: sk-muensingen
*/

:root {
  --sk-accent: #c91525;
  --sk-accent-dark: #96101b;
  --sk-header-bg: #ffffff;
  --sk-footer-bg: #181818;
  --sk-text: #222222;
  --sk-muted: #6b6b6b;
  --sk-surface: #ffffff;
  --sk-page-bg: #f7f5f1;
  --sk-border: #ded7cd;
  --sk-ink: #111111;
  --sk-hero-panel: #f0ede7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--sk-page-bg);
  color: var(--sk-text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: var(--sk-accent);
}

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

.site-header {
  background: var(--sk-header-bg);
  border-bottom: 1px solid var(--sk-border);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.04);
  color: var(--sk-text);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header__inner,
.site-main,
.site-footer__inner {
  margin: 0 auto;
  max-width: 1120px;
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 32px;
  justify-content: space-between;
}

.site-branding {
  flex: 0 0 auto;
}

.site-logo-link,
.custom-logo-link {
  display: inline-flex;
}

.site-logo,
.custom-logo {
  display: block;
  max-height: 104px;
  width: auto;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  color: var(--sk-ink);
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 10px 13px;
  text-decoration: none;
  text-transform: uppercase;
}

.main-navigation a:hover,
.main-navigation a:focus {
  background: var(--sk-ink);
  color: #ffffff;
  outline: 0;
}

.main-navigation .sub-menu {
  background: #ffffff;
  border: 1px solid var(--sk-border);
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.10);
  display: none;
  gap: 0;
  left: 0;
  min-width: 260px;
  padding: 8px;
  position: absolute;
  top: 100%;
  z-index: 30;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
  display: grid;
}

.main-navigation .sub-menu a {
  font-size: 14px;
  padding: 10px 12px;
  text-transform: none;
}

.menu-toggle {
  align-items: center;
  background: transparent;
  border: 2px solid var(--sk-ink);
  color: var(--sk-ink);
  display: none;
  gap: 9px;
  padding: 9px 12px;
}

.menu-toggle:hover,
.menu-toggle:focus {
  background: var(--sk-ink);
  color: #ffffff;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  background: currentColor;
  display: block;
  height: 2px;
  width: 18px;
}

.menu-toggle__icon {
  position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  left: 0;
  position: absolute;
}

.menu-toggle__icon::before {
  top: -6px;
}

.menu-toggle__icon::after {
  top: 6px;
}

.menu-toggle__text {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-main {
  padding: 48px 24px 64px;
}

.content-area {
  background: var(--sk-surface);
  border: 1px solid var(--sk-border);
  padding: 32px;
}

.content-area--wide {
  margin-left: calc(50% - 46vw);
  margin-right: calc(50% - 46vw);
}

.entry-title {
  font-size: 46px;
  line-height: 1.08;
  margin: 0 0 16px;
}

.entry-meta {
  color: var(--sk-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

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

.entry-content > *:last-child {
  margin-bottom: 0;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-card {
  background: #ffffff;
  border: 1px solid var(--sk-border);
  padding: 24px;
}

.post-card:last-child {
  margin-bottom: 0;
}

.post-card__title {
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 8px;
}

.post-card__title a {
  color: var(--sk-text);
  text-decoration: none;
}

.post-card__title a:hover,
.post-card__title a:focus {
  color: var(--sk-accent);
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  background: var(--sk-accent);
  border: 0;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  background: var(--sk-accent-dark);
  color: #ffffff;
}

.button--secondary {
  background: transparent;
  border: 2px solid var(--sk-ink);
  color: var(--sk-ink);
}

.button--secondary:hover,
.button--secondary:focus {
  background: var(--sk-ink);
}

.home-hero {
  align-items: center;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 56%, var(--sk-hero-panel) 56%, var(--sk-hero-panel) 100%);
  border: 1px solid var(--sk-border);
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  margin-bottom: 28px;
  min-height: 520px;
  overflow: hidden;
  padding: 56px;
  position: relative;
}

.home-hero::before {
  background: repeating-linear-gradient(
    90deg,
    rgba(17, 17, 17, 0.07),
    rgba(17, 17, 17, 0.07) 1px,
    transparent 1px,
    transparent 72px
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.home-hero__content,
.home-hero__photos {
  position: relative;
}

.eyebrow {
  color: var(--sk-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.home-hero h1 {
  color: var(--sk-ink);
  font-size: 58px;
  line-height: 1;
  margin: 0;
  max-width: 760px;
  text-transform: uppercase;
}

.home-hero__lead {
  color: var(--sk-muted);
  font-size: 24px;
  line-height: 1.35;
  margin: 26px 0 0;
  max-width: 690px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Foto-Galerie im Hero: Polaroid-Collage mit wechselnden Fotos */
.home-hero__gallery {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-hero__photos {
  height: 520px;
  /* Eigener Stapel: die Ebenen der Polaroids (z-index) gelten nur innerhalb
     der Collage, sonst liegen sie nach ein paar Wechseln über der Kopfzeile */
  isolation: isolate;
  margin: 0 auto;
  max-width: 410px;
  width: 100%;
}

/*
 * Lage eines Polaroids: --tilt (Neigung) und --dx/--dy (leichter Versatz)
 * setzt gallery.js bei jedem Ablegen neu. Die Werte unten sind die Lage ohne JS.
 */
.hero-photo {
  --tilt: 0deg;
  --dx: 0px;
  --dy: 0px;
  background: #ffffff;
  border: 1px solid var(--sk-border);
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.14);
  margin: 0;
  padding: 8px 8px 0;
  position: absolute;
  transform: translate(var(--dx), var(--dy)) rotate(var(--tilt));
  transition:
    transform 0.8s cubic-bezier(0.2, 0.9, 0.25, 1.05),
    opacity 0.15s ease,
    box-shadow 0.8s ease;
  width: 140px;
}

/* In der Luft, bevor es auf den Tisch fällt: grösser, schräger, grosser Schatten */
.hero-photo.is-entering {
  box-shadow: 0 40px 60px rgba(17, 17, 17, 0.28);
  opacity: 0;
  transform:
    translate(calc(var(--dx) + var(--in-x, 0px)), calc(var(--dy) + var(--in-y, -60px)))
    rotate(var(--in-rot, 0deg))
    scale(1.18);
  transition: none;
}

/* Wird angehoben und vom Tisch geschoben */
.hero-photo.is-leaving {
  box-shadow: 0 34px 50px rgba(17, 17, 17, 0.24);
  opacity: 0;
  pointer-events: none;
  transform:
    translate(calc(var(--dx) + var(--out-x, 0px)), calc(var(--dy) + var(--out-y, -80px)))
    rotate(calc(var(--tilt) + var(--out-rot, 10deg)))
    scale(1.06);
  transition:
    transform 0.65s cubic-bezier(0.5, 0, 0.75, 0.4),
    opacity 0.25s ease 0.4s,
    box-shadow 0.3s ease;
}

.hero-photo__open {
  background: var(--sk-hero-panel);
  border: 0;
  cursor: zoom-in;
  display: block;
  padding: 0;
  width: 100%;
}

.hero-photo__open:focus-visible {
  outline: 3px solid var(--sk-accent);
  outline-offset: 2px;
}

.hero-photo img {
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  width: 100%;
}


.hero-photo figcaption {
  color: var(--sk-accent);
  font-size: 11px;
  font-weight: 800;
  /* Lange Wörter sauber trennen statt über den Rahmen hinaus */
  hyphens: manual;
  letter-spacing: 0.07em;
  line-height: 1.3;
  overflow-wrap: break-word;
  padding: 8px 2px 10px;
  text-transform: uppercase;
}

.hero-photo__title {
  display: block;
}

.hero-photo__detail {
  color: var(--sk-muted);
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.hero-photo__detail:empty {
  display: none;
}

/* Position und Neigung der fünf Plätze in der Collage */
.hero-photo--slot-1 {
  --tilt: -5deg;
  left: 0;
  top: 0;
  z-index: 2;
}

.hero-photo--slot-2 {
  --tilt: 4deg;
  right: 4px;
  top: 14px;
  z-index: 2;
}

/* Liegt in der Mitte unter den Eckfotos */
.hero-photo--slot-3 {
  --tilt: -1.5deg;
  left: 98px;
  top: 40px;
  width: 160px;
  z-index: 1;
}

.hero-photo--slot-4 {
  --tilt: 3deg;
  bottom: 44px;
  left: 6px;
  z-index: 2;
}

.hero-photo--slot-5 {
  --tilt: -2.5deg;
  bottom: 0;
  right: 0;
  width: 185px;
  z-index: 3;
}

.hero-photo--slot-3 img,
.hero-photo--slot-5 img {
  aspect-ratio: 4 / 5;
}

/* Beim Darüberfahren hochheben und gerade richten (über allen anderen) */
.hero-photo:not(.is-entering):not(.is-leaving):hover,
.hero-photo:not(.is-entering):not(.is-leaving):focus-within {
  box-shadow: 0 22px 40px rgba(17, 17, 17, 0.22);
  transform: translate(var(--dx), var(--dy)) rotate(0deg) scale(1.06);
  transition-duration: 0.25s;
  z-index: 999 !important;
}

.home-intro {
  margin-bottom: 28px;
}

/* Grossansicht: ein einzelnes Polaroid auf dunklem Hintergrund */
.gallery-lightbox {
  background: transparent;
  border: 0;
  max-height: 100vh;
  max-width: 100vw;
  overflow: visible;
  padding: 0;
}

.gallery-lightbox::backdrop {
  background: rgba(17, 17, 17, 0.88);
}

.gallery-lightbox__polaroid {
  background: #ffffff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  margin: 0;
  padding: 14px 14px 0;
  transform: rotate(-1deg);
}

.gallery-lightbox__polaroid img {
  display: block;
  height: auto;
  max-height: calc(100vh - 150px);
  max-width: min(1000px, calc(100vw - 150px));
  min-width: 240px;
  transition: opacity 0.25s ease;
  width: auto;
}

.gallery-lightbox.is-loading .gallery-lightbox__polaroid img {
  opacity: 0.3;
}

.gallery-lightbox__polaroid figcaption {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  max-width: min(1000px, calc(100vw - 150px));
  padding: 14px 4px 18px;
}

.gallery-lightbox__title {
  color: var(--sk-accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-lightbox__detail {
  color: var(--sk-muted);
  font-size: 13px;
}

.gallery-lightbox__detail:empty {
  display: none;
}

.gallery-lightbox__link {
  font-size: 13px;
  font-weight: 700;
}

.gallery-lightbox__nav,
.gallery-lightbox__close {
  align-items: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: center;
  padding: 0;
  position: fixed;
}

/* Icons sind SVG, damit sie unabhängig von der Schrift genau mittig sitzen */
.gallery-lightbox__nav svg,
.gallery-lightbox__close svg {
  display: block;
  height: 24px;
  width: 24px;
}

.gallery-lightbox__close svg {
  height: 20px;
  width: 20px;
}

.gallery-lightbox__nav {
  background: rgba(255, 255, 255, 0.12);
  height: 72px;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
}

.gallery-lightbox__nav--prev {
  left: 16px;
}

.gallery-lightbox__nav--next {
  right: 16px;
}

.gallery-lightbox__close {
  background: var(--sk-accent);
  height: 44px;
  right: 16px;
  top: 16px;
  width: 44px;
}

.gallery-lightbox__nav:hover,
.gallery-lightbox__nav:focus-visible,
.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible {
  background: var(--sk-accent-dark);
}

.home-grid {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
}

.home-section {
  background: #ffffff;
  border: 1px solid var(--sk-border);
  padding: 32px;
}

.home-section--news {
  border-top: 6px solid var(--sk-accent);
}

.home-section--side {
  background: var(--sk-ink);
  border-color: var(--sk-ink);
  color: #ffffff;
}

.home-section--side .eyebrow {
  color: #f3bec4;
}

.section-heading {
  align-items: end;
  border-bottom: 2px solid var(--sk-ink);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
}

.section-heading h2 {
  font-size: 36px;
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
}

.section-heading .eyebrow {
  margin: 0;
}

.home-section--side .section-heading {
  border-color: rgba(255, 255, 255, 0.28);
  display: block;
}

.event-list {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.event-list li {
  border-left: 4px solid var(--sk-accent);
  padding-left: 16px;
}

.event-list time {
  color: #f0cfd3;
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.event-list strong,
.event-list span {
  display: block;
}

.event-list strong {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 4px;
}

.event-list strong a {
  color: inherit;
  text-decoration: none;
}

.event-list strong a:hover,
.event-list strong a:focus {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--sk-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.event-list span {
  color: rgba(255, 255, 255, 0.76);
}

.event-list__more {
  border: 2px solid rgba(255, 255, 255, 0.78);
  color: #ffffff;
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  margin-top: 22px;
  padding: 10px 12px;
  text-decoration: none;
  text-transform: uppercase;
}

.event-list__more:hover,
.event-list__more:focus {
  background: #ffffff;
  color: var(--sk-ink);
}

.empty-state {
  background: var(--sk-page-bg);
  border: 1px dashed var(--sk-border);
  color: var(--sk-muted);
  padding: 24px;
}

.visit-hero {
  align-items: stretch;
  background: #ffffff;
  border: 1px solid var(--sk-border);
  border-top: 6px solid var(--sk-accent);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 220px;
  margin-bottom: 28px;
  padding: 38px;
}

.visit-hero h2 {
  color: var(--sk-ink);
  font-size: 50px;
  line-height: 1;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.visit-hero p:last-child {
  color: var(--sk-muted);
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 0;
}

.visit-hero__badge {
  align-content: center;
  background: var(--sk-ink);
  color: #ffffff;
  display: grid;
  justify-items: start;
  padding: 26px;
}

.visit-hero__badge strong,
.visit-hero__badge span {
  display: block;
}

.visit-hero__badge strong {
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}

.visit-hero__badge span {
  color: #f3bec4;
  font-weight: 700;
  margin-top: 8px;
}

.visit-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
}

.visit-card {
  background: #ffffff;
  border: 1px solid var(--sk-border);
  padding: 24px;
}

.visit-card__label {
  color: var(--sk-accent);
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.visit-card h3,
.visit-info h3,
.visit-map-section h3 {
  color: var(--sk-ink);
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.visit-card p,
.visit-info p,
.visit-info li,
.visit-map-section p {
  color: var(--sk-muted);
}

.visit-map-section {
  background: #ffffff;
  border: 1px solid var(--sk-border);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  margin-bottom: 28px;
  padding: 28px;
}

.visit-map-section__intro {
  align-content: center;
  display: grid;
  justify-items: start;
}

.visit-map {
  border: 1px solid var(--sk-border);
  min-height: 420px;
  overflow: hidden;
}

.visit-map iframe {
  border: 0;
  display: block;
  height: 100%;
  min-height: 420px;
  width: 100%;
}

.visit-info {
  background: var(--sk-ink);
  color: #ffffff;
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 34px;
}

.visit-info h3 {
  color: #ffffff;
}

.visit-info p,
.visit-info li {
  color: rgba(255, 255, 255, 0.78);
}

.visit-info ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.visit-info strong {
  color: #ffffff;
}

.program-hero {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--sk-border);
  border-top: 6px solid var(--sk-accent);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 24px;
  padding: 38px;
}

.program-hero h2 {
  color: var(--sk-ink);
  font-size: 50px;
  line-height: 1;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.program-hero p:last-child {
  color: var(--sk-muted);
  font-size: 21px;
  line-height: 1.4;
  margin-bottom: 0;
  max-width: 820px;
}

.program-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
}

.program-main {
  min-width: 0;
}

.program-section {
  background: #ffffff;
  border: 1px solid var(--sk-border);
  padding: 32px;
}

.program-table-wrap {
  overflow-x: visible;
}

.program-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.program-table th,
.program-table td {
  border-bottom: 1px solid var(--sk-border);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.program-table th {
  background: var(--sk-page-bg);
  color: var(--sk-ink);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-table td:first-child {
  color: var(--sk-ink);
  font-weight: 700;
  white-space: nowrap;
  width: 94px;
}

.program-table td:nth-child(2) {
  text-align: center;
  width: 56px;
}

.program-table th:first-child {
  width: 94px;
}

.program-table th:nth-child(2) {
  width: 56px;
}

.program-table th:last-child {
  width: 86px;
}

.program-table td:nth-child(3) a {
  color: var(--sk-ink);
  font-weight: 800;
  text-decoration-color: var(--sk-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.program-table td:last-child {
  color: var(--sk-muted);
  white-space: nowrap;
  width: 86px;
}

.program-table tr:hover td {
  background: #fbfaf8;
}

.program-kind {
  align-items: center;
  border: 2px solid var(--sk-border);
  color: var(--sk-ink);
  display: inline-flex;
  font-size: 18px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}

.program-kind--club {
  border-color: var(--sk-accent);
  color: var(--sk-accent);
}

.program-kind--hour {
  border-color: #1f2937;
  color: #1f2937;
}

.program-kind--cup {
  background: var(--sk-ink);
  border-color: var(--sk-ink);
  color: #ffffff;
}

.program-kind--special {
  background: var(--sk-accent);
  border-color: var(--sk-accent);
  color: #ffffff;
}

.program-kind--pause {
  color: var(--sk-muted);
}

.program-aside {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 150px;
}

.program-aside-card {
  background: #ffffff;
  border: 1px solid var(--sk-border);
  padding: 24px;
}

.program-aside-card--accent {
  background: var(--sk-ink);
  border-color: var(--sk-ink);
  color: #ffffff;
}

.program-aside-card--accent .visit-card__label {
  color: #f3bec4;
}

.program-aside-card--accent strong {
  color: #ffffff;
  display: block;
  font-size: 30px;
  line-height: 1.1;
}

.program-aside-card h3 {
  color: var(--sk-ink);
  font-size: 24px;
  line-height: 1.1;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.program-aside-card p,
.program-aside-card li {
  color: var(--sk-muted);
}

.program-aside-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.smm-overview {
  display: grid;
  gap: 24px;
}

.smm-hero {
  margin-bottom: 0;
}

.smm-team-list {
  display: grid;
  gap: 24px;
}

.smm-team {
  background: #ffffff;
  border: 1px solid var(--sk-border);
}

.smm-team__header {
  align-items: center;
  border-top: 6px solid var(--sk-accent);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 24px;
}

.smm-team__header h3 {
  color: var(--sk-ink);
  font-size: 34px;
  line-height: 1;
  margin: 4px 0 0;
  text-transform: uppercase;
}

.smm-team__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  padding: 0 24px 24px;
}

.smm-schedule,
.smm-results {
  background: var(--sk-page-bg);
  border: 1px solid var(--sk-border);
  padding: 20px;
}

.smm-schedule h4 {
  color: var(--sk-ink);
  font-size: 22px;
  line-height: 1.1;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.smm-schedule table,
.smm-results table {
  border-collapse: collapse;
  width: 100%;
}

.smm-schedule th,
.smm-schedule td,
.smm-results th,
.smm-results td {
  border-bottom: 1px solid var(--sk-border);
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
}

.smm-schedule th,
.smm-results th {
  color: var(--sk-ink);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.smm-schedule td:first-child,
.smm-schedule td:nth-child(2),
.smm-schedule td:last-child {
  color: var(--sk-muted);
  white-space: nowrap;
}

.smm-result-score {
  color: var(--sk-accent);
}

.smm-result-open {
  color: var(--sk-muted);
  font-size: 14px;
}

.smm-mvp {
  background: #ffffff;
  border: 1px solid var(--sk-border);
  border-left: 4px solid var(--sk-accent);
  margin-top: 18px;
  padding: 16px;
}

.smm-mvp h5 {
  color: var(--sk-ink);
  font-size: 17px;
  line-height: 1.1;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.smm-mvp p {
  color: var(--sk-muted);
  margin: 0;
}

.smm-mvp ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.smm-mvp li {
  align-items: center;
  display: grid;
  gap: 4px 8px;
  grid-template-columns: auto 1fr;
}

.smm-mvp__crown {
  font-size: 20px;
  grid-row: span 2;
}

.smm-mvp strong {
  color: var(--sk-ink);
  line-height: 1.15;
}

.smm-mvp span:last-child {
  color: var(--sk-muted);
  font-size: 14px;
}

.smm-results summary {
  color: var(--sk-ink);
  cursor: pointer;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.smm-results__content {
  display: grid;
  gap: 20px;
  margin-top: 18px;
  overflow-x: auto;
}

.smm-results__section {
  display: grid;
  gap: 12px;
}

.smm-results__section h4 {
  color: var(--sk-ink);
  font-size: 20px;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}

.smm-individual-round {
  background: #ffffff;
  border: 1px solid var(--sk-border);
  padding: 12px;
}

.smm-individual-round summary {
  color: var(--sk-ink);
  font-size: 16px;
  margin-bottom: 8px;
}

.smm-results table {
  background: #ffffff;
  font-size: 15px;
  min-width: 520px;
}

.smm-results a {
  color: var(--sk-ink);
}

.smm-overview mark {
  background: #fff06a;
  color: var(--sk-ink);
  padding: 0 3px;
}

.smm-bye {
  color: var(--sk-muted);
}

.smm-source-error {
  background: #ffffff;
  border-left: 4px solid var(--sk-accent);
  margin: 0;
  padding: 14px;
}

.tournament-hero {
  background: #ffffff;
  border: 1px solid var(--sk-border);
  border-top: 6px solid var(--sk-accent);
  margin-bottom: 24px;
  padding: 36px;
}

.tournament-hero h2 {
  color: var(--sk-ink);
  font-size: 48px;
  line-height: 1;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.tournament-hero p:last-child {
  color: var(--sk-muted);
  font-size: 21px;
  line-height: 1.4;
  margin-bottom: 0;
}

.tournament-summary {
  margin-bottom: 34px;
}

.tournament-summary .wp-block-column {
  background: var(--sk-ink);
  border-left: 5px solid var(--sk-accent);
  color: #ffffff;
  padding: 24px;
}

.tournament-summary h3 {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.1;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.tournament-summary p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.tournament-summary a {
  color: #ffffff;
}

.champions-heading {
  color: var(--sk-ink);
  font-size: 38px;
  line-height: 1.05;
  margin-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
}

.champions-intro {
  color: var(--sk-muted);
  margin: 0 auto 32px;
  max-width: 720px;
  text-align: center;
}

.champion-grid {
  gap: 32px;
  margin-bottom: 32px;
}

.champion-card {
  background: #d8d6d2;
  border: 1px solid var(--sk-border);
  height: 100%;
}

.champion-card__image {
  background: #d8d6d2;
  margin: 0;
}

.champion-card__image img {
  display: block;
  height: auto;
  object-fit: cover;
  object-position: center 32%;
  width: 100%;
}

.champion-card h3,
.champion-card p {
  margin-left: 28px;
  margin-right: 28px;
}

.champion-card h3 {
  color: var(--sk-muted);
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 10px;
  margin-top: 22px;
}

.champion-card .champion-years {
  color: var(--sk-accent);
  font-size: 22px;
  font-weight: 700;
}

.champion-card p:last-child {
  color: var(--sk-muted);
  padding-bottom: 28px;
}

.site-footer {
  background: var(--sk-footer-bg);
  color: rgba(255, 255, 255, 0.82);
  padding: 30px 24px;
}

.site-footer__inner {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: #ffffff;
  font-size: 18px;
  text-transform: uppercase;
}

.site-footer span {
  color: #d9d9d9;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a {
  color: #ffffff;
}

.site-footer__links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.site-footer__links a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer__links a:hover,
.site-footer__links a:focus {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .site-header {
    position: static;
  }

  .site-header__inner,
  .home-grid,
  .home-hero,
  .visit-hero,
  .visit-map-section,
  .visit-info,
  .program-hero,
  .program-layout,
  .smm-team__grid {
    grid-template-columns: 1fr;
  }

  .program-aside {
    position: static;
  }

  .content-area--wide {
    margin-left: 0;
    margin-right: 0;
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero {
    background: #ffffff;
    min-height: 0;
    padding: 34px;
  }

  .home-hero h1 {
    font-size: 42px;
  }

  .home-hero__lead {
    font-size: 21px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .site-main {
    padding: 24px 16px 42px;
  }

  .site-logo,
  .custom-logo {
    max-height: 64px;
  }

  .site-header {
    padding: 14px 16px;
  }

  .site-header__inner {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .main-navigation {
    display: block;
    width: 100%;
  }

  .site-header--has-toggle .main-navigation {
    display: none;
  }

  .site-header--has-toggle .main-navigation.is-open {
    display: block;
  }

  .main-navigation > ul {
    border-top: 1px solid var(--sk-border);
    display: grid;
    gap: 0;
    grid-template-columns: 1fr;
    padding-top: 8px;
    width: 100%;
  }

  .main-navigation > ul > li + li {
    border-top: 1px solid var(--sk-border);
  }

  .main-navigation a {
    border-top: 0;
    font-size: 14px;
    padding: 11px 0;
  }

  .main-navigation .sub-menu {
    background: transparent;
    border-top: 1px solid var(--sk-border);
    box-shadow: none;
    display: grid;
    gap: 0;
    min-width: 0;
    padding: 0 0 8px 18px;
    position: static;
  }

  .main-navigation .sub-menu a {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 0;
    text-transform: none;
  }

  .home-hero {
    padding: 24px;
  }

  .home-hero h1 {
    font-size: 34px;
  }

  /* Handy: Fotos als lockeres Raster statt überlappender Collage */
  .home-hero__photos {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(6, 1fr);
    height: auto;
    max-width: none;
  }

  .hero-photo {
    padding: 5px 5px 0;
    position: relative;
    width: auto;
  }

  /* Feste Rasterplätze, damit altes und neues Polaroid beim Wechsel
     übereinander liegen statt das Raster zu verschieben */
  .hero-photo--slot-3 { grid-area: 1 / 1 / 2 / 4; }
  .hero-photo--slot-5 { grid-area: 1 / 4 / 2 / 7; }
  .hero-photo--slot-1 { grid-area: 2 / 1 / 3 / 3; }
  .hero-photo--slot-2 { grid-area: 2 / 3 / 3 / 5; }
  .hero-photo--slot-4 { grid-area: 2 / 5 / 3 / 7; }

  .hero-photo--slot-1,
  .hero-photo--slot-2,
  .hero-photo--slot-3,
  .hero-photo--slot-4,
  .hero-photo--slot-5 {
    bottom: auto;
    left: auto;
    right: auto;
    top: auto;
  }

  .hero-photo img,
  .hero-photo--slot-3 img,
  .hero-photo--slot-5 img {
    aspect-ratio: 1 / 1;
  }

  .hero-photo figcaption {
    font-size: 10px;
    letter-spacing: 0.03em;
    padding: 6px 0 8px;
  }

  .hero-photo__detail {
    font-size: 9px;
  }

  /* Grossansicht: Pfeile unten, damit sie das Foto nicht verdecken */
  .gallery-lightbox__polaroid {
    padding: 8px 8px 0;
    transform: none;
  }

  .gallery-lightbox__polaroid img {
    max-height: calc(100vh - 210px);
    max-width: calc(100vw - 24px);
    min-width: 0;
  }

  .gallery-lightbox__polaroid figcaption {
    max-width: calc(100vw - 24px);
  }

  .gallery-lightbox__nav {
    bottom: 16px;
    height: 52px;
    top: auto;
    transform: none;
    width: 64px;
  }

  .home-hero__lead {
    font-size: 19px;
  }

  .content-area,
  .home-section {
    padding: 22px;
  }

  .entry-title {
    font-size: 34px;
  }

  .section-heading {
    align-items: start;
    display: block;
  }

  .section-heading h2 {
    font-size: 30px;
    margin-top: 8px;
  }

  .visit-hero,
  .visit-map-section,
  .visit-info,
  .program-hero,
  .program-section,
  .program-aside-card {
    padding: 24px;
  }

  .smm-team__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 24px 18px 18px;
    padding-bottom: 18px;
  }

  .smm-team__grid {
    padding: 0 24px 24px;
  }

  .smm-team__header h3 {
    font-size: 30px;
  }

  .smm-team {
    border-left: 0;
    border-right: 0;
    margin-left: -6px;
    margin-right: -6px;
  }

  .smm-team__grid {
    gap: 18px;
    padding: 0 14px 18px;
  }

  .smm-schedule,
  .smm-results {
    background: transparent;
    border: 0;
    padding: 0;
  }

  .smm-schedule h4,
  .smm-results summary {
    font-size: 20px;
  }

  .smm-schedule table,
  .smm-schedule thead,
  .smm-schedule tbody,
  .smm-schedule tr,
  .smm-schedule td {
    display: block;
  }

  .smm-schedule thead {
    display: none;
  }

  .smm-schedule tbody {
    display: grid;
    gap: 10px;
  }

  .smm-schedule tr {
    background: #ffffff;
    border: 1px solid var(--sk-border);
    padding: 10px 12px;
  }

  .smm-schedule td {
    border-bottom: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 4px 0;
    white-space: normal;
  }

  .smm-schedule td::before {
    color: var(--sk-muted);
    content: attr(data-label);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .smm-schedule td:first-child,
  .smm-schedule td:nth-child(2),
  .smm-schedule td:last-child {
    white-space: normal;
  }

  .smm-schedule td:nth-child(3) {
    color: var(--sk-ink);
    font-weight: 700;
  }

  .smm-result-score {
    font-size: 18px;
  }

  .smm-mvp {
    background: #ffffff;
    margin-top: 14px;
    padding: 14px;
  }

  .smm-results__content {
    overflow-x: hidden;
  }

  .smm-results__section {
    min-width: 0;
  }

  .smm-results table {
    font-size: 14px;
    min-width: 520px;
  }

  .smm-results__section > table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }

  .smm-individual-round {
    background: #ffffff;
    padding: 10px;
  }

  .smm-individual-round > table,
  .smm-individual-round > table tbody,
  .smm-individual-round > table tr,
  .smm-individual-round > table td {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .smm-individual-round > table tr {
    border-bottom: 1px solid var(--sk-border);
    display: grid;
    gap: 4px 10px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding: 10px 0;
  }

  .smm-individual-round > table tr:last-child {
    border-bottom: 0;
  }

  .smm-individual-round > table td {
    border-bottom: 0;
    padding: 0;
  }

  .smm-individual-round > table td:nth-child(1) {
    grid-column: 1;
  }

  .smm-individual-round > table td:nth-child(2) {
    grid-column: 2;
    text-align: center;
  }

  .smm-individual-round > table td:nth-child(3) {
    grid-column: 3;
  }

  .smm-individual-round > table td:nth-child(4) {
    color: var(--sk-accent);
    font-size: 18px;
    font-weight: 800;
    grid-column: 1;
  }

  .smm-individual-round > table td:nth-child(5) {
    color: var(--sk-muted);
    font-weight: 800;
    grid-column: 2;
    text-align: center;
  }

  .smm-individual-round > table td:nth-child(6) {
    color: var(--sk-accent);
    font-size: 18px;
    font-weight: 800;
    grid-column: 3;
  }

  .smm-individual-round > table td[colspan] {
    color: var(--sk-muted);
    grid-column: 1 / -1;
  }

  .smm-individual-round > table a {
    overflow-wrap: anywhere;
  }

  .visit-hero h2,
  .program-hero h2 {
    font-size: 36px;
  }

  .visit-grid {
    grid-template-columns: 1fr;
  }

  .visit-map,
  .visit-map iframe {
    min-height: 340px;
  }

  .program-table-wrap {
    overflow-x: auto;
  }

  .program-table {
    min-width: 760px;
    table-layout: auto;
  }
}
