:root {
    --primary-color: #ff6b6b;
    --primary-dark: #e05a5a;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-color: #333333;
    --border-color: #dddddd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: var(--card-background);
    text-align: center;
    padding: 2rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

h2 {
    margin-bottom: 1.5rem;
    color: #444;
    border-bottom: 2px solid var(--background-color);
    padding-bottom: 0.5rem;
}

/* Formular-Styling */
.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

input[type="text"], input[type="url"], textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.ingredient-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.ingredient-row input.ing-name { flex: 2; }
.ingredient-row input.ing-amount { flex: 1; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-danger {
    padding: 0.75rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary:hover { background-color: var(--primary-dark); }

.btn-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.btn-secondary:hover { background-color: #cbd5e1; }

.btn-danger {
    background-color: #fed7d7;
    color: #c53030;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

/* Suche */
.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input { flex: 1; }
.search-box button { width: auto; }
.search-hint {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.5rem;
}

/* Rezept-Anzeige Grid */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.recipe-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #eaeded;
}

.recipe-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.recipe-card h3 {
    margin-bottom: 0.5rem;
    color: #222;
}

.recipe-card ul {
    list-style-type: none;
    margin-bottom: 1rem;
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.recipe-card p {
    font-size: 0.95rem;
    white-space: pre-wrap; /* Behält Zeilenumbrüche bei der Zubereitung bei */
    margin-bottom: 1rem;
}

.recipe-card-footer {
    margin-top: auto;
    text-align: right;
}