/* SEO-Optimierungen und Performance-Verbesserungen für Netztools24 */

/* Lazy Loading für Bilder */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Breadcrumb-Styling für bessere UX */
.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

/* Schema.org strukturierte Daten - versteckt aber für SEO wichtig */
.schema-data {
    display: none;
}

/* Tool-Kategorien optimiert für SEO */
.tool-category {
    margin-bottom: 2rem;
}

.tool-category h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.tool-category .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.tool-category .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Tool-Links optimiert */
.tool-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.tool-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* FAQ-Sektion für bessere SEO */
.faq-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
}

.faq-question {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-answer {
    color: #6c757d;
    line-height: 1.6;
}

/* Performance-Optimierungen */
.preload-critical {
    font-display: swap;
}

/* Lazy Loading Container */
.lazy-container {
    min-height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Mobile-First Optimierungen */
@media (max-width: 768px) {
    .tool-category h2 {
        font-size: 1.25rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .faq-section {
        padding: 1rem;
        margin-top: 2rem;
    }
}

/* Core Web Vitals Optimierungen */
.content-visibility-auto {
    content-visibility: auto;
    contain-intrinsic-size: 200px;
}

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

/* Skip-Link für bessere Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

/* Tool-Bewertungen für Rich Snippets */
.tool-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #ffc107;
}

.tool-rating .stars {
    color: #ffc107;
}

.tool-rating .rating-text {
    color: #6c757d;
    margin-left: 0.5rem;
}

/* Optimierte Button-Styles */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

/* Tool-Statistiken für Vertrauen */
.tool-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.tool-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tool-stat i {
    color: #28a745;
}

/* Responsive Tabellen */
.table-responsive {
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Print-Styles für bessere Usability */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-before: always;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}