/* ==========================================================================
   DokuPix Landingpage
   Farben aus assets/logo-transparent.png gesampelt:
   Grün #2a5f45 (D/Doku), Blau #2c4c72 (Pix/Objektiv)
   ========================================================================== */

:root {
  --green: #2a5f45;
  --green-deep: #1e4632;
  --green-tint: #e6efe9;
  --blue: #2c4c72;
  --blue-light: #3d6a9c;
  --blue-tint: #e5edf8;

  --ink: #1c2420;
  --body: #4a544e;
  --muted: #7c867f;

  --bg: #ffffff;
  --bg-alt: #f6f7f5;
  --border: #e3e7e2;

  /* Markerfarben aus der echten Taxonomie (supabase/markerTaxonomy.ts) */
  --marker-safety: #e53935;
  --marker-special: #eab308;

  --font-sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;

  --container: 1140px;
  --radius: 14px;
  --radius-lg: 22px;
  --section-y: clamp(4rem, 9vw, 7rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  -webkit-tap-highlight-color: rgba(42, 95, 69, 0.12);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

a {
  color: var(--green);
}

:focus-visible {
  outline: 2.5px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.section {
  padding-block: var(--section-y);
}

/* Sprungziele nicht unter den Sticky-Header schieben */
[id] {
  scroll-margin-top: 88px;
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section__head h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
  font-weight: 650;
}

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.9rem;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.header__logo img {
  height: 38px;
  width: auto;
}

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

.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem) var(--section-y);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 46% at 12% 4%, rgba(42, 95, 69, 0.09), transparent 68%),
    radial-gradient(50% 44% at 92% 26%, rgba(44, 76, 114, 0.08), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 46rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 1.35rem;
}

.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 34rem;
  margin-inline: auto;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.18s ease;
}

/* ---------- Geraete-Rahmen (iPhone) ------------------------------------- */
/* Alle Masse haengen an --phone-w, dadurch skaliert der Rahmen sauber mit.
   Bildschirm im echten iPhone-Verhaeltnis 9:19.5; der Screenshot ist breiter,
   wird aber nicht gedehnt, sondern oben von der Statusleiste und unten vom
   Bildschirmhintergrund gepolstert - beide in den Randfarben des Screenshots
   (oben #f5f7f9, unten #fff), damit der Uebergang unsichtbar bleibt. */

.phone {
  --phone-w: 272px;
  flex: none;
  width: var(--phone-w);
  padding: calc(var(--phone-w) * 0.033);
  border-radius: calc(var(--phone-w) * 0.141);
  background: linear-gradient(150deg, #2b332e, #171d1a);
  box-shadow:
    0 26px 50px -18px rgba(28, 36, 32, 0.42),
    0 0 0 1px rgba(28, 36, 32, 0.1);
}

.phone__screen {
  aspect-ratio: 9 / 19.5;
  border-radius: calc(var(--phone-w) * 0.109);
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  line-height: 0;
}

.phone__screen img {
  flex: none;
  width: 100%;
  height: auto;
}

.phone__status {
  flex: none;
  position: relative;
  height: 6.3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 8%;
  background: #f5f7f9;
  color: #1c2420;
}

.phone__time {
  font-size: calc(var(--phone-w) * 0.039);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.phone__island {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 26%;
  height: 52%;
  border-radius: 999px;
  background: #12100f;
}

.phone__signal {
  width: 27%;
  height: auto;
}

.phone__home {
  flex: none;
  align-self: center;
  margin-top: auto;
  margin-bottom: 3.4%;
  width: 36%;
  height: calc(var(--phone-w) * 0.0147);
  border-radius: 999px;
  background: #12100f;
  opacity: 0.82;
}

/* ---------- Geraete-Rahmen (Rechner) ------------------------------------ */
/* Das PDF ist hochformatig, der Bildschirm querformatig - der graue Rand
   ringsum entspricht genau dem, was ein PDF-Betrachter am Rechner zeigt. */

.screen {
  width: 100%;
  max-width: 340px;
}

.screen__frame {
  padding: 7px;
  border-radius: 11px;
  background: #202723;
  box-shadow:
    0 22px 44px -22px rgba(28, 36, 32, 0.45),
    0 0 0 1px rgba(28, 36, 32, 0.1);
}

.screen__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding-inline: 9px;
  background: #eef1ee;
  border-radius: 5px 5px 0 0;
}

.screen__bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c6cec8;
}

.screen__viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0 0 5px 5px;
  background: #6f776f;
}

/* Absolut positioniert: als Grid-Item loeste eine Prozenthoehe nicht auf,
   das PDF lief dadurch unten aus dem Bildschirm heraus. Gegen den absoluten
   Bezugsrahmen greifen die Prozentwerte zuverlaessig. */
.screen__viewport img {
  position: absolute;
  left: 5%;
  top: 5%;
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.screen__stand {
  display: block;
  position: relative;
  width: 21%;
  height: 12px;
  margin: 0 auto;
  background: linear-gradient(#b3bab5, #8b948e);
}

.screen__stand::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  width: 230%;
  height: 5px;
  border-radius: 3px;
  background: #99a29c;
}

/* ---------- Nutzen-Karten ----------------------------------------------- */

.benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.benefit {
  flex: 1 1 300px;
  max-width: 355px;
  padding: 1.85rem 1.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.benefit__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.benefit__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-tint);
  color: var(--green);
}

.benefit:nth-child(even) .benefit__icon {
  background: var(--blue-tint);
  color: var(--blue);
}

.benefit__num {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.benefit h3 {
  font-size: 1.14rem;
  font-weight: 650;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.benefit p {
  font-size: 0.955rem;
}

/* ---------- Ablauf: 3 Schritte ------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 3.6rem;
  display: flex;
  flex-direction: column;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.955rem;
}

/* Geraet unter dem Schritttext, mittig in der Spalte */
.step .phone,
.step .screen {
  margin-top: 1.7rem;
  align-self: center;
}

.step .phone {
  --phone-w: 172px;
}

/* ---------- Zielgruppe -------------------------------------------------- */

.audience {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.audience h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
  font-weight: 650;
  margin-bottom: 0.85rem;
}

.facts {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.985rem;
}

.facts svg {
  flex: none;
  margin-top: 0.28rem;
  color: var(--green);
}

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

.cta {
  padding-block: var(--section-y);
  background: linear-gradient(135deg, var(--green-deep), var(--green) 52%, var(--blue) 100%);
  color: #fff;
  text-align: center;
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.6vw, 2.35rem);
  font-weight: 650;
  margin-bottom: 1rem;
}

.cta p {
  max-width: 34rem;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.9vw, 1.1rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-deep);
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

/* Adresse zusaetzlich ausgeschrieben - so laesst sie sich lesen und kopieren,
   ohne den mailto-Link ausloesen zu muessen. */
.cta__mail {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

.cta__mail a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-block: 0.35rem;
}

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

.footer {
  padding-block: 2.75rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer img {
  height: 27px;
  width: auto;
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer__meta a {
  display: inline-block;
  padding-block: 0.55rem;
  color: var(--body);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

/* ---------- Rechtstexte (Impressum / Datenschutz) ----------------------- */

.legal {
  max-width: 46rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.legal h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.legal h2 {
  font-size: 1.2rem;
  font-weight: 650;
  margin-top: 2.25rem;
  margin-bottom: 0.7rem;
}

.legal p,
.legal ul {
  margin-bottom: 1rem;
  font-size: 0.985rem;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

/* ---------- Scroll-Reveal (nur mit JS aktiv) ---------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Breakpoints ------------------------------------------------- */

/* Mobil zuerst: die Seite wird ueberwiegend am Handy gelesen, deshalb hier
   groessere Fliesstexte, kompaktere Abstaende und volle Fingerbreite. */
@media (max-width: 699px) {
  :root {
    --section-y: 3.4rem;
  }

  .header__inner {
    min-height: 58px;
  }

  [id] {
    scroll-margin-top: 72px;
  }

  .hero {
    padding-block: 2.5rem 3.4rem;
  }

  /* 16px statt 15,3px - unter iOS die angenehmere Lesegroesse */
  .benefit p,
  .step p,
  .facts li {
    font-size: 1rem;
  }

  .benefit {
    padding: 1.5rem 1.35rem;
  }

  .benefits {
    gap: 1.1rem;
  }

  /* Am Handy duerfen die Geraete groesser sein - es steht die volle Breite zur
     Verfuegung und die Screenshots sollen lesbar bleiben. */
  .step .phone {
    --phone-w: 216px;
  }

  .step .screen {
    max-width: 300px;
  }

  .steps {
    gap: 2.75rem;
  }

  .footer__inner {
    gap: 0.5rem;
  }
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
  }

  /* Verbindungslinie zwischen den Schritten */
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.27rem;
    left: 3.15rem;
    right: -2.25rem;
    height: 1.5px;
    background: linear-gradient(to right, rgba(42, 95, 69, 0.32), rgba(42, 95, 69, 0.08));
  }
}

@media (min-width: 780px) {
  .audience {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .step .phone {
    --phone-w: 196px;
  }
}

/* Hover-Effekte nur dort, wo es einen Zeiger gibt. Auf Touch-Geraeten bleibt
   ein :hover-Zustand sonst nach dem Antippen haengen. */
@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.55);
  }

  .cta__mail a:hover {
    border-bottom-color: #ffffff;
  }

  .benefit:hover {
    transform: translateY(-4px);
    border-color: rgba(42, 95, 69, 0.32);
    box-shadow: 0 16px 32px -20px rgba(28, 36, 32, 0.3);
  }

  .textlink:hover {
    border-bottom-color: var(--blue);
  }

  .footer__meta a:hover {
    color: var(--green);
    border-bottom-color: var(--green);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .benefit,
  .textlink,
  .btn {
    transition: none;
  }

  .benefit:hover {
    transform: none;
  }
}
