/* ═══════════════════════════════════════════════════════════
   style.css  –  Musikkapelle Rögling
   Gemeinsames CSS für alle Seiten. Einbinden mit:
     <link rel="stylesheet" href="style.css">
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Serif+4:ital,wght@0,300;0,400;1,300&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Bayerisches Weiß-Blau ── */
  --forest:     #1a5f9e;   /* Bayerisch Blau – Hauptfarbe     */
  --deep:       #0e3d6b;   /* Dunkelblau – Hover & Akzent     */
  --sky:        #4a9fd4;   /* Hellblau – Sekundärfarbe        */
  --sky-light:  #7bbde8;   /* Sehr hell – Highlights          */
  --cream:      #edf4fb;   /* Zartes Blau-Weiß                */
  --warm-white: #f5f8fc;   /* Fast Weiß mit Blaustich         */
  --text:       #0e1e2e;   /* Sehr dunkles Blau statt Schwarz */
  --muted:      #4a6580;   /* Gedämpftes Blaugrau             */
}

html  { scroll-behavior: smooth; }
body  {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--warm-white);
  color: var(--text);
  overflow-x: hidden;
  padding-top: 72px; /* Platz für fixe Nav */
}

/* ── NAVIGATION ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(58,155,213,0.18);
  box-shadow: 0 2px 16px rgba(42,122,106,.07);
  transition: padding .3s;
}
nav.scrolled { padding: .8rem 3rem; }

.nav-logo {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none;
}
.nav-logo .note {
  font-size: 1.6rem; color: var(--forest);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.55} }

.nav-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; color: var(--text);
  letter-spacing: .04em;
}

.nav-links {
  display: flex; gap: 2.2rem; list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none; font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase;
  transition: color .25s;
  position: relative;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-4px; left:0; right:100%;
  height:1px; background: var(--forest); transition: right .3s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--forest); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { right: 0; }

.nav-cta {
  background: var(--forest) !important;
  color: #fff !important;
  padding: .4rem 1.1rem;
  border-radius: 3px;
  font-weight: 600;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover  { background: var(--deep) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: .3s;
}

.mobile-menu {
  display: none; flex-direction: column; gap: 1rem;
  background: #fff; position: fixed;
  top: 68px; left: 0; right: 0;
  padding: 2rem 3rem; z-index: 99;
  border-bottom: 1px solid rgba(42,122,106,.15);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text); text-decoration: none; font-size: 1rem;
  padding: .6rem 0; border-bottom: 1px solid rgba(42,122,106,.08);
}

/* ── SEITENHEADER (Page-Hero) ───────────────────────────── */
.page-hero {
  background: linear-gradient(160deg, #e8f2fb 0%, #d0e6f7 50%, #bdd8f2 100%);
  padding: 5rem 3rem 4rem;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: attr(data-note);
  position: absolute; right: 4%; bottom: -1rem;
  font-size: 14rem; color: rgba(42,122,106,.05);
  line-height: 1; pointer-events: none; user-select: none;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-eyebrow {
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--forest); margin-bottom: .8rem;
  display: flex; align-items: center; gap: .6rem;
}
.page-eyebrow::before { content:''; display:block; width:24px; height:1px; background: var(--forest); }
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1; color: var(--text);
}
.page-title em { color: var(--forest); font-style: italic; }
.page-sub {
  font-size: 1.05rem; color: var(--muted);
  max-width: 540px; line-height: 1.75;
  margin-top: .8rem; font-weight: 300;
}

/* ── INHALTSBEREICH ─────────────────────────────────────── */
.page-content { max-width: 1200px; margin: 0 auto; padding: 5rem 3rem; }

/* ── SECTION-TRENNER ────────────────────────────────────── */
.section-block { margin-bottom: 5rem; }
.section-block:last-child { margin-bottom: 0; }

.section-eyebrow {
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--forest); margin-bottom: .6rem;
  display: flex; align-items: center; gap: .6rem;
}
.section-eyebrow::before { content:''; display:block; width:20px; height:1px; background: var(--forest); }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 2rem; line-height: 1.2;
}

/* ── PERSONEN-KARTEN ────────────────────────────────────── */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.8rem;
}
.person-card {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(42,122,106,.08);
  transition: transform .25s, box-shadow .25s;
}
.person-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(42,122,106,.14);
}
.person-photo {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover; object-position: top;
  display: block; background: var(--cream);
}
.person-photo-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(160deg, #d4eef7, #c8eae0);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: rgba(42,122,106,.25);
}
.person-info { padding: 1.1rem 1.2rem 1.3rem; }
.person-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; margin-bottom: .2rem;
}
.person-role {
  font-size: .8rem; color: var(--forest);
  letter-spacing: .06em; text-transform: uppercase;
  font-weight: 600; margin-bottom: .3rem;
}
.person-instrument {
  font-size: .85rem; color: var(--muted);
}

/* Vorstandskarten etwas größer */
.person-grid.vorstand { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.person-grid.vorstand .person-photo,
.person-grid.vorstand .person-photo-placeholder { aspect-ratio: 4/5; }

/* ── DIRIGENTEN-ZEITLINIE ───────────────────────────────── */
.dirigenten-list { display: flex; flex-direction: column; gap: 0; }
.dirigent-item {
  display: flex; gap: 2rem; align-items: flex-start;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(42,122,106,.1);
  position: relative;
}
.dirigent-item:last-child { border-bottom: none; }
.dirigent-years {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; color: var(--forest);
  min-width: 120px; flex-shrink: 0;
  padding-top: .2rem;
}
.dirigent-photo {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  background: var(--cream);
  border: 2px solid rgba(42,122,106,.2);
}
.dirigent-photo-placeholder {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #d4eef7, #c8eae0);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; flex-shrink: 0;
  border: 2px solid rgba(42,122,106,.2);
}
.dirigent-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; margin-bottom: .3rem;
}
.dirigent-info p {
  font-size: .9rem; color: var(--muted); line-height: 1.6;
}

/* ── STAMMKAPELLE TABELLE ───────────────────────────────── */
.kapelle-section {
  background: var(--cream);
  border-radius: 8px; padding: 2rem 2.5rem; margin-top: 1rem;
}
.instrument-gruppe { margin-bottom: 2rem; }
.instrument-gruppe:last-child { margin-bottom: 0; }
.instrument-label {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--forest); font-weight: 600;
  margin-bottom: .8rem; padding-bottom: .4rem;
  border-bottom: 1px solid rgba(42,122,106,.2);
}
.mitglieder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .5rem .8rem;
}
.mitglied {
  font-size: .9rem; color: var(--text);
  padding: .3rem 0;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  background: var(--forest); color: #fff;
  padding: .85rem 2rem; border-radius: 3px;
  text-decoration: none; font-weight: 600;
  font-size: .9rem; letter-spacing: .05em;
  display: inline-block; transition: background .25s, transform .2s;
}
.btn-primary:hover { background: var(--deep); transform: translateY(-2px); }

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--deep);
  padding: 3rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid rgba(58,155,213,.2);
}
footer .logo-text {
  font-family: 'Playfair Display', serif; color: #fff; font-size: 1rem;
}
footer .copy { font-size: .8rem; color: rgba(255,255,255,.4); }
footer nav  { display: flex; gap: 1.5rem; position: static; box-shadow: none; border: none; padding: 0; background: transparent; backdrop-filter: none; }
footer nav a { color: rgba(255,255,255,.4); text-decoration: none; font-size: .8rem; transition: color .25s; text-transform: none; letter-spacing: 0; }
footer nav a:hover { color: #fff; }
footer nav a::after { display: none; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  nav, nav.scrolled { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .page-hero { padding: 3.5rem 1.5rem 3rem; }
  .page-content { padding: 3rem 1.5rem; }
  .page-hero::after { font-size: 8rem; }
  footer { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .dirigent-years { min-width: 90px; font-size: .9rem; }
  .kapelle-section { padding: 1.5rem; }
}

/* ── COOKIE-BANNER ──────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--deep);
  border-top: 2px solid var(--forest);
  padding: 1rem 2rem;
  animation: cookieIn .4s ease;
}
@keyframes cookieIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes cookieOut {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}
#cookie-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
#cookie-text {
  font-size: .85rem; color: rgba(255,255,255,.8);
  line-height: 1.6; flex: 1;
}
#cookie-text strong { color: #fff; }
#cookie-text a {
  color: var(--sky-light); text-decoration: underline;
  margin-left: .4rem;
}
#cookie-buttons {
  display: flex; gap: .8rem; flex-shrink: 0;
}
#cookie-ok {
  background: var(--forest); color: #fff;
  border: none; border-radius: 4px;
  padding: .6rem 1.6rem;
  font-size: .88rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background .2s;
}
#cookie-ok:hover { background: var(--deep); }

@media (max-width: 600px) {
  #cookie-banner { padding: 1rem; }
  #cookie-inner  { flex-direction: column; gap: .8rem; }
  #cookie-buttons { width: 100%; }
  #cookie-ok { width: 100%; text-align: center; }
}

/* ── SOCIAL BUTTONS (Footer) ────────────────────────── */
.footer-social {
  display: flex; gap: .8rem; align-items: center;
}
.social-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.5); text-decoration: none;
  font-size: .8rem; letter-spacing: .04em;
  padding: .35rem .8rem; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.15);
  transition: color .2s, border-color .2s, background .2s;
}
.social-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
}
