/* ==========================================================================
   K.D.St.V. Saxo-Thuringia (Dresden, Aachen) zu Bochum im CV
   Stylesheet — Version 2
   Alles Farbige leitet sich aus den Burschenfarben schwarz-weiss-gruen ab.
   ========================================================================== */

:root {
  --paper:       #F4F5F1;
  --white:       #FFFFFF;
  --forest-900:  #0E2116;
  --forest-800:  #143020;
  --green:       #1D5236;
  --green-400:   #6FA987;
  --green-200:   #B7D9C4;
  --black:       #000000;
  --brass:       #B9974F;
  --ink:         #111511;
  --ink-soft:    #4C5450;
  --line:        #D6DAD1;
  --line-dark:   rgba(244, 245, 241, 0.22);

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);

  --ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-800); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--text);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.15em; max-width: 64ch; }

.lead { font-size: clamp(1.12rem, 1.9vw, 1.35rem); line-height: 1.5; color: var(--ink-soft); max-width: 52ch; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; }

.skip-link { position: absolute; left: -9999px; background: var(--green); color: #fff; padding: .7rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* --- Label (Kleinschrift, kein Versalsatz) ------------------------------- */

.label {
  font-family: var(--ui);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--green);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.label::after { content: ""; height: 1px; background: currentColor; opacity: .35; flex: 1; max-width: 90px; }

/* --- Couleur-Marke ------------------------------------------------------- */

.band-mark {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  width: 32px; height: 19px;
  border: 1px solid var(--line);
  flex: none;
}
.band-mark span:nth-child(1) { background: var(--black); }
.band-mark span:nth-child(2) { background: var(--white); }
.band-mark span:nth-child(3) { background: var(--green); }
.site-footer .band-mark { border-color: var(--line-dark); }

/* --- Kopfzeile ----------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 33, 22, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--paper);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }

.brand { display: flex; align-items: center; gap: .8rem; color: var(--paper); text-decoration: none; }
.brand img { width: 38px; height: auto; flex: none; }
.brand-name { font-family: var(--text); font-weight: 600; font-size: 1.06rem; letter-spacing: -.01em; line-height: 1.2; }
.brand-name small { display: block; font-family: var(--ui); font-weight: 500; font-size: .7rem; letter-spacing: .015em; color: rgba(244,245,241,.62); }

.nav-toggle {
  display: none; background: none; color: var(--paper);
  border: 1px solid var(--line-dark); border-radius: 2px;
  padding: .5rem .85rem; font-family: var(--ui); font-size: .9rem; cursor: pointer;
}

.site-nav ul { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--ui); font-size: .93rem; font-weight: 500;
  color: rgba(244,245,241,.85); text-decoration: none;
  padding-block: .45rem; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--green-400); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; padding-bottom: 1rem; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--line-dark); }
  .header-inner { flex-wrap: wrap; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--forest-900);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

/* Die Schaerpe: das Band, wie es ueber der Schulter getragen wird. */
.hero-sash {
  position: absolute;
  inset: -25% -10%;
  z-index: -2;
  background: linear-gradient(
    108deg,
    transparent 0 52%,
    var(--black) 52% 60.5%,
    #FAFAF7 60.5% 69%,
    var(--green) 69% 77.5%,
    transparent 77.5% 100%
  );
  opacity: .92;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--forest-900) 28%, rgba(14,33,22,.74) 54%, rgba(14,33,22,.2) 82%);
}

/* Foto-Hero: das Bild traegt die Flaeche, der Verlauf haelt den Text lesbar. */
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }

.hero-has-photo::after {
  background:
    linear-gradient(94deg, rgba(10,24,16,.94) 0%, rgba(10,24,16,.82) 38%, rgba(10,24,16,.38) 70%, rgba(10,24,16,.25) 100%),
    linear-gradient(to top, rgba(10,24,16,.55) 0%, transparent 45%);
}
@media (max-width: 860px) {
  .hero-has-photo::after {
    background: linear-gradient(to bottom, rgba(10,24,16,.9) 0%, rgba(10,24,16,.8) 55%, rgba(10,24,16,.88) 100%);
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(4rem, 11vw, 8.5rem);
  min-height: min(84vh, 760px);
}
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .lead { color: rgba(244,245,241,.84); margin-bottom: 2.2rem; }
.hero .label { color: var(--green-200); }

.hero-crest { width: clamp(160px, 22vw, 250px); height: auto; justify-self: end; }

/* Das Wappen ist schwarz konturiert. Auf dunklem Grund hebt ein feiner
   heller Saum die Konturen wieder heraus. */
.hero-crest, .footer-crest, .brand img {
  filter: drop-shadow(0 0 1.5px rgba(244, 245, 241, .65));
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-crest { justify-self: start; width: 120px; order: -1; }
  .hero-sash { opacity: .5; }
}

/* --- Kennzahlenband ------------------------------------------------------ */

.figures { background: var(--forest-800); color: var(--paper); border-top: 1px solid var(--line-dark); }
.figures-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.figures-grid > div { padding: clamp(1.6rem, 3vw, 2.4rem) 0; }
.figures-grid > div + div { border-left: 1px solid var(--line-dark); padding-left: clamp(1.2rem, 3vw, 2.4rem); }
.figure-value {
  font-family: var(--text); font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -.03em;
  color: var(--white); display: block; margin-bottom: .5rem;
}
.figure-label { font-family: var(--ui); font-size: .87rem; color: rgba(244,245,241,.7); }
@media (max-width: 620px) {
  .figures-grid > div + div { border-left: none; border-top: 1px solid var(--line-dark); padding-left: 0; }
}

/* --- Sektionen ----------------------------------------------------------- */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-white { background: var(--white); border-block: 1px solid var(--line); }
.section-dark { background: var(--forest-900); color: var(--paper); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(244,245,241,.8); }
.section-dark a { color: var(--green-200); }
.section-dark .label { color: var(--green-200); }

.section-head { max-width: 58ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.6rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem,5vw,4.5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.item { border-top: 1px solid var(--line); padding-top: 1.15rem; }
.item h3 { margin-bottom: .4rem; }
.item p { margin-bottom: 0; font-size: .99rem; color: var(--ink-soft); }
.section-dark .item { border-top-color: var(--line-dark); }
.section-dark .item p { color: rgba(244,245,241,.75); }

.item-marker { font-family: var(--ui); font-size: .8rem; font-weight: 600; color: var(--green); display: block; margin-bottom: .45rem; }
.section-dark .item-marker { color: var(--green-200); }

/* --- Buttons ------------------------------------------------------------- */

.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn {
  display: inline-block;
  font-family: var(--ui); font-size: .95rem; font-weight: 600;
  padding: .85rem 1.5rem; border: 1px solid transparent; border-radius: 2px;
  text-decoration: none; cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn-primary { background: var(--green); border-color: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-400); border-color: var(--green-400); color: var(--forest-900); }
.btn-ghost { background: transparent; border-color: rgba(244,245,241,.45); color: var(--paper); }
.btn-ghost:hover { background: rgba(244,245,241,.1); color: var(--white); border-color: var(--paper); }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: rgba(29,82,54,.08); color: var(--forest-800); }

/* --- Zirkel -------------------------------------------------------------- */

.zirkel { width: clamp(150px, 18vw, 230px); height: auto; }

.zirkel-band { padding-block: clamp(3rem, 6vw, 5rem); }
.zirkel-inner {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 5rem);
}
.zirkel-inner .pull { max-width: 16ch; }

.footer-zirkel { display: flex; align-items: flex-start; }
.footer-zirkel .zirkel { width: 110px; opacity: .9; }

/* --- Bildplaetze --------------------------------------------------------- */

.shot { position: relative; background: #E7EAE4; border-radius: 3px; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.section-dark .shot { background: var(--forest-800); }

.ratio-wide { aspect-ratio: 16 / 9; }
.ratio-photo { aspect-ratio: 4 / 3; }
.ratio-tall { aspect-ratio: 4 / 5; }
.ratio-square { aspect-ratio: 1 / 1; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(.9rem, 1.8vw, 1.5rem); }

/* Ein Bild ueber die ganze Breite, ohne Rahmen drumherum. */
.band-photo { position: relative; overflow: hidden; }
.band-photo img { width: 100%; height: clamp(260px, 42vw, 520px); object-fit: cover; }

figure { margin: 0; }
figcaption { font-family: var(--ui); font-size: .85rem; color: var(--ink-soft); margin-top: .6rem; }
.section-dark figcaption { color: rgba(244,245,241,.65); }

/* --- Steckbrief ---------------------------------------------------------- */

.facts { margin: 0; }
.facts > div {
  display: grid; grid-template-columns: minmax(130px, 180px) 1fr; gap: 1rem;
  padding: .8rem 0; border-bottom: 1px solid var(--line);
}
.facts dt { font-family: var(--ui); font-size: .87rem; font-weight: 600; color: var(--ink-soft); }
.facts dd { margin: 0; }
.section-dark .facts > div { border-bottom-color: var(--line-dark); }
.section-dark .facts dt { color: rgba(244,245,241,.62); }
@media (max-width: 560px) { .facts > div { grid-template-columns: 1fr; gap: .1rem; } }

/* --- Zeitleiste ---------------------------------------------------------- */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 1.8rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.timeline .year { font-family: var(--text); font-weight: 600; font-size: 1.35rem; letter-spacing: -.02em; color: var(--green); }
.timeline h3 { margin-bottom: .3rem; }
.timeline p { margin: 0; font-size: .99rem; color: var(--ink-soft); }
.section-dark .timeline li { border-top-color: var(--line-dark); }
.section-dark .timeline .year { color: var(--green-200); }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: .3rem; } }

/* --- Semesterprogramm ---------------------------------------------------- */

.programm-monat {
  font-family: var(--ui);
  font-size: .9rem;
  font-weight: 600;
  color: var(--green);
  margin: 2.6rem 0 .2rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--green);
}
.programm-monat:first-child { margin-top: 0; }

.programm-liste { list-style: none; margin: 0; padding: 0; }
.programm-liste li {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: baseline;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.t-datum { font-family: var(--ui); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.t-name { font-size: 1.02rem; }
.t-name small { display: block; font-size: .9rem; color: var(--ink-soft); margin-top: .15rem; }
.t-zeit {
  font-family: var(--ui); font-size: .92rem; color: var(--ink-soft);
  white-space: nowrap; text-align: right; display: flex; gap: .5rem;
  align-items: baseline; justify-content: flex-end;
}

.t-flag {
  font-family: var(--ui); font-size: .72rem; font-weight: 600;
  padding: .15rem .45rem; border-radius: 2px; border: 1px solid var(--line);
  color: var(--ink-soft); white-space: nowrap;
}
.t-flag-ho { background: var(--green); border-color: var(--green); color: var(--white); }
.t-flag-o  { background: rgba(29,82,54,.1); border-color: transparent; color: var(--green); }
.t-flag-io { background: transparent; border-color: var(--line); color: var(--ink-soft); }
.t-flag-intern { background: transparent; }

@media (max-width: 680px) {
  .programm-liste li { grid-template-columns: 1fr; gap: .2rem; }
  .t-zeit { justify-content: flex-start; text-align: left; margin-top: .25rem; }
}

.legende { display: grid; gap: .55rem; margin: 0; }
.legende > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: baseline; }
.legende dt { font-family: var(--ui); font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.legende dd { margin: 0; font-size: .95rem; }

/* --- Tabelle ------------------------------------------------------------- */

.termine { width: 100%; border-collapse: collapse; font-size: .99rem; }
.termine caption { text-align: left; font-family: var(--ui); font-weight: 600; padding-bottom: .9rem; color: var(--ink-soft); }
.termine th, .termine td { text-align: left; padding: .9rem 1rem .9rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.termine th { font-family: var(--ui); font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.termine td:first-child { font-family: var(--ui); font-weight: 600; white-space: nowrap; }

/* --- Formular ------------------------------------------------------------ */

.form { max-width: 34rem; display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-family: var(--ui); font-size: .88rem; font-weight: 600; }
.field input, .field textarea, .field select {
  font-family: var(--text); font-size: 1rem; padding: .75rem .9rem;
  border: 1px solid var(--line); border-radius: 2px; background: var(--white); color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.hint { font-size: .89rem; color: var(--ink-soft); max-width: 34rem; }

/* --- Hinweis auf noch zu ergaenzende Pflichtangaben ---------------------- */

mark {
  background: #FDF3D0;
  color: #6A4E0A;
  padding: .1em .4em;
  border-radius: 2px;
  font-family: var(--ui);
  font-size: .92em;
}

/* --- Zitat --------------------------------------------------------------- */

.pull {
  font-family: var(--text); font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem); line-height: 1.22; letter-spacing: -.02em;
  max-width: 20ch; margin: 0; color: var(--white);
}
.pull-source { font-family: var(--ui); font-size: .87rem; color: rgba(244,245,241,.6); margin-top: 1.2rem; }

/* --- Fusszeile ----------------------------------------------------------- */

.site-footer { background: var(--black); color: var(--paper); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer a { color: var(--paper); text-decoration-color: rgba(244,245,241,.4); }
.site-footer a:hover { color: var(--green-200); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.2rem; }
.footer-grid h3 { font-size: .92rem; color: var(--white); margin-bottom: .8rem; }
.footer-grid p, .footer-grid address { font-size: .96rem; font-style: normal; color: rgba(244,245,241,.75); margin: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .96rem; }
.footer-bottom {
  margin-top: 2.8rem; padding-top: 1.5rem; border-top: 1px solid rgba(244,245,241,.2);
  display: flex; flex-wrap: wrap; gap: 1rem 1.8rem; justify-content: space-between; align-items: center;
  font-size: .88rem; color: rgba(244,245,241,.68);
}
.footer-crest { width: 76px; height: auto; margin-bottom: 1.2rem; }

/* --- Bewegung: ein einziger orchestrierter Auftritt ---------------------- */

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes sashIn { from { opacity: 0; transform: translateX(6%); } to { opacity: .92; transform: none; } }

.hero-sash { animation: sashIn 1.1s cubic-bezier(.22,.8,.3,1) both; }
.hero-copy > *, .hero-crest { animation: rise .8s cubic-bezier(.22,.8,.3,1) backwards; }
.hero-copy > *:nth-child(1) { animation-delay: .12s; }
.hero-copy > *:nth-child(2) { animation-delay: .2s; }
.hero-copy > *:nth-child(3) { animation-delay: .28s; }
.hero-copy > *:nth-child(4) { animation-delay: .36s; }
.hero-crest { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero-sash { opacity: .92; }
}
