/* Allgemeines Layout / Reset */

/* Sticky Footer Struktur */
html, body 
{
    height: 100%;
    margin: 0;
    padding: 0;
}

body 
{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #fff8f0;
    padding: 20px;
}

main 
{
    flex: 1;
}


/* Überschriften */

h1 
{
    color: #ff6600;
    text-align: center;
}

/* Formulare & Eingabefelder */

form, .rezept 
{
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

input, textarea, select 
{
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #aaa;
}

input[type="submit"] 
{
    background-color: #ff6600;
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}

/* Navigationsleiste */

.main-nav 
{
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 10px;
    background-color: #ffdfba;
    border-radius: 10px;
}

.main-nav a 
{
    padding: 10px 15px;
    background-color: #ff914d;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.main-nav a:hover 
{
    background-color: #ff7b26;
}

/* Buttons */

.button 
{
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.button-red 
{
    background-color: red;
    color: white;
    outline: none;
    box-shadow: none;
}

.button-orange 
{
    background-color: orange;
    color: white;
}

/* Gruppenanordnung für Buttons (z.B. Bearbeiten / Löschen) */
.button-row 
{
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.button-group 
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

@media screen and (min-width: 700px) 
{
    .button-group 
	{
        flex-direction: row;
        justify-content: center;
    }
}

/* Rezeptkarten & Bilder */

/* Box für Detailansicht */
.rezept-box 
{
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
}

.rezept-box img 
{
    max-width: 100%;
    border-radius: 5px;
    margin-top: 10px;
}

/* Einzelnes Rezept in der Übersicht */
.rezept 
{
    transition: transform 0.2s ease, background-color 0.2s ease;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    padding: 15px;
    margin: 20px auto;
    max-width: 600px;
}

.rezept:hover 
{
    transform: scale(1.02);
    background-color: #fff3e6;
}

/* Gitter-Layout für Rezeptübersicht */
.rezepte-grid 
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive Design (Mobil) */

@media screen and (max-width: 768px) 
{
    body 
	{
        padding: 10px;
    }

    nav 
	{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .rezept, form 
	{
        width: 100%;
        box-sizing: border-box;
        padding: 15px;
    }

    input[type="text"],
    input[type="file"],
    textarea 
	{
        width: 100%;
        font-size: 16px;
    }

    h1, h2 
	{
        font-size: 22px;
        text-align: center;
    }

    img 
	{
        width: 100%;
        height: auto;
    }

    input[type="submit"] 
	{
        width: 100%;
        padding: 12px;
    }

    footer 
	{
        font-size: 14px;
        text-align: center;
    }
}

