/* ===========================================
   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,
b, 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.6;
  background: #F5F5F3;
  color: #2A3241;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  /* Elegant serif for classic feel */
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #315076;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #EDA13C;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  color: inherit;
  outline: none;
}
input[type='email'],
input[type='text'],
input[type='password'],
textarea{
  border: 1px solid #D6D6D6;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.18s;
  font-size: 16px;
}
input[type='email']:focus, input[type='text']:focus, textarea:focus {
  border-color: #315076;
}
button, .cta {
  font-family: inherit;
  cursor: pointer;
}

/* ===========================================
   BRAND COLOR VARIABLES
   =========================================== */
:root {
  --primary: #315076;
  --secondary: #EDA13C;
  --accent: #F5F5F3;
  --text: #2A3241;
  --white: #fff;
  --muted: #ECEBED;
  --shadow: rgba(41,54,83,0.08);
  --border: #E1E1DB;
}

/* ===========================================
   TYPOGRAPHY
   =========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #2A3241;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  line-height: 1.18;
}
h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
  font-weight: 600;
}
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.22rem; }
}
p, li, label, input, textarea {
  font-family: 'Roboto', 'Georgia', serif;
  font-size: 1rem;
  color: #2A3241;
}
p {
  margin-bottom: 18px;
}
strong, b {
  font-weight: 700;
}
blockquote {
  font-style: italic;
  background: var(--muted);
  border-left: 3px solid var(--secondary);
  margin: 24px 0;
  padding: 14px 20px;
  border-radius: 6px;
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1.5;
}
blockquote span {
  display: block;
  margin-top: 10px;
  color: #717889;
  font-size: 1rem;
}

/* ===========================================
   LAYOUT CONTAINERS & FLEXBOX RULES
   =========================================== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0;
}
@media (min-width: 992px) {
  .content-wrapper {
    gap: 36px;
  }
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 2px 8px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--shadow);
  padding: 24px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border);
}
.card:hover {
  box-shadow: 0 4px 20px rgba(41,54,83,0.13);
  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;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px var(--shadow);
  border: 1px solid var(--border);
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(41,54,83,.16);
}
.testimonial-card p {
  color: #2A3241;
  font-size: 1.06rem;
  font-style: italic;
  margin-bottom: 10px;
}
.testimonial-card span {
  color: #315076;
  font-size: 0.98rem;
  margin-left: 2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ============ HERO & CTA ============ */
.hero {
  background: linear-gradient(125deg, #F5F5F3 75%, #EDF2F7 100%);
  padding: 48px 0 0 0;
  margin-bottom: 50px;
  border-radius: 0 0 24px 24px;
}
.hero .container {
  padding-top: 28px;
  padding-bottom: 38px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.1rem;
}
.hero p {
  color: #575A68;
  font-size: 1.09rem;
  margin-bottom: 18px;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: #fff;
  padding: 14px 26px;
  border-radius: 24px;
  font-size: 1.09rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px var(--shadow);
  border: none;
  transition: background 0.19s, transform 0.15s, box-shadow 0.16s;
  margin-top: 8px;
}
.cta:hover, .cta:focus {
  background: #cf7c17;
  color: #fff;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 22px rgba(49,80,118,0.08);
}

/* ============ NAVIGATION ============ */
header {
  background: #fff;
  box-shadow: 0 4px 18px rgba(41,54,83,0.08);
  border-bottom: 1px solid #ECEBED;
  position: relative;
  z-index: 50;
}
header nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 0;
  flex-wrap: wrap;
}
header nav > a img {
  height: 40px;
  width: auto;
}
header nav ul {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
header nav ul li {
  margin-bottom: 0;
}
header nav ul li a {
  color: var(--primary);
  font-size: 1rem;
  font-family: 'Georgia', serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 14px 8px 14px;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: var(--muted);
  color: var(--secondary);
}
header nav .cta {
  margin-left: 12px;
  margin-right: 0;
  box-shadow: 0 2px 6px rgba(237,161,60,0.1);
  font-family: 'Montserrat', 'Georgia', serif;
}
/* Hide burger button on desktop */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 1100px) {
  .container { max-width: 97vw; }
}
@media (max-width: 920px) {
  header nav ul {
    gap: 10px;
  }
  header nav { gap: 16px; }
}
@media (max-width: 850px) {
  header nav {
    gap: 6px;
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  header nav ul,
  header nav .cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 20px;
    background: var(--secondary);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(49,80,118,.08);
    transition: background 0.17s;
    z-index: 10001;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #bd730d;
    outline: none;
  }
}

/* ============ MOBILE MENU ============ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 1000000;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.35,1.2,.38,1);
  width: 100vw;
  height: 100vh;
  box-shadow: 0 8px 32px rgba(49,80,118,0.11);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  appearance: none;
  background: var(--secondary);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  border: none;
  width: 44px;
  height: 44px;
  margin: 22px 18px 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(237,161,60,0.11);
  transition: background 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #bd730d;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  margin-top: 12px;
  gap: 14px;
  padding: 0 28px 32px 0;
}
.mobile-nav a {
  width: 100%;
  padding: 18px 0 18px 28px;
  font-size: 1.18rem;
  color: var(--primary);
  border-radius: 10px 0 0 10px;
  background: transparent;
  transition: background 0.17s, color 0.18s, padding 0.14s;
  margin-left: 0;
  font-family: 'Georgia', serif;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--muted);
  color: var(--secondary);
  padding-left: 38px;
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ===========================================
   COOKIE BANNER & MODAL
   =========================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 3000000;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-top: 1px solid #ECEBED;
  padding: 28px 18px 16px 18px;
  box-shadow: 0 -4px 16px rgba(41,54,83,0.08);
  animation: cookieBannerSlideUp 0.5s cubic-bezier(.36,1.3,.35,.95);
  flex-wrap: wrap;
  gap: 18px;
}
@keyframes cookieBannerSlideUp {
  from { transform: translateY(100px); opacity:0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0 12px 0 0;
  color: #333;
  flex: 1 0 220px;
  font-size: 1rem;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner button, .cookie-banner .cookie-settings-btn {
  appearance: none;
  border: none;
  border-radius: 22px;
  padding: 10px 20px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  transition: color 0.16s, background 0.18s;
  cursor: pointer;
  outline: none;
}
.cookie-banner .accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #bd730d;
}
.cookie-banner .reject {
  background: #eee;
  color: #315076;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #E1E1DB;
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  color: #315076;
  text-decoration: underline;
  padding: 10px 16px;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  color: var(--secondary);
  text-decoration: none;
}

.cookie-modal-backdrop{
  position: fixed;
  background: rgba(49,80,118, 0.16);
  top:0;left:0;right:0;bottom:0;
  z-index: 3000001;
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  min-width: 320px;
  max-width: 95vw;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 45px rgba(49,80,118,0.18);
  z-index: 3500000;
  padding: 36px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInModal 0.38s cubic-bezier(.42,1.3,.44,0.93);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translate(-50%,-43%) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.48rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1rem;
}
.cookie-modal .close-cookie-modal {
  background: #eee;
  color: #315076;
  border-radius: 20px;
  border: none;
  padding: 8px 16px;
  position: absolute;
  right: 22px;
  top: 20px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-modal .close-cookie-modal:hover, .cookie-modal .close-cookie-modal:focus {
  background: #E1E1DB;
}
.cookie-modal .save-cookie-prefs {
  background: var(--secondary);
  color: #fff;
  border-radius: 22px;
  padding: 11px 26px;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  margin-top: 6px;
  margin-bottom: 2px;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .save-cookie-prefs:hover, .cookie-modal .save-cookie-prefs:focus {
  background: #bd730d;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--secondary);
  width: 19px; height: 19px;
}

/* ===========================================
   MAIN PAGE SECTIONS & UTILITIES
   =========================================== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: none;
}
section:last-child { margin-bottom: 0; }
ul > li {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #374258;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
ul > li:last-child { margin-bottom: 0; }
elm ul > li img {
  width: 26px; height: 26px; margin-right: 9px; }
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===========================================
   FOOTER
   =========================================== */
footer {
  background: #f9f8f5;
  border-top: 1px solid #ecebed;
  padding: 50px 0 20px 0;
}
footer .container {
  padding: 0 14px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
footer > .container > .content-wrapper > div {
  min-width: 165px;
  max-width: 260px;
  flex: 1 1 180px;
  margin-right: 8px;
}
footer nav {
  margin: 0 0 10px 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
footer nav a {
  color: #656A7C;
  font-size: 1rem;
  padding: 0 2px;
  font-family: 'Roboto', 'Georgia', serif;
  transition: color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: #EDA13C;
}
footer img[alt^='KüchenWunder'] {
  height: 39px;
  margin-bottom: 10px;
}
footer form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
footer label {
  font-size: 0.95rem;
  color: #315076;
  margin-bottom: 4px;
  margin-left: 2px;
}
footer input[type='email'] {
  max-width: 180px;
  border-radius: 11px;
  border: 1px solid #DEDCDC;
}
footer button[type='submit'] {
  background: var(--primary);
  color: #fff;
  border-radius: 17px;
  padding: 7px 20px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 7px;
  transition: background 0.16s;
}
footer button[type='submit']:hover, footer button[type='submit']:focus {
  background: #183456;
}
footer a img {
  width: 30px;
  height: 30px;
  margin: 6px 7px 0 0;
  opacity: 0.82;
  transition: opacity 0.14s, filter 0.14s;
  filter: grayscale(40%);
}
footer a img:hover {
  opacity: 1;
  filter: grayscale(0%);
}
@media (max-width: 1020px) {
  footer .content-wrapper { flex-wrap: wrap; gap: 20px; }
  footer > .container > .content-wrapper > div { flex: 1 1 130px; max-width: 190px; min-width: 130px;}
}
@media (max-width: 740px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  footer > .container > .content-wrapper > div { min-width: 100px; max-width: 100%; margin-right: 0; }
  footer form input[type='email'] { max-width: none; }
}

/* ===========================================
   UTILITIES & ANIMATIONS
   =========================================== */
.show { display: block !important; }
.hide { display: none !important; }
.fade-in {
  animation: fadeInGeneric 0.35s;
}
@keyframes fadeInGeneric {
  from { opacity:0; }
  to { opacity:1; }
}
.shadow {
  box-shadow: 0 4px 22px rgba(49,80,118,0.08);
}
.rounded { border-radius: 17px; }

/* ============ FORM ELEMENTS ============= */
form input[type='email'], form input[type='text'], form textarea {
  background: #fff;
  border: 1px solid #E1E1DB;
  padding: 11px 14px;
  border-radius: 10px;
  color: #385172;
  margin-bottom: 5px;
  font-size: 1rem;
  outline: none;
  transition: border 0.14s;
}
form input[type='email']:focus, form input[type='text']:focus, form textarea:focus {
  border-color: var(--primary);
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 992px) {
  .container { padding: 0 10px; }
  .content-wrapper { gap: 20px; }
  .section { padding: 38px 10px; }
}
@media (max-width: 800px) {
  .container {max-width: 97vw;}
  .section { padding: 28px 0; }
  .card { padding: 16px 10px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.18rem; }
  .section { padding: 20px 0; margin-bottom: 34px; }
  .testimonial-card { padding: 12px; font-size: .97rem; }
  .content-wrapper { gap: 13px; }
  .hero { padding-bottom: 13px; }
}

/* ===========================================
   ACCESSIBILITY & FOCUS STYLES
   =========================================== */
a:focus, button:focus, .cta:focus {
  outline: 2px dotted var(--secondary);
  outline-offset: 2px;
}
input:focus, textarea:focus {
  outline: 1.5px solid var(--primary);
}

/* ===========================================
  IMPROVED ELEMENT SPACING - CRITICAL
   =========================================== */
/* Applies to ALL major flex containers, especially testimonials, cards etc. */
.card-container > *,
.content-grid > *,
.text-image-section > *,
.testimonial-card + .testimonial-card,
.section > *,
.content-wrapper > * {
  margin-bottom: 20px;
}
.card-container > *:last-child,
.content-grid > *:last-child,
.section > *:last-child,
.content-wrapper > *:last-child,
.testimonial-card:last-child { margin-bottom: 0; }

/* =============== END OF CSS ================ */
