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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #339966 0%, #2d8659 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    padding: 30px 20px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.card h2 {
    color: #339966;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.card > p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.frage {
    margin-bottom: 25px;
}

.frage label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1.05em;
}

.frage select,
.frage textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

.frage select:focus,
.frage textarea:focus {
    outline: none;
    border-color: #339966;
}

.frage textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #339966 0%, #2d8659 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(51, 153, 102, 0.4);
}

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

/* Loading Animation */
.loading-animation {
    text-align: center;
    padding: 40px 20px;
}

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

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

.loading-animation h3 {
    color: #339966;
    margin-bottom: 10px;
}

.loading-animation p {
    color: #666;
}

/* Ergebnis */
.info-box {
    background: #f0f4ff;
    border-left: 4px solid #339966;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.info-box strong {
    color: #339966;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.info-box p {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.produkt-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.produkt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.produkt-nummer {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #339966 0%, #2d8659 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.produkt-card h3 {
    color: #333;
    margin-bottom: 10px;
    padding-right: 50px;
    font-size: 1.3em;
}

.preis {
    color: #339966;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.warum {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-kaufen {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #339966 0%, #2d8659 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-kaufen:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 153, 102, 0.4);
}

.btn-neu {
    width: 100%;
    padding: 15px;
    background: #f3f4f6;
    color: #333;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}

.btn-neu:hover {
    background: #e5e7eb;
}

/* Fehler */
.fehler {
    background: #fee;
    border-left: 4px solid #f44;
}

.fehler h2 {
    color: #f44;
}

#fehler-text {
    color: #333;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    header h1 {
        font-size: 1.6em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    .card {
        padding: 20px;
        border-radius: 15px;
    }
    
    .produkt-nummer {
        width: 30px;
        height: 30px;
        font-size: 0.9em;
    }
    
    .produkt-card h3 {
        font-size: 1.15em;
    }
    
    .preis {
        font-size: 1.1em;
    }
    
    .warum {
        font-size: 1em;
    }
    
    .btn-kaufen {
        font-size: 1em;
        padding: 14px 25px;
        width: 100%;
        text-align: center;
    }
    
    .btn-neu {
        font-size: 1em;
        padding: 14px;
    }
}

/* Quiz-Style Additions */

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #339966 0%, #2d8659 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 30px;
}

/* Quiz Steps */
.quiz-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.quiz-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle-question {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 25px;
    text-align: center;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.option-btn {
    background: white;
    border: 3px solid #e5e7eb;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 120px;
}

.option-btn:hover {
    border-color: #339966;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(51, 153, 102, 0.2);
}

.option-btn.selected {
    border-color: #339966;
    background: linear-gradient(135deg, rgba(51, 153, 102, 0.1) 0%, rgba(45, 134, 89, 0.1) 100%);
}

.option-btn .emoji {
    font-size: 2.5em;
}

.option-btn .text {
    font-weight: 600;
    color: #333;
    text-align: center;
    font-size: 0.95em;
}

/* Navigation */
.quiz-navigation {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.btn-back {
    padding: 10px 20px;
    background: transparent;
    color: #666;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-back:hover {
    color: #339966;
    background: rgba(51, 153, 102, 0.1);
}

.btn-next {
    padding: 16px 40px;
    background: linear-gradient(135deg, #339966 0%, #2d8659 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex-grow: 1;
    max-width: 300px;
    margin-left: auto;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(51, 153, 102, 0.4);
}

/* Navigation container in each step */
.step-navigation {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.step-navigation .btn-back {
    margin-right: auto;
}

/* Responsive for quiz */
@media (max-width: 600px) {
    .options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .option-btn {
        min-height: 80px;
        padding: 18px 20px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .option-btn .emoji {
        font-size: 2.2em;
    }
    
    .option-btn .text {
        font-size: 1.1em;
        text-align: left;
    }
    
    .card h2 {
        font-size: 1.4em;
    }
    
    .subtitle-question {
        font-size: 1em;
    }
    
    .btn-next {
        font-size: 1.1em;
        padding: 16px;
        max-width: none;
    }
    
    .btn-back {
        font-size: 0.9em;
        padding: 10px 15px;
    }
    
    .progress-text {
        font-size: 1em;
    }
    
    .step-navigation {
        flex-direction: row;
        gap: 10px;
    }
    
    .step-navigation .btn-next {
        flex-grow: 1;
    }
}

/* Product Images */
.produkt-bild {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
    border-radius: 10px;
    object-fit: contain;
    background: #f9fafb;
    padding: 10px;
}

/* Adjust product card layout */
.produkt-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.produkt-card h3 {
    text-align: center;
    width: 100%;
}

.produkt-card .preis,
.produkt-card .warum {
    text-align: center;
}

/* Make sure product number doesn't overlap image */
.produkt-card .produkt-nummer {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

@media (max-width: 600px) {
    .produkt-bild {
        max-width: 150px;
    }
}

/* Tipp/Empfehlungs-Box Styling - wie im Original */
.info-box {
    background-color: #FFF9E6;  /* Beige/Creme Hintergrund */
    border-left: 5px solid #FF8C00;  /* Orange linker Border */
    padding: 20px 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-box strong {
    color: #FF8C00;  /* Orange Text für "Empfehlung:" */
    font-size: 1.1em;
    display: block;
    margin-bottom: 10px;
}

.info-box p {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Alle in Warenkorb Button */
.alle-in-warenkorb-container {
}

/* Loading Hinweis */
.loading-hinweis {
    margin-top: 15px;
    color: #339966;
    font-weight: 600;
    font-size: 0.95em;
}
