/* RESET & BASE --------------------------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #212529;
  background: #F7F4EA;
  min-height: 100vh;
  letter-spacing: 0.01em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #28536B;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #E36414;
  text-decoration: underline;
}
ul, ol {
  margin: 0 0 20px 0;
  padding-left: 24px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin: 0 0 18px 0;
  font-weight: 700;
  color: #173142;
}
h1 { font-size: 2.25rem; letter-spacing: 0.01em; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.15rem; text-transform: none; line-height: 1.25; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }
p, li, label, input, textarea, select {
  font-size: 1rem;
}
strong, b {
  font-weight: 600;
}

/* CONTAINER & LAYOUT ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 28px rgba(40, 83, 107, 0.07);
  position: relative;
}
.section:last-child {
  margin-bottom: 0;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(40, 83, 107, 0.06);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  transition: box-shadow .25s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 28px rgba(40,83,107,0.13);
  z-index: 2;
}
.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;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #F7F4EA;
  color: #222;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(40,83,107,.06);
  min-width: 0;
}
.testimonial-card p {
  margin: 0;
  font-size: 1.06rem;
}
.testimonial-name {
  display: block;
  color: #B2975D;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: .98rem;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 5px;
}
.feature-grid > div {
  background: #fff;
  border: 1px solid #EEE5CC;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(183, 78, 9, 0.06);
  padding: 28px 24px 18px 24px;
  flex: 1 1 230px;
  min-width: 230px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  margin-bottom: 20px;
  transition: border-color .17s, box-shadow .2s;
}
.feature-grid > div:hover {
  border-color: #B2975D;
  box-shadow: 0 8px 28px rgba(183, 78, 9, 0.13);
  z-index: 2;
}
.feature-grid img {
  width: 48px;
  height: 48px;
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(224,201,130,.05);
  padding: 24px;
  min-width: 210px;
  margin-bottom: 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* HEADER & NAV ---------------------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 1px 12px rgba(40, 83, 107, 0.05);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 99;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 32px;
}
header nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.01rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background .2s, color .2s;
  color: #28536B;
}
header nav a:hover, header nav a:focus {
  background: #F7F4EA;
  color: #B2975D;
}
.cta-primary {
  background: linear-gradient(90deg, #B2975D 55%, #E36414 100%);
  background-color: #B2975D;
  color: #fff !important;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  padding: 11px 28px;
  border-radius: 33px;
  box-shadow: 0 3px 16px 0 rgba(183,151,93,0.12);
  border: none;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background .18s, box-shadow .2s, transform .12s;
  outline: none;
  margin-left: 8px;
  position: relative;
}
.cta-primary:hover, .cta-primary:focus {
  background-color: #E36414;
  color: #fff;
  box-shadow: 0 8px 24px 0 rgba(183,151,93,0.17);
  transform: translateY(-2px) scale(1.025);
}

/* MOBILE MENU ----------------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #28536B;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 50%;
  transition: background .18s;
  z-index: 120;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #f6eee1;
  color: #B2975D;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.97);
  z-index: 1020;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.57,.12,.37,.93);
  box-shadow: -4px 0 24px rgba(40,83,107,0.14);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  font-size: 2.3rem;
  border: none;
  color: #28536B;
  align-self: flex-end;
  margin: 20px 26px 8px 0;
  padding: 6px 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #f6eee1;
  color: #E36414;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  align-items: flex-start;
  padding: 0 32px;
}
.mobile-nav a {
  display: block;
  width: 100%;
  padding: 18px 0 2px 0;
  color: #28536B;
  font-size: 1.22rem;
  font-family: 'Montserrat';
  font-weight: 600;
  border-bottom: 1px solid #eee6d2;
  transition: color .17s, background .16s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #B2975D;
  background: #f3e9d7;
}
@media (max-width: 1040px) {
  header .container {
    gap: 14px;
  }
  header nav {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 10px;
  }
  .cta-primary {
    padding: 10px 18px;
    font-size: 1rem;
  }
}
@media (max-width: 800px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 539px) {
  .mobile-nav {
    padding: 0 18px;
    gap: 25px;
  }
}

/* HERO ------------------------------------------------------------ */
.hero {
  background: #28536B;
  color: #fff;
  min-height: 320px;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 0 0 0 #fff;
  margin-bottom: 50px;
  padding: 50px 0 70px 0;
  display: flex;
}
.hero .container {
  align-items: center;
  flex-direction: column;
}
.hero .content-wrapper {
  gap: 18px;
  align-items: flex-start;
}
.hero h1 {
  color: #FFF9E4;
  font-size: 2.6rem;
  text-shadow: 0 2px 12px rgba(40,83,107,.13);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.hero p {
  color: #f7efde;
  font-size: 1.15rem;
}
.hero .cta-primary {
  margin-top: 15px;
  background: linear-gradient(90deg, #B2975D 65%, #E36414 100%);
}

/* SEARCH BAR (Rezepte) -------------------------------------------- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0 0;
  width: 100%;
  max-width: 400px;
}
.search-bar input {
  flex: 1 1 auto;
  background: #fff;
  border: 1.5px solid #B2975D;
  border-radius: 14px 0 0 14px;
  padding: 12px 16px;
  font-size: 1.05rem;
  font-family: 'Open Sans';
  transition: border-color .18s;
  outline: none;
}
.search-bar input:focus {
  border-color: #E36414;
}
.search-bar button {
  background: #B2975D;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 0 14px 14px 0;
  padding: 12px 24px;
  font-family: 'Montserrat';
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background .17s;
}
.search-bar button:hover, .search-bar button:focus {
  background: #E36414;
}

/* ARTICLE & BLOG -------------------------------------------- */
.featured-article {
  background: #fff;
  border: 1.5px solid #B2975D;
  border-radius: 20px;
  padding: 25px 22px;
  margin: 24px 0 0 0;
  box-shadow: 0 3px 16px 0 rgba(183,151,93,0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.featured-article h4 { color: #28536B; font-size: 1.28rem; }
.featured-article a {
  margin-top: 5px;
  display: inline-block;
  color: #E36414;
  font-family: 'Montserrat';
  font-weight: 600;
  letter-spacing: 0.03em;
}
.featured-article a:hover { color: #B2975D; }

/* CARD & SECTION SPACING --------------------------------------------- */
@media (max-width: 1050px) {
  .container {
    max-width: 880px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  .feature-grid {
    gap: 18px;
  }
  .card-container, .content-grid, .features {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 35px;
    padding: 28px 5px;
  }
  .feature-grid > div {
    padding: 20px 12px 14px 12px;
    min-width: 140px;
  }
  .testimonial-card {
    padding: 14px 10px;
    gap: 10px;
  }
  .card {
    min-width: 140px;
    padding: 10px 9px;
  }
  .content-grid {
    gap: 10px;
  }
  .features {
    gap: 10px;
  }
}
@media (max-width: 650px) {
  .hero {
    padding: 26px 0 32px 0;
    border-radius: 0 0 24px 24px;
  }
  .feature-grid {
    gap: 8px;
  }
}
@media (max-width: 480px) {
  .section {
    padding: 17px 2px;
  }
  h1, .hero h1 {
    font-size: 1.26rem;
  }
  h2 {
    font-size: 1.08rem;
  }
}

/* FLEXBOX ONLY --------------------------------------------------- */
@media (max-width: 900px) {
  .feature-grid, .card-container, .features, .content-grid {
    flex-direction: column;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
}

/* FOOTER --------------------------------------------------------- */
footer {
  background: #28536B;
  color: #fff;
  padding: 36px 0 14px 0;
  border-radius: 34px 34px 0 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}
footer nav a {
  color: #F7F4EA;
  font-size: 1rem;
  opacity: .85;
  font-family: 'Montserrat';
  font-weight: 500;
}
footer nav a:hover, footer nav a:focus {
  color: #E36414;
  opacity: 1;
}
.footer-contact {
  font-size: .96rem;
  color: #f7f4ea;
  opacity:.92;
  display: flex;
  gap: 14px;
  flex-direction: column;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  vertical-align: text-bottom;
  margin-right: 6px;
}
@media (max-width: 840px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* COOKIE CONSENT BANNER ---------------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fffbe7;
  border-top: 1.5px solid #B2975D;
  color: #194159;
  padding: 28px 14px 18px 14px;
  z-index: 3000;
  box-shadow: 0 -2px 16px 0 rgba(183,151,93,0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  justify-content: center;
  animation: showCookieBanner 0.7s cubic-bezier(.72,.3,.4,1) forwards;
}
@keyframes showCookieBanner {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  margin: 0 26px 0 0;
  font-size: 1.06rem;
}
.cookie-btn-group {
  display: flex;
  gap: 14px;
}
.cookie-btn, .cookie-settings-btn {
  font-family: 'Montserrat';
  font-weight: 700;
  font-size: 1rem;
  border-radius: 25px;
  padding: 11px 22px;
  outline: none;
  cursor: pointer;
  border: none;
  transition: background .16s, color .17s;
  margin: 0;
}
.cookie-btn.accept {
  background: #B2975D;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #E36414;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #B2975D;
  border: 1px solid #B2975D;
  transition: border .17s, background .16s, color .16s;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #E36414;
  color: #fff;
  border-color: #E36414;
}
.cookie-settings-btn {
  background: #fff;
  color: #B2975D;
  border: 1px solid #B2975D;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #F7F4EA;
  color: #B2975D;
}
@media (max-width: 650px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 20px 5px 13px 8px;
  }
  .cookie-consent-banner p {
    margin: 0 0 14px 0;
  }
}

/* COOKIE MODAL ---------------------------------------------------------- */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 4100;
  left: 0;
  top: 0;
  width: 100vw; height:100vh;
  background: rgba(0,0,0,.38);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #fffdfa;
  border-radius: 18px;
  box-shadow: 0 14px 80px rgba(183,151,93,0.19);
  max-width: 420px;
  width: 90vw;
  padding: 38px 28px 28px 28px;
  z-index: 4120;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: cookieModalIn .4s cubic-bezier(.56,.22,.27,1);
}
@keyframes cookieModalIn {
  from { transform: translateY(40px) scale(.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  margin: 0 0 8px 0;
  font-size: 1.28rem;
  color: #28536B;
}
.cookie-modal label {
  font-size: 1.06rem;
  font-family: 'Open Sans';
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px solid #E7DFC5;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-toggle {
  appearance: none;
  display: inline-block;
  width: 38px; height: 22px;
  background: #E7DFC5;
  border-radius: 22px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .17s;
}
.cookie-toggle:checked {
  background: linear-gradient(90deg, #B2975D 55%, #E36414 100%);
}
.cookie-toggle:disabled {
  opacity: .65;
  cursor: not-allowed;
}
.cookie-toggle::after {
  content: "";
  display: block;
  background: #fff;
  border-radius: 50%;
  width: 17px; height: 17px;
  position: absolute;
  top: 2.5px; left: 3px;
  transition: left .16s;
  box-shadow: 0 1px 6px rgba(40,83,107,0.14);
}
.cookie-toggle:checked::after {
  left: 18px;
}
.cookie-modal-buttons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.cookie-modal .modal-close-btn {
  position: absolute;
  top: 11px; right: 19px;
  font-size: 1.4rem;
  background: none;
  border: none;
  color: #B2975D;
  padding: 3px 10px;
  border-radius: 50%;
  cursor: pointer;
}
.cookie-modal .modal-close-btn:hover {
  background: #F7F4EA;
}
@media (max-width: 420px) {
  .cookie-modal {
    max-width: 97vw;
    padding: 18px 7px 18px 10px;
  }
}

/* FORMS & INPUTS -------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="number"], textarea, select {
  background: #fff;
  border: 1.5px solid #B2975D;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 1rem;
  font-family: 'Open Sans';
  transition: border-color .18s;
  margin-bottom: 18px;
  outline: none;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
  border-color: #E36414;
}
button, input[type="submit"] {
  font-family: 'Montserrat';
  font-weight: bold;
  font-size: 1.01rem;
  border-radius: 11px;
  border: none;
  outline: none;
  cursor: pointer;
  background: #B2975D;
  color: #fff;
  padding: 12px 28px;
  box-shadow: 0 1px 6px rgba(183,151,93,0.07);
  margin: 6px 0;
  transition: background .18s, box-shadow .19s, transform .11s;
}
button:hover, button:focus, input[type="submit"]:hover, input[type="submit"]:focus {
  background: #E36414;
  color: #fff;
}

/* Table, blockquote, misc --------------------------------------------- */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  font-size: 1rem;
}
th, td {
  border: 1px solid #E7DFC5;
  padding: 10px;
}
blockquote {
  border-left: 4px solid #B2975D;
  padding: 8px 18px;
  font-style: italic;
  color: #4A3C1A;
  background: #f7f4ea;
  border-radius: 6px;
  margin: 12px 0;
}

/* Responsive image for logo --------------------------------------- */
header img, footer img {
  height: 34px;
  width: auto;
}
@media (max-width: 550px) {
  header img, footer img {
    height: 28px;
  }
}

/* Responsive tweaks for cards/sections --------------------------- */
@media (max-width: 530px) {
  .card, .feature-grid > div, .feature-item {
    min-width: 99px;
    padding: 8px 2px;
    font-size: .99rem;
  }
}

/* TRANSITIONS & MICRO-INTERACTIONS ------------------------------ */
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow .22s, border .14s, transform .13s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(183,151,93,0.12), 0 2px 1px rgba(183,151,93,0.01);
  transform: translateY(-2px) scale(1.01);
  border-color: #B2975D;
}

button:active, .cta-primary:active {
  transform: scale(.98);
}

/* OL/UL nested in features/testimonials ------------ */
.card ul, .feature-item ul, .testimonial-card ul {
  margin: 0;
  padding-left: 18px;
}

/* Responsive font size scale ------------------------------- */
@media (max-width: 850px) {
  h1, .hero h1 { font-size: 1.78rem; }
  h2 { font-size: 1.29rem; }
  h3 { font-size: 1rem; }
}
@media (max-width: 440px) {
  h1, .hero h1 { font-size: 1.0rem; }
  h2 { font-size: .95rem; }
  h3 { font-size: .90rem; }
}

/* Specialized sections tweaks ----------------------------------- */
.contact-details, .map-location {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 18px;
}
.contact-details img {
  width: 20px;
  margin-right: 8px;
  vertical-align: sub;
}
@media (max-width: 780px) {
  .contact-details, .map-location {
    gap: 6px;
  }
}

/* Accessibility ------------------------------------------------------ */
:focus {
  outline: 2px solid #B2975D;
  outline-offset: 2px;
}

/* Hide elements utility ---------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Utility: clearfix (if needed) -------------------------------------- */
.clearfix::after {
  content: '';
  display: block;
  clear: both;
}
