/* Startseite (Wunsch Leandro 19.11.2026, eigener Branch auftrag/landing-hero-boxen):
   1) Oben: wie auf der Duolingo-Startseite steht ein Handy in der Mitte. Es vibriert kurz, dann springt das
      Maskottchen heraus und die Werkzeuge kommen nacheinander aus dem Handy und kreisen danach um das Maskottchen.
   2) Die sechs Sorgen-Karten wieder als leichte Boxen (nicht ganz Bento): heller Grund, feiner Rand, runde Ecken. */

/* --- Handy: wie der Handy-Rahmen in vorschau.html (dunkler Rand), schraeg gelegt wie auf der Duolingo-Startseite.
   Die dicke Kante unten rechts (Schatten ohne Unschaerfe) macht es dreidimensional. --- */
.ho-phone { --tilt: perspective(1100px) rotateY(-16deg) rotateX(8deg) rotateZ(-13deg);
  position: absolute; left: 50%; top: 60%; width: min(30%, 200px); aspect-ratio: 9 / 18.5; transform: translate(-50%, -50%) var(--tilt); z-index: 10;
  border-radius: 40px; background: #fff; border: 10px solid #2B2622;
  box-shadow: 9px 10px 0 #17130F, 14px 30px 40px -14px rgba(48, 40, 35, .45); }
.ho-phone-scr { position: absolute; inset: 0; border-radius: 30px; overflow: hidden; background: #F7F3EC;
  background-image: radial-gradient(#E6DBCC 1.1px, transparent 1.3px); background-size: 14px 14px; }
.ho-phone-notch { position: absolute; left: 50%; top: 7px; width: 36%; height: 14px; transform: translateX(-50%); border-radius: 99px; background: #2B2622; }
/* Chat im Handy */
.ho-chat-top { position: absolute; left: 0; right: 0; top: 0; height: 46px; padding: 22px 12px 0; display: flex; align-items: center; justify-content: space-between;
  background: rgba(251, 248, 242, .96); border-bottom: 1px solid #E8DDCF; z-index: 2; font: 700 12px/1 Inter, system-ui, sans-serif; color: #302823; }
.ho-badge { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 99px; background: #A0705A; color: #fff; font: 700 10.5px/18px Inter, system-ui, sans-serif; text-align: center; }
.ho-chat { position: absolute; left: 0; right: 0; top: 46px; bottom: 0; padding: 8px 8px 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden; transition: filter .6s, opacity .6s; }
.ho-msg { display: flex; align-items: flex-end; gap: 5px; max-width: 92%; animation: ho-msg-in .28s cubic-bezier(.2, .9, .3, 1.2) both; }
.ho-msg.is-r { align-self: flex-end; flex-direction: row-reverse; }
.ho-msg i { flex: none; width: 17px; height: 17px; border-radius: 50%; color: #fff; font: 700 9px/17px Inter, system-ui, sans-serif; text-align: center; font-style: normal; }
.ho-msg span { padding: 5px 8px; border-radius: 11px 11px 11px 3px; background: #fff; border: 1px solid #EDE4D8; font: 500 9.5px/1.3 Inter, system-ui, sans-serif; color: #3A312A; box-shadow: 0 1px 0 rgba(112, 94, 78, .08); }
.ho-msg.is-r span { border-radius: 11px 11px 3px 11px; background: #F3E5CF; }
.ho-msg b { display: block; font-size: 8.5px; color: #8A7765; margin-bottom: 1px; }
@keyframes ho-msg-in { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
/* nach dem Sprung: Chat wird ruhig und tritt zurueck */
.ho-stage.is-pop .ho-chat { filter: blur(2px); opacity: .45; }
.ho-stage.is-pop .ho-badge { display: none; }
@media (max-width: 640px) { .ho-chat-top { height: 34px; padding-top: 14px; font-size: 9.5px; } .ho-chat { top: 34px; gap: 4px; padding: 5px; } .ho-msg span { font-size: 7.5px; padding: 3px 6px; } .ho-msg b { font-size: 7px; } .ho-msg i { width: 12px; height: 12px; font-size: 7px; line-height: 12px; } }

/* gestrichelte Bahn: vordere Haelfte liegt vor dem Handy, hintere dahinter */
.ho-floor-front { z-index: 15; background: none !important; border-color: #B7A68F !important; clip-path: inset(50% -2% -2% -2%); }
.ho-phone-flash { position: absolute; left: 50%; top: 30%; width: 130%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.2); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 248, 236, .4) 45%, transparent 70%); opacity: 0; }
@media (max-width: 640px) { .ho-phone { width: 34%; border-width: 7px; border-radius: 28px; box-shadow: 6px 7px 0 #17130F, 10px 20px 28px -12px rgba(48, 40, 35, .45); } .ho-phone-scr { border-radius: 21px; } .ho-phone-notch { height: 10px; top: 5px; } }

/* --- Ablauf beim Laden (nur mit Bewegung) --- */
@media (prefers-reduced-motion: no-preference) {
  .ho-stage.is-intro .ho-phone { animation: ho-phone-in .55s cubic-bezier(.2, .9, .3, 1) both; }
  .ho-stage.is-intro .ho-phone.buzz-1 { animation: ho-buzz .5s ease-in-out infinite; }
  .ho-stage.is-intro .ho-phone.buzz-2 { animation: ho-buzz .3s linear infinite; }
  .ho-stage.is-intro .ho-phone.buzz-3 { animation: ho-buzz-hard .16s linear infinite; }
  .ho-stage.is-intro .ho-mascot { opacity: 0; animation: none; }
  .ho-stage.is-intro.is-pop .ho-phone-flash { animation: ho-flash .7s ease-out both; }
  .ho-stage.is-intro.is-pop .ho-mascot { opacity: 1; animation: ho-pop .95s cubic-bezier(.3, 1.45, .55, 1) both, ho-bob 3.8s ease-in-out .95s infinite; }
  .ho-stage.is-intro .ho-px { opacity: 0; animation: none; }
  .ho-stage.is-intro.is-pop .ho-px { animation: ho-fade .5s ease .6s both, ho-px 6.5s ease-in-out 1.1s infinite; }
}
@keyframes ho-phone-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 40px)) var(--tilt) scale(.92); } to { opacity: 1; transform: translate(-50%, -50%) var(--tilt) scale(1); } }
@keyframes ho-buzz {
  0%, 100% { transform: translate(-50%, -50%) var(--tilt); }
  15% { transform: translate(calc(-50% - 4px), -50%) var(--tilt) rotate(-2.5deg); } 30% { transform: translate(calc(-50% + 4px), -50%) var(--tilt) rotate(2.5deg); }
  45% { transform: translate(calc(-50% - 3px), -50%) var(--tilt) rotate(-2deg); } 60% { transform: translate(calc(-50% + 3px), -50%) var(--tilt) rotate(2deg); }
  75% { transform: translate(calc(-50% - 2px), -50%) var(--tilt) rotate(-1deg); }
}
@keyframes ho-buzz-hard {
  0%, 100% { transform: translate(-50%, -50%) var(--tilt); } 25% { transform: translate(calc(-50% - 6px), calc(-50% + 2px)) var(--tilt) rotate(-3.5deg); }
  50% { transform: translate(calc(-50% + 6px), calc(-50% - 2px)) var(--tilt) rotate(3.5deg); } 75% { transform: translate(calc(-50% - 4px), -50%) var(--tilt) rotate(-2deg); }
}
@keyframes ho-flash { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); } }
@keyframes ho-pop {
  0% { opacity: 0; transform: translate(-50%, calc(-50% + 150px)) scale(.25); }
  25% { opacity: 1; }
  62% { transform: translate(-50%, calc(-50% - 26px)) scale(1.05); }
  100% { opacity: 1; transform: translate(-50%, calc(-50% + 6px)) scale(1); }
}
@keyframes ho-fade { from { opacity: 0; } to { opacity: .85; } }

/* --- Sorgen-Karten: leichte Boxen (hebt "keine Kastenraender" aus landing-orbit.css auf) --- */
.sa-grid { gap: 16px !important; }
.sa-card { background: #FBF8F2 !important; border: 1px solid #E8DDCF !important; border-radius: 22px !important;
  box-shadow: 0 1px 0 #fff inset, 0 10px 24px -18px rgba(112, 94, 78, .35) !important; overflow: hidden; }
.sa-card .sa-worry { border-radius: 0; }
.sa-card .sa-relief { padding-bottom: 20px; }

/* Groessen: das Maskottchen steht ueber dem Handy, das Handy bleibt gut sichtbar */
.ho-stage .ho-mascot { width: min(42%, 260px); top: 33%; }
@media (max-width: 640px) { .ho-stage .ho-mascot { width: 44%; top: 33%; }  }
