/* styles.css – Opdateret samlet CSS til Yumio */

/* ==== IMPORT FONTS ==== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* ==== GLOBAL RESET & BASE ==== */
*,
*::before,
*::after {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f5f5f5;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover,
a:focus {
  color: #005bb5;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
    .logo-img {
      height: 38px;
      width: auto;
      max-width: 150px;
      margin-right: 0.3rem;
      transition: filter .15s;
      vertical-align: middle;
      display: block;
    }
    .navbar-brand {
      padding: 0;
      margin-right: 1.25rem;
      display: flex;
      align-items: center;
    }
    @media (max-width: 576px) {
      .logo-img { height: 31px; max-width: 115px; }
      .navbar { padding-top: 0.5rem; padding-bottom: 0.5rem; }
    }
    /* Cookie-popup moderne stil */
    .cookie-popup {
      position: fixed;
      bottom: 1.5rem;
      left: 50%;
      transform: translateX(-50%);
      background: #fff;
      color: #222;
      padding: 1.25rem 1.25rem 1rem 1.25rem;
      border-radius: 14px;
      box-shadow: 0 4px 28px rgba(0,0,0,0.14);
      max-width: 350px;
      width: 95vw;
      z-index: 9999;
      display: none;
      font-size: 0.97rem;
      animation: popup-in .4s;
    }
    @keyframes popup-in {
      from { opacity: 0; transform: translateX(-50%) translateY(20px);}
      to   { opacity: 1; transform: translateX(-50%) translateY(0);}
    }
    .cookie-popup h2 {
      font-size: 1.09rem;
      margin: 0 0 0.6rem 0;
      font-weight: 700;
    }
    .cookie-popup .small { font-size: 0.93em; }
    .cookie-popup .cookie-toggle { margin: 0.5em 0 0.6em 0; }
    .cookie-popup .btn { min-width: 120px; margin: 0 0.2rem 0.4rem 0; }
    .cookie-popup label { font-weight: 500; margin-bottom: 0; }
    .cookie-popup .cookie-link { color: #0d6efd; text-decoration: underline; }
    .cookie-popup .hide { display: none !important; }
    .cookie-popup .cookie-options { margin:0.6em 0 0.8em 0; }
    @media (max-width: 576px) {
      .cookie-popup { padding: 0.95rem 0.2rem 0.8rem 0.2rem; font-size: 0.93rem;}
      .cookie-popup h2 { font-size: 1rem;}
      .cookie-popup .btn { min-width: 97px; font-size:0.96em;}
    }





/* overlay, som blokerer al interaktion indtil cookies er accepteret */
#site-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.9);
  z-index: 9999;
  display: none;
}

/* selve cookie-consent-boksen */
.cookie-consent {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid #ccc;
  padding: 1rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: 10000;
  font-size: 0.9rem;
}
.cookie-consent button {
  margin-left: 1rem;
}


/* ==== TYPOGRAFI ==== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1rem;
}
p {
  margin-top: 0;
  margin-bottom: 1rem;
}
.text-center {
  text-align: center !important;
}

/* ==== SKIP-LINK ==== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #0d6efd;
  color: #fff;
  padding: .5rem 1rem;
  z-index: 1000;
  transition: top .3s;
}
.skip-link:focus {
  top: 0;
}

/* ==== NAVIGATION ==== */
#siteNavbar {
  transition: padding .3s, background-color .3s, box-shadow .3s;
  padding: 1rem 0;
  background-color: #fff;
}
#siteNavbar.navbar-shrink {
  padding: .25rem 0;
  background-color: rgba(255,255,255,.95);
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}



/* ==== BUTTONS ==== */
.btn-primary {
  background-color: #0062cc;
  border-color: #005bb5;
  transition: background-color .2s, border-color .2s;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #005bb5;
  border-color: #004999;
}
.btn-outline-primary {
  color: #0062cc;
  border-color: #0062cc;
  transition: background-color .2s, color .2s;
}
.btn-outline-primary:hover {
  background-color: #0062cc;
  color: #fff;
}
.btn-lg {
  border-radius: 2rem;
  padding: .75rem 1.75rem;
}

/* ==== CARDS & ANIMATION ==== */
.card {
  border: none;
  border-radius: .75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.card-animate {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp .6s forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ==== FEATURES & TRUST LIST ==== */
.features {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .features { grid-template-columns: repeat(3,1fr); }
}
.features .feature-icon {
  font-size: 2rem;
  color: #0d6efd;
  margin-bottom: .5rem;
}
.trust-list {
  display: grid;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 576px) {
  .trust-list { grid-template-columns: repeat(3,1fr); }
}
.trust-list i {
  font-size: 1.5rem;
  color: #6c757d;
}

/* ==== TIP & AI-OPSKRIFTGENERATOR ==== */
#ai-opskrift .d-flex.align-items-start {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: .5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
}
#ai-opskrift .row > .col-12 {
  margin-bottom: 1rem;
}

/* ==== FORMS & NEWSLETTER ==== */
.form-label {
  font-weight: 600;
}
.form-control {
  transition: box-shadow .2s;
}
.form-control:focus {
  box-shadow: 0 0 0 .2rem rgba(0,123,255,.25);
}
.newsletter input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.newsletter button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* ==== CTA BANNERS ==== */
.cta-banner {
  text-align: center;
  color: #fff;
  padding: 2rem 1rem;
  border-radius: .5rem;
}
.cta-banner.primary {
  background-color: #0d6efd;
}
.cta-banner.secondary {
  background-color: #198754;
}



/* ==== FOOTER ==== */
.footer-custom {
  background-color: #0b5ed7;
  color: #fff;
}
.footer-custom a {
  color: #e2e6ea;
}
.footer-custom a:hover {
  color: #fff;
}
.footer-custom hr {
  border-color: rgba(255,255,255,.2);
}
#backToTop {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 999;
  background: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: .5rem .75rem;
}

/* ==== MODALS ==== */
.modal-content {
  border-radius: .5rem;
}

/* ==== UTILITIES ==== */
.visually-hidden-focusable {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.visually-hidden-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}
.mt-5 {
  margin-top: 3rem !important;
}
.mb-4 {
  margin-bottom: 1.5rem !important;
}
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}


/* ===== Register container ===== */
.reg-wrap {
  margin-top: -3rem;
  padding: 2rem 0 4rem;
}
.reg-box {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
@media(min-width:768px) {
  .reg-box { grid-template-columns: 1fr 1fr; }
}

/* ===== Info side ===== */
.reg-info {
  background: #f8f9fa;
  padding: 2rem;
  text-align: center;
}
@media(min-width:768px) {
  .reg-info { border-right: 1px solid #e9ecef; }
}
.reg-info h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.reg-info ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.reg-info li {
  margin-bottom: .75rem;
  font-size: .95rem;
}
.reg-info li i {
  color: #0d6efd;
  margin-right: .5rem;
}
.reg-info p.cta {
  margin-top: 1.5rem;
  font-weight: 600;
}
.reg-info p.cta a {
  color: #0d6efd;
  text-decoration: underline;
}

/* ===== Login container ===== */
.login-wrap {
  margin-top: -3rem;
  padding: 2rem 0 4rem;
}
.login-box {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
@media(min-width:768px) {
  .login-box { grid-template-columns: 1fr 1fr; }
}


  /* Luft og visuelt hierarki */
  .card { margin-bottom: 2rem; }
  .table-responsive { margin-top: 1rem; }
  .collapse-row { background-color: #f8f9fa; }
  /* Skjul email på mobil, rolle på meget små */
  @media (max-width: 575px) {
    .col-email, .col-role { display: none; }
  }
  @media (max-width: 767px) {
    .col-role { display: none; }
  }

/* ===== Intro ===== */
.intro {
  text-align: center;
  padding: 3rem 1rem;
}
.intro h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.intro p { color: #555; max-width: 600px; margin: 0 auto 1.5rem; }

/* ===== Grid ===== */
.favorite-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media(min-width:576px) {
  .favorite-grid { grid-template-columns: repeat(2,1fr); }
}
@media(min-width:992px) {
  .favorite-grid { grid-template-columns: repeat(3,1fr); }
}
.card-fav {
  border: none;
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.card-fav-body {
  padding: 1rem;
  flex-grow: 1;
}
.card-fav-title {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}
.card-fav-text {
  font-size: .9rem;
  color: #555;
}
.card-fav-footer {
  background: transparent;
  border-top: none;
  padding: .75rem 1rem;
  text-align: right;
}

/* ===== Servings ===== */
.servings-control {
  max-width: 120px;
  margin-bottom: 2rem;
}

/* ===== Buttons ===== */
.btn-sm { padding: .25rem .75rem; border-radius: 2rem; }
.btn-outline-secondary { border-color: #6c757d; color: #6c757d; }
.btn-outline-danger { border-color: #dc3545; color: #dc3545; }

/* ===== Trust badges ===== */
.trust-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}
.trust-list div { text-align: center; font-size: .9rem; color: #6c757d; }
.trust-list i { font-size: 1.5rem; display: block; margin-bottom: .5rem; }

/* ===== CTA Banner ===== */
.cta-banner {
  text-align: center;
  padding: 2rem 1rem;
  background: #0d6efd;
  color: #fff;
  border-radius: .5rem;
  margin: 3rem 0;
}
.cta-banner a { color: #fff; text-decoration: none; }

/* ===== Info side ===== */
.login-info {
  background: #f8f9fa;
  padding: 2rem;
  text-align: center;          /* Centrer al tekst her */
}
@media(min-width:768px) {
  .login-info { border-right: 1px solid #e9ecef; }
}
.login-info h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.login-info ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.login-info li {
  margin-bottom: .75rem;
  font-size: .95rem;
}
.login-info li i {
  color: #0d6efd;
  margin-right: .5rem;
}

/* ===== Form side ===== */
.login-form {
  padding: 2rem;
}
.login-form .card-login {
  border: none;
  box-shadow: none;
}
.login-form .form-label {
  font-weight: 500;
}
.login-form .btn-primary {
  border-radius: 2rem;
  padding: .75rem 1.5rem;
  width: 100%;
}

/* ===== Trust badges ===== */
.trust-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.trust-list div {
  text-align: center;
  font-size: .9rem;
  color: #6c757d;
}
.trust-list i {
  font-size: 1.5rem;
  display: block;
  margin-bottom: .5rem;
}

/* ===== CTA Banner ===== */
.cta-banner {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: .5rem;
  color: #fff;
}
.cta-banner.primary { background: #0d6efd; }


/* ===== Form side ===== */
.reg-form {
  padding: 2rem;
}
.reg-form .card-register {
  border: none;
  box-shadow: none;
}
.reg-form .form-label {
  font-weight: 500;
}
.reg-form .btn-primary {
  border-radius: 2rem;
  padding: .75rem 1.5rem;
  width: 100%;
}

/* ===== Trust badges ===== */
.trust-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.trust-list div {
  text-align: center;
  font-size: .9rem;
  color: #6c757d;
}
.trust-list i {
  font-size: 1.5rem;
  display: block;
  margin-bottom: .5rem;
}

/* ===== CTA Banner ===== */
.cta-banner {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: .5rem;
  color: #fff;
}
.cta-banner.primary { background: #0d6efd; }


/* HERO-BILLEDE */
.hero-image {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.44)),
    url("/assets/img/hero-bg.webp");    /* <- Sæt din billedsti her! */
  height: 50vh;
  min-height: 340px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* TEKST I MIDTEN */
.hero-text {
  text-align: center;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  width: 100%;
  max-width: 650px;
  padding: 0 16px;
}

/* Overskrift og tekst */
.hero-text h1 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.hero-text p {
  font-size: 1.14rem;
  margin-bottom: 2.2rem;
}

/* Knapper */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-block;
  min-width: 180px;
  padding: 14px 0;
  border-radius: 2rem;
  font-size: 1.08rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  cursor: pointer;
  transition: background .18s, color .18s;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: #1663b3;
  color: #fff;
}
.btn-primary:hover {
  background: #094b8e;
}

.btn-secondary {
  background: #fff;
  color: #1663b3;
  border: 2px solid #1663b3;
}
.btn-secondary:hover {
  background: #e8f1fa;
  color: #0c4273;
}

/* Knapper side om side på større skærme */
@media (min-width: 600px) {
  .btn-group {
    flex-direction: row;
    gap: 24px;
  }
  .hero-text h1 {
    font-size: 2.7rem;
  }
  .hero-text p {
    font-size: 1.23rem;
  }
}



#aiOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(255,255,255,0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
#aiOverlay.active {
  display: flex !important;
}

/* --- Funfact Card Styling --- */
.funfact-card {
  background: #fff;
  border-radius: 1.4rem;
  box-shadow: 0 8px 28px 0 rgba(60,60,80,0.08), 0 1.5px 4px 0 rgba(0,0,0,0.03);
  transition: box-shadow 0.2s;
  max-width: 100vw;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
.funfact-card:hover {
  box-shadow: 0 16px 36px 0 rgba(60,60,80,0.13), 0 2.5px 6px 0 rgba(0,0,0,0.06);
}
.funfact-robot {
  position: relative;
  width: 112px;
  height: 99px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  max-width: 95vw;
}
.funfact-robot-bg {
  position: absolute;
  z-index:1;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 46px;
  background: linear-gradient(90deg, #d0e6ff 10%, #e3ffe6 90%);
  border-radius: 45% 45% 100% 100%;
  filter: blur(0.5px) opacity(0.7);
  box-shadow: 0 4px 32px 0 #6ec3f980;
  animation: robotglow 2.8s ease-in-out infinite alternate;
}
@keyframes robotglow {
  0%   { box-shadow: 0 4px 20px 0 #6ec3f980; }
  100% { box-shadow: 0 6px 38px 0 #6ec3f9a6; }
}
.funfact-card .funfact-badge {
  display: inline-block;
  font-size: 1em;
  letter-spacing: 0.01em;
  font-weight: 500;
  box-shadow: 0 2px 10px 0 rgba(0,0,0,0.07);
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}
@media (max-width: 767px) {
  .funfact-card {
    padding: 1.5rem 0.3rem 1rem 0.3rem !important;
    border-radius: 1rem;
    max-width: 99vw;
  }
  .funfact-robot {
    width: 65px; height: 55px;
  }
  .funfact-robot-bg {
    width: 52px; height: 23px;
  }
  .funfact-card .funfact-badge {
    font-size: 0.93em;
    padding-left: 0.5em !important;
    padding-right: 0.5em !important;
  }
  .funfact-card ul {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

  .footer-custom, .footer-custom a, .footer-custom address {
    color: #181818 !important;
  }
  .footer-custom a:hover,
  .footer-custom .nav-link:hover {
    color: #0d6efd !important;
    text-decoration: underline;
  }
  .footer-custom ul.list-unstyled .nav-link {
    transition: color 0.2s;
    padding-left: 0.3em;
  }
  .footer-custom address {
    line-height: 1.6;
  }
  .footer-custom .bi {
    vertical-align: -0.12em;
  }
  @media (max-width: 767px) {
    .footer-custom .row {
      text-align: center;
    }
    .footer-custom h6 {
      text-align: center;
      margin-top: 1.3rem;
    }
    .footer-custom address {
      text-align: center;
      display: block;
      margin: 0.8rem auto;
    }
  }
  




  /* Like-knap */
  .btn-like{ border:none; background:transparent; cursor:pointer; display:inline-flex; align-items:center; }
  .btn-like .heart{ font-size:1.4rem; margin-right:4px; }


  .avatar-badge    { display:inline-flex; align-items:center; justify-content:center; background:#2e7d32; color:#fff; border-radius:50%; font-weight:bold; width:38px; height:38px; font-size:1.2rem; margin-right:10px; text-transform:uppercase; }
  .avatar-badge-sm { width:28px; height:28px; font-size:1rem; }
/* ==== Initial rating (input) ==== */
.rating-stars-input .star {
  cursor: pointer;
  font-size: 1.4rem;
  color: #ccc;
  transition: color .15s;
}
/* ==== Interaktiv rating ==== */
.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.rating-stars .star {
  font-size: 1.6rem !important;
  color: #ccc    !important;
}
.rating-stars .star.filled {
  color: #ffc107 !important;
}



/* ==== Gem til favoritter-knap ==== */
.btn-fav {
  transition: background .1s, color .1s;
}
.btn-fav.added {
  background: #388e3c;
  color: #fff;
}

/* ==== Kort (posts-feed) ==== */
.card-opslag {
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.card-opslag .accordion-body {
  background: #fafcff;
}
