/* =============================================================================
   Truepublishing – Buchbubble-Umfrage 2026
   /assets/css/buchbubbleumfrage.css
   ============================================================================= */

.buchbubble-survey-page {
    color: var(--tm-text);
}

.bbs-page-wrapper {
    position: relative;
}

.bbs-page-shell {
    display: grid;
    gap: 1.2rem;
}

/* Hero */

.bbs-hero {
    position: relative;
    overflow: hidden;
}

.bbs-hero::after {
    content: "";
    position: absolute;
    right: -8rem;
    bottom: -11rem;
    width: 27rem;
    height: 27rem;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(215, 183, 106, 0.13),
            transparent 68%
        );
    pointer-events: none;
}

.bbs-hero-copy {
    position: relative;
    z-index: 1;
}

.bbs-hero-highlight {
    margin-top: 0.9rem !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

.bbs-hero-highlight strong {
    color: #ead59f;
}

.bbs-hero-mark {
    position: relative;
    z-index: 1;
    width: 5.2rem;
    height: 5.2rem;
    font-size: 2rem;
    font-weight: 600;
}

/* Intro */

.bbs-intro-card {
    padding: clamp(1.5rem, 4vw, 2.6rem);
    text-align: center;
}

.bbs-intro-card h2 {
    margin: 0 0 1.25rem;
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: 0.12rem;
}

.bbs-intro-card > p:not(.tm-eyebrow) {
    max-width: 54rem;
    margin: 0.45rem auto;
    color: var(--tm-muted);
    line-height: 1.7;
}

.bbs-intro-card .bbs-intro-emphasis {
    margin-top: 1.25rem !important;
    color: #ead59f !important;
    font-size: 1rem;
    font-weight: 600;
}

/* Drei Gruppen */

.bbs-role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.bbs-role-card {
    position: relative;
    min-width: 0;
    padding: 1.45rem;
    overflow: hidden;
}

.bbs-role-card::after {
    content: "";
    position: absolute;
    top: -5rem;
    right: -5rem;
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(215, 183, 106, 0.085),
            transparent 70%
        );
    pointer-events: none;
}

.bbs-role-icon {
    display: grid;
    place-items: center;
    width: 3.15rem;
    height: 3.15rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(215, 183, 106, 0.29);
    border-radius: 50%;
    background: rgba(215, 183, 106, 0.065);
    color: #ead59f;
    font-size: 1rem;
}

.bbs-role-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 0.7rem;
    font-size: 1rem;
    letter-spacing: 0.07rem;
    line-height: 1.5;
}

.bbs-role-card > p:last-child {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--tm-muted);
    font-size: 0.84rem;
    line-height: 1.7;
}

/* Status / Coming Soon */

.bbs-status-card {
    position: relative;
    padding: clamp(2rem, 6vw, 4rem);
    overflow: hidden;
    text-align: center;
    border-color: rgba(215, 183, 106, 0.28);
    background:
        radial-gradient(
            circle at 50% -8%,
            rgba(215, 183, 106, 0.13),
            transparent 36%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.012)
        ),
        var(--tm-card);
}

.bbs-status-icon {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.35rem;
    border: 1px solid rgba(215, 183, 106, 0.32);
    border-radius: 50%;
    background: rgba(215, 183, 106, 0.07);
    color: #ead59f;
    font-size: 1.35rem;
}

.bbs-status-card h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.65rem, 4vw, 2.65rem);
    letter-spacing: clamp(0.08rem, 0.45vw, 0.17rem);
    line-height: 1.3;
}

.bbs-status-lead {
    margin: 1.5rem auto 0.25rem !important;
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 600;
}

.bbs-status-copy {
    max-width: 45rem;
    margin: 0 auto !important;
    color: var(--tm-muted) !important;
    line-height: 1.7;
}

/* Ladepunkte */

.bbs-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1.7rem 0;
}

.bbs-loader span {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: var(--tm-gold);
    animation: bbsPulse 1.4s infinite ease-in-out;
}

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

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

@keyframes bbsPulse {
    0%,
    80%,
    100% {
        opacity: 0.25;
        transform: scale(0.72);
    }

    40% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Leitfrage */

.bbs-question-card {
    width: min(100%, 49rem);
    margin: 0 auto;
    padding: 1.5rem;
    border: 1px solid rgba(215, 183, 106, 0.21);
    border-radius: 0.8rem;
    background:
        linear-gradient(
            145deg,
            rgba(215, 183, 106, 0.07),
            rgba(215, 183, 106, 0.025)
        );
}

.bbs-question-card span {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--tm-faint);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
}

.bbs-question-card strong {
    display: block;
    color: #f0deb0;
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    font-weight: 600;
    line-height: 1.55;
}

/* Aktionen */

.bbs-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    width: min(100%, 37rem);
    margin: 1.6rem auto 0;
}

.bbs-actions .tm-button {
    margin: 0;
}

/* Ergebnis-Teaser */

.bbs-result-teaser {
    width: min(100%, 54rem);
    margin: 1.5rem auto 0;
    padding: 1.4rem 1rem 0;
    text-align: center;
}

.bbs-result-teaser h2 {
    margin: 0 0 0.9rem;
    color: #fff;
    font-size: clamp(1.25rem, 3vw, 1.7rem);
    letter-spacing: 0.1rem;
    line-height: 1.5;
}

.bbs-result-teaser > p:not(.tm-eyebrow) {
    max-width: 47rem;
    margin: 0.5rem auto;
    color: var(--tm-muted);
    line-height: 1.7;
}

/* Kleine Seitenanimation */

.bbs-page-shell > * {
    opacity: 0;
    transform: translateY(0.65rem);
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

body.bbs-ready .bbs-page-shell > * {
    opacity: 1;
    transform: translateY(0);
}

body.bbs-ready .bbs-page-shell > *:nth-child(2) {
    transition-delay: 0.05s;
}

body.bbs-ready .bbs-page-shell > *:nth-child(3) {
    transition-delay: 0.1s;
}

body.bbs-ready .bbs-page-shell > *:nth-child(4) {
    transition-delay: 0.15s;
}

body.bbs-ready .bbs-page-shell > *:nth-child(5) {
    transition-delay: 0.2s;
}

/* Responsive */

@media (max-width: 980px) {
    .bbs-role-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 736px) {
    .bbs-intro-card,
    .bbs-role-card {
        padding: 1.2rem;
    }

    .bbs-actions {
        grid-template-columns: 1fr;
    }

    .bbs-status-card {
        padding: 1.5rem 1.15rem;
    }

    .bbs-result-teaser {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bbs-loader span {
        animation: none;
    }

    .bbs-page-shell > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =============================================================================
   Kommentarbereich – Buchbubble
   ============================================================================= */

.bbs-comments-card {
    padding: clamp(1.35rem, 4vw, 2.2rem);
}

.bbs-comments-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 1.5rem;
}

.bbs-comments-heading > div {
    min-width: 0;
}

.bbs-comments-heading h2 {
    margin: 0 0 0.65rem;
    color: #ffffff;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    letter-spacing: 0.08rem;
    line-height: 1.4;
}

.bbs-comments-heading p:not(.tm-eyebrow) {
    max-width: 48rem;
    margin: 0;
    color: var(--tm-muted);
    line-height: 1.7;
}

.bbs-open-comment {
    width: auto !important;
    min-width: 15rem;
    max-width: 100%;
    margin: 0;
    justify-self: end;
}

.bbs-open-comment:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.bbs-comments-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.3rem 0 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--tm-faint);
    font-size: 0.72rem;
    letter-spacing: 0.05rem;
}

.bbs-comments-system {
    margin: 0.75rem 0;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(215, 183, 106, 0.22);
    border-radius: 0.7rem;
    background: rgba(215, 183, 106, 0.055);
    color: #ead59f;
    font-size: 0.82rem;
    line-height: 1.55;
}

.bbs-comments-scroll {
    max-height: 34rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(215, 183, 106, 0.45) rgba(255, 255, 255, 0.035);
}

.bbs-comments-scroll::-webkit-scrollbar {
    width: 0.55rem;
}

.bbs-comments-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.035);
    border-radius: 999px;
}

.bbs-comments-scroll::-webkit-scrollbar-thumb {
    background: rgba(215, 183, 106, 0.42);
    border-radius: 999px;
}

.bbs-comment-item {
    padding: 1.05rem 1.1rem;
    margin-bottom: 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 0.9rem;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.015)
        );
    box-shadow: 0 0.7rem 2rem rgba(0, 0, 0, 0.16);
}

.bbs-comment-item:last-child {
    margin-bottom: 0;
}

.bbs-comment-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.bbs-comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.bbs-comment-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(215, 183, 106, 0.28);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 25%, rgba(215, 183, 106, 0.19), transparent 60%),
        rgba(255, 255, 255, 0.045);
    color: #ead59f;
    font-weight: 700;
}

.bbs-comment-author strong {
    display: block;
    max-width: 32rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.9rem;
}

.bbs-comment-author time {
    display: block;
    margin-top: 0.13rem;
    color: var(--tm-faint);
    font-size: 0.68rem;
}

.bbs-comment-text {
    margin: 0.9rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.72;
    overflow-wrap: anywhere;
}

.bbs-like-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    flex: 0 0 auto;
    min-width: 3.2rem;
    height: 2.3rem;
    padding: 0 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}

.bbs-like-button:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(215, 183, 106, 0.35);
    background: rgba(215, 183, 106, 0.075);
    color: #ead59f;
}

.bbs-like-button.is-liked,
.bbs-like-button:disabled.is-liked {
    border-color: rgba(215, 183, 106, 0.3);
    background: rgba(215, 183, 106, 0.09);
    color: #ead59f;
    cursor: default;
    opacity: 1;
}

.bbs-comments-empty {
    display: grid;
    justify-items: center;
    gap: 0.4rem;
    padding: 3rem 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.11);
    border-radius: 0.9rem;
    color: var(--tm-muted);
    text-align: center;
}

.bbs-comments-empty i {
    margin-bottom: 0.3rem;
    color: #ead59f;
    font-size: 1.55rem;
}

.bbs-comments-empty strong {
    color: rgba(255, 255, 255, 0.9);
}

.bbs-comments-empty span {
    font-size: 0.82rem;
}

/* Kommentar-Modal */

body.bbs-comment-modal-open {
    overflow: hidden !important;
}

.bbs-comment-modal[hidden] {
    display: none !important;
}

.bbs-comment-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.bbs-comment-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 12, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bbs-comment-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 44rem);
    max-height: min(90vh, 52rem);
    overflow-y: auto;
    padding: clamp(1.4rem, 4vw, 2.2rem);
    border: 1px solid rgba(215, 183, 106, 0.24);
    border-radius: 1rem;
    background:
        radial-gradient(circle at 90% 0%, rgba(215, 183, 106, 0.11), transparent 30%),
        linear-gradient(145deg, rgba(27, 34, 41, 0.99), rgba(13, 18, 23, 0.995));
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.55);
}

.bbs-comment-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.9rem;
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.bbs-comment-modal-card h2 {
    max-width: 36rem;
    margin: 0 3rem 0.7rem 0;
    color: #fff;
    font-size: clamp(1.4rem, 3.8vw, 2rem);
    line-height: 1.35;
    letter-spacing: 0.08rem;
}

.bbs-comment-modal-intro {
    margin: 0;
    color: var(--tm-muted);
    line-height: 1.68;
}

.bbs-comment-rules {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin: 1.25rem 0;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(215, 183, 106, 0.18);
    border-radius: 0.8rem;
    background: rgba(215, 183, 106, 0.05);
}

.bbs-comment-rules > i {
    flex: 0 0 auto;
    margin-top: 0.15rem;
    color: #ead59f;
}

.bbs-comment-rules strong,
.bbs-comment-rules span {
    display: block;
}

.bbs-comment-rules strong {
    margin-bottom: 0.2rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.84rem;
}

.bbs-comment-rules span {
    color: var(--tm-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.bbs-form-field {
    display: block;
    margin-bottom: 1rem;
}

.bbs-form-field > span:first-child {
    display: block;
    margin-bottom: 0.42rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06rem;
}

.bbs-form-field input[type="text"],
.bbs-form-field textarea {
    width: 100%;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 0.78rem;
    background: rgba(3, 8, 12, 0.35);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.bbs-form-field input[type="text"] {
    min-height: 3rem;
    padding: 0 0.95rem;
}

.bbs-form-field textarea {
    min-height: 10rem;
    padding: 0.9rem 0.95rem;
    resize: vertical;
    line-height: 1.6;
}

.bbs-form-field input[type="text"]:focus,
.bbs-form-field textarea:focus {
    border-color: rgba(215, 183, 106, 0.54);
    background: rgba(3, 8, 12, 0.5);
    box-shadow:
        0 0 0 3px rgba(215, 183, 106, 0.08),
        inset 0 0 0 1px rgba(215, 183, 106, 0.08);
}

.bbs-form-field input::placeholder,
.bbs-form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.32);
}

.bbs-character-counter {
    display: block;
    margin-top: 0.38rem;
    color: var(--tm-faint);
    font-size: 0.7rem;
    text-align: right;
}

.bbs-character-counter strong {
    color: #ead59f;
    font-weight: 700;
}

.bbs-character-counter.is-low strong {
    color: #ffcf72;
}

.bbs-character-counter.is-empty strong {
    color: #ff8787;
}

.bbs-confirm-row {
    position: relative;
    display: block;
    width: 100%;
    padding: 0.9rem 0;
}

/*
 * main.css blendet native Checkboxen bewusst aus und zeichnet die sichtbare
 * Checkbox über "input[type=checkbox] + label::before".
 * Deshalb müssen Input und Label hier Geschwister sein.
 */
.bbs-confirm-row input[type="checkbox"] {
    position: absolute;
    top: 1.05rem;
    left: 0;
    float: none;
    margin: 0;
}

.bbs-confirm-row input[type="checkbox"] + label {
    display: block;
    width: 100%;
    margin: 0;
    padding-left: 2.65rem;
    padding-right: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.58;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
}

.bbs-comment-privacy-note {
    margin: 0 0 1rem;
    color: var(--tm-faint);
    font-size: 0.7rem;
    line-height: 1.55;
}

.bbs-comment-form-status {
    min-height: 1.4rem;
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    line-height: 1.5;
}

.bbs-comment-form-status.is-error {
    color: #ff9b9b;
}

.bbs-comment-form-status.is-success {
    color: #bde6c4;
}

.bbs-comment-modal-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 0.65rem;
}

.bbs-comment-modal-actions .tm-button {
    margin: 0;
}

.bbs-comment-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 736px) {
    .bbs-comments-heading {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bbs-open-comment {
        width: 100% !important;
        min-width: 0;
        justify-self: stretch;
    }

    .bbs-comments-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .bbs-comments-scroll {
        max-height: 29rem;
    }

    .bbs-comment-modal {
        padding: 0.55rem;
    }

    .bbs-comment-modal-card {
        max-height: 94vh;
        border-radius: 0.85rem;
    }

    .bbs-comment-modal-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bbs-like-button,
    .bbs-form-field input[type="text"],
    .bbs-form-field textarea {
        transition: none !important;
    }
}
