/* =========================================
   Alpha Minoris / Vermieter Autopilot
   site.css — extends the design system with
   production footer, legal pages, responsive
   hardening and print styles.
   ========================================= */

/* Font tuning: tighter fallback stack + smoother weight */
html { font-feature-settings: "ss01", "cv11"; }
body {
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
}
h1, h2, h3, h4 { font-feature-settings: "ss01", "calt"; }

/* =========================================
   Brand lockup — "Vermieter-Autopilot / by Alpha Minoris"
   ========================================= */
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; line-height: 1; text-decoration: none; }
.brand-lockup .brand-text { display: inline-flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.brand-lockup .brand-name {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 500; font-style: normal;
  font-size: 17px; letter-spacing: -0.015em; color: var(--ink);
  line-height: 1;
}
.brand-lockup .brand-by {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  line-height: 1;
}
.nav .brand-lockup .brand-name { font-size: 16px; }
.site-footer .brand-lockup .brand-name { font-size: 18px; }
.site-footer .brand-lockup .brand-by  { font-size: 10px; }

@media (max-width: 600px) {
  .brand-lockup .brand-name { font-size: 15px; }
  .brand-lockup .brand-by   { font-size: 9px; letter-spacing: 0.1em; }
}

/* =========================================
   Editorial italic: swap the Fraunces italic
   in hero/display/pane headings for Playfair
   Display italic — more distinctive and warmer.
   ========================================= */
.hero h1 em,
h2.display em,
.pane-header h1 em,
.legal h1 em,
.wl-h em {
  font-family: 'Playfair Display', 'Cormorant Garamond', 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* Pull back slightly so the taller italic sits on the right baseline */
.hero h1 em { line-height: 0.96; }

/* =========================================
   Footer — multi-column, production-ready
   ========================================= */
.footer { padding: 64px 0 28px; background: var(--bg-2); border-top: 1px solid var(--line); }
.site-footer { display: flex; flex-direction: column; gap: 32px; }
.sf-top {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 48px;
  align-items: start;
}
.sf-brand .brand { font-size: 18px; }
.sf-tag {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 340px;
  margin: 16px 0 20px;
}
.sf-linkedin {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px; font-weight: 500;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.sf-linkedin:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.sf-linkedin svg { opacity: .85; }

.sf-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.sf-h {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.sf-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.sf-col li { color: var(--ink-2); }
.sf-col a { color: var(--ink-2); transition: color .15s ease; }
.sf-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.sf-col .mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12.5px; color: var(--muted); }

.sf-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.sf-bottom-links { display: flex; gap: 10px; align-items: center; }
.sf-bottom-links a { color: var(--muted); }
.sf-bottom-links a:hover { color: var(--ink); }
.sf-sep { color: var(--line-2); }

@media (max-width: 900px) {
  .sf-top { grid-template-columns: 1fr; gap: 28px; }
  .sf-cols { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
}
@media (max-width: 560px) {
  .sf-cols { grid-template-columns: 1fr; }
  .sf-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* =========================================
   Responsive hardening
   ========================================= */
@media (max-width: 900px) {
  .hero { padding: 56px 0 24px; }
  .hero h1 { font-size: clamp(44px, 10vw, 72px); }
  .hero p.lede { font-size: 17px; }
  .hero-meta { flex-wrap: wrap; row-gap: 8px; gap: 14px; }
  .hero-ctas { flex-wrap: wrap; gap: 10px; }
  .section { padding: 64px 0; }
  h2.display { font-size: clamp(32px, 6vw, 48px); }
  .nav-inner { height: 58px; gap: 8px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { padding: 6px 11px; font-size: 12.5px; }
  .nav-lang { margin-right: 2px; }
  .app-frame { border-radius: 14px; }
  .app-topbar .hint { display: none; }
  .feat-grid { gap: 14px; }
}
@media (max-width: 600px) {
  .container, .container-sm { padding: 0 20px; }
  .nums { grid-template-columns: 1fr; }
  .nums > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .nums > div:last-child { border-bottom: 0; }
  .dash-top { grid-template-columns: 1fr 1fr; }
  h2.display { font-size: clamp(28px, 8vw, 40px); }
  [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; gap: 16px !important; }
  [style*="grid-template-columns: 1.2fr 1fr"] { grid-template-columns: 1fr !important; gap: 16px !important; }
  [style*="grid-template-columns: 200px 1fr"] { grid-template-columns: 1fr !important; gap: 16px !important; }
  [style*="grid-template-columns: repeat(3, 1fr)"] { grid-template-columns: 1fr !important; gap: 10px !important; }
  [style*="grid-template-columns: repeat(4, 1fr)"] { grid-template-columns: 1fr 1fr !important; gap: 14px !important; }
  .pane-header { flex-direction: column; align-items: stretch; }
  .pane-header h1 { font-size: 26px; }
  .pane-body { padding: 18px 20px 22px; }
}

/* =========================================
   Legal pages (imprint / terms)
   ========================================= */
.legal-wrap { padding: 72px 0 48px; }
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}
.legal .legal-eye {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.legal h1 {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.02; letter-spacing: -0.02em;
  margin: 10px 0 18px;
}
.legal h1 em { color: var(--muted); font-style: italic; }
.legal .legal-sub {
  color: var(--muted); font-size: 16px; line-height: 1.55;
  max-width: 640px; margin: 0 0 36px;
}
.legal-lang {
  display: inline-flex; gap: 2px;
  padding: 3px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; letter-spacing: 0.06em;
  margin: 0 0 32px;
}
.legal-lang button {
  background: transparent; border: 0; padding: 6px 14px;
  font-family: inherit; color: var(--muted);
  letter-spacing: inherit; cursor: pointer;
  border-radius: 999px;
}
.legal-lang button.active { background: var(--ink); color: #fff; }

.legal-content { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 { font-family: 'Fraunces', serif; font-weight: 400; letter-spacing: -0.015em; color: var(--ink); }
.legal-content h1 { font-size: 36px; margin: 40px 0 14px; }
.legal-content h2 { font-size: 26px; margin: 44px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.legal-content h3 { font-size: 20px; margin: 32px 0 10px; }
.legal-content h4 { font-size: 16px; margin: 24px 0 8px; font-weight: 500; letter-spacing: 0; }
.legal-content p { margin: 0 0 14px; color: var(--ink-2); }
.legal-content ul, .legal-content ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-content a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.legal-content a:hover { text-decoration-color: var(--ink); }
.legal-content hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.legal-content code, .legal-content .mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  background: var(--bg-2); padding: 2px 6px; border-radius: 4px; font-size: 90%;
}
.legal-content table {
  width: 100%; border-collapse: collapse; margin: 16px 0 24px;
  font-size: 14px;
}
.legal-content th, .legal-content td {
  border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top;
}
.legal-content thead { background: var(--bg-2); }
.legal-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 16px; margin: 16px 0; background: var(--accent-soft);
  color: var(--ink-2);
}

.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--ink); font-size: 13px; font-weight: 500;
  margin-bottom: 28px;
  transition: background .15s ease;
}
.legal-back:hover { background: var(--bg-2); }

@media (max-width: 600px) {
  .legal { padding: 0 20px; }
  .legal-content { font-size: 15px; }
  .legal-content h1 { font-size: 30px; }
  .legal-content h2 { font-size: 22px; }
  .legal-content h3 { font-size: 18px; }
}

/* =========================================
   Print
   ========================================= */
@media print {
  .nav, .footer, .wl-backdrop, .legal-back, .legal-lang { display: none !important; }
  body { background: #fff; color: #000; }
  .legal { max-width: 100%; padding: 0; }
}
