/* =======================================================================
   HEIMATGLANZ REISEN - MINIMALIST STYLESHEET
   Branding: Montserrat (display), Roboto (body),
   Colors: #0B4989 (Primary), #F5F5F2 (Secondary BG), #FFD700 (Accent)
   Layout: FLEXBOX-ONLY (no CSS Grid, no Columns)
   Mobile-First, Accessible, Modern Minimalist
   ======================================================================= */

/* ===============================
   1. RESET AND 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,
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;
  font-size: 16px;
  height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F5F5F2;
  color: #232323;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #0B4989;
  text-decoration: none;
  transition: color 0.18s;
}
a:focus {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}
strong {
  font-weight: 600;
}
main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* ===============================
   2. TYPOGRAPHY & BRAND FONTS
=============================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');
h1, h2, h3, h4, .cta-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  color: #12202b;
}
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2e3a49;
}
p, ul, ol, li {
  font-size: 1rem;
  color: #232323;
  margin-bottom: 10px;
}
.text-section li {
  margin-bottom: 6px;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}
.text-section li:before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: #0B4989;
  font-weight: bold;
  font-size: 1.2em;
}

@media (min-width: 700px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.4rem; }
  body { font-size: 1.07rem; }
}

/* ===============================
   3. CONTAINERS / LAYOUT FLEXBOX
=============================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.feature_grid, .feature-item, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.feature_grid > div, .feature-item {
  flex: 1 1 210px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(34,48,74,0.05);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.18s;
  min-width: 220px;
  min-height: 200px;
  margin-bottom: 20px;
}
.feature_grid > div:hover, .feature-item:hover {
  box-shadow: 0 8px 26px 0 rgba(11,73,137,0.17);
  transform: translateY(-4px) scale(1.02);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(34,48,74,0.06);
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 10px 28px 0 rgba(11,73,137,0.14);
  transform: translateY(-3px) scale(1.01);
}
.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: 22px;
  }
}
.section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: none;
}
@media (max-width: 600px) {
  .section {
    padding: 20px 0 28px 0;
    margin-bottom: 38px;
  }
  .feature_grid > div, .feature-item {
    padding: 16px 10px;
    border-radius: 10px;
    min-width: 0;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ===============================
   4. HEADER & NAVIGATION
=============================== */
header {
  background: #fff;
  box-shadow: 0 4px 16px -12px rgba(11,73,137,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #0B4989;
  opacity: 0.92;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .18s, color .18s;
  letter-spacing: 0.01em;
}
header nav a:hover, header nav a:focus {
  background: #F5F5F2;
  color: #0B4989;
  text-decoration: underline;
}
header nav .cta-primary {
  background: #0B4989;
  color: #fff !important;
  border-radius: 9px;
  padding: 8px 22px;
  font-weight: 700;
  margin-left: 12px;
  box-shadow: 0 2px 10px 0 rgba(11,73,137,0.05);
  transition: background 0.16s, color 0.16s, transform 0.16s;
}
header nav .cta-primary:hover, header nav .cta-primary:focus {
  background: #FFD700;
  color: #0B4989 !important;
  transform: scale(1.03);
  box-shadow: 0 6px 20px 0 rgba(246,182,29,0.08);
}
header nav img {
  height: 40px;
  width: auto;
  margin-right: 8px;
}

/* Hide mobile header hamburger by default (show later on mobile) */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: none;
  font-size: 2rem;
  color: #0B4989;
  position: absolute;
  right: 20px;
  top: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  z-index: 115;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #F5F5F2;
}

/* ===============================
   5. MOBILE MENU OVERLAY
=============================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(245,245,242,0.98);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transition: transform 0.36s cubic-bezier(0.7,0,0.3,1);
  transform: translateX(100%);
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #0B4989;
  font-size: 2rem;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 2010;
  padding: 5px 12px;
}
.mobile-menu-close:focus {
  outline: 2px solid #FFD700;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 42px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  padding: 14px 34px;
  color: #0B4989;
  border-radius: 11px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFD700;
  color: #0B4989;
}

@media (max-width: 1050px) {
  header nav {
    gap: 13px;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 8px;
  }
}
@media (max-width: 860px) {
  header nav {
    gap: 0px;
  }
}
/* ===== Mobile nav shown on mobile, hide main nav */
@media (max-width: 820px) {
  header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===============================
   6. CTA PRIMARY BUTTONS
=============================== */
.cta-primary, a.cta-primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 32px;
  margin-top: 18px;
  font-size: 1.12rem;
  font-weight: 700;
  background: #0B4989;
  color: #fff;
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 16px 0 rgba(11,73,137,0.11);
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.16s, box-shadow 0.2s;
  text-align: center;
  outline: none;
  letter-spacing: 0.01em;
}
.cta-primary:hover, .cta-primary:focus {
  background: #FFD700;
  color: #0B4989 !important;
  box-shadow: 0 7px 20px 0 rgba(246,182,29,0.11);
  transform: translateY(-1px) scale(1.025);
}

/* ===============================
   7. HERO AND SECTION STYLES
=============================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-start;
  max-width: 720px;
}
.text-section h1, .text-section h2, .text-section h3 {
  margin-bottom: 10px;
}

/* ===============================
   8. FEATURE CARDS & ICONS
=============================== */
.feature_grid > div > img {
  margin-bottom: 12px;
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.feature_grid > div span {
  font-size: 1rem;
  font-weight: 500;
  color: #0B4989;
  margin-left: 6px;
}

/* ===============================
   9. TESTIMONIALS
=============================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  color: #232323; /* Ensures proper contrast */
  border-radius: 14px;
  box-shadow: 0 2px 18px 0 rgba(34,48,74,0.09);
  margin-bottom: 20px;
  padding: 20px 26px;
  min-width: 220px;
  max-width: 500px;
  font-size: 1.075rem;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 9px 28px 0 rgba(11,73,137,0.13);
  transform: translateY(-2px) scale(1.012);
}
.testimonial-card p {
  color: #232323;
  font-style: italic;
  margin-bottom: 6px;
  font-size: 1.05rem;
}
.testimonial-card span {
  font-size: 0.98rem;
  font-weight: 500;
  color: #0B4989;
  opacity: 0.85;
}

/* ===============================
   10. FOOTER
=============================== */
footer {
  background: #fff;
  box-shadow: 0 -3px 16px -12px rgba(11,73,137,0.06);
  padding: 24px 0 12px 0;
  color: #232323;
  font-size: 1rem;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 6px;
}
footer nav a {
  color: #0B4989;
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.85;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.12s;
}
footer nav a:hover {
  background: #F5F5F2;
}
footer p {
  color: #232323;
  font-size: 0.98rem;
  opacity: 0.75;
}

/* ===============================
   11. SPACING BETWEEN CARDS & BLOCKS
=============================== */
.feature_grid > div, .card, .testimonial-card, .section > .container > .content-wrapper, .text-section {
  margin-bottom: 20px;
}
.content-wrapper > *:not(:last-child) {
  margin-bottom: 18px;
}
@media (max-width: 600px) {
  .feature_grid, .content-grid, .card-container {
    gap: 13px;
  }
  .testimonial-card {
    padding: 14px 10px;
    max-width: 100vw;
  }
}

/* ===============================
   12. RESPONSIVE ADJUSTMENTS
=============================== */
@media (max-width: 1050px) {
  .feature_grid > div, .feature-item {
    min-width: 188px;
    padding: 18px 10px;
    font-size: 0.95em;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 6vw;
  }
  section {
    padding: 32px 8px;
    margin-bottom: 38px;
  }
  .feature_grid, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature_grid > div {
    min-width: 0;
  }
}
@media (max-width: 500px) {
  .section {
    padding: 14px 4px;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1.02rem; }
}

/* ===============================
   13. MICRO-INTERACTIONS
=============================== */
.feature_grid > div, .feature-item, .card, .testimonial-card, .cta-primary {
  transition: box-shadow 0.18s, transform 0.18s, background 0.18s, color 0.18s;
}
.feature_grid > div:active, .feature-item:active, .card:active {
  transform: scale(0.98);
}

/* ===============================
   14. COOKIE CONSENT BANNER
=============================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  color: #232323;
  border-top: 1.5px solid #e8e8df;
  box-shadow: 0 -4px 28px 0 rgba(11,73,137,0.09);
  padding: 22px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 20000;
  gap: 15px;
  font-size: 1rem;
  animation: cookieIn 0.55s cubic-bezier(0.6,0,0.3,1);
}
@keyframes cookieIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 11px;
}
.cookie-banner__btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 9px 24px;
  cursor: pointer;
  transition: background-color 0.16s, color 0.16s;
}
.cookie-banner__btn.accept {
  background: #0B4989;
  color: #fff;
}
.cookie-banner__btn.accept:hover, .cookie-banner__btn.accept:focus {
  background: #FFD700;
  color: #0B4989;
}
.cookie-banner__btn.reject {
  background: #F5F5F2;
  color: #0B4989;
  border: 1.5px solid #e0e0d2;
}
.cookie-banner__btn.reject:hover, .cookie-banner__btn.reject:focus {
  background: #fff7c2;
  color: #0B4989;
}
.cookie-banner__btn.settings {
  background: #fff;
  color: #0B4989;
  border: 1.5px solid #0B4989;
}
.cookie-banner__btn.settings:hover, .cookie-banner__btn.settings:focus {
  background: #F5F5F2;
}
@media (max-width: 600px) {
  .cookie-banner {
    padding: 15px 6px 10px 6px;
    font-size: 0.98rem;
    gap: 8px;
  }
  .cookie-banner__actions {
    flex-direction: column;
    gap: 7px;
  }
}

/* ---------- COOKIE SETTINGS MODAL ---------- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 20100;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(15,37,43,0.46);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: auto;
  transition: opacity 0.18s;
  opacity: 0;
  visibility: hidden;
}
.cookie-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.23s;
}
.cookie-modal {
  background: #fff;
  width: 98vw;
  max-width: 420px;
  border-radius: 19px 19px 10px 10px;
  box-shadow: 0 7px 28px 0 rgba(11,73,137,0.09);
  padding: 36px 26px 26px 26px;
  margin-bottom: 3vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalIn 0.39s ease;
}
@keyframes cookieModalIn {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.24rem;
  margin-bottom: 7px;
  color: #0B4989;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1.5px solid #eee;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 20px;
  background: #e0e0db;
  border-radius: 10px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.16s;
  vertical-align: middle;
}
.cookie-toggle:disabled {
  background: #b2b2a0;
  opacity: 0.55;
}
.cookie-toggle:after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.23s, background 0.16s;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,.09);
}
.cookie-toggle:checked {
  background: #0B4989;
}
.cookie-toggle:checked:after {
  left: 19px;
  background: #FFD700;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 9px 24px;
  cursor: pointer;
  background: #0B4989;
  color: #fff;
  transition: background 0.17s, color 0.17s;
}
.cookie-modal-actions button.cancel {
  background: #fff;
  color: #0B4989;
  border: 1.5px solid #0B4989;
}
.cookie-modal-actions button.cancel:hover {
  background: #F5F5F2;
}
.cookie-modal-actions button.save {
  background: #FFD700;
  color: #232323;
}
.cookie-modal-actions button.save:hover {
  color: #0B4989;
}

@media (max-width: 450px) {
  .cookie-modal {
    padding: 22px 8px 16px 8px;
  }
}

/* ===============================
   15. MISC: FORMS & ACCESSIBILITY
=============================== */
input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  outline: none;
  border: none;
  margin: 0;
  padding: 0;
}
button {
  cursor: pointer;
}

/* ===============================
   16. HIDE SCROLL ON MOBILE MENU OPEN
=============================== */
body.menu-open {
  overflow: hidden !important;
  height: 100vh;
}

/* ===============================
   17. PRINT CSS (MINIMAL)
=============================== */
@media print {
  header, .mobile-menu, .cookie-banner, footer {
    display: none !important;
  }
  body, .container {
    background: #fff !important;
    color: #232323 !important;
  }
}

/* ========================
   END - HeimatGlanz Reisen
======================== */
