/* public/css/10-landing.css
   M3 „Landingpage→App-Einstieg": Landing-/Public-/Account-Styles byte-identisch aus
   06c-project-chat.css (Z. 824–1285) ausgelagert — dort waren sie beim God-File-Split
   fehlplatziert. Enthält: body.landing-page (H49a), l-*-Komponenten, body.acct-page,
   Rechtstext-Footer (H45-CSP). Geladen via style.css-@import und index.html. */

/* ─── H49a: Landing Page ─────────────────────────────────── */

/* Override global body scroll/height for landing page */
body.landing-page {
  overflow-y: auto !important;
  height: auto !important;
  background: #fff;
  /* M3: Landing-Tokens an das App-Redesign angeglichen (Dashboard/Projekte,
     Token-Familien dh/pj): Petrol-Akzent #0f766e, warme Neutrals (#23211C Ink,
     #6F6A60 Muted, #E7E3D9 Linien), Mint-Familie, Archivo-Stack. Lokal auf
     .landing-page/.acct-page begrenzt, kein App-CSS überschreiben. */
  --l-font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--l-font);
  --l-brand: #0f766e;
  --l-brand-strong: #115e59;
  --l-brand-soft: #EAF9F4;
  --l-accent: #0f766e;
  --l-accent-d: #115e59;
  --l-accent-bg: #EAF9F4;
  --l-accent-mid: #B9E4DC;
  --l-ink: #23211C;
  --l-ink-2: #4A473F;
  --l-muted: #6F6A60;
  --l-line: #E7E3D9;
  --l-surface: #ffffff;
  --l-surface-2: #F5F6F8;
  --l-radius: 14px;
  --l-radius-lg: 18px;
  --l-shadow-sm: 0 1px 2px rgba(31,29,26,.04), 0 2px 6px rgba(31,29,26,.05);
  --l-shadow-md: 0 14px 36px -16px rgba(31,29,26,.28);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Header */
.l-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.l-nav-links {
  display: flex; align-items: center; gap: 26px; flex: 1;
  margin-left: 12px;
}
.l-nav-links a {
  font-size: 0.91rem; color: #6F6A60; text-decoration: none;
  font-weight: 500; transition: color .15s;
}
.l-nav-links a:hover { color: var(--l-brand); }
.l-nav-cta { margin-left: auto; flex-shrink: 0; }
/* SaaS-31e: Auth-CTAs nur im Mobil-Hamburger-Menü (Desktop nutzt .l-nav-cta). */
.l-nav-auth { display: none; }

/* SaaS-28: Konto-Menü (eingeloggt) im Landing-Header */
.l-acct { position: relative; display: inline-block; }
.l-acct-btn { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; }
/* SaaS-31g: Account-/User-Menü modernisiert — klares Popover, ruhige Abstände,
   weicher Schatten, einheitliche Item-Styles, Firma read-only. */
.l-acct-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 264px;
  background: #fff; border: 1px solid #eef2f7; border-radius: 16px;
  box-shadow: 0 18px 44px rgba(31, 29, 26, 0.18); padding: 8px; z-index: 60;
}
.l-acct-menu[hidden] { display: none; }
.l-acct-logout { color: #b91c1c; margin-top: 4px; border-top: 1px solid #F1EEE7; border-radius: 0 0 10px 10px; }
.l-acct-logout:hover, .l-acct-logout:focus-visible { background: #fef2f2; color: #b91c1c; }

/* SaaS-28: Kundenbereich / Account-Portal */
/* SaaS-31b: Das App-Basis-`body { height:100vh; overflow:hidden }` (SPA-Viewport-
   Lock) verhindert auf der Account-Seite jedes Scrollen — Profil/Sicherheit
   waren auf kleinen Viewports abgeschnitten. Hier bewusst zur normalen Doku-
   Höhe + vertikalem Scroll zurückkehren (Desktop + Mobile). */
body.acct-page { --l-brand: #0f766e; --l-brand-strong: #115e59; --l-brand-soft: #EAF9F4; --l-surface: #ffffff; --l-line: #E7E3D9;
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.acct-page { background: #F5F6F8; height: auto; min-height: 100vh; overflow-x: hidden; overflow-y: auto; }
.acct-header { position: static; box-shadow: 0 1px 0 #E7E3D9; }
/* Auth-UX v2: kompakter Host-Hinweis (rivix.de Konto / my.rivix.de Workspace),
   gleiche Rolle wie .auth-side-note im Login-Panel. */
body.acct-page .l-btn:disabled,
body.acct-page .l-btn[disabled] { cursor: not-allowed; }
.l-menu-btn {
  display: none !important; flex-direction: column; justify-content: space-between;
  width: 26px; height: 18px;
  background: none !important; border: none !important; box-shadow: none !important;
  padding: 0 !important; min-width: 0 !important; min-height: 0 !important;
  cursor: pointer; flex-shrink: 0;
}
.l-menu-btn span { display: block; height: 2px; background: #6F6A60; border-radius: 2px; transition: all .25s; }
.l-menu-btn.l-menu-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.l-menu-btn.l-menu-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.l-menu-btn.l-menu-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Pricing */
.l-pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 18px; }
/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .l-pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {

  /* BD-MOBILENAV-1: align-items/flex/margin aus der Desktop-Regel hier bewusst
     zuruecksetzen — sonst zentriert das geerbte align-items:center die Spalten-Items
     (Links + CTAs werden schmal/mittig statt voll breit). Solider Panel-Hintergrund
     statt halbtransparent (kein Durchscheinen des Heros). */
  .l-nav-links {
    display: none; flex-direction: column; gap: 0;
    align-items: stretch; flex: none; margin-left: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #ffffff;
    border-bottom: 1px solid #E7E3D9; padding: 6px 0 4px;
    box-shadow: 0 10px 28px rgba(31,29,26,.12); z-index: 499;
  }
  .l-nav-links.l-nav-open { display: flex; }
  .l-nav-links a { padding: 13px 22px; font-size: .95rem; color: #1e293b; border-bottom: 1px solid #F1EEE7; }
  .l-nav-links a:last-of-type { border-bottom: none; }
  .l-nav-cta { display: none; }
  /* Menue-Button rechts aussen (Logo links, Button rechts), sauberes 44px-Touch-Ziel. */
  .l-menu-btn { display: flex !important; margin-left: auto; width: 44px; height: 44px; padding: 13px 9px !important; }
  /* SaaS-31e: Auth-CTAs gestapelt unten im Hamburger-Menü, volle Breite, gut
     tappbar. Kein hover-only, lesbar auf hellem Menü-Hintergrund. Mit Trenn-Linie
     und etwas Luft als klare Hierarchie unter den Navigationslinks. */
  .l-nav-auth { display: flex; flex-direction: column; gap: 8px; padding: 14px 20px 16px; border-top: 1px solid #eef2f7; margin-top: 6px; }
}

@media (max-width: 580px) {
  .l-pricing-grid { grid-template-columns: 1fr; }
}
