/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, sans-serif;
    background: linear-gradient(180deg, #0b0f1a, #06080f);
    color: #e6e6e6;
    line-height: 1.6;
    padding: 2rem;
}

.top-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 60px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 1.6rem;

    background: linear-gradient(
        180deg,
        #0f1626,
        #0b1120
    );

    box-shadow: 0 8px 30px rgba(0,0,0,0.6);

    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;

    z-index: 1000;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e6e6e6;
    text-decoration: none;
}

.logo:hover {
    color: #2f80ed;
}

.header-right {
    position: relative;
}

.avatar-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2f80ed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
}

.avatar-menu {
    position: absolute;
    right: 0;
    top: 48px;

    background: #0b1120;
    border-radius: 10px;
    min-width: 140px;

    display: none;
    flex-direction: column;

    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.avatar-menu a {
    padding: 0.7rem 1rem;
    text-decoration: none;
    color: #e6e6e6;
    font-size: 0.9rem;
}

.avatar-menu a:hover {
    background: #151d35;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Typografie */
h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    margin-top: 1rem;
}

.intro {
    max-width: 600px;
    margin-bottom: 3rem;
    color: #b8c1d1;
}

/* Rezeptkarte */
.recipe {
    background-color: #0f1626;
    border-radius: 14px;
    padding: 1.8rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}


.recipe img {
    width: 100%;
    max-width: 360px;   
    height: 220px;       

    object-fit: cover;     
    object-position: center;

    border-radius: 14px;
    margin-top: 1rem;
    display: block;
}

.recipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.arrow {
    transition: transform 0.3s ease;
}

/* Kurzbeschreibung */
.recipe-short {
    margin-top: 0.5rem;
    color: #cfd6e0;
}

/* Details (aufklappbar) */
.recipe-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* geöffnet */
.recipe.open .recipe-details {
    max-height: 3000px;
}

.recipe.open .arrow {
    transform: rotate(180deg);
}

/* Video */
.video-wrapper {
    position: relative;
    padding-top: 56.25%;
    margin: 1.5rem 0;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: none;
}

/* Listen */
ul, ol {
    margin-left: 1.2rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 700px) {
    body {
        padding: 1.2rem;
    }
}


.admin-card {
    max-width: 800px;
    margin-top: 2rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: #cfd6e0;
}


.admin-form input,
.admin-form textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    border: none;
    background-color: #0b1120;
    color: #e6e6e6;
    font-family: inherit;
    font-size: 1rem;

    resize: none;       /* User kann nicht ziehen */
    overflow: hidden;   /* KEINE Scrollbar */
}

.admin-form input:focus,
.admin-form textarea:focus {
    outline: 2px solid #2f80ed;
}

.admin-form button {
    align-self: flex-start;
    padding: 0.8rem 1.7rem;
    background-color: #2f80ed;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

.admin-form button:hover {
    background-color: #2566c2;
}

#imagePreview {
    max-width: 50%;
    margin-top: 0.8rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.recipe-details ol {
    list-style-position: outside; 
    padding-left: 2rem;           
    margin-left: 0;
}

.container {
    margin-top: 90px;
}

.header-left .logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.header-search {
    display: flex;
    margin-left: auto;  
    margin-right: 20px;  
}

.header-search input {
    width: 100%;
    max-width: 320px;

    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: none;

    background: #0b1120;
    color: #e6e6e6;
    font-size: 0.9rem;

    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.header-search input::placeholder {
    color: #9aa3b2;
}

.header-search input:focus {
    outline: none;
    box-shadow:
        inset 0 0 0 1px #2f80ed,
        0 0 0 3px rgba(47,128,237,0.25);
}

.header-right {
    margin-right: 12px;
}

.header-search input {
    width: 260px;
}

.recipe-tags {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #151d35;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    color: #9dbbff;
    text-decoration: none;
}

.tag:hover {
    background: #2f80ed;
    color: white;
}
.menu-btn {
    background: none;
    border: none;
    color: #e6e6e6;
    font-size: 1.4rem;
    cursor: pointer;
    margin-right: 12px;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;

    background: #0b1120;
    box-shadow: 8px 0 30px rgba(0,0,0,0.6);

    padding: 1.2rem;
    transition: left 0.3s ease;
    z-index: 2000;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sidebar-header button {
    background: none;
    border: none;
    color: #e6e6e6;
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar-tags {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-tag {
    color: #9dbbff;
    text-decoration: none;
    font-size: 0.9rem;
}

.sidebar-tag:hover {
    color: white;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1500;
}

.sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-submit {
    margin-top: 1rem;
    background: #2f80ed;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    color: white;
    cursor: pointer;
}

.sidebar-reset {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: #9aa3b2;
    text-decoration: none;
}

.edit-recipe-btn:hover {
    background: #2f80ed;
    color: white;
}

.recipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.recipe-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-recipe-btn-inline {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 6px;
    background: #151d35;
    color: #9dbbff;

    text-decoration: none;
    font-size: 0.95rem;

    transition: all 0.2s ease;
}

.edit-recipe-btn-inline:hover {
    background: #2f80ed;
    color: white;
}

.edit-page {
    max-width: 900px;
}

.edit-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.edit-card {
    background: #0f1626;
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.edit-card h2 {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: #cfd6e0;
}

.edit-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.cancel-link {
    color: #9aa3b2;
    text-decoration: none;
    font-size: 0.9rem;
}

.cancel-link:hover {
    color: white;
}

.edit-form.grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

@media (max-width: 900px) {
    .edit-form.grid {
        grid-template-columns: 1fr;
    }
}

.edit-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.edit-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hint {
    font-size: 0.75rem;
    color: #9aa3b2;
    margin-bottom: 0.4rem;
}

.edit-actions.sticky {
    position: sticky;
    bottom: 1rem;

    background: #0f1626;
    padding: 1rem;
    border-radius: 14px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.edit-actions button {
    width: 100%;
}

.edit-form input,
.edit-form textarea {
    background-color: #0b1120;
    color: #e6e6e6;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    font-family: inherit;
    font-size: 0.95rem;
}

.edit-form input:focus,
.edit-form textarea:focus {
    outline: 2px solid #2f80ed;
}

.edit-form textarea,
.admin-form textarea {
    resize: none;
    overflow: hidden;
}

.edit-form textarea {
    width: 100%;
    min-height: 140px;
    height: auto;
    background-color: #0b1120;
    color: #e6e6e6;

    border: none;
    border-radius: 10px;
    padding: 0.7rem 0.8rem;

    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;

    resize: none;
    overflow: hidden;
}

.btn-primary {
    width: 100%;
    padding: 0.75rem 1.2rem;

    background: linear-gradient(
        135deg,
        #2f80ed,
        #2566c2
    );

    border: none;
    border-radius: 12px;

    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 10px 30px rgba(47, 128, 237, 0.6),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow:
        0 4px 14px rgba(47, 128, 237, 0.35),
        inset 0 2px 4px rgba(0,0,0,0.3);
}

.btn-primary:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(47,128,237,0.35),
        0 6px 20px rgba(47,128,237,0.5);
}

.cancel-link {
    text-align: center;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

.cancel-link:hover {
    opacity: 1;
    color: #e6e6e6;
}

.admin-form .edit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.edit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-tag-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 6px 14px 6px 8px;
    border-radius: 999px;

    background: #0f1626;
    border: 1px solid rgba(255,255,255,0.15);

    font-size: 0.85rem;
    font-weight: 500;
    color: #cfd6e0;

    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-tag-toggle input {
    display: none;
}

/* rechter Check-Kreis */
.admin-tag-toggle .check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #2f80ed;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 700;
    color: white;

    transition: all 0.2s ease;
}

/* aktiv */
.admin-tag-toggle:has(input:checked) {
    background: linear-gradient(
        135deg,
        rgba(47,128,237,0.45),
        rgba(47,128,237,0.2)
    );
    border-color: #2f80ed;
    color: white;
}

.admin-tag-toggle:has(input:checked) .check {
    background: #2f80ed;
}

.admin-tag-toggle:has(input:checked) .check::before {
    content: "✓";
}

/* hover */
.admin-tag-toggle:hover {
    border-color: #2f80ed;
}

/* rechter Kreis standardmäßig NICHT sichtbar */
.admin-tag-toggle .check {
    opacity: 0.3;
    pointer-events: none;
}

.admin-tag-toggle:has(input:checked) .check {
    opacity: 1;
    pointer-events: auto;
}

/* nur anzeigen, wenn aktiv */
.admin-tag-toggle:has(input:checked) .check {
    opacity: 1;
    transform: scale(1);
}

.btn-danger {
    width: 100%;
    padding: 0.7rem 1.2rem;

    background: linear-gradient(
        135deg,
        #c0392b,
        #922b21
    );

    border: none;
    border-radius: 12px;

    color: white;
    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 6px 18px rgba(192,57,43,0.45);

    transition: all 0.15s ease;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow:
        0 10px 30px rgba(192,57,43,0.6);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow:
        0 4px 14px rgba(192,57,43,0.35);
}
/* =========================
   Essensplan – Monatskalender
   ========================= */

.meal-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.meal-nav a {
    color: #2f80ed;
    text-decoration: none;
    font-size: 1.6rem;
}

/* Kalender-Gitter */
.meal-month {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
}


/* Wochentage */
.meal-weekday {
    text-align: center;
    font-size: 0.85rem;
    color: #9aa3b2;
    padding-bottom: 0;
}

/* Tageszelle */
.meal-day {
    background: #0f1626;
    border-radius: 12px;
    min-height: 110px;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
}

.meal-day.empty {
    background: transparent;
    box-shadow: none;
}

/* Tageszahl */
.meal-date {
    font-size: 0.9rem;
    color: #cfd6e0;
}

/* Plus-Symbol */
.meal-add {
    margin-top: auto;
    text-align: center;
    font-size: 1.6rem;
    color: #2f80ed;
    opacity: 0.6;
}

.meal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

.meal-overlay.hidden {
    display: none;
}

/* Panel */
.meal-overlay-content {
    background: #0f1626;
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    position: relative;
}

/* Close Button */
.meal-overlay-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #9aa3b2;
    cursor: pointer;
}

.meal-overlay-close:hover {
    color: white;
}

/* Ganze Tageskarte ist klickbar */
.meal-day {
    cursor: pointer;
}

/* Plus-Zeichen explizit als Button */
.meal-add {
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

/* kleines Feedback beim Hover */
.meal-day:hover .meal-add {
    transform: scale(1.15);
    opacity: 1;
}
/* =========================
   Mealplan Overlay – UX
   ========================= */

.meal-overlay-content h2 {
    margin-bottom: 0.3rem;
}

.meal-overlay-date {
    color: #9aa3b2;
    margin-bottom: 1.2rem;
}

/* Modus-Auswahl */
.mode-select {
    display: flex;
    gap: 14px;
    margin-bottom: 1.2rem;
}

.mode-option {
    flex: 1;
    background: #151d35;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.mode-option input {
    accent-color: #2f80ed;
}

/* Formular-Abstände */
.meal-overlay-content .form-group {
    margin-bottom: 1.2rem;
}

.meal-overlay-content select {
    width: 100%;
}
.meal-item {
    position: relative;
    padding-right: 22px;
}

.meal-delete {
    position: absolute;
    top: 4px;
    right: 6px;
    background: none;
    border: none;
    color: #9aa3b2;
    font-size: 0.9rem;
    cursor: pointer;
}

.meal-delete:hover {
    color: #ff6b6b;
}
/* =========================
   Mealplan – Rezept Bilder
   ========================= */

.meal-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meal-title {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
}

.meal-thumb {
    display: block;
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    background: #151d35; /* Fallback-Farbe */
}
/* =========================
   Mealplan – gleich hohe Kacheln
   ========================= */

.meal-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Titel bleibt kompakt */
.meal-title {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
    min-height: 2.2em; /* sorgt für gleiche Höhe auch bei langen Titeln */
}

/* Feste Bild-Zone */

.meal-thumb {
    width: 88%;              /* 🔑 kleiner als die Karte */
    height: 60px;

    margin: 0 auto;          /* zentrieren */
    
    object-fit: cover;
    border-radius: 8px;

    display: block;
    background: #151d35;
}

/* Falls KEIN Bild existiert → Platz trotzdem reservieren */
.meal-item:not(:has(.meal-thumb))::after {
    content: "";
    height: 64px;
}

.meal-day,
.meal-item {
    min-width: 0;
}
/* =========================================
   FINAL GRID FIX – NICHT ENTFERNEN
   ========================================= */

.meal-month > .meal-day {
    min-width: 0 !important;
}

.meal-day > *,
.meal-item,
.meal-thumb {
    min-width: 0 !important;
    max-width: 100% !important;
}

.meal-month {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));

    column-gap: 12px;  /* Abstand zwischen Tagen */
    row-gap: 6px;      /* 🔑 kleiner Abstand zwischen Zeilen */

    height: calc(100vh - 330px);
    grid-auto-rows: 1fr;
}

.meal-day {
    background: #0f1626;
    border-radius: 12px;
    padding: 10px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.4);

    display: flex;
    flex-direction: column;
    overflow: hidden; /* 🔒 verhindert Aufdehnen */
}

.meal-thumb {
    width: 100%;
    height: 60px;

    object-fit: cover;
    border-radius: 8px;

    flex-shrink: 0 /* wichtig */
}

.meal-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.meal-add {
    margin-top: auto;
}

.meal-month {
    grid-auto-rows: 1fr; /* ✅ jede Woche gleich hoch */
}

.meal-day {
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 🔒 zwingend */
}

.meal-thumb {
    max-height: 55%;
    height: auto;
    object-fit: cover;
}

.meal-thumb {
    width: 88%;              /* bleibt optisch ruhig */
    aspect-ratio: 16 / 10;    /* 🔥 ALLE BILDER QUADRATISCH */
    
    margin: 0 auto;

    object-fit: cover;       /* Bild wird sauber gecroppt */
    object-position: center; /* Fokus in der Mitte */

    border-radius: 8px;
    background: #151d35;
    
    display: block;
}
/* =========================
   Header – Essensplan Button
   ========================= */

.mealplan-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 0.45rem 0.9rem;
    margin-right: 12px;

    border-radius: 999px;
    background: #151d35;
    color: #9dbbff;

    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;

    transition: all 0.2s ease;
}

.mealplan-btn:hover {
    background: #2f80ed;
    color: white;
}

.meal-day {
    cursor: default;
}

.meal-day:has(.meal-add) {
    cursor: pointer;
}

.meal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 2px; /* 🔑 minimaler Abstand */
}

.meal-weekdays div {
    text-align: center;
    font-size: 0.85rem;
    color: #9aa3b2;
}

.meal-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;        /* 🔑 Mindest-Touchgröße */
    height: 44px;

    font-size: 1.6rem;
    line-height: 1;

    border-radius: 999px;
    user-select: none;
}

.meal-day-past {
    opacity: 0.4;
    filter: grayscale(0.8);
    pointer-events: none; /* 🔒 komplett nicht klickbar */
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;       /* top:0; left:0; bottom:0 */
    width: 100%;
    max-width: 420px;
    height: 100vh;

    background: linear-gradient(180deg, #0a0f1b, #05070d);
    z-index: 1001;

    display: flex;
    flex-direction: column;

    /* ✅ GANZ außerhalb des Viewports */
    transform: translateX(-100%);
    transition: transform 0.35s ease;
}

/* ✅ Sichtbar nur wenn JS .open setzt */
.sidebar.open {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-header {
    flex-shrink: 0;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-tags {
    flex: 1;                /* ✅ nimmt Resthöhe */
    overflow-y: auto;       /* ✅ Scroll HIER */
    padding: 16px;
}

@media (max-width: 480px) {
    .sidebar {
        max-width: 100%;
    }
}

.top-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}

@media (max-width: 600px) {
    .top-header {
        justify-content: space-between;
    }

    /* Links: ☰ + Logo */
    .header-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* ✅ Suche schmal & flexibel */
    .header-search {
        flex: 1;
    }

    .header-search input {
        width: 100%;
        font-size: 14px;
    }

    /* ❌ Essensplan im Header ausblenden */
    .mealplan-btn {
        display: none;
    }

    /* ✅ Avatar immer sichtbar */
    .header-right {
        display: flex;
        align-items: center;
    }
}

@media (max-width: 700px) {

    .meal-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .meal-day {
        background: #0b1220;
        border-radius: 16px;
        padding: 14px;
        box-shadow: 0 6px 20px rgba(0,0,0,.35);
    }

    .meal-day-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .meal-day h3 {
        font-size: 16px;
        margin: 0;
    }

    .meal-entry {
        margin-top: 10px;
        padding: 10px;
        background: rgba(255,255,255,0.05);
        border-radius: 10px;
        font-size: 14px;
    }

    .meal-add {
        margin-top: 12px;
        width: 100%;
        padding: 10px;
        border-radius: 12px;
        font-size: 15px;
        background: rgba(255,255,255,0.08);
    }
}

@media (max-width: 600px) {
    #meal-overlay {
        align-items: flex-end;
    }

    .meal-overlay-content {
        width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 16px;
        max-height: 85vh;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {

    .meal-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 12px;
    }

}

@media (max-width: 768px) {

    .meal-day {
        background: #0b1220;
        border-radius: 18px;
        padding: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    }

}

@media (max-width: 768px) {

    .meal-day h3,
    .meal-day-title {
        font-size: 18px;
        font-weight: 600;
        margin: 0;
    }

}

@media (max-width: 768px) {

    .meal-entry {
        margin-top: 12px;
        padding: 12px 14px;
        border-radius: 14px;
        background: rgba(255,255,255,0.06);
        font-size: 16px;
        line-height: 1.4;
    }

}

@media (max-width: 768px) {

    .meal-add {
        margin-top: 14px;
        width: 100%;
        padding: 14px;
        font-size: 16px;
        border-radius: 14px;
    }

}

@media (max-width: 768px) {

    .meal-entry small,
    .meal-meta {
        font-size: 14px;
        opacity: 0.85;
    }

}

@media (max-width: 768px) {

    #meal-overlay {
        align-items: flex-end;
    }

    .meal-overlay-content {
        width: 100%;
        max-height: 90vh;
        border-radius: 22px 22px 0 0;
        padding: 18px;
        font-size: 16px;
        overflow-y: auto;
    }

}

@media (max-width: 768px) {
    .meal-calendar,
    .meal-grid {
        display: none;
    }
}

.meal-mobile-list {
    display: none;
}

@media (max-width: 768px) {

    .meal-mobile-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 12px;
    }

    .meal-mobile-day {
        background: #0b1220;
        border-radius: 18px;
        padding: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,.35);
    }

    .meal-mobile-header {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 12px;
    }

    .meal-mobile-entry {
        font-size: 16px;
        padding: 10px 12px;
        border-radius: 12px;
        background: rgba(255,255,255,0.07);
        margin-bottom: 8px;
    }

    .meal-mobile-add {
        color: #9dbbff;
        width: 100%;
        padding: 14px;
        font-size: 16px;
        border-radius: 14px;
        background: #151d35;
    }
}

.meal-mobile-list {
    display: none;
}

/* 📱 Mobile Ansicht */
@media (max-width: 768px) {

    /* Desktop-Kalender AUS */
    .meal-weekdays,
    .meal-month {
        display: none !important;
    }

    /* Mobile-Liste EIN */
    .meal-mobile-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 12px;
    }
}

@media (max-width: 768px) {

    /* ✅ Container-Layout zurücksetzen */
    .container {
        display: block !important;
    }

    /* Desktop-Kalender aus */
    .meal-weekdays,
    .meal-month {
        display: none !important;
    }

    /* Mobile-Liste an */
    .meal-mobile-list {
        display: flex !important;
        flex-direction: column;
        gap: 16px;
        padding: 12px;
    }
}

