/* Elvantis CRM - oeffentliche Landingpage (elvantis.app, "/")
   Eigenstaendiges Stylesheet, absichtlich getrennt von app.css - andere
   Zielgruppe (anonyme Besucher statt eingeloggte CRM-Nutzer), anderes
   visuelles System (hell, Marketing) statt der App-Shell (dunkel, Arbeit).
   Tokens 1:1 aus der echten Elvantis-Marke (Elvantis_New/src/app/globals.css). */

:root {
  --ink: #0b0d12;
  --signal: #1e56f7;
  --signal-deep: #0b2e99;
  --paper: #f7f7f5;
  --mist: #e4e6eb;
  --slate: #5b616e;
  --paper-raised: #ffffff;
  --shadow-soft: 0 20px 60px -18px rgba(11, 13, 18, 0.14);
  --shadow-soft-sm: 0 10px 30px -12px rgba(11, 13, 18, 0.12);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body.landing {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  max-width: 100vw;
  overscroll-behavior-x: none;
}

body.landing img { max-width: 100%; display: block; }

body.landing h1, body.landing h2, body.landing h3 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

body.landing p { margin: 0; }

body.landing a { color: inherit; text-decoration: none; }

body.landing ::selection { background: var(--signal); color: #fff; }

body.landing :focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.landing-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
}

.landing-skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

.landing-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

@media (min-width: 640px) {
  .landing-shell { padding-left: var(--space-3); padding-right: var(--space-3); }
}

/* ---------- Buttons ---------- */

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
  clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
}

.landing-button-primary {
  background: var(--signal);
  color: #fff;
  box-shadow: var(--shadow-soft-sm);
}

.landing-button-primary:hover { background: var(--signal-deep); transform: translateY(-1px); }
.landing-button-primary:active { transform: translateY(0); }

.landing-button-ghost {
  background: var(--paper-raised);
  color: var(--ink);
  border: 1px solid var(--mist);
}

.landing-button-ghost:hover { border-color: var(--slate); transform: translateY(-1px); }

.landing-button-large { padding: 1rem 1.9rem; font-size: 1rem; }

/* ---------- Header ---------- */

.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 247, 245, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mist);
}

.landing-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.landing-brand img { height: 52px; width: auto; }

.landing-nav {
  display: none;
  align-items: center;
  gap: var(--space-4);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--slate);
}

.landing-nav a { transition: color 0.15s ease; }
.landing-nav a:hover { color: var(--ink); }

.landing-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.landing-login-link {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.5rem 0.25rem;
}

.landing-login-link svg { width: 20px; height: 20px; }
.landing-login-link:hover { color: var(--signal); }

.landing-header-actions > .landing-button-primary { display: none; }

.landing-mobile-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--mist);
  background: var(--paper-raised);
  border-radius: 8px;
  cursor: pointer;
}

.landing-mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.landing-mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.landing-mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.landing-mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.landing-mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem var(--space-2) var(--space-3);
  border-top: 1px solid var(--mist);
  background: var(--paper);
}

.landing-mobile-menu[hidden] { display: none; }

.landing-mobile-menu a {
  padding: 0.85rem 0.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--mist);
}

.landing-mobile-menu a.landing-button {
  margin-top: 0.75rem;
  border-bottom: none;
  text-align: center;
}

@media (min-width: 960px) {
  .landing-nav { display: flex; }
  .landing-login-link { display: inline-flex; }
  .landing-header-actions > .landing-button-primary { display: inline-flex; }
  .landing-mobile-toggle { display: none; }
  .landing-mobile-menu { display: none !important; }
}

/* ---------- Scroll reveal ---------- */

.landing-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.landing-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .landing-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero ---------- */

.landing-hero { padding: var(--space-6) 0 var(--space-5); overflow-x: hidden; }

.landing-hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.landing-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--space-2);
}

.landing-hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  margin-bottom: var(--space-2);
}

.landing-hero-lead {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 42ch;
  margin-bottom: var(--space-3);
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: var(--space-3);
}

.landing-hero-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
}

.landing-hero-trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.landing-hero-trust svg { width: 18px; height: 18px; color: var(--signal); flex-shrink: 0; }

.landing-hero-visual {
  position: relative;
}

.landing-hero-visual-glow {
  position: absolute;
  inset: -10% -6%;
  background: radial-gradient(60% 60% at 50% 40%, rgba(30, 86, 247, 0.16), transparent 70%);
  z-index: 0;
  filter: blur(4px);
  animation: glow-breathe 7s ease-in-out infinite;
}

.landing-hero-visual .device-duo { position: relative; z-index: 1; }
.landing-hero-visual .device-frame-desktop { box-shadow: 0 32px 80px -20px rgba(11, 13, 18, 0.24); }

@media (min-width: 960px) {
  .landing-hero { padding: var(--space-7) 0 var(--space-6); }
  .landing-hero-inner { flex-direction: row; align-items: center; gap: var(--space-6); }
  .landing-hero-copy { flex: 0 0 41%; }
  .landing-hero-visual { flex: 1; }
}

/* ---------- Device mockups (Desktop-Browser-Chrome + Handy-Rahmen) ----------
   Zeigt zu jedem Screenshot direkt Desktop- UND Mobil-Ansicht nebeneinander,
   statt nur einen flachen Screenshot - macht "responsive" sichtbar statt nur
   behauptet. Handy-Bild ueberlappt bewusst mit fester (nicht prozentualer)
   Offset-Distanz, damit der Uberhang auf jeder Breite gleich klein bleibt und
   nie eine horizontale Seiten-Scrollbar ausloest (siehe .landing-section
   overflow-x:hidden als zusaetzliches Sicherheitsnetz). */

.device-duo { position: relative; isolation: isolate; }

.device-frame-desktop {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--mist);
  background: var(--paper-raised);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.device-frame-desktop-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  background: #f1f1ef;
  border-bottom: 1px solid var(--mist);
}

.device-frame-desktop-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mist); }

.device-frame-desktop-url {
  margin-left: 8px;
  font-size: 0.7rem;
  color: var(--slate);
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 999px;
  padding: 2px 12px;
}

.device-frame-desktop img { display: block; width: 100%; height: auto; }

/* Schlichter, sauberer Handy-Rahmen: einfarbige dunkle Blende (kein
   Farbverlauf, der als "schmutziger Grauton" statt Metall wirken kann),
   Dynamic-Island-Pille fuer sofortige Wiedererkennung als Smartphone. Bild
   wird NICHT beschnitten (kein object-fit:cover) - zeigt den Screenshot in
   seinem echten Seitenverhaeltnis, damit nie mitten durch eine Zeile/Zahl
   geschnitten wird. */
.device-frame-mobile {
  position: absolute;
  right: -14px;
  bottom: -18px;
  width: 32%;
  min-width: 104px;
  max-width: 180px;
  padding: 5px;
  border-radius: 36px;
  background: var(--ink);
  box-shadow: 0 18px 40px -14px rgba(11, 13, 18, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: device-float 6s ease-in-out infinite;
}

.device-frame-mobile-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 16px;
  border-radius: 9px;
  background: #050506;
  z-index: 3;
}

.device-frame-mobile-screen {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
}

.device-frame-mobile img {
  display: block;
  width: 100%;
  height: auto;
}

.device-duo:hover .device-frame-desktop {
  transform: translateY(-3px);
  box-shadow: 0 26px 70px -18px rgba(11, 13, 18, 0.2);
}

@keyframes device-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .device-frame-mobile { animation: none; }
  .device-duo:hover .device-frame-desktop { transform: none; }
  .landing-hero-visual-glow { animation: none; }
}

@media (min-width: 640px) {
  .device-frame-mobile { right: -22px; bottom: -26px; }
}

/* ---------- Trust band ---------- */

.landing-band { background: var(--ink); color: var(--paper); padding: var(--space-2) 0; }
.landing-band-inner { text-align: center; font-size: 0.9rem; }
.landing-band-inner strong { color: #fff; }

/* ---------- Sections ---------- */

.landing-section { padding: var(--space-6) 0; overflow-x: hidden; }
.landing-section-alt { background: var(--paper-raised); border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); }

.landing-section-head { max-width: 62ch; margin: 0 auto var(--space-5); text-align: center; }
.landing-section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: var(--space-2); }
.landing-section-lead { color: var(--slate); font-size: 1.05rem; }

/* ---------- Feature rows ---------- */

.landing-feature-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4) 0;
}

.landing-feature-row + .landing-feature-row { border-top: 1px solid var(--mist); }

.landing-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(30, 86, 247, 0.1);
  color: var(--signal);
  margin-bottom: var(--space-2);
}

.landing-feature-icon svg { width: 24px; height: 24px; }

.landing-feature-copy h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.landing-feature-copy p { color: var(--slate); margin-bottom: var(--space-2); }

.landing-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }

.landing-checklist li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.landing-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--signal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.landing-feature-visual .device-frame-desktop { box-shadow: var(--shadow-soft-sm); }
.landing-feature-visual .device-frame-mobile { max-width: 150px; }

@media (min-width: 900px) {
  .landing-feature-row { flex-direction: row; align-items: center; gap: var(--space-5); padding: var(--space-5) 0; }
  .landing-feature-row-reverse { flex-direction: row-reverse; }
  .landing-feature-copy, .landing-feature-visual { flex: 1; min-width: 0; }
}

/* ---------- Security grid ---------- */

.landing-security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}

.landing-security-card {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 14px;
  padding: var(--space-3);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.landing-security-card:hover {
  transform: translateY(-3px);
  border-color: var(--signal);
  box-shadow: var(--shadow-soft-sm);
}

.landing-security-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(30, 86, 247, 0.1);
  color: var(--signal);
  margin-bottom: var(--space-2);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-security-card:hover span { transform: scale(1.08); }
.landing-security-card svg { width: 22px; height: 22px; }
.landing-security-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.landing-security-card p { color: var(--slate); font-size: 0.92rem; }

@media (prefers-reduced-motion: reduce) {
  .landing-security-card:hover,
  .landing-security-card:hover span { transform: none; }
}

/* ---------- CTA band ---------- */

.landing-cta-band {
  background: linear-gradient(135deg, var(--signal-deep), var(--signal));
  color: #fff;
  padding: var(--space-6) 0;
}

.landing-cta-band-inner { max-width: 46ch; margin: 0 auto; text-align: center; }
.landing-cta-band-inner h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-bottom: var(--space-2); }
.landing-cta-band-inner p { opacity: 0.92; margin-bottom: var(--space-3); }
.landing-cta-band .landing-button-primary { background: #fff; color: var(--signal-deep); }
.landing-cta-band .landing-button-primary:hover { background: var(--paper); }

/* ---------- Contact ---------- */

.landing-contact-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.landing-contact-copy h2 { font-size: clamp(1.7rem, 3.6vw, 2.2rem); margin-bottom: var(--space-2); }
.landing-contact-copy > p { color: var(--slate); margin-bottom: var(--space-3); }

.landing-contact-form {
  background: var(--paper-raised);
  border: 1px solid var(--mist);
  border-radius: 16px;
  padding: var(--space-3);
  box-shadow: var(--shadow-soft-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.landing-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.landing-contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.landing-contact-form input,
.landing-contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--mist);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}

.landing-contact-form input:focus,
.landing-contact-form textarea:focus {
  border-color: var(--signal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 86, 247, 0.15);
}

.landing-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.landing-form-hint { font-size: 0.8rem; color: var(--slate); font-weight: 400; }
.landing-form-hint a { color: var(--signal); font-weight: 600; }

.landing-alert {
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.landing-alert-error { background: #fdecec; color: #a3231c; border: 1px solid #f3c6c4; }
.landing-alert-success { background: #e9f7ee; color: #1c6b3a; border: 1px solid #bfe6cc; }

@media (min-width: 640px) {
  .landing-form-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .landing-contact-grid { flex-direction: row; gap: var(--space-6); align-items: flex-start; }
  .landing-contact-copy, .landing-contact-form { flex: 1; }
  .landing-contact-form { position: sticky; top: 100px; }
}

/* ---------- Footer ---------- */

.landing-footer { background: var(--ink); color: var(--mist); padding: var(--space-5) 0 var(--space-3); }

.landing-footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-footer-brand img { height: 46px; filter: brightness(0) invert(1); margin-bottom: var(--space-2); }
.landing-footer-brand p { max-width: 34ch; color: rgba(228, 230, 235, 0.72); font-size: 0.9rem; }

.landing-footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
}

.landing-footer-links > div { display: flex; flex-direction: column; gap: 0.6rem; }
.landing-footer-heading { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; margin-bottom: 0.2rem; }
.landing-footer-links a { color: rgba(228, 230, 235, 0.78); font-size: 0.92rem; transition: color 0.15s ease; }
.landing-footer-links a:hover { color: #fff; }

.landing-footer-bottom { padding-top: var(--space-3); font-size: 0.8rem; color: rgba(228, 230, 235, 0.6); }

@media (min-width: 960px) {
  .landing-footer-inner { flex-direction: row; justify-content: space-between; gap: var(--space-6); }
  .landing-footer-brand { flex: 0 0 30%; }
  .landing-footer-links { flex: 1; }
}

/* ---------- Legal pages (Impressum/Datenschutz) ---------- */

.landing-legal { padding: var(--space-6) 0; }
.landing-legal .landing-shell { max-width: 760px; }
.landing-legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: var(--space-4); }
.landing-legal h2 { font-size: 1.2rem; margin: var(--space-4) 0 var(--space-2); }
.landing-legal p { color: var(--slate); margin-bottom: var(--space-2); }
.landing-legal a { color: var(--signal); font-weight: 600; }
.landing-legal ul { color: var(--slate); padding-left: 1.2rem; margin-bottom: var(--space-2); }
.landing-legal li { margin-bottom: 0.3rem; }
