:root {
  --green: #2f7a52;
  --green-dark: #153628;
  --cream: #f7f1e3;
  --gold: #b8863b;
  --gold-soft: #f0dfb4;
  --brown: #3b2a1f;
  --text: #2b2a26;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--green-dark);
  line-height: 1.2;
}

a { color: var(--green-dark); }
a:hover { color: var(--gold); }

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

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  position: relative;
  z-index: 5;
  background: var(--green);
  border-bottom: 4px solid var(--gold);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { height: 56px; width: auto; }
.brand span {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  color: var(--cream);
}
.site-nav { display: flex; gap: 1.25rem; }
.site-nav a {
  color: var(--cream);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--cream); }

/* Hero */
.hero {
  --hero-gradient: linear-gradient(to top, rgba(47, 122, 82, 0.95) 0%, rgba(47, 122, 82, 0.9) 15%, rgba(47, 122, 82, 0) 38%);
  background: var(--green-dark) center top / cover no-repeat;
  background-image: var(--hero-gradient), var(--hero-image);
  color: var(--cream);
  text-align: center;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: min(50.6vw, 63vh);
  min-height: 21.6rem;
  position: relative;
  padding-bottom: 3.5rem;
}
/* abgerissener Papierrand zum hellen Hintergrund: Farben stehen in assets/img/torn-cream*.svg */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 40px;
  background-repeat: repeat-x;
  background-size: 800px 100%;
  pointer-events: none;
}
.hero::before { background-image: url(img/torn-cream-back.svg); }
.hero::after { background-image: url(img/torn-cream.svg); }
.hero h1 { color: var(--cream); font-size: clamp(2rem, 6vw, 3.25rem); margin: 0 0 0.5rem; }
.hero p { margin: 0; font-size: 1.15rem; color: var(--gold); }

/* Sections */
main section { padding: 2.5rem 0; }
main section + section { border-top: 1px solid rgba(31, 77, 58, 0.15); }

.divider { display: flex; align-items: center; gap: 1.25rem; margin: 0.5rem auto; }
.divider img { flex: none; width: 180px; max-width: 50%; height: auto; }
.divider::before,
.divider::after { content: ""; flex: 1; height: 1px; opacity: 0.55; }
.divider::before { background: linear-gradient(to right, transparent, var(--gold)); }
.divider::after { background: linear-gradient(to left, transparent, var(--gold)); }

/* Embeds (click to load) */
.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--green-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
  padding: 1rem;
  text-align: center;
  color: var(--cream);
  font-size: 0.9rem;
}
.embed-consent.box { aspect-ratio: auto; min-height: 12rem; background: var(--green-dark); border-radius: var(--radius); }

.btn {
  display: inline-block;
  font: inherit;
  cursor: pointer;
  background: var(--gold);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 0.6rem 1.25rem;
  text-decoration: none;
}
.btn:hover { background: var(--brown); color: #fff; }

/* Media grid / blog */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.video { margin: 0; }
.video figcaption { margin-top: 0.5rem; text-align: center; font-weight: 600; }
.card { background: #fff; border-radius: var(--radius); padding: 1rem; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }
.card h2, .card h3 { margin-top: 0; }
.post-meta { color: #6b665b; font-size: 0.9rem; }

/* Newsletter */
.newsletter { background: var(--gold-soft); color: var(--brown); padding: 2.5rem 0; border-top: 4px solid var(--gold); }
.newsletter h2 { color: var(--brown); margin-top: 0; }
.newsletter form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.newsletter input[type="email"] {
  flex: 1 1 14rem;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
}
.newsletter .consent { flex-basis: 100%; font-size: 0.85rem; }
.newsletter a { color: var(--brown); }
/* Bandsintown-iframe hat innen links Abstand; hier ausgleichen (Wert bei Bedarf anpassen) */
.newsletter .signup-frame { display: block; margin-left: -19.5%; width: 119.5%; max-width: none; }
.newsletter .btn { background: var(--green); }
.newsletter .btn:hover { background: var(--green-dark); }

/* Footer */
.site-footer { background: var(--green); color: var(--cream); padding: 2rem 0; font-size: 0.9rem; border-top: 4px solid var(--gold); }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold); }
.footer-divider { padding-top: 2.5rem; padding-bottom: 2rem; }
.footer-divider .divider { margin: 0 auto; }
.footer-cols { display: grid; gap: 2rem; grid-template-columns: repeat(3, 1fr); }
.footer-cols h3 { margin: 0 0 0.75rem; color: var(--gold-soft); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.1rem; }
.footer-brand { display: flex; flex-direction: column; align-items: center; width: fit-content; }
.footer-brand p { font: inherit; font-size: 0.95rem; margin: 0.5rem 0 0; text-align: center; }
.footer-logo { height: 110px; width: auto; }
.footer-links { list-style: none; margin: 0; padding: 0; line-height: 1.8; }
.social, .legal { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.social { margin-top: 1rem; gap: 1.25rem; }
.social a { display: block; }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.25); margin: 2rem 0 0.5rem; padding-top: 1.25rem; text-align: center; }
.legal { justify-content: center; font-size: 0.85rem; }
@media (max-width: 40rem) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* Band page */
.lead { font-size: 1.15rem; color: var(--gold); font-family: Georgia, serif; margin-top: -0.5rem; }
.members { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.member { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }
.member img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.member div { padding: 1rem; }
.member h3 { margin: 0 0 0.5rem; }
.member p { margin: 0; font-size: 0.95rem; }

/* Blog */
.post-list { display: grid; gap: 2rem; }
.post-card { display: grid; gap: 1.25rem; grid-template-columns: 12rem 1fr; align-items: start; background: #fff; border-radius: var(--radius); padding: 1rem; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }
.post-card h2 { margin: 0 0 0.25rem; font-size: 1.4rem; }
.post-card h2 a { text-decoration: none; }
.post-card p { margin: 0.5rem 0; }
.post-thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.post { max-width: 44rem; margin: 0 auto; padding: 2.5rem 0; }
.post h1 { margin-top: 0.5rem; }
.post figure { margin: 1.5rem 0; }
.post figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.post .embed { margin: 1.5rem 0; }
@media (max-width: 40rem) {
  .post-card { grid-template-columns: 1fr; }
}
.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); margin: 1.5rem 0; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Musik */
.album { display: grid; gap: 2rem; grid-template-columns: 1fr minmax(0, 400px); align-items: stretch; margin-bottom: 2rem; }
.album h3 { margin-top: 0; }
.album .player { display: flex; flex-direction: column; }
.album .player > iframe, .album .player > .embed-consent { flex: 1; }
.player-note { font-size: 0.85rem; margin: 0.5rem 0 0; }
.bandcamp-frame { display: block; border: 0; width: 100%; max-width: 400px; min-height: 472px; }
@media (max-width: 50rem) { .album { grid-template-columns: 1fr; } }

/* Externe Inhalte: Vorschaubild und "merken" */
.embed.has-thumb .embed-consent {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.8)), var(--thumb) center / cover no-repeat;
}
.remember { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; }

/* Newsletter-Formular */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.form-status { flex-basis: 100%; margin: 0; min-height: 1.5em; font-weight: 600; }
.newsletter .consent input { margin-right: 0.4rem; }
.album .note { border-left: 4px solid var(--gold); padding-left: 1rem; }

/* Kontakt */
.contact-info { margin-bottom: 1rem; }
.contact-info .social { margin-top: 0.75rem; }
.contact-info .social a { color: var(--green-dark); }
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr minmax(0, 20rem); align-items: start; }
.contact-form { max-width: 40rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.contact-form .consent label { font-weight: 400; font-size: 0.9rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; padding: 0.6rem 0.75rem; border: 1px solid rgba(0, 0, 0, 0.25); border-radius: var(--radius); font: inherit; background: #fff;
}
.press-box { background: #fff; border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }
.press-box h2 { margin-top: 0; font-size: 1.3rem; }
.download-list { list-style: none; margin: 0; padding: 0; line-height: 2; }
.download-list span { font-size: 0.85rem; opacity: 0.7; }
@media (max-width: 50rem) { .contact-grid { grid-template-columns: 1fr; } }

/* Burger-Menü (Handy, Hochformat) */
.nav-toggle { display: none; }
@media (max-width: 46rem) {
  .site-header .wrap { flex-wrap: nowrap; }
  .brand img { height: 44px; }
  .brand span { font-size: 0.9rem; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; margin-right: -0.5rem;
    background: none; border: 0; border-radius: var(--radius); color: var(--cream); cursor: pointer;
  }
  .nav-toggle:focus-visible { outline: 2px solid var(--gold); }
  .nav-toggle line { transition: transform 0.2s, opacity 0.2s; transform-origin: center; }
  .nav-open .nav-toggle .bar-1 { transform: translateY(5px) rotate(45deg); }
  .nav-open .nav-toggle .bar-2 { opacity: 0; }
  .nav-open .nav-toggle .bar-3 { transform: translateY(-5px) rotate(-45deg); }
  .site-header.js-nav .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--green);
    border-bottom: 4px solid var(--gold); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  }
  .site-header.js-nav.nav-open .site-nav { display: flex; }
  .site-header.js-nav .site-nav a {
    padding: 0.9rem 1.25rem; border-bottom: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 1.05rem;
  }
  .site-header.js-nav .site-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.12); }
}
@media (max-width: 24rem) { .brand span { font-size: 0.8rem; } }

/* Handy: Footer nur mit Booking und Copyright, Nach-oben-Pfeil */
.to-top { display: none; }
@media (max-width: 46rem) {
  .footer-cols > :nth-child(1), .footer-cols > :nth-child(2) { display: none; }
  .footer-cols > :nth-child(3) { text-align: center; }
  .footer-cols .social { justify-content: center; }
  .to-top {
    display: flex; align-items: center; justify-content: center;
    position: fixed; right: 1rem; bottom: 1rem; z-index: 20;
    width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
    background: var(--green); color: var(--cream); cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
  }
  .to-top.show { opacity: 1; pointer-events: auto; }
  .to-top:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
}

/* Markdown-Inhalt in Blogbeiträgen */
.post p > img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.post p:has(> img:only-child) { margin: 1.5rem 0; }
.gallery p { margin: 0; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.post .gallery p:has(> img:only-child) { margin: 0; }

/* Konzertliste */
.konzerte { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; }
.konzert { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; background: #fff; border-radius: var(--radius); padding: 1rem; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }
.konzert-datum { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 4.5rem; padding: 0.5rem 0; background: var(--green); color: var(--cream); border-radius: var(--radius); line-height: 1.1; }
.konzert-tag { font-family: Georgia, serif; font-size: 1.8rem; font-weight: 700; }
.konzert-monat { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
.konzert-info h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.konzert-info p { margin: 0; }
.btn-outline { background: transparent; color: var(--green-dark); border: 2px solid var(--green); padding: calc(0.6rem - 2px) calc(1.25rem - 2px); }
.btn-outline:hover { background: var(--green); color: #fff; }
.copy-box { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: 0.8rem; padding: 0.6rem 0.75rem; border: 1px solid rgba(0, 0, 0, 0.25); border-radius: var(--radius); background: #fff; }
@media (max-width: 40rem) {
  .konzert { grid-template-columns: auto 1fr; }
  .konzert .btn { grid-column: 1 / -1; text-align: center; }
}

/* Cookie-Banner */
.consent-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50;
  max-width: 42rem; margin: 0 auto; padding: 1.25rem; background: #fff; color: var(--text);
  border: 2px solid var(--green); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
.consent-banner h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.consent-banner p { margin: 0 0 1rem; font-size: 0.95rem; }
.consent-details { margin-bottom: 1rem; }
.consent-details label { display: block; margin: 0.4rem 0; font-size: 0.95rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.consent-actions .btn { flex: 1 1 10rem; text-align: center; }
.consent-settings { background: none; border: 0; padding: 0.4rem 0.25rem; font: inherit; color: var(--green-dark); text-decoration: underline; cursor: pointer; }
.consent-settings:hover { color: var(--gold); }
@media (max-width: 40rem) {
  .consent-banner { left: 0; right: 0; bottom: 0; border-radius: var(--radius) var(--radius) 0 0; max-height: 90vh; overflow-y: auto; }
}

/* Fotos (Alben und Lightbox) */
.albums { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(3, 1fr); }
.album-card h2 { margin: 0.75rem 0 0.15rem; font-size: 1.25rem; }
.album-card .post-meta { margin: 0; }
.album-cover { display: block; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }
.album-cover img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.3s; }
.album-cover:hover img, .album-cover:focus-visible img { transform: scale(1.04); }
.album-cover:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pswp__custom-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.75rem 1rem; text-align: center; color: #fff; font-size: 0.95rem; background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0)); pointer-events: none; }
@media (max-width: 56rem) { .albums { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 34rem) { .albums { grid-template-columns: 1fr; } }
