@charset "UTF-8";
/* ============================================================
   LawNest - HubSpot Theme - Global Stylesheet
   Premium Dark - Petrol & Amber
   Design-Tokens abgeleitet aus der statischen Site (styles.css)
   Enthaelt: Tokens, Reset, Base, Typografie, Buttons, Layout,
   Header, Footer, Reveal-Utility, A11y. Sektionsspezifische
   Styles liegen in den jeweiligen modules/*/module.css.
   ============================================================ */

/* Guard-Rule: Der HubSpot-Render verwirft in der ausgelieferten CSS die
   allererste Regel; diese Wegwerf-Regel faengt das ab, damit der Token-Block
   darunter erhalten bleibt. Tokens stehen auf `html` (nicht `:root`), weil die
   `:root`-Regel im HubSpot-Preview/Live-Render verworfen wurde. */
.ln-token-guard { --ln-token-guard: 1; }

/* --- Design Tokens --- */
html {
  /* Petrol-Skala */
  --petrol-950: #0E1719;
  --petrol-900: #131F22;
  --petrol-850: #18272B;
  --petrol-800: #1F2D33;
  --petrol-700: #2A3A40;
  --petrol-600: #34464D;
  --petrol-500: #46595F;
  --petrol-300: #8FA0A6;

  /* Amber / Gold */
  --amber-300: #F0CE9C;
  --amber-400: #E6BB7A;
  --amber-500: #DDA85C;
  --amber-600: #C58E45;
  --amber-700: #A87432;

  /* Cream / Neutral */
  --cream-50:  #FAF7F1;
  --cream-100: #F5F0E6;
  --cream-200: #E2DDD2;

  /* Semantik */
  --bg:            var(--petrol-950);
  --bg-2:          var(--petrol-900);
  --surface:       var(--petrol-850);
  --surface-2:     var(--petrol-800);
  --surface-glass: rgba(31, 45, 51, 0.55);
  --border:        rgba(143, 160, 166, 0.16);
  --border-strong: rgba(143, 160, 166, 0.30);

  --text:        var(--cream-100);
  --text-soft:   var(--cream-200);
  --text-muted:  #9AA8AE;

  --accent:       var(--amber-500);
  --accent-hover: var(--amber-400);
  --accent-press: var(--amber-600);
  --on-accent:    var(--petrol-950);

  --success: #6BBF8A;
  --danger:  #D9614C;

  /* Typografie */
  --font-display: "Fraunces", "Source Serif 4", Georgia, serif;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Masse */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Schatten & Glow */
  --shadow-md: 0 18px 50px -20px rgba(0,0,0,0.65);
  --shadow-lg: 0 40px 90px -30px rgba(0,0,0,0.75);
  --glow-amber: 0 0 0 1px rgba(221,168,92,0.22), 0 24px 60px -24px rgba(221,168,92,0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Ambient background texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(221,168,92,0.10), transparent 60%),
    radial-gradient(900px 600px at -5% 12%, rgba(70,89,95,0.22), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 60%, var(--bg));
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* Neutralisiert HubSpot-Default-Wrapper, damit die Sektionen randlos sitzen */
.body-wrapper { overflow: clip; }
.dnd-section { padding: 0; }
.dnd_area-row-0-vertical-alignment { align-items: stretch; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; }
p { color: var(--text-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-soft); max-width: 60ch; }
.accent-text { color: var(--accent); }

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 90px); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { margin-top: 1.1rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: linear-gradient(180deg, var(--amber-400), var(--amber-600));
  color: var(--on-accent);
  box-shadow: var(--glow-amber);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(221,168,92,0.4), 0 30px 70px -22px rgba(221,168,92,0.6); }
.btn-ghost {
  background: rgba(245,240,230,0.04);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* --- Header --- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  width: 100%;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--petrol-900) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.header-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-logo { height: 34px; width: auto; flex: 0 0 auto; display: block; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.nav-links a {
  font-size: 0.95rem;
  color: var(--text-soft);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.btn::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; padding: 0.4rem; color: var(--text); }
.nav-toggle svg { height: 26px; width: 26px; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.2rem var(--gutter) 1.6rem;
    background: color-mix(in srgb, var(--petrol-900) 96%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links a { padding-block: 0.7rem; font-size: 1.05rem; }
  .nav.open .nav-links .btn { margin-top: 0.6rem; }
}

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--border); padding-block: clamp(48px, 6vw, 80px) 2rem; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 60px); }
.footer-brand .brand-logo { height: 40px; margin-bottom: 1.1rem; }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); max-width: 34ch; }
.footer-col h5 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.7rem; }
.footer-col a { font-size: 0.92rem; color: var(--text-soft); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-col address { font-style: normal; font-size: 0.92rem; color: var(--text-soft); line-height: 1.7; }
.footer-bottom {
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.82rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* --- Reveal on scroll --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* --- Cloud banner (Dev/Demo, falls Cloud-LLM) --- */
[data-banner="cloud"] {
  position: relative;
  z-index: 200;
  text-align: center;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  background: var(--amber-700);
  color: #fff;
}

/* --- Skip link / a11y --- */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--accent); color: var(--on-accent); padding: 0.6rem 1rem; border-radius: 0 0 var(--r-sm) 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* In-page editor / preview: HubSpot wraps modules; ensure full-bleed sections */
.hs-inline-edit .section { min-height: 40px; }