/* CRM Detail Page Styles */

/* Detail Header Section */
.detail-header {
    background: #005a73;
    color: white;
    padding: 2rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo-box {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
}

.logo-box img {
    max-width: 60px;
    max-height: 60px;
}

.logo-box span {
    font-size: 2rem;
    font-weight: bold;
    color: #005a73;
}

.header-info h1 {
    margin: 0;
    font-size: 2rem;
}

.header-info p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Header actions removed - buttons moved to sidebar */

/* Navigation Tabs */
.nav-tabs {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-tabs nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0;
}

/* Logo in Navigation */
.nav-logo-section {
    display: flex;
    align-items: center;
    margin-right: 30px;
    padding: 8px 0;
}

.nav-logo-section img {
    height: 32px;
    width: auto;
    max-width: 120px;
    margin-right: 12px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
    transition: transform 0.2s ease;
}

.nav-logo-section img:hover {
    transform: scale(1.05);
}

.nav-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    font-weight: bold;
    margin-right: 12px;
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-product-name {
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
    margin-right: 25px;
    padding-right: 25px;
    border-right: 2px solid #e1e4e8;
    white-space: nowrap;
}

.nav-link {
    padding: 1rem 0;
    text-decoration: none;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link.active {
    color: #005a73;
    border-bottom-color: #005a73;
}

.nav-link:hover {
    color: #005a73;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-top: 2rem;
}

/* Main Content Sections */
.main-content .section {
    margin-bottom: 3rem;
}

.main-content .section h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.info-item h4 {
    margin: 0 0 0.75rem 0;
    color: #333;
    font-size: 1rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e9ecef;
    color: #495057;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.badge.green {
    background: #d4edda;
    color: #155724;
}

.badge.badge-native {
    background: #cce5ff;
    color: #004085;
}

/* Main Features List */
.main-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.main-features-list .feature-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.main-features-list .feature-item:hover {
    background: #f0f8fa;
    border-color: #005a73;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Features Grid */
.features-grid {
    margin-top: 1.5rem;
}

.feature-category {
    margin-bottom: 2rem;
}

.feature-category h4 {
    margin-bottom: 1rem;
    color: #005a73;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.feature-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    display: block;
}

.feature-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.feature-link:hover {
    color: #005a73;
}

.feature-link .feature-name {
    display: inline-block;
    font-weight: 500;
    border-bottom: 1px dotted transparent;
    transition: all 0.2s ease;
    padding-bottom: 1px;
}

.feature-link:hover .feature-name {
    border-bottom: 1px dotted #005a73;
    color: #005a73;
}

.feature-value {
    display: inline-block;
    margin-left: 0.25rem;
    color: #666;
}

/* Pricing Plans */
.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.plan-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #005a73;
}

.plan-card.popular {
    border-color: #005a73;
    background: #f0f8fa;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,90,115,0.2);
}

.plan-card.popular:hover {
    transform: scale(1.08) translateY(-3px);
}

/* Badge */
.plan-card .badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(40,167,69,0.3);
}

.plan-card .badge.green {
    background: #28a745;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #333;
    text-align: center;
}

.plan-price {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #005a73;
    display: block;
    line-height: 1;
}

.price-period {
    color: #6b7280;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.25rem;
}

.yearly-price {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 8px;
}

.yearly-price .savings {
    display: block;
    color: #059669;
    font-weight: 600;
    margin-top: 0.25rem;
}

.users-info, .user-limit {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0.75rem 0;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 6px;
}

.users-info i {
    color: #005a73;
    margin-right: 0.25rem;
}

.plan-description {
    color: #6b7280;
    margin: 1rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

.plan-features {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 350px;
    overflow-y: auto;
}

.plan-features li {
    padding: 0.75rem 0 0.75rem 2rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
    position: relative;
    color: #4b5563;
    line-height: 1.5;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Scrollbar-Styling für Feature-Listen */
.plan-features ul::-webkit-scrollbar {
    width: 6px;
}

.plan-features ul::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.plan-features ul::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.plan-features ul::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Plan Card Responsive */
@media (min-width: 768px) {
    .plan-card.popular {
        padding: 2.5rem;
    }
}

.trial-info {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 1.25rem;
    border-radius: 10px;
    margin-top: 2rem;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(40,167,69,0.1);
}

.trial-info i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Screenshots Grid */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.screenshot-item {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.screenshot-item:hover {
    transform: scale(1.02);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.screenshot-title {
    margin-top: 0.5rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Integrations */
.integrations-grid {
    margin-top: 1.5rem;
}

.integration-category {
    margin-bottom: 2rem;
}

.integration-category h4 {
    margin-bottom: 1rem;
    color: #005a73;
}

.integration-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.integration-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.integration-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.integration-link:hover .integration-name {
    background: #e9ecef;
    color: #005a73;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.integration-name {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
}

/* Rating Display */
.rating-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Pros and Cons */
.pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pros h3, .cons h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pros h3 {
    color: #28a745;
}

.cons h3 {
    color: #dc3545;
}

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
}

.pros li, .cons li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.pros li:last-child, .cons li:last-child {
    border-bottom: none;
}

.pros li::before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
    margin-right: 0.5rem;
}

.cons li::before {
    content: "✗ ";
    color: #dc3545;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-box {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.sidebar-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.sidebar-box ul {
    list-style: none;
    padding: 0;
}

.sidebar-box li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-box li:last-child {
    border-bottom: none;
}

/* Sidebar Logo Box */
.sidebar-logo-box {
    text-align: center;
}

.sidebar-logo {
    background: #f0f8fa;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
    font-weight: bold;
    color: #005a73;
    padding: 10px;
    overflow: hidden;
}

.sidebar-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sidebar-logo-box h3 {
    margin-top: 1rem;
}

/* Price Display in Sidebar */
.price-display {
    font-size: 2rem;
    color: #005a73;
    font-weight: bold;
    margin: 1rem 0;
}

.price-display small {
    font-size: 0.875rem;
    font-weight: normal;
    color: #666;
}

.price-display.price-quote {
    font-size: 1.25rem;
    color: #666;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-cta {
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.btn-primary-cta {
    background: #005a73;
    color: white;
}

.btn-primary-cta:hover {
    background: #004a5c;
}

.btn-secondary-cta {
    background: transparent;
    color: #005a73;
    border: 2px solid #005a73;
}

.btn-secondary-cta:hover {
    background: #005a73;
    color: white;
}

/* Similar CRMs Section */
#similar-crms {
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin-top: 3rem;
}

#similar-crms .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

#similar-crms .section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

#similar-crms .section-header p {
    color: #666;
    font-size: 1.1rem;
}

#similar-crms .grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 2rem 1fr 2rem 1fr;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    grid-gap: 2rem;
    margin-top: 2rem;
}

/* Chrome Legacy Grid Support */
#similar-crms .grid > .card:nth-child(1) { -ms-grid-column: 1; -ms-grid-row: 1; }
#similar-crms .grid > .card:nth-child(2) { -ms-grid-column: 3; -ms-grid-row: 1; }
#similar-crms .grid > .card:nth-child(3) { -ms-grid-column: 5; -ms-grid-row: 1; }

/* Fallback für sehr alte Chrome-Versionen */
@supports not (display: grid) {
    #similar-crms .grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    #similar-crms .grid .card {
        flex: 0 1 calc(33.333% - 1.33rem);
        margin-bottom: 2rem;
    }
}

#similar-crms .card {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#similar-crms .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Similar CRMs Card Elements */
.shared-features-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #005a73;
    color: #fff;
    border-radius: 20px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.similar-logo {
    width: 80px;
    height: 80px;
    background-color: #f0f8fa;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 2px solid #005a73;
}

.similar-logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #005a73;
}

#similar-crms h3 {
    margin-bottom: 1rem;
    text-align: center;
}

#similar-crms h3 a {
    color: #333;
    text-decoration: none;
}

#similar-crms h3 a:hover {
    color: #005a73;
}

.similar-rating {
    margin: 0.5rem 0;
    text-align: center;
}

.similar-rating .stars {
    color: #ffd700;
    font-size: 1.1rem;
}

.similar-rating .rating-value {
    color: #666;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.similar-description {
    color: #666;
    margin: 1rem 0;
    min-height: 60px;
}

.similar-price {
    margin: 1rem 0;
    font-size: 0.9rem;
    text-align: center;
}

.similar-price .price-free {
    color: #28a745;
}

.similar-price .price-from {
    color: #005a73;
    font-weight: bold;
}

.similar-price .price-quote {
    color: #666;
}

#similar-crms .btn {
    margin-top: 1rem;
    width: 100%;
}

/* Screenshot Modal */
#screenshotModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    cursor: pointer;
}

#screenshotModal .modal-inner {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: 2% auto;
    text-align: center;
}

#screenshotModal .close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: opacity 0.3s;
}

#screenshotModal .close-btn:hover {
    opacity: 0.7;
}

#screenshotModal #modalImage {
    max-width: 100%;
    max-height: 85vh;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

#screenshotModal #modalCaption {
    color: white;
    padding: 20px;
    text-align: center;
}

#screenshotModal #modalTitle {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

#screenshotModal #modalDescription {
    margin: 0;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    #similar-crms .grid {
        -ms-grid-columns: 1fr 2rem 1fr;
        grid-template-columns: repeat(2, 1fr);
    }
    
    #similar-crms .grid > .card:nth-child(1) { -ms-grid-column: 1; -ms-grid-row: 1; }
    #similar-crms .grid > .card:nth-child(2) { -ms-grid-column: 3; -ms-grid-row: 1; }
    #similar-crms .grid > .card:nth-child(3) { -ms-grid-column: 1; -ms-grid-row: 3; }
    
    @supports not (display: grid) {
        #similar-crms .grid .card {
            flex: 0 1 calc(50% - 1rem);
        }
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-actions {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .nav-tabs nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 1rem;
    }
    
    .nav-logo-section {
        margin-right: 15px;
    }
    
    .nav-logo-section img {
        height: 28px;
    }
    
    .nav-product-name {
        font-size: 14px;
        margin-right: 15px;
        padding-right: 15px;
    }
    
    .info-grid,
    .pricing-grid,
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
    
    #similar-crms .grid {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }
    
    #similar-crms .grid > .card:nth-child(1),
    #similar-crms .grid > .card:nth-child(2),
    #similar-crms .grid > .card:nth-child(3) { 
        -ms-grid-column: 1; 
    }
    
    #similar-crms .grid > .card:nth-child(2) { -ms-grid-row: 2; }
    #similar-crms .grid > .card:nth-child(3) { -ms-grid-row: 3; }
    
    @supports not (display: grid) {
        #similar-crms .grid .card {
            flex: 0 1 100%;
        }
    }
}