/* ================================================================ Effekte wie im Launcher (zu fx.js) */
.fx-layer { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

/* Welle beim Klicken */
.btn, .nav-item, .tile, .icon-btn, .faq summary { position: relative; overflow: hidden; isolation: isolate; }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(255, 244, 214, .35) 0%, rgba(255, 244, 214, .12) 40%, transparent 70%);
  transform: scale(0); animation: ripple .6s cubic-bezier(.2, .8, .2, 1) forwards;
}
.btn.primary .ripple { background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, .15) 45%, transparent 70%); }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* Lichtkegel folgt der Maus auf Karten, Kacheln und Knöpfen */
.card { position: relative; }
.card::before, .tile::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), rgba(231, 184, 79, .07), transparent 60%);
  transition: opacity .35s ease;
}
.card::after, .tile::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; padding: 1px;
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), rgba(243, 212, 138, .55), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .35s ease;
}
.card:hover::before, .tile:hover::before, .card:hover::after, .tile:hover::after { opacity: 1; }
.tile > *, .card > * { position: relative; z-index: 1; }
.btn:not(.primary)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .25s;
  background: radial-gradient(120px circle at var(--x, 50%) var(--y, 50%), rgba(243, 212, 138, .16), transparent 70%);
}
.btn:not(.primary):hover::before { opacity: 1; }
.btn:not(.primary):hover { border-color: #4A3C24; }
.btn.primary { transition: transform .2s cubic-bezier(.2, .9, .3, 1.3), box-shadow .25s ease, filter .2s; }
.btn.primary:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.05); }
.btn.primary::after { z-index: 1; }
.btn .icon { transition: transform .25s cubic-bezier(.2, .9, .3, 1.4); }
.btn:hover .icon { transform: translateY(1px) scale(1.12); }

/* Kacheln/Features: Symbol hüpft, Karte hebt sich */
.feature .ic, .tile .ic { transition: transform .35s cubic-bezier(.2, .9, .3, 1.5), background .3s, color .3s; }
.feature:hover .ic, .tile:hover .ic { transform: translateY(-3px) rotate(-6deg) scale(1.08); background: var(--select); color: var(--pale); }
.feature { transition: transform .3s cubic-bezier(.2, .9, .3, 1.2), border-color .3s, box-shadow .3s; }
.feature:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -28px rgba(231, 184, 79, .35); }
.row-card .ic { transition: transform .35s cubic-bezier(.2, .9, .3, 1.5); }
.row-card:hover .ic { transform: scale(1.08) rotate(-4deg); }

/* Seitenleiste: gleitende Auswahl wie im Launcher */
.nav-pill {
  position: absolute; left: 0; right: 0; height: 38px; border-radius: 10px; z-index: 0; pointer-events: none;
  background: var(--select); border: 1px solid #5A4726; box-shadow: 0 6px 18px -10px rgba(231, 184, 79, .5);
  transition: top .42s cubic-bezier(.2, .9, .25, 1.15), opacity .2s;
}
.nav-pill::after { content: ""; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.side.has-pill .nav-item.active { background: transparent; border-color: transparent; box-shadow: none; }
.nav-item { z-index: 1; transition: color .2s, background .2s, padding-left .25s cubic-bezier(.2, .9, .3, 1.3); }
.nav-item:hover { padding-left: 16px; }
.side.has-pill .nav-item.active:hover { background: transparent; }
.nav-item .icon { transition: transform .3s cubic-bezier(.2, .9, .3, 1.5), color .2s; }
.nav-item:hover .icon { transform: scale(1.15) rotate(-8deg); }
.nav-item.active .icon { color: var(--accent); }

/* Seitenwechsel: Karten kommen nacheinander herein */
.page { animation: none; }
.page.active > * { animation: cardIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.page.active > *:nth-child(2) { animation-delay: .05s; }
.page.active > *:nth-child(3) { animation-delay: .1s; }
.page.active > *:nth-child(4) { animation-delay: .15s; }
.page.active > *:nth-child(5) { animation-delay: .2s; }
.page.active > *:nth-child(n+6) { animation-delay: .25s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.page.leaving { display: flex; animation: pageOut .14s ease forwards; }
@keyframes pageOut { to { opacity: 0; transform: translateY(-6px); } }

/* FAQ */
.faq summary { padding: 4px 6px; margin: -4px -6px; border-radius: 8px; transition: color .2s, background .2s; }
.faq summary:hover { color: var(--pale); background: rgba(58, 47, 28, .35); }
.faq details[open]:not(.closing) summary { color: var(--pale); }
.faq summary::after { transition: transform .35s cubic-bezier(.2, .9, .3, 1.4), color .2s; }
.faq details.closing summary::after { transform: rotate(0deg); }
.faq-body { overflow: hidden; }

/* Ton an/aus */
.sound-toggle { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: rgba(19, 18, 16, .7); color: var(--pale);
  display: grid; place-items: center; cursor: pointer; transition: color .2s, border-color .2s, transform .2s; padding: 0; }
.sound-toggle:hover { border-color: #5A4726; transform: translateY(-1px); }
.sound-toggle .wave { transition: opacity .25s, transform .25s; transform-origin: 12px 12px; }
.sound-toggle.off { color: var(--faint); }
.sound-toggle.off .wave { opacity: 0; transform: scale(.6); }
.sound-toggle .mute { opacity: 0; transition: opacity .25s; }
.sound-toggle.off .mute { opacity: 1; }

/* Startseite: Einstieg nacheinander, Emblem folgt leicht der Maus */
.hero > div:first-child > * { animation: heroIn .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero > div:first-child > *:nth-child(2) { animation-delay: .08s; }
.hero > div:first-child > *:nth-child(3) { animation-delay: .16s; }
.hero > div:first-child > *:nth-child(4) { animation-delay: .24s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.emblem { animation: emblemIn 1.2s cubic-bezier(.2, .8, .2, 1) both .1s; }
.emblem .tilt { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes emblemIn { from { opacity: 0; transform: scale(.85) rotate(-8deg); } to { opacity: 1; transform: none; } }
.hero h1 .serif { background: linear-gradient(100deg, var(--pale) 20%, #fff6dc 40%, var(--pale) 60%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s ease-in-out infinite; padding-right: .08em; }
@keyframes shine { 0%, 60% { background-position: 100% 0; } 100% { background-position: -150% 0; } }
.topbar nav a { position: relative; }
.topbar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform .3s cubic-bezier(.2, .9, .3, 1.2); }
.topbar nav a:hover::after { transform: scaleX(1); }
.chip { transition: transform .2s, border-color .2s, color .2s; }
.feature:hover .chip { border-color: #4A3C24; }

/* Anmelden: Fehler blitzt rot, Erfolg leuchtet */
.auth .card.error-flash { animation: shake .4s ease, errFlash .8s ease; }
@keyframes errFlash { 0% { box-shadow: 0 0 0 1px rgba(229, 103, 90, .9), 0 0 40px -6px rgba(229, 103, 90, .6); } 100% { box-shadow: none; } }
.auth .card.success { animation: okGlow .9s ease; }
@keyframes okGlow { 0% { box-shadow: 0 0 0 1px rgba(243, 212, 138, .9), 0 0 60px -6px rgba(231, 184, 79, .7); transform: scale(1.01); } 100% { box-shadow: none; transform: none; } }
.auth .emblem-sm.pop img { animation: pop .6s cubic-bezier(.2, .9, .3, 1.5); }
@keyframes pop { 40% { transform: scale(1.25) rotate(-8deg); } }
input.field { transition: border-color .2s, box-shadow .25s, background .2s; }
input.field:focus { background: rgba(14, 12, 10, .85); }
.toast { transition: opacity .3s ease, transform .45s cubic-bezier(.2, .9, .3, 1.3); }

@media (prefers-reduced-motion: reduce) {
  .page.active > *, .hero > div:first-child > *, .emblem { animation: none; }
  .hero h1 .serif { animation: none; }
}

/* ================================================================ Rezensionen */
.star { fill: none; color: var(--faint); }
.star.on { fill: var(--accent); color: var(--accent); filter: drop-shadow(0 0 4px rgba(231, 184, 79, .45)); }
.stars { display: flex; gap: 2px; }
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.rating-big { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--border); background: rgba(19, 18, 16, .75); margin-bottom: 28px; }
.rating-big b { font-size: 34px; line-height: 1; color: var(--pale); font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; }
.rating-big span { font-size: 12px; color: var(--dim); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .review-grid { grid-template-columns: 1fr; } }
.review { padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: transform .3s cubic-bezier(.2, .9, .3, 1.2), box-shadow .3s; }
.review:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(231, 184, 79, .35); }
.review p { margin: 0; color: var(--text); font-size: 13.5px; line-height: 1.6; flex: 1; }
.review .who, .review-item .who { display: flex; align-items: center; gap: 10px; }
.review .who b, .review-item .who b { display: block; font-size: 13px; }
.review .who span, .review-item .who span { font-size: 11.5px; color: var(--faint); }
.review .avatar, .review-item .avatar { width: 32px; height: 32px; font-size: 13px; }
.review-empty { grid-column: 1 / -1; padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.review-empty .icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 4px; }
.review-empty span { color: var(--dim); font-size: 13px; }
.review-cta { margin-top: 18px; display: flex; justify-content: center; }
.star-pick { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.star-pick button { width: 36px; height: 36px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; border-radius: 9px; color: var(--faint);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.6), color .15s, background .15s; }
.star-pick button .icon { width: 24px; height: 24px; fill: none; transition: fill .15s, filter .2s; }
.star-pick button:hover { background: rgba(58, 47, 28, .4); transform: scale(1.15) rotate(-8deg); }
.star-pick button.on { color: var(--accent); }
.star-pick button.on .icon { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(231, 184, 79, .6)); }
.star-pick button.pop { animation: starPop .45s cubic-bezier(.2, .9, .3, 1.6); }
@keyframes starPop { 40% { transform: scale(1.45) rotate(-14deg); } }
.star-pick span { margin-left: 8px; font-size: 12.5px; color: var(--dim); }
textarea.review-text { font: 13.5px/1.55 "Sora", system-ui, sans-serif; height: 110px; }
.review-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.review-actions .faint { margin-right: auto; font-size: 12px; }
.review-list { display: flex; flex-direction: column; gap: 10px; }
.review-item { padding: 14px 16px; border-radius: 11px; border: 1px solid var(--border); background: rgba(28, 26, 23, .7); display: flex; flex-direction: column; gap: 8px; }
.review-item.mine { border-color: #5A4726; background: rgba(58, 47, 28, .35); }
.review-item p { margin: 0; font-size: 13px; color: var(--text); }
.review-item .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ================================================================ Ohne Lizenz */
.lock-card { position: relative; }
.lock-emblem { position: relative; }
.lock-badge { position: absolute; right: -6px; bottom: -4px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--select); border: 1px solid #5A4726; color: var(--pale); box-shadow: 0 0 14px rgba(231, 184, 79, .35); animation: lockWiggle 3.2s ease-in-out infinite; }
.lock-badge .icon { width: 14px; height: 14px; }
@keyframes lockWiggle { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-14deg); } 88% { transform: rotate(12deg); } 92% { transform: rotate(-6deg); } }
.lock-card.unlocking .lock-badge { animation: unlock .7s cubic-bezier(.2, .9, .3, 1.4) forwards; }
@keyframes unlock { 40% { transform: scale(1.35) rotate(-20deg); } 100% { transform: scale(0) rotate(40deg); opacity: 0; } }
.lock-form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.key-field { text-align: center; letter-spacing: .06em; font-weight: 600; }
.lock-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.lock-user { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.lock-user .avatar { width: 26px; height: 26px; font-size: 11px; }

.rating-big[hidden] { display: none; }
