/**
 * Frontend Styles for Wild auf Leben Score Plugin
 * Responsive design for quiz, teaser, and result pages
 */

/* ===========================
   Quiz Container
   =========================== */
.wildaufleben-quiz-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.quiz-intro {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.quiz-intro h2 {
    color: #1a1a1a;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.quiz-intro p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.quiz-dimension-header {
    margin: 32px 0 16px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #1f2937;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.4px;
}

/* ===========================
   Quiz Sections
   =========================== */
.quiz-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #19abe2;
}

.quiz-section label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.section-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

.quiz3-fulltext {
    margin-bottom: 20px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.quiz3-fulltext p {
    margin: 0 0 12px 0;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
    font-style: normal;
}

.quiz3-fulltext p:last-child {
    margin-bottom: 0;
}

.quiz-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.field-group input[type="text"],
.field-group input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
}

.field-group input[type="text"]:focus,
.field-group input[type="email"]:focus {
    outline: none;
    border-color: #19abe2;
    box-shadow: 0 0 0 3px rgba(25, 171, 226, 0.14);
}

.routing-question {
    margin: 8px 0 14px;
}

.routing-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.routing-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d9d9d9;
}

.routing-options input[type="radio"] {
    margin: 0;
}

.partnerschaft-variant-content {
    margin-bottom: 12px;
}

/* ===========================
   Dimension Badges
   =========================== */
.dimension-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dimension-badge.kraft {
    background: #FF5722;
    color: white;
}

.dimension-badge.klarheit {
    background: #2196F3;
    color: white;
}

.dimension-badge.verbindung {
    background: #9C27B0;
    color: white;
}

.dimension-badge.wirkung {
    background: #0c71c3;
    color: white;
}

/* ===========================
   Sliders
   =========================== */
.slider-container {
    margin-top: 15px;
}

.quiz-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #ff5252 0%, #ffb300 45%, #19abe2 75%, #0c71c3 100%);
    outline: none;
    -webkit-appearance: none;
}

.quiz-slider:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.25);
}

.quiz-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.quiz-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.quiz-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: none;
    transition: transform 0.2s;
}

.quiz-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.slider-labels .current-value {
    font-weight: 700;
    font-size: 24px;
    color: #333;
}

/* ===========================
   DSGVO Notice & Submit
   =========================== */
.dsgvo-notice {
    margin: 30px 0;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    text-align: center;
}

.quiz-submit {
    text-align: center;
    margin-top: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: #0c71c3;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(12, 113, 195, 0.3);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 113, 195, 0.4);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-large {
    padding: 20px 60px;
    font-size: 20px;
}

/* ===========================
   Loading Spinner
   =========================== */
#quiz-loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #19abe2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===========================
   Teaser Result
   =========================== */
#quiz-teaser {
    text-align: center;
    padding: 40px;
}

.teaser-content h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.teaser-score {
    margin: 40px 0;
}

.score-circle {
    display: inline-block;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgb(25, 171, 226) 0%, #1495c6 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(25, 171, 226, 0.35);
    margin-bottom: 20px;
}

.score-number {
    font-size: 72px;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.score-max {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
}

.zone-badge {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.zone-badge-large {
    padding: 16px 40px;
    font-size: 28px;
}

.teaser-hebel {
    margin: 40px 0;
    padding: 30px;
    background: #f0f8ff;
    border-radius: 12px;
    border-left: 6px solid #2196F3;
}

.teaser-hebel h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.hebel-text {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
}

/* ===========================
   Email Gate
   =========================== */
.email-gate {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.email-gate h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: white;
}

.email-gate p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.95;
}

#email-gate-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

#email-gate-form input[type="email"] {
    padding: 16px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    text-align: center;
}

#email-gate-form .btn-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#email-gate-form .btn-primary:hover {
    background: #f8f8f8;
    color: #667eea;
}

/* ===========================
   Success Message
   =========================== */
#quiz-success {
    text-align: center;
    padding: 60px 40px;
}

.success-content h2 {
    font-size: 36px;
    color: #19abe2;
    margin-bottom: 20px;
}

.success-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

/* ===========================
   Result Page
   =========================== */
.wildaufleben-result-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.result-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.result-logo-wrap {
    margin-bottom: 14px;
}

.result-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    display: inline-block;
}

.result-header h1 {
    font-size: 36px;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.result-email {
    font-size: 16px;
    color: #666;
    margin: 5px 0;
}

.result-date {
    font-size: 14px;
    color: #999;
}

.result-overall-score {
    text-align: center;
    margin-bottom: 50px;
}

.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.score-circle-large {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgb(25, 171, 226) 0%, #1495c6 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(25, 171, 226, 0.35);
}

.score-circle-large .score-number {
    font-size: 96px;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.score-circle-large .score-max {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.8);
}

.zone-title {
    font-size: 28px;
    color: #333;
}

.zone-badge-large.level-schlafend,
.zone-badge-large.level-schlafen {
    background: #f44336;
    color: #fff;
}

.zone-badge-large.level-erwacht {
    background: #ff9800;
    color: #fff;
}

.zone-badge-large.level-aktiv {
    background: #2196f3;
    color: #fff;
}

.zone-badge-large.level-unaufhaltbar {
    background: rgb(25, 171, 226);
    color: #fff;
}

/* Zone Badge Colors */
.zone-ueberleben, .zone-badge.zone-ueberleben {
    background: #ff5252;
    color: white;
}

.zone-leben, .zone-badge.zone-leben {
    background: #ffc107;
    color: #333;
}

.zone-wild, .zone-badge.zone-wild {
    background: #19abe2;
    color: white;
}

/* Result Sections */
.result-section {
    margin-bottom: 50px;
}

.result-section h2 {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #19abe2;
}

.content-box {
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 6px solid #19abe2;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.content-box.highlight {
    background: #e8f5e9;
    border-left-color: #19abe2;
}

.content-box.warning {
    background: #fff3e0;
    border-left-color: #ff9800;
}

/* Dimensions Grid */
.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dimension-card {
    padding: 25px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.dimension-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.dimension-card.weakest {
    border-color: #ff9800;
    background: #fff3e0;
}

.dimension-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.dimension-score {
    font-size: 36px;
    font-weight: 700;
    color: #19abe2;
    margin-bottom: 10px;
}

.badge-hebel {
    display: inline-block;
    padding: 6px 12px;
    background: #ff9800;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* Section Detail Cards */
.section-detail-card {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.section-detail-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section-header {
    padding: 20px 25px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.section-header h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.section-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.section-meta-line {
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    letter-spacing: 0.2px;
}

.level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.level-badge.schlafen {
    background: #f44336;
    color: white;
}

.level-badge.erwacht {
    background: #ff9800;
    color: white;
}

.level-badge.aktiv {
    background: #2196F3;
    color: white;
}

.level-badge.unaufhaltbar {
    background: #19abe2;
    color: white;
}

.score-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: #666;
    color: white;
}

.section-content {
    padding: 25px;
    background: white;
}

.section-content h4 {
    font-size: 20px;
    color: #19abe2;
    margin-bottom: 15px;
}

/* Result CTA */
.result-cta {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(180deg, #0a4f93 0%, #0c71c3 35%, #1495c6 68%, rgb(25, 171, 226) 100%);
    border-radius: 12px;
    color: white;
    margin-top: 60px;
}

.result-cta h2 {
    font-size: 32px;
    color: white;
    border: none;
    margin-bottom: 24px;
    padding-bottom: 0;
}

.result-cta-inline {
    margin-top: 24px;
    padding: 28px 24px;
}

.result-cta-inline h2 {
    font-size: 24px;
    margin-bottom: 18px;
}

/* Error Page */
.wildaufleben-result-error {
    max-width: 600px;
    margin: 60px auto;
    padding: 60px 40px;
    text-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.error-icon {
    font-size: 72px;
    margin-bottom: 20px;
}

.wildaufleben-result-error h2 {
    font-size: 32px;
    color: #f44336;
    margin-bottom: 15px;
}

.wildaufleben-result-error p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .wildaufleben-quiz-container,
    .wildaufleben-result-container {
        padding: 20px;
        margin: 20px auto;
    }

    .wildaufleben-quiz-container {
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        border-radius: 0;
        box-shadow: none;
        padding: 16px;
    }

    .wildaufleben-result-container {
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        border-radius: 0;
        box-shadow: none;
        padding: 16px;
    }
    
    .quiz-intro h2,
    .teaser-content h2 {
        font-size: 24px;
    }
    
    .quiz-section {
        padding: 15px;
    }

    .quiz-contact-grid {
        grid-template-columns: 1fr;
    }

    .routing-options {
        flex-direction: column;
        gap: 10px;
    }

    .routing-options label {
        width: 100%;
        justify-content: flex-start;
    }
    
    .quiz-section label {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .score-circle {
        width: 150px;
        height: 150px;
    }
    
    .score-number {
        font-size: 56px;
    }
    
    .score-max {
        font-size: 18px;
    }
    
    .score-circle-large {
        width: 180px;
        height: 180px;
    }
    
    .score-circle-large .score-number {
        font-size: 64px;
    }
    
    .score-circle-large .score-max {
        font-size: 24px;
    }
    
    .email-gate {
        padding: 25px 20px;
    }
    
    .email-gate h3 {
        font-size: 22px;
    }
    
    .result-header h1 {
        font-size: 28px;
    }

    .zone-title {
        font-size: 20px;
        line-height: 1.35;
    }

    .zone-badge-large {
        display: inline-block;
        margin-top: 8px;
        padding: 10px 18px;
        font-size: 18px;
        line-height: 1.2;
    }
    
    .result-section h2 {
        font-size: 24px;
    }
    
    .dimensions-grid {
        grid-template-columns: 1fr;
    }
    
    .result-cta {
        padding: 40px 20px;
    }
    
    .result-cta h2 {
        font-size: 24px;
    }

    .result-cta-inline h2 {
        font-size: 20px;
    }
    
    .btn-primary {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .btn-large {
        padding: 16px 40px;
        font-size: 18px;
    }
}
