/**
 * vl-page.css — Static page template styles
 * Geladen auf: is_page() (Impressum, Datenschutz, AGB, etc.)
 *
 * @package vandalierer-labs
 */

/* ── Breadcrumb bar ──────────────────────────────────────── */
/* Base styles in vl-global.css */
.vl-breadcrumb { max-width: 860px; }

/* ── Page grid: article + sidebar ───────────────────────── */
.vl-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  align-items: start;
}

/* ── Article header ──────────────────────────────────────── */
.vl-article-header { margin-bottom: 32px; }

.vl-article-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--terra);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.vl-article-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--bark);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 10px;
  font-family: 'DIN1451AltHeadline', 'DIN1451Alt', sans-serif;
}

.vl-article-meta {
  font-size: 11px;
  color: var(--muted-light);
}

/* ── Prose content ───────────────────────────────────────── */
.vl-prose h2 {
  font-size: 15px;
  font-weight: 900;
  color: var(--bark);
  margin-top: 32px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--warm-border);
  font-family: 'DIN1451AltHeadline', 'DIN1451Alt', sans-serif;
  scroll-margin-top: 70px; /* header height offset for anchor links */
}

.vl-prose h2:first-child { margin-top: 0; }

.vl-prose h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--bark);
  margin-top: 20px;
  margin-bottom: 6px;
}

.vl-prose p {
  font-size: 14px;
  color: var(--muted-text);
  line-height: 1.8;
  margin-bottom: 8px;
}
.vl-prose p:last-child { margin-bottom: 0; }

.vl-prose strong { color: var(--bark); font-weight: 700; }

.vl-prose a { color: var(--terra); }
.vl-prose a:hover { text-decoration: underline; }

.vl-prose ul,
.vl-prose ol {
  font-size: 14px;
  color: var(--muted-text);
  line-height: 1.8;
  padding-left: 20px;
  margin-bottom: 12px;
}
.vl-prose li { margin-bottom: 4px; }

.vl-prose hr,
.vl-prose .vl-divider {
  height: 1px;
  background: var(--warm-border);
  border: none;
  margin: 28px 0;
}

/* ── Contact card (custom HTML block) ────────────────────── */
.vl-contact-card {
  background: var(--warm-card);
  border: 1.5px solid var(--warm-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vl-contact-row {
  display: flex;
  gap: 10px;
  font-size: 13px;
}

.vl-contact-label {
  font-weight: 700;
  color: var(--muted);
  min-width: 80px;
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: .04em;
  padding-top: 1px;
}

.vl-contact-val {
  color: var(--bark);
  font-weight: 500;
}

.vl-contact-val a { color: var(--terra); }

/* ── Sidebar ─────────────────────────────────────────────── */
.vl-sidebar {
  position: sticky;
  top: 62px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Table of contents */
.vl-toc {
  background: rgba(255,255,255,.92);
  border: 1.5px solid var(--warm-border);
  border-radius: 14px;
  padding: 16px 18px;
}

.vl-toc-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.vl-toc-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vl-toc-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-text);
  text-decoration: none;
  transition: color .15s;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.vl-toc-link::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-light);
  flex-shrink: 0;
  transition: background .15s;
}

.vl-toc-link:hover { color: var(--terra); }
.vl-toc-link:hover::before { background: var(--terra); }

/* Hide ToC if empty (JS removes .vl-toc when no h2s found) */
.vl-toc:empty { display: none; }

/* Related pages */
.vl-related-pages {
  background: rgba(255,255,255,.92);
  border: 1.5px solid var(--warm-border);
  border-radius: 14px;
  padding: 16px 18px;
}

.vl-related-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.vl-related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(196,99,58,.06);
  transition: color .15s;
}
.vl-related-link:last-child { border-bottom: none; }
.vl-related-link:hover { color: var(--terra); }

.vl-related-arrow {
  opacity: .4;
  font-size: 11px;
  font-style: normal;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 760px) {
  .vl-page {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px 24px 60px;
  }

  /* Sidebar becomes horizontal strip at bottom on mobile */
  .vl-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .vl-toc,
  .vl-related-pages {
    flex: 1 1 240px;
  }

  .vl-article-title { font-size: 24px; }
}
