/* ============================================================
   StV Augia Brigantina — Stylesheet
   Designsystem: warmes Pergament + Couleur-Band (Rot–Silber–Grün)
   ============================================================ */

/* Schriften lokal eingebunden statt über fonts.googleapis.com zu laden –
   dadurch wird bei jedem Seitenaufruf keine IP-Adresse an Google-Server
   übertragen; ein Cookie-/Consent-Banner ist dafür nicht nötig. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-sans-3-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/source-sans-3-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/source-sans-3-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/source-sans-3-latin-700-normal.woff2') format('woff2');
}

:root {
  /* Farben */
  --bg:        #F7F3EC;
  --bg-alt:    #EFE8D9;
  --ink:       #241B15;
  --ink-soft:  #55493D;

  /* Couleur der Verbindung: Rot – Silber – Grün */
  --red:        #A32C2C;
  --red-dark:   #7A1F1F;
  --green:      #2F6B42;
  --green-dark: #1E4730;
  --silver:     #AEB6B2;
  --silver-dark:#8B948F;

  --line:      #DDD3C0;
  --white:     #FFFDF9;

  /* Typografie */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, Segoe UI, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--green); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

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

/* ---------- Couleur-Band: das wiederkehrende Signatur-Element ---------- */
/* Anspielung auf das getragene Couleur-Band der Aktivitas (Rot–Silber–Grün) */
.couleur-band {
  height: 6px;
  width: 100%;
  background: linear-gradient(
    to right,
    var(--red) 0 33.33%,
    var(--silver) 33.33% 66.66%,
    var(--green) 66.66% 100%
  );
}
.couleur-rule {
  display: block;
  width: 72px;
  height: 5px;
  margin: 14px 0 22px;
  background: linear-gradient(to right, var(--red) 0 34%, var(--silver) 34% 67%, var(--green) 67% 100%);
}

/* ---------- Kopfbereich / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 236, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
}
.brand .zirkel {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand .zirkel img { width: 100%; height: 100%; object-fit: contain; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 42px;
  height: 38px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--red);
  border-bottom-color: var(--green);
}
nav.main-nav a.nav-intern {
  color: var(--green-dark);
}
nav.main-nav a.nav-intern:hover { color: var(--red); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  nav.main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 4px; padding: 14px 0; }
  nav.main-nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav-row { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 66vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(20,16,12,0.25), rgba(20,16,12,0.85)),
              url("img/hero-foto.jpg") center/cover no-repeat;
  color: var(--white);
}
.hero.hero--img { background-image: linear-gradient(180deg, rgba(20,16,12,0.15), rgba(20,16,12,0.82)), var(--hero-img); }
.hero-inner { padding: 60px 0 46px; }
.hero h1 { color: var(--white); max-width: 780px; }
.hero p.lead { max-width: 620px; font-size: 1.15rem; color: #F1E9DC; }

.page-hero {
  min-height: 34vh;
  align-items: center;
}

/* ---------- Sektionen & Karten ---------- */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }

.grid {
  display: grid;
  gap: 26px;
}
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 780px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin-bottom: 8px; }
.card .couleur-rule { margin: 10px 0 14px; }
.card a.card-link {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.card .lock-note {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: #E4ECE6;
  border: 1px solid #C9D8CD;
  padding: 3px 8px;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  border: 1px solid var(--red);
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* ---------- Termine-Tabelle ---------- */
table.termine {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
}
table.termine th, table.termine td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
table.termine th {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--red);
  background: var(--bg-alt);
}
table.termine tr:last-child td { border-bottom: none; }

@media (max-width: 600px) {
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.termine { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.termine th, table.termine td { white-space: nowrap; }
}

/* ---------- Zweispaltige Listen (z. B. Altburschen) ---------- */
.two-col-list {
  columns: 2;
  column-gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.two-col-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}
@media (max-width: 600px) {
  .two-col-list { columns: 1; }
}

/* ---------- Fotogalerie ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-grid .ph {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-align: center;
  padding: 8px;
}
@media (max-width: 780px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Platzhalter-Hinweis ---------- */
.placeholder-note {
  border-left: 3px solid var(--green);
  background: var(--bg-alt);
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: #DCD3C4;
  padding: 54px 0 26px;
}
footer.site-footer h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 12px; }
footer.site-footer .footer-wappen { width: 76px; height: auto; margin-bottom: 16px; }
footer.site-footer a { color: #DCD3C4; }
footer.site-footer a:hover { color: var(--silver); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 34px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #A99C8A;
}
.social-links { display: flex; gap: 14px; margin-top: 10px; }
.social-links a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Interner Bereich ---------- */
.intern-badge {
  display: inline-block;
  background: var(--green-dark);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius);
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- Fotogalerie-Archiv (aufklappbar nach Jahr/Monat) ---------- */
.gallery-archive details.gallery-year {
  border: 1px solid var(--line);
  background: var(--white);
  margin-bottom: 10px;
  border-radius: var(--radius);
  padding: 0 20px;
}
.gallery-archive summary.gallery-year-toggle {
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gallery-archive summary.gallery-year-toggle::-webkit-details-marker { display: none; }
.gallery-archive summary.gallery-year-toggle .count {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gallery-month { padding: 6px 0 18px; }
.gallery-month h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin: 14px 0 6px;
}
.gallery-month ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gallery-month li { padding: 4px 0; }
.gallery-month li a { font-size: 0.95rem; }
.gallery-month li a::after {
  content: " ↗";
  font-size: 0.8em;
  color: var(--silver-dark);
}

/* ---------- Liederbuch (Augia Cantat) ---------- */
.song-toc {
  columns: 2;
  column-gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}
.song-toc li { padding: 5px 0; break-inside: avoid; }
.song-toc a { font-size: 0.95rem; }
@media (max-width: 600px) {
  .song-toc { columns: 1; }
}

.song {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  scroll-margin-top: 90px; /* Platz für die sticky Kopfzeile beim Sprung per Anker */
}
.song:first-of-type { border-top: none; }
.song h2 { font-size: 1.6rem; margin-bottom: 2px; }
.song .song-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 16px;
}
.song .verses {
  list-style: none;
  counter-reset: strophe;
  margin: 0;
  padding: 0;
}
.song .verses li {
  counter-increment: strophe;
  position: relative;
  padding: 4px 0 4px 34px;
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.75;
}
.song .verses li::before {
  content: counter(strophe) ".";
  position: absolute;
  left: 0;
  top: 4px;
  font-weight: 700;
  color: var(--red);
  font-family: var(--font-display);
}
.song .verses li p { margin: 0; white-space: pre-line; }
.song .refrain {
  font-style: italic;
  color: var(--ink-soft);
}
.back-to-top {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.82rem;
}
@media (max-width: 480px) {
  .song .verses li { font-size: 1rem; line-height: 1.7; padding-left: 28px; }
}
