/**
 * Futterratgeber Template - Scoped CSS
 * Alle Styles sind unter [data-fr-app] gescoped
 * Klassen-Präfix: .fr-*
 */

/* ==========================================================================
   BASE STYLES - Nur innerhalb [data-fr-app]
   ========================================================================== */

[data-fr-app] {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

[data-fr-app] * {
    box-sizing: border-box;
}

/* ==========================================================================
   NAVIGATION STYLES
   ========================================================================== */

[data-fr-app] .fr-navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

[data-fr-app] .fr-navbar-brand {
    font-weight: 700;
    color: #2c5530 !important;
    text-decoration: none;
}

[data-fr-app] .fr-navbar-brand:hover {
    color: #1a3d1f !important;
}

[data-fr-app] .fr-nav-link {
    color: #666 !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

[data-fr-app] .fr-nav-link:hover {
    color: #2c5530 !important;
}

[data-fr-app] .fr-breadcrumb {
    background: #f8f9fa;
    padding: 0.75rem 0;
    margin: 0;
}

[data-fr-app] .fr-breadcrumb-item a {
    color: #2c5530;
    text-decoration: none;
}

[data-fr-app] .fr-breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   HERO SECTION STYLES
   ========================================================================== */

[data-fr-app] .fr-hero {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

[data-fr-app] .fr-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 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="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

[data-fr-app] .fr-hero-content {
    position: relative;
    z-index: 2;
}

[data-fr-app] .fr-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

[data-fr-app] .fr-hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

[data-fr-app] .fr-hero-icon {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8rem;
    opacity: 0.2;
}

/* Hero Buttons */
[data-fr-app] .fr-btn-hero-primary {
    background: white;
    color: #2c5530;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

[data-fr-app] .fr-btn-hero-primary:hover {
    background: #f8f9fa;
    color: #1a3d1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

[data-fr-app] .fr-btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

[data-fr-app] .fr-btn-hero-secondary:hover {
    background: white;
    color: #2c5530;
    transform: translateY(-2px);
}

/* ==========================================================================
   INTRO SECTION STYLES
   ========================================================================== */

[data-fr-app] .fr-intro {
    padding: 3rem 0;
    background: #f8f9fa;
}

[data-fr-app] .fr-intro-alert {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

[data-fr-app] .fr-intro-text {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   CONTENT GRID STYLES
   ========================================================================== */

[data-fr-app] .fr-content-section {
    padding: 4rem 0;
}

[data-fr-app] .fr-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #2c5530;
}

[data-fr-app] .fr-section-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
}

/* Category Cards */
[data-fr-app] .fr-category-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    position: relative;
    overflow: hidden;
}

[data-fr-app] .fr-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c5530, #4a7c59);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

[data-fr-app] .fr-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

[data-fr-app] .fr-category-card:hover::before {
    transform: scaleX(1);
}

[data-fr-app] .fr-category-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #2c5530;
}

[data-fr-app] .fr-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

[data-fr-app] .fr-category-description {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

[data-fr-app] .fr-category-btn {
    background: #2c5530;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

[data-fr-app] .fr-category-btn:hover {
    background: #1a3d1f;
    color: white;
    transform: translateY(-2px);
}

/* Image Ratio Wrapper */
[data-fr-app] .fr-image-ratio {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 60%; /* 5:3 Aspect Ratio */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

[data-fr-app] .fr-image-ratio img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

[data-fr-app] .fr-category-card:hover .fr-image-ratio img {
    transform: scale(1.05);
}

/* ==========================================================================
   FAQ SECTION STYLES
   ========================================================================== */

[data-fr-app] .fr-faq-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

[data-fr-app] .fr-accordion {
    max-width: 800px;
    margin: 0 auto;
}

[data-fr-app] .fr-accordion-item {
    background: white;
    border: none;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

[data-fr-app] .fr-accordion-header {
    margin: 0;
}

[data-fr-app] .fr-accordion-button {
    background: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    color: #333;
    text-align: left;
    width: 100%;
    position: relative;
    transition: all 0.3s ease;
}

[data-fr-app] .fr-accordion-button:not(.collapsed) {
    background: #2c5530;
    color: white;
}

[data-fr-app] .fr-accordion-button::after {
    content: '\f067'; /* Plus icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

[data-fr-app] .fr-accordion-button:not(.collapsed)::after {
    content: '\f068'; /* Minus icon */
    transform: translateY(-50%) rotate(180deg);
}

[data-fr-app] .fr-accordion-body {
    padding: 1.5rem;
    background: white;
    color: #666;
    line-height: 1.6;
}

/* ==========================================================================
   CTA SECTION STYLES
   ========================================================================== */

[data-fr-app] .fr-cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    text-align: center;
}

[data-fr-app] .fr-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

[data-fr-app] .fr-cta-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

[data-fr-app] .fr-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

[data-fr-app] .fr-cta-btn {
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

[data-fr-app] .fr-cta-btn-primary {
    background: white;
    color: #2c5530;
    border: 2px solid white;
}

[data-fr-app] .fr-cta-btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

[data-fr-app] .fr-cta-btn-success {
    background: #28a745;
    color: white;
    border: 2px solid #28a745;
}

[data-fr-app] .fr-cta-btn-success:hover {
    background: #218838;
    border-color: #218838;
    color: white;
    transform: translateY(-2px);
}

[data-fr-app] .fr-cta-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

[data-fr-app] .fr-cta-btn-outline:hover {
    background: white;
    color: #2c5530;
    transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

[data-fr-app] .fr-footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 2rem 0;
}

[data-fr-app] .fr-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

[data-fr-app] .fr-footer-text {
    margin: 0;
}

[data-fr-app] .fr-footer-links {
    display: flex;
    gap: 2rem;
}

[data-fr-app] .fr-footer-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

[data-fr-app] .fr-footer-link:hover {
    color: white;
}

[data-fr-app] .fr-footer-small {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

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

[data-fr-app] .fr-text-primary {
    color: #2c5530 !important;
}

[data-fr-app] .fr-bg-primary {
    background-color: #2c5530 !important;
}

[data-fr-app] .fr-border-primary {
    border-color: #2c5530 !important;
}

[data-fr-app] .fr-shadow-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

[data-fr-app] .fr-shadow-md {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

[data-fr-app] .fr-shadow-lg {
    box-shadow: 0 8px 30px rgba(0,0,0,0.2) !important;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 768px) {
    [data-fr-app] .fr-hero-title {
        font-size: 2.5rem;
    }
    
    [data-fr-app] .fr-hero-icon {
        display: none;
    }
    
    [data-fr-app] .fr-section-title {
        font-size: 2rem;
    }
    
    [data-fr-app] .fr-cta-title {
        font-size: 2rem;
    }
    
    [data-fr-app] .fr-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    [data-fr-app] .fr-cta-btn {
        justify-content: center;
    }
    
    [data-fr-app] .fr-footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    [data-fr-app] .fr-footer-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    [data-fr-app] .fr-hero {
        padding: 2rem 0;
    }
    
    [data-fr-app] .fr-hero-title {
        font-size: 2rem;
    }
    
    [data-fr-app] .fr-category-card {
        padding: 1.5rem;
    }
    
    [data-fr-app] .fr-accordion-button,
    [data-fr-app] .fr-accordion-body {
        padding: 1rem;
    }
}

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

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

[data-fr-app] .fr-animate-fade-in-up {
    animation: fr-fadeInUp 0.6s ease-out;
}

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

[data-fr-app] .fr-animate-pulse {
    animation: fr-pulse 2s infinite;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    [data-fr-app] .fr-navbar,
    [data-fr-app] .fr-cta-section,
    [data-fr-app] .fr-footer {
        display: none !important;
    }
    
    [data-fr-app] .fr-hero {
        background: none !important;
        color: #333 !important;
    }
    
    [data-fr-app] .fr-category-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

