:root {
  /* Swatch: hue (and optional S/L reference) for the theme; all HSL tokens take h from here */
  --main-hue: hsl(44, 22%, 10%);

  /* Page cream */
  --page-bg-surface: var(--main-hue);
  /* 404 only — slightly lighter than --page-bg-surface */
  --page-bg: rgb(86, 61, 53);

  /* Header / footer band (::before full-bleed) */
  /* --header-band-bg: hsl(from var(--main-hue) h 24% 17%); */
  --header-text: hsl(from var(--main-hue) calc(h) 92% 89%);
  --nav-hover-cream: hsl(from var(--main-hue) calc(h) 68% 93%);
  --nav-active-stroke: hsl(43, 57%, 34%);

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-size-base: 1rem;
  --font-weight-body: 200;
  --line-height-body: 1.4;
  --text-color: hsl(from var(--main-hue) calc(h) 58% 87%);
  --text-muted: hsl(from var(--main-hue) calc(h) 58% 87%);

  /* Links & interactive text */
  --link-color: hsl(from var(--main-hue) calc(h) 59% 84%);
  --link-hover-color: hsl(from var(--main-hue) calc(h) 20% 83%);
  --card-link-color: #d6cfcf;
  --card-hover-border-color: #277f02;
  --carousel-text-color: var(--text-color);

  /* Table of contents */
  --toc-border-color: #343333;

  /* Heading tools (back-to-top) */
  --heading-nav-color: hsl(from var(--main-hue) calc(h) 2% 66%);

  /* Cancelled / „Abgesagt“ */
  --cancelled-box-border: #a73f16;
  --cancelled-box-bg: #e8beb1;
  --cancelled-stamp-border: #b91c1c;
  --cancelled-stamp-text: #b91c1c;
  --cancelled-stamp-bg: rgba(96, 92, 92, 0.92);

  /* Footer (in-content links use --link-hover-color) */
  --footer-text: var(--text-color);
  --footer-muted: var(--text-color);
  --footer-link: var(--text-color);
  --footer-instagram-color: var(--footer-link);
  --footer-facebook-color: var(--footer-link);

  /* Figures without theme-adaptive backgrounds */
  --figure-img-bg: rgb(244, 197, 103);
  --image-chamfer-size: 12px;

  /* Concert list cards (rounded rectangle behind each entry) */
  /* --concert-card-bg: hsl(from var(--main-hue) calc(h) 16% 15%); */
  --concert-card-hover-overlay: rgb(255 255 255 / 14%);
  --concert-card-divider-color: hsla(30, 9%, 52%, 0.94);
  --concert-card-divider-gap: 0.625rem;
  --concert-card-radius: 8px;
  --concert-card-padding: 0.85rem 1.75rem;

  /* Hamburger icon height (mask follows the label box); tweak this to resize */
  --burger-icon-size: 20px;

  /* Main text column — header/footer match on wide viewports (see min-width: 701pt) */
  --content-column-ratio: 0.8;
  --content-column-width: calc(var(--content-column-ratio) * 100%);

  --achteck-clip: polygon(
    var(--image-chamfer-size) 0,
    calc(100% - var(--image-chamfer-size)) 0,
    100% var(--image-chamfer-size),
    100% calc(100% - var(--image-chamfer-size)),
    calc(100% - var(--image-chamfer-size)) 100%,
    var(--image-chamfer-size) 100%,
    0 calc(100% - var(--image-chamfer-size)),
    0 var(--image-chamfer-size)
  );
}

.table-of-contents,
.table-of-contents details,
.table-of-contents summary,
.table-of-contents nav {
  background-color: var(--page-bg-surface);
}

.table-of-contents {
  border-color: var(--toc-border-color);
}

/* Plain in-content links (card / header / heading links keep their own colors) */
.body-content a:not(.heading-link) {
  color: var(--link-color);
}

.body-content a:not(.card-link):not(.heading-link):hover,
.body-content a:not(.card-link):not(.heading-link):focus-visible {
  color: var(--link-hover-color);
}

.body-content .card-link,
.body-content .card-link:hover,
.body-content .card-link:focus-visible,
.body-content .post-concert .post-title a {
  color: var(--card-link-color);
}

h1 {
  font-size: 1.60em;
}

/* Letter outline: active nav item (incl. site title on home) */
.header-site-title {
  -webkit-text-stroke: 1px var(--nav-active-stroke);
  paint-order: fill stroke;
}

.header .links a:hover,
.header .links a:focus-visible,
.header-site-title a:hover,
.header-site-title a:focus-visible {
  color: var(--nav-hover-cream);
}

.body-content :is(h2, h3, h4, h5, h6) {
  /* -webkit-text-stroke: 2px red; */
  paint-order: stroke fill;
}

.header,
.site-footer {
  color: var(--header-text);
  font-size: 0.9rem;
  position: relative;
  isolation: isolate;
  margin-top: 0;
  /* Theme-Hintergrundbild deckt oben nicht zuverlässig ab → Leerstreifen; Farbe kommt von ::before */
  background-image: none;
  background-color: transparent;
  padding-top: env(safe-area-inset-top, 0px);
}

.header::before,
.site-footer::before {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-color: var(--header-band-bg);
  z-index: -1;
  pointer-events: none;
}

/* Header-Band bis in die iOS-Safe-Area (viewport-fit=cover) */
.header::before {
  top: calc(-1 * env(safe-area-inset-top, 0px));
}

.site-footer::before {
  top: 0;
}

/* hr {
  border: 0;
  border-top: 2px solid rgb(245, 225, 211);
} */

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--page-bg-surface);
}

/* Scrollbar-Gutter: gleiche Farbe wie Seitenhintergrund (nicht Header-Braun) */
html {
  scrollbar-gutter: stable;
}

/* Theme setzt body auf weiß — Gutter links/rechts der zentrierten .main-Spalte */
@media only screen and (max-width: 700pt) {
  body {
    background-color: var(--page-bg-surface);
  }
}

.body-content {
  color: var(--text-color);
  width: var(--content-column-width);
  margin-left: auto;
  margin-right: auto;
}

/* Wide: same column as .body-content (theme .main is 700pt; below that, full width) */
@media only screen and (min-width: 701pt) {
  .header-content {
    width: var(--content-column-width);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
  }

  .site-footer {
    padding-left: 0;
    padding-right: 0;
  }

  .footer-inner {
    width: var(--content-column-width);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}

/* Fenced code on Impressum (addresses): keep inside column so the page does not scroll horizontally on mobile (breaks full-bleed header band). */
.body-content pre {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: auto;
}

.body-content pre > code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

a:hover {
	text-decoration: none;
}

.card-link {
  display: inline-flex;
  width: 100%;
  font-size: 0.8em;
  color: var(--card-link-color);
  /* Dark color for title */
  /* text-decoration: none; */
  /* Remove underline */
}

/* .card-link hover {
  text-decoration: underline;
  color: #7fa0c3;
} */

.card {
  width: 100%;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  padding: var(--concert-card-padding);
  border-radius: var(--concert-card-radius);
  background-color: var(--concert-card-bg);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;      /* optional image/whole‑card zoom */
}

.card-link:hover .card,
.card-link:focus-visible .card,
.card-link:active .card {
  background: linear-gradient(0deg, var(--concert-card-hover-overlay), var(--concert-card-hover-overlay)), var(--concert-card-bg);
  border-color: var(--card-hover-border-color);
  transform: scale(1.02);       /* subtle zoom – optional */
  color: var(--link-hover-color);
}

.card-link:hover .card-img.thumbnail-filter,
.card-link:focus-visible .card-img.thumbnail-filter,
.card-link:active .card-img.thumbnail-filter {
  filter: brightness(1.2) grayscale(0.3) sepia(0.4);
  transition:
    filter 0.2s ease 0.2s;       /* 0.2 s delay */
}


.body {
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
}

/* 100 % grayscale  */
.grayscale {
  filter: grayscale(1);
}

/* 100 % sepia  */
.sepia {
  filter: sepia(1);
}

/* combine several effects */
.bw‑sepia {
  filter: grayscale(1) sepia(1);
}

/* more… */
.bright {
  filter: brightness(1.2);
}

.thumbnail-filter {
  filter: grayscale(0.5) brightness(1.2) sepia(0.8);
}

.title {
  font-weight: bold;
  font-size: 1.8rem;
  /* color: rgb(162, 74, 42); */
}

.title a:hover {
  color: var(--nav-hover-cream);
}

.body-content figure:not(.color-adapting-image) img {
  /* if the image is designed to adapt to the theme, then don't use a background */
  background-color: var(--figure-img-bg);
  /* images with transparent backgrounds typically assume a light background */
}

.img-circle {
  border-radius: 50%;
  clip-path: none;
}

.img-headshot {
  border: 6px solid #fff;
}

.welcome-splash {
  background-image: url("/background.jpg");
  background-size: cover;
  background-position: center bottom;
}

.welcome-splash-text {
  text-shadow: 0 0 20px white, 0 0 20px white, 0 0 20px white, 0 0 20px white, 0 0 20px white;
}

.header {
  --document-margin: 5pt;
  /* Positive moves logo down; adjust if needed */
  --logo-optical-shift-y: 3px;
}

/* Burger-Menü: Overlay über Karussell (Slides/Caption z-index 2–3; Theme-Overlay nur 2) */
.show-hide-menu-input:checked ~ .overlay {
  z-index: 10;
}

.show-hide-menu-input:checked ~ .header {
  z-index: 11;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-logo {
  flex: 0 0 auto;
  align-self: center;
}

.site-logo a {
  display: inline-flex;
  align-items: center;
  position: relative;
  line-height: 0;
}

/* Logo tint: mask + --header-text (works with relative color syntax; filter drop-shadow does not) */
.site-logo a::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--header-text);
  -webkit-mask-image: var(--header-logo-mask);
  mask-image: var(--header-logo-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  mix-blend-mode: screen;
  transform: translateY(var(--logo-optical-shift-y, 0px));
  transition: opacity 0.18s ease, filter 0.18s ease;
  pointer-events: none;
}

.site-logo img {
  display: block;
  width: 140px;
  height: auto;
  margin: 0;
  border-radius: 0;
  max-width: none;
  visibility: hidden;
}

.site-logo a:hover::before,
.site-logo a:focus-visible::before {
  opacity: 0.68;
  filter: brightness(1.08);
}

/* Burger tint: same mask technique as heading-nav-icon */
.header #show-hide-menu-label {
  position: relative;
}

.header #show-hide-menu-label::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--header-text);
  -webkit-mask-image: url("/images/hamburger.svg");
  mask-image: url("/images/hamburger.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  pointer-events: none;
}

.header #show-hide-menu-label img.color-adapting-image {
  visibility: hidden;
  filter: none;
}

.header-nav {
  flex: 1 1 auto;
  align-self: flex-end;
  transform: translateY(calc(-3px + var(--logo-optical-shift-y, 0px)));
}

.header-nav .links {
  margin-top: 0;
}

/* Burger sichtbar (Theme: max-width 400pt) — Titel vor dem Icon umbrechen, Burger bleibt absolute */
@media only screen and (max-width: 400pt) {
  :root {
    /* Icon + Label-Padding (Theme: --label-padding 0.3em) + Abstand zwischen Controls */
    --header-controls-width: max(2.75rem, calc(var(--burger-icon-size) + 6px + 1.2em + 0.4em));
  }

  .header-right {
    right: calc(var(--document-margin) - var(--label-padding) + 0.45rem);
  }

  #show-hide-menu-label img {
    height: var(--burger-icon-size);
    width: auto;
  }

  #show-hide-menu-label {
    transition: transform 100ms;
  }

  .show-hide-menu-input:checked ~ .header #show-hide-menu-label {
    transform: rotate(90deg);
  }

  .show-hide-menu-input:checked ~ .header #show-hide-menu-label > img {
    transform: none;
  }

  /* Theme setzt overflow:hidden — Gutter bleibt reserviert, Burger springt nicht */
  html:has(.show-hide-menu-input:checked) {
    overflow: hidden;
    height: 100%;
    touch-action: pan-zoom;
    scrollbar-gutter: stable;
  }

  .header-content {
    align-items: center;
  }

  .site-logo img {
    width: 110px;
  }

  /* Site-Titel: Platz für absolut positionierten Burger reservieren */
  .header-text-column {
    min-width: 0;
    padding-inline-end: var(--header-controls-width);
  }

  .header-site-title {
    overflow-wrap: break-word;
  }

  /* Seitentitel (h1) nur: Umbrechen vor Burger — nicht auf Konzert-Detail */
  .title-header:not(.title-header--konzerte) > h1 {
    box-sizing: border-box;
    padding-inline-end: var(--header-controls-width);
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
  }

  .title-header--konzerte .title-header-concert-title {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
  }

  .links,
  .show-hide-menu-input:checked ~ .header .links {
    background-color: var(--page-bg-surface);
  }
}

img {
  display: block;
  margin: 0 0 1rem;
  border-radius: 0;
  max-width: 80%;
  margin: auto;
  clip-path: var(--achteck-clip);
}

.body-content .heading-top {
  color: var(--heading-nav-color);
}

.body-content :is(h1, h2, h3, h4, h5, h6) > .heading-link {
  color: var(--text-color);
  text-decoration: none;
}

.body-content :is(h1, h2, h3, h4, h5, h6) > .heading-link:hover,
.body-content :is(h1, h2, h3, h4, h5, h6) > .heading-link:focus-visible {
  color: var(--text-color);
  text-decoration: underline;
}

.heading-nav-icon {
  display: inline-block;
  margin: 0;
  vertical-align: 0.12em;
  width: 1em;
  height: 1em;
  background-color: var(--heading-nav-color);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.heading-nav-icon--top {
  -webkit-mask-image: url("/images/arrow-up.svg");
  mask-image: url("/images/arrow-up.svg");
}

/* Container for the entire list */
.future-posts-container {
  /* Ensures the box extends across the full available content width */
  width: 100%;

  /* Adds a bit of space above and below the entire section */
  margin: 40px 0;

  /* Optional: Center the content if the page has internal limitations */
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 1.5em;
}

/* Styling for each individual post link box */
.post-box {
  /* Full width within its container */
  width: 95%;

  /* Adds space inside the box */
  padding: 10px;
  padding-top: 0px;

  /* Adds a subtle border to delineate each post */
  border: 1px solid #ccc;

  /* Space between individual post boxes */
  margin-bottom: 15px;

  /* Optional: Subtle box shadow for depth */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);

  /* Optional: Rounded corners */
  border-radius: 9px;

  /* Optional: Light background color */
  /* background-color: #f9f9f9; */
}

.post-box--session {
  border-color: #27a716;
  /* background-color: #e12121; */
}

.post-box--special {
  border-color: #a73f16;
  /* background-color: #e12121; */
}

.post-box--cancelled {
  border-color: var(--cancelled-box-border);
  background-color: var(--cancelled-box-bg);
  /* text-decoration: line-through; */
}

/* Style the scheduled date */
.post-scheduled-date {
  font-style: italic;
  margin-top: 5px;
  margin-bottom: 10px;
}

/* Konzert-Specials (Kategorien in hugo.toml [[params.concertSpecialCategories]]) */
.concert-special-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.post-concert-text .concert-special-badges--card {
  margin-top: 0.15rem;
  margin-bottom: 0.2rem;
}

.concert-special-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.concert-special-badge--pill {
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-caps: small-caps;
  letter-spacing: 0.02em;
  line-height: 1.25;
  border-radius: 8px;
  padding: 0.42em 0.85em;
  min-height: 1.85em;
  box-sizing: border-box;
  max-width: 100%;
  border: none;
}

.concert-special-badge--image {
  padding: 0.2em;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
}

.concert-special-badge--image img {
  display: block;
  width: auto;
  height: 1.5rem;
  max-height: 1.75rem;
  object-fit: contain;
}

.concert-special-badge--title.concert-special-badge--pill {
  font-size: 0.78rem;
  padding: 0.45em 0.9em;
  border-radius: 8px;
}

.title-header--konzerte {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.title-header--konzerte .title-header-concert-title {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.title-header--konzerte .title-header-concert-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 0.75rem;
  row-gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  margin-top: 0.2rem;
  box-sizing: border-box;
}

.title-header--konzerte .title-header-date {
  min-width: 0;
  color: var(--text-muted);
}

.title-header--konzerte .title-header-concert-badges {
  justify-self: end;
  text-align: right;
}

.title-header--konzerte .concert-special-badges--title {
  justify-content: flex-end;
}

.title-header--konzerte .concert-date-instance-wrap {
  margin: 0;
}

/* Termin-Fragment (#YYYY-MM-DD): alle Anker gleiche Scroll-Position (viewport-top), :target wählt Terminzeile */
.concert-page {
  position: relative;
}

.concert-date-anchors {
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
}

.concert-date-anchor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  pointer-events: none;
  visibility: hidden;
  scroll-margin-top: 0;
}

.body-content .concert-date-anchor:target {
  scroll-margin-top: 0;
}

.body-content .concert-date-anchor:target::before {
  content: none;
  display: none;
}

/* Nur eine Terminzeile: passendes Fragment (von der Liste verlinkt), sonst erster Termin */
.concert-date-instance-wrap .concert-date-instance {
  display: none;
}

.concert-page:not(:has(.concert-date-anchor:target)) .concert-date-instance-wrap .concert-date-instance:first-child {
  display: block;
}

.concert-page:has(.concert-date-anchor:target) .concert-date-instance-wrap .concert-date-instance {
  display: none;
}

/* Pairing-Regeln (:target → Terminzeile): partial concert-date-instance-target-css.html */

/* Container for the entire list */

/* Abgesagte Konzerte in der Übersicht (concerttype = cancelled | canceled) */
.post-concert--cancelled .card-link {
  position: relative;
}

/* Abgesagt: deckender Cream-Hintergrund; Text per color-mix, Bilder per filter/opacity */
.post-concert--cancelled .card {
  background-color: var(--page-bg-surface);
  --cancelled-ink: color-mix(in srgb, var(--card-link-color) 52%, var(--page-bg-surface));
}

.post-concert--cancelled .post-concert-text,
.post-concert--cancelled .post-title,
.post-concert--cancelled .post-scheduled-date {
  color: var(--cancelled-ink);
  filter: grayscale(1);
}

.post-concert--cancelled .concert-special-badges--card {
  filter: grayscale(1);
  opacity: 0.52;
}

.post-concert--cancelled .card-img {
  filter: grayscale(1) brightness(0.82);
  opacity: 0.52;
}

.post-concert--cancelled .card-img.thumbnail-filter {
  filter: grayscale(1) brightness(0.82);
  opacity: 0.52;
}

/* Hover: gleiche Interaktion wie aktive Konzerte; Ruhezustand bleibt gedämpft */
.post-concert--cancelled .card-link:hover .post-concert-text,
.post-concert--cancelled .card-link:focus-visible .post-concert-text,
.post-concert--cancelled .card-link:active .post-concert-text,
.post-concert--cancelled .card-link:hover .post-title,
.post-concert--cancelled .card-link:focus-visible .post-title,
.post-concert--cancelled .card-link:active .post-title,
.post-concert--cancelled .card-link:hover .post-scheduled-date,
.post-concert--cancelled .card-link:focus-visible .post-scheduled-date,
.post-concert--cancelled .card-link:active .post-scheduled-date {
  color: var(--link-hover-color);
  filter: none;
}

.post-concert--cancelled .card-link:hover .concert-special-badges--card,
.post-concert--cancelled .card-link:focus-visible .concert-special-badges--card,
.post-concert--cancelled .card-link:active .concert-special-badges--card {
  filter: none;
  opacity: 1;
}

.post-concert--cancelled .card-link:hover .card-img,
.post-concert--cancelled .card-link:focus-visible .card-img,
.post-concert--cancelled .card-link:active .card-img,
.post-concert--cancelled .card-link:hover .card-img.thumbnail-filter,
.post-concert--cancelled .card-link:focus-visible .card-img.thumbnail-filter,
.post-concert--cancelled .card-link:active .card-img.thumbnail-filter {
  filter: grayscale(1) brightness(0.82);
  opacity: 0.52;
}

.concert-cancelled-stamp {
  box-sizing: border-box;
  padding: 0.4em 0.85em;
  border: 2px solid var(--cancelled-stamp-border);
  border-radius: 4px;
  background: var(--cancelled-stamp-bg);
  color: var(--cancelled-stamp-text);
  font-size: clamp(1.14rem, 3.36vw, 1.38rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.concert-cancelled-stamp--card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%) rotate(-5deg);
  pointer-events: none;
}

.concert-cancelled-stamp--detail {
  display: inline-block;
  margin: 0.2rem 0 0.45rem;
  transform: rotate(-5deg);
  transform-origin: left center;
}

.concert-page--cancelled .concert-page__toned {
  filter: grayscale(1);
  opacity: 0.72;
}

.title-header--konzerte .concert-cancelled-stamp--detail {
  grid-column: 1 / -1;
  display: block;
  width: fit-content;
}

/* Styling for each individual post link box */
.post-concert {
  display: flex;
  justify-content: space-between;
  /* pushes image to the right */
  align-items: stretch;
  /* makes children match height */
  height: 120px;
  /* fixed height */
  /* border: 1px solid #ccc; */
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);  */
  /* border-radius: 9px;  */
  /* background-color: #f9f9f9; */
}

@media (max-width: 400pt) {
  /* Concert list: link + card span full column width; no side padding (matches <hr> dividers). */
  .scroll-container > .post-concert {
    display: block;
  }

  .scroll-container > .post-concert > .card-link {
    display: flex;
    width: 100%;
    box-sizing: border-box;
  }

  .scroll-container > .post-concert .card {
    padding: 0.85rem 0;
  }

  .scroll-container > .post-concert .post-concert-text {
    padding-right: 0;
  }
}

/* Style the main link/title */
.post-concert .post-title a {
  font-size: 0.8em;
  color: var(--card-link-color);
  /* Dark color for title */
  text-decoration: none;
  /* Remove underline */
}

.post-concert .post-title .post-scheduled-date a:hover {
  color: var(--link-hover-color);
}

.post-concert-text {
  flex: 1;
  min-width: 0;
  /* takes remaining space */
  padding-right: 10px;
  overflow: hidden;
  /* prevents overflow if text is long */
}

.post-concert img,
.post-concert img.card-img,
.post-concert .card-img.thumbnail-filter {
  height: 6.75rem;
  width: auto;
  max-width: min(56vw, 16rem);
  object-fit: cover;
  object-position: center top;
  display: block;
  align-self: center;
  flex-shrink: 0;
}

/* Nebeneinander-Layout: Thumbnail so weit nach links wie möglich; bei wenig Platz für Titel+Badges
   wickelt die Zeile um → Bild unter dem Bandnamen, kein Abschneiden der Badges. */
@media (min-width: 769px) {
  .post-concert {
    height: auto;
    min-height: 120px;
    align-items: flex-start;
  }

  .post-concert .card {
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 0.65rem;
    row-gap: 0.35rem;
  }

  .post-concert-text {
    flex: 1 1 15rem;
    flex-shrink: 0;
    min-width: 15rem;
    max-width: 100%;
    overflow: visible;
  }

  .post-concert img,
  .post-concert img.card-img,
  .post-concert .card-img.thumbnail-filter {
    max-width: min(96vw - 5.5rem, 72rem);
    object-position: left top;
    align-self: flex-start;
    margin-inline-start: auto;
  }

}

/* Konzertliste: bis 768px gestapeltes Layout; ab 769px Titelblock und Bild nebeneinander */
@media (max-width: 768px) {
  .post-concert {
    height: auto;
    min-height: auto;
    align-items: stretch;
  }

  .post-concert .card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    column-gap: 0.65rem;
    row-gap: 0.35rem;
    width: 100%;
    align-items: start;
    min-height: 0;
    height: auto;
  }

  .post-concert .card .post-concert-text {
    display: contents;
  }

  .post-concert .post-title {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0 0 0.2rem;
    min-width: 0;
  }

  .post-concert .post-scheduled-date {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    justify-self: start;
    align-self: start;
  }

  .post-concert .concert-special-badges {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    align-self: end;
    margin: 0;
  }

  .post-concert .card > img.card-img {
    grid-column: 2;
    grid-row: 2 / 4;
    justify-self: end;
    align-self: end;
    display: block;
    width: auto;
    max-width: min(56vw, 34rem);
    height: 6.75rem;
    min-height: 6.75rem;
    max-height: 6.75rem;
    object-fit: cover;
    object-position: center top;
  }
}

.scroll-container > .post-concert:first-of-type {
  padding-top: 5px;
}

.scroll-container > .post-concert:last-of-type {
  padding-bottom: 10px;
}

/* Full content-column width; equal gap above and below the line */
.scroll-container > hr {
  box-sizing: border-box;
  margin-block: var(--concert-card-divider-gap);
  padding: 0;
  border: 0;
  border-top: 1px solid var(--concert-card-divider-color);
  width: 100%;
}

figure.align-left img {
  /* Make the image a block element */
  display: block;
  /* Use margins to push it left */
  margin-left: 0;
  margin-right: auto;
}

.main {
  /* kein margin oben — sonst body-Hintergrund zwischen Viewport und Site-Header */
  margin-top: 0 !important;
  box-shadow: 0 0 0px rgba(50, 50, 50, .17);
  background-color: var(--page-bg-surface);
}

.scroll‑container {
  height: 100vh;                /* full‑screen scrollable area */
  overflow-y: auto;
  scroll-snap-type: y mandatory; /* snap vertically */
}

/* 2️⃣  Each item – snap to the center of the viewport */
.scroll‑item {
  scroll-snap-align: center;
  min-height: 100vh;            /* each item takes one screen height */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0.5;                 /* start dimmed */
  transition: opacity 0.4s ease;
}

/* 3️⃣  When an item is the *center* (CSS cannot detect this exactly) – use the :nth-child trick */
.scroll‑container::-webkit-scrollbar { display: none; }  /* optional: hide scrollbar */

/* ============================================================
   Site Footer
   Add this file to: static/css/footer.css
   Then reference it in your hugo.toml (see below).
   ============================================================ */

.site-footer {
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: var(--footer-text);
}

.footer-inner {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

/* ── Sponsor logos ─────────────────────────────────────────── */

.footer-sponsors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.ext-link {
  display: inline-block;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.ext-link:hover,
.ext-link:focus {
  opacity: 1;
}

.sponsor-logo {
  height: 84px;
  /* adjust to taste */
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.ext-link:hover .sponsor-logo,
.ext-link:focus .sponsor-logo {
  filter: grayscale(0%);
}

/* ── Footer navigation links ───────────────────────────────── */

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
}

.footer-nav a {
  color: var(--footer-link);
  text-decoration: none;
  opacity: 0.7;
}

.footer-nav a:hover,
.footer-nav a:focus {
  opacity: 1;
}

.footer-nav .inline-icon {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.125em;
}

.footer-nav svg.inline-icon--instagram {
  color: var(--footer-instagram-color);
}

.footer-nav svg.inline-icon--facebook {
  color: var(--footer-facebook-color);
}

/* ── Optional copyright / freeform text ────────────────────── */

.footer-text {
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.82rem;
}

/* ── Responsive: stack tighter on small screens ────────────── */

@media (max-width: 800px) {
  .footer-sponsors {
    gap: 1.0rem;
  }

  .sponsor-logo {
    height: 56px;
  }

  .footer-nav {
    gap: 0.25rem 1rem;
  }
}

/* ── 404: „verstimmt“ — leicht anderer Auftritt als normale Seiten ── */

body:has(.page-404) {
  background-color: var(--page-bg);
}

.body-content:has(.page-404) {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.page-404 {
  box-sizing: border-box;
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem 2.25rem 2.1rem;
  text-align: center;
  border: 1px dashed rgba(197, 122, 73, 0.65);
  border-radius: 4px 18px 6px 14px;
  background: rgba(255, 253, 250, 0.92);
  box-shadow:
    2px 3px 0 rgba(40, 48, 39, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transform: rotate(-0.45deg);
}

.page-404-ref {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(160, 118, 82);
}

.page-404-title {
  margin: 0 0 1rem;
  font-size: 1.45em;
  font-weight: 600;
  line-height: 1.25;
}

.page-404-lead {
  margin: 0 0 1.35rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgb(58, 62, 58);
}

.page-404-actions {
  margin: 0;
  font-size: 0.95rem;
}

.page-404-actions a {
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .page-404 {
    transform: none;
  }
}

/* ── Konzertzeiten (Einlass / Konzertbeginn) ──────────────── */

.concert-times-after {
  margin-top: 1rem;
}

/* Schweizer Satz: font: inherit gleicht UA für <time> aus.
   Kein inline-flex: WebKit rückt bei flex+baseline + kleinerer Schrift die Minuten oft unter die Zeile.
   Stattdessen inline-block + Inline-Kinder mit derselben Baseline (stabiler in Safari & Firefox). */
aside.concert-times-after .inserttimes-time.inserttimes-time--ch {
  font: inherit;
  color: inherit;
  display: inline-block;
  vertical-align: baseline;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: normal;
  line-height: inherit;
}

aside.concert-times-after .inserttimes-time.inserttimes-time--ch > .inserttimes-time-h,
aside.concert-times-after .inserttimes-time.inserttimes-time--ch > .inserttimes-time-m {
  display: inline;
}

aside.concert-times-after .inserttimes-time.inserttimes-time--ch > .inserttimes-time-h {
  vertical-align: baseline;
  font-size: 1em;
  font-weight: inherit;
}

/* Prozent = berechnete Größe von <time> */
aside.concert-times-after .inserttimes-time.inserttimes-time--ch > .inserttimes-time-m {
  margin-left: 0.12em;
  font-size: 65%;
  font-weight: inherit;
  vertical-align: baseline;
}

/* Gecko (Firefox): kleinere Nachbarn-Zeichen liegen oft optisch unter der Baseline;
   WebKit bleibt bei baseline (laut Erfahrung dort passend). */
@supports (-moz-appearance: none) {
  aside.concert-times-after .inserttimes-time.inserttimes-time--ch > .inserttimes-time-m {
    vertical-align: middle;
  }
}

.concert-prices-after {
  margin-top: 0.65rem;
}

/* Must be block-level and span the column width; an inline span shrink-wraps
   to content so container queries never see a “narrow” width and the slash stays visible. */
.inserttimes {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  container-type: inline-size;
  container-name: inserttimes;
}

.inserttimes-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.15em;
}

.inserttimes-part {
  flex: 0 1 auto;
  min-width: 0;
}

.inserttimes-sep {
  font-weight: 300;
  opacity: 0.55;
  flex: 0 0 auto;
}

/* Stack the two lines and drop "/" when the column (container) is narrow */
@container inserttimes (max-width: 28rem) {
  .inserttimes-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2em 0;
  }

  .inserttimes-sep {
    display: none;
  }
}

/* Fallback when container queries are unsupported or mis-sized */
@media (max-width: 28rem) {
  .inserttimes-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2em 0;
  }

  .inserttimes-sep {
    display: none;
  }
}

.inserttimes-value--custom {
  display: inline-block;
  padding: 0.08em 0.45em 0.06em;
  margin: 0 0.06em;
  border-radius: 0.3em;
  font-weight: 600;
  color: rgb(154, 68, 42);
  background: linear-gradient(
    145deg,
    rgba(197, 122, 73, 0.22),
    rgba(197, 122, 73, 0.06)
  );
}

/* Besetzung (`bandmembers`): unter Fließtext, direkt vor Zeiten/Preisen */
.concert-band-members.concert-band-members-before-times {
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.concert-band-members-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.concert-band-members-item {
  margin: 0.15em 0 0;
}

.concert-band-members-item:first-child {
  margin-top: 0;
}

.concert-band-members-name {
  font-weight: 500;
}

.concert-band-members-sep {
  font-weight: 300;
  opacity: 0.65;
}

.concert-band-members-inst {
  font-weight: 300;
}

/* YouTube thumbnail shortcode (youtube-thumb): statisches Vorschaubild, kein JS */
.youtube-thumb {
  margin: 1rem 0;
  max-width: 32rem;
}

.youtube-thumb__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.youtube-thumb__link:hover .youtube-thumb__img,
.youtube-thumb__link:focus-visible .youtube-thumb__img {
  filter: brightness(1.08);
}

.youtube-thumb__frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0;
  clip-path: var(--achteck-clip);
  box-shadow: 0 0.08rem 0.35rem rgba(0, 0, 0, 0.12);
  background: #111;
}

.youtube-thumb__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.youtube-thumb__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.25rem;
  height: 3.25rem;
  margin: -1.625rem 0 0 -1.625rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.35);
}

.youtube-thumb__play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -0.45rem 0 0 -0.28rem;
  border-style: solid;
  border-width: 0.45rem 0 0.45rem 0.75rem;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.95);
}

.youtube-thumb__caption {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.youtube-thumb--fallback {
  font-size: 0.9rem;
}

.concert-season-empty {
  color: rgb(120, 120, 120);
  font-size: 0.92rem;
  margin: 0.75rem 0 1rem;
}

/* Startseite: nächste 3 Konzerte — reines CSS (Autoplay, Pause bei Hover) */
.concert-carousel {
  margin: 3rem 0 1.75rem;
  width: 100%;
  max-width: 100%;
}

.concert-carousel__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 22rem;
  margin: 0;
  border-radius: 0;
  clip-path: var(--achteck-clip);
  overflow: hidden;
  box-shadow: 0 0.12rem 0.5rem rgba(0, 0, 0, 0.14);
  background: rgb(30, 30, 30);
}

.concert-carousel__slide {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  outline-offset: 3px;
}

.concert-carousel__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

.concert-carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0.85rem 0.65rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 100%);
  color: --text-color;
  text-shadow: 0 0.06rem 0.2rem rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.concert-carousel__band {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
}

.concert-carousel__dateline {
  flex: 0 0 auto;
  font-weight: 500;
  opacity: 0.95;
  white-space: nowrap;
  text-align: right;
}

.concert-carousel--1 .concert-carousel__slide {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: auto;
}

.concert-carousel:hover .concert-carousel__slide {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  #concert-carousel-home.concert-carousel .concert-carousel__slide {
    animation: none !important;
  }

  #concert-carousel-home.concert-carousel .concert-carousel__slide:not(:first-child) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  #concert-carousel-home.concert-carousel .concert-carousel__slide:first-child {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 2 !important;
  }
}

.gallery-section-title
{
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.gallery-grid
{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.gallery-item img
{
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.2s;
}

.gallery-item img:hover
{
  transform: scale(1.03);
}

.gallery-modal
{
  position:absolute;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  background-color  : var(--page-bg-surface);
}

.gallery-modal-content
{
  margin-top:10px;
  margin-left:auto;
  margin-right:auto;
  margin-bottom:auto;
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  right:0;
  display: flex;
  justify-content: center;
  align-items: top;
  height: 100vh;
  width:100%
}

.gallery-modal-content:focus-visible {
    outline: none;
}

.gallery-modal-nav-btn-common
{
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;

    border: none;
    background: rgba(0,0,0,0);
    color: var(--text-color);

    font-size: 32px;
    cursor: pointer;
    transition: background 0.2s;
}

.gallery-modal-nav-btn-next
{
  right:0;
}

.gallery-modal-nav-btn-prev
{
  left:0;
}

.gallery-modal-nav-btn-common:hover
{
    background: rgba(0,0,0,0.1);
}

@keyframes galleryImageAppear
{
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

.gallery-modal-image
{
  opacity: 0;
  max-height: 85vh;
  animation-name:galleryImageAppear;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}
