/* Basislayout für Grids, Listen, Single-Ansicht & Suche */

.theos-rezepte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.theos-rezept-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.theos-rezept-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.theos-rezept-placeholder {
    padding: 3rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    background: #fafafa;
}

.theos-rezept-content {
    padding: 1rem;
}

.theos-rezept-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.theos-rezept-title a {
    text-decoration: none;
    color: #222;
}

.theos-rezept-title a:hover {
    text-decoration: underline;
}

.theos-rezept-meta-top {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.theos-rezept-ingredients,
.theos-rezept-ingredients-preview {
    list-style: disc inside;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: #444;
}

/* Archiv-Template */

.theos-rezepte-archive-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.theos-rezepte-archive-header {
    margin-bottom: 2rem;
}

.theos-rezepte-archive-title {
    margin: 0;
    font-size: 2rem;
}

.theos-rezepte-archive-subtitle {
    margin: 0.25rem 0 0;
    color: #666;
}

.theos-rezepte-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.theos-rezept-list-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.theos-rezept-thumb-placeholder {
    padding: 2rem 1rem;
    text-align: center;
    background: #fafafa;
    color: #777;
    font-size: 0.9rem;
}

.theos-rezept-list-content {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.theos-rezept-course {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #999;
    display: inline-block;
    margin-bottom: 0.25rem;
}

.theos-rezept-course a {
    text-decoration: none;
    color: inherit;
}

.theos-rezept-meta-top span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.theos-rezept-excerpt {
    font-size: 0.9rem;
    color: #444;
}

.theos-rezept-list-footer,
.theos-rezept-search-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
}

.theos-rezept-author img {
    border-radius: 50%;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.theos-rezept-time,
.theos-rezept-difficulty {
    padding: 0.15rem 0.5rem;
    background: #f3f3f3;
    border-radius: 999px;
}

.theos-rezept-read-more {
    margin-left: auto;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Single-Rezept */

.theos-rezept-single-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.theos-rezept-single-header {
    margin-bottom: 1.5rem;
}

.theos-rezept-single-header h1 {
    margin-bottom: 0.5rem;
}

.theos-rezept-single-meta {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.theos-rezept-single-main {
    display: grid;
    grid-template-columns: minmax(0, 3fr);
    gap: 2rem;
}

.theos-rezept-single-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.theos-rezept-single-sections {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 2rem;
}

.theos-rezept-section {
    margin-bottom: 1.75rem;
}

.theos-rezept-section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.theos-rezept-section ul {
    margin: 0;
    padding-left: 1.2rem;
}

.theos-rezept-video {
    margin-top: 1rem;
}

.theos-rezept-video iframe {
    width: 100%;
    min-height: 280px;
}

.theos-rezept-nutrition,
.theos-rezept-notes {
    font-size: 0.9rem;
}

/* Suche */

.theos-rezepte-search-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.theos-rezepte-search-form {
    margin-bottom: 1.5rem;
}

.theos-rezepte-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.theos-rezepte-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.theos-rezepte-search-row input[type="search"],
.theos-rezepte-search-row input[type="text"] {
    min-width: 220px;
    padding: 0.35rem 0.5rem;
}

.theos-rezepte-search-submit-wrap button {
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
}

.theos-rezepte-search-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.theos-rezepte-search-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.theos-rezept-search-content {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Pagination */

.theos-rezepte-pagination,
.theos-rezepte-search-pagination {
    margin-top: 1.5rem;
}

/* Sidebar */

.theos-rezepte-sidebar {
    margin-top: 2rem;
}

/* Responsive */

@media (max-width: 900px) {
    .theos-rezept-list-item,
    .theos-rezepte-search-item {
        grid-template-columns: 1fr;
    }

    .theos-rezept-single-sections {
        grid-template-columns: 1fr;
    }
}
