/* PROPAPPTY Website – gemeinsames Stylesheet
   Tokens 1:1 aus der App (lib/core/theme/app_colors.dart, Arbeitsplatz-Entwurf 03):
   Inter, Gewicht höchstens 600, Haarlinien statt schwerer Karten, helle Flächen,
   dunkle Navigation. Dunkelmodus folgt der Systemeinstellung. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-var.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --page: #ffffff;
  --page-alt: #f6f8fa;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --surface-3: #f0f2f5;
  --ink: #20262f;
  --ink-2: #4e5968;
  --muted: #626b78;
  --subtle: #8a94a3;
  --line: #e3e7eb;
  --line-strong: #cfd6de;
  --primary: #285be5;
  --primary-hover: #2451cc;
  --primary-soft: #edf2ff;
  --primary-ink: #2851af;
  --success: #246544;
  --success-soft: #e8f5ee;
  --warning: #8b5b10;
  --warning-soft: #fff3dc;
  --danger: #b02c42;
  --danger-soft: #fcecef;
  --info: #0e7490;
  --info-soft: #e0f7fa;
  --nav: #0b0f19;
  --nav-2: #1b2230;
  --nav-line: #242a36;
  --nav-ink: #e6e9ee;
  --nav-muted: #8b95a5;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --shadow-frame: 0 1px 1px rgba(16, 24, 40, 0.04), 0 8px 24px -6px rgba(16, 24, 40, 0.1),
    0 32px 64px -24px rgba(16, 24, 40, 0.18);
  --shadow-pop: 0 1px 2px rgba(16, 24, 40, 0.06), 0 12px 32px -8px rgba(16, 24, 40, 0.16);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #141618;
    --page-alt: #1a1d20;
    --surface: #1d2023;
    --surface-2: #24282c;
    --surface-3: #2c3035;
    --ink: #f3f4f5;
    --ink-2: #cbd5e1;
    --muted: #9ca6b2;
    --subtle: #7c8794;
    --line: #2f3439;
    --line-strong: #4a515a;
    --primary: #5b85f0;
    --primary-hover: #4a74de;
    --primary-soft: #1d2942;
    --primary-ink: #a9bdff;
    --success: #5cc58f;
    --success-soft: #0e2a22;
    --warning: #e2b45b;
    --warning-soft: #2e2310;
    --danger: #f08a9b;
    --danger-soft: #2e1517;
    --info: #4cc9e0;
    --info-soft: #0e2a30;
    --nav: #080b14;
    --nav-2: #161c28;
    --nav-line: #1f2530;
    --shadow-frame: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 32px 64px -24px rgba(0, 0, 0, 0.6);
    --shadow-pop: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 16px 32px -8px rgba(0, 0, 0, 0.5);
  }
}

/* ---- Grundlagen ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.022em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--r-sm); }
::selection { background: var(--primary-soft); color: var(--primary-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: var(--r-sm); background: var(--ink); color: var(--page); font-size: 14px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---- Marke ------------------------------------------------------------ */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { width: 30px; height: 26px; flex: none; }
.brand-word { font-size: 15px; font-weight: 300; letter-spacing: 0.16em; line-height: 1; }
.brand-word b { font-weight: 600; color: var(--primary); }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.btn:hover svg.arrow { transform: translateX(2px); }
.btn-lg { height: 46px; padding: 0 20px; font-size: 15px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(16, 24, 40, 0.12); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-quiet { color: var(--ink-2); }
.btn-quiet:hover { color: var(--ink); background: var(--surface-2); }
.btn-on-dark { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.16); }
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.14); }
.btn-block { width: 100%; }

/* ---- Kopfzeile ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header.scrolled, .site-header.solid { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.header-nav { display: flex; gap: 2px; margin-left: 12px; }
.header-nav a { padding: 7px 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color 0.15s, background-color 0.15s; }
.header-nav a:hover { color: var(--ink); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 18px; height: 18px; }
.mobile-nav { display: none; }

@media (max-width: 860px) {
  .header-nav, .header-actions .btn-quiet { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav[data-open="true"] {
    display: grid; gap: 2px; padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--line); background: var(--page);
  }
  .mobile-nav a { padding: 12px 4px; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mobile-nav a:last-child { border-bottom: 0; }
}

/* ---- Abschnitte ------------------------------------------------------ */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--page-alt); border-block: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--primary-ink); letter-spacing: 0; margin-bottom: 14px; }
.section-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.h2 { font-size: clamp(30px, 4.2vw, 46px); }
.lede { margin-top: 16px; font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); line-height: 1.6; }

/* ---- Fußzeile -------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--page); color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding: 56px 0 40px; }
.footer-grid p { margin-top: 14px; max-width: 300px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: 0; margin-bottom: 14px; }
.footer-col a { display: block; padding: 4px 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--subtle); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---- Einblenden beim Scrollen (nur mit JS, nur ohne reduzierte Bewegung) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---- Häkchenliste ---------------------------------------------------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--success); }

/* ---- Rechtsseiten ---------------------------------------------------- */
.prose { max-width: 720px; padding: clamp(48px, 8vw, 88px) 0 96px; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 12px; }
.prose h2 { font-size: 19px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 10px 0; }
.prose a { color: var(--primary-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent); text-underline-offset: 3px; }
.prose .meta { color: var(--muted); }
.prose .placeholder { background: var(--warning-soft); color: var(--warning); padding: 1px 6px; border-radius: var(--r-xs); font-weight: 500; }
.prose .note { margin-top: 40px; padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--warning); border-radius: var(--r-md); background: var(--surface-2); }
