/**
 * Kardiotechnik Archiv - Frontend Styles
 */

/* Container */
.kt-search-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Suchformular */
.kt-search-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kt-search-main {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.kt-search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.kt-search-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.kt-search-button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #0073aa;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kt-search-button:hover {
    background: #005a87;
}

/* Filter */
.kt-search-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.kt-search-filters select {
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    min-width: 150px;
    cursor: pointer;
}

.kt-search-filters select:focus {
    outline: none;
    border-color: #0073aa;
}

/* Suchergebnisse */
.kt-search-results {
    min-height: 200px;
}

.kt-search-hint {
    text-align: center;
    color: #666;
    padding: 40px;
    font-style: italic;
}

.kt-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.kt-results-count {
    font-size: 14px;
    color: #666;
}

.kt-results-count strong {
    color: #333;
}

/* Artikel-Liste */
.kt-article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kt-article-item {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.kt-article-item:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.kt-article-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.kt-article-title a {
    color: #1e3a5f;
    text-decoration: none;
}

.kt-article-title a:hover {
    color: #0073aa;
}

.kt-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.kt-article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.kt-authors {
    color: #0073aa;
    font-weight: 500;
}

.kt-year {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 3px;
}

.kt-pages {
    color: #888;
}

.kt-relevance {
    background: #e8f4e8;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 500;
}

.kt-article-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* Pagination */
.kt-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.kt-pagination button {
    padding: 8px 14px;
    font-size: 14px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.kt-pagination button:hover {
    background: #f0f0f0;
    border-color: #999;
}

.kt-pagination button.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.kt-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading-State */
.kt-loading {
    text-align: center;
    padding: 40px;
}

.kt-loading::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: kt-spin 1s linear infinite;
}

@keyframes kt-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Archiv-Ansicht */
.kt-archive {
    max-width: 1000px;
    margin: 0 auto;
}

/* Highlight für Suchergebnisse */
.kt-highlight {
    background: #fff59d;
    padding: 0 2px;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .kt-search-main {
        flex-direction: column;
    }

    .kt-search-filters {
        flex-direction: column;
    }

    .kt-search-filters select {
        width: 100%;
    }

    .kt-article-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* Single Article View */
.kt-single-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
}

.kt-single-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0073aa;
}

.kt-single-title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #1e3a5f;
}

.kt-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
}

.kt-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kt-meta-label {
    font-weight: 600;
    color: #666;
}

.kt-doi-link {
    color: #0073aa;
    text-decoration: none;
}

.kt-doi-link:hover {
    text-decoration: underline;
}

.kt-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.kt-keyword {
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.kt-single-content {
    font-size: 16px;
    line-height: 1.8;
}

.kt-pdf-link {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 24px;
    background: #c62828;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.kt-pdf-link:hover {
    background: #b71c1c;
    color: #fff;
}
