/* ============================================================
   HOFL Musig – subpage.css
   Shared styles for Impressum & Datenschutz
   ============================================================ */

/* Nav override for subpages (always solid) */
.nav.scrolled {
  background: rgba(27, 43, 29, 0.97);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.back-link:hover { color: var(--gold-light); }

/* Sticky footer for subpages */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Subpage layout */
.subpage {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 5rem;
  flex: 1;
  background: var(--cream);
}

.subpage__head {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--cream-dark);
}
.subpage__head h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--text);
  margin-top: 0.5rem;
}

.subpage__content {
  max-width: 720px;
}

/* Legal sections */
.legal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--cream-dark);
}
.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.legal-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.legal-section h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
}

.legal-section p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.875rem;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.legal-section a:hover { color: var(--gold); }

.legal-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin: 0.75rem 0;
}
.legal-section ul li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Downloads page */
.subpage__lead {
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.7;
  max-width: 560px;
}

.dl-content {
  max-width: 100%;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.dl-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.dl-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.dl-card__preview {
  aspect-ratio: 16/9;
  background: var(--text);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-card__preview--light {
  background: var(--cream-dark);
  padding: 1.5rem;
}
.dl-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dl-card__preview--light img {
  object-fit: contain;
}

.dl-card__info {
  padding: 0.875rem 1rem 0.5rem;
  flex: 1;
}
.dl-card__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  margin: 0;
}
.dl-card__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
}

.legal-section .dl-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 1rem 1rem;
  padding: 0.5rem 1rem;
  background: var(--green);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
  align-self: flex-start;
}
.legal-section .dl-card__btn:hover {
  background: var(--gold);
  color: var(--text);
}

/* Footer override for subpages */
.footer { padding: 1.5rem 0; }
.footer__bottom--subpage { padding-top: 0; border: none; }
