/* App Portfolio. Gestaltet nach Apples eigenen Produktseiten:
   Systemschrift, viel Weiss, grosse Zeilen, weiche Bewegung. */

:root {
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --tile: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --dark: #000000;
  --dark-tile: #1d1d1f;
  --dark-text: #f5f5f7;
  --dark-text-2: #a1a1a6;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --radius-tile: 28px;
  --max: 980px;
  --wide: 1200px;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Sprachen: Beide stehen im Dokument, eine ist sichtbar. */
html[data-lang="de"] [lang="en"],
html[data-lang="en"] [lang="de"] { display: none !important; }

/* ---------- Navigation, durchscheinend wie bei Apple ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 52px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.011em;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  letter-spacing: -0.01em;
}
.nav-links a { color: var(--text); opacity: 0.8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }

/* Ueber dem dunklen Abschnitt wird die Leiste dunkel, wie bei Apple. */
.nav { transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease); }
.nav.is-dark { background: rgba(22, 22, 23, 0.8); border-bottom-color: rgba(255, 255, 255, 0.08); }
.nav.is-dark .nav-brand, .nav.is-dark .nav-links a { color: #f5f5f7; }
.nav.is-dark .pill.soon { background: rgba(255, 255, 255, 0.12); color: #a1a1a6; }

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  padding: 4px 11px;
  white-space: nowrap;
}
.pill:hover { background: var(--blue-hover); text-decoration: none; }
.pill.soon { background: var(--bg-alt); color: var(--text-2); cursor: default; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  padding: 11px 22px;
}
.button:hover { background: var(--blue-hover); text-decoration: none; }
.button.soon { background: var(--bg-alt); color: var(--text-2); cursor: default; }
.more::after { content: " ›"; }

@media (max-width: 680px) {
  .nav-links .optional { display: none; }
  .nav-brand { font-size: 19px; }
}

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

.hero {
  text-align: center;
  /* Unten Luft: Das iPhone ragt ueber das iPad hinaus und wuerde sonst
     samt Schatten an der Kante abgeschnitten. */
  padding: clamp(56px, 9vw, 104px) 22px clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: 0.009em;
  color: var(--text);
}

.hero h1 {
  margin: 0 auto;
  max-width: 900px;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* Der farbige Teil steht in einer eigenen Zeile, sonst bliebe ein
   Wort davon allein am Zeilenende haengen. */
.hero h1 .shine { display: block; }

.shine {
  background: linear-gradient(90deg, #0a84ff 0%, #5e5ce6 45%, #bf5af2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 22px auto 0;
  max-width: 640px;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.33;
  color: var(--text-2);
  letter-spacing: 0.009em;
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 17px;
}

.hero-stage {
  position: relative;
  max-width: 1080px;
  margin: clamp(48px, 7vw, 80px) auto 0;
  display: flex;
  justify-content: center;
}
.hero-ipad { width: min(78%, 760px); }
.hero-iphone {
  position: absolute;
  right: max(4%, calc(50% - 520px));
  bottom: -4%;
  width: min(26%, 250px);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.18));
}

/* ---------- Abschnitte ---------- */

.section { padding: clamp(80px, 12vw, 160px) 22px; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--dark); color: var(--dark-text); }

.inner { max-width: var(--max); margin: 0 auto; }
.inner.wide { max-width: var(--wide); }
.center { text-align: center; }

.headline {
  margin: 0;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.009em;
}

.lead {
  margin: 20px 0 0;
  max-width: 680px;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.38;
  color: var(--text-2);
  letter-spacing: 0.009em;
}
.center .lead, .lead.center, .final .lead { margin-left: auto; margin-right: auto; }
.dark .lead { color: var(--dark-text-2); }
.lead strong { color: var(--text); font-weight: 600; }
.dark .lead strong { color: var(--dark-text); }

/* Drei Aussagen nebeneinander */
.points {
  margin-top: clamp(48px, 7vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 40px;
  text-align: left;
}
.point .symbol {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 18px;
}
.point h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: 0.009em; }
.point p { margin: 0; color: var(--text-2); font-size: 17px; }

/* ---------- Die Frage: festgehaltenes Telefon, Text rollt ---------- */

.story {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.story-phone {
  position: sticky;
  top: calc(50vh - min(34vw, 300px));
  display: grid;
  justify-items: center;
}
.story-phone .frame { position: relative; width: min(100%, 300px); }
.story-phone img {
  width: 100%;
  transition: opacity 0.6s var(--ease);
}
.story-phone img + img { position: absolute; inset: 0; }
.story-phone img:not(.is-current) { opacity: 0; }

.story-steps { display: grid; gap: 0; }
.story-step {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.25;
  transition: opacity 0.6s var(--ease);
}
.story-step.is-current { opacity: 1; }
.story-step .num { font-size: 14px; font-weight: 600; color: var(--dark-text-2); letter-spacing: 0.02em; }
.story-step h3 { margin: 8px 0 12px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 700; }
.story-step p { margin: 0; font-size: 19px; line-height: 1.42; color: var(--dark-text-2); max-width: 420px; }

.quote {
  margin: 0 auto;
  max-width: 820px;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.012em;
}

@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; }
  .story-phone { top: 64px; z-index: 1; }
  .story-phone .frame { width: min(52vw, 220px); }
  .story-step {
    min-height: 60vh;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, #000 22%, #000 78%, rgba(0,0,0,0) 100%);
    padding: 40px 0;
  }
}

/* ---------- Bento ---------- */

.bento {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.tile {
  position: relative;
  background: var(--tile);
  border-radius: var(--radius-tile);
  padding: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
.tile.span-2 { grid-column: span 2; }
.tile.span-3 { grid-column: span 3; }
.tile.span-4 { grid-column: span 4; }
.tile.tall { min-height: 440px; }
.tile.dark { background: var(--dark-tile); color: var(--dark-text); }

.tile .kicker { font-size: 14px; font-weight: 600; color: var(--text-2); letter-spacing: 0.01em; }
.tile.dark .kicker { color: var(--dark-text-2); }
.tile h3 { margin: 6px 0 0; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; font-weight: 700; letter-spacing: 0.004em; }
.tile p { margin: 10px 0 0; font-size: 17px; color: var(--text-2); max-width: 420px; }
.tile.dark p { color: var(--dark-text-2); }

.tile .big {
  margin-top: auto;
  font-size: clamp(56px, 7vw, 88px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tile .shot {
  margin-top: 28px;
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px rgba(0, 0, 0, 0.08);
  align-self: center;
}
.tile .shot.bleed { margin-bottom: -60px; width: 100%; max-width: 520px; }

.tile .icons { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.tile .icons img { width: 56px; height: 56px; border-radius: 13px; }

.tile .flags {
  margin-top: auto;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: 4px;
}

.tile .symbol-big {
  margin-top: auto;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #fff;
}

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.span-2, .tile.span-3 { grid-column: span 1; }
  .tile.span-4 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile.span-2, .tile.span-3, .tile.span-4 { grid-column: span 1; }
  .tile { min-height: 220px; padding: 28px; }
}

/* ---------- Datenschutz ---------- */

.privacy-list {
  margin: clamp(40px, 6vw, 64px) auto 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 28px;
}
.privacy-item { text-align: center; }
.privacy-item .symbol {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  color: var(--text);
}
.privacy-item h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; }
.privacy-item p { margin: 0; font-size: 15px; color: var(--text-2); }

/* ---------- Schritte ---------- */

.steps {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  counter-reset: schritt;
}
.step {
  background: var(--tile);
  border-radius: var(--radius-tile);
  padding: 32px;
  counter-increment: schritt;
}
.step::before {
  content: counter(schritt);
  display: block;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #0a84ff, #bf5af2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { margin: 0 0 8px; font-size: 21px; font-weight: 600; }
.step p { margin: 0; color: var(--text-2); }

/* ---------- Schluss ---------- */

.final { text-align: center; }
/* Der Schatten folgt der Form des Symbols, nicht seinem Kasten. */
.final .app-icon {
  width: 128px;
  height: 128px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.16));
}

/* ---------- Fuss ---------- */

.footer {
  background: var(--bg-alt);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: -0.01em;
  padding: 22px;
}
.footer .inner { border-top: 1px solid var(--line); padding-top: 18px; }
.footer p { margin: 0 0 10px; }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 0; flex-wrap: wrap; }
.footer-links a { color: var(--text-2); padding: 0 10px; border-right: 1px solid #d2d2d7; }
.footer-links a:first-child { padding-left: 0; }
.footer-links a:last-child { border-right: 0; }
.footer-links a:hover { color: var(--text); }

.lang-switch { display: inline-flex; gap: 2px; background: #e8e8ed; border-radius: 980px; padding: 2px; }
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 980px;
  cursor: pointer;
}
.lang-switch button.is-active { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }

/* ---------- Rechtsseiten ---------- */

.legal { max-width: 692px; margin: 0 auto; padding: clamp(56px, 8vw, 88px) 22px 96px; }
.legal h1 { font-size: clamp(36px, 5vw, 48px); line-height: 1.08; font-weight: 700; margin: 0 0 16px; }
.legal .summary { font-size: 21px; line-height: 1.38; color: var(--text-2); margin: 0 0 48px; }
.legal h2 { font-size: 24px; line-height: 1.17; font-weight: 600; margin: 48px 0 12px; }
.legal p, .legal li { font-size: 17px; line-height: 1.53; color: var(--text); }
.legal ul { padding-left: 22px; }
.legal .meta { margin-top: 56px; color: var(--text-3); font-size: 14px; }

/* ---------- Bewegung ---------- */

/* Erscheinen beim Hereinrollen, mit Apples Kurve. Ohne Skript oder mit
   reduzierter Bewegung steht alles von Anfang an da. */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Das Hero-Bild waechst beim Scrollen ein wenig heran. */
@supports (animation-timeline: view()) {
  .hero-stage {
    animation: heranwachsen linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 45%;
  }
  @keyframes heranwachsen {
    from { transform: scale(0.9) translateY(40px); opacity: 0.6; }
    to { transform: none; opacity: 1; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-stage { animation: none !important; }
  .story-phone img, .story-step { transition: none; }
}
