/* Explain: Styles for various UI elements, including the autograph card lightbox and AI chat. */
.eyebrow {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.hero-cinematic {
    position: relative;
    isolation: isolate;
}

.piano-hero-overlay {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--midnight-color) 92%, transparent), color-mix(in srgb, var(--midnight-color) 68%, transparent), color-mix(in srgb, var(--burgundy-color) 48%, transparent)),
        radial-gradient(circle at 72% 22%, color-mix(in srgb, var(--gold-color) 28%, transparent), transparent 23rem);
}

.piano-key-visual {
    position: absolute;
    right: -7vw;
    bottom: -3rem;
    width: min(54rem, 72vw);
    height: 15rem;
    transform: rotate(-8deg);
    opacity: 0.88;
    filter: drop-shadow(0 2rem 5rem rgba(0, 0, 0, 0.55));
}

.white-key,
.black-key {
    position: absolute;
    bottom: 0;
    border-radius: 0 0 1rem 1rem;
}

.white-key {
    width: 8.2%;
    height: 100%;
    background: linear-gradient(180deg, var(--ivory-color), color-mix(in srgb, var(--ivory-color) 74%, var(--slate-color)));
    border: 1px solid color-mix(in srgb, var(--midnight-color) 24%, transparent);
}

.black-key {
    z-index: 2;
    width: 4.3%;
    height: 62%;
    background: linear-gradient(180deg, #151923, var(--midnight-color));
    box-shadow: 0 0.8rem 1.4rem rgba(0, 0, 0, 0.45);
}

.note-float {
    position: absolute;
    color: color-mix(in srgb, var(--gold-color) 76%, transparent);
    opacity: 0.6;
    animation: noteDrift 7s ease-in-out infinite;
}

.note-float:nth-child(2) {
    animation-delay: -2s;
}

.note-float:nth-child(3) {
    animation-delay: -4s;
}

@keyframes noteDrift {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50% { transform: translateY(-1rem) rotate(6deg); }
}

.quote-card,
.contact-modal-card {
    position: relative;
    z-index: 10;
    border: 1px solid color-mix(in srgb, var(--gold-color) 32%, transparent);
    background: color-mix(in srgb, var(--surface-color) 74%, transparent);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(24px);
}

.quote-card::before,
.contact-modal-card::before {
    content: "";
    position: absolute;
    inset: 0.7rem;
    pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--ivory-color) 14%, transparent);
    border-radius: inherit;
}

.keyboard-form {
    border-top: 0.7rem solid var(--ivory-color);
    box-shadow: inset 0 0.34rem 0 var(--midnight-color);
}

.quote-status.success {
    display: block;
    border: 1px solid color-mix(in srgb, var(--gold-color) 48%, transparent);
    background: color-mix(in srgb, var(--gold-color) 18%, transparent);
    color: var(--ivory-color);
}

.quote-status.error {
    display: block;
    border: 1px solid color-mix(in srgb, var(--burgundy-color) 68%, transparent);
    background: color-mix(in srgb, var(--burgundy-color) 44%, transparent);
    color: var(--ivory-color);
}

.pain-card,
.service-card,
.photo-card,
.faq-card,
.timeline-card {
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    background: color-mix(in srgb, var(--surface-color) 76%, transparent);
    box-shadow: var(--shadow-card);
    transition: transform 300ms ease, border-color 300ms ease, background 300ms ease;
    backdrop-filter: blur(18px);
}

.review-card {
    border: 1px solid color-mix(in srgb, var(--ivory-color) 14%, transparent);
    border-radius: 2rem;
    background: color-mix(in srgb, var(--ivory-color) 8%, transparent);
    box-shadow: var(--shadow-card);
    transition: transform 300ms ease, border-color 300ms ease, background 300ms ease;
}

.pain-card:hover,
.service-card:hover,
.photo-card:hover,
.faq-card:hover,
.timeline-card:hover,
.review-card:hover {
    transform: translateY(-0.35rem);
    border-color: color-mix(in srgb, var(--gold-color) 50%, transparent);
    background: color-mix(in srgb, var(--surface-color) 92%, transparent);
}

.service-dot {
    display: inline-flex;
    height: 3.25rem;
    width: 3.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--gold-color) 22%, transparent);
    color: var(--gold-color);
    border: 1px solid color-mix(in srgb, var(--gold-color) 40%, transparent);
}

.staff-divider {
    position: relative;
    overflow: hidden;
}

.staff-divider::before {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    top: 0;
    height: 6.5rem;
    opacity: 0.34;
    background: repeating-linear-gradient(180deg, transparent 0 0.72rem, color-mix(in srgb, var(--ivory-color) 26%, transparent) 0.76rem 0.82rem, transparent 0.86rem 1.34rem);
    transform: rotate(-2deg);
}

body.contact-modal-open {
    overflow: hidden;
}

.floating-contact-button {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem) scale(0.98);
    box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
}

.floating-contact-button.floating-contact-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.contact-modal {
    z-index: 10000;
}

#hoerproben,
#spende,
#ueber-mich,
#entstehung,
#themen,
#werte,
#faq,
#kontakt {
    scroll-margin-top: 6.5rem;
}

.audio-progress-track {
    position: relative;
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, var(--ivory-color) 16%, transparent);
}

.audio-progress-fill {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold-color), var(--primary-hover));
    transition: width 160ms linear;
}

.audio-sample-card.is-playing {
    border-color: color-mix(in srgb, var(--gold-color) 52%, transparent);
    background: color-mix(in srgb, var(--surface-color) 94%, transparent);
}

@media (min-width: 768px) {
    .floating-contact-button {
        left: auto;
        right: 1.5rem;
        bottom: 1.5rem;
        min-width: 14rem;
    }
}

.cover-lightbox.is-open {
    display: flex;
}

body.cover-lightbox-open {
    overflow: hidden;
}

.autogramm-lightbox.is-open {
    display: flex;
}

body.autogramm-lightbox-open {
    overflow: hidden;
}


.ai-chat-launcher {
    position: fixed;
    right: 1rem;
    bottom: 5.5rem;
    z-index: 9999;
    display: inline-flex;
    height: 3.25rem;
    width: 3.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--gold-color) 46%, transparent);
    background: var(--gold-color);
    color: var(--midnight-color);
    font-size: 1.05rem;
    box-shadow: 0 1.1rem 2.6rem rgba(0, 0, 0, 0.42);
    transition: transform 300ms ease, background 300ms ease;
}

.ai-chat-launcher:hover {
    background: var(--primary-hover);
    transform: translateY(-0.15rem);
}

.ai-chat-panel {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.75rem;
    background: color-mix(in srgb, var(--midnight-color) 80%, transparent);
    backdrop-filter: blur(10px);
}

.ai-chat-panel[hidden] {
    display: none;
}

.ai-chat-panel-inner {
    display: flex;
    width: 100%;
    max-width: 32rem;
    max-height: 92vh;
    flex-direction: column;
    overflow: hidden;
    border-radius: 2rem;
    border: 1px solid color-mix(in srgb, var(--gold-color) 34%, transparent);
    background: color-mix(in srgb, var(--surface-color) 97%, transparent);
    box-shadow: var(--shadow-soft);
}

.ai-chat-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--burgundy-color) 40%, transparent);
}

.ai-chat-avatar {
    display: inline-flex;
    height: 2.6rem;
    width: 2.6rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--gold-color) 42%, transparent);
    background: color-mix(in srgb, var(--gold-color) 20%, transparent);
    color: var(--gold-color);
}

.ai-chat-head-text {
    min-width: 0;
    flex: 1;
}

.ai-chat-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ivory-color);
}

.ai-chat-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    color: var(--slate-color);
}

.ai-chat-close {
    display: inline-flex;
    height: 2.6rem;
    width: 2.6rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--ivory-color) 8%, transparent);
    color: var(--ivory-color);
    transition: background 300ms ease;
}

.ai-chat-close:hover {
    background: var(--burgundy-color);
}

.ai-chat-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.7rem;
    overflow-y: auto;
    padding: 1rem 1.1rem;
    overscroll-behavior: contain;
}

.ai-bubble {
    max-width: 88%;
    padding: 0.7rem 0.95rem;
    border-radius: 1.15rem;
    font-size: 0.95rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ai-bubble-bot {
    align-self: flex-start;
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 0.35rem;
    background: color-mix(in srgb, var(--ivory-color) 7%, transparent);
    color: var(--ivory-color);
}

.ai-bubble-user {
    align-self: flex-end;
    border-bottom-right-radius: 0.35rem;
    background: var(--gold-color);
    color: var(--midnight-color);
}

.ai-bubble-error {
    align-self: flex-start;
    border: 1px solid color-mix(in srgb, var(--burgundy-color) 70%, transparent);
    background: color-mix(in srgb, var(--burgundy-color) 46%, transparent);
    color: var(--ivory-color);
}

.ai-typing {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.ai-typing span {
    display: inline-block;
    height: 0.42rem;
    width: 0.42rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--gold-color) 85%, transparent);
    animation: aiTyping 1s ease-in-out infinite;
}

.ai-typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.ai-typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes aiTyping {
    0%, 100% { opacity: 0.25; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-0.2rem); }
}

.ai-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.1rem 0.35rem;
}

.ai-chip {
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--gold-color) 34%, transparent);
    background: color-mix(in srgb, var(--gold-color) 10%, transparent);
    color: var(--gold-color);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    transition: background 300ms ease, color 300ms ease;
}

.ai-chip:hover {
    background: color-mix(in srgb, var(--gold-color) 22%, transparent);
}

.ai-chat-form {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1.1rem 0.6rem;
    border-top: 1px solid var(--border-color);
}

.ai-chat-input {
    flex: 1;
    min-width: 0;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--midnight-color) 58%, transparent);
    padding: 0.75rem 1.15rem;
    color: var(--ivory-color);
    font-size: 0.95rem;
}

.ai-chat-input::placeholder {
    color: var(--slate-color);
}

.ai-chat-input:focus {
    border-color: var(--gold-color);
    outline: none;
}

.ai-chat-send {
    display: inline-flex;
    height: 2.9rem;
    width: 2.9rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 0;
    background: var(--gold-color);
    color: var(--midnight-color);
    transition: background 300ms ease;
}

.ai-chat-send:hover {
    background: var(--primary-hover);
}

.ai-chat-send:disabled {
    opacity: 0.55;
}

.ai-chat-hint {
    margin: 0;
    padding: 0 1.1rem 0.9rem;
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--slate-color);
}

.ai-chat-hint a {
    color: var(--gold-color);
    font-weight: 600;
}

@media (min-width: 768px) {
    .ai-chat-launcher {
        right: 1.5rem;
        bottom: 6rem;
        height: 3.5rem;
        width: 3.5rem;
        font-size: 1.15rem;
    }

    .ai-chat-panel {
        inset: auto;
        right: 1.5rem;
        bottom: 1.5rem;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
    }

    .ai-chat-panel-inner {
        width: 25rem;
        max-width: 25rem;
        height: min(38rem, 78vh);
    }
}

@media (max-width: 767px) {
    body.ai-chat-open {
        overflow: hidden;
    }
}

.cart-qty-btn,
.cart-remove-btn {
    display: inline-flex;
    height: 2.5rem;
    width: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--ivory-color);
    transition: background 300ms ease, border-color 300ms ease;
}

.cart-qty-btn {
    border: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--ivory-color) 8%, transparent);
}

.cart-qty-btn:hover {
    background: color-mix(in srgb, var(--gold-color) 24%, transparent);
    border-color: color-mix(in srgb, var(--gold-color) 48%, transparent);
}

.cart-qty-value {
    min-width: 2rem;
    text-align: center;
    font-weight: 700;
    color: var(--ivory-color);
}

.cart-remove-btn {
    border: 1px solid color-mix(in srgb, var(--burgundy-color) 62%, transparent);
    background: color-mix(in srgb, var(--burgundy-color) 30%, transparent);
}

.cart-remove-btn:hover {
    background: var(--burgundy-color);
}

.wa-floating-button {
    position: fixed;
    right: 1rem;
    bottom: 9.5rem;
    z-index: 9999;
    display: inline-flex;
    height: 3.25rem;
    width: 3.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, #25D366 58%, transparent);
    background: #25D366;
    color: #ffffff;
    font-size: 1.35rem;
    box-shadow: 0 1.1rem 2.6rem rgba(0, 0, 0, 0.42);
    transition: transform 300ms ease, background 300ms ease;
}

.wa-floating-button:hover {
    background: #1eb257;
    transform: translateY(-0.15rem);
}

@media (min-width: 768px) {
    .wa-floating-button {
        right: 1.5rem;
        bottom: 10.5rem;
        height: 3.5rem;
        width: 3.5rem;
        font-size: 1.5rem;
    }
}
