/* === Basislayout === */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --text-color: #333;
    --text-color-light: #fff;
    --border-color: #e0e0e0;
    --hover-color: #f5f5f5;
    --background-color: #f2f2f2;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 0;
}

/* === Menü === */
.main-menu {
    background-color: #2c3e50; /* Dunkelblau */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-left {
    display: flex;
    align-items: center;
}

.menu-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff; /* Weiß */
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-logo:hover {
    background-color: #34495e;
    transform: translateY(-1px);
}

.menu-right {
    display: flex;
    gap: 0.5rem;
}

.menu-item {
    color: #fff; /* Weiß */
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

.menu-item:hover {
    background-color: #34495e;
    border-color: #fff;
    transform: translateY(-1px);
}

.menu-item:active {
    transform: translateY(0);
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* === Buttons === */
.button {
    display: inline-block;
    padding: 0.6em 1em;
    border: none;
    border-radius: 6px;
    background-color: #0077cc;
    color: white;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    margin-top: 0.5rem;
}

.button:hover {
    background-color: #005fa3;
}

/* === Formularfelder === */
.form-field {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.6em;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

textarea {
    resize: vertical;
}

/* === Login- und Registrierungsformulare === */
form {
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

form h2 {
    text-align: center;
    margin-bottom: 1rem;
}

form input[type="text"],
form input[type="password"],
form input[type="email"]{
    margin-bottom: 1.2rem;
}

form .error-message {
    color: red;
    font-size: 1em;
    margin-bottom: 1rem;
    text-align: center;
}

/* === Rezeptkarten / Listen === */
.rezept-card {
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.rezept-card:hover {
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rezept-card h3 {
    margin-bottom: 0.2rem;
}

.rezept-card .meta {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 0.5rem;
}

.rezept-card .actions {
    margin-top: 1rem;
}

.rezept-card .actions a {
    color: #0077cc;
    text-decoration: none;
    margin-right: 0.5rem;
    font-size: 0.95em;
}

.rezept-card .actions a:hover {
    text-decoration: underline;
}

/* === Logout === */
.logout-button {
    display: inline-block;
    padding: 0.6em 1em;
    background-color: #e60000;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1rem;
    text-align: center;
}

.logout-button:hover {
    background-color: #c50000;
}

/* === Responsive Optimierung === */
@media (max-width: 600px) {
    body {
        padding: 0.5rem;
    }

    .container {
        padding: 0.8rem;
    }

    .button,
    .logout-button {
        width: 100%;
        text-align: center;
    }

    form input[type="text"],
    form input[type="password"] {
        padding: 1rem;
    }
}

/* === Zutaten === */
.zutat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.zutat-menge {
    font-weight: bold;
    width: 10%;
}

.zutat-name {
    width: 85%;
}

/* === Zutatenliste für Rezept_anzeigen === */
#zutaten-liste-rezept {
    margin-top: 20px;
    display: block; /* Standardmäßig sichtbar */
}

#zutaten-liste-rezept .zutat {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* === Kochassistent - Zutaten Checkliste === */
#zutaten-liste-kochassistent {
    margin-top: 20px;
    display: none;
}

.zutaten-checkbox {
    margin-right: 10px;
}

.zutat {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.zutat-menge {
    font-weight: bold;
    width: 50px;
    text-align: right;
    margin-right: 10px;
}

.zutat-name {
    font-size: 1.1em;
    flex: 1;
}

.zutaten-checkbox:checked + .zutat-name {
    text-decoration: line-through;
    color: #999;
}

/* === Zubereitungsschritte === */
.zubereitung {
    margin-top: 2rem;
}

.zubereitung h3 {
    font-size: 1.8em;
    color: #333;
    font-weight: bold;
    margin-bottom: 1rem;
}

.zubereitungsliste {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.zubereitungsschritt {
    background-color: #f9f9f9;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-left: 5px solid #0077cc;
    border-radius: 6px;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.zubereitungsschritt:hover {
    background-color: #e9f5ff;
    border-color: #005fa3;
}

.schritt-num {
    font-weight: bold;
    color: #0077cc;
    font-size: 1.2em;
    flex-shrink: 0;
    width: 2rem;
}

.schritt-beschreibung {
    font-size: 1.05em;
    color: #444;
    line-height: 1.6;
}

/* === Kochassistent - Ergänzungen === */

/* Personenwahl-Buttons */
.personen-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.personen-button {
    padding: 0.6rem 1.2rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f2f2f2;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    width: 30%;
}

.personen-button.selected {
    background-color: #0077cc;
    color: white;
    border-color: #005fa3;
}

.personen-button:hover {
    background-color: #0077cc;
    color: white;
}

/* Zutaten Checkliste */
#zutaten-liste {
    margin-top: 20px;
    display: block;
}

.zutaten-checkbox {
    margin-right: 10px;
}

.zutat {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.zutat-menge {
    font-weight: bold;
    width: 50px;
    text-align: right;
    margin-right: 10px;
}

.zutat-name {
    font-size: 1.1em;
    flex: 1;
}

.zutaten-checkbox:checked + .zutat-name {
    text-decoration: line-through;
    color: #999;
}

/* Zubereitungsschritte */
#zubereitung-liste {
    display: none;
    margin-top: 20px;
}

.zubereitungschritt {
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.6;
}

.zubereitung-liste ol {
    padding-left: 20px;
}

/* Button für den Start des Kochens */
#start-kochen {
    background-color: #007bff;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1.2em;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

#start-kochen:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .personen-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .personen-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .zutat-menge {
        font-size: 0.9em;
        width: auto;
        margin-right: 5px;
    }

    .zutat-name {
        font-size: 1em;
    }

    #start-kochen {
        font-size: 1.1em;
    }
}

.freigegeben-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #48bb78;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.checkbox-field {
    margin: 0.5em 0;
    display: flex;
    align-items: center;
}

.checkbox-field input[type="checkbox"] {
    margin-right: 0.5em;
}

.checkbox-field label {
    margin-bottom: 0;
}

/* Rezeptkarten Styles */
.rezepte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.rezept-karte {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rezept-karte:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.rezept-inhalt {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rezept-titel {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.rezept-beschreibung {
    color: #4a5568;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.rezept-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.rezept-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rezept-erstellt {
    color: #718096;
    font-size: 0.875rem;
}

.rezept-aktionen {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.rezept-karte .rezept-aktionen .button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background: var(--primary-color);
    color: var(--text-color-light);
    border: 1px solid var(--primary-color);
}

.rezept-karte .rezept-aktionen .button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.rezept-karte .rezept-aktionen .button:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .rezepte-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .rezept-inhalt {
        padding: 1rem;
    }

    .rezept-titel {
        font-size: 1.125rem;
    }

    .rezept-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .rezept-aktionen {
        width: 100%;
        justify-content: space-between;
    }
}

/* Rezeptanzeige */
.rezept-header {
    background: var(--primary-color);
    color: var(--text-color-light);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rezept-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.rezept-header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.rezept-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.rezept-erstellt {
    font-size: 1.1rem;
}

.freigegeben-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.rezept-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.rezept-zutaten {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rezept-zubereitung {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.personen-buttons {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.personen-button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--text-color-light);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
}

.personen-button:hover {
    background: var(--hover-color);
}

.personen-button.active {
    background: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
}

.zutaten-liste {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.zutat {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.zutat:last-child {
    border-bottom: none;
}

.zutat-menge {
    min-width: 60px;
    font-weight: 500;
}

.zubereitungsliste {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zubereitungsschritt {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.zubereitungsschritt:last-child {
    border-bottom: none;
}

.schritt-nummer {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.schritt-beschreibung {
    flex: 1;
}

.rezept-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .rezept-grid {
        grid-template-columns: 1fr;
    }
    
    .rezept-header h1 {
        font-size: 2rem;
    }
    
    .rezept-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rezept-footer {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Rezeptanzeige Buttons */
.rezept-header .rezept-aktionen .button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background: transparent;
    color: var(--text-color-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rezept-header .rezept-aktionen .button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.rezept-header .rezept-aktionen .button:active {
    transform: translateY(0);
}

/* Rezeptkarten Buttons */
.rezept-karte .rezept-aktionen .button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background: var(--primary-color);
    color: var(--text-color-light);
    border: 1px solid var(--primary-color);
}

.rezept-karte .rezept-aktionen .button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.rezept-karte .rezept-aktionen .button:active {
    transform: translateY(0);
}

/* Login-Seite */
.login-container {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--background-color);
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-color);
    opacity: 0.8;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-form label {
    font-weight: 500;
    color: var(--text-color);
}

.login-form input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.login-form .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.login-form .button {
    flex: 1;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.login-form .button.primary {
    background: var(--primary-color);
    color: var(--text-color-light);
    border: none;
}

.login-form .button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.login-form .button:hover {
    transform: translateY(-1px);
}

.login-form .button.primary:hover {
    background: var(--secondary-color);
}

.login-form .button.secondary:hover {
    background: rgba(44, 62, 80, 0.05);
}

.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 640px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-card {
        padding: 1.5rem;
    }
    
    .login-header h1 {
        font-size: 1.75rem;
    }
    
    .login-form .form-actions {
        flex-direction: column;
    }
}

/* Rezeptbearbeitung */
.edit-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.edit-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.edit-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.edit-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.edit-form {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.form-field {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.mengen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.zutat-row,
.schritt-row {
    background: var(--background-color-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zutat-row:hover,
.schritt-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.zutat-row button,
.schritt-row button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.zutat-row button:hover,
.schritt-row button:hover {
    background: #cc0000;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.form-actions .button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-actions .button.primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.form-actions .button.primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.form-actions .button.secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.form-actions .button.secondary:hover {
    background: var(--background-color-light);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .edit-container {
        margin: 1rem auto;
    }
    
    .edit-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .edit-form {
        padding: 1.5rem;
    }
    
    .mengen-grid {
        grid-template-columns: 1fr;
    }
    
    .zutat-row,
    .schritt-row {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-actions .button {
        width: 100%;
        text-align: center;
    }
}

/* Profilseite */
.profile-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.profile-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.profile-form-container {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-form .form-section {
    background: var(--background-color-light);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.profile-form .form-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.profile-form .form-field {
    margin-bottom: 1.5rem;
    position: relative;
}

.profile-form .form-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.profile-form .form-field input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.profile-form .form-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.profile-form .form-field small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

.profile-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-top: 2rem;
}

.profile-form .form-actions .button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.profile-form .form-actions .button.primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.profile-form .form-actions .button.primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.profile-form .form-actions .button.secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.profile-form .form-actions .button.secondary:hover {
    background: var(--background-color-light);
    transform: translateY(-2px);
}

.profile-form .error-message {
    background: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #ffcdd2;
}

.profile-form .success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #c8e6c9;
}

@media (max-width: 768px) {
    .profile-container {
        margin: 1rem auto;
    }
    
    .profile-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .profile-form-container {
        padding: 1.5rem;
    }
    
    .profile-form .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .profile-form .form-actions .button {
        width: 100%;
        text-align: center;
    }
}

/* 404-Seite */
.error-container {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--background-color);
}

.error-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.error-header {
    margin-bottom: 2.5rem;
}

.error-header h1 {
    font-size: 6rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
    font-weight: 700;
}

.error-header h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin: 1rem 0;
}

.error-header p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 1.1rem;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.error-actions .button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.error-actions .button.primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.error-actions .button.primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.error-actions .button.secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.error-actions .button.secondary:hover {
    background: var(--background-color-light);
    transform: translateY(-2px);
}

.error-suggestions {
    text-align: left;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.error-suggestions h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.error-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-suggestions li {
    margin-bottom: 0.75rem;
}

.error-suggestions a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.error-suggestions a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.error-suggestions a::before {
    content: "→";
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.error-suggestions a:hover::before {
    transform: translateX(4px);
}

.error-suggestions a::after {
    content: "→";
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.error-suggestions a:hover::after {
    transform: translateX(4px);
}

@media (max-width: 640px) {
    .error-container {
        padding: 1rem;
    }
    
    .error-content {
        padding: 2rem;
    }
    
    .error-header h1 {
        font-size: 4rem;
    }
    
    .error-header h2 {
        font-size: 1.5rem;
    }
    
    .error-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .error-actions .button {
        width: 100%;
        text-align: center;
    }
}

/* Startseite */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.welcome-section .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-description {
    color: var(--text-secondary);
}

.section {
    margin-bottom: 4rem;
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.rezepte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.rezept-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.rezept-card:hover {
    transform: translateY(-5px);
}

.rezept-header {
    margin-bottom: 1rem;
}

.rezept-header h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.kategorie-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.rezept-beschreibung {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.rezept-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-actions {
    text-align: center;
    margin-top: 2rem;
}

.kategorien-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.kategorie-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.kategorie-card:hover {
    transform: translateY(-5px);
}

.kategorie-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.kategorie-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.cta-section {
    text-align: center;
    background: var(--primary-color);
    color: white;
    padding: 3rem;
    border-radius: 10px;
    margin-top: 3rem;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta-actions .button {
    min-width: 200px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .home-container {
        padding: 1rem;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .rezepte-grid {
        grid-template-columns: 1fr;
    }

    .kategorien-grid {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .button {
        width: 100%;
    }
}
