/* ===================================
   Pizza Toolkit - Zentrale CSS
   Version: 2.0
   Basierend auf Mehl-Guide Design
=================================== */

/* CSS Custom Properties */
:root {
    /* Hauptfarben */
    --primary-color: #dc3545;
    --primary-dark: #c82333;
    --primary-light: #e74c3c;
    --primary-pale: #fee5e7;
    
    /* Hintergründe */
    --background: #f8f9fa;
    --surface: #ffffff;
    --surface-light: #f8f9fa;
    
    /* Textfarben */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #868e96;
    
    /* Utility */
    --border: #dee2e6;
    --success: #28a745;
    --warning: #ffc107;
    --error: #dc3545;
    
    /* Layout */
    --radius: 12px;
    --radius-small: 8px;
    --radius-large: 20px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(220, 53, 69, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Breakpoints als CSS-Variablen für JS */
    --breakpoint-mobile: 480px;
    --breakpoint-tablet: 768px;
    --breakpoint-desktop: 1024px;
}

/* ===================================
   Reset & Base Styles
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px; /* Space for bottom nav */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Container & Layout
=================================== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 80px);
}

.container-wide {
    max-width: 1200px;
}

.container-narrow {
    max-width: 600px;
}

/* ===================================
   Page Header
=================================== */
.page-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl) var(--space-md);
    animation: fadeIn 0.4s ease-out;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ===================================
   Cards & Containers
=================================== */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.card-content {
    padding: var(--space-xl) var(--space-lg);
}

.card-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
    background: var(--surface-light);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===================================
   Forms
=================================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-small);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

/* ===================================
   Buttons
=================================== */
.btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--surface-light);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    border-color: var(--text-secondary);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-height: 36px;
}

.btn-block {
    width: 100%;
}

/* ===================================
   Grid Layouts
=================================== */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* ===================================
   Quiz Specific
=================================== */
.quiz-container {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.quiz-content {
    padding: var(--space-xl) var(--space-lg);
}

.question-container {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.question-container.active {
    display: block;
}

.question-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.question-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.question-description {
    font-size: 1rem;
    color: var(--text-secondary);
}

.answers-grid {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.answer-option {
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-lg);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.answer-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.answer-option.selected {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.02);
}

.answer-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.answer-emoji {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.answer-text {
    flex: 1;
}

.answer-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.answer-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===================================
   Results Section
=================================== */
.results-container {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.results-container.active {
    display: block;
}

.results-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.results-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.results-explanation {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Calculator Specific
=================================== */
.calculator-container {
    max-width: 600px;
    margin: 0 auto;
}

.ingredient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.ingredient-item {
    background: var(--surface-light);
    border-radius: var(--radius);
    padding: var(--space-lg);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.ingredient-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.ingredient-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-sm);
}

.ingredient-info h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===================================
   Navigation
=================================== */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-top: 1px solid var(--border);
    background: var(--surface-light);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 5px;
    min-width: 0;
    flex: 1;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active::after {
    opacity: 1;
}

.nav-icon {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.nav-text {
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ===================================
   Home Page Grid
=================================== */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.home-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.home-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.home-card:hover::before {
    transform: scaleX(1);
}

.home-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.home-card-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.home-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.home-card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* ===================================
   Utility Classes
=================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.bg-primary { background: var(--primary-color); }
.bg-light { background: var(--surface-light); }
.bg-white { background: var(--surface); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mt-5 { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-2xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-sm); }
.p-2 { padding: var(--space-md); }
.p-3 { padding: var(--space-lg); }
.p-4 { padding: var(--space-xl); }
.p-5 { padding: var(--space-2xl); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }

/* ===================================
   Footer
=================================== */
.footer-link {
    text-align: center;
    margin-top: var(--space-2xl);
    padding: var(--space-md);
}

.footer-link p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-link a:hover {
    text-decoration: underline;
}

/* ===================================
   Animations
=================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.4s ease-out;
}

.animate-slideIn {
    animation: slideIn 0.4s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ===================================
   Loading States
=================================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    color: var(--primary-color);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===================================
   Responsive Design
=================================== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .page-header {
        padding: var(--space-lg) var(--space-sm);
    }

    .card-content {
        padding: var(--space-lg) var(--space-md);
    }

    .quiz-content {
        padding: var(--space-lg) var(--space-md);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .quiz-navigation {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-md);
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .nav-text {
        font-size: 0.65rem;
    }

    .nav-icon {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .answer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }

    .answer-emoji {
        font-size: 2rem;
    }

    .ingredient-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-title {
        font-size: 1.8rem;
    }

    .nav-item {
        padding: 3px;
    }

    .nav-text {
        font-size: 0.6rem;
    }

    .nav-icon {
        font-size: 1.2rem;
    }
}

/* ===================================
   Print Styles
=================================== */
@media print {
    .bottom-nav,
    .quiz-navigation,
    .btn,
    .footer-link {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }

    .container {
        max-width: 100%;
    }
}

/* ===================================
   Accessibility
=================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #1a1a1a;
        --surface: #2d2d2d;
        --surface-light: #3a3a3a;
        --text-primary: #f0f0f0;
        --text-secondary: #b0b0b0;
        --text-muted: #808080;
        --border: #4a4a4a;
    }
}

    /* Zusätzliche Styles für die Startseite */
    .choice-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
        margin: 40px 0;
    }
    
    .choice-card {
        background: white;
        border-radius: 16px;
        padding: 32px;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
        cursor: pointer;
        text-decoration: none;
        color: inherit;
    }
    
    .choice-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }
    
    .choice-icon {
        font-size: 3rem;
        margin-bottom: 16px;
    }
    
    .choice-title {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 12px;
        color: #1a1a1a;
    }
    
    .choice-description {
        color: #666;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .choice-button {
        display: inline-block;
        background: linear-gradient(135deg, #e63946 0%, #dc3545 100%);
        color: white;
        padding: 12px 32px;
        border-radius: 8px;
        font-weight: 500;
        transition: all 0.2s ease;
        border: none;
        cursor: pointer;
    }
    
    .choice-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
    }
    
    .divider {
        text-align: center;
        margin: 32px 0;
        position: relative;
    }
    
    .divider::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 100%;
        height: 1px;
        background: #e0e0e0;
    }
    
    .divider-text {
        background: #f8f9fa;
        padding: 0 20px;
        position: relative;
        color: #999;
        font-weight: 500;
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    
    /* Equipment-spezifische Styles mit Bildunterstützung */

/* Bild-Container */
.card-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--surface-light);
}

.equipment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    opacity: 0;
}

.equipment-image.loaded {
    opacity: 1;
}

.equipment-image:hover {
    transform: scale(1.05);
}

/* Bild-Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(220, 53, 69, 0.1), 
        rgba(220, 53, 69, 0.05)
    );
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.card-image-container:hover .image-overlay {
    opacity: 1;
}

.card-icon-overlay {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Platzhalter für fehlende Bilder */
.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    color: var(--text-muted);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.placeholder-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Equipment-Card Anpassungen */
.equipment-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.equipment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(220, 53, 69, 0.2);
}

.equipment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
    z-index: 1;
}

.equipment-card:hover::before {
    transform: scaleX(1);
}

/* Card Content */
.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-header.with-image {
    margin-top: 0;
}

.card-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.card-title-group {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-brand {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.card-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-small);
    font-size: 0.75rem;
    font-weight: 600;
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.spec-badge {
    background: rgba(220, 53, 69, 0.08);
    color: var(--primary-color);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-small);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(220, 53, 69, 0.15);
}

.card-action {
    margin-top: auto;
}

/* Loading-Animation für Bilder */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.equipment-image:not(.loaded) {
    background: linear-gradient(
        90deg,
        #f0f0f0 0px,
        #e0e0e0 40px,
        #f0f0f0 80px
    );
    background-size: 200px;
    animation: shimmer 1.5s infinite;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .card-image-container {
        height: 180px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-header {
        gap: 0.75rem;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .image-overlay {
        padding: 0.75rem;
    }
    
    .card-icon-overlay {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .card-image-container {
        height: 160px;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .card-icon {
        align-self: center;
        font-size: 1.8rem;
    }
    
    .image-overlay {
        padding: 0.5rem;
    }
    
    .card-icon-overlay {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .placeholder-icon {
        font-size: 2.5rem;
    }
    
    .placeholder-text {
        font-size: 0.8rem;
    }
}

/* Performance-Optimierungen */
.equipment-card {
    contain: layout style paint;
}

.equipment-image {
    will-change: transform;
}

.equipment-card:hover .equipment-image {
    will-change: auto;
}

/* Fallback für langsamere Verbindungen */
@media (prefers-reduced-motion: reduce) {
    .equipment-image:hover {
        transform: none;
    }
    
    .image-overlay {
        opacity: 1;
    }
    
    .equipment-image:not(.loaded) {
        animation: none;
    }
}

/* Zutaten-spezifische Styles mit Bildunterstützung */

/* Produkt-Bild-Container */
.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--surface-light);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    opacity: 0;
}

.product-image.loaded {
    opacity: 1;
}

.product-image:hover {
    transform: scale(1.05);
}

/* Bild-Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(220, 53, 69, 0.1), 
        rgba(220, 53, 69, 0.05)
    );
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.product-image-container:hover .image-overlay {
    opacity: 1;
}

.product-icon-overlay {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Platzhalter für fehlende Bilder */
.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    color: var(--text-muted);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.placeholder-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Produkt-Karten Anpassungen */
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(220, 53, 69, 0.2);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
    z-index: 1;
}

.product-card:hover::before {
    transform: scaleX(1);
}

/* Produkt-Content */
.product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.product-header.with-image {
    margin-top: 0;
}

.product-icon {
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(231, 76, 60, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.product-origin {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-small);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.spec-tag {
    background: rgba(220, 53, 69, 0.08);
    color: var(--primary-color);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-small);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(220, 53, 69, 0.15);
}

.product-action {
    margin-top: auto;
}

/* Loading-Animation für Bilder */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.product-image:not(.loaded) {
    background: linear-gradient(
        90deg,
        #f0f0f0 0px,
        #e0e0e0 40px,
        #f0f0f0 80px
    );
    background-size: 200px;
    animation: shimmer 1.5s infinite;
}

/* Kategorie-spezifische Farbakzente */
.category-mehle .product-badge {
    background: linear-gradient(135deg, #8B4513, #A0522D);
}

.category-tomaten .product-badge {
    background: linear-gradient(135deg, #FF6347, #DC143C);
}

.category-spezialitaeten .product-badge {
    background: linear-gradient(135deg, #FF4500, #FF6347);
}

.category-pasta .product-badge {
    background: linear-gradient(135deg, #DAA520, #FFD700);
}

/* Badge-Variationen für verschiedene Herkunft */
.badge-italien {
    background: linear-gradient(135deg, #008C45, #CD212A) !important;
}

.badge-kalabrien {
    background: linear-gradient(135deg, #FF4500, #8B0000) !important;
}

.badge-kampanien {
    background: linear-gradient(135deg, #4169E1, #000080) !important;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .product-image-container {
        height: 180px;
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .product-header {
        gap: 0.75rem;
    }
    
    .product-icon {
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .image-overlay {
        padding: 0.75rem;
    }
    
    .product-icon-overlay {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .product-image-container {
        height: 160px;
    }
    
    .product-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .product-icon {
        align-self: center;
        font-size: 1.8rem;
        width: 35px;
        height: 35px;
    }
    
    .image-overlay {
        padding: 0.5rem;
    }
    
    .product-icon-overlay {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .placeholder-icon {
        font-size: 2.5rem;
    }
    
    .placeholder-text {
        font-size: 0.8rem;
    }
}

/* WhatsApp-spezifische Styles */
.shop-link[data-link-type="whatsapp"] {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.shop-link[data-link-type="whatsapp"]:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    background: linear-gradient(135deg, #128C7E, #075E54);
}

/* Hochwertige Lebensmittel-spezifische Styles */
.premium-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B4513;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-small);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.dop-certified {
    background: linear-gradient(135deg, #008C45, #CD212A) !important;
    color: white !important;
}

.bio-certified {
    background: linear-gradient(135deg, #228B22, #32CD32) !important;
    color: white !important;
}

/* Performance-Optimierungen */
.product-card {
    contain: layout style paint;
}

.product-image {
    will-change: transform;
}

.product-card:hover .product-image {
    will-change: auto;
}

/* Accessibility Verbesserungen */
.product-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.shop-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Fallback für langsamere Verbindungen */
@media (prefers-reduced-motion: reduce) {
    .product-image:hover {
        transform: none;
    }
    
    .image-overlay {
        opacity: 1;
    }
    
    .product-image:not(.loaded) {
        animation: none;
    }
}

/* Dark mode support für Zutaten */
@media (prefers-color-scheme: dark) {
    .product-image-container {
        background: #3a3a3a;
    }
    
    .image-placeholder {
        background: #3a3a3a;
        color: #b0b0b0;
    }
    
    .product-icon-overlay {
        background: rgba(45, 45, 45, 0.9);
        color: #f0f0f0;
    }
}

/**
 * Quiz Enhancement CSS
 * Zusätzliche Styles für Produktempfehlungen und erweiterte Features
 */

/* ===== PRODUKTEMPFEHLUNGEN ===== */

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.recommendation-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.recommendation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #ff6b6b);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.recommendation-card:hover::before {
    transform: scaleX(1);
}

.recommendation-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.recommendation-card:hover .recommendation-image {
    transform: scale(1.05);
}

.recommendation-header {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.recommendation-icon {
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

.recommendation-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.recommendation-brand {
    margin: 0.25rem 0;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.recommendation-description {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommendation-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0.5rem 0;
}

.recommendation-spec {
    display: inline-block;
    font-size: 0.75rem;
    background: #f0f0f0;
    color: #666;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.recommendation-action {
    margin-top: 0.75rem;
}

.recommendation-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    border: none;
    cursor: pointer;
}

.recommendation-btn:hover {
    background: var(--primary-dark, #c82333);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    color: white;
    text-decoration: none;
}

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

/* ===== SEGMENT INFO ===== */

.segment-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.segment-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.segment-info-card > * {
    position: relative;
    z-index: 1;
}

.segment-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    opacity: 0.95;
}

.segment-description {
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
    opacity: 0.8;
    line-height: 1.4;
}

/* ===== BENEFITS LIST ===== */

.benefits-list {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.benefits-list h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.benefits-list ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #666;
}

.benefits-list li {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

/* ===== LOADING STATES ===== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    margin: 1rem;
}

.loading-spinner {
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: spin 2s linear infinite;
}

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

.loading-text {
    margin: 0;
    color: #666;
    font-weight: 500;
}

/* ===== QUIZ RESULT ENHANCEMENTS ===== */

.result-header {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.result-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(220, 53, 69, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.result-pizza {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.results-title {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 1rem;
}

.results-explanation {
    position: relative;
    z-index: 1;
    color: #555;
    line-height: 1.6;
}

/* ===== FEATURE BOXES ===== */

.feature-box {
    background: var(--surface-light, #f8f9fa);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.feature-text {
    margin: 0;
    color: #555;
    line-height: 1.4;
}

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

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* ===== CHECKBOX STYLING ===== */

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
    accent-color: var(--primary-color);
}

.checkbox-container:hover {
    color: #333;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .recommendation-card {
        padding: 0.75rem;
    }
    
    .result-header {
        padding: 1.5rem 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .results-title {
        font-size: 1.5rem;
    }
    
    .segment-info-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .benefits-list {
        padding: 0.75rem;
    }
    
    .loading-content {
        padding: 1.5rem;
        margin: 0.5rem;
    }
}

@media (max-width: 480px) {
    .recommendation-image {
        height: 120px;
    }
    
    .recommendation-title {
        font-size: 0.95rem;
    }
    
    .recommendation-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    
    .recommendation-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .results-title {
        font-size: 1.3rem;
    }
    
    .results-explanation {
        font-size: 0.9rem;
    }
}

/* ===== ANIMATIONS ===== */

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

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

.animate-slideUp {
    animation: slideUp 0.4s ease-out;
}

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

.animate-scaleIn {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== NOTIFICATION STYLES ===== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    z-index: 10000;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #28a745;
}

.notification.error {
    border-left: 4px solid #dc3545;
}

.notification.info {
    border-left: 4px solid #17a2b8;
}

.notification-icon {
    font-size: 1.2rem;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #333;
}

.notification-message {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.notification-close:hover {
    color: #666;
}

/* ===== DARK MODE SUPPORT ===== */

@media (prefers-color-scheme: dark) {
    .recommendation-card {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .recommendation-title {
        color: #f7fafc;
    }
    
    .recommendation-brand {
        color: #a0aec0;
    }
    
    .recommendation-description {
        color: #cbd5e0;
    }
    
    .recommendation-spec {
        background: #4a5568;
        color: #a0aec0;
    }
    
    .feature-box {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .loading-content {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .notification {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .notification-title {
        color: #f7fafc;
    }
    
    .notification-message {
        color: #cbd5e0;
    }
}

/* ===== UTILITY CLASSES ===== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }