/* Die Scheinheiligen 2001 — shared stylesheet */

:root {
  --ink: #17130f;
  --ink-soft: #6b6058;
  --paper: #ffffff;
  --paper-raised: #f7f5f1;
  --red: #7d1524;
  --red-bright: #a3182a;
  --gold: #a8843c;
  --gold-light: #cbaa66;
  --line: rgba(23, 19, 15, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Work Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, "Times New Roman", serif; text-wrap: balance; margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.wrap { max-width: 880px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

/* ---------- Header / hamburger nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--gold);
}
.brand-name { font-family: "Fraunces", serif; font-weight: 700; font-size: 0.98rem; }

.hamburger {
  width: 44px; height: 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  background: transparent; border: none; cursor: pointer;
}
.hamburger span { width: 22px; height: 2px; background: var(--ink); display: block; transition: transform 0.25s ease, opacity 0.2s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.nav-overlay.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-overlay a {
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  padding: 0.45rem 1rem;
  border-bottom: 2px solid transparent;
}
.nav-overlay a:hover, .nav-overlay a.active { color: var(--red); border-bottom-color: var(--gold); }
.nav-overlay .nav-foot {
  margin-top: 2.2rem;
  font-family: "Work Sans", sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.nav-overlay .nav-foot a { font-family: inherit; font-size: inherit; font-weight: 500; color: var(--ink-soft); border: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Splash / home ---------- */
.splash {
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.1rem;
  padding: 3rem 1.5rem;
}
.splash img { width: min(220px, 46vw); height: min(220px, 46vw); border-radius: 50%; box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px var(--gold), 0 20px 40px -18px rgba(23,19,15,0.35); }
.splash h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); font-weight: 800; color: var(--red); margin-top: 0.6rem; }
.splash .sub { color: var(--ink-soft); font-size: 1.02rem; }
.splash .badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: "Work Sans", sans-serif; font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--red);
  border: 1px solid var(--line); padding: 0.4rem 0.9rem; border-radius: 999px;
}
.splash .enter {
  margin-top: 1.4rem; display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.95rem; color: var(--paper); background: var(--red);
  padding: 0.85rem 1.7rem; text-decoration: none; border: 2px solid var(--red);
}
.splash .enter:hover { background: var(--red-bright); border-color: var(--red-bright); }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(2.6rem, 6vw, 3.6rem) 1.6rem; border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-block; font-family: "Work Sans", sans-serif; font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--red);
  margin-bottom: 0.6rem;
}
.page-head h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 700; }
.page-head p.lede { margin-top: 0.9rem; color: var(--ink-soft); max-width: 58ch; font-size: 1.03rem; }
main.page { padding-block: clamp(2.2rem, 5vw, 3rem) 5rem; }
main.page > * + * { margin-top: 1.5rem; }
main.page p { color: var(--ink-soft); max-width: 68ch; }

.pull {
  font-family: "Fraunces", serif; font-style: italic; font-weight: 500; font-size: 1.3rem;
  color: var(--red); border-left: 3px solid var(--gold); padding-left: 1.1rem; line-height: 1.4;
  max-width: 52ch;
}
.placeholder-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--red); border: 1px dashed var(--red); padding: 0.15rem 0.5rem; margin-top: 0.4rem;
}

.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; max-width: 46rem; }
.fact-list li { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; font-size: 0.95rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); }
.fact-list .k { font-weight: 700; color: var(--red); font-family: "Work Sans", sans-serif; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em; padding-top: 0.15rem; }

/* Timeline */
.timeline { position: relative; max-width: 46rem; }
.timeline::before { content: ""; position: absolute; left: 4.6rem; top: 0.4rem; bottom: 0.4rem; width: 2px; background: linear-gradient(var(--gold), var(--line)); }
@media (max-width: 560px) { .timeline::before { left: 2.8rem; } }
.tl-item { display: grid; grid-template-columns: 4rem 1.4rem 1fr; gap: 0.4rem; align-items: start; padding-block: 1rem; }
@media (max-width: 560px) { .tl-item { grid-template-columns: 2.2rem 1.4rem 1fr; } }
.tl-year { font-family: "Fraunces", serif; font-weight: 700; font-size: 1.05rem; color: var(--red); }
.tl-dot { display: flex; justify-content: center; padding-top: 0.3rem; }
.tl-dot span { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--paper); display: block; }
.tl-body h3 { font-size: 1.02rem; font-weight: 600; }
.tl-body p { margin-top: 0.3rem; font-size: 0.95rem; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table.termine { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 0.95rem; }
table.termine th, table.termine td { text-align: left; padding: 0.9rem 1.05rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.termine thead th { font-family: "Work Sans", sans-serif; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em; color: var(--paper); background: var(--red); }
table.termine tbody tr:last-child td { border-bottom: none; }
table.termine tbody tr:hover { background: var(--paper-raised); }
.tag-jubilee { display: inline-block; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #56101c; background: var(--gold-light); padding: 0.15rem 0.5rem; margin-left: 0.5rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.gallery-tile { aspect-ratio: 4/3; background: var(--paper-raised); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.4rem; color: var(--ink-soft); font-size: 0.8rem; text-align: center; padding: 1rem; }
.gallery-tile .icon { font-size: 1.5rem; opacity: 0.6; }

/* Join steps */
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; max-width: 52rem; }
@media (max-width: 700px) { .join-grid { grid-template-columns: 1fr; } }
.join-card { background: var(--paper-raised); padding: 1.5rem 1.4rem; border-top: 3px solid var(--gold); }
.join-card .step { font-family: "Fraunces", serif; font-weight: 800; font-size: 1.5rem; color: var(--red); }
.join-card h3 { font-size: 1.02rem; font-weight: 600; margin-top: 0.5rem; }
.join-card p { font-size: 0.92rem; margin-top: 0.35rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 3rem); max-width: 60rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info dt { font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); margin-top: 1.3rem; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 0.3rem 0 0; color: var(--ink-soft); }
form.contact-form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 0.4rem; }
.form-row label { font-size: 0.82rem; font-weight: 600; }
.form-row input, .form-row textarea { font: inherit; padding: 0.75rem 0.9rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.form-row textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: -0.2rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.5rem; font-family: "Work Sans", sans-serif; font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 2px solid var(--red); background: var(--red); color: var(--paper); cursor: pointer; }
.btn:hover { background: var(--red-bright); border-color: var(--red-bright); }

/* Mitgliederbereich (intern) */
header.site.intern-topbar { background: var(--ink); color: var(--paper); }
.intern-topbar .nav-bar { height: 56px; }
.intern-topbar .brand { color: var(--paper); }
.intern-topbar .brand img { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--gold); }
.intern-pill { display: inline-block; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); background: var(--gold-light); padding: 0.18rem 0.55rem; margin-left: 0.6rem; border-radius: 2px; vertical-align: middle; }
.intern-topbar .back-link { color: var(--paper); opacity: 0.75; text-decoration: none; font-size: 0.82rem; }
.intern-topbar .back-link:hover { opacity: 1; text-decoration: underline; }

.gate-wrap { min-height: calc(100vh - 56px); display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.25rem; }
.gate-card { max-width: 26rem; width: 100%; background: var(--paper-raised); border-top: 3px solid var(--gold); padding: 2.2rem clamp(1.5rem, 5vw, 2.4rem); }
.gate-card h1 { font-size: 1.6rem; }
.gate-card p.lede { color: var(--ink-soft); margin-top: 0.6rem; font-size: 0.95rem; }
.gate-card form { display: grid; gap: 1rem; margin-top: 1.6rem; }
.gate-card .btn { justify-content: center; }
.gate-note { margin-top: 1.4rem; font-size: 0.78rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1rem; }

.intern-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; max-width: 60rem; }
.intern-card { background: var(--paper-raised); padding: 1.5rem 1.4rem; border-top: 3px solid var(--gold); }
.intern-card h3 { font-size: 1.02rem; font-weight: 600; }
.intern-card p { font-size: 0.92rem; margin-top: 0.5rem; color: var(--ink-soft); }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding-block: 2.2rem; font-size: 0.85rem; color: var(--ink-soft); }
.footer-grid { max-width: 1080px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.footer-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--red); }
