/* Charisma – aktuelle Gestaltung */

:root {
  --white: #ffffff;
  --sand: #f3f1eb;
  --sand-light: #faf9f5;
  --slate-blue: #9fc0cf;
  --slate-blue-light: #e4edf2;
  --slate: #4b4a48;
  --text: #2f302f;
  --muted: #76736d;
  --accent: #9a8065;
  --border: #dcd9d1;

  --header-height: 82px;
  --content-width: 1120px;
}


/* =========================================================
   GRUNDLAGEN
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

main {
  flex: 1;
}

a {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--slate-blue-light);
  color: var(--slate);
  border-bottom: 1px solid rgba(71, 76, 79, 0.12);
  box-shadow: 0 2px 12px rgba(47, 48, 47, 0.06);
}

.header-inner {
  width: min(100% - 36px, var(--content-width));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.site-logo {
  width: 132px;
  height: auto;
  max-height: 62px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.main-nav a {
  padding: 9px 10px;
  color: var(--slate);
  text-decoration: none;
  font-size: 1.025rem;
  border-radius: 5px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.6);
  color: var(--slate);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  background: var(--slate);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

/* Hamburger wird zum X */
.menu-toggle.is-open > span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open > span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open > span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  background: var(--sand-light);
  padding: 62px 24px;
}

.hero-inner {
  width: min(100% - 28px, var(--content-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 32px;
}

.hero-content {
  max-width: 500px;
}

.hero-image-wrap {
  display: flex;
  justify-content: flex-end;
}

.hero-image {
  display: block;
  width: min(100%, 560px);
  height: auto;
}

.eyebrow,
.section-label {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--slate);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.08;
  font-weight: 600;
}

.hero-text {
  max-width: 650px;
  margin: 20px auto 0;
  color: #5f605e;
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
}


/* =========================================================
   SECTIONS / CONTAINER / ÜBERSCHRIFTEN
   ========================================================= */

.section {
  padding: 55px 20px;
  scroll-margin-top: var(--header-height);
}

.container {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.container.narrow {
  max-width: 820px;
}

/* Unterschiedliche Grundlinien der Inhaltsbereiche */
#band .container.narrow,
#fotos .container.narrow,
#kontakt .container.narrow {
  max-width: 900px;
}

#geschichte .container.narrow {
  max-width: 1050px;
}

h1,
h2 {
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 {
  margin: 0 0 27px;
  color: var(--slate);
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  line-height: 1.15;
}

h2 {
  margin: 0 0 27px;
  color: var(--slate);
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1.2;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  line-height: 1.3;
}

.lead {
  font-size: 1.08rem;
}

.section-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}


/* =========================================================
   SECTION-FARBEN
   ========================================================= */

.section-light {
  background: var(--white);
}

.section-soft {
  background: var(--sand);
}

.section-pale {
  background: var(--sand-light);
}

.section-blue {
  background: var(--slate-blue);
  color: var(--slate);
}

.section-blue-light {
  background: var(--slate-blue-light);
}

.section-history {
  background: var(--sand-light);
  color: var(--slate);
}

.section-blue h2,
.section-blue .event-date {
  color: var(--slate);
}

.section-blue .section-label {
  color: var(--accent);
}

.section-blue .event-list {
  border-top-color: rgba(255, 255, 255, 0.34);
}

.section-blue .event-item {
  border-bottom-color: rgba(255, 255, 255, 0.34);
}

.section-blue .event-meta,
.section-blue .section-note {
  color: #66635f;
}

.section-blue .section-note a {
  color: var(--slate);
}


/* =========================================================
   TERMINE
   ========================================================= */

.event-list {
  border-top: 1px solid var(--border);
}

.event-item {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 25px;
  padding: 19px 0;
  border-bottom: 1px solid var(--border);
}

.event-date {
  color: var(--slate-blue);
  font-weight: 700;
  font-size: 1.15rem;
}

.event-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
}

.event-meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.event-empty {
  padding: 20px 0;
  color: var(--muted);
}


/* =========================================================
   MEDIEN / KARTEN
   ========================================================= */

.media-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-placeholder,
.info-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--sand-light);
}

.section-soft .media-placeholder,
.section-blue .info-card {
  background: var(--white);
}

.section-blue .media-placeholder {
  background: rgba(255, 255, 255, 0.78);
}

.media-placeholder {
  min-height: 220px;
  display: grid;
  align-content: center;
  text-align: center;
}

.media-placeholder span {
  color: var(--slate-blue);
  font-size: 1.2rem;
  font-weight: 700;
}


/* =========================================================
   YOUTUBE-VIDEOS
   ========================================================= */

.media-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 5px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--white);
}

.media-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: 4px;
}

.youtube-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.youtube-placeholder-content {
  max-width: 420px;
  padding: 20px;
}

.youtube-placeholder-content p {
  margin: 0 0 16px;
  color: var(--muted);
}

.youtube-load-button {
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--slate);
  font: inherit;
  cursor: pointer;
}

.youtube-load-button:hover {
  background: var(--slate-blue-light);
}


/* =========================================================
   CDS – TRACKLISTEN
   ========================================================= */

.card-year {
  margin: 0 0 5px;
  color: var(--accent);
  font-weight: 700;
}

.tracklist {
  margin-top: 12px;
  counter-reset: track;
}

.tracklist details {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
}

.tracklist summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  color: var(--slate);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  order: 0;
}

.tracklist summary::-webkit-details-marker {
  display: none;
}

.tracklist summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.tracklist details[open] summary {
  order: 2;
  margin-top: 7px;
  padding: 7px 12px 0;
  border-top: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.tracklist details[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.tracklist-show,
.tracklist-hide {
  display: inline;
}

.tracklist-hide {
  display: none;
}

.tracklist details[open] .tracklist-show {
  display: none;
}

.tracklist details[open] .tracklist-hide {
  display: inline;
}

.tracklist summary:hover,
.tracklist summary:focus-visible {
  color: var(--accent);
  outline: none;
}

.tracklist > p,
.tracklist details > p {
  display: grid;
  grid-template-columns: 2.4ch minmax(0, 1fr);
  column-gap: 5px;
  margin: 0 0 5px;
  line-height: 1.45;
}

.tracklist > p::before,
.tracklist details > p::before {
  counter-increment: track;
  content: counter(track) ".";
  text-align: right;
}

.tracklist details > p {
  order: 1;
}


/* =========================================================
   GESCHICHTE – MODERNE TIMELINE
   ========================================================= */

.history {
  --timeline-x: 172px;
  position: relative;
  margin-top: 10px;
  padding-left: 205px;
  width: 100%;
}

.history::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: var(--timeline-x);
  width: 1px;
  background: var(--border);
}

.history-entry {
  position: relative;
  margin: 0;
  padding: 0 0 42px;
}

.history-entry h3 {
  position: relative;
  display: flex;
  align-items: baseline;
  margin: 0 0 9px;
  color: var(--slate);
  font-size: 1.18rem;
  line-height: 1.3;
}

.history-entry h3::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.history-year {
  position: absolute;
  right: calc(100% + 60px);
  top: 1px;
  width: 120px;
  white-space: nowrap;
  text-align: right;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.98rem;
  line-height: 1.3;
}

.history-title {
  display: block;
}

.history-entry p {
  margin: 0;
  color: var(--text);
}

.history-entry p + p {
  margin-top: 10px;
}

/* =========================================================
   GESCHICHTE – ÖFFNEN / SCHLIESSEN
   ========================================================= */

.history-reveal {
  position: relative;
  margin-left: -178px;
  padding-left: 178px;
  display: flex;
  flex-direction: column;
}

.history-reveal summary {
  position: relative;
  z-index: 2;
  order: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  margin: 0 0 38px;
  padding: 11px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--slate);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 5px 18px rgba(47, 48, 47, 0.05);
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.history-reveal summary::-webkit-details-marker {
  display: none;
}

.history-reveal summary:hover,
.history-reveal summary:focus-visible {
  border-color: var(--slate-blue);
  color: var(--accent);
  box-shadow: 0 7px 20px rgba(47, 48, 47, 0.07);
  outline: none;
}

.history-reveal-hide {
  display: none;
}

.history-reveal[open] summary {
  order: 2;
  align-self: center;
  margin: 8px 0 0;
  padding: 7px 12px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.history-reveal[open] summary:hover,
.history-reveal[open] summary:focus-visible {
  color: var(--accent);
  box-shadow: none;
}

.history-reveal[open] .history-reveal-show {
  display: none;
}

.history-reveal[open] .history-reveal-hide {
  display: inline;
}

.history-reveal-icon {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.history-reveal[open] .history-reveal-icon {
  transform: rotate(225deg) translateY(-1px);
}

.history-reveal-content {
  position: relative;
  order: 1;
}


/* =========================================================
   KONTAKT
   ========================================================= */

.contact-email {
  margin-top: 24px;
}

.contact-email a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--sand-light);
  color: var(--slate);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(47, 48, 47, 0.05);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.contact-email a:hover,
.contact-email a:focus-visible {
  border-color: var(--slate-blue);
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(47, 48, 47, 0.08);
  outline: none;
}


/* =========================================================
   FOTOS / IMPRESSIONEN
   ========================================================= */

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

.photo-gallery {
  min-width: 0;
}

.photo-gallery h3 {
  margin: 0 0 14px;
  color: var(--slate);
  font-size: 1.18rem;
  line-height: 1.3;
}

.photo-gallery-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.photo-gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.photo-gallery-empty {
  padding: 24px;
  text-align: center;
}

.photo-gallery-empty div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.photo-gallery-empty strong {
  color: var(--slate);
  font-size: 1.05rem;
}

.photo-gallery-empty span {
  color: var(--muted);
  font-size: 0.94rem;
}

.photo-gallery-controls {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.photo-gallery-controls > span {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.photo-gallery-arrow {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--slate);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease;
}

.photo-gallery-arrow:hover,
.photo-gallery-arrow:focus-visible {
  border-color: var(--slate-blue);
  color: var(--accent);
  background: var(--sand-light);
  outline: none;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: var(--sand);
  color: var(--slate);
  padding: 18px 24px;
}

.footer-inner {
  width: min(100% - 36px, var(--content-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.footer-inner p {
  margin: 0;
}

.footer-brand {
  flex: 0 0 auto;
  color: var(--slate);
  text-decoration: none;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-links a {
  color: var(--slate);
  text-decoration: none;
  white-space: nowrap;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}


/* =========================================================
   DESKTOP / TABLET
   ========================================================= */

@media (min-width: 761px) {

  /* Musikbereich auf Desktop */
  #musik .container {
    width: 910px;
    max-width: 100%;
    margin-left: calc((100% - var(--content-width)) / 2 + 210px);
    margin-right: 0;
  }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

  .header-inner {
    gap: 18px;
  }

  .main-nav a {
    padding-inline: 7px;
    font-size: 1.025rem;
  }

  .site-logo {
    width: 120px;
  }

}


/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 760px) {

  :root {
    --header-height: 70px;
  }


  /* -----------------------------------------
     Header / Navigation
     ----------------------------------------- */

  .header-inner {
    min-height: var(--header-height);
    width: min(100% - 28px, var(--content-width));
  }

  .site-logo {
    width: 112px;
    max-height: 52px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 8px 14px 14px;
    background: var(--slate-blue-light);
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 15px rgba(47, 48, 47, 0.08);
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 11px 10px;
  }

  .main-nav a + a {
    border-top: 1px solid var(--border);
  }


  /* -----------------------------------------
     Hero
     ----------------------------------------- */

  .hero {
    min-height: 62vh;
    padding: 35px 18px 50px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-content {
    max-width: none;
  }

  .hero-image-wrap {
    justify-content: center;
  }

  .hero-image {
    width: min(100%, 500px);
  }


  /* -----------------------------------------
     Sections
     ----------------------------------------- */

  .section {
    padding: 35px 18px 25px;
  }


  /* -----------------------------------------
     Medien / Karten
     ----------------------------------------- */

  .media-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }


  /* -----------------------------------------
     Termine
     ----------------------------------------- */

  .event-item {
    grid-template-columns: 1fr;
    gap: 3px;
  }


  /* -----------------------------------------
     CDs – Tracklisten
     ----------------------------------------- */

  .tracklist {
    width: 100%;
  }

  .tracklist > p,
  .tracklist details > p {
    grid-template-columns: 2.4ch minmax(0, 1fr);
    column-gap: 5px;
  }

  .tracklist summary {
    min-height: 42px;
    padding: 8px 10px;
  }

  .tracklist details[open] summary {
    padding: 7px 10px 0;
  }


  /* -----------------------------------------
     Geschichte – Timeline
     ----------------------------------------- */

  .history {
    position: relative;
    margin-top: 10px;
    padding-left: 0;
  }

  .history::before {
    content: "";
    position: absolute;
    top: 11px;
    bottom: 34px;
    left: 120px;
    width: 1px;
    background: var(--border);
  }

  .history-entry {
    position: relative;
    margin: 0;
    padding: 0 0 24px;
  }

  .history-entry::before {
    display: none;
  }

  .history-entry::after {
    display: none;
  }

  .history-entry h3 {
    position: relative;
    display: grid;
    grid-template-columns: 100px 50px 1fr;
    align-items: center;
    margin: 0 0 9px;
    color: var(--slate);
    font-size: 1.08rem;
    line-height: 1.3;
  }

  .history-entry h3::before {
    content: "";
    position: absolute;
    left: 120px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    transform: translate(-50%, -50%);
    z-index: 1;
  }

  .history-year {
    position: relative;
    top: 0;
    right: auto;
    grid-column: 1;
    width: auto;
    padding-right: 6px;
    text-align: right;
    white-space: nowrap;
    color: var(--accent);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .history-title {
    grid-column: 3;
    display: block;
    line-height: 1.3;
  }

  .history-entry p {
    margin: 0 0 0 150px;
    color: var(--text);
  }


  /* -----------------------------------------
     Geschichte – Aufklappen
     ----------------------------------------- */

  .history-reveal {
    margin-left: 0;
    padding-left: 0;
  }

  .history-reveal summary {
    margin-bottom: 30px;
    padding: 10px 17px;
    border-radius: 14px;
    font-size: 0.94rem;
  }

  .history-reveal[open] summary {
    margin-top: 6px;
    padding: 7px 10px;
    border-radius: 0;
    font-size: 0.84rem;
  }


  /* -----------------------------------------
     Fotos
     ----------------------------------------- */

  .photo-gallery-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }


  /* -----------------------------------------
     Kontakt
     ----------------------------------------- */

  .contact-email a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }


  /* -----------------------------------------
     Footer
     ----------------------------------------- */

  .footer-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 20px;
  }

  .footer-links {
    justify-content: flex-start;
    width: 100%;
    gap: 8px 18px;
  }

  .site-footer {
    padding: 18px 20px;
  }

}