/* Pic of the Day - Website
   Farben und Abstaende folgen dem "Quiet Studio"-Theme der App (AppTheme):
   ink / inkSecondary / accent / surface / surfaceStroke. */

:root {
  --bg-1: #e0e5ee;
  --bg-2: #d8dee9;
  --bg-3: #ced5e2;
  --surface: #ffffff;
  --ink: #14161a;
  --ink-2: rgba(20, 22, 26, 0.72);
  --ink-3: rgba(20, 22, 26, 0.66);
  /* Blau aus den App-Store-Bildern gesampelt (Verlauf #4c5add -> #2b3488) */
  --accent: #3d48bc;
  --accent-dark: #2b3488;
  --stroke: rgba(20, 22, 26, 0.12);
  --pad-x: 56px;
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Raleway", "Helvetica Neue", Helvetica, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 62%, var(--bg-3) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.privacy a:focus-visible {
  outline-color: #fff;
}

.serif {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
  color: #fff;
  text-decoration: none;
}

/* ---------- Navigation ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 8px;
  gap: 24px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.mark span {
  white-space: nowrap;
}

.mark:hover {
  text-decoration: none;
  color: var(--ink);
}

/* Das echte App-Icon (aus potd/Assets.xcassets), abgerundet wie auf dem Homescreen */
.mark-dot {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.nav-links a {
  color: var(--ink-2);
  padding: 8px 0;
}

.lang {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  overflow: hidden;
}

.lang a {
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  line-height: 1.2;
}

.lang a:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  text-decoration: none;
}

.lang a[aria-current] {
  background: var(--accent);
  color: #fff;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, background 0.18s ease;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--stroke);
  padding: 10px 22px;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  /* Flex-Kind in .nav-links: darf nicht unter die Textbreite schrumpfen */
  flex-shrink: 0;
}

/* .nav-links a (0,1,1) schlaegt sonst .btn-ghost (0,1,0) und nimmt dem
   Button sein horizontales Padding - deshalb hier gezielt zuruecksetzen. */
.nav-links a.btn-ghost {
  padding: 10px 22px;
  color: var(--ink);
}

.nav-links a.btn-ghost:hover {
  color: #fff;
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

.cta-note {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* Offizielles Apple-Badge (SVG von tools.applemediaservices.com) als CTA */
.store-badge {
  display: inline-block;
  transition: transform 0.18s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
}

.store-badge img {
  display: block;
  height: 52px;
  width: auto;
}

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  column-gap: 64px;
  row-gap: 0;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 96px;
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}

.hero-extra {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}

/* Der App-Screenshot als eigenstaendige Karte: runde Ecken + blauer Schatten. */
.phone {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 345px;
  margin-left: auto;
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(43, 52, 136, 0.32), 0 6px 18px rgba(43, 52, 136, 0.18);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

h1 {
  margin: 20px 0 24px;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.04;
  text-wrap: balance;
}

.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 46ch;
  text-wrap: pretty;
  margin: 0;
}

.sample {
  margin-top: 28px;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--stroke);
}

.sample-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.sample-line {
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 24px;
  line-height: 1.35;
  color: var(--ink);
}

/* Quellen-Annotation unter jeder Beispielzeile: erklaert, woher der Text kommt */
.sample-src {
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.sample-src:last-child {
  margin-bottom: 0;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

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

.section-head {
  margin: 0 0 40px;
  font-size: 34px;
  line-height: 1.2;
  text-wrap: balance;
}

/* ---------- Drei Schritte mit Video-Demo ----------
   Links die Schritte zum Mitlesen, rechts laeuft die Bildschirmaufnahme
   des kompletten Ablaufs als stummer Loop einfach durch. */

.demo {
  display: grid;
  grid-template-columns: 1fr 345px;
  gap: 64px;
  align-items: center;
  padding-bottom: 104px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--stroke);
}

.step-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.step h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 46ch;
}

.demo-phone {
  width: 345px;
  border-radius: 44px;
  border: 1px solid var(--stroke);
  box-shadow: 0 24px 60px rgba(20, 22, 26, 0.14);
  background: var(--surface);
  padding: 12px;
  margin-left: auto;
}

.demo-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
  background-color: #14161a;
}

/* ---------- Funktionen ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-bottom: 48px;
}

/* App-Store-Karten als horizontal scrollbare Leiste, Snap wie im Store */
.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 40px;
  margin-bottom: 64px;
}

.gallery img {
  /* 280px: so ist die vierte Karte auf Desktop deutlich angeschnitten
     sichtbar - der Anschnitt ersetzt die fehlende Scrollbar-Affordance */
  width: 280px;
  height: auto;
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(43, 52, 136, 0.26), 0 4px 12px rgba(43, 52, 136, 0.14);
}

.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
}

.card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}

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

.privacy {
  background: var(--ink);
  border-radius: 24px;
  color: #f4f5f7;
  padding: 56px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.privacy h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
  color: #fff;
  text-wrap: balance;
}

.privacy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.privacy li {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(244, 245, 247, 0.78);
  padding-left: 20px;
  border-left: 1px solid rgba(244, 245, 247, 0.2);
}

.privacy b {
  color: #fff;
  font-weight: 600;
}

.privacy-link {
  margin: 28px 0 0;
  font-size: 14px;
}

.privacy-link a {
  color: rgba(244, 245, 247, 0.9);
  border-bottom: 1px solid rgba(244, 245, 247, 0.35);
  padding: 6px 0;
  display: inline-block;
}

.privacy-link a:hover {
  color: #fff;
  text-decoration: none;
}

/* ---------- Abschluss + Footer ---------- */

.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding-top: 104px;
}

.closing h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.15;
  text-wrap: balance;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 32px;
  padding-bottom: 48px;
  margin-top: 96px;
  border-top: 1px solid var(--stroke);
  font-size: 13px;
  color: var(--ink-2);
}

.foot-links {
  display: flex;
  gap: 24px;
}

.foot-links a {
  color: var(--ink-2);
  padding: 8px 0;
  display: inline-block;
}

.foot-note {
  font-size: 12px;
  color: var(--ink-3);
  width: 100%;
}

/* ---------- Responsive ---------- */

@media (min-width: 901px) and (max-width: 1080px) {
  .phone {
    margin: 0 auto;
  }
}

@media (max-width: 1000px) {
  .demo {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  :root {
    --pad-x: 24px;
  }

  .features,
  .privacy {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    row-gap: 36px;
    padding-top: 32px;
    padding-bottom: 72px;
  }

  .hero-copy,
  .phone {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-copy {
    order: 1;
  }

  /* CTA vor das Bild ziehen: hero-extra aufloesen, damit cta-row und sample
     eigene Grid-Kinder mit eigener Reihenfolge werden */
  .hero-extra {
    display: contents;
  }

  .cta-row {
    order: 2;
    margin-top: 4px;
  }

  .phone {
    order: 3;
    margin: 0 auto;
    width: 290px;
  }

  .shot {
    border-radius: 28px;
  }

  .sample {
    order: 4;
  }

  .demo-phone {
    margin: 0 auto;
    width: 290px;
  }

  .gallery img {
    width: 240px;
  }

  .lede {
    font-size: 17px;
  }

  .sample {
    margin-top: 0;
    display: flex;
  }

  .nav-text {
    display: none;
  }

  .privacy {
    padding: 36px;
    gap: 32px;
  }

  .section-head,
  .closing h2 {
    font-size: 28px;
  }
}
