/* Startseite (und en.html): Treffen auswählen, Stift-Notizen, Gruppenchat-Abschnitt und kleine Extras.
   Wird nur von index.html und en.html geladen, nie in der App. */

@font-face { font-family: 'Shantell Sans'; src: url('../fonts/shantell-sans-vf.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }

/* ---------- Kleine Extras ---------- */
/* Logo: der Punkt dreht beim Drüberfahren eine Runde um den Kreis */
.logo-mark circle { transform-box: view-box; transform-origin: 16px 16px; }
.logo:hover .logo-mark circle, .logo:focus-visible .logo-mark circle { animation: home-orbit 0.9s cubic-bezier(.45, 0, .25, 1); }
@keyframes home-orbit { to { transform: rotate(360deg); } }

/* „Swipen, Matchen, Flirten“ streicht sich beim Drüberfahren selbst durch */
.is-card.no li { transition: color .2s; }
.is-card.no li:hover { text-decoration: line-through; text-decoration-color: var(--brick); text-decoration-thickness: 2px; }

/* Überschrift: zweite Zeile farbig, nicht kursiv */
.display .accent, .h2 .accent { color: var(--brick); }

/* ---------- Hero: Worauf hast du Lust? Der Kreis füllt sich ---------- */
.pick { margin-top: 26px; }
.pick-label { font-size: 0.92rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.pick .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick .chip { min-height: 40px; padding: 0 14px 0 11px; font-size: 0.9rem; }
.pick .chip .dice { display: inline-block; }
.pick .chip.rolling .dice { animation: home-roll 0.6s cubic-bezier(.3, 1.4, .6, 1); }
@keyframes home-roll { from { transform: rotate(-540deg) scale(.6); } to { transform: rotate(0) scale(1); } }
.pick + div .btn-row { margin-top: 24px !important; }

.pick-visual .scene-center { inset: 27% 24% 36%; }
.pick-visual .scene-center p { transition: opacity .25s; }
.pick-visual .scene-center .pick-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 10px;
  border-radius: 50%; background: var(--surface); color: var(--teal); box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease-spring);
}
.pick-visual .scene-center .pick-icon .icon { width: 24px; height: 24px; }
.pick-visual.is-switching .pick-icon { transform: scale(.7) rotate(-20deg); }
.pick-visual.is-switching .scene-center p { opacity: 0; }

.pick-visual .person { transition: opacity .35s var(--ease-out), transform .55s var(--ease-spring), background-color .3s; opacity: 1; transform: none; }
.pick-visual .person.is-out { opacity: 0; transform: scale(.4); }
.pick-visual .person.empty {
  background: transparent; color: var(--ink-muted); border: 2px dashed var(--line-strong); box-shadow: none; font-family: var(--sans); font-weight: 600; font-size: 0.8rem;
}
.pick-visual .person.you {
  background: var(--surface); color: var(--brick); border: 2px dashed var(--brick); cursor: pointer; text-decoration: none;
  font-family: var(--sans); font-weight: 700; font-size: 0.82rem;
  animation: home-breathe 2.4s ease-in-out infinite;
}
.pick-visual .person.you:hover { background: var(--brick); color: #fff; border-style: solid; animation: none; }
@keyframes home-breathe { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brick) 35%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--brick) 0%, transparent); } }
.you-tip {
  position: absolute; z-index: 3; white-space: nowrap; pointer-events: none;
  padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 0.78rem; font-weight: 600;
  translate: -50% calc(-100% - 34px); opacity: 0; transition: opacity .2s;
}
.pick-visual:has(.person.you:hover) .you-tip { opacity: 1; }
.pick-card { transition: opacity .25s; }
.pick-visual.is-switching .pick-card { opacity: .35; }

/* ---------- Stift: eingekreistes „circle“ und Notiz am freien Platz ---------- */
.pen { font-family: 'Shantell Sans', 'Comic Sans MS', cursive; font-weight: 500; color: var(--brick); line-height: 1.15; }
.pen-circle { position: relative; display: inline-block; }
.pen-circle svg { position: absolute; left: -5%; top: -12%; width: 110%; height: 128%; overflow: visible; pointer-events: none; }
.pen-circle path { fill: none; stroke: var(--brick); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.js .pen-ready .pen-circle path { animation: home-draw 1.1s cubic-bezier(.6, .05, .3, 1) .5s forwards; }
@keyframes home-draw { to { stroke-dashoffset: 0; } }

.note { position: absolute; z-index: 4; display: flex; align-items: flex-start; gap: 4px; font-size: 1.12rem; pointer-events: none; }
.note svg { width: 54px; height: 44px; flex: none; overflow: visible; }
.note path { fill: none; stroke: var(--brick); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; }
.note span { opacity: 0; clip-path: inset(0 100% 0 0); }
.js .pen-ready .note span { animation: home-write .7s steps(14, jump-none) forwards; /* jump-none: letzter Schritt zeigt alles (Safari blieb sonst bei 13/14 stehen) */ animation-delay: var(--d, 1.4s); }
.js .pen-ready .note path { animation: home-draw .6s ease-out forwards; animation-delay: calc(var(--d, 1.4s) + .55s); }
@keyframes home-write { 0% { opacity: 1; clip-path: inset(0 100% 0 0); } 100% { opacity: 1; clip-path: inset(0 0 0 0); } }
html:not(.js) .note span, .reduce .note span { opacity: 1; clip-path: none; }
html:not(.js) .note path, html:not(.js) .pen-circle path { stroke-dashoffset: 0; }

.note-you { left: -4%; top: -2%; flex-direction: column; align-items: flex-start; rotate: -5deg; }
.note-you svg { margin-left: 34px; }
@media (max-width: 960px) { .note-you { left: 0; top: -6%; font-size: 1rem; } }

/* ---------- Abschnitt: Der Gruppenchat, aus dem nie ein Treffen wird ---------- */
.chat-demo {
  position: relative; width: 100%; max-width: 440px; justify-self: center;
  border-radius: 28px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.chat-head { position: relative; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
/* Weiche Kante oben im Verlauf */
.chat-head::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 52px; background: linear-gradient(var(--surface-2), color-mix(in srgb, var(--surface-2) 0%, transparent)); pointer-events: none; }
.chat-head .grp { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold-tint); font-size: 1.25rem; }
.chat-head b { display: block; font-size: 0.98rem; color: var(--ink); line-height: 1.25; }
.chat-head span { font-size: 0.8rem; color: var(--ink-muted); }
.chat-body { height: 404px; padding: 16px 16px 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; background: var(--surface-2); }
.msg { max-width: 82%; align-self: flex-start; padding: 8px 12px 9px; border-radius: 16px 16px 16px 6px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 0.95rem; line-height: 1.4; color: var(--ink); animation: home-msg .35s var(--ease-out) both; }
.msg .who { display: block; font-size: 0.76rem; font-weight: 700; margin-bottom: 1px; }
.msg.typing { padding: 12px 14px; }
.msg.typing i { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--ink-muted); animation: home-dot 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes home-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes home-msg { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-divider { align-self: center; margin: 6px 0; padding: 4px 12px; border-radius: 999px; background: var(--surface); font-size: 0.76rem; font-weight: 600; color: var(--ink-muted); animation: home-msg .35s var(--ease-out) both; }
.chat-divider.big { background: var(--ink); color: var(--bg); }
.plan {
  align-self: stretch; margin-top: 4px; padding: 14px 14px 12px; border-radius: 18px; background: var(--surface); border: 2px solid var(--teal);
  animation: home-plan .55s var(--ease-spring) both;
}
@keyframes home-plan { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-top .brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.86rem; color: var(--teal); }
.plan-top .brand svg { width: 18px; height: 18px; }
.plan-top .brand path { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; }
.plan-top .brand circle { fill: var(--brick); }
.plan h3 { margin: 8px 0 4px; font-size: 1.1rem; }
.plan .demo-meta { font-size: 0.84rem; }
.plan-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.plan-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--btn-bg); color: var(--btn-ink); font: 600 0.88rem var(--sans); cursor: pointer; transition: background-color .2s, transform .2s; }
.plan-btn:hover { transform: translateY(-1px); }
.plan-btn.is-in { background: var(--teal); color: var(--bg); }
.chat-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px 12px; font-size: 0.8rem; color: var(--ink-muted); background: var(--surface-2); }
.chat-foot button { border: 0; background: none; color: var(--teal); font: 600 0.82rem var(--sans); cursor: pointer; padding: 4px 0; }
.chat-foot button:hover { text-decoration: underline; }
.burst { position: absolute; width: 9px; height: 9px; border-radius: 50%; pointer-events: none; z-index: 5; animation: home-burst .8s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes home-burst { to { transform: translate(var(--dx), var(--dy)) scale(.4); opacity: 0; } }
@media (max-width: 960px) { .chat-demo { max-width: 460px; } .chat-body { height: 360px; } }

/* Für Screenshots (?snap=1): Endstand ohne Einblenden */
.home-snap .msg, .home-snap .plan, .home-snap .chat-divider { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .pen-circle path, .note path { stroke-dashoffset: 0 !important; animation: none !important; }
  .note span { opacity: 1 !important; clip-path: none !important; animation: none !important; }
  .msg, .plan, .chat-divider { animation: none !important; }
  .pick-visual .person.you { animation: none; }
  .logo:hover .logo-mark circle { animation: none; }
}

/* ---------- App-Hinweis (seit 10.11.2026 im App Store) ---------- */
/* Kleines Kärtchen statt Store-Plakat: App-Symbol, pulsierender Punkt wie im Hero, Pfeil */
.app-pill { display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; padding: 10px 20px 10px 10px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s; }
.app-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.app-pill img { width: 48px; height: 48px; border-radius: 12px; flex: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); transition: transform .45s var(--ease-spring); }
.app-pill:hover img { transform: rotate(-8deg) scale(1.06); }
.app-pill-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.app-pill-kicker { display: flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brick); }
.app-pill-title { font-weight: 600; font-size: 1rem; }
.app-pill .icon-arrow { margin-left: 4px; transition: transform .25s var(--ease-out); }
.app-pill:hover .icon-arrow { transform: translateX(3px); }
.cta-panel .app-pill { margin-top: 22px; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); box-shadow: none; color: var(--cta-ink); }
.cta-panel .app-pill-kicker { color: var(--cta-soft); }
.cta-panel .app-pill .live-dot { background: var(--cta-soft); }
.cta-panel .app-pill .live-dot::after { border-color: var(--cta-soft); }
.app-pill + .form-note { margin-top: 16px !important; }
@media (prefers-reduced-motion: reduce) { .app-pill, .app-pill img, .app-pill .icon-arrow { transition: none; } .app-pill:hover, .app-pill:hover img, .app-pill:hover .icon-arrow { transform: none; } }
