/* public/css/em-recipes-public.css */

/* Einzelrezept Styles */
.em-recipe-single {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.em-recipe-featured-image {
    margin-bottom: 30px;
    text-align: center;
}

.em-recipe-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.em-recipe-header {
    text-align: center;
    margin-bottom: 40px;
}

.em-recipe-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.em-recipe-meta-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.em-meta-item {
    text-align: center;
}

.em-meta-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.em-meta-value {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

/* Kategorien Tags */
.em-recipe-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.em-category-tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    text-decoration: none;
}

.em-type-tag {
    background: #e8f4f8;
    color: #2c7a7b;
}

.em-style-tag {
    background: #fef5e7;
    color: #c68400;
}

/* Recipe Body */
.em-recipe-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Zutaten */
.em-recipe-ingredients {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.em-recipe-ingredients h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.em-portions-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.em-portion-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.em-portion-btn:hover {
    background: #333;
    color: #fff;
}

.em-portions-input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.em-ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.em-ingredient-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.em-ingredient-item:last-child {
    border-bottom: none;
}

.em-ingredient-amount {
    font-weight: bold;
    color: #2c7a7b;
    margin-right: 5px;
}

.em-ingredient-unit {
    margin-right: 5px;
}

.em-ingredient-note {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* Zubereitung */
.em-recipe-instructions h2 {
    margin-top: 0;
    color: #333;
}

.em-recipe-instructions p {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Footer */
.em-recipe-footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.em-print-button {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.em-print-button:hover {
    background: #555;
}

/* Rezept Grid */
.em-recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.em-recipe-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.em-recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.em-recipe-card .em-recipe-image {
    height: 200px;
    overflow: hidden;
}

.em-recipe-card .em-recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.em-recipe-card .em-recipe-content {
    padding: 20px;
}

.em-recipe-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.em-recipe-card .em-recipe-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

.em-recipe-link {
    display: inline-block;
    color: #2c7a7b;
    text-decoration: none;
    font-weight: bold;
}

.em-recipe-link:hover {
    text-decoration: underline;
}

/* Suchformular */
.em-recipe-search-widget {
    margin: 30px 0;
}

/* Index Container */
.em-recipe-index-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Such-Sektion */
.em-recipe-search-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.em-search-bar {
    display: flex;
    margin-bottom: 30px;
}

.em-search-bar .em-search-input {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.em-search-bar .em-search-submit {
    padding: 12px 30px;
    background: #2c7a7b;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background 0.3s ease;
}

.em-search-bar .em-search-submit:hover {
    background: #1a5455;
}

/* Filter */
.em-recipe-filters {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.em-filter-title {
    margin: 0 0 20px 0;
    font-size: 1.2em;
    color: #333;
}

.em-filter-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.em-filter-group h4 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #555;
}

.em-filter-options {
    max-height: 200px;
    overflow-y: auto;
}

.em-filter-option {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

.em-filter-option input[type="checkbox"] {
    margin-right: 8px;
}

.em-filter-option span {
    font-size: 0.95em;
}

.em-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.em-apply-filters {
    background: #2c7a7b;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.em-apply-filters:hover {
    background: #1a5455;
}

.em-reset-filters {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.em-reset-filters:hover {
    background: #f5f5f5;
}

/* Ergebnis-Anzahl */
.em-recipe-count {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #666;
}

/* Keine Rezepte */
.em-no-recipes {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.em-no-recipes p {
    font-size: 1.2em;
}

/* Rezept Grid */

.em-recipe-search-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.em-search-input-wrapper {
    display: flex;
    margin-bottom: 20px;
}

.em-search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.em-search-button {
    padding: 10px 20px;
    background: #2c7a7b;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

.em-search-button:hover {
    background: #1a5455;
}

.em-search-filters {
    display: flex;
    gap: 20px;
}

.em-filter-group {
    flex: 1;
}

.em-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.em-filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .em-recipe-body {
        grid-template-columns: 1fr;
    }
    
    .em-recipe-meta-info {
        gap: 15px;
    }
    
    .em-recipe-grid {
        grid-template-columns: 1fr;
    }
    
    .em-search-filters {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    .em-recipe-footer,
    .em-portions-selector {
        display: none;
    }
    
    .em-recipe-single {
        max-width: 100%;
    }
    
    .em-recipe-body {
        grid-template-columns: 1fr;
    }
    
    .em-recipe-ingredients {
        break-inside: avoid;
    }
}

/* Rezept Tags */
.em-recipe-tags {
    margin: 10px 0;
}

.em-recipe-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #e8f4f8;
    color: #2c7a7b;
    font-size: 0.85em;
    border-radius: 12px;
    margin-right: 5px;
}

/* Icons */
.em-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    fill: currentColor;
}

/* Rezept Excerpt */
.em-recipe-excerpt {
    margin: 15px 0;
    color: #666;
    line-height: 1.6;
}

/* Pagination */
.em-recipe-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.em-recipe-pagination a,
.em-recipe-pagination span {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.em-recipe-pagination a {
    background: #f5f5f5;
    color: #333;
}

.em-recipe-pagination a:hover {
    background: #2c7a7b;
    color: #fff;
}

.em-page-current {
    background: #2c7a7b;
    color: #fff;
    font-weight: bold;
}

.em-page-prev,
.em-page-next {
    padding: 8px 16px !important;
}

/* Scrollbar für Filter */
.em-filter-options::-webkit-scrollbar {
    width: 6px;
}

.em-filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.em-filter-options::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.em-filter-options::-webkit-scrollbar-thumb:hover {
    background: #555;
}/* public/css/em-recipes-public.css */

/* Einzelrezept Styles */
.em-recipe-single {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.em-recipe-featured-image {
    margin-bottom: 30px;
    text-align: center;
}

.em-recipe-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.em-recipe-header {
    text-align: center;
    margin-bottom: 40px;
}

.em-recipe-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.em-recipe-meta-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.em-meta-item {
    text-align: center;
}

.em-meta-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.em-meta-value {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

/* Kategorien Tags */
.em-recipe-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.em-category-tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    text-decoration: none;
}

.em-type-tag {
    background: #e8f4f8;
    color: #2c7a7b;
}

.em-style-tag {
    background: #fef5e7;
    color: #c68400;
}

/* Recipe Body */
.em-recipe-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Zutaten */
.em-recipe-ingredients {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.em-recipe-ingredients h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.em-portions-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.em-portion-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.em-portion-btn:hover {
    background: #333;
    color: #fff;
}

.em-portions-input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.em-ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.em-ingredient-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.em-ingredient-item:last-child {
    border-bottom: none;
}

.em-ingredient-amount {
    font-weight: bold;
    color: #2c7a7b;
    margin-right: 5px;
}

.em-ingredient-unit {
    margin-right: 5px;
}

.em-ingredient-note {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* Zubereitung */
.em-recipe-instructions h2 {
    margin-top: 0;
    color: #333;
}

.em-recipe-instructions p {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Footer */
.em-recipe-footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.em-print-button {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.em-print-button:hover {
    background: #555;
}

/* Rezept Grid */
.em-recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.em-recipe-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.em-recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.em-recipe-card .em-recipe-image {
    height: 200px;
    overflow: hidden;
}

.em-recipe-card .em-recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.em-recipe-card .em-recipe-content {
    padding: 20px;
}

.em-recipe-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.em-recipe-card .em-recipe-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

.em-recipe-link {
    display: inline-block;
    color: #2c7a7b;
    text-decoration: none;
    font-weight: bold;
}

.em-recipe-link:hover {
    text-decoration: underline;
}

/* Suchformular */
.em-recipe-search-widget {
    margin: 30px 0;
}

/* Index Container */
.em-recipe-index-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Such-Sektion */
.em-recipe-search-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.em-search-bar {
    display: flex;
    margin-bottom: 30px;
}

.em-search-bar .em-search-input {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.em-search-bar .em-search-submit {
    padding: 12px 30px;
    background: #2c7a7b;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background 0.3s ease;
}

.em-search-bar .em-search-submit:hover {
    background: #1a5455;
}

/* Filter */
.em-recipe-filters {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.em-filter-title {
    margin: 0 0 20px 0;
    font-size: 1.2em;
    color: #333;
}

.em-filter-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.em-filter-group h4 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #555;
}

.em-filter-options {
    max-height: 200px;
    overflow-y: auto;
}

.em-filter-option {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

.em-filter-option input[type="checkbox"] {
    margin-right: 8px;
}

.em-filter-option span {
    font-size: 0.95em;
}

.em-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.em-apply-filters {
    background: #2c7a7b;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.em-apply-filters:hover {
    background: #1a5455;
}

.em-reset-filters {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.em-reset-filters:hover {
    background: #f5f5f5;
}

/* Ergebnis-Anzahl */
.em-recipe-count {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #666;
}

/* Keine Rezepte */
.em-no-recipes {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.em-no-recipes p {
    font-size: 1.2em;
}

/* Rezept Grid */

.em-recipe-search-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.em-search-input-wrapper {
    display: flex;
    margin-bottom: 20px;
}

.em-search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.em-search-button {
    padding: 10px 20px;
    background: #2c7a7b;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

.em-search-button:hover {
    background: #1a5455;
}

.em-search-filters {
    display: flex;
    gap: 20px;
}

.em-filter-group {
    flex: 1;
}

.em-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.em-filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .em-recipe-body {
        grid-template-columns: 1fr;
    }
    
    .em-recipe-meta-info {
        gap: 15px;
    }
    
    .em-recipe-grid {
        grid-template-columns: 1fr;
    }
    
    .em-search-filters {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    .em-recipe-footer,
    .em-portions-selector {
        display: none;
    }
    
    .em-recipe-single {
        max-width: 100%;
    }
    
    .em-recipe-body {
        grid-template-columns: 1fr;
    }
    
    .em-recipe-ingredients {
        break-inside: avoid;
    }
}
