/* === BASIS-STYLES === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: #fff8f0;
    color: #333;
    line-height: 1.6;
    padding: 2rem;
}

/* === FORMULARE & BOXEN === */
.form-box {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.7rem;
    margin-top: 0.3rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
}

label {
    display: block;
    font-weight: bold;
    margin-top: 1rem;
}

/* === BUTTONS – EINHEITLICHES DESIGN === */
button,
.action-button,
.secondary-button,
.danger-button {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    padding: 0.8rem;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

button {
    background-color: #27ae60;
    color: white;
}

button:hover {
    background-color: #219150;
}

.action-button {
    background-color: #e67e22;
    color: white;
}

.action-button:hover {
    background-color: #cf711b;
}

.secondary-button {
    background-color: #ccc;
    color: #333;
}

.secondary-button:hover {
    background-color: #bbb;
}

.danger-button {
    background-color: #e74c3c;
    color: white;
}

.danger-button:hover {
    background-color: #c0392b;
}

/* === NACHRICHTEN === */
.message {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* === DASHBOARD CONTAINER === */
.dashboard-container {
    max-width: 1000px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* === HEADER === */
.main-header {
    background-color: #c0392b;
    padding: 1rem 2rem;
    color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.header-content h1 {
    margin: 0;
}

nav a {
    margin-left: 1.5rem;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

/* === FOOTER === */
.main-footer {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    color: #777;
    font-size: 0.9rem;
}

/* === PROFIL SEITE === */
.profile-section {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.profile-section h2 {
    margin-top: 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-section p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.toggle-password-form {
    margin-top: 1rem;
}

.toggle-password-form button {
    background: #3498db;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.toggle-password-form button:hover {
    background: #2980b9;
}

.password-form {
    margin-top: 1rem;
}

.password-form label {
    display: block;
    margin: 0.5rem 0 0.2rem;
}

.password-form input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.password-form .form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.password-form .form-actions button {
    flex: 1;
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
}

.password-form .form-actions .save-btn {
    background-color: #27ae60;
    color: white;
}

.password-form .form-actions .cancel-btn {
    background-color: #bdc3c7;
    color: #333;
}

/* === PROFIL STATS === */
.profil-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-box {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 12px;
    flex: 1;
    text-align: center;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #c0392b;
}

.stat-label {
    font-size: 0.9rem;
    color: #555;
}

.profil-box {
    text-align: center;
    padding: 2rem;
}

.profilbild {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ccc;
    margin-bottom: 1rem;
}

.profil-email {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

.profil-box .button {
    display: inline-block;
    margin: 0.5rem;
}

/* === DASHBOARD ACTION BUTTONS === */
.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.dashboard-actions .button {
    background-color: #2980b9;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.dashboard-actions .button:hover {
    background-color: #2471a3;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.admin-table th,
.admin-table td {
    border: 1px solid #ccc;
    padding: 0.75rem 1rem;
    text-align: left;
}

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

.rezept-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.rezept-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.rezept-info {
    flex-grow: 1;
}