/* ============================================================
   AA Augo-Nibelungia — Stylesheet
   Designsystem: warmes Pergament + Couleur-Band (Blau–Silber–Gold)
   ============================================================ */

/* 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: Blau – Silber – Gold */
  --blue:       #1F3B73;
  --blue-dark:  #13264F;
  --gold:       #B8902F;
  --gold-dark:  #8A6A1E;
  --silver:     #B4BCC4;
  --silver-dark:#8D959D;

  --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;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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(--blue); text-decoration: none; }
a:hover { color: var(--gold); }

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(--blue);
  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 (Blau–Silber–Gold) */
.couleur-band {
  height: 6px;
  width: 100%;
  background: linear-gradient(
    to right,
    var(--blue) 0 33.33%,
    var(--silver) 33.33% 66.66%,
    var(--gold) 66.66% 100%
  );
}
.couleur-rule {
  display: block;
  width: 72px;
  height: 5px;
  margin: 14px 0 22px;
  background: linear-gradient(to right, var(--blue) 0 34%, var(--silver) 34% 67%, var(--gold) 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: 22px;
  margin: 0;
  padding: 0;
  align-items: center;
}
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(--blue);
  border-bottom-color: var(--gold);
}
nav.main-nav a.nav-intern {
  color: var(--blue-dark);
  border: 1px solid var(--line);
  padding: 4px 10px;
}
nav.main-nav a.nav-intern:hover { border-color: var(--gold); border-bottom-color: var(--gold); }
nav.main-nav a.nav-intern:hover { color: var(--blue); }

@media (max-width: 1040px) {
  .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-image: linear-gradient(180deg, rgba(20,16,12,0.25), rgba(20,16,12,0.85)),
                     url("img/hero/hero-01.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
}
.hero-inner { padding: 60px 28px 46px; width: 100%; }
.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(--gold-dark);
  background: #E6EAF2;
  border: 1px solid #C6CFE0;
  padding: 3px 8px;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  border: 1px solid var(--blue);
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-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); }
.btn.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.btn-outline-dark:hover { background: var(--bg-alt); color: var(--ink); }

/* ---------- Termine-Tabelle ---------- */
table.termine {
  width: 100%;
  table-layout: fixed;
  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;
  vertical-align: top;
}
table.termine th {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: var(--bg-alt);
}
table.termine tr:last-child td { border-bottom: none; }

/* Feste Spaltenbreiten für Desktop/Tablet: Datum und Uhrzeit bleiben
   einzeilig (kein overflow-wrap auf diesen zwei Spalten - das stand
   zuvor im Konflikt mit white-space:nowrap und erzwang unnötige
   Umbrüche). Veranstaltung/Ort dürfen bei Bedarf umbrechen. */
table.termine th:nth-child(1), table.termine td:nth-child(1) { width: 17%; white-space: nowrap; }
table.termine th:nth-child(2), table.termine td:nth-child(2) { width: 13%; white-space: nowrap; }
table.termine th:nth-child(3), table.termine td:nth-child(3) { width: 45%; overflow-wrap: break-word; }
table.termine th:nth-child(4), table.termine td:nth-child(4) { width: 25%; overflow-wrap: break-word; }

/* Ab hier: mobiles Karten-Layout statt Tabellenspalten. Jede Zeile
   wird zu einer eigenen, senkrecht beschrifteten Karte - dadurch
   kann nichts mehr über den Bildschirmrand hinausragen, unabhängig
   davon, wie lang Titel oder Ort sind. */
@media (max-width: 700px) {
  table.termine, table.termine tbody, table.termine tr, table.termine td {
    display: block;
    width: auto;
  }
  table.termine thead { display: none; }
  table.termine {
    border: none;
    background: transparent;
  }
  table.termine tr {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
  }
  table.termine td {
    border-bottom: 1px solid var(--line);
    padding: 10px 14px 10px 42%;
    position: relative;
    white-space: normal;
    overflow-wrap: break-word;
    font-size: 0.9rem;
    min-height: 20px;
  }
  /* Die Desktop-Spaltenbreiten (nth-child, weiter oben im Stylesheet)
     sind spezifischer als eine einfache "table.termine td"-Regel und
     würden sonst auch mobil noch gelten - hier mit derselben
     Spezifität ausdrücklich zurücksetzen, sonst bleibt bei z. B. 45%
     Breite plus 42% Beschriftungs-Einzug kaum noch Platz für den
     Text übrig und jedes Zeichen bricht einzeln um. */
  table.termine th:nth-child(1), table.termine td:nth-child(1),
  table.termine th:nth-child(2), table.termine td:nth-child(2),
  table.termine th:nth-child(3), table.termine td:nth-child(3),
  table.termine th:nth-child(4), table.termine td:nth-child(4) {
    width: auto;
    white-space: normal;
    overflow-wrap: break-word;
  }
  table.termine tr td:last-child { border-bottom: none; }
  table.termine td::before {
    content: attr(data-label);
    position: absolute;
    left: 14px;
    top: 10px;
    width: 36%;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--blue);
  }
}

/* ---------- 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; }
}

/* ---------- Platzhalter-Hinweis ---------- */
.placeholder-note {
  border-left: 3px solid var(--gold);
  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; }
}

/* ---------- 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(--blue);
  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; }
}


/* ============================================================
   Ergänzungen Augo-Nibelungia
   ============================================================ */

/* Wahlspruch-Kasten */
.motto-box {
  background: var(--blue);
  color: var(--white);
  padding: 34px 30px;
  border-radius: var(--radius);
  border-top: 5px solid var(--gold);
}
.motto-box h3 { color: var(--white); font-size: 2rem; margin-bottom: 4px; }
.motto-box .motto-sub { color: #E6D6A8; font-style: italic; margin: 0 0 16px; }
.motto-box p { color: #E3E8F1; }

.intro-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .grid.cols-4 { grid-template-columns: 1fr; } }

.latin {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold-dark);
  margin: 0;
}

.prose { max-width: 760px; }
.prose p { margin: 0 0 1em; }

/* Zeitleiste (Geschichte) */
.timeline {
  list-style: none;
  margin: 34px 0;
  padding: 0;
  border-left: 3px solid var(--silver);
}
.timeline li {
  position: relative;
  padding: 0 0 26px 28px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg-alt);
}
.timeline .jahr {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue);
}

blockquote.zitat {
  margin: 30px 0;
  padding: 22px 26px;
  background: var(--white);
  border-left: 4px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.4;
}
blockquote.zitat cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: normal;
  color: var(--ink-soft);
}

/* Lieder ohne Strophennummer (einzelne Strophe) */
.song .verses.single li { padding-left: 0; }
.song .verses.single li::before { content: none; }

/* Kontaktformular */
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 6px;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31,59,115,0.12);
}
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
button.btn { cursor: pointer; font-family: inherit; }
.btn.btn-gold { background: var(--gold); border-color: var(--gold); }
.btn.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.form-hinweis { font-size: 0.85rem; color: var(--ink-soft); margin-top: 12px; }
.form-fehler { color: #9B2C2C; font-size: 0.9rem; min-height: 1.2em; margin: 8px 0 0; }

ul.link-list { list-style: none; padding: 0; margin: 0; }
ul.link-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.link-list li:last-child { border-bottom: none; }

/* Textseiten: linksbündig zur Kopfzeile, aber angenehme Zeilenlänge */
.container.prose { max-width: var(--maxw); }
.container.prose > * { max-width: 780px; }

/* Zirkel statt Wappen: schmal und hoch, daher etwas mehr Höhe */
.brand .zirkel { width: 44px; height: 48px; }
footer.site-footer .footer-wappen { width: 64px; }
