/* =========================================================================
   CloseM – Website-Stylesheet
   Gleiche Farben, Texte, Bilder und HTML-Struktur wie zuvor.
   Alle Effekte sind reines CSS: kein zusätzliches Skript nötig.
   Scroll-gesteuerte Animationen werden nur dort aktiv, wo der Browser sie
   kann; sonst bleibt alles ruhig und vollständig sichtbar.
   ========================================================================= */

/* ---------- 1. Design-Werte ---------- */
:root {
  --paper: #f7f8fa;
  --ink: #152d46;
  --muted: #607184;
  --line: #d6e0ea;
  --mint: #dcebf8;
  --yellow: #ffda68;
  --blue: #2878cc;
  --soft-blue: #eaf2fa;
  --blue-light: #88b6e4;
  --blue-pale: #a9d0f9;
  --blue-deep: #173d66;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  --shadow-s: 0 8px 22px #173f6620;
  --shadow-m: 0 20px 44px #20486c1f;
  --shadow-l: 0 34px 70px #1c426336;

  interpolate-size: allow-keywords;
}

@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --glow  { syntax: "<percentage>"; initial-value: 20%; inherits: false; }

/* ---------- 2. Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-light) var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 1px 1px, #2878cc14 1px, transparent 0),
    radial-gradient(900px 500px at 85% -5%, #dcebf8cc, transparent 70%),
    radial-gradient(700px 500px at -5% 35%, #e8f0ebaa, transparent 70%);
  background-size: 28px 28px, auto, auto;
  background-attachment: scroll, scroll, scroll;
}

a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }

a:focus-visible, button:focus-visible, summary:focus-visible, .feature:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 10px;
}
::selection { background: var(--blue); color: #fff; }

.wrap { width: min(1160px, calc(100% - 44px)); margin: auto; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 15px; z-index: 5000; border-radius: 12px; box-shadow: var(--shadow-m); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

section[id], article[id] { scroll-margin-top: 96px; }

/* Weiche Übergänge zwischen den Seiten (wo der Browser es kann) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .22s ease both vt-out; }
::view-transition-new(root) { animation: .5s var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; filter: blur(4px); } }
@keyframes vt-in  { from { opacity: 0; translate: 0 14px; filter: blur(4px); } }

/* ---------- 3. Keyframes ---------- */
@keyframes rise      { from { opacity: 0; translate: 0 30px; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop-in   { from { opacity: 0; translate: 0 -18px; } to { opacity: 1; translate: 0 0; } }
@keyframes pop       { 0% { opacity: 0; scale: .5; } 65% { scale: 1.1; } 100% { opacity: 1; scale: 1; } }
@keyframes bob       { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes float-s   { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes drift-a   { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(34px, -26px) scale(1.1); } 66% { transform: translate(-18px, 24px) scale(.94); } }
@keyframes drift-b   { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-36px, -30px) scale(1.12); } }
@keyframes spin      { to { transform: rotate(360deg); } }
@keyframes spin-r    { to { transform: rotate(-360deg); } }
@keyframes spin-angle { to { --angle: 360deg; } }
@keyframes shine     { to { background-position: 200% center; } }
@keyframes sweep     { from { transform: translateX(-130%) skewX(-18deg); } to { transform: translateX(260%) skewX(-18deg); } }
@keyframes ripple    { 0% { transform: scale(.8); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 #2878cc66, 0 6px 24px #173d6630; }
  70%  { box-shadow: 0 0 0 18px #2878cc00, 0 6px 24px #173d6630; }
  100% { box-shadow: 0 0 0 0 #2878cc00, 0 6px 24px #173d6630; }
}
@keyframes halo      { 0%, 100% { opacity: .55; scale: 1; } 50% { opacity: .95; scale: 1.06; } }
@keyframes line-grow { from { width: 0; } to { width: 28px; } }
@keyframes underline-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes check-pop { from { transform: scale(0) rotate(-50deg); } to { transform: scale(1) rotate(0); } }
@keyframes glint     { 0%, 70%, 100% { background-position: -150% 0; } 85% { background-position: 250% 0; } }
@keyframes typing {
  0%   { clip-path: inset(0 100% 0 0); background-position-x: 0%;   animation-timing-function: steps(26, end); }
  45%  { clip-path: inset(0 0 0 0);    background-position-x: 100%; }
  80%  { clip-path: inset(0 0 0 0);    background-position-x: 100%; animation-timing-function: steps(12, end); }
  100% { clip-path: inset(0 100% 0 0); background-position-x: 0%; }
}
@keyframes bar-slide { 0% { background-position: 0 0; } 100% { background-position: 200% 0; } }

/* Scroll-gesteuert (nur in @supports aktiv) */
@keyframes progress   { to { transform: scaleX(1); } }
@keyframes nav-shrink { to { padding-block: 9px; } }
@keyframes nav-glass  { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal-up {
  from { opacity: 0; translate: 0 52px; scale: .96; filter: blur(8px); }
  to   { opacity: 1; translate: 0 0;    scale: 1;   filter: blur(0); }
}
@keyframes reveal-left {
  from { opacity: 0; translate: -36px 0; filter: blur(6px); }
  to   { opacity: 1; translate: 0 0;     filter: blur(0); }
}
@keyframes reveal-right {
  from { opacity: 0; translate: 40px 0; scale: .94; filter: blur(6px); }
  to   { opacity: 1; translate: 0 0;    scale: 1;   filter: blur(0); }
}
@keyframes reveal-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes par-a { to { translate: 0 -140px; } }
@keyframes par-b { to { translate: 0 110px; } }
@keyframes par-c { to { translate: 0 -50px; } }

/* ---------- 4. Fortschrittsbalken am oberen Rand ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 4000; pointer-events: none;
  background: linear-gradient(90deg, var(--blue), var(--blue-light), var(--blue));
  background-size: 200% 100%;
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- 5. Hinweisleiste und Navigation ---------- */
.notice {
  position: relative; overflow: hidden;
  background: var(--soft-blue); color: #315d87;
  font-size: 10px; letter-spacing: .15em; padding: 10px 20px; text-align: center;
  animation: drop-in .8s var(--ease-out) both;
}
.notice::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 22%;
  background: linear-gradient(100deg, transparent, #ffffffaa, transparent);
  animation: sweep 6s ease-in-out 1.5s infinite;
}

.nav {
  position: sticky; top: 0; z-index: 1500;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding: 24px 0;
  animation: drop-in .9s var(--ease-out) .1s both;
}
.nav::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background: #f7f8fae6;
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px #20486c0f;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-size: 24px; letter-spacing: -1px;
}
.brand img { border-radius: 12px; box-shadow: 0 4px 14px #152d4630; transition: transform .6s var(--ease-spring), box-shadow .4s; }
.brand:hover img { transform: rotate(-10deg) scale(1.12); box-shadow: 0 8px 22px #152d4650; }

.nav nav, footer nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.nav nav a:not(.button), footer nav a {
  position: relative; text-decoration: none; padding: 5px 0; transition: color .25s;
}
.nav nav a:not(.button)::after, footer nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .45s var(--ease-out);
}
.nav nav a:not(.button):hover, footer nav a:hover { color: var(--blue); }
.nav nav a:not(.button):hover::after, footer nav a:hover::after,
.nav nav a:not(.button):focus-visible::after, footer nav a:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ---------- 6. Buttons ---------- */
.button {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-block; border: 1px solid var(--ink);
  padding: 13px 21px; border-radius: 100px;
  text-decoration: none; font-weight: 650; font-size: 14px;
  background: var(--ink); color: #fff;
  transition: transform .4s var(--ease-spring), box-shadow .4s var(--ease-out), background .3s, color .3s, border-color .3s;
}
.button::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 45%; z-index: -1;
  background: linear-gradient(100deg, transparent, #ffffff55, transparent);
  transform: translateX(-130%) skewX(-18deg);
}
.button:hover { transform: translateY(-3px) scale(1.03); box-shadow: var(--shadow-s); }
.button:hover::before { animation: sweep .9s var(--ease-out); }
.button:active { transform: translateY(0) scale(.96); transition-duration: .1s; }
.button.light { background: transparent; color: var(--ink); }
.button.light:hover { background: var(--soft-blue); border-color: var(--blue); color: var(--blue); }
.button.light::before { background: linear-gradient(100deg, transparent, #2878cc2a, transparent); }

.nav-store {
  background: linear-gradient(135deg, var(--blue), #3d8fe0);
  border-color: var(--blue); color: #fff !important; font-size: 12px; padding: 10px 17px;
  box-shadow: 0 6px 18px #2878cc40;
}
.nav-store span { display: inline-block; transition: transform .4s var(--ease-spring); }
.nav-store:hover span { transform: translate(3px, -3px); }
.compact { font-size: 12px; padding: 9px 15px; }

/* ---------- 7. Typografie ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; border-radius: 2px; flex: none;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  animation: line-grow .9s var(--ease-out) .3s both;
}

h1 {
  font: 650 clamp(48px, 6.5vw, 82px)/1.06 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.065em; margin: 22px 0 28px;
}
h1 em {
  font-style: normal; color: var(--blue);
  background: linear-gradient(100deg, var(--blue) 25%, var(--blue-light) 45%, #5a9ee0 55%, var(--blue) 75%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}
h2 {
  font: 650 clamp(32px, 4vw, 46px)/1.12 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.05em; max-width: 760px; margin: 12px 0 22px;
}
h3 { font-weight: 650; }
.lead { font-size: 20px; max-width: 540px; color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }

/* ---------- 8. Startseite: Hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.12fr .88fr; gap: 65px; align-items: center;
  padding: 65px 0 95px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px; left: -150px; top: -20px; filter: blur(70px);
  background: radial-gradient(circle, #cfe3f6, #dcebf800 70%);
  animation: drift-a 16s ease-in-out infinite;
}
.hero::after {
  width: 360px; height: 360px; right: -40px; bottom: -30px; filter: blur(70px);
  background: radial-gradient(circle, #e1ece6, #e8f0eb00 70%);
  animation: drift-b 19s ease-in-out infinite;
}

.hero > div:first-child > * { animation: rise 1s var(--ease-out) both; }
.hero > div:first-child > :nth-child(1) { animation-delay: .25s; }
.hero > div:first-child > :nth-child(2) { animation-delay: .38s; animation-name: rise-h1; }
.hero > div:first-child > :nth-child(3) { animation-delay: .55s; }
.hero > div:first-child > :nth-child(4) { animation-delay: .7s; }
.hero > div:first-child > :nth-child(5) { animation-delay: .85s; }
@keyframes rise-h1 {
  from { opacity: 0; translate: 0 40px; filter: blur(12px); letter-spacing: .01em; }
  to   { opacity: 1; translate: 0 0;    filter: blur(0);     letter-spacing: -.065em; }
}
.hero .lead { font-size: 19px; line-height: 1.7; max-width: 470px; }
.actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 28px 0; }

/* ---------- 9. Screenshot-Galerie ---------- */
.stage {
  position: relative; border-radius: 40px; padding: 30px 24px 22px;
  background:
    radial-gradient(ellipse at 75% 20%, #f5fbff, transparent 65%),
    linear-gradient(145deg, #dcebf8, #e8f0eb);
  border: 1px solid #ffffffaa;
  box-shadow: 0 30px 70px #1c42631f, inset 0 1px 0 #ffffffcc;
  animation: rise 1.2s var(--ease-out) .35s both, bob 8s ease-in-out 1.6s infinite;
}
.stage::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 60%, var(--blue-light) 80%, #ffffff 87%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-angle 8s linear infinite;
}
.stage::after {
  content: ""; position: absolute; inset: -34px; z-index: -1; border-radius: 60px; pointer-events: none;
  background: radial-gradient(closest-side, #2878cc40, transparent 75%);
  filter: blur(26px);
  animation: halo 6s ease-in-out infinite;
}

.screenshot-gallery { min-width: 0; padding: 24px 20px 20px; }
.gallery-heading {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: #526e89; letter-spacing: .04em; margin: 0 4px 20px;
}
.gallery-count { font-variant-numeric: tabular-nums; padding: 3px 10px; border-radius: 99px; background: #ffffff90; }

.gallery-viewport {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; touch-action: pan-x pan-y; border-radius: 26px;
}
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery-viewport:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }

.gallery-slide {
  flex: 0 0 100%; min-width: 0; margin: 0; padding: 0 6px 20px;
  scroll-snap-align: center; scroll-snap-stop: always;
  display: flex; align-items: flex-start; justify-content: center;
}
.app-screenshot {
  display: block; width: min(100%, 260px); height: auto; margin: 0 auto;
  aspect-ratio: 850 / 1850; object-fit: contain;
  border: 1px solid var(--line); border-radius: 24px; background: #fff;
  box-shadow: 0 12px 24px #1c426322;
  transition: scale .8s var(--ease-out), opacity .7s ease, box-shadow .7s ease, filter .7s ease;
}
.gallery-slide[aria-hidden="true"] .app-screenshot { scale: .88; opacity: .45; filter: blur(1.5px) saturate(.8); }
.gallery-slide[aria-hidden="false"] .app-screenshot {
  box-shadow: 0 30px 56px #1c426338;
  animation: float-s 6s ease-in-out infinite;
}

.gallery-controls { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 4px; }
.gallery-controls[hidden] { display: none; }
.gallery-tabs {
  display: flex; gap: 4px; padding: 4px;
  background: #ffffff80; border: 1px solid #d4e1ed; border-radius: 100px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.gallery-tab, .gallery-arrow { font: inherit; cursor: pointer; transition: background .3s, color .3s, box-shadow .3s, transform .4s var(--ease-spring); }
.gallery-tab { border: 0; background: transparent; color: #536b82; padding: 8px 11px; border-radius: 100px; font-size: 11px; white-space: nowrap; }
.gallery-tab[aria-pressed="true"] { background: #fff; color: #246ab3; box-shadow: 0 3px 12px #244e7422; transform: scale(1.05); }
.gallery-tab:hover { background: #fff; }
.gallery-arrow {
  border: 1px solid #c8d9e9; background: #ffffff80; border-radius: 50%;
  width: 32px; height: 32px; padding: 0; color: #315d87; font-size: 17px;
  display: grid; place-items: center; flex-shrink: 0;
}
.gallery-arrow:hover { background: #fff; transform: scale(1.15); box-shadow: var(--shadow-s); }
.gallery-arrow:active { transform: scale(.9); }
.gallery-tab:focus-visible, .gallery-arrow:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.caption { text-align: center; font-size: 12px; margin: 28px 0 0; color: #526e89; }
.screenshot-gallery .gallery-caption { line-height: 1.6; margin: 15px 0 0; min-height: 20px; }

/* ---------- 10. Abschnitte ---------- */
.section { position: relative; padding: 84px 0; border-top: 0; }
.section::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, var(--blue-light), var(--line) 30%, var(--line) 70%, transparent);
  transform-origin: 0 50%;
}

/* ---------- 11. Funktionen ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 38px; }

.feature {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 28px 26px 30px; background: #ffffffd9;
  border: 1px solid var(--line); border-radius: 22px;
  transition: transform .6s var(--ease-out), border-color .4s, box-shadow .6s var(--ease-out), background .4s;
}
/* Wandernder Lichtkegel beim Überfahren */
.feature::before {
  content: ""; position: absolute; inset: -60% -30%; z-index: -1; opacity: 0;
  background: conic-gradient(from var(--angle), transparent 0 55%, #88b6e455 75%, transparent 90%);
  transition: opacity .5s ease;
}
.feature::after {
  content: "↗"; position: absolute; right: 24px; top: 22px; font-size: 24px; color: var(--blue);
  opacity: 0; transform: translate(-10px, 10px) scale(.7);
  transition: opacity .4s ease, transform .6s var(--ease-spring);
}
.feature:hover, .feature:focus-within {
  transform: translateY(-10px) scale(1.015);
  border-color: var(--blue-light); background: #f4f9ff;
  box-shadow: var(--shadow-m), 0 0 0 4px #2878cc10;
}
.feature:hover::before, .feature:focus-within::before { opacity: 1; animation: spin-angle 5s linear infinite; }
.feature:hover::after, .feature:focus-within::after { opacity: 1; transform: none; }

.number {
  position: relative; display: inline-block; padding-bottom: 10px; margin-bottom: 20px;
  font: 500 30px system-ui, -apple-system, sans-serif; letter-spacing: -.02em; color: #78a7d4;
  transition: color .4s, transform .6s var(--ease-spring);
}
.number::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(.22); transform-origin: 0 50%;
  transition: transform .7s var(--ease-out);
}
.feature:hover .number, .feature:focus-within .number { color: var(--blue); transform: translateX(6px) scale(1.08); }
.feature:hover .number::after, .feature:focus-within .number::after { transform: scaleX(1); }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--muted); margin-bottom: 0; }

.privacy-note {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 24px;
  background: var(--soft-blue); border: 1px solid #d5e5f4; border-radius: 22px;
  padding: 32px; margin-top: 32px;
}
.privacy-note::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 30%; pointer-events: none;
  background: linear-gradient(100deg, transparent, #ffffff99, transparent);
  animation: sweep 7s ease-in-out 2s infinite;
}
.privacy-note p { margin: 5px 0 0; color: var(--muted); font-size: 15px; }
.note-symbol {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px;
  font-size: 30px; color: var(--blue); background: #fff; border-radius: 18px;
  box-shadow: 0 8px 22px #2878cc26; animation: float 4s ease-in-out infinite;
}

/* ---------- 12. Preise ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 36px; align-items: stretch; }

.plan {
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 35px;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s;
}
.plan:hover { transform: translateY(-8px); box-shadow: var(--shadow-m); border-color: var(--blue-light); }

.plan.premium {
  background: linear-gradient(140deg, var(--blue-deep), var(--ink));
  border-color: var(--blue-deep); color: #fff; overflow: visible;
  box-shadow: 0 24px 60px #152d4640;
}
.plan.premium::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 50%, var(--blue-light) 74%, #fff 83%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-angle 5s linear infinite;
}
.plan.premium::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: linear-gradient(115deg, transparent 35%, #ffffff14 48%, #ffffff26 50%, #ffffff14 52%, transparent 65%);
  background-size: 250% 100%;
  animation: glint 7s ease-in-out 1.5s infinite;
}
.plan > * { position: relative; z-index: 1; }

.pill {
  position: relative; overflow: hidden;
  display: inline-block; align-self: flex-start;
  background: var(--soft-blue); color: #315d87; border-radius: 99px;
  padding: 7px 12px; margin-bottom: 10px; font-size: 10px; font-weight: 700; letter-spacing: .1em;
}
.premium .pill { background: #ffffff1c; color: #dceaff; }
.premium .pill::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 40%;
  background: linear-gradient(100deg, transparent, #ffffff55, transparent);
  animation: sweep 4.5s ease-in-out 1s infinite;
}

.plan h3 { font-size: 23px; }
.price {
  font-size: 46px; font-weight: 600; letter-spacing: -.05em; line-height: 1.2; white-space: nowrap; margin: 15px 0;
  transition: transform .6s var(--ease-spring); transform-origin: 0 60%;
}
.plan:hover .price { transform: scale(1.06); }
.price span { font: 400 15px system-ui; letter-spacing: 0; }
.plan-description { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.premium .plan-description, .premium .plan-footnote { color: #c4d6e8; }

.plan .benefits { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.benefits li {
  display: flex; gap: 12px; align-items: center; padding: 11px 0; margin: 0;
  border-bottom: 1px solid #d6e0ea80; font-size: 14px; line-height: 1.4;
  transition: transform .45s var(--ease-out), color .3s;
}
.benefits li:hover { transform: translateX(8px); }
.premium .benefits li { border-color: #ffffff20; }
.unavailable { color: #7c8996; }

.check, .cross {
  flex: 0 0 23px; height: 23px; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; border-radius: 50%; background: var(--soft-blue); color: var(--blue);
  transition: transform .5s var(--ease-spring), background .3s, color .3s;
}
.benefits li:hover .check { transform: scale(1.25) rotate(-8deg); background: var(--blue); color: #fff; }
.premium .check { background: #ffffff18; color: var(--blue-pale); }
.premium .benefits li:hover .check { background: var(--blue-pale); color: var(--blue-deep); }
.cross { background: #f0f2f5; color: #8693a1; }
.plan .check { animation: check-pop .6s var(--ease-spring) both; }
.benefits li:nth-child(1) .check { animation-delay: .1s; }
.benefits li:nth-child(2) .check { animation-delay: .2s; }
.benefits li:nth-child(3) .check { animation-delay: .3s; }
.benefits li:nth-child(4) .check { animation-delay: .4s; }
.benefits li:nth-child(5) .check { animation-delay: .5s; }

.plan-footnote { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0; min-height: 39px; }

/* ---------- 13. Datenschutz-Abschnitt ---------- */
.privacy-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.privacy-section .lead { font-size: 18px; }

.privacy-visual {
  position: relative; overflow: hidden; text-align: center; padding: 25px 10px; border-radius: 28px;
  background: linear-gradient(145deg, #eff6fc, #e8f0f6);
  border: 1px solid #dbe8f3;
  box-shadow: 0 20px 50px #20486c14;
}
.privacy-visual::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, #88b6e440, transparent 70%);
  animation: drift-b 12s ease-in-out infinite;
}
.privacy-visual > strong { position: relative; font-size: 16px; }
.privacy-visual > p { position: relative; font-size: 12px; color: var(--muted); margin: 7px 0 0; }

.privacy-orbit { position: relative; width: 280px; height: 230px; margin: 0 auto 20px; }
.privacy-orbit::before {
  content: ""; position: absolute; inset: 20px 45px; border: 1px dashed #b9cfe3; border-radius: 50%;
  animation: spin 40s linear infinite;
}
.privacy-orbit::after {
  content: ""; position: absolute; inset: -4px 14px; border: 1px solid #c9dcee80; border-radius: 50%;
  animation: spin-r 60s linear infinite;
}
.device-icon {
  position: absolute; top: 44px; left: 104px; width: 72px; height: 125px;
  border: 3px solid #305a83; border-radius: 16px; background: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px #28527a1c;
  animation: float 5s ease-in-out infinite;
}
.device-icon::before { content: ""; position: absolute; top: 7px; height: 3px; width: 23px; background: #305a83; border-radius: 10px; }
.device-icon::after {
  content: ""; position: absolute; inset: -3px; border: 2px solid var(--blue); border-radius: 16px; pointer-events: none;
  animation: ripple 3.2s ease-out infinite;
}
.device-icon span {
  position: relative; border-radius: 50%; background: #e7f2fc; color: var(--blue);
  width: 38px; height: 38px; display: grid; place-items: center; font-size: 22px;
  animation: pop .8s var(--ease-spring) .6s both;
}

.data-chip {
  position: absolute; z-index: 1; padding: 8px 14px;
  background: #fff; border: 1px solid #d7e5f1; border-radius: 100px;
  box-shadow: 0 6px 18px #2c527514; font-size: 11px; color: #3b6187;
  animation: float 5s ease-in-out infinite;
  transition: background .3s, color .3s, scale .4s var(--ease-spring);
}
.data-chip:hover { scale: 1.12; background: var(--blue); color: #fff; }
.chip-one   { top: 24px; left: 14px; }
.chip-two   { top: 77px; right: 0; animation-delay: -1.7s; }
.chip-three { bottom: 20px; left: 35px; animation-delay: -3.2s; }

/* ---------- 14. FAQ und aufklappbare Bereiche ---------- */
.faq { max-width: 850px; }
.faq details { padding: 20px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.faq p { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.faq p a { color: var(--blue); text-underline-offset: 3px; }

summary {
  list-style: none; cursor: pointer; font-weight: 650;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: color .3s, padding .45s var(--ease-out);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; flex: 0 0 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; background: var(--soft-blue); color: var(--blue); font-size: 18px; font-weight: 500;
  transition: transform .6s var(--ease-spring), background .3s, color .3s, box-shadow .3s;
}
summary:hover { color: var(--blue); }
.faq summary:hover { padding-left: 8px; }
summary:hover::after { box-shadow: 0 0 0 5px #2878cc18; }
details[open] > summary { color: var(--blue); }
details[open] > summary::after { transform: rotate(135deg); background: var(--blue); color: #fff; }
details[open] > p { animation: rise .6s var(--ease-out) both; }

details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete;
}
details[open]::details-content { block-size: auto; }

/* ---------- 15. Hilfe ---------- */
.back-link {
  display: inline-flex; gap: 10px; align-items: center; text-decoration: none;
  font-size: 13px; color: var(--blue); padding: 10px 0; margin-bottom: 30px;
  animation: fade-in .8s ease .2s both;
}
.back-link span { display: inline-block; transition: transform .45s var(--ease-spring); }
.back-link:hover span { transform: translateX(-7px); }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.help { padding: 35px 0 85px; }
.help-heading { max-width: 720px; margin: 0 0 55px; }
.help-heading h1 { font-size: clamp(42px, 6vw, 70px); }
.help-heading > * { animation: rise .9s var(--ease-out) both; }
.help-heading > :nth-child(1) { animation-delay: .15s; }
.help-heading > :nth-child(2) { animation-delay: .25s; animation-name: rise-h1; }
.help-heading > :nth-child(3) { animation-delay: .4s; }
.help-heading > :nth-child(4) { animation-delay: .55s; }

.help-jumps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.help-jumps a {
  padding: 9px 17px; border: 1px solid var(--line); border-radius: 100px; background: #fff;
  text-decoration: none; font-size: 13px;
  transition: background .3s, border-color .3s, color .3s, transform .45s var(--ease-spring), box-shadow .4s;
}
.help-jumps a:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-4px) scale(1.06); box-shadow: var(--shadow-s); }

.help-start {
  position: relative; overflow: hidden;
  background: var(--soft-blue); border: 1px solid #d5e5f4; border-radius: 26px; padding: 38px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 35px; align-items: center; margin-bottom: 25px;
}
.help-start::before {
  content: ""; position: absolute; width: 300px; height: 300px; right: -80px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, #88b6e440, transparent 70%);
  animation: drift-a 14s ease-in-out infinite;
}
.help-start > * { position: relative; }
.help-start h2 { font-size: 32px; }
.help-start p:last-child { font-size: 15px; color: var(--muted); margin-bottom: 0; }

.search-demo {
  background: #fff; border: 1px solid #d2e1ef; border-radius: 16px;
  display: flex; gap: 15px; align-items: center; padding: 20px;
  box-shadow: 0 15px 35px #1e4d7312; color: #61788c; font-size: 13px;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s;
}
.search-demo:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 24px 50px #1e4d7324; border-color: var(--blue-light); }
.search-demo > span:first-child { font-size: 25px; color: var(--blue); animation: float 3.5s ease-in-out infinite; }
/* Tipp-Effekt: Text wird eingeblendet, Cursor wandert mit */
.search-demo > span:nth-child(2) {
  padding-right: 5px;
  background: linear-gradient(var(--blue), var(--blue)) no-repeat 0% 50% / 2px 1.15em;
  animation: typing 7s linear infinite;
}
.search-enter { margin-left: auto; background: #eef4fa; border-radius: 8px; padding: 4px 10px; color: var(--blue); transition: background .3s, color .3s; }
.search-demo:hover .search-enter { background: var(--blue); color: #fff; }

.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.help-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 32px; background: #ffffffe6; border: 1px solid var(--line); border-radius: 25px;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s;
}
.help-card::before {
  content: ""; position: absolute; inset: -60% -30%; z-index: -1; opacity: 0;
  background: conic-gradient(from var(--angle), transparent 0 55%, #88b6e440 75%, transparent 90%);
  transition: opacity .5s;
}
.help-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-m); border-color: var(--blue-light); }
.help-card:hover::before { opacity: 1; animation: spin-angle 6s linear infinite; }
.help-symbol {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 22px;
  background: var(--soft-blue); color: var(--blue); border-radius: 12px; font-size: 23px;
  transition: transform .7s var(--ease-spring), background .3s, color .3s, box-shadow .4s;
}
.help-card:hover .help-symbol { transform: rotate(-12deg) scale(1.18); background: var(--blue); color: #fff; box-shadow: 0 8px 20px #2878cc44; }
.help-card h2 { font-size: 28px; margin-bottom: 12px; }
.help-card p { font-size: 15px; color: var(--muted); }
.help-card details { border-top: 1px solid var(--line); padding: 16px 0; }
.help-card summary { font-size: 14px; }
.help-card details p { font-size: 14px; margin: 12px 0 0; }
.contact-card { background: var(--soft-blue); border-color: #d5e5f4; }
.support-list { color: var(--muted); font-size: 14px; padding-left: 20px; margin: 24px 0; }
.support-list li { transition: transform .4s var(--ease-out), color .3s; }
.support-list li:hover { transform: translateX(6px); color: var(--ink); }
.contact-card .small { font-size: 12px; margin: 20px 0 0; }

/* ---------- 16. Rechtstexte ---------- */
.legal { max-width: 850px; padding: 45px 0 80px; overflow-wrap: anywhere; }
.legal > * { animation: rise .9s var(--ease-out) both; }
.legal > :nth-child(1) { animation-delay: .05s; }
.legal > :nth-child(2) { animation-delay: .12s; }
.legal > :nth-child(3) { animation-delay: .2s; }
.legal > :nth-child(4) { animation-delay: .28s; }
.legal > :nth-child(5) { animation-delay: .36s; }
.legal > :nth-child(6) { animation-delay: .44s; }
.legal h1 { position: relative; font-size: 48px; letter-spacing: -.04em; overflow-wrap: anywhere; }
.legal h1::after {
  content: ""; display: block; width: 72px; height: 4px; margin-top: 18px; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light), var(--blue)); background-size: 200% 100%;
  transform-origin: 0 50%;
  animation: underline-draw 1.1s var(--ease-out) .5s both, bar-slide 4s linear 1.6s infinite;
}
.legal pre {
  font: 15px/1.8 system-ui; white-space: pre-wrap; margin: 30px 0 0;
  background: #ffffffe8; border: 1px solid var(--line); border-radius: 22px; padding: 36px;
  box-shadow: 0 14px 40px #20486c10;
}
.legal .warning {
  background: #ffedb1; padding: 16px; border-radius: 10px; font-size: 14px;
  border-left: 4px solid var(--yellow);
}
.legal .button { margin-top: 18px; }

/* ---------- 17. Footer ---------- */
.footer {
  position: relative;
  display: flex; justify-content: space-between; gap: 30px;
  padding: 38px 0 100px; border-top: 1px solid var(--line);
}
.footer::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 120px; height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
}
.footer nav { font-size: 12px; }
.footer .brand { font-weight: 600; transition: color .3s, letter-spacing .5s var(--ease-out); }
.footer .brand:hover { color: var(--blue); letter-spacing: 0; }

/* ---------- 18. Schwebender App-Store-Button ---------- */
.floating-store {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 1000;
  display: flex; align-items: center; gap: 10px; width: 132px; min-height: 48px; padding: 10px 14px;
  background: linear-gradient(135deg, var(--blue), #3d8fe0); color: #fff !important;
  border: 1px solid #ffffff40; border-radius: 100px;
  box-shadow: 0 6px 24px #173d6630; text-decoration: none !important;
  font: 600 13px/1.3 system-ui, -apple-system, sans-serif;
  transition: width .45s var(--ease-out), transform .45s var(--ease-spring), box-shadow .4s ease;
  -webkit-tap-highlight-color: transparent;
  animation: pop .8s var(--ease-spring) 1.3s backwards, pulse-ring 3.4s ease-out 2.8s 4;
}
.floating-store-icon {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: #ffffff26; font-size: 18px;
  transition: transform .5s var(--ease-spring);
}
.floating-store-text { white-space: nowrap; }
.floating-store-long { display: none; }
.floating-store[data-expanded="true"], .floating-store:focus-visible { width: 214px; transform: translateY(-4px); box-shadow: 0 14px 34px #173d6642; }
.floating-store[data-expanded="true"] .floating-store-short, .floating-store:focus-visible .floating-store-short { display: none; }
.floating-store[data-expanded="true"] .floating-store-long, .floating-store:focus-visible .floating-store-long { display: inline; }
.floating-store[data-expanded="true"] .floating-store-icon { transform: rotate(45deg); }
.floating-store:focus-visible { outline: 3px solid #8dc9ff; outline-offset: 4px; }

@media (hover: hover) and (pointer: fine) {
  .floating-store:hover { width: 214px; transform: translateY(-4px); box-shadow: 0 14px 34px #173d6642; }
  .floating-store:hover .floating-store-short { display: none; }
  .floating-store:hover .floating-store-long { display: inline; }
  .floating-store:hover .floating-store-icon { transform: rotate(45deg); }
}

/* ---------- 19. Scroll-gesteuerte Effekte (nur wo unterstützt) ---------- */
@supports (animation-timeline: view()) {
  /* Fortschrittsbalken */
  body::before { animation: progress linear both, bar-slide 3s linear infinite; animation-timeline: scroll(root), auto; }

  /* Navigation: wird beim Scrollen kompakter, Glas-Hintergrund blendet ein */
  .nav { animation: nav-shrink linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
  .nav::before { animation: nav-glass linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
  .nav::before { box-shadow: none; }

  /* Hintergrund-Farbflecken wandern mit */
  .hero::before { animation: drift-a 16s ease-in-out infinite, par-a linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 900px; }
  .hero::after  { animation: drift-b 19s ease-in-out infinite, par-b linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 900px; }

  /* Einblendung beim Hereinscrollen */
  .section > .eyebrow, .section > h2, .section > .lead,
  .privacy-note, .help-start, .legal pre,
  .faq details, .help-card, .feature, .plan {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 42%;
  }
  .grid > .feature:nth-child(2), .pricing > .plan:nth-child(2), .help-grid > .help-card:nth-child(even) { animation-range: entry 8% entry 50%; }
  .grid > .feature:nth-child(3) { animation-range: entry 14% entry 56%; }
  .faq details:nth-of-type(2) { animation-range: entry 4% entry 46%; }
  .faq details:nth-of-type(3) { animation-range: entry 8% entry 50%; }
  .faq details:nth-of-type(4) { animation-range: entry 12% entry 54%; }
  .faq details:nth-of-type(5) { animation-range: entry 16% entry 58%; }

  .privacy-section > div:first-child { animation: reveal-left linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  .privacy-section > div:last-child  { animation: reveal-right linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }

  /* Trennlinien zeichnen sich */
  .section::before { animation: reveal-line linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }

  /* Die Bühne bleibt trotz Scroll-Einblendungen unberührt: kleine Parallaxe */
  .hero .stage { animation: rise 1.2s var(--ease-out) .35s both, bob 8s ease-in-out 1.6s infinite; }
  .privacy-visual .data-chip { animation: float 5s ease-in-out infinite; }
}

/* ---------- 20. Kleine Bildschirme ---------- */
@media (max-width: 900px) {
  .hero { gap: 45px; }
  .privacy-section { gap: 40px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .nav { gap: 12px; padding: 16px 0; }
  .nav nav { gap: 12px; }
  .nav nav > a:not(.nav-store) { display: none; }
  .nav-store { padding: 9px 13px; font-size: 11px; }

  .hero { grid-template-columns: 1fr; gap: 35px; padding: 35px 0 55px; }
  .hero::before { width: 260px; height: 260px; }
  .hero::after { width: 220px; height: 220px; }
  h1, .hero h1 { font-size: clamp(45px, 11vw, 68px); }
  .hero .lead { font-size: 17px; }
  .actions { gap: 10px; }
  .actions .button { font-size: 12px; padding: 12px 17px; }

  .stage { max-width: 400px; width: 100%; margin: auto; border-radius: 30px; }
  .stage::after { inset: -20px; }
  .screenshot-gallery { padding: 20px 12px 18px; }
  .gallery-heading { margin: 0 8px 18px; }
  .gallery-controls { gap: 6px; }
  .gallery-tab { padding: 8px 9px; font-size: 10px; }
  .app-screenshot { width: min(100%, 250px); }

  .section { padding: 54px 0; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .feature { padding: 24px; }
  .feature::after { opacity: 1; transform: none; }
  .privacy-note { padding: 24px; gap: 16px; }
  .note-symbol { width: 48px; height: 48px; font-size: 26px; }

  .pricing { grid-template-columns: 1fr; gap: 18px; }
  .plan { padding: 26px; }
  .price { font-size: 40px; }

  .privacy-section { grid-template-columns: 1fr; gap: 25px; }

  .help { padding-top: 20px; }
  .help-heading { margin-bottom: 30px; }
  .help-heading h1 { font-size: 44px; }
  .help-jumps { gap: 8px; }
  .help-jumps a { font-size: 12px; padding: 8px 13px; }
  .help-start, .help-grid { grid-template-columns: 1fr; }
  .help-start { padding: 25px; gap: 25px; }
  .help-card { padding: 25px; }

  .legal h1 { font-size: 38px; }
  .legal pre { padding: 22px; font-size: 14px; }

  .footer { flex-direction: column; }
  .footer nav { gap: 16px; }
  .floating-store { right: max(14px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* ---------- 21. Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  h1 em { -webkit-text-fill-color: var(--blue); background: none; }
  body::before { display: none; }
}
