/* ===================================
   ALLTAGS-HELFER-FINDER STYLES
   Warm, freundlich, nicht aufdringlich
   =================================== */

:root {
    --primary-color: #4a7c59;
    --primary-light: #6b9d7a;
    --primary-dark: #2d5a3d;
    --accent-color: #f4a261;
    --accent-light: #f8c794;
    --bg-color: #faf9f7;
    --card-bg: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #5a6c7d;
    --border-color: #e0ddd9;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.12);
    --success-color: #6b9d7a;
    --info-color: #5896c9;
    --warning-color: #f4a261;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   CONTAINER & LAYOUT
   =================================== */

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem 0.75rem;
    }
}

/* ===================================
   HEADER
   =================================== */

.finder-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 16px;
    color: white;
    box-shadow: 0 4px 20px var(--shadow);
}

.finder-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.finder-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.finder-header .subtitle {
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .finder-header h1 {
        font-size: 1.5rem;
    }
    .finder-header p {
        font-size: 1rem;
    }
}

/* ===================================
   PROGRESS BAR
   =================================== */

.progress-section {
    margin-bottom: 2.5rem;
}

.progress-bar {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    height: 8px;
    box-shadow: inset 0 1px 3px var(--shadow);
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    height: 100%;
    transition: width 0.4s ease;
    border-radius: 12px;
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===================================
   QUESTION CARD
   =================================== */

.question-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px var(--shadow);
    animation: slideIn 0.4s ease;
}

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

.question-card.hidden {
    display: none;
}

.question-number {
    display: inline-block;
    background: var(--primary-light);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* ===================================
   ANSWER OPTIONS
   =================================== */

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.answer-option {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.answer-option:hover {
    border-color: var(--primary-light);
    background: white;
    transform: translateX(4px);
}

.answer-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: white;
    font-weight: 500;
}

.answer-option input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.answer-option input[type="radio"]:checked {
    border-color: white;
    background: white;
}

.answer-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.answer-option.selected input[type="radio"]:checked::after {
    background: var(--primary-dark);
}

.answer-option label {
    cursor: pointer;
    flex: 1;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .answer-option {
        padding: 0.9rem 1rem;
    }
}

/* ===================================
   INSIGHT BOXES
   =================================== */

.insight-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid var(--accent-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.insight-box.visible {
    opacity: 1;
    max-height: 1000px;
    margin-bottom: 1rem;
}

.insight-item {
    margin-bottom: 1rem;
}

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

.insight-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.insight-label::before {
    font-size: 1.2rem;
}

.insight-text {
    color: var(--text-light);
    line-height: 1.6;
    padding-left: 1.75rem;
    font-size: 0.95rem;
}

/* ===================================
   BUTTONS
   =================================== */

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--primary-color);
    background: white;
}

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

@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}

/* ===================================
   RESULTS PAGE
   =================================== */

.results-container {
    display: none;
}

.results-container.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.results-header {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(74, 124, 89, 0.3);
}

.results-header h2 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.results-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
}

/* Score Summary */
.score-summary {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px var(--shadow);
}

.score-summary h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.score-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.score-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.score-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.score-bar {
    height: 28px;
    background: #e9ecef;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 14px;
    transition: width 1s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.8rem;
}

.score-value {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Priority Areas */
.priority-areas {
    margin-bottom: 3rem;
}

.priority-areas h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.priority-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.priority-card h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.priority-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.priority-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.priority-high {
    background: #ffe6e6;
    color: #d63031;
}

.priority-medium {
    background: #fff4e6;
    color: #e67e22;
}

.priority-low {
    background: #e6f7f1;
    color: #27ae60;
}

/* Product Recommendations */
.recommendations-section {
    margin-bottom: 3rem;
}

.recommendations-section h3 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    text-align: center;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-hover);
    border-color: var(--primary-light);
}

.product-rank {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.6rem 1.2rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--primary-color);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.bundle-badge-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
    z-index: 10;
}

.product-content {
    padding: 2rem;
}

.product-header {
    margin-bottom: 1rem;
}

.product-header h4 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

.product-helps {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.product-helps strong {
    color: var(--primary-color);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.8rem;
}

.product-helps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-helps li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

.product-helps li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
    gap: 1.5rem;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.price-current {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.price-original {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.price-savings {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #e8935d);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 162, 97, 0.5);
    background: linear-gradient(135deg, #e8935d, var(--accent-color));
}

@media (max-width: 768px) {
    .product-image-wrapper {
        height: 220px;
    }
    
    .product-content {
        padding: 1.5rem;
    }
    
    .product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .btn-primary {
        width: 100%;
        text-align: center;
    }
    
    .price-wrapper {
        justify-content: center;
    }
    
    .price-savings {
        text-align: center;
    }
}

.helps-with li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.product-cta {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.2s ease;
}

.product-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

/* Affiliates Section */
.affiliates-section {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.affiliates-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-align: center;
}

.section-note {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.affiliate-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    border: 2px solid transparent;
}

.affiliate-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--shadow-hover);
    border-color: var(--primary-light);
}

.affiliate-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.affiliate-content {
    flex: 1;
}

.affiliate-content h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.affiliate-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.btn-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Lead Magnet Section */
.lead-magnet-section {
    margin: 3rem 0;
}

.lead-magnet-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 3px solid #10B981;
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.2);
}

.lead-magnet-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.lead-magnet-content {
    flex: 1;
}

.lead-magnet-content h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.lead-magnet-content p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-download {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669, #047857);
}

@media (max-width: 768px) {
    .lead-magnet-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .lead-magnet-icon {
        font-size: 3rem;
    }
    
    .affiliate-card {
        flex-direction: column;
        text-align: center;
    }
    
    .affiliate-icon {
        font-size: 2.5rem;
    }
}

/* Restart Section */
.restart-section {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Back to Top */
.back-to-top {
    text-align: center;
    margin: 3rem 0 2rem 0;
}

.back-to-top a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-to-top a:hover {
    color: var(--primary-color);
}

/* ===================================
   MOBILE OPTIMIZATIONS
   =================================== */

@media (max-width: 768px) {
    .question-text {
        font-size: 1.1rem;
    }
    
    .results-header h2 {
        font-size: 1.5rem;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .affiliate-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   LOADING STATE
   =================================== */

.loading {
    text-align: center;
    padding: 3rem;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
