/* ============================================
   SUPERAZUBI - Mobile-First Gold/Anthrazit
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #1E1E1C;
    overflow: hidden;
}

/* ============================================
   GDPR BANNER
   ============================================ */
.gdpr-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 28, 0.97);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.5s ease-in;
}

.gdpr-banner.hidden {
    display: none;
}

.gdpr-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 90%;
    width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gdpr-content h2 {
    color: #1E1E1C;
    margin-bottom: 16px;
    font-size: 24px;
}

.gdpr-content p {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
    font-size: 15px;
}

.gdpr-content a {
    color: #FABD42;
    text-decoration: none;
    font-weight: 600;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 30, 28, 0.95);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    z-index: 999;
    border-top: 2px solid #FABD42;
    backdrop-filter: blur(10px);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    flex: 1;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-content a {
    color: #FABD42;
    text-decoration: none;
    font-weight: 600;
}

/* ============================================
   APP CONTAINER - Mobile First
   ============================================ */
.app-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1E1E1C;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.app-container.hidden {
    display: none;
}

/* ============================================
   COMIC IMAGE - Responsive Fullscreen auf Mobile
   ============================================ */
.comic-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1E1E1C;
    transition: transform 0.6s ease-in-out;
    transform-style: preserve-3d;
    animation: kenBurnsZoom 10s ease-out forwards;
}

@keyframes kenBurnsZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Desktop: zentriert mit max-width */
@media (min-width: 1024px) {
    .comic-image {
        position: relative;
        max-width: 1200px;
        max-height: 90vh;
        width: auto;
        height: auto;
        aspect-ratio: 4/3;
        background-size: contain;
    }
}

.comic-image.flip-out {
    animation: flipOut 0.3s ease-out forwards;
}

@keyframes flipOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.comic-image.flip-in {
    animation: flipIn 0.3s ease-in forwards;
}

@keyframes flipIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.comic-image.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
}

/* ============================================
   NAVIGATION AREA - Gold Buttons
   ============================================ */
.navigation-area {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    z-index: 100;
    flex-wrap: nowrap;
    width: calc(100% - 24px);
    max-width: 600px;
    padding: 12px 16px;
    background: rgba(30, 30, 28, 0.9);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
    .navigation-area {
        max-width: 700px;
        padding: 14px 20px;
    }
}

.page-counter {
    color: #FABD42;
    font-size: 16px;
    font-weight: 700;
    min-width: 70px;
    text-align: center;
    flex: 0 0 auto;
    letter-spacing: 0.5px;
}

/* ============================================
   NAV BUTTONS - Gold Pills iOS Style
   ============================================ */
.nav-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #FABD42 0%, #F4A521 100%);
    color: #1E1E1C;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
    text-transform: none;
    letter-spacing: 0;
    flex: 1;
    min-width: 100px;
}

@media (min-width: 768px) {
    .nav-btn {
        font-size: 16px;
        padding: 14px 28px;
        min-width: 120px;
    }
}

.nav-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #FCC64D 0%, #FABD42 100%);
    transform: translateY(-1px);
}

.nav-btn:active:not(:disabled) {
    transform: translateY(0);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #444;
    color: #888;
}

/* ============================================
   SWIPE INDICATOR
   ============================================ */



/* ============================================
   CONTENT OVERLAY (Quiz/Form)
   ============================================ */
.content-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 60vh;
    background: linear-gradient(180deg, rgba(30,30,28,0), rgba(30,30,28,0.98));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 90;
    padding: 20px;
    /*backdrop-filter: blur(10px);*/
}

.app-container.form-open .content-overlay {
    top: 0;
    bottom: 0;
    max-height: 100vh;
    background: linear-gradient(180deg, rgba(30,30,28,0.15), rgba(30,30,28,0.98));
}

@media (min-width: 768px) {
    .content-overlay {
        left: 50%;
        transform: translateX(-50%);
        max-width: 700px;
        border-radius: 20px 20px 0 0;
    }
}

.content-overlay.hidden {
    display: none !important;
}

.content-area {
    padding: 0;
    background: transparent;
    border: none;
}

/* ============================================
   QUIZ AREA
   ============================================ */
.quiz-area {
    position: relative;
    padding: 20px;
    background: rgba(30, 30, 28, 0.75);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: white;
    z-index: 100;
    border-radius: 16px;
}

.quiz-area.compact {
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    align-items: center;
    justify-content: flex-end;
}

.quiz-area.hidden {
    display: none !important;
}

.question-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.show-quiz-btn {
    width: auto;
    min-width: 220px;
    text-align: center;
    align-self: center;
    margin: 0 auto 12px auto;
    background: linear-gradient(135deg, #FABD42 0%, #F4A521 100%);
    color: #1E1E1C;
    font-weight: 800;
    letter-spacing: 0.2px;
    animation: pulse-soft 1.6s ease-in-out infinite;
    box-shadow: none;
    filter: none;
}

.show-quiz-btn.hidden {
    display: none;
}

@keyframes pulse-soft {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.question-text {
    font-size: 18px;
    font-weight: 700;
    color: #FABD42;
    margin-bottom: 8px;
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 768px) {
    .question-text {
        font-size: 20px;
    }
}

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

/* iOS-Style Picker Wheel */
.picker-wheel {
    position: relative;
    height: 140px;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-width: none;
    background: transparent;
    border-radius: 0;
    padding: 55px 0;
}

.picker-wheel::-webkit-scrollbar {
    display: none;
}

.picker-wheel::before,
.picker-wheel::after {
    display: none;
}

.picker-option {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    touch-action: pan-y;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.picker-option.active {
    color: #FABD42;
    font-size: 24px;
    font-weight: 800;
    transform: scale(1.2);
}

.picker-center-line {
    display: none;
}

/* Legacy select fallback */
.answer-select {
    padding: 14px;
    border: 2px solid #FABD42;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(250, 189, 66, 0.1);
    color: #fff;
    font-weight: 600;
}

.answer-select:focus {
    outline: none;
    border-color: #FABD42;
    background: rgba(250, 189, 66, 0.2);
    box-shadow: 0 0 0 4px rgba(250, 189, 66, 0.2);
}

.answer-select:hover {
    border-color: #FCC64D;
    background: rgba(250, 189, 66, 0.15);
}

/* ============================================
   BUTTONS (Generic)
   ============================================ */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
    touch-action: manipulation;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #FABD42 0%, #F4A521 100%);
    color: #1E1E1C;
    box-shadow: none;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #FCC64D 0%, #FABD42 100%);
    box-shadow: none;
}

.btn-secondary {
    background: rgba(250, 189, 66, 0.15);
    color: #FABD42;
    border: 2px solid #FABD42;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(250, 189, 66, 0.25);
}

.btn-large {
    padding: 16px 32px;
    font-size: 17px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

#submitAnswerBtn {
    background: linear-gradient(135deg, #FABD42 0%, #F4A521 100%);
    color: #1E1E1C;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    width: 100%;
}

#submitAnswerBtn:hover {
    background: linear-gradient(135deg, #FCC64D 0%, #FABD42 100%);
    box-shadow: none;
}

/* ============================================
   APPLICATION AREA
   ============================================ */
.application-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: white;
}

.application-area.hidden {
    display: none !important;
}

.application-area h2 {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.application-area > p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.5;
}

.application-area.compact .application-form,
.application-area.compact .consent-box,
.application-area.compact .age-notice,
.application-area.compact #downloadBtn {
    display: none !important;
}

.form-hint {
    text-align: center;
    color: #FABD42;
    font-weight: 700;
}

.app-container.form-open .form-hint,
.app-container.form-open .scroll-indicator {
    display: none !important;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 6px auto 8px auto;
    color: #FABD42;
    font-size: 32px;
}

.scroll-indicator .chevron {
    line-height: 1;
    animation: chevron-pulse 1.6s ease-in-out infinite;
}

.scroll-indicator .chevron:nth-child(1) { animation-delay: 0s; }
.scroll-indicator .chevron:nth-child(2) { animation-delay: 0.2s; }
.scroll-indicator .chevron:nth-child(3) { animation-delay: 0.4s; }

@keyframes chevron-pulse {
    0% { opacity: 0.2; transform: translateY(6px); }
    50% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0.2; transform: translateY(-6px); }
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-container.form-open .comic-image {
    filter: blur(8px);
    transition: filter 0.3s ease;
}

.age-notice {
    background: #FABD42;
    color: #1a1a1a;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.consent-box {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(250, 189, 66, 0.4);
    border-radius: 14px;
    padding: 14px;
    color: #f5f5f5;
    line-height: 1.5;
}

.consent-box p {
    margin-bottom: 10px;
    font-size: 14px;
}

.consent-box a {
    color: #FABD42;
    text-decoration: none;
    font-weight: 600;
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.consent-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #FABD42;
}

.application-form input,
.application-form textarea {
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    font-size: 17px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 8px 24px rgba(0, 0, 0, 0.25);
}

.application-form input:focus,
.application-form textarea:focus {
    outline: none;
    border-color: rgba(250, 189, 66, 0.9);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 4px rgba(250, 189, 66, 0.2), 0 12px 30px rgba(0, 0, 0, 0.35);
}

.application-form input::placeholder,
.application-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   GDPR MODAL
   ============================================ */
.gdpr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(6px);
    padding: 20px;
}

.gdpr-modal.hidden {
    display: none;
}

.gdpr-modal-content {
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    overflow-y: auto;
    background: rgba(20, 20, 20, 0.98);
    border: 2px solid rgba(250, 189, 66, 0.4);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gdpr-modal-content h2 {
    color: #FABD42;
    font-size: 26px;
    text-align: center;
    margin-bottom: 18px;
}

.gdpr-modal-body {
    color: #ddd;
    line-height: 1.6;
    font-size: 16px;
}

.gdpr-modal-body a {
    color: #FABD42;
    text-decoration: none;
    font-weight: 600;
}

.gdpr-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.gdpr-modal-buttons .btn {
    width: 100%;
}

/* ============================================
   ERROR OVERLAY
   ============================================ */
.error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(220, 53, 69, 0.6);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(5px);
    clip-path: circle(0% at 50% 50%);
}

.error-overlay.hidden {
    display: none !important;
}

.error-overlay.show {
    display: flex !important;
    opacity: 1;
    animation: circleExpand 0.4s ease-out forwards;
}

@keyframes circleExpand {
    0% { 
        clip-path: circle(0% at 50% 50%); 
    }
    100% { 
        clip-path: circle(150% at 50% 50%); 
    }
}

.error-overlay .overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: contentFadeIn 0.3s ease-out 0.3s forwards;
}

@keyframes contentFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.error-overlay.shake .overlay-content {
    animation: overlayShake 0.5s ease-in-out, contentFadeIn 0.3s ease-out 0.3s forwards;
}

@keyframes overlayShake {
    0%, 100% { transform: translateX(0) scale(1); }
    25% { transform: translateX(-15px) scale(1); }
    50% { transform: translateX(15px) scale(1); }
    75% { transform: translateX(-15px) scale(1); }
}

.thumbs-down {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

.error-overlay p {
    color: rgba(220, 53, 69, 0.8);
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    margin: 0;
}

.error-overlay .overlay-title {
    font-size: 48px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.error-overlay .overlay-subtitle {
    font-size: 20px;
    font-weight: normal;
}

/* ============================================
   SUCCESS OVERLAY
   ============================================ */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 167, 69, 0.6);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(5px);
    clip-path: circle(0% at 50% 50%);
}

.success-overlay.hidden {
    display: none !important;
}

.success-overlay.show {
    display: flex !important;
    opacity: 1;
    animation: circleExpand 0.4s ease-out forwards;
}

.success-overlay .overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: contentFadeIn 0.3s ease-out 0.3s forwards;
}

.thumbs-up {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 0.6s ease-in-out;
}

.success-overlay p {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
