/* Grundlegende Layout- und Textstile */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

h1, h2, h3 {
    color: #333;
}

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

a:hover {
    color: #007bff;
}

/* Header */
header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

header a {
    color: white;
}

form {
    margin: 0;
}

nav a {
    background-color: #007bff;
    padding: 10px 15px;
    color: white;
    border-radius: 4px;
    text-decoration: none;
}

nav a:hover {
    background-color: #0056b3;
}

/* Top-Rezepte */
.top-recipes {
    margin: 20px;
}

.recipe-grid-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.recipe-item {
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #fff;
    text-align: center;
    flex: 1;
    max-width: 24%;
}

.recipe-item img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.recipe-item h3 {
    font-size: 18px;
    margin-top: 10px;
}

/* Kategorien */
.categories {
    margin: 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-item {
    text-align: center;
}

.category-item img {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 150px;
    height: auto;
}

.category-item p {
    margin-top: 10px;
    font-weight: bold;
}

/* Tabelle für alle Rezepte */
.all-recipes {
    margin: 20px;
}

.all-recipes table {
    width: 100%;
    border-collapse: collapse;
}

.all-recipes th, .all-recipes td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.all-recipes img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

.all-recipes a {
    color: #333;
    font-weight: bold;
}

.all-recipes a:hover {
    color: #007bff;
}

/* Buttons und Formulare */
button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

input[type="text"], textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

input[type="file"] {
    margin: 10px 0;
}

/* Media Queries für Mobilgeräte */
@media (max-width: 768px) {
    .recipe-grid-top {
        flex-direction: column;
    }

    .recipe-item {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .all-recipes table {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
    }

    header h1 {
        margin-bottom: 10px;
    }

    nav a {
        margin-top: 10px;
    }
}

/* Warnung für inaktive Rezepte */
.warning {
    color: red;
    font-weight: bold;
}

/* Drucklayout */
@media print {
    /* Header, Navigation, Suchfeld und andere nicht relevante Elemente ausblenden */
    header, nav, .search-form, .header-nav {
        display: none;
    }

    /* Logo oben links im Drucklayout anzeigen */
    .print-logo {
        display: block;
        position: absolute;
        top: 20px;
        left: 20px;
        width: 150px; /* Passe die Größe des Logos an */
    }

    /* Rezeptdetails sollen im Druck sichtbar sein */
    .recipe-details {
        width: 100%;
        font-size: 16px;
        line-height: 1.5;
    }

    /* Bilder in voller Breite anzeigen */
    .recipe-images img {
        max-width: 100%;
        height: auto;
    }

    /* Links als Text anzeigen */
    a {
        text-decoration: none;
        color: black;
    }

    /* Footer anzeigen */
    footer {
        display: block;
        margin-top: 30px;
        text-align: center;
        font-size: 12px;
        color: #666;
    }

    /* Durchschnittliche Bewertung im Druck anzeigen */
    .average-rating {
        display: block;
        margin-top: 30px;
        font-size: 16px;
        text-align: center;
    }
}


/* Lightbox Styling */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 80%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.lightbox-overlay .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Allgemeines Button-Layout */
nav a {
    background-color: #007bff;
    padding: 10px 15px;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin-right: 2px; /* Abstand zwischen den Buttons */
}

nav a:hover {
    background-color: #0056b3;
}

/* Media Queries für Mobilgeräte */
@media (max-width: 768px) {
    nav a {
        display: block;  /* Buttons untereinander anordnen */
        margin: 2px 0;  /* Abstand zwischen den Buttons */
        width: 100%;     /* Volle Breite nutzen */
        text-align: center;  /* Text zentrieren */
    }
}

@media (max-width: 576px) {
    header {
        flex-direction: column;
    }

    header h1 {
        margin-bottom: 10px;
    }

    nav a {
        margin: 2px 0;  /* Abstand zwischen den Buttons auf 2px reduzieren */
    }
}

/* Allgemeines Layout für das Menü */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 10px;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

header a {
    color: white;
    text-decoration: none;
}

/* Hamburger-Menü-Button */
.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    display: none; /* Standardmäßig ausgeblendet */
}

/* Flyout-Menü (standardmäßig versteckt) */
.flyout-menu {
    display: flex;
    gap: 20px;
}

.flyout-menu a {
    background-color: #007bff;
    padding: 10px 15px;
    color: white;
    border-radius: 4px;
    text-decoration: none;
}

.flyout-menu a:hover {
    background-color: #0056b3;
}

/* Responsive Anpassungen für das Flyout-Menü */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Hamburger-Button anzeigen */
    }

    .flyout-menu {
        display: none; /* Menü standardmäßig verstecken */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Position unterhalb des Headers */
        left: 0;
        width: 100%;
        background-color: #333;
    }

    .flyout-menu.active {
        display: flex; /* Flyout-Menü anzeigen */
    }

    .flyout-menu a {
        width: 100%;
        text-align: center;
        padding: 15px;
        margin: 0;
    }
}
/* Footer-Styling, ähnlich wie der Header */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;

    bottom: 0;

    font-size: 14px;
}

footer p {
    margin: 0;
    font-size: 14px;
}
/* Container für das geteilte Layout */
.recipe-container {
    display: flex;
    justify-content: space-between;
    margin: 20px;
}

/* Linke Seite des Rezepts */
.recipe-left {
    width: 60%;
    padding-right: 20px;
}

.recipe-title {
    font-size: 2em;
    margin-bottom: 10px;
}

.recipe-categories {
    font-size: 1em;
    margin-bottom: 20px;
}

.recipe-rating {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Rechte Seite des Rezepts (Bild und Bewertung) */
.recipe-right {
    width: 35%;
    text-align: center;
}

/* Bild für die rechte Seite */
.recipe-right img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Bewertung */
.rating-section {
    margin-top: 20px;
}

.rating-section label {
    display: inline-block;
    margin-right: 10px;
}

button {
    margin-top: 10px;
}

/* Kochhauben bei der Bewertungsanzeige */
.recipe-rating img {
    margin-right: 5px;
}

/* Kochhauben bei der Bewertungsabgabe */
.rating-section label img {
    transition: transform 0.2s;
}

.rating-section label:hover img {
    transform: scale(1.2); /* Vergrößere Kochhauben bei Hover */
}

.rating-section label img {
    cursor: pointer;
    margin-right: 10px;
}
/* Styling für den Header */
.header {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: white;
    font-family: Arial, sans-serif;
}

/* Dunkler Verlauf über dem Bild */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1));
    z-index: 1;
}

/* Header-Inhalt */
.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Linke Seite mit Logo und Suchfeld */
.left-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Logo */
.site-logo {
    width: 200px; /* Passe die Größe des Logos an */
    margin-bottom: 20px;
}

/* Suchleiste */
.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    width: 250px;
}

.search-button {
    padding: 10px;
    background-color: #e91e63; /* Passend zur Farbe */
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
    text-transform: uppercase;
}

.search-button:hover {
    background-color: #d81b60;
}

/* Navigation */
.header-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-nav a {
    color: white;
    padding: 10px;
    background-color: #e91e63; /* Pink wie in deinem Beispiel */
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}

.header-nav a:hover {
    background-color: #d81b60;
}

/* Druck-Button */
.print-btn {
    padding: 10px;
    background-color: #e91e63;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.print-btn:hover {
    background-color: #d81b60;
}

        /* Logo Größe anpassen */
        .header .logo {
            max-width: 200px; /* Breite des Logos anpassen */
            height: auto; /* Höhe automatisch anpassen, um das Verhältnis beizubehalten */
        }


/* In deiner styles.css oder einer eingebundenen CSS-Datei */
.grundzubereitung-link {
    text-decoration: underline dotted;
    text-decoration-color: #000; /* Farbe der Unterstreichung */
    text-underline-offset: 2px; /* Abstand der Unterstreichung vom Text */
    text-decoration-thickness: 1px; /* Dicke der Unterstreichung */
    color: #000; /* Farbe des Textes */
}
