/* ==========================================================================
   VFEHB — Stuttgarter Denkmale
   Helles, klassisches Design: Creme / Anthrazit / Gold
   ========================================================================== */

:root {
  --bg: #faf7f1;
  --bg-alt: #f3eee3;
  --surface: #fffdf9;
  --ink: #23211d;
  --ink-soft: #57534a;
  --gold: #a8873c;
  --gold-deep: #8c6f2e;
  --line: rgba(35, 33, 29, 0.12);
  --line-gold: rgba(168, 135, 60, 0.35);
  --shadow: 0 18px 45px -18px rgba(35, 33, 29, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-deep); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.container {
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}

.narrow { width: min(720px, 100% - 3rem); margin-inline: auto; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
}

.nav-brand img { height: 44px; width: auto; }

.nav-brand span {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding: 0.4rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

/* solid state after scroll / on subpages */
.site-nav.solid {
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -20px rgba(35, 33, 29, 0.3);
}

.site-nav.solid .nav-brand { color: var(--ink); }
.site-nav.solid .nav-links a { color: var(--ink-soft); }
.site-nav.solid .nav-links a:hover { color: var(--ink); }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.site-nav.solid .nav-toggle span { background: var(--ink); }

.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}

.hero video,
.hero .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 15, 0.55) 0%, rgba(20, 18, 15, 0.45) 55%, rgba(20, 18, 15, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 7rem 1.5rem 5rem;
  max-width: 860px;
}

.hero-content img.hero-logo {
  height: 92px;
  width: auto;
  margin: 0 auto 2rem;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #d8bd7d;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  margin-bottom: 2.6rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.95rem 2.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }

.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: floaty 2.6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* --------------------------------------------------------------------------
   Sections — general
   -------------------------------------------------------------------------- */

.section { padding: 6.5rem 0; }
.section.alt { background: var(--bg-alt); }

.section-head { max-width: 680px; margin-bottom: 3.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}

.kicker::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold);
}

.section-head.center .kicker::after {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold);
}

.section-head h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  margin-bottom: 1rem;
}

.section-head .lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Verein: Vision / Mission Cards + Stats + Timeline
   -------------------------------------------------------------------------- */

.card-duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4.5rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 2.5rem 2.3rem;
  box-shadow: var(--shadow);
}

.info-card h3 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.info-card p { color: var(--ink-soft); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
  padding: 2.8rem 0;
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
  margin-bottom: 4.5rem;
}

.stat-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold-deep);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* Timeline */

.timeline-title {
  font-size: 1.9rem;
  margin-bottom: 2.5rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
  max-width: 780px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line-gold);
}

.tl-item {
  position: relative;
  padding-bottom: 2.6rem;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: calc(-2rem + 1px);
  top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--bg);
}

.section.alt .tl-item::before { box-shadow: 0 0 0 4px var(--bg-alt); }

.tl-year {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 0.35rem;
}

.tl-item p { color: var(--ink-soft); font-size: 0.98rem; }

.tl-item figure { margin-top: 1.2rem; max-width: 420px; }

/* --------------------------------------------------------------------------
   Projekte — Grid
   -------------------------------------------------------------------------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  color: inherit;
}

.project-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .thumb img { transform: scale(1.05); }

.project-card .card-body {
  padding: 1.6rem 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-year {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}

.project-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.project-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  flex: 1;
}

.card-more {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.project-card:hover .card-more { color: var(--ink); }

/* --------------------------------------------------------------------------
   Aktuelles — News
   -------------------------------------------------------------------------- */

.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.news-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.8rem;
}

.news-card h3 { font-size: 1.4rem; margin-bottom: 0.7rem; }

.news-card p { font-size: 0.92rem; color: var(--ink-soft); flex: 1; }

.news-card a { margin-top: 1.2rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Publikationen — Tabelle
   -------------------------------------------------------------------------- */

.pub-table-wrap { overflow-x: auto; }

.pub-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
}

.pub-table th, .pub-table td {
  text-align: left;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.pub-table th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--bg-alt);
}

.pub-table tr:last-child td { border-bottom: 0; }

.pub-table td:first-child {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
}

.pub-table .pub-sub { display: block; font-family: var(--sans); font-size: 0.82rem; font-weight: 400; color: var(--ink-soft); }

.pub-note {
  margin-top: 1.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Satzung
   -------------------------------------------------------------------------- */

.satzung-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 3.5rem;
  align-items: start;
}

.satzung-grid figure img {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.satzung-text p { color: var(--ink-soft); margin-bottom: 1.2rem; }

.satzung-text .pdf-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info p { color: var(--ink-soft); margin-bottom: 1.4rem; }

.contact-info address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  border-left: 2px solid var(--gold);
  padding-left: 1.2rem;
  margin-bottom: 1.4rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2.4rem;
  box-shadow: var(--shadow);
}

.form-field { margin-bottom: 1.3rem; }

.form-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-field textarea { min-height: 140px; resize: vertical; }

/* --------------------------------------------------------------------------
   Figures / Bildquellen
   -------------------------------------------------------------------------- */

figure figcaption {
  font-size: 0.78rem;
  color: var(--ink-soft);
  padding-top: 0.55rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
}

/* --------------------------------------------------------------------------
   Projekt-Detailseiten
   -------------------------------------------------------------------------- */

.detail-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.detail-hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 15, 0.35) 0%, rgba(20, 18, 15, 0.15) 40%, rgba(20, 18, 15, 0.75) 100%);
}

.detail-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 3.5rem;
  padding-top: 10rem;
}

.detail-hero .card-year { color: #d8bd7d; }

.detail-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: #fff;
  max-width: 780px;
}

.article { padding: 4.5rem 0 5.5rem; }

.article .backlink {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.article p {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 1.6rem;
}

.article .meta-brochure {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
  padding: 0.9rem 0;
  margin: 2.2rem 0;
}

.article figure { margin: 2.5rem 0; }

.article .article-footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.article .article-footer a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Impressum / einfache Seiten
   -------------------------------------------------------------------------- */

.plain-page { padding: calc(var(--nav-h) + 4rem) 0 5rem; min-height: 70vh; }
.plain-page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 2rem; }
.plain-page p { color: var(--ink-soft); margin-bottom: 1.2rem; max-width: 640px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: #23211d;
  color: rgba(255, 255, 255, 0.75);
  padding: 4.5rem 0 2.5rem;
  text-align: center;
}

.site-footer img { height: 64px; width: auto; margin: 0 auto 1.4rem; }

.footer-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.footer-since {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #d8bd7d;
  margin-bottom: 2.2rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.8rem;
  list-style: none;
  margin-bottom: 2.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-nav a:hover { color: #d8bd7d; }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2rem;
}

/* --------------------------------------------------------------------------
   Scroll-Reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.3, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.3, 1);
}

.reveal.visible { opacity: 1; transform: none; }

.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .project-grid, .news-list { grid-template-columns: repeat(2, 1fr); }
  .satzung-grid, .contact-grid { grid-template-columns: 1fr; }
  .nav-brand span { display: none; }
}

@media (max-width: 680px) {
  .section { padding: 4.5rem 0; }
  .project-grid, .news-list { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: rgba(250, 247, 241, 0.98);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.3, 1);
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links a,
  .site-nav.solid .nav-links a {
    color: var(--ink);
    font-size: 1.05rem;
    letter-spacing: 0.2em;
  }

  body.nav-open .nav-toggle span { background: var(--ink); }
}
