/* Grundlegende Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #646669; /* Heller Hintergrund */
    color: #343a40; /* Dunkler Text */
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    color: #343a40; /* Dunkelgrau */
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Navigation Bar */
.navbar {
    background-color: #343a40 !important; /* Dunkle Hintergrundfarbe */
    color: white; /* Weißer Text */
    border-radius: 12px; /* Runde Kanten */
    border: 1px solid #f8f9fa; /* Helle Umrandung */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
}

.navbar .navbar-brand, 
.navbar .nav-link, 
.navbar .btn {
    color: white !important; /* Alle Links und Buttons weiß */
}

.navbar .navbar-brand:hover, 
.navbar .nav-link:hover, 
.navbar .btn:hover {
    color: #ffc107 !important; /* Gelber Hover-Effekt */
}

.navbar .btn-primary {
    background-color: #ffc107; /* Gelbe Farbe für Buttons */
    border: none;
    color: black; /* Schwarzer Text */
}

.navbar .btn-primary:hover {
    background-color: #e0a800; /* Etwas dunkleres Gelb beim Hover */
}



/* Buttons */
.btn {
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease-in-out;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
    border: none;
}

.btn-warning:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

/* Formulare */
.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-size: 14px;
}

/* Rezeptdetails */
.recipe-detail-container {
    max-width: 1000px;
    margin: 20px auto;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.recipe-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    text-align: center;
    color: #343a40;
}

.recipe-detail img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Flexbox für Details */
.recipe-detail .content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .recipe-detail .content {
        flex-direction: column;
    }

    .recipe-detail img {
        max-width: 100%;
    }
    #photoCarousel {
        max-width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    #photoCarousel img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 576px) {
    #photoCarousel {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        margin-bottom: 20px;
    }

    #photoCarousel img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }
}

/* Flexbox für Layout */
@media (min-width: 768px) {
    .recipe-detail-container {
        display: flex;
        flex-direction: column;
    }

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

    .recipe-info {
        flex: 0 0 60%;
    }

    #photoCarousel {
        flex: 0 0 35%;
        margin-bottom: 20px;
    }

    #photoCarousel img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
    }
}


/* Karten */
.card {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: all 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-text {
    color: #6c757d;
    margin-bottom: 15px;
}

.card .btn {
    margin-right: 5px;
}

.card-img-top {
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.recipe-card-link {
    text-decoration: none; /* Entfernt die Unterstreichung des Links */
    color: inherit; /* Sorgt dafür, dass die Textfarbe vom Elternelement geerbt wird */
    display: block; /* Der Link erstreckt sich über die gesamte Breite der Karte */
}

.recipe-card-link:hover {
    text-decoration: none; /* Verhindert Unterstreichung beim Hover */
    color: inherit;
}

.recipe-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Verstärkt den Schatten beim Hover */
    cursor: pointer; /* Ändert den Cursor zu einer Hand */
}
/* Tabelle für Zutaten */
.table {
    margin-top: 15px;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.table th,
.table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #dee2e6;
}

.table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.input-group .form-control {
    height: 40px;
    border-radius: 8px 0 0 8px;
}

.input-group .btn {
    height: 40px;
    line-height: 1.2;
    border-radius: 0 8px 8px 0;
}

