/* -------------------------------
   RESET & BASELINE NORMALIZATION
------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F5F5F1;
  color: #27475E;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
img, svg {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin: 0 0 1.5em 1.5em;
  padding: 0;
}
li {
  margin-bottom: 0.5em;
}
a {
  color: #27475E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #E18B7C;
}

/* Font-face fallbacks */
@import url('https://fonts.googleapis.com/css?family=Raleway:700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 700;
  color: #27475E;
  line-height: 1.1;
  margin-bottom: 16px;
}
h1 {font-size: 2rem; margin-top: 0; margin-bottom: 20px;}
h2 {font-size: 1.5rem; margin-bottom: 18px;}
h3 {font-size: 1.25rem; margin-bottom: 12px;}
h4 {font-size: 1.15rem; margin-bottom: 10px;}

p, ul, ol {
  margin-bottom: 1.25em;
}
strong {
  font-weight: 600;
}
em {
  font-style: italic;
}

/* --------------------------
   COLOR PALETTE (PASTEL)
-------------------------- */
:root {
  --brand-primary: #27475E;
  --brand-secondary: #FFD089;
  --brand-accent: #F5F5F1;
  --pastel-pink: #F6CBD6;
  --pastel-blue: #A4CDFF;
  --pastel-mint: #BBCBC3;
  --pastel-lilac: #DAD2FA;
  --pastel-yellow: #FFF5DF;
  --white: #fff;
  --shadow: rgba(39,71,94,0.09);
  --text-main: #27475E;
  --text-dark: #22303A;
  --text-light: #56707A;
}

/* -------------------------
   SPACING & CONTAINER
------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 32px var(--shadow);
  padding: 32px 24px 32px 24px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.text-section {
  background: var(--pastel-lilac);
  border-radius: 20px;
  box-shadow: 0 2px 18px var(--shadow);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.featured-tip {
  background: var(--pastel-blue);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px var(--shadow);
  margin-top: 16px;
}

/* ------- Layout Flex Patterns (Mandatory) --------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--shadow);
  background: var(--white);
  padding: 24px 20px;
  flex: 1 1 320px;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  background: var(--pastel-yellow);
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--shadow);
  margin-bottom: 20px;
  color: var(--text-dark);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* -------------------------
   MAIN NAVIGATION (DESKTOP)
------------------------- */
header {
  background: var(--pastel-blue);
  box-shadow: 0 4px 16px var(--shadow);
  padding: 0; /* Remove vertical padding to let .container handle height */
  position: sticky;
  top: 0;
  z-index: 11;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
  padding-top: 0;
  padding-bottom: 0;
}
header img {
  height: 52px;
  min-width: 124px;
  margin-right: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Raleway', Arial, sans-serif;
  padding: 8px 12px;
  font-size: 1rem;
  border-radius: 10px;
  color: var(--brand-primary);
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--pastel-pink);
  color: #27475E;
}

.cta-btn {
  display: inline-block;
  font-family: 'Raleway', Arial, sans-serif;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  background: var(--pastel-pink);
  color: var(--brand-primary);
  box-shadow: 0 2px 8px var(--shadow);
  margin-left: 16px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
  text-align: center;
  outline: none;
}
.cta-btn.primary {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--pastel-blue);
  color: var(--brand-primary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px var(--shadow);
}

/* Hide mobile menu toggle (burger) on desktop */
.mobile-menu-toggle {
  display: none;
}

/* --------------------------------
  MOBILE MENU - SLIDEOVER NAV
-------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(217,232,255,0.95);
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.73,.03,.23,.95);
  z-index: 999;
  display: flex;
  flex-direction: column;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: var(--brand-primary);
  cursor: pointer;
  padding: 20px 28px 0 0;
  transition: color 0.2s;
}
.mobile-menu-close:hover {color: #E18B7C;}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 32px;
  align-items: center;
}
.mobile-nav a {
  font-family: 'Raleway', Arial, sans-serif;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 1.22rem;
  border-radius: 14px;
  padding: 12px 38px;
  background: transparent;
  transition: background 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-mint);
  color: var(--brand-primary);
  outline: none;
}

/* Show/hide nav for mobile/desktop */
@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    background: var(--brand-secondary);
    border: none;
    font-size: 2rem;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.15s;
    z-index: 11;
  }
  .mobile-menu-toggle:hover {background: var(--pastel-lilac);}
}

@media (min-width: 1021px) {
  .mobile-menu {display: none;}
}

/* -------------------------
   HERO, FEATURES, CARDS
------------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-top: 18px;
}
.feature {
  flex: 1 1 210px;
  background: var(--pastel-yellow);
  border-radius: 18px;
  box-shadow: 0 2px 12px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 18px 16px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature img {
  height: 60px;
  margin-bottom: 10px;
}
.feature h3 {
  margin-top: 4px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 6px;
}
.feature:hover, .feature:focus {
  box-shadow: 0 10px 40px var(--shadow);
  transform: translateY(-3px) scale(1.03);
}

/* More card styles */
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: var(--pastel-lilac);
  border: none;
}

/* Filters (Rezepte) */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 8px;
  align-items: flex-end;
}
.filter-row > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 135px;
}
.filter-row label {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary);
}
.filter-row select, .filter-row input[type=text] {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #DEEBF7;
  font-size: 1rem;
  background: var(--pastel-blue);
  color: var(--text-main);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.filter-row select:focus, .filter-row input[type=text]:focus {
  border-color: var(--brand-primary);
  outline: none;
  box-shadow: 0 2px 8px var(--shadow);
}

/* -----------------------------
   LIST STYLES & STEP GUIDES
------------------------------ */
ul li, ol li {
  margin-bottom: 0.5em;
}
ul {
  list-style-type: disc;
}
ul.feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 18px 0;
}
.feature-list img {
  width: 36px;
  margin-right: 12px;
}
.feature-list li {
  display: flex;
  align-items: center;
  background: var(--pastel-pink);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px var(--shadow);
  font-size: 1.05rem;
}

.step-by-step-guides h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--brand-primary);
}
.step-by-step-guides ul {
  margin-bottom: 20px;
  gap: 10px;
  background: none;
}
.step-by-step-guides ul li {
  margin-bottom: 2px;
  background: var(--pastel-mint);
  padding: 5px 10px;
  border-radius: 8px;
}
.step-by-step-guides h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.step-by-step-guides ul li {
  font-size: 0.99rem;
}

/* -----------------------
   TESTIMONIALS CARDS
----------------------- */
.testimonial-card {
  background: var(--pastel-yellow);
  color: var(--text-dark);
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--shadow);
  padding: 20px 28px;
  font-size: 1.09rem;
  margin-bottom: 20px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.testimonial-card span {
  font-family: 'Raleway', Arial, sans-serif;
  color: #56707A;
  font-size: 0.99rem;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.01em;
}

/* -------------------
   FOOTER SECTION
------------------- */
footer {
  background: var(--pastel-mint);
  color: var(--brand-primary);
  padding: 44px 0 0 0;
  margin-top: 70px;
}
footer > * {
  padding: 0 20px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 18px;
  margin-top: 0;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--brand-primary);
  font-weight: 600;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 1rem;
  transition: background 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--pastel-pink);
  color: var(--brand-primary);
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
  margin-top: 0;
}
.footer-brand img {
  height: 40px;
  margin-right: 10px;
}
.footer-brand p {
  color: var(--brand-primary);
  font-weight: 800;
  font-family: 'Raleway', Arial, sans-serif;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1rem;
  color: var(--brand-primary);
  margin-bottom: 24px;
  gap: 6px;
  text-align: center;
}

/* -------------------
   RESPONSIVE DESIGN
------------------- */
@media (max-width: 768px) {
  h1 {font-size: 1.42rem;}
  h2 {font-size: 1.21rem;}
  .section {
    padding: 28px 5px;
    margin-bottom: 32px;
  }
  .content-wrapper, .text-section {
    padding: 18px 8px 18px 8px;
    border-radius: 15px;
  }
  .feature-grid {
    gap: 18px;
  }
  .feature {
    padding: 18px 7px 10px 7px;
  }
  .testimonial-card {
    padding: 15px 12px;
    font-size: 0.98rem;
    border-radius: 12px;
  }
  .footer-nav {gap: 14px;}
  .footer-brand img {height: 32px;}
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 10px;
  }
  .map-location {
    padding-left: 0;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .filter-row {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
}

@media (max-width: 540px) {
  .container {
    padding: 0 4px;
  }
  .footer-brand {
    flex-direction: column;
    gap: 6px;
  }
}

/* ----------------------------
   COOKIE CONSENT & MODALS
---------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--pastel-blue);
  color: var(--brand-primary);
  box-shadow: 0 -2px 24px var(--shadow);
  padding: 24px 32px;
  gap: 28px;
  font-size: 1rem;
  z-index: 1200;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.73,.03,.23,.97), opacity 0.27s;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  border: none;
  border-radius: 18px;
  padding: 8px 22px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  margin-left: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.cookie-btn.secondary {
  background: var(--pastel-mint);
  color: var(--brand-primary);
}
.cookie-btn.reject {
  background: var(--pastel-pink);
  color: var(--brand-primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--pastel-blue);
  color: var(--brand-primary);
  box-shadow: 0 2px 9px var(--shadow);
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(174,194,232,0.75);
  z-index: 1301;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.21s;
}
.cookie-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--white);
  border-radius: 18px;
  max-width: 400px;
  width: 92vw;
  padding: 32px 24px 24px 24px;
  box-shadow: 0 12px 44px var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h3 {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
  font-size: 1rem;
}
.cookie-modal .toggle-switch {
  width: 36px;
  height: 20px;
  border-radius: 14px;
  background: var(--pastel-blue);
  position: relative;
}
.cookie-modal .toggle-switch input[type="checkbox"] {
  display: none;
}
.cookie-modal .toggle-slider {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--pastel-pink);
  border-radius: 50%;
  transition: left 0.19s, background 0.19s;
}
.cookie-modal .toggle-switch input:checked + .toggle-slider {
  left: 17px;
  background: var(--brand-secondary);
}
.cookie-modal .category-desc {
  font-size: 0.97rem;
  color: var(--text-light);
  margin-left: 5px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--brand-primary);
  cursor: pointer;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---------------------
   MAP LOCATION BOX
--------------------- */
.map-location {
  background: var(--pastel-pink);
  border-radius: 13px;
  padding: 14px 20px;
  margin-top: 15px;
  font-size: 1.05rem;
  box-shadow: 0 1px 8px var(--shadow);
}

/* ------------
   MISC
------------ */
::-webkit-input-placeholder {color: #A3A2B0;}
::-moz-placeholder {color: #A3A2B0;}
:-ms-input-placeholder {color: #A3A2B0;}
::placeholder {color: #A3A2B0;}

hr {
  border: 0;
  border-top: 1px solid #E0E6ED;
  margin: 32px 0;
}

/* Focus states for accessibility */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px solid var(--pastel-blue);
  outline-offset: 2px;
}

/* Additional spacing for lists within sections */
section ul, section ol {
  margin-bottom: 1.7em;
}

/* Smooth transitions */
*, *:before, *:after {
  transition-property: background, color, box-shadow, border, transform;
  transition-duration: 0.19s;
  transition-timing-function: cubic-bezier(.53,.06,.21,1);
}
