/* FFE-Connect – Landingpage. Statisch, ohne Build und ohne externe Ressourcen. */

:root {
  --brand: #2939da;          /* enpit-Blau (aus dem enpit-Logo) */
  --brand-dark: #1d29a8;
  --brand-ink: #10154a;
  --brand-tint: #eceefd;
  --ink: #161a2e;
  --ink-soft: #4a5068;
  --line: #dfe2ef;
  --bg: #ffffff;
  --bg-soft: #f5f6fb;
  --ok: #17784a;
  --ok-bg: #e3f4ea;
  --wip: #8a5300;
  --wip-bg: #fdf0db;
  --plan: #4a5068;
  --plan-bg: #eceef5;
  --radius: 14px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

:focus-visible { outline: 3px solid #ffb400; outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: #fff; padding: 8px 12px; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 22px; width: auto; }
.brand span { font-weight: 600; font-size: 15px; color: var(--ink-soft); border-left: 1px solid var(--line); padding-left: 12px; }
.site-nav { display: flex; gap: 22px; align-items: center; margin-left: auto; }
.site-nav a { text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--brand); }
.site-nav .btn { color: #fff; }
@media (max-width: 860px) { .site-nav a:not(.btn) { display: none; } }
/* Schmale Displays: Kopfzeile nur mit Marke und Sprachumschalter, der TestFlight-Button steht direkt darunter im Hero */
@media (max-width: 520px) { .site-nav { display: none; } }
.brand span, .site-nav .btn { white-space: nowrap; }

/* Sprachumschalter DE | EN */
.lang-switch { display: flex; align-items: center; flex: none; font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.lang-switch a { text-decoration: none; color: var(--ink-soft); padding: 10px 8px; line-height: 16px; }
.lang-switch a + a { position: relative; }
.lang-switch a + a::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: #c5c9dc; }
.lang-switch a:hover { color: var(--brand); }
.lang-switch a[aria-current] { color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn.small { min-height: 36px; padding: 6px 16px; font-size: 14px; }
.btn.light { background: #fff; color: var(--brand); }
.btn.light:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }

/* Hero */
.hero { background: var(--brand); color: #fff; padding: 64px 0 180px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.12), transparent); pointer-events: none; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hero .eyebrow { background: rgba(255,255,255,.14); padding: 5px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.07; letter-spacing: -.02em; margin: 18px 0 18px; max-width: 16ch; }
.hero .lead { font-size: clamp(18px, 2vw, 21px); max-width: 60ch; margin: 0 0 28px; color: rgba(255,255,255,.92); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 719px) { .hero { padding: 44px 0 110px; } }

/* Geräte-Darstellung */
.showcase { margin-top: -140px; position: relative; z-index: 1; }
@media (max-width: 719px) { .showcase { margin-top: -80px; } }
.devices { position: relative; max-width: 1060px; margin: 0 auto; padding-right: 21%; }
.caption { text-align: center; color: var(--ink-soft); font-size: 14px; margin: 44px auto 0; max-width: 70ch; }
@media (max-width: 719px) { .caption { margin-top: 18px; } }
.caption strong { color: var(--ink); }

.ipad { background: #1b1d24; border-radius: 3.2% / 4.6%; padding: 1.9%; box-shadow: 0 30px 60px -20px rgba(16,21,74,.45), 0 0 0 1px rgba(0,0,0,.2); }
.ipad .shot { display: block; width: 100%; height: auto; border-radius: 1.6% / 2.1%; }
.iphone { position: absolute; right: 0; bottom: -4%; width: 23.5%; background: #1b1d24; border-radius: 13% / 6.2%; padding: 2.2%; box-shadow: 0 24px 50px -16px rgba(16,21,74,.5), 0 0 0 1px rgba(0,0,0,.2); }
.screen { container-type: inline-size; background: #f2f2f7; overflow: hidden; position: relative; }
.ipad .screen { aspect-ratio: 1180 / 820; border-radius: 1.6% / 2.3%; }
.iphone .screen { aspect-ratio: 393 / 852; border-radius: 11% / 5.2%; }

/* iPadOS-Oberfläche, alle Maße in em relativ zur Bildschirmbreite */
.ui { font-family: -apple-system, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif; color: #000; font-size: 1.1cqw; line-height: 1.25; height: 100%; display: flex; flex-direction: column; }
.iphone .ui { font-size: 3.6cqw; }
.ui .status { display: flex; justify-content: space-between; align-items: center; padding: .7em 1.8em 0; font-weight: 600; font-size: .95em; }
.ui .status i { display: inline-block; width: 1.9em; height: .95em; border: .12em solid #000; border-radius: .3em; position: relative; }
.ui .status i::after { content: ""; position: absolute; inset: .12em; right: .5em; background: #000; border-radius: .12em; }
.ui .tabbar { display: flex; justify-content: center; align-items: center; gap: .8em; margin: .9em 0 0; position: relative; }
.ui .sidebar-btn { position: absolute; left: 1.8em; top: 50%; transform: translateY(-50%); width: 2.4em; height: 2.4em; border-radius: 50%; background: #fff; box-shadow: 0 .1em .4em rgba(0,0,0,.08); display: grid; place-items: center; color: #2939da; }
.ui .tabs { display: flex; gap: .2em; background: rgba(255,255,255,.85); border-radius: 2em; padding: .3em; box-shadow: 0 .15em .8em rgba(0,0,0,.08); }
.ui .tabs span { padding: .45em 1.2em; border-radius: 2em; font-weight: 600; color: #3c3c43; font-size: 1em; display: flex; align-items: center; gap: .4em; }
.ui .tabs span.on { background: #e5e8fb; color: #2939da; }
.ui .navtitle { font-size: 2.6em; font-weight: 700; letter-spacing: -.01em; padding: .45em .7em .25em; }
.ui .content { padding: 0 1.8em; display: flex; flex-direction: column; gap: 1.2em; }
.ui .unassigned { background: rgba(116,116,128,.1); border-radius: .9em; padding: .9em 1em; }
.ui .h { font-weight: 600; font-size: 1.25em; }
.ui .cap { font-size: .9em; color: #6c6c70; margin: .15em 0 .55em; }
.ui .chips { display: flex; gap: .5em; flex-wrap: wrap; min-height: 2.6em; align-items: center; }
.ui .chip { display: inline-flex; align-items: center; gap: .45em; padding: .3em .7em .3em .3em; border-radius: 2em; background: rgba(41,57,218,.14); font-size: 1.05em; white-space: nowrap; max-width: 100%; }
.ui .chip b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.ui .thumb { width: 2em; height: 2em; border-radius: .35em; flex: none; background: var(--c, #c9b8a6); position: relative; overflow: hidden; }
.ui .thumb::after { content: ""; position: absolute; left: 12%; right: 10%; bottom: 22%; height: 34%; background: rgba(255,255,255,.75); border-radius: 60% 40% 12% 12% / 90% 90% 20% 20%; }
.ui .grid { display: grid; grid-template-columns: 7em repeat(4, 1fr); gap: .65em; }
.ui .axis { font-size: .9em; color: #6c6c70; display: flex; flex-direction: column; gap: .2em; justify-content: flex-end; }
.ui .colhead, .ui .rowhead { font-weight: 600; font-size: 1.25em; }
.ui .colhead { align-self: end; }
.ui .cell { background: #fff; border-radius: .9em; padding: .6em; min-height: 9.6em; display: flex; flex-direction: column; gap: .45em; }
.ui .cell .top { display: flex; justify-content: space-between; align-items: center; color: #6c6c70; font-size: .95em; font-variant-numeric: tabular-nums; }
.ui .cell .plus { width: 1.45em; height: 1.45em; border: .13em solid #2939da; border-radius: 50%; position: relative; }
.ui .cell .plus::before, .ui .cell .plus::after { content: ""; position: absolute; background: #2939da; left: 50%; top: 50%; transform: translate(-50%,-50%); width: .65em; height: .13em; border-radius: .1em; }
.ui .cell .plus::after { width: .13em; height: .65em; }
.ui .cell.drop { box-shadow: 0 0 0 .18em #2939da inset; background: #f3f4fe; }
.ui .chip.drag { box-shadow: 0 .5em 1.2em rgba(0,0,0,.22); transform: rotate(-3deg) translate(.6em, -.2em); background: #dfe3fc; }

/* iPhone: Formular „Neue Idee“ */
.ui .sheetbar { display: flex; justify-content: space-between; align-items: center; padding: 1.4em 1.1em .8em; font-size: 1.05em; }
.ui .sheetbar a { color: #2939da; text-decoration: none; }
.ui .sheetbar strong { font-weight: 600; }
.ui .sheetbar .save { font-weight: 600; }
.ui .form { padding: 0 1em; display: flex; flex-direction: column; gap: .35em; }
.ui .sec-h { font-size: .8em; text-transform: uppercase; color: #6c6c70; padding: .9em .9em .35em; letter-spacing: .02em; }
.ui .sec-f { font-size: .8em; color: #6c6c70; padding: .35em .9em 0; }
.ui .group { background: #fff; border-radius: .8em; overflow: hidden; }
.ui .row { display: flex; justify-content: space-between; align-items: center; padding: .62em .9em; border-top: .06em solid #e5e5ea; font-size: 1em; }
.ui .row:first-child { border-top: 0; }
.ui .row .muted { color: #8e8e93; }
.ui .row .val { color: #6c6c70; }
.ui .photo { padding: .6em; }
.ui .photo div { border-radius: .5em; background: linear-gradient(160deg, #efe7dd, #d9cbbb); aspect-ratio: 16 / 9; display: grid; place-items: center; }
.ui .photo svg { width: 70%; }
.ui .tgl { width: 2.55em; height: 1.55em; border-radius: 1em; background: #e9e9eb; position: relative; flex: none; }
.ui .tgl::after { content: ""; position: absolute; top: .12em; left: .12em; width: 1.31em; height: 1.31em; border-radius: 50%; background: #fff; box-shadow: 0 .08em .25em rgba(0,0,0,.2); }
.ui .tgl.on { background: #34c759; }
.ui .tgl.on::after { left: auto; right: .12em; }

@media (max-width: 719px) {
  .devices { padding-right: 0; }
  .iphone { position: relative; right: auto; bottom: auto; width: 56%; margin: 24px auto 0; }
}

/* Abschnitte */
section { scroll-margin-top: 72px; }
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
@media (max-width: 719px) { .section { padding: 60px 0; } }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head .eyebrow { color: var(--brand); }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.015em; margin: 10px 0 14px; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.section-head p { color: var(--ink-soft); font-size: 18px; margin: 0; }

.intro-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin-bottom: 56px; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.soft .card { border-color: transparent; box-shadow: 0 1px 2px rgba(16,21,74,.06); }
.card p { margin: 0; color: var(--ink-soft); }
.card .kicker { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; display: block; }

.features-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.features-head h3 { font-size: 24px; margin: 0; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
[data-status="done"] .badge, .badge[data-status="done"] { color: var(--ok); background: var(--ok-bg); }
[data-status="wip"] .badge, .badge[data-status="wip"] { color: var(--wip); background: var(--wip-bg); }
[data-status="plan"] .badge, .badge[data-status="plan"] { color: var(--plan); background: var(--plan-bg); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.feature[data-status="done"] { border-top: 3px solid var(--ok); }
.feature[data-status="wip"] { border-top: 3px solid #e6a23c; }
.feature[data-status="plan"] { border-top: 3px solid #b8bdd0; }
.feature .badge { align-self: flex-start; }
.feature h4 { margin: 4px 0 0; font-size: 18px; line-height: 1.3; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.feature .ref { font-size: 13px; color: var(--ink-soft); margin-top: auto; padding-top: 4px; }

.note { margin-top: 20px; font-size: 15px; color: var(--ink-soft); background: var(--bg-soft); border-radius: 10px; padding: 14px 18px; }

/* Grundlage */
.source { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: src; }
@media (max-width: 860px) { .source { grid-template-columns: 1fr; } }
.source .card { position: relative; padding-top: 52px; }
.source .card::before { counter-increment: src; content: counter(src); position: absolute; top: 18px; left: 24px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; }

/* CTA */
.cta { background: var(--brand-ink); color: #fff; }
.cta .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .cta .grid { grid-template-columns: 1fr; gap: 28px; } }
.cta .eyebrow { color: #aab3ff; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); margin: 0 0 12px; }
.cta ul { margin: 12px 0 0; padding-left: 20px; color: rgba(255,255,255,.85); }
.cta ul li { margin: 4px 0; }
.form-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 28px; }
.form-card label { display: block; font-weight: 600; margin-bottom: 8px; }
.form-card .field { display: flex; gap: 10px; flex-wrap: wrap; }
.form-card input[type="email"] { flex: 1 1 220px; min-height: 48px; padding: 10px 14px; font-size: 17px; font-family: inherit; border: 1.5px solid #c5c9dc; border-radius: 10px; color: var(--ink); background: #fff; }
.form-card input[type="email"]:focus { border-color: var(--brand); outline: 3px solid rgba(41,57,218,.2); outline-offset: 0; }
.form-card .btn { min-height: 48px; flex: 0 0 auto; }
.form-card .hint { font-size: 14px; color: var(--ink-soft); margin: 14px 0 0; }
.form-card .hint a { font-weight: 600; }
.form-card .status { font-size: 14px; color: var(--ok); margin: 10px 0 0; min-height: 1.4em; }

/* Vorgehen */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: .06em; margin-bottom: 6px; }
.steps li p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.steps li .here { display: block; margin-top: 10px; font-size: 13.5px; color: var(--brand-ink); background: var(--brand-tint); border-radius: 8px; padding: 8px 10px; }
.steps li.wide { grid-column: 1 / -1; background: var(--brand); color: #fff; border-color: var(--brand); }
.steps li.wide::before { color: #c9cfff; }
.steps li.wide p { color: rgba(255,255,255,.9); }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer img { height: 20px; width: auto; }
.site-footer p { margin: 0; max-width: 70ch; }
.site-footer nav { display: flex; gap: 18px; }

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


/* Angebot und Vorgehensmodell (Etappen E0–E6 mit Gates) */
.offer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 56px; }
@media (max-width: 1000px) { .offer { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .offer { grid-template-columns: 1fr; } }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .stages { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .stages { grid-template-columns: 1fr; } }
.stages li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.stages .code { font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: .06em; }
.stages h4 { margin: 0; font-size: 18px; line-height: 1.3; }
.stages p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.stages .gate { align-self: flex-start; margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; color: var(--brand-ink); display: inline-flex; align-items: center; gap: 8px; }
.stages .gate::before { content: ""; width: 9px; height: 9px; background: var(--brand); transform: rotate(45deg); }
.stages li.key { grid-column: span 2; background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 620px) { .stages li.key { grid-column: auto; } }
.stages li.key .code { color: #c9cfff; }
.stages li.key p { color: rgba(255,255,255,.9); }
.stages li.key .gate { color: #fff; }
.stages li.key .gate::before { background: #fff; }
.workshop { margin-top: 40px; background: var(--brand-tint); border-radius: 18px; padding: 28px; display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 24px; align-items: center; }
@media (max-width: 900px) { .workshop { grid-template-columns: 1fr; } }
.workshop .eyebrow { color: var(--brand); }
.workshop h3 { font-size: 24px; margin: 6px 0; }
.workshop p { margin: 0; color: var(--ink-soft); }
.workshop ul { margin: 0; padding-left: 20px; font-weight: 600; color: var(--brand-ink); }
