/* =====================================================================
   TTV BMR Töpchin e.V. — Stylesheet der Unterseiten
   (Impressum, Datenschutz, Vereinssatzung, Pressematerial, Archiv).
   Nutzt dasselbe Design-System wie die Startseite: Schriften + Tokens
   kommen aus tokens.css (Single Source of Truth). Nur die neuen Fonts
   (Space Grotesk + Inter) werden verwendet.
   ===================================================================== */
@import url("tokens.css");

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Sticky-Footer: Seite fuellt mind. die Viewporthoehe, der Inhalt waechst,
     der Footer bleibt auf kurzen Seiten unten am Bildschirmrand. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--green-strong);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Container ---------- */
.seite {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

/* ---------- Kopf (Logo + Seitentitel) ---------- */
/* Inhaltsblock waechst und schiebt den Footer auf kurzen Seiten nach unten. */
.kopf { padding-top: 48px; flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
.kopf .logo img { width: 132px; height: auto; }
.seitentitel {
  margin: 40px 0 32px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--text);
}

/* ---------- Inhalt (Fliesstext der Rechts-/Textseiten) ---------- */
.inhalt {
  max-width: 760px;
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--muted);
}
.inhalt p { margin: 0; }
.inhalt .leer { height: 1.2em; }
.inhalt strong, .inhalt b { font-weight: 700; color: var(--text); }
.inhalt h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.3;
  color: var(--text);
  margin: 2em 0 0.5em;
}
.inhalt h2.gross {
  font-size: clamp(26px, 3.4vw, 34px);
  margin-top: 2.4em;
}
.inhalt h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--text-md);
  line-height: 1.4;
  color: var(--text);
  margin: 1.6em 0 0.4em;
}
.inhalt ul {
  list-style: disc outside;
  padding-left: 1.4em;
  margin: 0.8em 0;
}
.inhalt ul li { margin-bottom: 0.8em; }
.inhalt em, .inhalt i { font-style: italic; }
.inhalt a {
  color: var(--green);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.inhalt a:hover { color: var(--green-hover); }

/* ---------- Download-Karte (Vereinssatzung-PDF, Pressematerial-ZIP) ---------- */
.download-karte {
  display: inline-block;
  margin-top: 32px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  max-width: 480px;
}
.download-karte h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--text-lg);
  margin: 0 0 8px;
  color: var(--text);
}
.download-karte .meta {
  font-size: var(--text-sm);
  color: var(--muted-2);
  margin: 0 0 24px;
}
.download-karte .btn-download {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 28px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: 999px;
  text-decoration: none;
}
/* Kein Hover-Effekt: Text bleibt weiß (sonst greift .inhalt a:hover). */
.download-karte .btn-download:hover { color: #fff; }

/* ---------- Bildergalerie (Archiv) ---------- */
.galerie { margin: 48px 0; }
.galerie h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--text-lg);
  margin: 0 0 20px;
  color: var(--text);
}
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.galerie-grid a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-card);
}
.galerie-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.25s;
}
.galerie-grid a:hover img { transform: scale(1.05); }

/* ---------- Footer (zentral, identisch zur Startseite) ---------- */
.site-footer {
  background: var(--dark);
  color: #fff;
  margin-top: 96px;
  padding: 40px 0;
}
.site-footer .container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer :focus-visible { outline-color: #fff; }
/* Vereinsname links, Links auf derselben Ebene ganz rechts. */
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: #fff; }
.footer-brand img { height: 36px; width: auto; }
.footer-brand span { font-family: var(--display); font-weight: 500; font-size: var(--text-base); }
/* Eine Link-Zeile mit "|"-Trennern unter dem Vereinsnamen. */
.footer-links { display: flex; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: var(--text-sm); color: rgba(255, 255, 255, 0.7); padding: 6px 0; }
.footer-links a:hover { color: #fff; }
.footer-links a + a { margin-left: 16px; }
.footer-links a + a::before {
  content: "|";
  margin-right: 16px;
  color: rgba(255, 255, 255, 0.3);
}
.footer-copy { font-size: var(--text-sm); color: rgba(255, 255, 255, 0.4); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .kopf { padding-top: 32px; }
  .kopf .logo img { width: 110px; }
  .seitentitel { margin: 28px 0 24px; }
}
@media (max-width: 479px) {
  .seite { padding-inline: 18px; }
  .galerie-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
