/* Gemeinsame Bausteine der Landingpages index.html, haendler.html und
   logistiker.html. Tokens, Header, Footer und Buttons stehen in base.css;
   Seitenspezifisches in index.css. Vorgaben: Brandbook ao1.studio v2. */

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.mono {
  font-family: var(--font-mono);
}

/* Hero (hell) */

.lp-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--color-divider);
  isolation: isolate;
}

/* Feines Raster, nach unten ausgeblendet — rein dekorativ */
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(var(--color-divider) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--color-divider) 1px, transparent 1px) 0 0 / 56px 56px;
  opacity: 0.55;
  mask-image: radial-gradient(70% 60% at 70% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 70% 30%, #000, transparent 75%);
}

.lp-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 5px;
  border: 1px solid var(--color-divider);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--color-body);
  text-decoration: none;
}

.eyebrow-pill__tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-primary-tint);
  color: var(--color-primary-strong);
  font-size: 12px;
  font-weight: 600;
}

a.eyebrow-pill:hover {
  color: var(--color-ink);
  border-color: #cbd5e1;
}

.lp-title {
  margin: 28px 0 0;
  font-size: clamp(42px, 5.6vw, 68px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: var(--color-ink);
  text-wrap: balance;
}

.lp-lead {
  margin: 24px 0 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-body);
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.lp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-body);
}

.lp-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-facts .icon {
  color: var(--color-success);
}

/* Browser-Rahmen um echte Screenshots */

.browser-frame {
  margin: 0;
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.browser-frame__bar {
  display: flex;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-bg);
}

.browser-frame__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.browser-frame picture {
  display: block;
}

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

/* „Dashboard im Browser, schräg angeschnitten“ (Brandbook, Bildsprache) */
.browser-frame--tilt {
  width: 125%;
  transform: perspective(1800px) rotateY(-9deg) rotateX(3deg);
  transform-origin: left center;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05), 0 40px 80px -24px rgb(15 23 42 / 0.28);
}

/* UI-Karten als Illustration (Bestellliste, Lagerübersicht) */

.ui-card {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.ui-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-divider);
}

.ui-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
}

.ui-card__tabs {
  display: flex;
  gap: 6px;
}

.ui-card__tab {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--color-divider);
  color: var(--color-body);
}

.ui-card__tab--active {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}

.ui-card__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ui-card__row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid #eef2f6;
}

.ui-card__row:last-child {
  border-bottom: 0;
}

.ui-card__id {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-body);
}

.ui-card__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
}

.ui-card__meta {
  font-size: 12px;
  color: var(--color-muted);
}

.ui-card__foot {
  padding: 12px 18px;
  background: var(--color-bg);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-body);
}

/* Sektionen */

.section {
  padding: 112px 0;
}

.section--white {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.section + .section--white,
.section--white + .section {
  border-top: 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-title {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--color-ink);
  text-wrap: balance;
}

.section-lead {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.6;
  max-width: 560px;
}

/* Anbindungen */

.integrations {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px 72px;
  align-items: start;
}

.integrations__text .btn-pill {
  margin-top: 28px;
}

.integrations__groups {
  display: grid;
  gap: 26px;
}

.logo-group__label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid var(--color-divider);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-ink);
}

.logo-card__mono {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-control);
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  color: var(--color-ink);
  font-weight: 600;
  font-size: 14px;
}

/* Markenlogo (Simple Icons) einfarbig in Ink, SVG als Maske */
.logo-card__logo {
  width: 20px;
  height: 20px;
  background-color: var(--color-ink);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.logo-card--more {
  height: 100%;
  justify-content: center;
  text-decoration: none;
  color: var(--color-primary);
  border-style: dashed;
}

.logo-card--more:hover {
  color: var(--color-primary-strong);
  background: var(--color-primary-50);
}

/* Funktionen als Bento-Raster */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--color-divider);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.section--white .bento-card {
  background: var(--color-bg);
}

.bento-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card);
}

.bento-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--color-ink);
}

.bento-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.bento-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bento-card--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
}

.bento-card--lead h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.03em;
}

.bento-card--wide {
  grid-column: span 2;
}

.bento-card--wide .browser-frame {
  margin-top: auto;
}

.bento-card--dark,
.section--white .bento-card--dark {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #cbd5e1;
}

.bento-card--dark h3 {
  color: #fff;
}

.bento-card--dark .feature-eyebrow {
  color: #fff;
}

.bento-card--dark .feature-num {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.bento-card--dark .check-list .icon {
  color: var(--color-primary-400);
}

.feature-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
}

.feature-eyebrow .icon {
  color: var(--color-primary);
}

.feature-num {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--color-primary-tint);
  color: var(--color-primary-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.5;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-list .icon {
  margin-top: 3px;
  color: var(--color-primary);
}

/* Platzhalter für noch fehlende Screenshots — gleiche Maße wie ein
   Screenshot im Rahmen, damit sie sich 1:1 ersetzen lassen. */
.screenshot-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-card);
  border: 1px dashed #cbd5e1;
  background:
    repeating-linear-gradient(-45deg, transparent 0 10px, rgb(15 23 42 / 0.025) 10px 20px),
    #fff;
}

.screenshot-placeholder--on-dark {
  margin-top: auto;
  aspect-ratio: 16 / 9;
  border-color: rgb(255 255 255 / 0.2);
  background:
    repeating-linear-gradient(-45deg, transparent 0 10px, rgb(255 255 255 / 0.03) 10px 20px),
    rgb(255 255 255 / 0.04);
}

.screenshot-placeholder__label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-muted);
}

.screenshot-placeholder--on-dark .screenshot-placeholder__label {
  color: #94a3b8;
}

/* Karten mit Icon (Warum, Werte) */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.icon-card {
  padding: 26px;
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid var(--color-divider);
}

.section--white .icon-card {
  background: var(--color-bg);
}

.icon-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-control);
  background: var(--color-primary-tint);
  color: var(--color-primary-strong);
}

.icon-card h3 {
  margin: 18px 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-ink);
}

.icon-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* Ablauf in Schritten */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid var(--color-divider);
}

.step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-primary);
}

.step h3 {
  margin: 14px 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-ink);
}

.step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.step .status {
  margin-top: 16px;
}

/* CTA auf Ink */

.cta-block {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 72px 40px;
  border-radius: 24px;
  text-align: center;
  background: var(--color-ink);
  color: #cbd5e1;
}

.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 90% at 50% 0%, rgb(47 91 234 / 0.35), transparent 70%);
}

.cta-block__tagline {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary-400);
}

.cta-block h2 {
  max-width: 760px;
  margin: 14px auto 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: #fff;
  text-wrap: balance;
}

.cta-block__text {
  margin: 18px auto 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.6;
}

.cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.cta-section {
  padding: 0 0 24px;
}

.section + .cta-section,
.section--white + .cta-section {
  padding-top: 112px;
}

.site-footer {
  border-top: 1px solid var(--color-divider);
  margin-top: 96px;
  padding-top: 64px;
}

/* Zentrierter Hero (Preise) */

.lp-hero--center {
  text-align: center;
}

.lp-hero--center .lp-title,
.lp-hero--center .lp-lead {
  margin-left: auto;
  margin-right: auto;
}

.lp-hero--center .lp-title {
  max-width: 900px;
}

.lp-hero--center::before {
  mask-image: radial-gradient(60% 70% at 50% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 70% at 50% 20%, #000, transparent 75%);
}

/* Segment-Umschalter (Abrechnung, Paketwahl). Aktiv in Ink — Blau bleibt
   der Primäraktion vorbehalten. */

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--color-divider);
  border-radius: 10px;
  background: #fff;
}

.segmented__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--radius-control);
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-body);
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.segmented__btn:hover {
  color: var(--color-ink);
  background: #f1f5f9;
}

.segmented__btn--active,
.segmented__btn--active:hover {
  background: var(--color-ink);
  color: #fff;
}

/* Kennzahl-Kacheln im hellen Hero */

.stat-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.stat-tile--wide {
  grid-column: 1 / -1;
}

.stat-tile__value {
  font-size: 44px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--color-ink);
}

.stat-tile__label {
  font-size: 15px;
  color: var(--color-body);
}

.section--tight {
  padding-top: 56px;
}

.card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.steps--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .card-grid--4,
  .steps--3 {
    grid-template-columns: 1fr;
  }

  .stat-tile {
    padding: 18px;
  }

  .stat-tile__value {
    font-size: 34px;
  }
}

/* 404-Seite */

.lp-hero--404 {
  padding: 120px 0 128px;
}

/* Kein Abschluss-CTA: Footer direkt an den Hero setzen */
main:has(.lp-hero--404) + .site-footer {
  margin-top: 0;
  border-top: 0;
}

.lp-actions--center {
  justify-content: center;
}

.lp-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
}

.lp-links a {
  color: var(--color-body);
  text-decoration: none;
}

.lp-links a:hover {
  color: var(--color-ink);
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 1024px) {
  .lp-hero__inner,
  .integrations {
    grid-template-columns: 1fr;
  }

  .browser-frame--tilt {
    width: 100%;
    transform: none;
  }

  .bento,
  .card-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card--lead {
    grid-template-columns: 1fr;
  }

  .bento-card--wide,
  .bento-card--dark {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .lp-hero {
    padding: 48px 0 56px;
  }

  .lp-hero--404 {
    padding: 72px 0 80px;
  }

  .lp-title {
    margin-top: 22px;
  }

  .lp-lead {
    font-size: 17px;
  }

  .lp-actions {
    flex-direction: column;
  }

  .lp-facts {
    flex-direction: column;
  }

  .section {
    padding: 72px 0;
  }

  .section + .cta-section,
  .section--white + .cta-section {
    padding-top: 72px;
  }

  .bento,
  .card-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .bento-card,
  .bento-card--lead {
    padding: 22px;
  }

  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-card {
    font-size: 14px;
    padding: 10px;
    gap: 10px;
  }

  .ui-card__row {
    grid-template-columns: 60px 1fr auto;
    gap: 10px;
    padding: 12px 14px;
  }

  .cta-block {
    padding: 52px 22px;
    border-radius: 18px;
  }

  .cta-block__actions {
    flex-direction: column;
  }

  .site-footer {
    margin-top: 72px;
  }
}
