/*
 * carryapp.de (WEB1) — die eine Stildatei aller öffentlichen Seiten: Startseite, Datenschutz, Impressum.
 * Hell wie die App im Hellmodus: Grund weiß, Karten in Systemgrau, Text und Knöpfe in `ink` (#111111, die
 * Voreinstellung der Akzentfarbe „Schwarz/Weiß“, Koffer/UI/Theme.swift), Zweitfarbe #6E6E73 (`inkSecondary`).
 * Wer einen anderen Akzent will, ändert nur --accent.
 */
:root {
  color-scheme: light;
  --ink: #111111;
  --ink-2: #6e6e73;
  --accent: #111111;
  --on-accent: #ffffff;
  --surface: #ffffff;
  --raised: #f2f2f7;
  --line: #e5e5ea;
  --radius: 22px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
}

/*
 * Der Verlauf des App-Grunds (WEB4b, wie `AppGround` im Hellmodus beim Akzent Schwarz/Weiß, Koffer/UI/AppBackground.swift):
 * Tinte #111111 oben mit 22 % Deckkraft, linear auslaufend bis 60 % der Fensterhöhe, darunter der weiße Seitengrund. Eine
 * feste Ebene hinter allem Inhalt — der Inhalt rollt darüber, der Verlauf bleibt oben stehen. Bewusst kein
 * `background-attachment: fixed` (iOS Safari rollt den Grund dann mit oder zeichnet ihn über die ganze Seite).
 */

a { color: var(--ink); text-underline-offset: 0.18em; }
a:hover { color: var(--ink-2); }

/* Kopf und Fuß */
.bar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.brand img { border-radius: 8px; border: 1px solid var(--line); }
.lang a { font-size: 0.9em; color: var(--ink-2); }

main { max-width: 40em; margin: 0 auto; padding: 8px 20px 48px; }
.home main { max-width: 1080px; }

footer { border-top: 1px solid var(--line); }
footer ul {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 0.9em;
}
footer a { color: var(--ink-2); }

/* Texte (Datenschutz, Impressum) */
h1 { font-size: 2em; line-height: 1.15; margin: 16px 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 1.25em; line-height: 1.25; margin: 1.8em 0 0.5em; }
p { margin: 0 0 0.9em; }
ul { margin: 0 0 0.9em; padding-left: 1.2em; }
li { margin: 0.25em 0; }
.meta { color: var(--ink-2); font-size: 0.9em; }
.doc a { word-break: break-word; }

/* Startseite: Kopf */
.hero { text-align: center; padding: 32px 0 56px; }
.hero .icon { border-radius: 26px; border: 1px solid var(--line); }
.hero h1 { font-size: 2.1em; margin: 20px auto 10px; max-width: 18em; }
.claim { font-size: 1.1em; color: var(--ink-2); max-width: 30em; margin: 0 auto 4px; }
.stores, .soon { margin-top: 28px; }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 0; }
.btn {
  display: inline-block;
  min-width: 190px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.btn:hover { color: var(--on-accent); opacity: 0.85; }
.btn.play { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.play:hover { color: var(--ink); }
.soon { color: var(--ink-2); }

/* Startseite: Abschnitte mit Bild, abwechselnd links und rechts (`flip` setzt SitePage, gezählt nur unter ihnen) */
.feature {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.feature.flip { flex-direction: row-reverse; }
.feature .text { flex: 1 1 0; }
.feature h2 { font-size: 1.5em; margin: 0 0 0.2em; letter-spacing: -0.01em; }
.subtitle { font-size: 1.05em; color: var(--ink-2); margin: 0 0 0.9em; }
.card .subtitle { font-size: 1em; margin-top: -0.3em; }
.feature ul { padding-left: 1.1em; }
.note { font-size: 0.85em; color: var(--ink-2); }
.note a { color: var(--ink-2); }

/* Ein oder zwei Bilder je Abschnitt (WEB2): zwei stehen nebeneinander, auf dem Handy untereinander. */
.phones { flex: 0 0 300px; display: flex; gap: 24px; }
.phones.two { flex-basis: 544px; }

/* Der Rahmen um ein Bild der App: abgerundet, Haarlinie, weicher Schatten — kein Geräte-Mockup. */
.phone { flex: 1 1 0; min-width: 0; margin: 0; }
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 40px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.06);
  background: var(--raised);
}

/* Startseite: Karten ohne Bild */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.card { background: var(--raised); border-radius: var(--radius); padding: 28px; }
.card h2 { margin-top: 0; }
.card p, .card li { font-size: 0.95em; }

/*
 * Karussell „Carry Plus“ (WEB4), ohne Skript. Der Scroll-Bereich (.slides) zeigt k Bilder der Breite --w mit
 * Abständen --g, auch an beiden Rändern: Breite = k·w + (k+1)·g, genau. Damit rastet jedes Bild links mit dem Abstand
 * --g ein (scroll-padding), und in den beiden Randstreifen ist Platz für die Pfeile.
 *
 * Die Pfeile: Jede Zelle (.cell) trägt ihr Bild und zwei Verweise auf eben dieses Bild, jeden in einer Schiene (.rail)
 * über die ganze Zelle. Beide liegen mittig hinter dem Bild (z-index darunter) und kleben am Rand des Scroll-Bereichs
 * (sticky), sobald ihr Bild dort hinausgerutscht ist. Die Schiene reicht --g über das Bild hinaus, nicht weiter; weiter
 * kann der Pfeil nicht kleben. (Ohne Außenabstände am Pfeil: Sticky hält den ganzen Außenrand in der Schiene.) Deshalb erscheint rechts
 * genau der Pfeil des ersten verdeckten Bildes rechts und links der des ersten verdeckten links — bei einem wie bei drei
 * Bildern, nach Pfeil, Punkt oder Wischen. Ein Verweis auf ein Bild scrollt es mit „nearest“ gerade so herein: ein
 * Schritt. --g muss dafür mindestens 2 × 22 px sein (halbe Pfeilbreite je Seite).
 */
.slideshow { display: block; }
.slideshow .text { max-width: 40em; }
.slider { container-type: inline-size; margin-top: 32px; }
.slides {
  --k: 1;
  --w: min(300px, calc((100cqw - (var(--k) + 1) * 52px) / var(--k)));
  --g: calc((100cqw - var(--k) * var(--w)) / (var(--k) + 1));
  --h: calc(var(--w) * 1696 / 780);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--g);
  scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }
@container (min-width: 640px) { .slides { --k: 2; } }
@container (min-width: 960px) { .slides { --k: 3; } }
@media (prefers-reduced-motion: no-preference) { .slides { scroll-behavior: smooth; } }
.track { display: flex; width: max-content; padding: 8px calc(var(--g) / 2); }
.cell { position: relative; display: flex; flex: none; align-items: flex-start; margin-inline: calc(var(--g) / -2); }
.slide {
  position: relative;
  z-index: 1;
  flex: none;
  width: var(--w);
  margin: 0 var(--g);
  scroll-snap-align: start;
  /* Der Verweis scrollt die Seite auch senkrecht („start“): so steht das Bild danach mittig im Fenster. */
  scroll-margin-top: max(16px, calc(50vh - var(--h) / 2));
}
.slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.06);
  background: var(--raised);
}
.slide figcaption { margin-top: 16px; font-size: 0.9em; color: var(--ink-2); text-align: center; }
.slide figcaption strong { display: block; color: var(--ink); font-size: 1.05em; }
.rail {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: var(--h);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.arrow {
  position: sticky;
  flex: none;
  width: 44px;
  height: 44px;
  pointer-events: auto;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.arrow::before {
  content: "";
  width: 11px;
  height: 11px;
  border: solid var(--on-accent);
  border-width: 2.5px 2.5px 0 0;
}
.arrow.next { right: calc(var(--g) / 2 - 22px); }
.arrow.next::before { transform: translateX(-2px) rotate(45deg); }
.arrow.prev { left: calc(var(--g) / 2 - 22px); }
.arrow.prev::before { transform: translateX(2px) rotate(-135deg); }
.arrow:hover { opacity: 0.85; }
.rail:focus-within { z-index: 2; }
.arrow:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 2px; }
.dots { display: flex; justify-content: center; gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; }
.dots li { margin: 0; }
.dots a { display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; }
.dots a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dots a:hover::before, .dots a:focus-visible::before { background: var(--ink-2); }

.closing { text-align: center; padding: 40px 0 16px; border-top: 1px solid var(--line); }

/* Mittlere Breite: Ein Abschnitt mit zwei Bildern stellt den Text über die Bilder, sonst bliebe er eine schmale Spalte. */
@media (max-width: 1000px) {
  .feature:has(.phones.two), .feature.flip:has(.phones.two) { flex-direction: column; align-items: stretch; gap: 32px; }
  .feature:has(.phones.two) .phones { flex: none; justify-content: center; }
  .feature:has(.phones.two) .phone { flex: 0 1 280px; }
}

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 16px 0 40px; }
  .hero h1 { font-size: 1.7em; }
  .claim { font-size: 1em; }
  .feature, .feature.flip { flex-direction: column; gap: 28px; padding: 40px 0; align-items: stretch; }
  .feature h2 { font-size: 1.35em; }
  .phones, .phones.two { flex: none; flex-direction: column; align-items: center; gap: 28px; }
  .phone { flex: none; width: min(78%, 300px); }
  .phone img { border-radius: 32px; }
  .btn { min-width: 0; width: 100%; max-width: 320px; }
  /* Auf dem Handy über den Seitenrand von main hinaus: so bleibt das Bild so breit wie in den übrigen Abschnitten. */
  .slider { margin-inline: -20px; }
  .slide img { border-radius: 32px; }
}
