/* 0844 */
:root{
      --accent:#f4f0e9;
      --brand:#222;
      --muted:#6b6b6b;
      --accent-strong:#f8f1e6;
      --card-shadow: 0 6px 18px rgba(0,0,0,0.08);
      --content-width: 1100px;
      font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    }
    *{box-sizing:border-box}
    body{margin:0;color:var(--brand);background:#fff}

    /* layout */
    .wrap{display:flex;min-height:100vh}
    .sidebar{
        width:120px;
        background:#fbfbfb;
        border-right:1px solid #eee;
        padding:24px 12px;
        display:flex;
        flex-direction:column;
        align-items:center
    }

    .sidebar .nav a {
        border-bottom: 1px solid #eee;
        height: 50px;
    }
    .logo{width:48px;height:48px;display:flex;align-items:center;justify-content:center;color:white;font-weight:700;margin-bottom:18px} /*border-radius:50%;background:linear-gradient(180deg,#8ec6d2,#6aa6b9);*/
    .logo a {text-decoration: none; color: #122F53}
    .nav{flex:1;width:100%}
    .nav a{display:block;padding:12px 8px;margin:6px 0;text-align:center;color:var(--muted);text-decoration:none;font-size:12px;border-radius:6px;transition:background-color .2s ease,color .2s ease}
    .nav a:hover{background:#e6f2f4;color:#222}

    main{
      max-width: var(--content-width);
      margin-left:0px;
      flex:1;
      padding:28px 48px;
      background:#fff;

      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    main h1 {
        color: #00344E;
    }

    .hero-title{text-align:center;font-size:28px;font-weight:700;margin:50px 0 75px}

    .mobile-header{ display:none; }

    /* recipe carousel row */
    /*.recipes{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;align-items:start}*/
    .card{width:365px;background:white;border-radius:6px;overflow:hidden;box-shadow:var(--card-shadow)}
    .card img{width:100%;height:200px;object-fit:cover;display:block}
    .card-body{padding:14px}
    .badge{display:inline-block;background:#0a9a6a;color:white;padding:6px 8px;border-radius:4px;font-weight:700;font-size:12px;margin-bottom:8px}
    .card h3{margin:6px 0 6px;font-size:18px}
    .card p{margin:0;color:var(--muted);font-size:14px}

    /* section */
    .how{
        background: var(--accent);
        margin: 75px auto;
        width: 100%;
        max-width: 1200px;
    }


    .how h2{text-align:center;font-size:26px;margin:10px 0 26px}
    .how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
    .how-item {
      width: 350px;
      padding: 5px;
      text-align: center;
    }

    .how-item img {
      width: 100%;
      max-width: 350px;      /* matcher .card width */
      height: 200px;         /* matcher .card img height */
      object-fit: cover;
      border-radius: 6px;
      display: block;
      margin: 0 auto 12px;
    }

    .how-item h4{margin:6px 0;font-size:16px}
    .how-item p{margin:0;color:var(--muted);font-size:14px}
    .cta{display:block;margin:24px auto 0;padding:10px 18px;background:#222;color:white;border-radius:6px;width:120px;text-align:center;text-decoration:none}

    /* benefits */
    .benefits{border-radius:12px; box-shadow: 0 -10px 20px rgba(0,0,0,0.08);display:flex;gap:18px;justify-content:space-between;padding:22px 10px}
    .benefit{flex:1;text-align:center;padding:12px}
    .benefit h5{margin:6px 0 6px;font-size:15px}
    .benefit p{margin:0;color:var(--muted);font-size:13px}

    .login-btn{margin-top:12px;padding:8px 10px;border-radius:6px;background:#222;color:#fff;text-decoration:none;font-size:12px;transition:background-color .2s ease}
    .login-btn:hover{background:#444}



    .jumbotron {
  background-color: #ecf2e4;
  margin: 0 auto 20px;   /* ⬅️ DETTE er nøglen */
  width: 100%;
  max-width: var(--content-width);
}


    .jumbotron-inner {
      text-align: center;
      padding: 28px 0;
    }

    .jumbotron h1 {
      font-size: 1.6rem;
      font-weight: 700;
      margin: 0 0 8px;
      color: var(--brand, #222);
    }

    .jumbotron p {
      font-size: 1rem;
      margin: 0 0 20px;
      color: var(--muted, #6b6b6b);
    }

    .jumbotron-actions {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }

    .btn-primary {
      background-color: #222;
      color: #fff;
      padding: 10px 22px;
      border-radius: 6px;
      text-decoration: none;
      font-weight: 600;
    }

    .btn-primary:hover {
      opacity: 0.9;
    }

    .btn-secondary {
      color: #222;
      text-decoration: underline;
      font-size: 0.95rem;
    }




    .recipe-carousel {
  position: relative;
  width: 1100px;
  margin: 0 auto 60px;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 1100px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  gap: 18px; /* afstand mellem cards */
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.45s ease;
}

.carousel-slide {
  flex: 0 0 365px; /* 3 × 365px + 2 × 18px = 1131px (perfekt til dine cards) */
}

.carousel-slide .card {
  width: 365px;
}

.carousel-slide a{
  text-decoration: none;
  color: #222;
}


/* Pile som overlay */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(34, 34, 34, 0.85);
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 20;
}

.recipe-carousel .prev { left: -20px; }
.recipe-carousel .next { right: -20px; }

/* Mobil: vis 1 card ad gangen */
@media (max-width: 900px) {
  .recipe-carousel,
  .carousel-track-wrapper {
    width: 100%;
  }

  .carousel-slide {
    flex: 0 0 calc(100% - 20px);
  }
}

    /* account start */
    .account-section {
        max-width: 900px;
        margin: 0;
    }

    .account-card {
        background: #F5F8FA; /* fbfbfb */
        border-radius: 10px;
        box-shadow: 0 4px 18px rgba(0,0,0,0.04);
        margin-bottom: 24px;
        overflow: hidden;
    }

    .account-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid #eee;
    }

    .account-header h2 {
        font-size: 16px;
        margin: 0;
        color: #00344E;
    }

    .edit-link {
        font-size: 13px;
        color: #0067b8;
        text-decoration: none;
    }

    .account-row {
        display: grid;
        grid-template-columns: 220px 200px 1fr 30px;
        align-items: center;
        padding: 14px 20px;
        border-bottom: 1px solid #eee;
        font-size: 14px;
    }

    .account-row:last-child {
        border-bottom: none;
    }

    .label {
        color: #555;
    }

    .value {
        font-weight: 600;
        color: #111;
    }

    .hint-wrapper {
        display: flex;
        align-items: center;
        overflow: visible;
    }

    .hint {
        font-size: 12px;
        color: #777;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .hint2 {
        font-size: 12px;
        color: #777;
        flex: 0 0 auto;
        margin-left: 8px;
        position: relative;
        z-index: 2;
    }


    .arrow {
        text-align: right;
        font-size: 18px;
        color: #999;
    }

    .action-link a {
        font-size: 12px;
        color: #0067b8;
        text-decoration: none;
    }

    .account-footer {
        padding: 12px 20px;
        font-size: 13px;
    }

    .account-footer .link,
    .account-footer a {
        color: #0067b8;
        text-decoration: none;
        margin-right: 12px;
    }

    .related {
        font-weight: 600;
        margin-right: 8px;
    }

    .account-links a {
        margin-right: 16px;
    }
    /* account slut */

    /* recipe */
    .recipes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;

    max-width: 1130px;
    margin: 0 auto;
    padding-top: 20px;
}


.recipe-pills {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-bottom: 24px;
}

.pill {
    padding: 8px 18px;
    border: 1.5px solid #000;
    border-radius: 999px;
    font-size: 14px;
    background: #fff;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

.pill.active {
    background: #000;
    color: #fff;
}



.pagination-wrapper {
    text-align: center;
    margin: 40px 0 60px;
}

.pagination a {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #ccc;
    border-radius: 50%;
    text-decoration: none;
    color: #333;
}

.pagination a.active {
    background: #333;
    color: #fff;
}
    /*  */

    /* Meal-plan  */
    .day-selector {
        display: inline-flex;
        background: #6c757d;
        border-radius: 6px;
        overflow: hidden;
        margin-bottom: 20px;
    }

    .day-btn {
        background: transparent;
        border: none;
        color: #fff;
        padding: 8px 16px;
        cursor: pointer;
        font-weight: 500;
    }

    .day-btn:not(:last-child) {
        border-right: 1px solid rgba(255,255,255,0.3);
    }

    .day-btn.active {
        background: #495057;
    }
    /* === MEAL BLOCK (morgenmad / frokost / aftensmad) === */
    .mealplan-meal {
        display: grid;
        grid-template-columns: 60px 1fr;
        background: #eef3f6;
        margin-bottom: 24px;
        padding: 16px;
        border-radius: 6px;
    }
    .mealplan-row {
    grid-column: 2;
}


    /* Lodret roteret meal type */
    .mealplan-meal-type {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        text-align: center;
        font-weight: 600;
        letter-spacing: 1px;
        color: #003b5c;
        align-self: center;
    }

    /* Container for rows */
    .mealplan-meal > .mealplan-row {
        display: grid;
        grid-template-columns: 140px 1fr 80px;
        gap: 16px;
        align-items: center;
        margin-bottom: 12px;
    }

    .mealplan-meal > .mealplan-row:last-child {
        margin-bottom: 0;
    }

    /* Billede */
    .mealplan-image img {
        width: 140px;
        height: 140px;
        object-fit: cover;
        border-radius: 4px;
    }

    /* Tekst */
    .mealplan-text h3 {
        margin: 0 0 4px 0;
        font-size: 18px;
        color: #003b5c;
    }

    .mealplan-text p {
        margin: 0;
        color: #4a6475;
        line-height: 1.4;
    }

    .mealplan-text h3 a {
        text-decoration: none;
    }

    /* Portioner */
    .mealplan-portions {
        text-align: right;
        font-weight: 600;
        color: #003b5c;
        white-space: nowrap;
    }

    /* =========================================================
   HOW IT WORKS – RESPONSIVE
   ========================================================= */

.how-section {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto 20px;
}

.how-text {
    flex: 1;
    min-width: 320px;
}

.how-accent {
    background: var(--accent);
    padding: 16px 24px;
    border-radius: 6px;
}

.how-media {
    flex: 1;
    min-width: 320px;
}

.how-media img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 6px;
}

/* ---------- Mobil ---------- */
@media (max-width: 768px) {

    .how-section {
        flex-direction: column;
        gap: 16px;
        max-width: 100%;
        padding: 0 4px;
    }

    .how-media img {
        height: 220px;
    }

    .how-text,
    .how-media {
        min-width: 100%;
    }
}


    /* =========================================================
   MEALPLAN – KORREKT GRID LAYOUT (OVERSKRIVER GAMMEL FLEX)
   ========================================================= */

/* Tving grid – overskriver evt. flex */
.mealplan-row {
    display: grid !important;
    grid-template-columns: 80px 1fr 90px 40px;
    align-items: center;
    gap: 12px;
}

/* Billede */
.mealplan-image {
    width: 80px;
    display: flex;
    align-items: center;
}

.mealplan-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tekst */
.mealplan-text {
    min-width: 0;
}

/* Portioner */
.mealplan-portions {
    grid-column: 3;
    text-align: right;
    white-space: nowrap;
}

/* Klikbar servings */
.editable-servings {
    cursor: pointer;
    font-weight: 600;
}

/* Slet-ikon i egen kolonne */
.mealplan-delete {
    grid-column: 4;
    text-align: center;
    cursor: pointer;
}

.mealplan-delete i {
    color: #c0392b;
    font-size: 16px;
}

.mealplan-delete i:hover {
    color: #e74c3c;
}

.mealplan-delete a {
    color: inherit;
    text-decoration: none;
}

.mealplan-delete a:hover {
    color: #c62828;
}


.top-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .recipe-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 18px;
        }

        .recipe-card {
            position: relative;
            border: 1px solid #ddd;
            border-radius: 6px;
            overflow: hidden;
            background: #fff;
            width: 320px;
        }

        .recipe-card img {
            width: 100%;
            display: block;
        }

        .recipe-title {
            padding: 12px;
            font-weight: 600;
        }

        .recipe-title a{
            text-decoration: none;
        }

        .recipe-overlay {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(255,255,255,0.95);
            padding: 6px 8px;
            border-radius: 4px;
    z-index: 10;
        }

        .recipe-overlay input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

        .modal {
    position: fixed;
    inset: 0;
    display: flex;              /* ⬅️ VIGTIG */
    align-items: center;        /* lodret centrering */
    justify-content: center;    /* vandret centrering */
    background: rgba(0,0,0,.4);
    z-index: 9999;
}

.recipe-image-wrapper img {
    display: block;
}
.recipe-image {
    max-width: 1100px;
    width: 100%;
    height: 420px;
    margin: 0 auto 24px auto;
    overflow: hidden;
}

    .recipe-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

      .content-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 18px;
        align-items: start;
    }
    /* Override card width ONLY in recipe view */
.content-grid .card {
    width: 100%;
}


.modal-content {
    background: #fff;
    padding: 20px;
    width: 300px;
    max-width: calc(100% - 40px);
    border-radius: 6px;
}


.season-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.season-matrix th,
.season-matrix td {
    border-bottom: 1px solid #e6e6e6;
    padding: 6px 8px;
    text-align: center;
}

.season-matrix thead th {
    font-weight: 600;
    background: #fafafa;
}

.season-matrix tbody th {
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
}

.season-matrix td {
    color: #f39c12;
    font-weight: 700;
}


@media (max-width: 768px) {
    .recipe-image {
        height: 220px;
    }
    .content-grid {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }
    footer {
        width: 100%;
    }
}



/* Mobil-tilpasning */
@media (max-width: 600px) {
    .mealplan-row {
        grid-template-columns: 60px 1fr 70px 32px;
    }
}




    footer{
      width: 1100px;
      padding:28px 0;
      text-align:center;
      color:var(--muted);
      margin-top: auto;
    }

    /* responsive */
    @media(max-width:900px){
  .recipes{grid-template-columns:1fr}
  .how-grid{grid-template-columns:1fr}
  /* .sidebar{display:none}  ❌ FJERN DENNE LINJE */
  main{padding:20px}
}



    /* =========================================================
   RESPONSIVE DESIGN – iPhone & Mobile (≤ 768px)
   Bevarer eksisterende classes
   ========================================================= */

/* ---------- Generelt ---------- */
@media (max-width: 768px) {

    body {
        font-size: 14px;
    }

    .wrap {
        flex-direction: column;
    }

    main {
        padding: 16px;
        max-width: 100%;
    }

    footer {
        width: 100%;
        padding: 20px 0;
    }

    h1 {
        font-size: 22px;
    }

    .hero-title {
        font-size: 22px;
        margin: 24px 0 40px;
    }
}

/* ---------- Cards & grids ---------- */
@media (max-width: 768px) {

    .recipes,
    .recipe-grid,
    .how-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card,
    .recipe-card,
    .how-item {
        width: 100%;
    }

    .card img,
    .how-item img {
        height: 180px;
    }

    main {
        margin-top: 100px;
    }
}

/* ---------- Pills / horisontal scroll ---------- */
@media (max-width: 768px) {

    .recipe-pills {
        gap: 8px;
        padding-bottom: 6px;
    }

    .pill {
        font-size: 13px;
        padding: 6px 14px;
    }
}

/* ---------- Account / tables ---------- */
@media (max-width: 768px) {

    .account-section {
        max-width: 100%;
    }

    .account-row {
        grid-template-columns: 1fr;
        gap: 6px;
        font-size: 13px;
    }

    .arrow {
        display: none;
    }

    .hint,
    .hint2 {
        white-space: normal;
    }
}

/* ---------- Mealplan (meget vigtig på mobil) ---------- */
@media (max-width: 768px) {

    .mealplan-meal {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    /* Lodret tekst bliver vandret */
    .mealplan-meal-type {
        writing-mode: horizontal-tb;
        transform: none;
        text-align: left;
        margin-bottom: 8px;
        font-size: 14px;
    }

    .mealplan-row {
        grid-template-columns: 70px 1fr 60px 28px !important;
        gap: 8px;
    }

    .mealplan-image img {
        width: 70px;
        height: 70px;
    }

    .mealplan-text h3 {
        font-size: 15px;
    }

    .mealplan-text p {
        font-size: 13px;
    }

    .mealplan-portions {
        font-size: 13px;
    }

    .mealplan-delete i {
        font-size: 14px;
    }
}

/* ---------- Modal ---------- */
@media (max-width: 768px) {

    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0 16px;
    }
}

/* ---------- Pagination ---------- */
@media (max-width: 768px) {

    .pagination a {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* =========================================================
   EKSTRA – iPhone small (≤ 430px)
   ========================================================= */
@media (max-width: 430px) {

    body {
        font-size: 13px;
    }

    h1 {
        font-size: 20px;
    }

    .hero-title {
        font-size: 20px;
    }

    .card img,
    .how-item img {
        height: 160px;
    }

    .mealplan-row {
        grid-template-columns: 60px 1fr 50px 24px !important;
    }
}

/* =========================================================
   MOBILE BURGER MENU (iPhone)
   ========================================================= */

/* Skjul mobil-header på desktop */
@media (max-width: 768px) {
  .mobile-header {
    display: flex !important;
  }
}


/* ---------- Mobil ---------- */
@media (max-width: 768px) {

    /* Topbar */
    .mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
    background: #fff;
    border-bottom: 1px solid #eee;

    position: fixed;     /* ⬅️ VIGTIG */
    top: 0;
    left: 0;
    right: 0;

    z-index: 99999;      /* ⬅️ OVER ALT */
}


    /* Burger */
    .burger-btn {
        position: relative;
        z-index: 11001; /* ⬅️ VIGTIG */
        width: 28px;
        height: 22px;
        background: none;
        border: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }

    .burger-btn span {
        height: 3px;
        background: #00344E;
        border-radius: 2px;
    }

    /* Sidebar (skjult som default) */
    .sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        width: 240px;
        height: 100vh;
        background: #fbfbfb;
        border-right: 1px solid #eee;
        padding-top: 72px;
        z-index: 11002;
        transition: left 0.3s ease;

        display: flex;              /* ⬅️ TILFØJ */
        flex-direction: column;     /* ⬅️ TILFØJ */
        align-items: center;        /* ⬅️ TILFØJ */
    }
    .sidebar.open {
        left: 0;
    }

    /* Overlay */
    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        opacity: 0;
        pointer-events: none; /* ⬅️ tillader klik igennem */
        transition: opacity 0.3s ease;
        z-index: 11000;
    }

    .mobile-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }
}

/* =========================================================
   SITE FOOTER – FULD BREDDE / SIDEBAR-KOMPATIBEL
   ========================================================= */
.site-footer {
    position: relative;
  margin-top: auto;                 /* bundfast i main */
  width: 1150px;                      /* = main width */
  background-color: #e0e9d3;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}







/* Indre container – flugter med main + sidebar */
.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 48px 24px 24px;
}



/* Kolonner */
.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

/* Kolonne-overskrifter */
.footer-col h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1f2937;
}

/* Tekst */
.footer-col p {
  margin: 0;
  line-height: 1.6;
  color: #374151;
  font-size: 14px;
}

/* Lister */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

/* Links */
.footer-col a {
  color: #1f4d7a;
  text-decoration: none;
  font-size: 14px;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* Bundlinje */
.footer-bottom {
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  font-size: 13px;
  color: #4b5563;


/* =========================
   RESPONSIVE
   ========================= */

/* Tablet */
@media (max-width: 900px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobil */
@media (max-width: 768px) {
  .footer-inner {
    max-width: 100%;
    margin-left: 0;
    padding: 32px 16px 16px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    font-size: 12px;
  }
}
