/*
Theme Name: Time4Quiz
Theme URI:
Author: Sam
Author URI:
Description: Minimales Blank-Theme für Time4Quiz.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: time4quiz
*/

body {
    font-family: 'Open Sans', sans-serif;
    background: radial-gradient(ellipse at center, #ffffff 0%, #d1dbe5 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

#cloud-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

:root {
    --bs-primary: #00aeef;
    --bs-primary-rgb: 0, 174, 239;
    --bs-link-color: #00aeef;
    --bs-link-hover-color: #008fbf;
}

.btn-primary {
    --bs-btn-bg: #00aeef;
    --bs-btn-border-color: #00aeef;
    --bs-btn-hover-bg: #008fbf;
    --bs-btn-hover-border-color: #008fbf;
    --bs-btn-active-bg: #007aa3;
    --bs-btn-active-border-color: #007aa3;
}

.btn-outline-primary {
    --bs-btn-color: #00aeef;
    --bs-btn-border-color: #00aeef;
    --bs-btn-hover-bg: #00aeef;
    --bs-btn-hover-border-color: #00aeef;
    --bs-btn-active-bg: #008fbf;
    --bs-btn-active-border-color: #008fbf;
}

.bg-primary {
    background-color: #00aeef !important;
}

.badge.bg-primary {
    background-color: #00aeef !important;
}

[v-cloak] { display: none !important; }

/* GSAP: Elemente starten unsichtbar, werden von GSAP eingeblendet */
.gsap-hidden {
    opacity: 0;
}

/* Vue Transitions */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.35s ease;
}
.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

/* Answer button hover */
.answer-btn:hover {
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.2);
}

/* Progress bar transition */
.progress-bar {
    transition: width 0.4s ease;
}

/* SplitText char wrapper */
.result-desc span,
.result-quote span {
    will-change: transform, opacity;
}

/* Wachssiegel */
.seal-container {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 140px;
    height: 140px;
    z-index: 2;
    pointer-events: none;
    transform-origin: center center;
}

@media (max-width: 767px) {
    .seal-container {
        width: 120px;
        height: 120px;
        top: -40px;
        right: -20px;

    }
}
@media (max-width: 380px) {
    .seal-container {
        width: 100px;
        height: 100px;
        top: -40px;
        right: -20px;

    }
}

.seal-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Disabled state */
.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* E-Mail Modal */
.modal-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Swish underline */
.swish-underline {
    position: relative;
    display: inline-block;
}

.swish-svg {
    position: absolute;
    bottom: -6px;
    left: -4%;
    width: 108%;
    height: 12px;
    color: #66d4f6;
    opacity: 0;
}

.quiz-choice:hover .swish-svg {
    opacity: 1;
}

/* Quiz choice buttons - responsive sizing */
@media (min-width: 768px) {
    .quiz-choice .btn {
        font-size: 1.25rem !important;
    }
}

/* Quiz choice buttons */
.quiz-choice .btn:hover {
    box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb), 0.25);
}

/* Vergleich: Teaser-Link auf dem Ergebnis-Screen */
.compare-teaser a {
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(var(--bs-primary-rgb), 0.35);
    padding-bottom: 2px;
    transition: border-color 0.2s ease;
}

.compare-teaser a:hover {
    border-bottom-color: #00aeef;
}

/* Vergleich: Antworten pro Frage */
.cmp-question {
    border-bottom: 1px solid #eef2f5;
    padding-bottom: 1rem;
}

.cmp-question:last-child {
    border-bottom: 0;
}

.cmp-row {
    margin-bottom: 0.6rem;
}

.cmp-row-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 4px;
    font-size: 0.92rem;
}

.cmp-answer-label {
    color: #333;
}

.cmp-pct {
    color: #6c757d;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.cmp-you-badge {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #00aeef;
    background: rgba(var(--bs-primary-rgb), 0.12);
    border-radius: 20px;
    padding: 1px 9px;
    vertical-align: middle;
}

.cmp-track {
    height: 10px;
    background: #eef2f5;
    border-radius: 6px;
    overflow: hidden;
}

.cmp-fill {
    height: 100%;
    background: #c2d0dd;
    border-radius: 6px;
    transition: width 0.6s ease;
}

.cmp-fill-own {
    background: #00aeef;
}
