/* Klangschalen-Stile (MIS-78, 30.11.2026) — Tempel-Szene, Frequenz-Player,
   Listen-Karten, Detail-Visuals. Nutzt Basis-Klassen aus style.css/themes.css
   (card-grid, card-detail, card-meaning, deck-*, orakel-cta, breadcrumb).
   Eigene Klassen: ks-*. Eigenes Stylesheet bewusst NICHT in style.css appended. */

/* --- Tempel-Szene (eigene Unterseite /klangschalen/tempel/, Point & Click) --- */
.ks-temple {
    margin: 1.6rem 0 1rem;
}

/* Einstiegs-Kachel auf dem Hub (Kurskorrektur Saso 30.11.: Szene eigene Seite) */
.ks-temple-teaser {
    margin: 1.2rem 0 1.6rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(212, 169, 68, 0.35);
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(212, 169, 68, 0.10), rgba(13, 13, 26, 0));
    text-align: center;
}

.ks-temple-teaser__row {
    margin: 0.8rem 0 0;
}

.ks-temple__title {
    text-align: center;
    margin: 0 0 0.6rem;
    color: var(--color-gold, #d4a944);
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

.ks-temple__svg {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    margin: 0 auto;
}

.ks-temple__shelf {
    fill: url(#ks-shelf-g);
    stroke: rgba(212, 169, 68, 0.35);
    stroke-width: 1;
}

.ks-temple__pillar,
.ks-temple__beam {
    fill: rgba(212, 169, 68, 0.22);
    stroke: rgba(212, 169, 68, 0.4);
    stroke-width: 1;
}

.ks-temple__hint {
    text-align: center;
    color: var(--color-text-muted, #9a9ab0);
    font-size: 0.92rem;
    margin: 0.5rem 0 0;
}

/* --- Eine Klangschale (interaktiv: Hand-Cursor, Fokus-Ring, Schwing-Feedback) --- */
.ks-bowl {
    cursor: pointer;
    transform-box: fill-box;
    transform-origin: 50% 100%;
    transition: opacity 0.2s;
}

.ks-bowl:hover {
    filter: brightness(1.18);
}

.ks-bowl:focus {
    outline: none;
}

.ks-bowl:focus-visible {
    outline: 2px dashed var(--color-gold, #d4a944);
    outline-offset: 4px;
}

/* Schalenteile: Gold-Look, dunkler Sockel, heller Rand */
.ks-bowl__cushion {
    fill: rgba(90, 70, 40, 0.85);
}

.ks-bowl__body {
    fill: rgba(212, 169, 68, 0.42);
    stroke: var(--color-gold, #d4a944);
    stroke-width: 1.4;
}

.ks-bowl__rim {
    fill: rgba(212, 169, 68, 0.65);
}

.ks-bowl__rim-in {
    fill: rgba(13, 13, 26, 0.65);
}

.ks-bowl__hz {
    fill: #10101f;
    font-weight: 700;
    text-anchor: middle;
    pointer-events: none;
}

/* Schwingwellen: nur sichtbar, wenn die Schale klingt (bzw. dezent beim Hover) */
.ks-bowl__waves {
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.ks-bowl:hover .ks-bowl__waves {
    opacity: 0.35;
}

.ks-bowl.is-playing .ks-bowl__waves,
.ks-bowl.is-ringing .ks-bowl__waves {
    opacity: 1;
    animation: ks-ripple 1.4s ease-out infinite;
}

.ks-bowl__wave {
    fill: none;
    stroke: var(--color-gold, #d4a944);
    stroke-width: 1.2;
}

.ks-bowl__wave--2 {
    stroke: rgba(212, 169, 68, 0.55);
    animation-delay: 0.35s;
}

/* Schwing-Feedback: die angeklingelte Schale wippt sanft */
.ks-bowl.is-playing,
.ks-bowl.is-ringing {
    animation: ks-swing 0.9s ease-in-out infinite;
}

@keyframes ks-swing {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(1.4deg); }
    75%      { transform: rotate(-1.4deg); }
}

@keyframes ks-ripple {
    0%   { opacity: 1; transform: scale(0.9); }
    100% { opacity: 0; transform: scale(1.25); }
}

/* Statische Schalen (Liste/Karten): kein Klick, kein Cursor-Handgriff */
.ks-bowl--static {
    cursor: default;
    pointer-events: none;
    animation: none;
}

/* --- Caption-Panel unter dem Tempel (Point & Click-Ausbeute) --- */
.ks-temple-caption {
    max-width: 720px;
    margin: 0.8rem auto 1.4rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(212, 169, 68, 0.45);
    border-radius: 10px;
    background: var(--color-bg-card, #161622);
    box-shadow: 0 0 22px rgba(212, 169, 68, 0.14);
}

.ks-temple-caption[hidden] {
    display: none;
}

.ks-temple-caption__name {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
}

.ks-temple-caption__hz {
    color: var(--color-gold, #d4a944);
    font-weight: 600;
}

.ks-temple-caption__kurz {
    margin: 0 0 0.6rem;
    color: var(--color-text-muted, #9a9ab0);
    font-size: 0.92rem;
}

.ks-temple-caption__actions {
    margin: 0;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.ks-temple-caption__close {
    background: none;
    border: 1px solid var(--border, #4a4a5a);
    border-radius: 8px;
    color: var(--color-text-muted, #9a9ab0);
    padding: 0.35rem 0.8rem;
    cursor: pointer;
    font: inherit;
}

.ks-temple-caption__close:hover {
    color: var(--color-text, #eee);
    border-color: var(--color-gold, #d4a944);
}

/* --- Detailseite: Visual + Player --- */
.ks-visual {
    text-align: center;
    margin: 1.4rem 0 0.6rem;
}

.ks-visual__svg {
    width: 200px;
    height: auto;
}

.ks-visual__label {
    color: var(--color-text-muted, #9a9ab0);
    font-size: 0.9rem;
    margin: 0.3rem 0 0;
}

.ks-player {
    margin: 1rem 0 1.4rem;
}

.ks-player__note,
.ks-player__octave {
    color: var(--color-text-muted, #9a9ab0);
    font-size: 0.86rem;
    margin: 0.45rem auto 0;
    max-width: 560px;
}

.ks-player__octave {
    color: rgba(212, 169, 68, 0.85);
}

/* Play/Stop-Button (erbt orakel-cta-btn; hier nur Innenleben + Zustand) */
.ks-play {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 220px;
    justify-content: center;
}

.ks-play__icon {
    font-size: 0.85em;
    line-height: 1;
}

.ks-play__hz {
    font-size: 0.82em;
    opacity: 0.85;
    border: 1px solid rgba(16, 16, 31, 0.35);
    border-radius: 6px;
    padding: 0.1rem 0.45rem;
}

.ks-play.is-playing .ks-play__icon {
    animation: ks-pulse 1.1s ease-in-out infinite;
}

.ks-play.is-playing {
    box-shadow: 0 0 18px rgba(212, 169, 68, 0.35);
}

@keyframes ks-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.25); }
}

.ks-play--small {
    min-width: 0;
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
    gap: 0.35rem;
}

.ks-play--small .ks-play__hz {
    border: none;
    padding: 0;
}

.ks-player__octave--small {
    max-width: none;
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
}

/* --- Aufklappbare Kuriositäts-Karte (details/summary) --- */
.ks-kurios {
    border: 1px solid rgba(212, 169, 68, 0.3);
    border-radius: 10px;
    background: var(--color-bg-card, #161622);
    padding: 0.6rem 1rem;
    margin: 0.7rem 0;
}

.ks-kurios summary {
    cursor: pointer;
    color: var(--color-gold, #d4a944);
    font-weight: 600;
    list-style-position: inside;
}

.ks-kurios[open] summary {
    margin-bottom: 0.4rem;
}

.ks-kurios p {
    margin: 0.4rem 0 0.2rem;
}

/* --- Listen-Karten (Frequenz-Übersicht) --- */
.ks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    max-width: 860px;
    margin: 1.4rem auto;
    padding: 0;
    list-style: none;
}

.ks-listcard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
    padding: 1rem 0.8rem;
    border: 1px solid rgba(212, 169, 68, 0.3);
    border-radius: 12px;
    background: var(--color-bg-card, #161622);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ks-listcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(212, 169, 68, 0.16);
}

.ks-listcard__svg {
    width: 120px;
    height: auto;
}

.ks-listcard__title {
    color: var(--color-gold, #d4a944);
    font-weight: 600;
}

.ks-listcard__title a {
    color: inherit;
    text-decoration: none;
}

.ks-listcard__kurz {
    color: var(--color-text-muted, #9a9ab0);
    font-size: 0.88rem;
    margin: 0;
}

/* --- Material-Tabelle + ehrlicher Rahmen --- */
.ks-table th {
    white-space: nowrap;
}

.ks-disclaimer {
    max-width: 680px;
    margin: 1.6rem auto;
    padding: 0.8rem 1rem;
    border-left: 3px solid rgba(212, 169, 68, 0.5);
    background: rgba(212, 169, 68, 0.07);
    border-radius: 0 8px 8px 0;
    color: var(--color-text-muted, #9a9ab0);
    font-size: 0.88rem;
}

.ks-disclaimer strong {
    color: var(--color-text, #eee);
}

/* --- Vor/Zurück-Kette der Detailseiten --- */
.ks-chain {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Bewusstsein für Menschen, die wenig Bewegung wollen --- */
@media (prefers-reduced-motion: reduce) {
    .ks-bowl.is-playing,
    .ks-bowl.is-ringing,
    .ks-bowl.is-playing .ks-bowl__waves,
    .ks-bowl.is-ringing .ks-bowl__waves,
    .ks-play.is-playing .ks-play__icon {
        animation: none;
    }
}

/* --- Homepage-Kachel (deck-card-Nachfahren, laedt ueber index.html) --- */
.deck-card.klangschalen {
    background: linear-gradient(145deg, #4a3a1a 0%, #241a08 100%);
}
