/* Complete ultra-modern mobile-first redesign with sophisticated aesthetics */
.breed-profile {
    background: #ffffff;
    color: #475569;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    max-width: 100vw;
    overflow-x: clip; /* Verhindert horizontales Scrollen, erlaubt aber sticky */
}

/* Desktop: Split-screen layout with sidebar TOC nur für Einleitung */
@media (min-width: 1024px) {
    .breed-profile {
        display: block; /* Kein Grid mehr für gesamte Page */
    }
    
    .breed-hero {
        /* Making hero smaller on desktop - reduced from 50vh to 30vh */
        min-height: 30vh;
        position: relative;
        /* Adding background image for desktop with proper sizing */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    /* Grid nur für TOC + Einleitung Bereich */
    .intro-layout {
        display: grid;
        grid-template-columns: 350px 1fr;
        grid-template-areas: "sidebar content";
        gap: 2rem;
        margin: 0 auto;
        max-width: 1400px;
        padding: 2rem;
        align-items: start;
    }
    
    .toc-container {
        grid-area: sidebar;
        position: static;
        height: fit-content;
        margin: 0;
        z-index: 100;
    }
    
    .intro-section {
        grid-area: content;
        padding: 0;
        margin: 0;
    }
    
    /* Alles nach der Einleitung bekommt normale Breite */
    .breed-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem 4rem;
    }
    
    .toc-card {
        background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
        border: 2px solid #e2e8f0;
        border-radius: 2rem;
        padding: 2.5rem;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
        backdrop-filter: none;
        min-height: 600px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .toc-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 35px 80px rgba(0, 0, 0, 0.2);
        border-color: #059669;
    }
    
    .toc-title {
        font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
        font-size: 2rem;
        font-weight: 600;
        color: #059669;
        margin: 0 0 2rem 0;
        text-align: center;
        letter-spacing: -0.01em;
        background: linear-gradient(135deg, #059669, #10b981);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .toc-grid {
        display: grid;
        gap: 1rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .toc-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1.25rem 1.5rem;
        color: #475569;
        text-decoration: none;
        border-radius: 1.25rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-weight: 500;
        font-size: 1rem;
        background: rgba(5, 150, 105, 0.08);
        border: 2px solid transparent;
        position: relative;
        overflow: hidden;
    }
    
    .toc-link::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.5s;
    }
    
    .toc-link:hover::after {
        left: 100%;
    }
    
    .toc-link:hover {
        background: linear-gradient(135deg, #059669, #10b981);
        border-color: #059669;
        transform: translateX(8px);
        box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
    }
    
    /* Desktop content layout improvements */
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        margin-bottom: 5rem;
    }
    
    .data-card {
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border: 2px solid #e2e8f0;
        border-radius: 2rem;
        padding: 2.5rem;
        position: relative;
        overflow: hidden;
    }
    
    .data-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg, #059669, #10b981, #059669);
    }
    
    .data-card::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100px;
        height: 100px;
        background: radial-gradient(circle, rgba(5, 150, 105, 0.1) 0%, transparent 70%);
        border-radius: 50%;
        transform: translate(30px, -30px);
    }
    
    .data-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
        border-color: #10b981;
    }
    
    .data-card h3 {
        font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
        font-size: 1.75rem;
        font-weight: 600;
        color: #059669;
        margin: 0 0 2rem 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .data-card h3 span {
        font-size: 1.8rem;
    }
    
    .data-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
        border-bottom: 2px solid #f1f5f9;
    }
    
    .data-item:last-child {
        border-bottom: none;
    }
    
    .data-label {
        font-weight: 600;
        color: #64748b;
        font-size: 1rem;
    }
    
    .data-value {
        font-weight: 600;
        color: #059669;
        font-size: 1.1rem;
        background: linear-gradient(135deg, rgba(5, 150, 105, 0.15), rgba(16, 185, 129, 0.1));
        padding: 0.5rem 1rem;
        border-radius: 0.75rem;
    }
    
    .history-section {
        background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f0fdf4 100%);
        border-radius: 2.5rem;
        padding: 4rem;
        margin-bottom: 4rem;
        border: 2px solid #e2e8f0;
        position: relative;
        overflow: hidden;
    }
    
    .history-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg, #059669, #10b981, #059669);
    }
    
    .history-section::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
        border-radius: 50%;
        transform: translate(50px, 50px);
    }
    
    .history-section h2 {
        font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
        font-size: 3rem;
        font-weight: 600;
        color: #059669;
        margin: 0 0 2rem 0;
        letter-spacing: -0.02em;
        background: linear-gradient(135deg, #059669, #10b981);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .history-content {
        font-size: 1.15rem;
        line-height: 1.8;
        columns: 2;
        column-gap: 3rem;
        column-rule: 1px solid #e2e8f0;
    }
    
    .intro-section {
        margin-bottom: 5rem;
        padding: 3rem;
        background: linear-gradient(135deg, rgba(5, 150, 105, 0.05) 0%, rgba(16, 185, 129, 0.03) 100%);
        border-radius: 2rem;
        border: 1px solid rgba(5, 150, 105, 0.1);
    }
    
    .intro-section h2 {
        font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
        font-size: 3.5rem;
        font-weight: 600;
        color: #059669;
        margin: 0 0 2rem 0;
        letter-spacing: -0.02em;
        background: linear-gradient(135deg, #059669, #10b981);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .intro-text {
        font-size: 1.2rem;
        line-height: 1.8;
    }
}

/* Hero section with proper image container */
.breed-hero {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    overflow: hidden;
}

/* Image container for proper image display */
.hero-image-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    display: flex;
    align-items: center;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

/* Desktop: horizontal extensions */
@media (min-width: 1024px) {
    .hero-image-container {
        display: flex;
        align-items: center;
        height: 75vh;
        overflow: hidden;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        position: relative;
    }
    
    .hero-image-container::before {
        content: '';
        flex: 1;
        height: 75vh;
        min-width: 0;
        position: relative;
        overflow: hidden;
        background-image: url('/left_extra.avif');
        background-repeat: no-repeat;
        background-position: center right;
        background-size: auto calc(75vh + 20px);
        filter: blur(6px);
        transform: scale(1.1);
    }
    
    .hero-image-container::after {
        content: '';
        flex: 1;
        height: 75vh;
        min-width: 0;
        position: relative;
        overflow: hidden;
        background-image: url('/right_extra.avif');
        background-repeat: no-repeat;
        background-position: center left;
        background-size: auto calc(75vh + 20px);
        filter: blur(6px);
        transform: scale(1.1);
    }
    
    .hero-image {
        height: 75vh;
        width: auto;
        margin: 0;
        object-fit: contain;
        flex-shrink: 0;
        position: relative;
    }
    
    /* Vignette-Effekt für das Hauptbild - Blur an den Rändern */
    .hero-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(ellipse at center, transparent 30%, rgba(255,255,255,0.3) 70%);
        backdrop-filter: blur(6px);
        mask: radial-gradient(ellipse at center, transparent 40%, black 80%);
        -webkit-mask: radial-gradient(ellipse at center, transparent 40%, black 80%);
        pointer-events: none;
        z-index: 1;
    }
    
}

/* Title overlay on the image */
.hero-title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 100%;
    padding: 2rem 1rem;
}

/* Background overlay for better text readability - only mobile */
@media (max-width: 1023px) {
    .hero-image-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 5;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 1023px) {
    .breed-hero {
        min-height: auto;
        position: relative;
    }
    
    .hero-image-container::before {
        background: rgba(0, 0, 0, 0.4);
    }
    
    /* Mobile: Titel unter das Bild verschieben */
    .hero-title-overlay {
        position: static;
        transform: none;
        background: linear-gradient(135deg, #059669 0%, #10b981 100%);
        padding: 2rem 1rem;
        text-align: center;
        z-index: 10;
    }
    
    .hero-image-container {
        position: relative;
    }
    
    /* Overlay für bessere Lesbarkeit entfernen auf Mobile */
    .hero-image-container::before {
        display: none;
    }
}

.breed-hero h1 {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin: 0;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    z-index: 2;
    position: relative;
    text-transform: uppercase;
}

/* Adding styles for ground extension image with overlay */
.ground-extension {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 0;
    position: relative;
}

.ground-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}


/* Ground image ohne overlay */

/* Hiding ground extension on desktop - MUSS NACH den mobile styles stehen! */
@media (min-width: 1024px) {
    .ground-extension {
        display: none !important;
    }
}

/* Mobile: TOC elegantly overlap the ground image with negative margin */
@media (max-width: 1023px) {
    .intro-layout {
        display: block;
    }
    
    .toc-container {
        position: relative;
        z-index: 100;
        margin: -10rem 1rem 4rem;
        display: flex;
        justify-content: center;
    }
}

.toc-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Reducing min-height and removing bottom whitespace */
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.toc-card:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.toc-title {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #059669;
    margin: 0 0 1.5rem 0;
    text-align: center;
    letter-spacing: -0.01em;
}

.toc-grid {
    display: grid;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    /* Making grid fill available space to remove bottom whitespace */
    flex: 1;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #475569;
    text-decoration: none;
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.9rem;
    background: rgba(5, 150, 105, 0.05);
    border: 1px solid transparent;
}

.toc-link::before {
    content: '•';
    font-size: 1.2rem;
    color: #059669;
    transition: all 0.3s ease;
}

.toc-link:hover {
    background: #059669;
    color: white;
    transform: translateX(4px);
    border-color: #059669;
}

.toc-link:hover::before {
    content: '→';
    transform: translateX(2px);
}

/* Content sections with modern card design */
.breed-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

.intro-section {
    margin-bottom: 4rem;
    text-align: center;
    padding: 0 1rem; /* Gleicher Abstand wie andere Sektionen */
}

.intro-section h2 {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: #059669;
    margin: 0 0 2rem 0;
    letter-spacing: -0.02em;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
    max-width: 800px;
    margin: 0 auto;
}

/* Modern data cards with hover effects */
.data-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .data-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

.data-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.data-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #10b981);
}

.data-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #059669;
}

.data-card h3 {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #059669;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.data-item:last-child {
    border-bottom: none;
}

.data-label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.9rem;
}

.data-value {
    font-weight: 600;
    color: #059669;
    font-size: 0.95rem;
    background: rgba(5, 150, 105, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
}

/* Special styling for description items */
.description-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.description-text {
    background: none;
    padding: 0;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #64748b;
    width: 100%;
}

/* Basic info grid for introduction section */
.basic-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.05) 0%, rgba(16, 185, 129, 0.03) 100%);
    border: 1px solid rgba(5, 150, 105, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.15);
    border-color: rgba(5, 150, 105, 0.3);
}

.info-icon {
    font-size: 1.8rem;
    min-width: 2.5rem;
    text-align: center;
}

.info-label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.9rem;
    min-width: 80px;
}

.info-value {
    font-weight: 600;
    color: #059669;
    font-size: 1rem;
    flex: 1;
}

/* Care details section using intro-section style */
.care-details-section {
    margin-bottom: 4rem;
    text-align: center;
}

.care-details-section h2 {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: #059669;
    margin: 0 0 0.7rem 0;
    letter-spacing: -0.02em;
}

.care-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Kompakte Care info grid layout */
.care-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    text-align: left;
}

/* Desktop: 2 Spalten für Wirtschaftlichkeit + Wikipedia */
@media (min-width: 768px) {
    .care-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Spezifisches Grid für Wirtschaftlichkeit + Wikipedia */
    .intro-section #wirtschaftlichkeit > div > div {
        grid-template-columns: 2fr 1fr !important;
        gap: 2rem;
        align-items: start;
    }
    
    /* Mobile: Desktop-Bild verstecken, Mobile-Bild anzeigen */
    @media (max-width: 767px) {
        .intro-section #wirtschaftlichkeit > div > div {
            grid-template-columns: 1fr !important;
        }
        
        .desktop-wikipedia {
            display: none !important;
        }
        
        .mobile-wikipedia {
            display: block !important;
        }
    }
    
    /* Desktop: Mobile-Bild verstecken, Desktop-Bild anzeigen */
    @media (min-width: 768px) {
        .mobile-wikipedia {
            display: none !important;
        }
        
        .desktop-wikipedia {
            display: block !important;
        }
    }
}

.care-category {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    transition: all 0.3s ease;
    overflow-x: auto;
}

.care-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #059669;
}

/* Wirtschaftlichkeit Grid für Mobile optimieren */
#wirtschaftlichkeit > div {
    overflow-x: visible !important;
}

/* Wikipedia Bilder - Desktop/Mobile Toggle */
.mobile-wikipedia {
    display: none;
}

.desktop-wikipedia {
    display: block;
}

@media (max-width: 768px) {
    #wirtschaftlichkeit > div {
        grid-template-columns: 1fr !important;
    }
    
    .care-category {
        overflow-x: visible;
    }
    
    .egg-layout {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .egg-details {
        width: 100%;
    }
    
    .skill-item {
        width: 100%;
    }
    
    /* Wikipedia Bild nur auf Mobile anzeigen */
    .desktop-wikipedia {
        display: none !important;
    }
    
    .mobile-wikipedia {
        display: block !important;
    }
}

.care-category h3 {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #059669;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.care-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.care-skills {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.care-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.15);
    border-radius: 0.6rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.care-item:hover {
    background: rgba(5, 150, 105, 0.12);
    border-color: rgba(5, 150, 105, 0.25);
}

.care-item.full-width {
    flex: 1 1 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.8rem;
}

.care-label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.8rem;
}

.care-value {
    font-weight: 600;
    color: #059669;
    font-size: 0.85rem;
}

.full-width .care-value {
    width: 100%;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Neues Ei-Layout ohne Container */
.egg-layout {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 0.5rem 0;
    margin-left: 1rem;
}

.egg-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    min-width: 90px;
}

.egg-shape {
    width: 90px;
    height: 120px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.egg-shape:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.egg-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    align-items: flex-start;
}

.full-width-skills {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-top: 1.5rem;
}

/* Origin Summary Styling */
.care-details-section h2 + .origin-summary {
    margin-top: -0.5rem;
}

.origin-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 auto 1.5rem auto;
    padding: 0.3rem 0.6rem;
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid #059669;
    border-radius: 12px;
    color: #059669;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: none;
    max-width: fit-content;
}

.origin-flag {
    font-size: 0.9rem;
    line-height: 1;
}

.origin-year {
    font-size: 0.75rem;
    font-weight: 600;
    color: #059669;
}

/* Skillbar Styling */
.skill-item {
    width: 100%;
    min-width: 200px;
}

.skill-label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    display: block;
}

.skill-bar-container {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #059669, #10b981);
    border-radius: 4px;
    transition: width 0.8s ease;
    position: relative;
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-value {
    font-weight: 600;
    font-size: 0.75rem;
    color: #059669;
    margin-top: 0.2rem;
    text-align: right;
}

/* Eierfarben */
.egg-shape[data-color*="Weiß"], .egg-shape[data-color*="weiß"] {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.egg-shape[data-color*="Braun"], .egg-shape[data-color*="braun"] {
    background: linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
}

.egg-shape[data-color*="Hellbraun"], .egg-shape[data-color*="hellbraun"] {
    background: linear-gradient(135deg, #deb887 0%, #d2b48c 100%);
}

.egg-shape[data-color*="Dunkelbraun"], .egg-shape[data-color*="dunkelbraun"] {
    background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
}

.egg-shape[data-color*="Creme"], .egg-shape[data-color*="creme"] {
    background: linear-gradient(135deg, #f5f5dc 0%, #fffacd 100%);
}

.egg-shape[data-color*="Grün"], .egg-shape[data-color*="grün"] {
    background: linear-gradient(135deg, #556B2F 0%, #6B8E23 100%);
}

.egg-shape[data-color*="Blau"], .egg-shape[data-color*="blau"] {
    background: linear-gradient(135deg, #6b8db5 0%, #8bb8d8 100%);
}

.egg-shape[data-color*="Oliv"], .egg-shape[data-color*="oliv"] {
    background: linear-gradient(135deg, #808000 0%, #9acd32 100%);
}

.egg-shape[data-color*="Schokoladenbraun"], .egg-shape[data-color*="schokoladenbraun"] {
    background: linear-gradient(135deg, #d2691e 0%, #8b4513 100%);
}

.egg-size {
    font-weight: 700;
    font-size: 0.7rem;
    color: #475569;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9);
    text-align: center;
    line-height: 1;
}

.eggs-per-year {
    font-weight: 500;
    font-size: 0.8rem;
    color: #64748b;
    text-align: left;
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
}

/* Kompakte History info grid layout */
.history-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    text-align: left;
}

.history-category {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.history-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #059669;
}

.history-category h3 {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #059669;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.history-skills {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.history-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.15);
    border-radius: 0.6rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: rgba(5, 150, 105, 0.12);
    border-color: rgba(5, 150, 105, 0.25);
}

.history-label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.8rem;
}

.history-value {
    font-weight: 600;
    color: #059669;
    font-size: 0.85rem;
}

/* Mobile optimizations */
@media (max-width: 1023px) {
    .toc-container {
        /* Adjusting mobile margin for better overlap with ground image */
        margin: -10rem 1rem 3rem;
    }
    
    .toc-card {
        padding: 1.5rem;
    }
    
    .data-card {
        padding: 1.5rem;
    }
    
    .history-section {
        padding: 2rem;
        margin: 0 1rem 3rem;
    }
    
    .breed-content {
        padding: 0 1.5rem 3rem;
    }
}

/* Smooth scroll behavior - OHNE overflow-x hidden (verhindert sticky header) */
html {
    scroll-behavior: smooth;
}

body {
    /* overflow-x: hidden verhindert position: sticky! */
    /* Stattdessen max-width: 100vw verwenden */
    max-width: 100vw;
    overflow-x: clip; /* Moderne Alternative zu hidden, die sticky erlaubt */
}

/* Fallback für ältere Browser, die clip nicht unterstützen */
@supports not (overflow: clip) {
    body {
        overflow-x: hidden;
    }
    /* In diesem Fall muss der Header position: fixed verwenden */
    .modern-header {
        position: fixed !important;
        width: 100%;
    }
}

/* Focus states for accessibility */
.toc-link:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Basic H4 Styling in care-content */
.care-content h4 {
    color: #059669;
    font-weight: 600;
    font-size: 1.125rem;
    margin: 1.5rem 0 0.75rem 0;
    line-height: 1.4;
}

/* Desktop: Kein Border, sauber, bessere Abstände */
@media (min-width: 1024px) {
    .care-content h4 {
        padding-left: 0;
        border-left: none;
        margin: 2.5rem 0 0.5rem 0; /* Mehr Abstand nach oben, weniger nach unten */
    }
}

/* Collapsible H4 Headers - Mobile Only - Clean Modern Design */
@media (max-width: 1023px) {
    .collapsible-h4 {
        position: relative;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        padding: 0.875rem 2.5rem 0.875rem 0;
        margin: 1.5rem 0 0.5rem 0;
        font-weight: 600;
        color: #059669;
        font-size: 1.125rem;
        line-height: 1.4;
        transition: all 0.2s ease;
        border-left: 3px solid #059669;
        padding-left: 0.75rem;
    }
    
    .collapsible-h4::after {
        content: '›';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%) rotate(90deg);
        font-size: 1.5rem;
        font-weight: 400;
        color: #059669;
        transition: transform 0.3s ease;
    }
    
    .collapsible-h4.active {
        color: #047857;
    }
    
    .collapsible-h4.active::after {
        transform: translateY(-50%) rotate(270deg);
    }
    
    .collapsible-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        padding: 0 0 0 0.75rem;
        margin: 0;
    }
    
    .collapsible-content.active {
        max-height: 5000px;
        opacity: 1;
        padding: 0.5rem 0 1rem 0.75rem;
    }
}

/* Desktop: Normal H4 behavior */
@media (min-width: 1024px) {
    .collapsible-h4::after {
        display: none;
    }
    
    .collapsible-content {
        max-height: none !important;
        opacity: 1 !important;
    }
}


/* Ähnliche Rassen Hover-Effekte */
.breed-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    border-color: #059669 !important;
}

.breed-card:hover img {
    transform: scale(1.05) !important;
}

.finder-link a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4) !important;
}

/* Futterrechner Button Hover-Effekt */
.futterrechner-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4) !important;
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

/* ========================================
   Rassenfinder / Search Styles
   ======================================== */

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: "Space Grotesk", system-ui, sans-serif;
}

.search-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 40px rgba(5, 150, 105, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(5, 150, 105, 0.1);
    position: relative;
    overflow: visible; /* Geändert von hidden zu visible für Dropdowns */
}

/* Top gradient bar braucht eigenes Element */
.search-header form {
    position: relative;
    z-index: 1;
}

.search-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #10b981, #34d399);
    border-radius: 24px 24px 0 0; /* Behält abgerundete Ecken oben */
    z-index: 1;
}

.search-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.75rem 0;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.search-subtitle {
    color: #64748b;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
}

.search-main {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 
        0 0 0 4px rgba(5, 150, 105, 0.1),
        0 4px 12px rgba(5, 150, 105, 0.15);
    transform: translateY(-1px);
}

.search-submit-btn {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: 
        0 4px 6px -1px rgba(5, 150, 105, 0.2),
        0 2px 4px -1px rgba(5, 150, 105, 0.1);
    position: relative;
    overflow: hidden;
}

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

.search-submit-btn:hover::before {
    left: 100%;
}

.search-submit-btn:hover {
    background: linear-gradient(135deg, #047857, #059669);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 16px -2px rgba(5, 150, 105, 0.3),
        0 4px 8px -2px rgba(5, 150, 105, 0.2);
}

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

.filters-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    overflow: visible;
}

.filter-compact {
    position: relative;
    z-index: 10;
}

.filter-multi {
    position: relative;
    z-index: 10;
    flex: 1 1 auto;
    min-width: 160px;
    max-width: 200px;
}

.filter-multi.active {
    z-index: 100; /* Unter dem Header (z-index: 1000) */
}

/* Multi-Select Filter Styles */
.filter-multi-trigger {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.875rem;
    background: #ffffff;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.filter-multi-trigger:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.filter-multi.active .filter-multi-trigger {
    border-color: #059669;
    box-shadow: 
        0 0 0 4px rgba(5, 150, 105, 0.1),
        0 2px 8px rgba(5, 150, 105, 0.1);
}

.filter-badge {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 1.25rem;
    text-align: center;
}

.filter-arrow {
    color: #059669;
    font-size: 0.625rem;
    transition: transform 0.3s ease;
}

.filter-multi.active .filter-arrow {
    transform: rotate(180deg);
}

.filter-multi-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #059669;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(5, 150, 105, 0.15);
    z-index: 101; /* Unter dem Header (z-index: 1000) */
    display: none;
    flex-direction: column;
    padding: 0.5rem;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    /* Besseres Scrolling auf mobilen Geräten */
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar Styling */
.filter-multi-dropdown::-webkit-scrollbar {
    width: 8px;
}

.filter-multi-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.filter-multi-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 4px;
}

.filter-multi-dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #047857, #059669);
}

.filter-multi.active .filter-multi-dropdown {
    display: flex;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: #1e293b;
    font-weight: 500;
}

.filter-checkbox:hover {
    background: rgba(5, 150, 105, 0.05);
}

.filter-checkbox input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    background: white;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.filter-checkbox input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #059669, #10b981);
    border-color: #059669;
}

.filter-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.filter-checkbox input[type="checkbox"]:hover {
    border-color: #059669;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.875rem;
    background: #ffffff;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23059669'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.filter-select:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.filter-select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 
        0 0 0 4px rgba(5, 150, 105, 0.1),
        0 2px 8px rgba(5, 150, 105, 0.1);
    transform: translateY(-1px);
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f5f9;
    justify-content: center;
}

.quick-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-family: inherit;
}

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

.quick-filter:hover::before {
    left: 100%;
}

.quick-filter:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quick-filter.active {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border-color: #059669;
    box-shadow: 
        0 4px 6px -1px rgba(5, 150, 105, 0.3),
        0 2px 4px -1px rgba(5, 150, 105, 0.2);
}

.quick-filter.active:hover {
    background: linear-gradient(135deg, #047857, #059669);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px -2px rgba(5, 150, 105, 0.4),
        0 4px 8px -2px rgba(5, 150, 105, 0.3);
}

.reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #fca5a5;
    border-radius: 24px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: #dc2626;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.1);
}

.reset-btn:hover {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    border-color: #f87171;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
}

.results-section {
    margin-top: 2rem;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.results-count {
    color: #64748b;
    font-size: 0.875rem;
    background: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.no-results-text {
    color: #64748b;
    font-size: 0.875rem;
}

/* Responsive Rassenfinder */
@media (max-width: 768px) {
    .search-main {
        flex-direction: column;
    }
    
    .search-submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .filter-multi {
        min-width: calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .search-container {
        padding: 1.5rem 1rem;
    }
    
    .search-header {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .search-title {
        font-size: 2rem;
    }
    
    .search-subtitle {
        font-size: 1rem;
    }
    
    .filter-multi {
        min-width: 100%;
        max-width: 100%;
    }
    
    .quick-filters {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .quick-filter,
    .reset-btn {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }
}

/* ========================================
   Hühnerrassen-Karte (Breed Card)
   ======================================== */

.breed-card {
    margin-bottom: 1.5rem;
}

.breed-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.breed-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #059669;
}

.breed-card-title {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #059669;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.breed-card-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.breed-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-content: flex-start;
}

.info-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.info-tag-primary {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.info-tag-feature {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 0.75rem;
}

/* Desktop Layout */
@media (min-width: 641px) {
    .breed-card-link {
        align-items: stretch;
        padding: 0;
    }
    
    .breed-card-image {
        width: 220px;
        flex-shrink: 0;
        overflow: hidden;
    }
    
    .breed-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .breed-card-link:hover .breed-card-image img {
        transform: scale(1.1);
    }
    
    .breed-card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-self: stretch;
        padding: 1.5rem;
    }
}

/* Mobile Layout */
@media (max-width: 640px) {
    .breed-card-link {
        flex-direction: column;
        padding: 0;
    }
    
    .breed-card-content {
        order: -1;
        padding: 1.5rem 1.5rem 0;
    }
    
    .breed-card-bottom-wrapper {
        display: flex;
        gap: 0.5rem;
        align-items: flex-start;
        margin-top: 1.5rem;
        padding: 0 0.5rem;
        margin-bottom: 0;
    }
    
    .breed-card-image {
        flex: 1;
        margin-bottom: 0;
    }
    
    .breed-card-image img {
        width: 100%;
        height: auto;
        border-radius: 0 0 0.75rem 0.75rem;
        display: block;
        margin-bottom: 0;
    }
    
    .breed-quick-info {
        flex: 1;
        display: flex;
        flex-wrap: wrap;
        gap: 0.1rem;
        align-content: flex-start;
        padding-bottom: 1.5rem;
    }
    
    .breed-quick-info .info-tag {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.75rem !important;
    }
}

/* ========================================
   Futterrechner Styles
   ======================================== */

.futter-rechner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: "Space Grotesk", system-ui, sans-serif;
}

.rechner-header {
    text-align: center;
    margin-bottom: 3rem;
}

.rechner-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #059669;
    margin: 0 0 1rem 0;
}

.rechner-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.rechner-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    justify-content: center;
}

.tab-button {
    padding: 1rem 2rem;
    border: none;
    background: none;
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #10b981);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-button:hover {
    color: #059669;
}

.tab-button.active {
    color: #059669;
}

.tab-button.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #059669;
    margin: 0 0 1rem 0;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tab-content p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.form-label {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-input, .form-select {
    padding: 0.875rem 1.125rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.875rem;
    font-size: 1rem;
    font-family: inherit;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-input:hover, .form-select:hover {
    border-color: #cbd5e1;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 
        0 0 0 4px rgba(5, 150, 105, 0.1),
        0 4px 12px rgba(5, 150, 105, 0.15);
    transform: translateY(-1px);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23059669'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

.calculate-btn {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

.result-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px solid #059669;
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-top: 2.5rem;
    display: none;
    box-shadow: 0 10px 40px rgba(5, 150, 105, 0.2);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #10b981, #34d399);
}

.result-card.show {
    display: block;
    animation: slideIn 0.5s ease;
}

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

.result-title {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #059669;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    letter-spacing: -0.01em;
}

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

.result-item {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.15);
    border-color: #059669;
}

.result-item:hover::before {
    opacity: 1;
}

.result-value {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #059669;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.result-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
    line-height: 1.4;
}

.info-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.info-title {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: #92400e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box p, .info-box ul {
    color: #78350f;
    font-size: 0.9rem;
    line-height: 1.7;
}

.info-box ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.info-box strong {
    color: #92400e;
    font-weight: 600;
}

.rasse-search-container {
    position: relative;
    margin-bottom: 0;
}

.rasse-search-input {
    width: 100%;
    padding-right: 3rem;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23059669" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.35-4.35"></path></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}

.rasse-dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #059669;
    border-radius: 0.875rem;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 
        0 10px 40px rgba(5, 150, 105, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
}

/* Scrollbar für Rassen-Dropdown */
.rasse-dropdown::-webkit-scrollbar {
    width: 8px;
}

.rasse-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.rasse-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 4px;
}

.rasse-dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #047857, #059669);
}

.rasse-dropdown.show {
    display: block;
    animation: dropdownSlide 0.3s ease;
}

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

.rasse-dropdown-item {
    padding: 1rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.rasse-dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #059669, #10b981);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.rasse-dropdown-item:hover::before,
.rasse-dropdown-item.selected::before,
.rasse-dropdown-item.highlighted::before {
    transform: scaleY(1);
}

.rasse-dropdown-item:hover {
    background: rgba(5, 150, 105, 0.05);
    color: #059669;
}

.rasse-dropdown-item:last-child {
    border-bottom: none;
}

.rasse-dropdown-item.selected {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(16, 185, 129, 0.08));
    color: #059669;
    font-weight: 600;
}

.rasse-dropdown-item .rasse-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.rasse-dropdown-item .rasse-details {
    font-size: 0.8rem;
    color: #64748b;
    margin-left: auto;
    font-weight: 500;
}

.rasse-dropdown-item:hover .rasse-details {
    color: #059669;
}

.rasse-dropdown-item.highlighted {
    background: rgba(5, 150, 105, 0.08);
    color: #059669;
}

.no-results {
    padding: 2rem;
    text-align: center;
    color: #64748b;
    font-style: italic;
    font-size: 0.95rem;
    background: rgba(5, 150, 105, 0.03);
    border-radius: 0.75rem;
    margin: 1rem;
}

.rassen-profil-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    text-decoration: none;
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 1rem;
    box-shadow: 
        0 4px 15px rgba(5, 150, 105, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rassen-profil-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rassen-profil-link:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 30px rgba(5, 150, 105, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.15);
    color: white;
}

.rassen-profil-link:hover::before {
    opacity: 1;
}

.rassen-profil-link:active {
    transform: translateY(-2px);
}

/* Responsive Futterrechner */
@media (max-width: 768px) {
    .futter-rechner {
        padding: 1.5rem 1rem;
    }

    .rechner-header h1 {
        font-size: 1.75rem;
    }

    .rechner-header p {
        font-size: 1rem;
    }

    .rechner-tabs {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .tab-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .tab-content {
        padding: 1.5rem;
    }

    .tab-content h2 {
        font-size: 1.5rem;
    }

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

    .calculate-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .result-card {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .result-title {
        font-size: 1.5rem;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .result-item {
        padding: 1.25rem 1rem;
    }

    .result-value {
        font-size: 1.5rem;
    }

    .info-box {
        padding: 1.25rem;
        margin: 1.25rem 0;
    }

    .info-title {
        font-size: 1rem;
    }

    .rassen-profil-link {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        margin-top: 1.5rem;
    }
}

/* Spezielle Optimierung für die manuelle Berechnung auf Mobile */
@media (max-width: 768px) {
    #manual-tab .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #manual-tab .form-group {
        margin-bottom: 0.5rem;
    }
    
    #manual-tab .form-label {
        font-size: 0.9rem;
    }
    
    #manual-tab .form-input,
    #manual-tab .form-select {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    #manual-tab .info-box {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    #manual-tab .info-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    #manual-tab .info-box p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Stelle sicher, dass der Container nicht überläuft */
    #manual-tab {
        overflow-x: hidden;
    }
    
    /* Zusätzliche Sicherheitsmaßnahme für Eingabefelder */
    #manual-tab input[type="number"] {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Rassenfinder Link Button - Minimalistisch und Modern */
.finder-link {
    margin: 3rem 0 2rem 0;
    text-align: center;
}

.finder-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    text-decoration: none;
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 3rem;
    box-shadow: 
        0 4px 20px rgba(5, 150, 105, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

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

.finder-link a:hover::before {
    left: 100%;
}

.finder-link a span {
    font-size: 1.25rem;
    transition: transform 0.4s ease;
}

.finder-link a:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 6px 30px rgba(5, 150, 105, 0.35),
        0 4px 15px rgba(0, 0, 0, 0.12);
    color: white;
}

.finder-link a:hover span {
    transform: scale(1.2) rotate(5deg);
}

.finder-link a:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 20px rgba(5, 150, 105, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .finder-link {
        margin: 2rem 0 1.5rem 0;
    }
    
    .finder-link a {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 100%;
    }
}