/* SwingCam – Webseite. Farben wie in der App (Theme.swift). Keine externen Schriften oder Skripte. */
:root {
  --bg: #F3F6F1; --card: #FFFFFF; --ink: #1C2921; --subtle: #5F6C64; --line: #DDE5DC;
  --fairway: #29A861; --fairway-dark: #127854; --sun: #FFBD33;
  --radius: 22px; --max: 1040px; --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img, video { max-width: 100%; height: auto; display: block; }   /* height: auto – the width/height attributes only reserve the aspect ratio */
a { color: var(--fairway-dark); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Kopfzeile */
header { position: sticky; top: 0; z-index: 20; background: rgba(243, 246, 241, .82);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); }
header .wrap { display: flex; align-items: center; gap: 18px; height: 60px; max-width: 1200px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
header nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14px; }
header nav a { color: var(--subtle); text-decoration: none; }
header nav a:hover { color: var(--ink); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-weight: 600; color: var(--ink) !important; }
@media (max-width: 720px) { header nav a:not(.lang) { display: none; } }

/* Hero */
.hero { padding: 48px 0 40px; min-height: calc(100vh - 60px); display: flex; align-items: center; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 56px; width: 100%; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fairway-dark); }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.03; letter-spacing: -.025em; margin: 12px 0 20px; }
h1 em { font-style: normal; color: var(--fairway); display: block; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--subtle); max-width: 33em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: inline-flex; align-items: center; background: var(--ink); color: #fff; text-decoration: none;
  border-radius: 14px; padding: 10px 20px; font-weight: 600; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: .75; line-height: 1.1; }
.store span { line-height: 1.15; font-size: 18px; }
.store.soon { background: #3A473F; cursor: default; }
.ghost { color: var(--fairway-dark); font-weight: 600; text-decoration: none; padding: 11px 6px; }
.hero .phone { justify-self: center; width: min(340px, 78vw); filter: drop-shadow(0 30px 50px rgba(15, 60, 38, .22)); }
@media (max-width: 860px) { .hero { min-height: 0; } .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero .phone { width: min(300px, 76vw); } }

/* Funktionen: jede füllt den Bildschirm fast aus */
section { padding: 72px 0; }
.feature { min-height: 92vh; display: flex; align-items: center; }
.feature > .wrap, .feature .panel > .wrap { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.feature.flip .text { order: 2; }
h2 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; letter-spacing: -.02em; margin: 10px 0 16px; }
.feature .text p { color: var(--subtle); font-size: 18px; }
.feature ul { list-style: none; padding: 0; margin: 20px 0 0; }
.feature li { position: relative; padding: 7px 0 7px 32px; }
.feature li::before { content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--fairway) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.3l2.4 2.4 5-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

/* Telefone: gleich breite Spalten – ein Telefon ist so groß wie eines aus einem Paar */
.phones { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start;
  width: 100%; max-width: min(268px, calc((100% - 24px) / 2)); margin: 0 auto; }
.phones.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
.phones img { width: 100%; filter: drop-shadow(0 24px 40px rgba(15, 60, 38, .2)); }
.phones.two img + img { margin-top: 56px; }

/* Dunkler Abschnitt mit Video */
.feature.dark { padding: 24px 0; }
.dark .panel { width: 100%; max-width: 1100px; margin: 0 auto; padding: 64px 0; color: #fff; border-radius: 36px;
  background: linear-gradient(165deg, #1F9D5D, #0F7350); }
.dark .eyebrow { color: #C8F2D9; } .dark .text p { color: rgba(255, 255, 255, .86); }
.dark li::before { background-color: #FFD25A; }
.dark .video { justify-self: center; width: min(300px, 70vw); border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); background: #EEF1EC; }

@media (max-width: 860px) {
  section { padding: 56px 0; }
  .feature { min-height: 0; }
  .feature > .wrap, .feature .panel > .wrap { grid-template-columns: 1fr; gap: 36px; } .feature.flip .text { order: 0; }
  .phones.two { max-width: 480px; }
  .dark .panel { border-radius: 0; padding: 48px 0; }
}

/* Einblenden beim Scrollen (nur mit JavaScript, siehe app.js) */
.js .reveal { opacity: 0; transform: translateY(48px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .phones .reveal, .js .video.reveal { transform: translateY(80px) scale(.94); }
.js .phones .reveal + .reveal { transition-delay: .15s; }
.js .reveal.in { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(2) { transition-delay: .1s; } .js .cards .reveal:nth-child(3) { transition-delay: .2s; }

/* Seitliche Navigation: weiße Box, damit sie auch über Bildern lesbar bleibt */
.side { position: fixed; left: 20px; top: 50%; z-index: 15; display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: 18px; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 8px 30px rgba(15, 60, 38, .14), 0 0 0 1px rgba(15, 60, 38, .05);
  transform: translate(-12px, -50%); opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s var(--ease); }
.side.show { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.side a { display: flex; align-items: center; gap: 0; padding: 6px 2px; text-decoration: none; color: var(--subtle); font-size: 13px; font-weight: 500; }
.side .dot { width: 8px; height: 8px; border-radius: 50%; background: #B9C5BC; transition: all .3s var(--ease); flex: none; }
/* Beschriftung: beim Darüberfahren; ab 1360 px zusätzlich beim aktiven Abschnitt, ab 1440 px immer (dann ist neben dem Inhalt Platz) */
.side .label { max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap; transition: max-width .35s var(--ease), opacity .3s, margin .35s var(--ease); }
.side:hover .label { max-width: 160px; opacity: 1; margin-left: 10px; }
@media (min-width: 1360px) { .side a.active .label { max-width: 160px; opacity: 1; margin-left: 10px; } }   /* room beside the content */
.side a.active { color: var(--ink); font-weight: 650; }
.side a.active .dot { height: 22px; border-radius: 4px; background: var(--fairway); }
@media (min-width: 1440px) { .side .label { max-width: 160px; opacity: .8; margin-left: 10px; } }
@media (max-width: 1100px) { .side { display: none; } }

/* Einrasten: jeder Scroll holt den nächsten Abschnitt mittig ins Bild (nur, wenn die Abschnitte auf den Bildschirm passen) */
@media (min-width: 861px) and (min-height: 660px) {
  html { scroll-snap-type: y mandatory; scroll-padding-top: 60px; }
  .hero { scroll-snap-align: start; }
  .feature, .more { scroll-snap-align: center; }
  footer { scroll-snap-align: end; }
  .feature { min-height: calc(100vh - 60px); }
}

/* Karten */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 10px 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--subtle); }
.card .ic { width: 42px; height: 42px; border-radius: 50%; background: rgba(41, 168, 97, .12); display: grid; place-items: center; }
.card .ic svg { width: 22px; height: 22px; stroke: var(--fairway-dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Abschluss und Fußzeile */
.final { text-align: center; padding-bottom: 96px; }
.final .lead { margin: 0 auto 24px; }
.final .cta { justify-content: center; }
.final img.icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 18px; box-shadow: 0 14px 30px rgba(15, 60, 38, .2); }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--subtle); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
footer a { color: var(--subtle); }
footer .sp { margin-left: auto; }

/* Rechtstexte */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 24px 60px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal h2 { font-size: 22px; margin-top: 34px; }
.legal p, .legal li { color: #34423A; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
