/* ===== 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 {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100%;
  background: #E2E9E1;
  color: #214759;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #214759;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #AB8942;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* ========= BRAND TYPOGRAPHY ========= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #214759;
  letter-spacing: 0.01em;
  text-transform: none;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; letter-spacing: 0.01em; }
h2 { font-size: 2rem; margin-bottom: 20px; letter-spacing: 0.02em; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4 { font-size: 1.125rem; margin-bottom: 10px; }
h5, h6 { font-size: 1rem; margin-bottom: 8px; }
p, ul, ol { font-size: 1rem; }
strong, b {
  font-weight: 700;
}

/* ========== STRUCTURED LAYOUTS ========== */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ========== SPACING AND PATTERNS ========== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px 0 rgba(33, 71, 89, 0.03);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(33,71,89,0.07);
  padding: 24px 18px;
  flex: 1 1 240px;
  min-width: 240px;
  transition: box-shadow 0.22s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 28px rgba(33,71,89,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: #E2E9E1;
  border-radius: 20px;
  box-shadow: 0px 2px 10px rgba(33,71,89,0.09);
  color: #214759;
  font-size: 1.04rem;
  line-height: 1.55;
  font-style: italic;
}
.testimonial-card p {
  margin-bottom: 0;
  flex: 1;
  font-weight: 500;
}
.testimonial-card span {
  color: #AB8942;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(33,71,89,0.07);
  padding: 24px 16px;
}
/* ========== HEADER & NAVIGATION ========== */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(33,71,89,0.04);
  padding: 0;
  position: sticky;
  top: 0; left: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 28px;
}
header img[alt="HeimatErlebnis"] {
  height: 44px;
  width: auto;
  margin-right: 18px;
  border-radius: 8px;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #214759;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 12px 7px 12px;
  border-radius: 10px;
  transition: background 0.17s, color 0.17s;
  position: relative;
}
nav a:hover, nav a:focus {
  background: #E2E9E1;
  color: #AB8942;
}
.cta.primary {
  background: #214759;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  padding: 13px 32px;
  border-radius: 18px;
  border: none;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(33,71,89,0.07);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.22s, color 0.14s, box-shadow 0.22s;
  cursor: pointer;
  margin-left: 12px;
}
.cta.primary:hover, .cta.primary:focus {
  background: #AB8942;
  color: #fff;
  box-shadow: 0px 6px 28px 0px rgba(171,137,66,0.09);
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 201;
  width: 44px; height: 44px;
  border: none;
  background: #214759;
  color: #fff;
  font-size: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 7px rgba(33,71,89,0.09);
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #AB8942;
  color: #fff;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  transform: translateX(-105%);
  transition: transform 0.32s cubic-bezier(0.56,0.01,0.52,1);
  z-index: 200;
  box-shadow: 0 8px 32px rgba(33,71,89,0.23);
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute; top: 18px; right: 18px;
  background: #214759;
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 210;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #AB8942;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  margin-top: 80px;
  padding: 0 26px;
  gap: 18px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: #214759;
  padding: 14px 12px;
  border-radius: 10px;
  display: block;
  width: 100%;
  transition: background 0.15s, color 0.1s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E2E9E1;
  color: #AB8942;
}
@media screen and (max-width: 1020px) {
  header .container nav, header .container .cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media screen and (max-width: 1020px) {
  .mobile-menu {
    padding-top: 0;
  }
}
@media screen and (min-width: 1021px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ========== MAIN CONTENT ========== */
main {
  margin-top: 40px;
  margin-bottom: 40px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  background: #fff;
  border-radius: 20px;
  padding: 28px 20px;
  box-shadow: 0 2px 14px rgba(33,71,89,0.05);
  margin-bottom: 36px;
}
.section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 32px;
  margin-top: 16px;
}
.section ul li {
  flex: 1 1 230px;
  min-width: 230px;
  background: #E2E9E1;
  border-radius: 16px;
  padding: 22px 16px;
  box-shadow: 0 2px 12px rgba(33,71,89,0.03);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: #214759;
}
.section ul li img {
  height: 46px;
  width: 46px;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  margin-bottom: 5px;
}
.section ul li h3, .section ul li b, .section ul li strong {
  color: #214759;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.14rem;
}

/* =================== FAQ ACCORDION (Kontakt) =================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-accordion > div {
  background: #E2E9E1;
  border-radius: 16px;
  padding: 18px 15px;
  box-shadow: 0 1px 6px rgba(33,71,89,0.06);
  color: #214759;
  font-size: 1.04rem;
}
.faq-accordion > div b {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: 8px;
}

/* =================== ADDRESS & SOCIAL FOOTER =================== */
footer {
  background: #214759;
  color: #fff;
  padding: 0;
}
footer .container {
  padding: 32px 20px 20px 20px;
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 5px 9px;
  border-radius: 8px;
  transition: background 0.16s, color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  background: #E2E9E1;
  color: #214759;
}
footer address {
  font-style: normal;
  color: #E2E9E1;
  line-height: 1.5;
  font-size: 1rem;
  margin-bottom: 10px;
}
footer address strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
footer address a {
  color: #AB8942;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.19s;
}
footer address a:hover, footer address a:focus {
  color: #fff;
}
footer .social-media {
  display: flex;
  gap: 14px;
  align-items: center;
}
footer .social-media a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  width: 36px; height: 36px;
  transition: background 0.17s;
}
footer .social-media a:hover {
  background: #AB8942;
}
footer .social-media img {
  width: 18px;
  height: 18px;
  display: block;
}

/* =================== COOKIES CONSENT BANNER =================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #214759;
  color: #fff;
  padding: 22px 18px 22px 18px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 -3px 22px rgba(33,71,89,0.14);
  border-radius: 22px 22px 0 0;
  transition: transform 0.3s cubic-bezier(.75,0,.18,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}
.cookie-banner button {
  padding: 10px 22px;
  border-radius: 16px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: #AB8942;
  margin-right: 3px;
  transition: background 0.22s, color 0.11s, box-shadow 0.2s;
}
.cookie-banner button.reject {
  background: #8a6b2e;
}
.cookie-banner button.settings {
  background: #fff;
  color: #214759;
  border: 1.5px solid #AB8942;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #214759;
  color: #fff;
  box-shadow: 0 3px 10px rgba(33,71,89,0.11);
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: #AB8942;
  color: #fff;
}

/* ========== COOKIE SETTINGS MODAL ========== */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -54%) scale(0.98);
  background: #fff;
  color: #214759;
  border-radius: 22px;
  z-index: 999;
  min-width: 330px;
  max-width: 95vw;
  box-shadow: 0 8px 40px rgba(33,71,89,0.29);
  padding: 32px 26px 32px 26px;
  display: none;
}
.cookie-modal.open {
  display: block;
  animation: cookieModalFadeIn 0.3s;
}
@keyframes cookieModalFadeIn {
  from {opacity:0;transform:translate(-50%, -54%) scale(0.92);}
  to {opacity:1;transform:translate(-50%, -54%) scale(1);}
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  margin-bottom: 18px;
  color: #214759;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.07rem;
}
.cookie-modal .category-toggle {
  appearance: none;
  width: 32px; height: 17px;
  background: #E2E9E1;
  border-radius: 13px;
  margin-right: 6px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal .category-toggle:checked {
  background: #AB8942;
}
.cookie-modal .category-toggle::after {
  content: '';
  position: absolute;
  top: 2.5px; left: 3.5px;
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
  box-shadow: 0 1px 4px rgba(33,71,89,0.10);
}
.cookie-modal .category-toggle:checked::after {
  left: 16px;
}
.cookie-modal .category-label {
  color: #214759;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  font-weight: 600;
}
.cookie-modal .cookie-modal-buttons {
  display: flex;
  gap: 16px;
}
.cookie-modal button {
  padding: 10px 25px;
  border-radius: 16px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: #AB8942;
  transition: background 0.16s;
}
.cookie-modal button.cancel {
  background: #8a6b2e;
}
.cookie-modal button:focus, .cookie-modal button:hover {
  background: #214759;
}

/* ========== GEOMETRIC STRUCTURED DETAILING ========== */
.section,
.card,
.text-section,
.feature-item,
.testimonial-card,
.section ul li,
.faq-accordion > div {
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(33,71,89,0.06);
}
h1, h2, .cta.primary, nav a, .section ul li h3, .section ul li b, .section ul li strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cta.primary, .section ul li {
  border-radius: 18px 5px 18px 5px / 7px 20px 16px 20px;
}
hr {
  border: none;
  border-top: 3px solid #E2E9E1;
  margin: 32px 0;
}

/* ========== ANIMATIONS & TRANSITIONS ========== */
.card, .feature-item, .testimonial-card, .section ul li, .content-wrapper, .footer nav a {
  transition: box-shadow 0.23s, background 0.18s, color 0.18s;
}
.cta.primary, nav a, .mobile-nav a, .cookie-banner button, .cookie-modal button {
  transition: background 0.22s, color 0.15s, box-shadow 0.21s, border 0.14s;
}
.section ul li:hover {
  box-shadow: 0 4px 24px rgba(171,137,66,0.09);
  background: #fffbe9;
}

/* ========== RESPONSIVE DESIGN ========== */
@media screen and (max-width: 900px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 28px 6px;
  }
  .feature-item, .card, .section ul li { padding: 16px 7px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 9px; }
}
@media screen and (max-width: 768px) {
  main {
    margin-top: 24px;
    margin-bottom: 24px;
  }
  .section { margin-bottom: 38px; padding: 20px 2px; }
  .content-wrapper { padding: 0; }
  .section ul { flex-direction: column; gap: 22px; }
  .section ul li, .feature-item, .card { min-width: unset; width: 100%; }
  .content-grid, .card-container, .text-image-section { flex-direction: column; gap: 18px; }
  .testimonial-card { padding: 14px 7px; font-size: 0.96rem; }
  header .container {
    gap: 14px;
  }
  .cookie-modal { min-width: 94vw; padding: 24px 6vw 24px 6vw; }
}

@media screen and (max-width: 480px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.1rem; }
  .cta.primary { font-size: 1rem; padding: 10px 14px; }
  nav a { font-size: 1rem; }
}

/* Prevent overflow and overlapping at all breakpoints */
.section, .content-wrapper, .container, main, body {
  overflow-x: hidden;
}

/* ========== LISTS & DETAILS ========== */
dt { font-weight: 900; color: #214759; font-family: 'Montserrat', Arial, sans-serif; }
dd { margin-bottom: 10px; }
dl, dt, dd { font-size: 1.04rem; line-height: 1.45; }

/* ========== BUTTONS GENERIC ========== */
button, input[type="button"], input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  background: #214759;
  color: #fff;
  transition: background 0.17s, color 0.14s, box-shadow 0.18s;
  cursor: pointer;
  outline: none;
}
button:focus, button:hover {
  background: #AB8942;
  color: #fff;
  box-shadow: 0 2px 12px rgba(171,137,66,0.13);
}
input, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 10px;
  border: 1.5px solid #E2E9E1;
  padding: 10px 12px;
  margin-bottom: 16px;
  background: #fff;
  transition: border 0.17s;
  color: #214759;
}
input:focus, textarea:focus {
  border-color: #214759;
}
/* ========== MISC ========== */
::-webkit-scrollbar {
  width: 10px;
  background: #E2E9E1;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: #B9BFC2;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: #214759;
}

/* ========== ANGULAR CARD TITLE EFFECT ========== */
.section ul li h3, .section ul li b, .section ul li strong {
  position: relative;
  padding-left: 10px;
}
.section ul li h3:before, .section ul li b:before, .section ul li strong:before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 20px;
  background: #214759;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
  position: absolute;
  left: 0; top: 0;
}

/* ========== ACCESSIBILITY/FOCUS ========== */
a:focus, button:focus, .cta.primary:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2.5px solid #AB8942;
  outline-offset: 3px;
}

/* Fix z-index stacking */
header { z-index: 100; }
.mobile-menu { z-index: 200; }
.mobile-menu-toggle { z-index: 201; }
.cookie-banner { z-index: 990; }
.cookie-modal { z-index: 999; }

/* Hide visually but keep accessible */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ========= END OF GEOMETRIC STRUCTURED DESIGN SYSTEM ========= */