/* ZauberKrume Website Styles — warm_friendly aesthetic — Mobile-First Responsive Design  */

/* 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;
}
html {
  box-sizing: border-box;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff7f1;
  color: #564634;
  font-size: 16px;
}
img, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  color: #A7825C;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #2C3E50;
  text-decoration: underline;
}
ul, ol {
  margin-bottom: 1.2em;
  padding-left: 23px;
}
li {
  margin-bottom: 0.6em;
}
strong {
  font-weight: bold;
}
blockquote {
  border-left: 5px solid #EADBC5;
  background: #fbf5ec;
  color: #624622;
  margin: 20px 0;
  padding: 18px 32px;
  font-style: italic;
  border-radius: 18px;
}

/* BRAND FONTS */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@600;700&family=Open+Sans:wght@400;600;700&display=swap');

h1, .hero h1 {
  font-family: 'Lora', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #2C3E50;
  line-height: 1.18;
  margin-bottom: 18px;
}
h2 {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #A7825C;
  margin-bottom: 12px;
}
h3 {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #564634;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.05rem;
  margin-bottom: 7px;
  color: #836147;
}
p {
  margin-bottom: 15px;
  font-size: 1rem;
}

/* --- LAYOUT BASICS --- */
.container {
  width: 100%;
  padding-left: 14px;
  padding-right: 14px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1160px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 18px 0 rgba(167,130,92,0.04);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero {
  background: #EADBC5;
  border-radius: 0 0 36px 36px;
  padding: 52px 0 40px;
}
.hero .container {
  align-items: flex-start;
}
.hero .content-wrapper {
  max-width: 680px;
}
.hero .button {
  margin-top: 16px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 3px 12px 0 rgba(44,62,80,0.10);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
  position: relative;
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 22px 0 rgba(167,130,92,0.18);
}

.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FBF7EF;
  border-radius: 18px;
  max-width: 480px;
  margin-bottom: 20px;
  box-shadow: 0 2px 11px 0 rgba(167,130,92,0.06);
  color: #2C3E50;
}
.testimonial-card p {
  color: #2C3E50;
  margin: 0;
}
.testimonial-card strong {
  color: #A7825C;
  font-weight: bold;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #EADBC5;
  border-radius: 18px;
  padding: 24px 18px;
}

/* --- SPECIFIC ELEMENT STYLE --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 8px;
}
.feature-grid > div {
  flex: 1 1 210px;
  min-width: 210px;
  background: #FBF5EC;
  border-radius: 18px;
  box-shadow: 0 2px 8px 0 rgba(167,130,92,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  padding: 22px 18px;
  transition: box-shadow 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 5px 18px 0 rgba(167,130,92,0.16);
}

.map-snippet, .map-embed {
  margin-top: 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 11px 0 rgba(167,130,92,0.08);
  padding: 18px;
  display: flex;
  align-items: center;
}

/* --- NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 1px 13px 0 rgba(44,62,80,0.05);
  position: sticky;
  top: 0;
  z-index: 200;
}
.brand-logo img {
  height: 40px;
  width: auto;
  border-radius: 9px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 0;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #2C3E50;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.16s, color 0.15s;
}
.main-nav a.button {
  padding: 8px 20px;
  margin-left: 10px;
}
.main-nav a:hover, .main-nav a:focus {
  background: #EADBC5;
  color: #A7825C;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  gap: 17px;
}

/* --- BUTTONS --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  border-radius: 999px;
  background: #FBF5EC;
  color: #2C3E50;
  padding: 10px 24px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(167,130,92,0.11);
  cursor: pointer;
  transition: background 0.17s, color 0.14s, box-shadow 0.18s, transform 0.12s;
}
.button.primary {
  background: #A7825C;
  color: #fff;
}
.button.primary:hover, .button.primary:focus {
  background: #2C3E50;
  color: #EADBC5;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 7px 22px 0 rgba(44,62,80,0.14);
}
.button.secondary {
  background: #fff;
  color: #A7825C;
  border: 2px solid #A7825C;
}
.button.secondary:hover, .button.secondary:focus {
  background: #EADBC5;
  color: #2C3E50;
  border-color: #2C3E50;
  transform: translateY(-2px) scale(1.025);
}
.button:active {
  transform: scale(0.98);
}

/* --- FOOTER --- */
footer {
  background: #fff2e3;
  border-top: 1px solid #EADBC5;
  padding: 36px 0 20px 0;
  margin-top: 50px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
}
footer .brand-logo img {
  height: 34px;
  margin-bottom: 10px;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.98rem;
}
footer nav a {
  color: #A7825C;
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 4px 9px;
  border-radius: 6px;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  background: #A7825C;
}
footer p {
  font-size: 0.99rem;
  color: #9c8265;
  text-align: center;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #A7825C;
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 43px;
  height: 43px;
  font-size: 2rem;
  margin-left: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(44,62,80,0.10);
  transition: background 0.12s, color 0.12s, transform 0.11s;
  z-index: 302;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #2C3E50;
  color: #EADBC5;
  transform: scale(1.08);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44,62,80,0.93);
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(0.74,0.21,0.29,0.86);
  z-index: 301;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 20px 18px 10px 18px;
  background: #fff;
  color: #A7825C;
  border: none;
  border-radius: 50px;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-self: flex-end;
  box-shadow: 0 2px 7px 0 rgba(44,62,80,0.17);
  transition: background 0.13s, color 0.13s, transform 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #A7825C;
  color: #fff;
  transform: rotate(90deg) scale(1.10);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  padding: 8px 32px;
  width: 93vw;
}
.mobile-nav a {
  font-size: 1.12rem;
  color: #fff;
  background: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  margin: 0;
  letter-spacing: 0.01em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #A7825C;
  color: #fffbe3;
}

/* Hide desktop nav and show burger button on mobile */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu-toggle,
  .mobile-menu {
    display: none !important;
  }
  .main-nav {
    display: flex;
  }
}

/* --- RESPONSIVE FLEXBOX RULES --- */
@media (max-width: 768px) {
  .container, .footer .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .section {
    padding: 26px 7px;
    margin-bottom: 38px;
  }
  .hero {
    padding-top: 29px;
    padding-bottom: 23px;
  }
  .content-wrapper {
    gap: 11px;
  }
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .card {
    min-width: 0;
    width: 100%;
    padding: 15px 11px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 13px 7px;
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  header .container {
    gap: 5px;
  }
}

@media (max-width: 480px) {
  h1, .hero h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.07rem;
  }
}

/* --- SPACING / FLEXBOX FORMS --- */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
input, textarea, select {
  border: 1.8px solid #EADBC5;
  border-radius: 11px;
  padding: 10px 13px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  outline: none;
  margin-bottom: 14px;
  background: #fff;
  color: #2C3E50;
  transition: border 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #A7825C;
}

/* --- Miscellaneous --- */
::-webkit-input-placeholder { color: #A7825C; }
:-moz-placeholder { color: #A7825C; }
::-moz-placeholder { color: #A7825C; }
:-ms-input-placeholder { color: #A7825C; }

/* Hamburger z-index */
.mobile-menu-toggle {
    z-index: 302;
}
.mobile-menu {
    z-index: 301;
}

/* Prevent overlap of every card, testimonial, etc */
.card-container > *, .content-grid > *, .feature-grid > * {
  margin-bottom: 0;
}
.section > *, .content-wrapper > * {
  margin-bottom: 20px;
}
.section > :last-child, .content-wrapper > :last-child { margin-bottom: 0; }

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #EADBC5;
  color: #2C3E50;
  box-shadow: 0 -3px 20px 0 rgba(44,62,80,0.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 21px 13px 15px 13px;
  z-index: 410;
  width: 100vw;
  border-radius: 22px 22px 0 0;
  animation: slideUpBanner 0.7s cubic-bezier(0.25,0.73,0.43,1.2);
}
@keyframes slideUpBanner {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0);   opacity: 1; }
}
.cookie-banner p {
  color: #2C3E50;
  margin: 0;
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner .button {
  font-size: 0.98rem;
  min-width: 101px;
  padding: 7px 20px;
}
.cookie-banner .button.settings {
  background: #fff8e3;
  color: #A7825C;
  border: 1.7px solid #A7825C;
}
.cookie-banner .button.settings:hover, .cookie-banner .button.settings:focus {
  background: #A7825C;
  color: #fff8e3;
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44,62,80,0.54);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  z-index: 5001;
  transition: opacity 0.22s;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 21px 21px 0 0;
  box-shadow: 0 -4px 32px 0 rgba(44,62,80,0.13);
  padding: 36px 23px 24px 23px;
  width: 100vw;
  max-width: 420px;
  margin: 0 auto;
  margin-bottom: 0;
  animation: showModalUp 0.38s cubic-bezier(0.32,0.8,0.38,1.22);
}
@keyframes showModalUp {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.cookie-modal-close {
  background: #A7825C;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, transform 0.09s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #2C3E50;
  color: #EADBC5;
  transform: rotate(90deg) scale(1.10);
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-bottom: 24px;
}
.cookie-modal-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #EADBC5;
}
.cookie-modal-category:last-child {
  border-bottom: none;
}
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 22px;
  background: #EADBC5;
  border-radius: 11px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-toggle:checked {
  background: #A7825C;
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: left 0.16s;
}
.cookie-toggle:checked:before {
  left: 16px;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-modal .button {
  min-width: 109px;
}

/* --- Hide banner/modal if not needed --- */
.cookie-banner.hide, .cookie-modal.hide {
  display: none !important;
}

/* --- Utility classes & tweaks --- */
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.gap-0 { gap: 0 !important; }
.flex-row { flex-direction: row !important; }
.flex-col { flex-direction: column !important; }

/* --- Accessibility --- */
:focus {
  outline: 3px solid #EADBC5;
  outline-offset: 1px;
}

/* --- Print --- */
@media print {
  header, footer, .cookie-banner, .cookie-modal {
    display: none !important;
  }
}

/* --- End of ZauberKrume Styles --- */