/* Kaufseite Fernia Premium (Josua 11.10.2026: kurz, hochwertig, alles bis zum Knopf ohne Scrollen, auch auf dem iPhone SE).
   Dunkler Kopf in der Geheimtipp-Farbe mit unscharfen echten Geheimtipp-Karten, darunter Vorteile, Tarife, Knopf, Pflichtangaben. */
#panel.pw-open { padding: 0 0 calc(18px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); max-height: 92dvh; background: var(--bg); overflow-x: hidden; }
#panel.pw-open > .sheet-head { display: none; }
#panel.pw-open > .grabber::before { background: rgba(255, 255, 255, 0.55); }
.pw-hero { position: relative; overflow: hidden; padding: 16px 16px 18px; border-radius: 20px 20px 0 0; text-align: center; color: #fff;
  background: radial-gradient(90% 70% at 50% 18%, rgba(130, 219, 219, 0.22), transparent 70%), radial-gradient(120% 100% at 50% 0%, #3a3470 0%, #1d1b3a 62%, #15132b 100%); }
.pw-x { position: absolute; top: 12px; right: 12px; z-index: 4; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 22px; line-height: 34px; }
.pw-kicker { margin: 6px 0 0; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }
.pw-cards { position: relative; width: min(100%, 300px); height: clamp(92px, 15dvh, 150px); margin: 10px auto 8px; }
.pw-card { position: absolute; top: 10px; bottom: 4px; width: 33%; display: grid; grid-template-rows: 1fr auto auto; gap: 6px; padding-bottom: 9px; border-radius: 14px; background: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.7); overflow: hidden; }
.pw-card-0 { left: 2%; transform: rotate(-8deg); }
.pw-card-2 { right: 2%; transform: rotate(8deg); }
.pw-card-1 { top: 0; bottom: 0; left: 50%; width: 38%; z-index: 2; transform: translateX(-50%); }
.pw-card-pic { position: relative; overflow: hidden; display: block; min-height: 0; }
.pw-card-pic i { position: absolute; inset: -14px; background: linear-gradient(135deg, #8e5ab8, #1f7373); background-size: cover; background-position: center; filter: blur(9px) saturate(1.15); transition: opacity 0.4s; }
.pw-card-0 .pw-card-pic i { background-image: linear-gradient(135deg, #c23a25, #ffbf55); }
.pw-card-2 .pw-card-pic i { background-image: linear-gradient(135deg, #4f9a2e, #2f8fd8); }
.pw-card-l1, .pw-card-l2 { height: 6px; margin: 0 9px; border-radius: 3px; background: #e6e2da; }
.pw-card-l2 { width: 55%; }
.pw-gem { position: absolute; z-index: 3; left: 50%; top: 42%; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; transform: translate(-50%, -50%); background: rgba(29, 27, 58, 0.9); border: 1px solid rgba(255, 255, 255, 0.28); color: var(--amber); box-shadow: 0 0 0 6px rgba(255, 191, 85, 0.16), 0 10px 24px rgba(0, 0, 0, 0.45); }
.pw-gem .fi { width: 24px; height: 24px; }
.pw-gem svg { width: 24px; height: 24px; stroke-width: 1.8; }
.pw-title { margin: 6px 0 0; font-family: var(--display); font-size: clamp(23px, 6.4vw, 28px); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.pw-main { padding: 0 16px; }
.pw-perks { display: grid; gap: 7px; margin: 14px 2px 0; padding: 0; list-style: none; }
.pw-perks li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; line-height: 1.25; }
.pw-check { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-deep); color: #fff; }
.pw-check svg { width: 14px; height: 14px; }
.pw-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.pw-plan { position: relative; display: grid; align-content: start; gap: 1px; min-height: 98px; padding: 14px 12px 10px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pw-plan[aria-checked="true"] { border-color: #1d1b3a; box-shadow: 0 6px 18px -8px rgba(29, 27, 58, 0.55); }
.pw-plan::after { content: ""; position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); }
.pw-plan[aria-checked="true"]::after { border: 5px solid #1d1b3a; }
.pw-plan b { font-size: 13px; color: var(--muted); }
.pw-plan strong { font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.pw-plan small { font-size: 13px; color: var(--ink); }
.pw-plan em { margin-top: 2px; font-style: normal; font-size: 11.5px; color: var(--muted); }
.pw-badge { position: absolute; top: -11px; left: 10px; padding: 3px 9px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 11px; font-weight: 800; white-space: nowrap; }
.pw-buy { width: 100%; margin-top: 12px; padding: 15px 20px; border: 0; border-radius: 999px; background: #1d1b3a; color: #fff; font: inherit; font-size: 17px; font-weight: 800; box-shadow: 0 10px 24px -10px rgba(29, 27, 58, 0.8); }
.pw-buy:active { transform: scale(0.985); }
.pw-buy:disabled { opacity: 0.6; }
.pw-buy.busy { opacity: 0.85; }
.pw-fine { margin: 8px 4px 0; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.4; }
.pw-legal { margin: 14px 4px 0; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.45; }
.pw-links { margin-top: 6px; }
.pw-legal .link-btn { font-size: 11px; padding: 6px 0; }
.pw-restore { display: block; margin: 4px auto 0; padding: 10px 12px; font-size: 13px; text-align: center; }
/* Sehr niedrige Bildschirme (z.B. kleine Android-Handys mit Systemleisten): Kopf und Abstände etwas enger */
@media (max-height: 620px) {
  .pw-hero { padding: 12px 16px 12px; }
  .pw-cards { height: 84px; margin: 6px auto 4px; }
  .pw-title { font-size: 22px; }
  .pw-perks { gap: 5px; margin-top: 10px; }
  .pw-perks li { font-size: 14px; }
  .pw-plans { margin-top: 13px; }
  .pw-plan { min-height: 88px; padding-top: 12px; }
  .pw-buy { margin-top: 10px; padding: 14px 20px; }
}
/* Handy: bis über die Tab-Leiste, oben frei bis zur Statusleiste */
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  #panel.pw-open, #panel.pw-open.tall { max-height: calc(100dvh - var(--tab-bottom) - var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) - 8px); }
}

/* Animationen in den Pop-ups (premium-demos.js). --d = Verzögerung pro Element */
.pd-root .ob-card { position: relative; }
.pd-x { position: absolute; top: 12px; right: 12px; }
.pd-root h2 { padding-right: 40px; }
.pd-stage { width: 100%; min-height: 150px; display: grid; align-items: center; }
.pd { display: grid; gap: 6px; width: 100%; }
.pd-card { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--bg); font-size: 14px; font-weight: 700; }
.pd-card small { color: var(--muted); font-weight: 600; }
.pd-col { flex-direction: column; align-items: stretch; gap: 8px; }
.pd-pop { opacity: 0; animation: pd-pop 0.35s ease-out var(--d, 0s) forwards; }
.pd-fade { opacity: 0; animation: pd-fade 0.4s ease-out var(--d, 0s) forwards; color: var(--muted); font-weight: 600; }
.pd-center { text-align: center; }
@keyframes pd-pop { from { opacity: 0; transform: translateY(8px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes pd-fade { to { opacity: 1; } }
.pd-faces { display: flex; gap: 6px; }
.pd-face { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); font-size: 20px; }
.pd-result { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; }
.pd-settle { background: var(--teal-deep); }
.pd-route svg { width: 100%; height: auto; }
.pd-path { fill: none; stroke: var(--teal-deep); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: pd-draw 1.6s ease-in-out 0.2s forwards; }
@keyframes pd-draw { to { stroke-dashoffset: 0; } }
.pd-dot { fill: var(--coral); stroke: #fff; stroke-width: 3; opacity: 0; animation: pd-fade 0.3s ease-out var(--d, 0s) forwards; }
.pd-tip { font-size: 20px; opacity: 0; animation: pd-fade 0.3s ease-out var(--d, 0s) forwards; }
.pd-maps { display: flex; gap: 8px; justify-content: center; }
.pd-maps span { padding: 8px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.pd-sat { position: relative; height: 150px; border-radius: 14px; overflow: hidden; }
.pd-map { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 48%, #fff 48%, #fff 52%, transparent 52%), linear-gradient(0deg, transparent 58%, #fff 58%, #fff 62%, transparent 62%), #e8efe3; }
.pd-map-sat { background: radial-gradient(circle at 30% 40%, #3f6b3a 0 18%, transparent 19%), radial-gradient(circle at 70% 65%, #2f5a8a 0 22%, transparent 23%), radial-gradient(circle at 80% 20%, #5b7d45 0 15%, transparent 16%), linear-gradient(135deg, #4a6b3d, #2f4a2a); animation: pd-wipe 2.4s ease-in-out 0.5s infinite alternate; clip-path: inset(0 100% 0 0); }
@keyframes pd-wipe { to { clip-path: inset(0 0 0 0); } }
.pd-pin { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); font-size: 28px; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-chip { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 700; animation: pd-chip 0.3s ease-out var(--d, 0s) forwards; }
@keyframes pd-chip { to { background: var(--ink); color: #fff; border-color: var(--ink); } }
.pd-out { animation: pd-out 0.4s ease-in var(--d, 0s) forwards; }
@keyframes pd-out { to { opacity: 0.15; transform: scale(0.97); text-decoration: line-through; } }
.pd-profile { justify-content: flex-start; gap: 12px; }
.pd-who { display: grid; }
.pd-crown { margin-left: auto; padding: 5px 10px; border-radius: 999px; background: linear-gradient(135deg, #f5c542, #e8a317); color: #3a2a00; font-size: 12px; font-weight: 800; }
.pd-chat { gap: 8px; }
.pd-bubble { max-width: 82%; padding: 9px 12px; border-radius: 16px 16px 16px 4px; background: var(--bg); font-size: 14px; }
.pd-me { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--teal-deep); color: #fff; }
.pd-typing { animation: pd-pop 0.3s ease-out var(--d, 0s) forwards, pd-hide 0.2s ease-in 1.7s forwards; }
@keyframes pd-hide { to { opacity: 0; height: 0; padding: 0; margin: -4px 0; } }

/* Reisen: oben das Herz (Favoriten, kostenlos), darunter "Reisen gemeinsam planen" (Premium) mit Schritten und Werkzeugen */
.fav-card { width: 100%; display: flex; align-items: center; gap: 14px; margin-top: 4px; padding: 16px; border: 0; border-radius: 18px; background: linear-gradient(135deg, #ffe4dd, #ffd0c4); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 4px 14px rgba(230, 110, 90, 0.18); }
.fav-heart { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--coral); }
.fav-heart svg { width: 28px; height: 28px; }
.fav-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.fav-text strong { font-size: 18px; font-weight: 800; }
.fav-text small { color: #6b4a42; font-size: 13px; }
.fav-go { flex: none; font-size: 26px; line-height: 1; color: var(--muted); }
.fav-free { margin: 6px 0 0; text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.plan-box { display: grid; gap: 10px; margin-top: 18px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.plan-box h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; font-size: 18px; font-weight: 800; }
.plan-crown { flex: none; padding: 4px 9px; border-radius: 999px; background: linear-gradient(135deg, #f5c542, #e8a317); color: #3a2a00; font-size: 11px; font-weight: 800; }
.plan-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plan-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.plan-num { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; }
.plan-ico { font-size: 18px; }
.plan-new { border: 0; border-radius: 999px; padding: 14px 18px; background: var(--ink); color: #fff; font: inherit; font-size: 16px; font-weight: 800; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); }
.trip-card { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.trip-card-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.trip-card-text strong { font-size: 16px; }
.trip-card-text small { color: var(--muted); font-size: 12px; }
.trip-card-crew { flex: none; font-size: 13px; font-weight: 700; color: var(--teal-deep); }
.tools-title { margin: 18px 0 8px; font-size: 14px; color: var(--muted); }
.trip-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.trip-tool { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 12px 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer; }
.trip-tool .ico { font-size: 24px; }
.trip-tools-top { margin: 10px 0 6px; }
.plan-hint { width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 14px; border: 1px dashed var(--line); border-radius: 14px; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
