/* RESET & BASE TYPOGRAPHY */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.62;
  background: #fff;
  color: #181818;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s;
}
a:focus { outline: 2px solid #2E4A21; outline-offset: 2px; }

ul, ol { padding-left: 24px; margin-bottom: 16px; }
li { margin-bottom: 8px; }
strong { font-weight: 600; }
code, pre { font-family: 'Roboto Mono', monospace; font-size: 93%; }

/* FONT-FACE – fallback for brand fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #161616;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 24px;
  line-height: 1.14;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.18;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, blockquote, address {
  margin-bottom: 16px;
}
blockquote {
  font-style: italic;
}
hr {
  border: none;
  border-top: 1px solid #D4D4D4;
  margin: 32px 0;
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1090px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section { max-width: 800px; margin: 0 auto; }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* FLEX MANDATORY PATTERNS */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; flex: 1 1 300px; min-width: 270px; background: #fff; border-radius: 14px; box-shadow: 0 4px 24px 0 rgba(0,0,0,0.04); }
.card-content { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.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; border-radius: 14px; background: #fafbfb; box-shadow: 0 4px 36px rgba(40,40,40,0.09); margin: 28px 0 14px 0; border-left: 7px solid #2E4A21; color: #111; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 1px 0 #e1e1e1;
  position: sticky;
  top: 0;
  z-index: 1200;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: 72px;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #282828;
  padding: 8px 6px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover,
header nav a:focus {
  background: #161616;
  color: #fff;
}
header img[alt="KüchenPfad"] {
  height: 44px;
  display: block;
}
.btn-primary {
  background-color: #111;
  color: #fff;
  font-family: 'Playfair Display', serif;
  border: none;
  border-radius: 8px;
  padding: 10px 30px;
  margin-left: 24px;
  font-size: 1.16rem;
  letter-spacing: 0.2px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px #0001;
  transition: background 0.18s, color 0.18s, box-shadow 0.23s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #2E4A21;
  color: #F6AA1C;
  box-shadow: 0 6px 32px #2E4A2155;
}
.btn-secondary {
  background: #fff;
  color: #151515;
  border: 1.5px solid #181818;
  border-radius: 8px;
  padding: 10px 26px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #181818;
  color: #fff;
  border-color: #2E4A21;
}

/* HAMBURGER MENU */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: 1.5px solid #181818;
  border-radius: 8px;
  width: 46px;
  height: 46px;
  font-size: 32px;
  color: #161616;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 1300;
  transition: background 0.15s, border-color 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F6AA1C;
  color: #181818;
  border-color: #2E4A21;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18,18,18,0.99);
  color: #fff;
  z-index: 1600;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-102vw);
  transition: transform 0.36s cubic-bezier(0.86,0,0.07,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 24px 0 0 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  align-self: flex-start;
  z-index: 1650;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F6AA1C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 46px;
  width: 100%;
  align-items: flex-start;
  padding-left: 28px;
}
.mobile-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 22px;
  padding: 10px 6px;
  color: #fff;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fff;
  color: #2E4A21;
}

/* HIDE/SHOW NAVIGATION */
@media (max-width: 1024px) {
  header nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    margin-left: auto;
  }
}
@media (max-width: 1024px) {
  .mobile-menu {
    width: 100vw;
    min-width: 0;
    min-height: 100vh;
  }
}

/* MAIN & SECTIONS */
main {
  flex: 1 1 auto;
  width: 100%;
  min-height: 60vh;
  background: #fff;
}
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
.section:last-child {
  margin-bottom: 0;
}

/* FORM STYLING */
form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
input[type="search"], input[type="text"], input[type="email"] {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 15px;
  border: 1.5px solid #c1c1c1;
  border-radius: 7px;
  background: #f7f7f7;
  color: #161616;
  transition: border-color 0.16s, background 0.16s;
}
input[type="search"]:focus, input[type="text"]:focus, input[type="email"]:focus {
  border-color: #2E4A21;
  background: #fff;
  outline: none;
}
button[type="submit"] {
  margin-left: 0;
}

/* TESTIMONIALS */
.testimonial-card {
  background: #fff;
  color: #1a1a1a;
  font-family: 'Playfair Display', serif;
  box-shadow: 0 2px 18px 0 rgba(45,45,45,0.06);
  border-left: 6px solid #2E4A21;
  padding: 24px 26px 18px 28px;
  border-radius: 13px;
  margin-top: 36px;
  margin-bottom: 32px;
  gap: 14px;
}
.testimonial-card p {
  font-size: 1.13rem;
  line-height: 1.53;
  font-style: italic;
  color: #282828;
}
.testimonial-card footer {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 15px;
  color: #888;
  margin-top: 7px;
  font-style: normal;
}

/* UL / FEATURE ICONS IN HOMEPAGE */
.content-wrapper ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 10px;
  margin-bottom: 10px;
  list-style: none;
  padding-left: 0;
}
.content-wrapper ul li {
  background: #f6f6f8;
  border-radius: 10px;
  box-shadow: 0 1px 12px 0 rgba(32,32,32,0.03);
  padding: 20px 18px 16px 18px;
  min-width: 200px;
  flex: 1 0 210px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: #1a1a1a;
  border-left: 5px solid #d5d5d5;
  transition: box-shadow 0.19s, border-color 0.18s;
}
.content-wrapper ul li:hover {
  box-shadow: 0 6px 30px 0 #21212113;
  border-color: #F6AA1C;
}
.content-wrapper ul li img {
  height: 32px;
  width: 32px;
  margin-bottom: 4px;
}
.content-wrapper ul li h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

/* NEWSLETTER BANNER (re-uses section styles) */
.btn-primary + p, .btn-secondary + p {
  margin-top: 20px;
}

/* FOOTER */
footer {
  background: #141414;
  color: #f2f2f2;
  font-size: 1rem;
  padding: 40px 0 15px 0;
  margin-top: 30px;
  border-top: 2px solid #2E4A21;
}
footer .container { display: flex; flex-direction: column; }
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 0;
}
footer nav a {
  color: #f6f6f6;
  font-size: 1rem;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #F6AA1C;
}
footer p, footer small {
  color: #aaa;
}
footer img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 3px;
}

/* ADDRESS/CONTACT */
address {
  font-style: normal;
  color: #3a3a3a;
  margin-left: 3px;
  margin-bottom: 16px;
}

/* COOKIE BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  z-index: 2999;
  background: rgba(255,255,255,0.97);
  color: #202020;
  box-shadow: 0 -2px 32px 0 rgba(0,0,0,0.11);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 18px 24px 24px 24px;
  border-top: 2px solid #2E4A21;
  font-size: 1rem;
  transition: transform 0.33s cubic-bezier(.97,.02,.47,.77);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .banner-text {
  flex: 1 1 260px;
  font-size: 1rem;
  min-width: 170px;
}
.cookie-banner .cookie-btn {
  margin: 0 9px;
  min-width: 120px;
  font-family: 'Playfair Display', serif;
  border-radius: 7px;
  border: none;
  padding: 9px 21px;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, border-color 0.17s;
}
.cookie-banner .accept {
  background: #2E4A21;
  color: #fff;
  border: 1.5px solid #2E4A21;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #F6AA1C;
  color: #181818;
  border-color: #F6AA1C;
}
.cookie-banner .reject {
  background: #fff;
  color: #2E4A21;
  border: 1.5px solid #2E4A21;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #f6f6f6;
  color: #181818;
}
.cookie-banner .settings {
  background: #fff;
  color: #111;
  border: 1.1px solid #888;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #161616;
  color: #fff;
  border-color: #161616;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: rgba(30,30,30,0.68);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: #131313;
  border-radius: 21px;
  box-shadow: 0 12px 80px #0003;
  max-width: 400px;
  width: 94vw;
  padding: 34px 28px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 4050;
  animation: modalfadein 0.38s cubic-bezier(.83,-0.02,.24,.99);
}
@keyframes modalfadein {
  from { opacity: 0; transform: scale(0.93); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 4px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #2E4A21;
  width: 19px; height: 19px;
}
.cookie-category label {
  font-size: 1.01rem;
}
.cookie-modal .close-modal {
  border: none;
  background: transparent;
  color: #888;
  font-size: 28px;
  position: absolute;
  top: 10px; right: 16px;
  cursor: pointer;
  transition: color 0.19s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #2E4A21;
}
.cookie-modal .save-btn {
  margin-top: 14px;
  background: #2E4A21;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-family: 'Playfair Display', serif;
  font-size: 1.09rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .save-btn:hover, .cookie-modal .save-btn:focus {
  background: #F6AA1C;
  color: #141414;
}

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

/* VISUAL ACCENTS & EFFECTS */
.card, .feature-item {
  border-radius: 13px;
  box-shadow: 0 2px 20px 0 rgba(30,30,30,0.07);
  background: #fff;
}
.card:hover {
  box-shadow: 0 6px 34px #2e4a210d;
}
.feature-item {
  border-left: 5px solid #2E4A21;
  padding-left: 18px;
  padding-top: 6px;
  padding-bottom: 6px;
}

/* GENERAL SPACING */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .content-grid, .testimonial-card, .feature-item {
  gap: 20px;
}
.card {
  margin-bottom: 20px;
}

/* TEXT/HIERARCHY UTILITIES */
.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: #282828;
}

/* ANIMATIONS */
.btn-primary, .btn-secondary, .cookie-btn, .mobile-menu-toggle, .mobile-nav a {
  transition: background 0.22s, color 0.22s, border 0.18s, box-shadow 0.21s;
}
.card, .card-container, .content-wrapper ul li, .testimonial-card {
  transition: box-shadow 0.23s, border-color 0.16s;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  header .container {
    gap: 8px;
  }
  footer .content-wrapper { flex-direction: column; gap: 18px; }
}
@media (max-width: 768px) {
  html { font-size: 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.33rem; }
  .section, section {
    padding: 25px 4vw;
    margin-bottom: 32px;
  }
  .card-container, .content-grid, .content-wrapper ul {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .card {
    flex-basis: auto;
    min-width: 0;
    margin-bottom: 18px;
  }
}
@media (max-width: 570px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.12rem; }
  header img[alt="KüchenPfad"] { height: 32px; }
  .btn-primary, .btn-secondary, .cookie-btn {
    min-width: 94px;
    padding: 8px 10px;
    font-size: 0.99rem;
  }
  .testimonial-card {
    padding: 12px 9px 12px 16px;
  }
}

/* FOCUS STATES */
a:focus, button:focus {
  outline: 2px solid #2E4A21;
  outline-offset: 2px;
}

/* VISUALLY HIDDEN FOR ACCESSIBILITY */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
  white-space: nowrap; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  border: 0; padding: 0; margin: -1px;
}

/* UTILITY CLASSES */
.mt-16   { margin-top: 16px !important; }
.mb-20   { margin-bottom: 20px !important; }
.mb-32   { margin-bottom: 32px !important; }
.text-center { text-align: center !important; }

/* OVERRIDE FOR SVG ICONS IN TEXT */
img[src*='icon-'] {
  display: inline-block;
  vertical-align: middle !important;
  margin-right: 7px;
  margin-bottom: 2px;
}

/* ENSURE NO OVERLAPPING CONTENT */
.card, .testimonial-card, .section, section, .content-wrapper, .container, footer, header {
  box-sizing: border-box;
}

/* BRAND ACCENT */
.btn-primary:after {
  content: '';
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
  width: 8px; height: 8px;
  border-radius: 8px;
  background: #F6AA1C;
}
.btn-primary:focus:after,
.btn-primary:hover:after { background: #fff; }
.btn-primary:active:after { background: #2E4A21; }

/* PRINT OPTIMIZATION */
@media print {
  header, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}
