/* Lagerklar – Website. Mobile first, ohne Framework. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Inter-Bold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/Inter-ExtraBold.woff2") format("woff2"); }

:root {
  /* Farben wie in der App. Grautöne nur aus der Textfarbe mit Transparenz. */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --primary: #1D4ED8;
  --primary-dark: #1E40AF;
  --text: #0F172A;
  --muted: rgba(15, 23, 42, 0.72);
  --border: rgba(15, 23, 42, 0.12);
  --primary-soft: rgba(29, 78, 216, 0.08);
  --green: #16A34A;
  --yellow: #F59E0B;
  --red: #DC2626;

  --radius: 16px;
  --radius-lg: 24px;
  --gutter: 20px;
  --max: 1120px;
  --section: clamp(4rem, 10vw, 7.5rem);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 32px -12px rgba(15, 23, 42, 0.18);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;   /* 18px – gut lesbar auf dem Handy */
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.5vw + 1rem, 4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--primary); text-underline-offset: 0.18em; }
a:hover { color: var(--primary-dark); }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--text); color: #fff; padding: 0.75rem 1rem; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.delay-1 { --delay: 100ms; }
.footer-tagline { margin-top: 0.5rem; }
.problem__text h2 + .big { margin-top: 1.25rem; }
.legal .stand { margin-top: 2.5rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--white { background: var(--surface); border-block: 1px solid var(--border); }

.eyebrow {
  display: inline-block; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem;
}
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.1875rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.icon { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 56px; padding: 0.875rem 1.5rem; border-radius: var(--radius);
  font: inherit; font-weight: 700; font-size: 1.125rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--small { min-height: 48px; padding: 0.625rem 1.125rem; font-size: 1rem; }
.btn--large { min-height: 64px; padding: 1rem 2rem; font-size: 1.25rem; }
.btn--block { width: 100%; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid var(--border);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(248, 250, 252, 0.8); backdrop-filter: saturate(1.4) blur(12px); }
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.375rem; letter-spacing: -0.03em; }
.brand:hover { color: var(--text); }
.brand svg { width: 2rem; height: 2rem; }

.nav { display: none; }
.nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.875rem; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 1rem; text-decoration: none; }
.nav a:hover { color: var(--text); background: var(--primary-soft); }
@media (min-width: 900px) {
  .nav { display: block; margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.hero .container { display: grid; gap: clamp(3rem, 6vw, 4rem); align-items: center; }
.hero__lead { margin-top: 1.25rem; font-size: clamp(1.1875rem, 1vw + 1rem, 1.375rem); color: var(--muted); max-width: 34rem; }
.hero__actions { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.875rem; align-items: stretch; }
.hero__note { font-size: 1rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.hero__note .icon { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.hero__visual { display: flex; justify-content: center; position: relative; }

@media (min-width: 560px) {
  .hero__actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
}
@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- Handy-Rahmen ---------- */
.phone {
  --w: 300px;
  position: relative; width: var(--w); max-width: 100%; flex: none;
  padding: calc(var(--w) * 0.035);
  background: var(--text);
  border-radius: calc(var(--w) * 0.16);
  box-shadow: var(--shadow), 0 40px 80px -30px rgba(29, 78, 216, 0.35);
}
.phone::before { /* Kamera-Insel */
  content: ""; position: absolute; z-index: 2; left: 50%; top: calc(var(--w) * 0.06);
  width: 30%; height: calc(var(--w) * 0.085); transform: translateX(-50%);
  background: var(--text); border-radius: 999px;
}
/* Der Bildschirm hat genau das Seitenverhältnis der Screenshots – so wird links/rechts nichts
   abgeschnitten. Der Eckenradius bleibt kleiner als der Abstand der App-Inhalte zum Rand. */
.phone__screen { width: 100%; aspect-ratio: 1170 / 2532; border-radius: calc(var(--w) * 0.11); overflow: hidden; background: var(--bg); }
.phone__screen img, .phone__screen video { width: 100%; height: 100%; object-fit: cover; }
.phone--hero { --w: min(78vw, 320px); }
.phone--back { display: none; }

/* Handy: nur ein Handy und nur die obere Hälfte, damit Überschrift, Text und Knopf
   ohne Scrollen zu sehen sind. Unten blendet es weich aus. */
@media (max-width: 899px) {
  .hero .container { gap: 2.25rem; }
  .hero { padding-bottom: 0; }
  .hero__visual {
    height: calc(min(78vw, 320px) * 1.1);
    overflow: hidden; align-items: flex-start;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
    mask-image: linear-gradient(to bottom, #000 72%, transparent);
  }
}
@media (min-width: 900px) {
  .phone--hero { --w: 320px; }
  .phone--back {
    display: block; --w: 270px; position: absolute; right: -2.5rem; top: 4.5rem; z-index: 0;
    transform: rotate(6deg); opacity: 0.96;
  }
  .hero__visual { justify-content: flex-start; padding-left: 1rem; }
  .phone--hero { z-index: 1; }
}
.phone--sm { --w: 210px; }

/* ---------- Problem ---------- */
.problem { display: grid; gap: 2.5rem; align-items: center; }
.problem__text p + p { margin-top: 1rem; }
.problem__text .big { font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem); font-weight: 600; color: var(--text); }
.problem__text p { color: var(--muted); }
.compare { display: grid; gap: 1rem; }
.compare__card { border-radius: var(--radius-lg); padding: 1.5rem; border: 1px solid var(--border); background: var(--surface); }
.compare__card h3 { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1rem; font-size: 1.125rem; }
.compare__card--new { border: 2px solid var(--primary); }
.compare__card--new h3 { color: var(--primary); }
.compare__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.compare__card li { display: flex; gap: 0.75rem; align-items: flex-start; }
.compare__card li .icon { margin-top: 0.15rem; width: 1.25rem; height: 1.25rem; }
.compare__card--old li .icon { color: var(--muted); }
.compare__card--new li .icon { color: var(--primary); }
@media (min-width: 900px) {
  .problem { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* ---------- Schritte ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 3.5rem; counter-reset: step; }
.step { display: grid; justify-items: center; text-align: center; gap: 1.5rem; }
.step__num {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 1.25rem;
}
.step h3 { font-size: 1.5rem; margin-top: 0.75rem; }
.step p { color: var(--muted); margin-top: 0.5rem; max-width: 22rem; margin-inline: auto; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .step { grid-template-rows: auto 1fr; }
  .phone--sm { --w: 250px; }
}

/* ---------- Nutzen ---------- */
.benefits { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.benefit { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.benefit__icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--primary-soft); color: var(--primary); margin-bottom: 1rem; }
.benefit p { color: var(--muted); margin-top: 0.5rem; }
@media (max-width: 639px) {
  .benefit { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.25rem; }
  .benefit .benefit__icon { grid-row: span 2; margin: 0; }
  .benefit p { margin-top: 0.25rem; }
}
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .benefits { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } .benefit { padding: 2rem; } }

/* ---------- Rollen ---------- */
.roles { display: grid; gap: 1.5rem; }
.role { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; display: grid; gap: 1.75rem; }
.role--boss { background: var(--surface); border: 2px solid var(--primary); }
.role__head { display: flex; align-items: center; gap: 0.875rem; }
.role__head .benefit__icon { margin: 0; }
.role__head p { color: var(--muted); font-size: 1rem; }
.role ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.875rem; }
.role li { display: flex; gap: 0.75rem; align-items: flex-start; }
.role li .icon { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; }
.role .yes .icon { color: var(--primary); }
.role .no { color: var(--muted); }
.role .no .icon { color: var(--muted); }
.role__phone { display: flex; justify-content: center; }
.role__phone .phone { --w: 210px; }
@media (min-width: 900px) { .role__phone .phone { --w: 230px; } }
@media (min-width: 900px) {
  .roles { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .role { padding: 2.25rem; grid-template-rows: auto 1fr auto; }
}

/* ---------- Funktionen ---------- */
.features { display: grid; gap: 0.875rem; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
.feature { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.feature .icon { color: var(--primary); margin-top: 0.1rem; }
.feature h3 { font-size: 1.0625rem; }
.feature p { font-size: 1rem; color: var(--muted); margin-top: 0.25rem; }
.lights { display: inline-flex; gap: 4px; margin-top: 0.4rem; }
.lights span { width: 0.75rem; height: 0.75rem; border-radius: 999px; }
.lights .g { background: var(--green); } .lights .y { background: var(--yellow); } .lights .r { background: var(--red); }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }

.soon { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; color: var(--muted); font-size: 1rem; }
.soon strong { color: var(--text); }
.soon ul { display: contents; list-style: none; }
.soon li { padding: 0.375rem 0.75rem; border: 1px dashed rgba(15, 23, 42, 0.28); border-radius: 999px; }

/* ---------- Preis ---------- */
.price { max-width: 44rem; margin-inline: auto; text-align: center; background: var(--surface); border: 2px solid var(--primary); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem) 1.5rem; box-shadow: var(--shadow); }
.price__list { list-style: none; padding: 0; margin: 1.75rem auto 2rem; display: grid; gap: 0.875rem; text-align: left; max-width: 26rem; }
.price__list li { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 600; }
.price__list .icon { color: var(--primary); margin-top: 0.1rem; }
.price p.lead { color: var(--muted); margin-top: 1rem; font-size: 1.1875rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 64px; padding: 1rem 1.25rem; font-weight: 700; font-size: 1.125rem; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--primary); transition: transform 0.2s ease; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { padding: 0 1.25rem 1.25rem; color: var(--muted); }
.faq .answer p + p { margin-top: 0.75rem; }
@media (prefers-reduced-motion: reduce) { .faq summary .icon { transition: none; } }

/* ---------- Aufruf ---------- */
.cta { background: var(--primary); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 7vw, 5rem) 1.5rem; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
.cta p { color: rgba(255, 255, 255, 0.92); margin: 1rem auto 0; max-width: 34rem; font-size: 1.1875rem; }
.cta .btn { margin-top: 2rem; background: #fff; color: var(--primary); }
.cta .btn:hover { background: #EFF4FF; color: var(--primary-dark); }
.cta :focus-visible { outline-color: #fff; }
.cta__mail { display: block; margin-top: 1.25rem; font-size: 1rem; color: rgba(255, 255, 255, 0.92); }
.cta__mail a { color: #fff; font-weight: 700; overflow-wrap: anywhere; }

.hint { font-size: 0.9375rem; color: var(--muted); margin-top: 1.25rem; }

/* ---------- Fußzeile ---------- */
.site-footer { padding-block: 3rem; border-top: 1px solid var(--border); font-size: 1rem; color: var(--muted); }
.site-footer .container { display: grid; gap: 1.5rem; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 600; }
@media (min-width: 760px) {
  .site-footer .container { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 46rem; padding-block: clamp(2.5rem, 6vw, 4.5rem) 5rem; }
.legal h1 { font-size: clamp(2rem, 4vw + 1rem, 3rem); }
.legal h2 { font-size: 1.375rem; margin-top: 2.5rem; letter-spacing: -0.01em; }
.legal h3 { font-size: 1.125rem; margin-top: 1.5rem; }
.legal p, .legal ul, .legal address { margin-top: 0.875rem; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: 0.375rem; }
.draft {
  margin-top: 1.5rem; padding: 1.25rem 1.25rem 1.25rem 1.5rem; border-radius: var(--radius);
  background: var(--primary-soft); border: 2px dashed var(--primary); color: var(--text);
}
.draft strong { display: block; font-size: 1.125rem; }
.ph { background: rgba(29, 78, 216, 0.12); color: var(--primary-dark); padding: 0.05em 0.3em; border-radius: 4px; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.back { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 600; }

/* ---------- Kopfzeilen-Knopf auf dem Handy: kleiner und flacher ---------- */
/* Der große Knopf im Hero bleibt so der Hauptknopf. Die Tippfläche bleibt dank ::after 44 px hoch. */
@media (max-width: 559px) {
  .site-header .btn--small {
    position: relative; min-height: 38px; padding: 0.4rem 0.875rem;
    font-size: 0.9375rem; border-radius: 12px;
    background: var(--primary-soft); color: var(--primary);
  }
  .site-header .btn--small:hover { background: rgba(29, 78, 216, 0.14); color: var(--primary-dark); }
  .site-header .btn--small::after { content: ""; position: absolute; inset: -3px 0; }
}

/* ---------- Dezente Animationen ---------- */
/* Nur wenn „Bewegung reduzieren“ aus ist. Der versteckte Anfangszustand gilt nur, wenn das
   Skript die Klasse .js-reveal gesetzt hat – ohne JavaScript ist alles sofort sichtbar. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease-out, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--delay, 0ms);
  }
  .js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

  /* Karten in einer Reihe mit kleinem Versatz (nur wo mehrere Spalten nebeneinander stehen) */
  @media (min-width: 640px) {
    .benefits > :nth-child(2n), .features > :nth-child(2n) { --delay: 80ms; }
  }
  @media (min-width: 1000px) {
    .benefits > *, .features > * { --delay: 0ms; }
    .benefits > :nth-child(3n+2), .features > :nth-child(3n+2) { --delay: 80ms; }
    .benefits > :nth-child(3n), .features > :nth-child(3n) { --delay: 160ms; }
  }

  /* Die drei Schritte nacheinander – am Desktop stehen sie nebeneinander. */
  @media (min-width: 900px) {
    .steps > :nth-child(2) { --delay: 150ms; }
    .steps > :nth-child(3) { --delay: 300ms; }
  }

  /* Hero: Text sofort da, nur das Handy schiebt sich einmal sanft hoch.
     Startet leicht sichtbar (nicht 0), damit das Bild nicht als „unsichtbar“ verzögert wird. */
  .hero__visual { animation: lk-hoch 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both; }
  @keyframes lk-hoch {
    from { opacity: 0.35; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
  }
}
