/* Helvetica: use the browser's/system's Helvetica if available (local()),
   otherwise fall back to the bundled font files in fonts/. */
@font-face {
  font-family: "Helvetica Web";
  src: local("Helvetica"), local("Helvetica Neue"),
       url("fonts/Helvetica.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Web";
  src: local("Helvetica Bold"), local("Helvetica-Bold"),
       url("fonts/Helvetica-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Web";
  src: local("Helvetica Oblique"), local("Helvetica-Oblique"),
       url("fonts/Helvetica-Oblique.woff2") format("woff2");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Web";
  src: local("Helvetica Bold Oblique"), local("Helvetica-BoldOblique"),
       url("fonts/Helvetica-BoldOblique.woff2") format("woff2");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

:root {
  --column-width: 720px;
  --gutter: 16px;
  --text: #1d1d1b;
  --muted: #555;
  --link: #2a6ebb;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--text);
  font-family: "Helvetica Web", Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Centered column on wide screens, full width (minus gutter) on narrow ones. */
.page {
  max-width: var(--column-width);
  margin: 0 auto;
  padding: 32px var(--gutter) 64px;
}

/* Header / logo */
.site-header {
  text-align: center;
  margin-bottom: 40px;
}
.site-header img {
  width: 220px;
  max-width: 60%;
  margin: 0 auto;
}

/* Titles use Anton SC (Google Fonts, loaded in index.html). */
h1, h2 {
  font-family: "Anton SC", "Helvetica Web", Helvetica, Arial, sans-serif;
  font-weight: normal;
  letter-spacing: 0.02em;
  text-align: center;
}
h1 {
  font-size: 2rem;
  margin: 0 0 12px;
}
h2 {
  font-size: 1.85rem;
  margin: 0 0 16px;
}

section { margin-bottom: 48px; }

.intro p {
  margin: 0 0 24px;
  text-align: left;
  hyphens: auto;
}
.intro img { width: 100%; }
.gruppenfoto {
  margin: 0;
}
.gruppenfoto figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Contact links (e-mail, Instagram) as pill buttons of equal width */
.contacts {
  display: grid;
  grid-template-columns: minmax(auto, max-content); /* one column, as wide as the widest button */
  justify-content: center;                          /* column centered in the page column */
  margin: 0 0 32px;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: bold;
}
.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  padding: 8px 20px;
  border: 2px solid var(--text);
  border-radius: 999px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.contact:hover {
  background: var(--text);
  color: #fff;
  text-decoration: none;
}
.contact-instagram .icon {
  width: 1.4em;
  height: 1.4em;
}

/* Kommende Auftritte */
/* The list is one grid split exactly in the middle: the date sits
   right-aligned in the left half, title and details in the right half. */
.events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 24px;
}
.event {
  display: contents;
}
.event-date {
  font-size: 1.35rem;
  white-space: nowrap;
  text-align: right;
}
.event-title {
  font-size: 1.35rem;
  font-weight: bold;
  margin: 0;
}
.event-detail {
  font-size: 0.85rem;
  margin: 2px 0 0;
}
.event-detail a { display: inline-block; }

/* Impressionen */
.impression {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 12px;
  margin-bottom: 40px;
}
.impression-description {
  font-size: 1.15rem;
  font-weight: bold;
}
.impression-description p { margin: 0; }
/* Two-column masonry: each column flows on its own, so there are no gaps
   between images of different heights. */
.impression-gallery {
  columns: 2;
  column-gap: 12px;
}
.impression-gallery img {
  width: 100%;
  margin-bottom: 12px;
  break-inside: avoid;
}

/* Narrow screens: date above the title instead of beside it */
@media (max-width: 640px) {
  .events { display: block; }
  .event {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 2px;
    margin-bottom: 24px;
  }
  .event-date { font-size: 1.05rem; text-align: left; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .page { padding-top: 24px; }
  .site-header img { width: 180px; }
  .impression-gallery { column-gap: 8px; }
  .impression-gallery img { margin-bottom: 8px; }
  .contacts { font-size: 1.05rem; }
  .contact { padding: 8px 14px; }
}
