/* =========================
   CSS RESET & NORMALIZE
   ========================= */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FAFAF8;
  color: #2C383C;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img, video, iframe {
  max-width: 100%;
  border: 0;
}
ul, ol {
  list-style: none;
}
a {
  color: #2C383C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E6B325;
  outline: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
}

/* =========================
   VARIABLES (w/ FALLBACK)
   ========================= */
:root {
  --brand-primary: #2C383C;
  --brand-secondary: #E6B325;
  --brand-accent: #F8F6F4;
  --brand-white: #FFFFFF;
  --brand-grey: #ECE9E6;
  --scandi-bg: #FAFAF8;
  --scandi-card-bg: #FFFFFF;
  --scandi-shadow: 0 2px 12px 0 rgba(115, 115, 115, 0.05), 0 1.5px 4px 0 rgba(86, 86, 86, 0.07);
  --scandi-radius: 16px;
  --scandi-radius-sm: 8px;
  --shadow-light: 0 2px 8px 0 rgba(180,184,186,0.10);
  --shadow-hover: 0 6px 24px 0 rgba(44,56,60,0.10);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --transition: 0.18s cubic-bezier(0.42,0,0.58,1);
  --section-spacing: 60px;
  --section-padding: 40px 20px;
  --gap: 24px;
}

/* =========================
   CONTAINER & LAYOUTS
   ========================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  .section {
    padding: 30px 10px;
    margin-bottom: 40px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--scandi-card-bg);
  border-radius: var(--scandi-radius);
  box-shadow: var(--scandi-shadow);
  margin-bottom: 20px;
  padding: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.012);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand-primary);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.9rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.25;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  line-height: 1.25;
}
h4, h5, h6 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

p, li, ul, ol, a, span, table, th, td {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--brand-primary);
}
strong, b {
  font-weight: 700;
}
.subheadline {
  font-size: 1.25rem;
  color: #555D60;
  margin-bottom: 16px;
  font-family: var(--font-body);
}
.text-section {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* =========================
   HEADER / NAVIGATION
   ========================= */
header {
  width: 100%;
  background: var(--scandi-card-bg);
  box-shadow: 0 1px 6px 0 rgba(44,56,60,0.04);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.logo img {
  height: 42px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}
nav a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  padding: 6px 8px;
  border-radius: var(--scandi-radius-sm);
  transition: background 0.13s, color 0.18s;
}
nav a:hover, nav a:focus {
  background: var(--scandi-bg);
  color: var(--brand-secondary);
}

.cta-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  padding: 11px 28px;
  border-radius: 999px;
  box-shadow: var(--scandi-shadow);
  border: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  margin-left: 18px;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFD012;
  color: var(--brand-primary);
  box-shadow: var(--shadow-hover);
  transform: scale(1.04);
}

/* =========================
   HERO & CALL TO ACTION
   ========================= */
.hero {
  background: var(--scandi-bg);
  padding: 52px 0 32px 0;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 620px;
  margin: 0 auto;
}
.cta {
  background: var(--brand-secondary);
  border-radius: var(--scandi-radius);
  box-shadow: var(--scandi-shadow);
  margin-top: 28px;
  margin-bottom: 60px;
  padding: 36px 20px 36px 20px;
}
.cta h2 {
  color: var(--brand-primary);
}
.cta p {
  color: #2C383C;
  font-size: 1.08rem;
}
.cta .cta-btn {
  margin-top: 18px;
  background: var(--brand-primary);
  color: var(--brand-accent);
  box-shadow: var(--scandi-shadow);
}
.cta .cta-btn:hover, .cta .cta-btn:focus {
  background: #1d2a30;
  color: var(--brand-secondary);
}

/* =========================
   CARDS & RECIPE PREVIEW
   ========================= */
.recipe-preview-card {
  background: var(--scandi-card-bg);
  border-radius: var(--scandi-radius);
  box-shadow: var(--shadow-light);
  padding: 22px 22px 18px 22px;
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 240px;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.recipe-preview-card h3 {
  color: var(--brand-primary);
}
.recipe-preview-card p {
  color: #384245;
}
.recipe-preview-card a {
  color: var(--brand-secondary);
  font-weight: 500;
  font-family: var(--font-display);
  align-self: flex-start;
  margin-top: 5px;
  padding: 0 0 2px 0;
  border-bottom: 1px solid var(--brand-secondary);
  transition: color 0.16s, border 0.16s;
}
.recipe-preview-card a:hover, .recipe-preview-card a:focus {
  color: #FFD012;
  border-bottom: 1.5px solid #FFD012;
}
.recipe-preview-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.012);
}

/* =========================
   TABLES (Einkaufslisten)
   ========================= */
table {
  width: 100%;
  margin-bottom: 18px;
  border-collapse: collapse;
  background: var(--scandi-card-bg);
  border-radius: var(--scandi-radius-sm);
  box-shadow: var(--scandi-shadow);
  overflow: hidden;
}
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid #ececec;
  text-align: left;
}
th {
  background: #F8F6F4;
  font-family: var(--font-display);
}
tr:last-child td {
  border-bottom: none;
}

/* =========================
   TESTIMONIALS
   ========================= */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--scandi-card-bg);
  border-radius: var(--scandi-radius);
  box-shadow: var(--scandi-shadow);
  padding: 20px 26px;
  margin-bottom: 20px;
  min-width: 220px;
  transition: box-shadow var(--transition), transform var(--transition);
  color: #2C383C;
  font-size: 1.08rem;
}
.testimonial-card p {
  color: #2C383C;
  font-family: var(--font-body);
  font-size: 1.08rem;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #778188;
  font-family: var(--font-body);
  margin-top: 4px;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.014);
}

/* =========================
   FORMS & FILTER
   ========================= */
input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  background: #F8F6F4;
  border: 1px solid #E0DED9;
  border-radius: var(--scandi-radius-sm);
  font-size: 1rem;
  padding: 11px 14px;
  margin-bottom: 18px;
  transition: border 0.15s, background 0.15s;
  color: #2C383C;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
  border: 1.5px solid var(--brand-secondary);
  background: #FFFBE7;
}

/* FILTER BADGES */
.content-wrapper span {
  background: #ECE9E6;
  color: #2C383C;
  padding: 2px 12px;
  border-radius: 99px;
  margin-right: 6px;
  font-size: 0.98rem;
  display: inline-block;
}

/* =========================
   LISTS
   ========================= */
ul, ol {
  margin-left: 0;
  margin-bottom: 10px;
  padding-left: 0;
  list-style: none;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 28px;
}
ul li::before {
  content: '';
  display: inline-block;
  width: 11px;
  height: 11px;
  background: var(--brand-secondary);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 8px;
}
ol li::before {
  display: none;
}
ol {
  counter-reset: scandi-counter;
}
ol li {
  counter-increment: scandi-counter;
  padding-left: 28px;
}
ol li::before {
  content: counter(scandi-counter)'.';
  color: var(--brand-secondary);
  font-weight: 600;
  position: absolute;
  left: 0;
  top: 3px;
}
@media (max-width: 650px) {
  ul li, ol li {
    padding-left: 19px;
    font-size: 0.97rem;
  }
  ul li::before, ol li::before {
    left: 0;
    top: 8px;
  }
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: var(--scandi-bg);
  border-top: 1px solid #ececec;
  padding: 28px 0 16px 0;
  color: #83898B;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
footer nav {
  gap: 16px;
  margin-bottom: 5px;
}
footer p {
  font-size: 0.97rem;
  color: #999FA1;
}

/* =========================
   MOBILE NAVIGATION
   ========================= */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  font-size: 2.15rem;
  border-radius: 8px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 51;
  box-shadow: var(--scandi-shadow);
  border: none;
  transition: background var(--transition);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #FFD012;
  color: var(--brand-primary);
}
@media (max-width: 1020px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 92vw;
  max-width: 390px;
  height: 100vh;
  background: var(--scandi-card-bg);
  z-index: 1100;
  box-shadow: -2px 0 26px 0 rgba(44,56,60,0.10);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.33,1,0.68,1), box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-close {
  background: transparent;
  color: var(--brand-primary);
  font-size: 1.7rem;
  align-self: flex-end;
  margin: 19px 22px 0 0;
  border-radius: 8px;
  padding: 6px 8px;
  transition: background 0.18s;
  z-index: 1120;
  border: none;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFE491;
  color: var(--brand-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 26px 30px 0 24px;
  margin-top: 16px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 500;
  color: var(--brand-primary);
  padding: 15px 0;
  border-bottom: 1px solid #F1F1F1;
  transition: color 0.18s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-accent);
  color: var(--brand-secondary);
  outline: none;
}
@media (max-width: 520px) {
  .mobile-menu {
    width: 100vw;
    max-width: 100vw;
  }
  .mobile-nav {
    padding: 18px 12px 0 12px;
  }
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--scandi-card-bg);
  border-top: 1.5px solid #e3e3e3;
  box-shadow: 0 -2px 28px 0 rgba(44,56,60,0.07);
  padding: 22px 8px 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2300;
  transition: transform 0.27s cubic-bezier(0.33,1,0.68,1), opacity 0.21s;
  gap: 12px;
  opacity: 1;
}
.cookie-banner.hidden {
  transform: translateY(120%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner p {
  color: #475052;
  text-align: center;
  font-size: 1rem;
  margin-bottom: 6px;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 3px;
}
.cookie-banner button {
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.14s;
  box-shadow: var(--scandi-shadow);
}
.cookie-banner .cookie-accept {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: #FFD012;
}
.cookie-banner .cookie-reject {
  background: #FAFAF8;
  color: #606967;
  border: 1px solid #E0DED9;
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #ECE9E6;
}
.cookie-banner .cookie-settings {
  background: #ECE9E6;
  color: #2C383C;
  border: 1px solid #E0DED9;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #FFD012;
  color: var(--brand-primary);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(35,40,37,0.25);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--scandi-card-bg);
  border-radius: var(--scandi-radius);
  box-shadow: 0 8px 64px 0 rgba(44,56,60,0.13);
  padding: 36px 30px 24px 30px;
  max-width: 410px;
  width: 90vw;
  z-index: 2550;
  display: flex;
  flex-direction: column;
  gap: 13px;
  position: relative;
  animation: popIn 0.22s cubic-bezier(.42,0,.48,1.08);
}
@keyframes popIn {
  0% { transform: scale(0.98) translateY(22px); opacity: 0.65; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: none;
  font-size: 1.4rem;
  color: #7b7e80;
  border-radius: 7px;
  padding: 2px 7px;
  transition: background 0.17s;
  z-index: 2560;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #FFFBE7;
  color: #2C383C;
}
.cookie-modal h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-family: var(--font-display);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 13px;
  padding: 0 0 5px 0;
  border-bottom: 1px solid #eee;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label {
  flex: 1;
  color: #2C383C;
  font-family: var(--font-display);
  font-size: 1rem;
  pointer-events: none;
}
.cookie-toggle {
  position: relative;
  width: 46px;
  height: 26px;
  background: #EFF3F4;
  border-radius: 20px;
  transition: background 0.13s;
  cursor: pointer;
}
.cookie-toggle input[type="checkbox"] {
  display: none;
}
.cookie-toggle span {
  position: absolute;
  left: 2px;
  top: 2.5px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #CED6D1;
  transition: left 0.17s, background 0.15s;
  box-shadow: 0 0.5px 4px 0 rgba(44,56,60,0.07);
}
.cookie-toggle input[type="checkbox"]:checked + span {
  background: var(--brand-secondary);
  left: 23px;
}
.cookie-toggle.disabled {
  opacity: 0.44;
  pointer-events: none;
}

.cookie-modal .cookie-btns {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  gap: 11px;
  justify-content: flex-end;
}
.cookie-modal .cookie-accept {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-modal .cookie-accept:hover, .cookie-modal .cookie-accept:focus {
  background: #FFD012;
}
.cookie-modal .cookie-reject {
  background: #FAFAF8;
  color: #606967;
  border: 1px solid #E0DED9;
}
.cookie-modal .cookie-reject:hover, .cookie-modal .cookie-reject:focus {
  background: #ECE9E6;
}

/* =========================
   RESPONSIVE BREAKPOINTS
   ========================= */
@media (max-width: 1020px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 860px) {
  h1 { font-size: 2.18rem; }
  h2 { font-size: 1.52rem; }
  h3 { font-size: 1.14rem; }
}
@media (max-width: 768px) {
  .hero {
    padding: 37px 0 24px 0;
  }
  .cta {
    margin-top: 18px;
    margin-bottom: 30px;
    padding: 22px 8px 25px 8px;
  }
  .cta-btn {
    margin-left: 0;
    padding: 10px 18px;
  }
  .content-wrapper {
    gap: 15px;
  }
  .testimonial-card, .recipe-preview-card, .card {
    padding: 15px 11px;
  }
  .testimonial-card, .recipe-preview-card, .card {
    min-width: 140px;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.28rem; }
  h2 { font-size: 1.07rem; }
  h3 { font-size: 0.98rem; }
  .section { padding: 23px 2vw; }
}

/* =========================
   MICRO-INTERACTIONS & EFFECTS
   ========================= */
*:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 1px;
}
button:active {
  transform: scale(0.98);
}
input:disabled, button:disabled {
  opacity: 0.49;
  pointer-events: none;
}

/* Subtle card shadow for hover */
.card:active, .recipe-preview-card:active, .testimonial-card:active {
  background: #FFFAE6;
}

/* =========================
   BRAND COLORS UTILITY CLASSES
   ========================= */
.text-primary { color: var(--brand-primary)!important; }
.text-secondary { color: var(--brand-secondary)!important; }
.text-accent { color: var(--brand-accent)!important; }
.bg-primary { background: var(--brand-primary)!important; }
.bg-secondary { background: var(--brand-secondary)!important; }
.bg-accent { background: var(--brand-accent)!important; }

/* =========================
   ENSURE SCANDINAVIAN STYLE
   ========================= */
body, html {
  background: var(--scandi-bg);
}
.section, .card, .testimonial-card, .recipe-preview-card, .cta, .cookie-modal, .cookie-banner {
  box-shadow: var(--scandi-shadow);
  border-radius: var(--scandi-radius);
}
ul li img {
  vertical-align: middle;
  height: 26px;
  margin-right: 11px;
  border-radius: 7px;
  background: #ECE9E6;
  padding: 2px;
}

/* =========================
   PRINT STYLES (optional for Einkaufslisten)
   ========================= */
@media print {
  header, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  body {
    background: var(--brand-white);
    color: var(--brand-primary);
  }
  .section, .cta, .card, .testimonial-card {
    box-shadow: none;
    background: var(--brand-white);
  }
  a {
    color: #222 !important;
    text-decoration: underline;
  }
}
