/* summino.app */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #000000;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-on-dark: #f5f5f7;
  --ink-2-on-dark: #a1a1a6;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0062c4;
  --link: #0066cc;
  --app-blue: #0a84ff;
  --bezel: #1d1d1f;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1080px;
  --gutter: clamp(20px, 5vw, 44px);
  --section-y: clamp(88px, 12vw, 160px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

::selection { background: rgba(0, 113, 227, .18); }
.dark ::selection { background: rgba(10, 132, 255, .4); }

a { color: var(--link); text-decoration: none; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.nav .wrap { display: flex; align-items: center; height: 52px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 13px; }
.nav-links a { color: var(--ink); opacity: .8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav .btn { margin-left: 4px; }
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 980px;
  background: var(--accent); color: #fff;
  font: 500 17px/1 var(--font); letter-spacing: -0.01em;
  transition: background-color .2s;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn-small { min-height: 30px; padding: 0 14px; font-size: 13px; }
.store {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border-radius: 980px;
  background: var(--accent); color: #fff;
  font: 500 18px/1 var(--font); letter-spacing: -0.015em;
  transition: transform .2s var(--ease-out), background-color .2s;
}
.store:hover { text-decoration: none; background: var(--accent-hover); }
.store:active { transform: scale(.98); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.9rem, 8vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  text-wrap: pretty;
}
.lead strong { color: var(--ink); font-weight: 600; }
.body { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.body strong { color: var(--ink); font-weight: 600; }
.body + .body { margin-top: 1em; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Sections ---------- */
section { padding-block: var(--section-y); }
.alt { background: var(--bg-alt); }
.dark { background: var(--bg-dark); color: var(--ink-on-dark); }
.dark .lead, .dark .body { color: var(--ink-2-on-dark); }

/* ---------- Device frames ---------- */
.iphone {
  position: relative;
  display: flow-root;
  width: 100%;
  border-radius: 16.5% / 7.7%;
  background: var(--bezel);
  box-shadow:
    inset 0 0 0 1.5px #4a4a4e,
    inset 0 0 0 3px #0b0b0c,
    0 2px 4px rgba(0, 0, 0, .08),
    0 24px 60px -12px rgba(0, 0, 0, .28);
}
.iphone .screen {
  position: relative; overflow: hidden;
  margin: 3.4%;
  border-radius: 13.6% / 6.3%;
  aspect-ratio: 1320 / 2868;
  background: #f2f2f7;
}
.iphone .screen img { width: 100%; height: 100%; object-fit: cover; }
.iphone .screen::after { /* Dynamic Island */
  content: ""; position: absolute; top: 1.55%; left: 50%;
  width: 29%; height: 3.6%; transform: translateX(-50%);
  border-radius: 999px; background: #000;
}

.ipad {
  position: relative;
  display: flow-root;
  width: 100%;
  border-radius: 4.6% / 6.1%;
  background: var(--bezel);
  box-shadow:
    inset 0 0 0 1.5px #4a4a4e,
    inset 0 0 0 3px #0b0b0c,
    0 2px 4px rgba(0, 0, 0, .06),
    0 30px 80px -20px rgba(0, 0, 0, .3);
}
.ipad .screen {
  overflow: hidden;
  margin: 2.1%;
  border-radius: 2.6% / 3.5%;
  aspect-ratio: 2752 / 2064;
  background: #f2f2f7;
}
.ipad .screen img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(48px, 6vw, 88px); overflow: hidden; text-align: center; }
.hero .app-icon { width: clamp(76px, 9vw, 104px); height: auto; margin: 0 auto 28px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .18)); }
.hero .lead { margin: 22px auto 0; max-width: 30em; }
.hero-cta { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-meta { font-size: 14px; color: var(--ink-2); }

.hero-stage {
  position: relative;
  margin: clamp(56px, 8vw, 88px) auto 0;
  max-width: 1000px;
  padding-bottom: clamp(36px, 5vw, 64px);
}
.hero-stage .ipad { width: 88%; }
.hero-stage .iphone {
  position: absolute; right: 0; bottom: 0;
  width: 25%;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-stage .iphone {
      animation: phone-rise linear both;
      animation-timeline: view();
      animation-range: entry 40% cover 55%;
    }
    .hero-stage .ipad {
      animation: pad-settle linear both;
      animation-timeline: view();
      animation-range: entry 40% cover 55%;
    }
  }
}
@keyframes phone-rise { from { transform: translateY(18%); } to { transform: translateY(0); } }
@keyframes pad-settle { from { transform: scale(.96) translateY(3%); } to { transform: none; } }
@media (max-width: 640px) {
  .hero-stage .ipad { width: 92%; }
  .hero-stage .iphone { width: 30%; }
}

/* ---------- Steps ---------- */
.steps-head { max-width: 22em; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 72px);
  counter-reset: step;
}
.steps li { border-top: 1px solid var(--line); padding-top: 22px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font: 700 clamp(3rem, 5vw, 4.25rem)/1 var(--font-display);
  letter-spacing: -0.04em;
  color: var(--app-blue);
  margin-bottom: 18px;
}
.steps h3 { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 17px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Feature rows ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}
.feature .copy .body { margin-top: 22px; }
.feature .visual { display: flex; justify-content: center; }
.feature .visual .iphone { max-width: 340px; }
.feature.flip .copy { order: 2; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 56px; }
  .feature.flip .copy { order: 0; }
  .feature .visual .iphone { max-width: 290px; }
}

.tip {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
  max-width: 30em;
}
.tip svg { flex: none; width: 22px; height: 22px; color: var(--app-blue); margin-top: 2px; }
.tip p { color: var(--ink-2); font-size: 17px; }
.tip strong { color: var(--ink); font-weight: 600; }

/* Pfand detail */
.detail {
  width: 100%; max-width: 520px;
  border-radius: 28px; overflow: hidden;
  background: #f2f2f7;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 24px 60px -18px rgba(0, 0, 0, .22);
}
.detail figcaption { padding: 14px 20px 16px; font-size: 13px; color: var(--ink-2); background: #fff; border-top: 1px solid rgba(0, 0, 0, .06); }
.sum-line {
  display: grid; grid-template-columns: auto auto; justify-content: start; gap: 4px 24px;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 17px; color: var(--ink-2);
}
.sum-line dd { text-align: right; color: var(--ink); }
.sum-line .total { font-weight: 600; color: var(--ink); }
.sum-line .total + dd { font-weight: 600; }

/* Teilen */
.share {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  width: 100%;
}
.share .qr {
  width: clamp(120px, 13vw, 160px); aspect-ratio: 1;
  padding: 12px; border-radius: 22px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 18px 40px -16px rgba(0, 0, 0, .25);
}
.share .qr img { width: 100%; height: 100%; }
.share .arrow { width: 28px; flex: none; color: var(--ink-2); }
.share .phones { display: flex; gap: clamp(10px, 1.6vw, 16px); }
.share .phones .iphone { width: clamp(72px, 6.4vw, 90px); box-shadow: inset 0 0 0 1px #4a4a4e, 0 14px 30px -12px rgba(0, 0, 0, .35); }
.share .phones .iphone .screen { margin: 4.5%; }
.share-note { margin-top: 18px; font-size: 13px; color: var(--ink-2); text-align: center; }

/* ---------- Privacy ---------- */
.privacy { text-align: center; }
.privacy .lead { margin: 20px auto 0; max-width: 28em; }
.privacy ul {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 5vw, 64px);
  margin-top: clamp(56px, 7vw, 88px); text-align: left;
}
.privacy li svg { width: 40px; height: 40px; color: var(--ink-on-dark); }
.privacy h3 { margin-top: 18px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.privacy li p { margin-top: 8px; color: var(--ink-2-on-dark); }
@media (max-width: 760px) { .privacy ul { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- iPad ---------- */
.pad-section { text-align: center; overflow: hidden; }
.pad-section .lead { margin: 20px auto 0; max-width: 28em; }
.pad-section .ipad { max-width: 960px; margin: clamp(48px, 7vw, 80px) auto 0; }
.more {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 6vw, 80px);
  max-width: 860px; margin: clamp(64px, 8vw, 104px) auto 0; text-align: left;
}
.more li { padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.more strong { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .more { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq .headline { max-width: 12em; }
.faq-list { margin-top: clamp(40px, 5vw, 64px); max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: clamp(19px, 2vw, 22px); font-weight: 600; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  color: var(--ink-2);
  transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--link); }
.faq details p { padding: 0 48px 26px 0; color: var(--ink-2); max-width: 40em; }

/* ---------- Closing ---------- */
.closing { text-align: center; }
.closing img { width: 96px; margin: 0 auto 28px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .18)); }
.closing .lead { margin: 18px auto 0; max-width: 26em; }
.closing .store { margin-top: 32px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); padding: 28px 0 36px; font-size: 13px; color: var(--ink-2); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.footer a { color: var(--ink); opacity: .8; }
.footer .note { flex-basis: 100%; padding-top: 14px; border-top: 1px solid var(--line); line-height: 1.45; }
@media (max-width: 640px) { .footer nav { margin-left: 0; } }

/* ---------- Text pages (Support, Datenschutz, Impressum, /r) ---------- */
.page { padding-block: clamp(56px, 9vw, 110px) var(--section-y); }
.page .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.page .headline { margin-bottom: 28px; }
.prose h2 { margin-top: 48px; font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; }
.prose h3 { margin-top: 28px; font-size: 19px; font-weight: 600; }
.prose p, .prose ul { margin-top: 14px; color: #424245; max-width: 40em; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 6px; }
.prose a { text-decoration: underline; }
.placeholder { background: #fff4ce; color: #5c4400; padding: 0 .25em; border-radius: 4px; }

.received { text-align: center; }
.received .app-icon { width: 112px; margin: 0 auto 32px; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .2)); }
.received .lead { margin: 20px auto 0; max-width: 26em; }
.received .store { margin-top: 36px; }
.received .steps-mini { margin: 48px auto 0; max-width: 30em; text-align: left; border-top: 1px solid var(--line); }
.received .steps-mini li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.received .steps-mini b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 14px; }
.received .other { margin-top: 40px; font-size: 15px; color: var(--ink-2); }

.feature > * { min-width: 0; }
@media (max-width: 520px) {
  .share { gap: 14px; }
  .share .qr { width: 118px; padding: 9px; border-radius: 18px; }
  .share .arrow { width: 20px; }
  .share .phones .iphone { width: 76px; }
  .share .phones .iphone:nth-child(3) { display: none; }
}

/* Vor dem Store-Start: Hinweis statt Link, bewusst nicht klickbar gestaltet */
.store-soon,
.store-soon:hover { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); cursor: default; margin: 0; }
.store-soon:active { transform: none; }
.closing .store-soon { margin-top: 32px; }
.received .store-soon { margin-top: 36px; }
