/* Reset og globale innstillinger */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Eksempel på parallax-lignende/fast bakgrunn via pseudo-element --- */

/* Fjern bakgrunn fra body, men behold font-stil og margin */
body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: #333;
  line-height: 1.5;
  margin: 0;
  position: relative;
  overflow-x: hidden; /* unngå horisontal rulling */
}

/* Lag et pseudo-element som ligger “bak” innholdet */
body::before {
  content: "";
  position: fixed;  /* Viktig for å holde seg i ro ved scroll */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;      /* Legg bak alt annet */
  background: url("images/background.jpg") no-repeat center center;
  background-size: cover;
  /* Du kan teste uten repeat, eller justere background-attachment om ønskelig */
}

/* Bokser for innholdet (samme som før), men sørg for at de er “foran” bakgrunnen */
.home-container,
.week-container,
.recipe-container {
  position: relative;   /* for sikkerhets skyld */
  z-index: 1;           /* ligg foran pseudo-elementet */
  background-color: rgba(255, 255, 255, 0.9);
  margin: 0 auto;
  padding: 1rem;
  max-width: 600px;
  border-radius: 8px;
}


/* Hovednavigasjon – logo og tittel midtstilt */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center; /* Sentrerer innhold horisontalt */
  background: #ff8357;
  padding: 1rem;
}

/* Logo-container */
.logo-container {
  display: flex;
  align-items: center;
  /* justify-content: center;  – Kan brukes om du vil tittel og logo skal ligge rett over/under hverandre */
}

.logo {
  height: 50px;
  margin-right: 1rem; /* Mellomrom mellom logo og tekst */
}

.nav-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Header-linje (valgfritt), men du kan la den være om du ønsker */
.site-header {
  border-bottom: 1px solid #ddd;
}

/* Footer */
.site-footer {
  background: #333;
  color: #fff;
  padding: 1rem;
  text-align: center;
  margin-top: 2rem;
}

/* Forside (index) */
.home-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
}

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

.hero-image {
  width: 100%;
  border-radius: 8px;
  max-height: 200px;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  padding: 0.5rem;
  border-radius: 4px;
}

.weeks-overview h2 {
  margin-bottom: 1rem;
  text-align: center;
}

.week-card-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.week-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.week-card img {
  width: 30%;
  object-fit: cover;
  height: 100%;
}

.week-card-text {
  padding: 0.5rem 1rem;
}

.week-card-text h3 {
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

/* Ukesider */
.week-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
}

.week-header h2 {
  margin-bottom: 0.5rem;
  text-align: center;
}

.back-links {
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
}

.back-links a {
  text-decoration: none;
  color: #ff8357;
  font-weight: bold;
}

.handleliste {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.handleliste h3 {
  margin-bottom: 0.5rem;
  color: #ff8357;
}

.handleliste-section {
  margin-bottom: 1rem;
}

.handleliste-section h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  text-decoration: underline;
}

.handleliste-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.35rem;
}

.handleliste-item input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: scale(1.2);
}

.day-menu {
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.day-menu h4 {
  margin-bottom: 0.25rem;
  color: #ff8357;
  font-size: 1.1rem;
}

.day-menu a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

/* Oppskriftsider */
.recipe-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
}

.recipe-header {
  text-align: center;
  margin-bottom: 1rem;
}

.recipe-header img {
  width: 100%;
  border-radius: 8px;
  max-height: 200px;
  object-fit: cover;
}

.recipe-ingredients,
.recipe-steps,
.recipe-tips {
  background: #fff;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recipe-ingredients h3,
.recipe-steps h3,
.recipe-tips h3 {
  margin-bottom: 0.5rem;
  color: #ff8357;
}

/* Knapper/lenker */
.back-to-week {
  display: inline-block;
  margin-bottom: 1rem;
  color: #ff8357;
  text-decoration: none;
  font-weight: bold;
}

/* Mobilvennlig */
@media (max-width: 600px) {
  .week-card {
    flex-direction: row;
  }
}
