/* ==========================================================================
   Marie Goes Blue — Band Website
   ========================================================================== */

/* -- Schriften (lokal eingebunden, keine Verbindung zu Google) ------------ */
@font-face {
  font-family: "Bitter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/bitter-v-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Bitter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/bitter-v-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Bitter";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/bitter-v-latin-900.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/work-sans-v-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/work-sans-v-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/work-sans-v-latin-600.woff2") format("woff2");
}

:root {
  color-scheme: light; /* Seite ist nur hell gedacht: kein automatisches Abdunkeln durch den Browser */
  --bg: #efe6d8;
  --bg-dark: #241c16;
  --ink: #2a2019;
  --cream: #f3ead9;
  --blue: #3b5d6b;
  --blue-dark: #2c454f;
  --rust: #b5652d;
  --rust-dark: #954f21;
  --line: #c9bba0;

  --font-head: "Bitter", Georgia, serif;
  --font-body: "Work Sans", -apple-system, Helvetica, Arial, sans-serif;

  --nav-height: 96px;
  --max-width: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--rust); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { max-width: 68ch; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* -- Skip link -------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--rust);
  color: var(--cream);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* -- Navigation --------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-dark);
  z-index: 100;
  border-bottom: 1px solid #16110c;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand:hover { color: var(--cream); }
.brand img {
  height: 78px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--cream);
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--cream);
  border-bottom-color: var(--rust);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-social a {
  display: flex;
  color: var(--cream);
}
.nav-social a:hover { opacity: 0.75; }
.nav-social img {
  width: 24px;
  height: 24px;
  display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  position: absolute;
  left: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.is-open { max-height: 420px; }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid #362a1e;
    border-left: 3px solid transparent;
  }
  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    border-bottom-color: #362a1e;
    border-left-color: var(--rust);
  }
  .nav-right { gap: 1.1rem; }
  .nav-social { gap: 0.9rem; }
}

/* -- Home ---------------------------------------------------------- */
.hero {
  margin-top: var(--nav-height);
  position: relative;
  min-height: 66vh;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg) url("../pics/Band63_Main_446A9049.JPG") center/contain no-repeat;
}

/* Handy: Hero-Bereich so hoch wie das Bild (Seitenverhältnis 3:2),
   damit oben und unten kein brauner Rand entsteht */
@media (max-width: 760px) {
  .hero {
    min-height: 0;
    max-height: none;
    aspect-ratio: 3 / 2;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  color: var(--cream);
}
.hero-content img {
  max-width: 1200px;
  width: 70vw;
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.55));
}


.hero-tagline {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  letter-spacing: 0.02em;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.hero-cta {
  margin-top: 2rem;
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* -- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--rust);
  color: var(--cream);
}
.btn-primary:hover { background: var(--rust-dark); color: var(--cream); }
.btn-outline {
  border-color: var(--cream);
  color: var(--cream);
}
.btn-outline:hover { border-color: var(--rust); color: var(--rust); }

/* -- Generic page header (non-home pages) ------------------------------ */
.page-header {
  margin-top: var(--nav-height);
  background: var(--bg-dark);
  color: var(--cream);
  padding: 4.5rem 0 3rem;
  text-align: center;
}
.page-header h1 { color: var(--cream); }
.page-header p { margin: 0 auto; color: var(--line); }

/* -- Sections ----------------------------------------------------------- */
.section {
  padding: 4rem 0;
}
.section + .section { border-top: 1px solid var(--line); }
.section-intro {
  max-width: 62ch;
  margin: 0 auto 2.8rem;
  text-align: center;
}
.section-intro h2 { margin-bottom: 0.6rem; }

/* Farbiges Band unter dem Hero-Bild (hebt den Text vom Seitenhintergrund ab) */
.section-band {
  background: var(--blue);
  color: var(--cream);
}
.section-band h2 { color: var(--cream); }
.section-band .btn-outline:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--blue-dark);
}

/* -- Band members --------------------------------------------------------- */
.band-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem;
}
@media (max-width: 700px) {
  .band-grid { grid-template-columns: 1fr; }
}
.band-card {
  background: var(--cream);
  border: 1px solid var(--line);
}
.band-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 0.8rem; /* Abstand zwischen Bild und Umrandung */
}
.band-card-body { padding: 1.4rem 1.6rem 1.8rem; }
.band-card-role {
  display: inline-block;
  font-family: var(--font-head);
  color: var(--rust-dark);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

/* -- Gallery -------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  /* Breiter als der Textbereich (max. 2 x 700px), aber immer mittig;
     auf schmaleren Fenstern schrumpft das Raster mit. */
  width: min(calc(2 * 700px + 1.4rem), calc(100vw - 48px));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-item { overflow: hidden; background: var(--ink); }
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-caption {
  font-size: 0.9rem;
  color: var(--ink);
  margin-top: 0.6rem;
}
.gallery-note {
  text-align: center;
  color: var(--blue-dark);
  border: 2px dashed var(--line);
  padding: 1.6rem;
  margin-top: 2.6rem;
}

/* -- Live / events --------------------------------------------------------- */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.event-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  border: 1px solid var(--line);
  background: var(--cream);
}
@media (max-width: 560px) {
  .event-card { grid-template-columns: 1fr; }
}
.event-date {
  background: var(--blue);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 1rem;
  text-align: center;
}
.event-date .day { font-family: var(--font-head); font-size: 2.2rem; line-height: 1; }
.event-date .month { font-size: 0.95rem; letter-spacing: 0.05em; }
.event-date .year { font-size: 0.8rem; opacity: 0.8; }
.event-body { padding: 1.4rem 1.6rem; }
.event-body h3 { margin-bottom: 0.3rem; }
.event-meta {
  color: var(--blue-dark);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

/* Past / inactive events */
.event-card.is-past {
  opacity: 0.55;
  filter: grayscale(70%);
}
.event-card.is-past .event-date {
  background: #8a8378;
}
.event-tag-past {
  display: inline-block;
  margin-left: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg-dark);
  background: var(--line);
  padding: 0.2em 0.6em;
  vertical-align: middle;
  border-radius: 2px;
}

/* -- Contact ---------------------------------------------------------------- */
.contact-layout {
  max-width: 52ch;
  margin: 0 auto;
}
.contact-info h3 { margin-top: 1.6rem; }
.contact-info h3:first-child { margin-top: 0; }

/* Sprungmarken (Impressum / Datenschutz) nicht unter der fixierten Menüleiste verstecken */
#impressum, #datenschutz { scroll-margin-top: var(--nav-height); }

/* -- Impressum --------------------------------------------------------------- */
.legal h2 { margin-top: 2.2rem; }
.legal h2:first-child { margin-top: 0; }

/* -- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--line);
  text-align: center;
  padding: 2.2rem 24px;
  font-size: 0.9rem;
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--rust); }

/* -- Focus visibility ------------------------------------------------------ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

/* -- Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-item img { transition: none; }
  .nav-links { transition: none; }
}
