/* Phönix Footer (alle Seiten): Marke links, Kontakt in der Mitte, Rechtstexte klein rechts unten. */
.phx-footer { background: #0f0807; color: rgba(248, 238, 230, .78); font-size: 15px; font-family: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif; }
.phx-footer .phx-foot { max-width: 1260px; margin: 0 auto; padding: 22px max(16px, env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
	display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px 28px; align-items: center; }
.phx-footer a { color: rgba(248, 238, 230, .88); transition: color .15s; }
.phx-footer a:hover { color: #e0b252; }

.phx-footer .phx-made { justify-self: start; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; border-radius: 12px; padding: 4px 6px; transition: background .15s; }
.phx-footer .phx-made:hover { background: rgba(255, 255, 255, .05); color: inherit; }
.phx-footer .phx-made:hover .phx-bunova { transform: scale(1.04); }
.phx-footer .knot { width: 26px; height: 42px; flex: none; }
.phx-footer .phx-made-t { white-space: nowrap; }
.phx-footer .phx-interrexx { height: 34px; width: auto; flex: none; transition: transform .2s; }
.phx-footer .phx-made:hover .phx-interrexx { transform: scale(1.04); }
.phx-footer .heart { color: #e0294f; }
.phx-footer .phx-bunova { height: 64px; width: auto; flex: none; transition: transform .2s; }
.phx-footer .ver { align-self: center; font-size: 12px; line-height: 1; border: 1px solid rgba(224, 178, 82, .5); color: #f3d79a; border-radius: 999px; padding: 4px 9px; white-space: nowrap; }

.phx-footer .phx-foot-contact { display: grid; justify-items: center; gap: 2px; text-align: center; line-height: 1.4; }
.phx-footer .phx-foot-contact a { font-weight: 700; font-size: 16px; text-decoration: none; }

/* Rechtstexte: klein, aber gut lesbar (mind. 13 px, heller Text auf Dunkel) */
.phx-footer .phx-foot-legal { justify-self: end; align-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; font-size: 13px; }
.phx-footer .phx-foot-legal a { color: rgba(248, 238, 230, .72); text-decoration: none; white-space: nowrap; }
.phx-footer .phx-foot-legal a:hover { color: #e0b252; text-decoration: underline; }

/* „Nach oben“: kleine rote Laterne mit goldenem 上 (= oben), erscheint beim Runterscrollen */
.phx-top { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 12px)); z-index: 35;
	display: flex; flex-direction: column; align-items: center; gap: 0; padding: 4px 6px 0; border: 0; background: none; cursor: pointer;
	opacity: 0; transform: translateY(24px) scale(.9); pointer-events: none; transition: opacity .25s, transform .3s cubic-bezier(.2, .8, .3, 1.3); -webkit-tap-highlight-color: transparent; }
.phx-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.phx-top-cap { width: 30px; height: 6px; border-radius: 3px; background: linear-gradient(#f3d79a, #d7a64a); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.phx-top-body { display: grid; place-items: center; width: 52px; height: 50px; margin: -1px 0; border-radius: 46% 46% 42% 42% / 50% 50% 50% 50%;
	background: repeating-linear-gradient(90deg, transparent 0 11px, rgba(0, 0, 0, .12) 11px 12px), radial-gradient(circle at 50% 38%, #e2304f, #b3173a 60%, #7d0f28);
	box-shadow: 0 6px 16px rgba(179, 23, 58, .45), inset 0 0 0 1.5px rgba(243, 215, 154, .55); }
.phx-top-ch { font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; font-size: 25px; line-height: 1; color: #f3d79a; text-shadow: 0 0 8px rgba(255, 210, 120, .55); transform: translateY(1px); }
.phx-top-tassel { width: 2px; height: 14px; background: #d7a64a; border-radius: 1px; position: relative; }
.phx-top-tassel::after { content: ""; position: absolute; left: 50%; top: 10px; width: 8px; height: 10px; transform: translateX(-50%); border-radius: 0 0 4px 4px; background: repeating-linear-gradient(90deg, #d7a64a 0 1.5px, #b8862e 1.5px 3px); }
.phx-top-tip { position: absolute; right: calc(100% + 6px); top: 26px; white-space: nowrap; font: 600 13px/1 var(--font-body, system-ui, sans-serif); color: #fff8f0; background: #170d0c;
	border: 1px solid rgba(224, 178, 82, .5); padding: 7px 10px; border-radius: 999px; opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.phx-top:focus-visible { outline: none; }
.phx-top:focus-visible .phx-top-body { box-shadow: 0 0 0 3px #f3d79a, 0 6px 16px rgba(179, 23, 58, .45); }
@media (hover: hover) {
	.phx-top:hover .phx-top-tip, .phx-top:focus-visible .phx-top-tip { opacity: 1; transform: none; }
	.phx-top.is-on:hover { animation: phxSwing 1.6s ease-in-out infinite; transform-origin: 50% 0; }
}
.phx-top.is-flying { animation: phxFly .85s cubic-bezier(.3, -.4, .6, 1) both; }
@keyframes phxSwing { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes phxFly { 0% { transform: none; } 30% { transform: translateY(8px) scale(.96); } 70% { transform: translateY(-60px); opacity: .2; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .phx-top, .phx-top-tip { transition: none; } .phx-top.is-on:hover, .phx-top.is-flying { animation: none; } }
@media (max-width: 600px) { .phx-top-body { width: 46px; height: 44px; } .phx-top-ch { font-size: 22px; } .phx-top-cap { width: 26px; } }

@media (max-width: 900px) {
	.phx-footer .phx-foot { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 14px; }
	.phx-footer .phx-made, .phx-footer .phx-foot-legal { justify-self: center; }
	.phx-footer .phx-foot-legal { justify-content: center; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); width: 100%; }
}
@media (max-width: 420px) {
	.phx-footer .phx-made { flex-wrap: wrap; justify-content: center; }
	.phx-footer .knot { display: none; }
}
